1 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3 * configure.ac: Set version to 2.02~beta2.
5 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
9 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
11 * util/grub-probe.c: Improve help message and simplify list handling.
13 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15 Fix buffer overflow in grub_efi_print_device_path.
17 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
19 Show SATA device path.
21 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
23 Revert grub-file usage in grub-mkconfig.
25 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
27 Make newly-created files other than grub.cfg world-readable.
29 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
31 * util/grub.d/00_header.in: Improve compatibility with old config.
33 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
35 Make rijndael.c respect aliasing rules.
37 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
39 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
41 Make grub_util_device_is_mapped_stat available in grub-emu core.
43 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
45 Add -Qn to TARGET_CFLAGS if it's supported.
46 Fixes compilation on cygwin.
48 Reported by: Andrey Borzenkov.
49 Suggested by: Andrey Borzenkov.
51 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
53 Save TARGET_CC version in modinfo.sh.
55 Suggested by: Andrey Borzenkov.
57 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
59 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
60 follow the same algorithm to avoid method mismatch. Don't assume
61 DMRAID- UUID to mean full disk but instead check that mapping is linear.
63 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
65 Declare GRUB_EFI_VENDOR_APPLE_GUID.
67 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
69 Dump type and vendor specific data when printing device path.
71 2013-12-23 Colin Watson <cjwatson@debian.org>
73 Update some documentation to refer to Git rather than Bazaar.
75 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
77 * po/README: Likewise. Fix spelling mistake.
79 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
81 Don't distribute config.h.
83 * Makefile.am (platform_HEADERS): Move to ...
84 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
85 failure when building from a distributed tarball.
87 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
89 * configure.ac: Fix spelling.
90 * grub-core/commands/parttool.c: Fix grammar.
91 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
94 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
96 ARM64 support for grub-mkrescue.
98 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
100 Install modinfo.sh to keep build information around.
102 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
104 * grub-core/modinfo.sh.in: Add build config information.
106 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
108 ARM64 grub-file and grub-mkconfig support.
110 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
112 Remove leftover options defines.
114 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
116 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
118 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
120 * grub-core/loader/arm64/linux.c: Add missing bracket.
122 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
124 Add arm64-efi recognition to grub-file.
126 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
128 Fix ia64-efi recognition in grub-file.
130 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
132 Recognize raspberry pi kernel in grub-file.
134 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
136 Enable cache on ARM U-Boot port.
138 Without it the port is reidiculously slow.
140 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
142 Fix ARM cache maintainance.
144 More code was converted from ASM to C for easier handling.
146 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
148 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
151 Suggested by: Leif Lindholm.
153 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
155 * util/grub-mkconfig.in: Fix Xen platform conditions.
157 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
159 * util/grub-mkrescue.c: Split single help message string in several
160 strings used in previous shell version.
162 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
164 Add arm64 Linux loader.
166 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
168 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
170 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
172 Add module loading and parsing boot time checkpoints.
174 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
176 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
179 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
181 * util/grub-mkconfig.in: Skip non-executable files.
183 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
185 Workaround buggy timer in raspberry pie by using our own timer
188 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
190 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
191 Increase to 16 MiB to allow loading the whole memdisk.
193 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
195 Fix ARM Linux Loader on non-FDT platforms.
197 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
199 * configure.ac: Choose link format based on host_os on emu.
201 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
203 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
205 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
207 * grub-core/kern/emu/main.c: Build fix for emu.
209 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
211 Build fixes for argp.h with older gcc.
213 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
215 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
218 Suggested by: David Prévot.
220 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
222 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
224 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
226 Enable -Wformat=2 if it's supported.
228 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
230 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
231 -Wmissing-declarations if supported.
233 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
235 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
236 u32 as both HFS and HFS+ have 32-bit inodes.
238 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
240 * include/grub/misc.h (grub_strtol): Fix overflow.
242 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
244 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
245 as return type in both conditionals.
247 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
249 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
250 to use uint8_t for color.
252 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
254 * util/misc.c (grub_util_get_image_size): Check for overflow.
256 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
258 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
261 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
263 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
264 for pointer difference.
266 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
268 * util/import_gcry.py: Skip sample keys.
270 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
272 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
274 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
276 * configure.ac: Remove duplicate warning arguments.
278 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
280 Add missing static qualifiers.
282 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
284 Add missing includes.
286 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
288 Inline printf templates when possible to enable format checking.
290 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
292 * include/grub/crypto.h: Don't discard const attribute.
294 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
296 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
299 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
301 * grub-core/lib/crypto.c: Don't discard const attribute.
303 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
305 * grub-core/lib/disk.c: Fix potential overflow.
307 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
309 * grub-core/lib/arg.c: Don't discard const attribute.
311 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
313 * grub-core/kern/dl.c: Don't discard const attribute.
315 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
317 * grub-core/kern/disk.c: Fix potential overflow.
319 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
321 * conf/Makefile.common: Don't include non-existing directory
322 grub-core/lib/libgcrypt-grub/include.
324 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
326 Clarify several translatable messages.
328 2013-12-21 David Prévot <david@tilapin.org>
330 Correct some translatable strings.
332 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
334 * util/grub-mkrescue.c: Rephrase mkrescue description.
336 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
337 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
339 Clarify several translatable messages.
341 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
343 Be more verbose about some configure failures.
345 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
347 Fix various build problems on GNU/Hurd.
349 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
352 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
353 [__GNU__]: Add prototype.
354 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
355 long int using %ld rather than %d.
357 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
359 * util/grub-install.c: Inform user about install platform.
361 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
363 * configure.ac: Set version to 2.02~beta1.
365 2013-12-18 Allen Pais <allen.pais@oracle.com>
366 2013-12-18 Bob Picco <bob.picco@oracle.com>
368 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
370 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
372 Make grub_zlib_decompress handle incomplete chunks.
376 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
378 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
381 2013-12-18 Aleš Nesrsta <starous@volny.cz>
383 * grub-core/disk/usbms.c: Retry on unknown errors.
384 Reuse the same tag on retries.
386 2013-12-18 Aleš Nesrsta <starous@volny.cz>
388 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
390 Avoid confusing them with already completed transfers.
392 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
396 Due to XEN bug it prevents Linux boot. Remove it at least, until
399 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
401 * po/exclude.pot: Add 2 missing excludes.
403 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
405 Add missing license section in macbless.mod and macho.mod.
407 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
409 Allow compilation without thumb-interwork as long as no thumb is
410 involved or only thumb2 is used.
412 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
414 Use -Wl,--no-relax rather than -mno-relax for uniformity.
416 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
418 * INSTALL: Update comment as to why sparc64 clang isn't usable.
420 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
422 Add __attribute__ ((sysv_abi)) only if it's really needed.
424 Some compilers don't support it.
426 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
428 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
430 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
432 Remove -Wold-style-definition.
434 Not very useful and interaction of it with regexp depends on GCC
437 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
439 Make grub_util_get_windows_path_real static.
441 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
443 * grub-core/commands/fileXX.c: Silence cast-align.
444 * grub-core/loader/i386/xen_fileXX.c: Likewise.
446 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
448 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
449 rather than LL suffix.
451 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
453 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
455 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
457 * grub-core/loader/arm/linux.c: Use common initrd functions.
459 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
461 Decrease number of strings to translate.
463 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
465 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
467 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
469 Mark strings for translation and add remaining ones to exclude list.
471 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
473 * util/grub-file.c (main): Fix sizeof usage.
475 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
477 Silence spurious warning.
479 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
481 Remove check_nt_hiberfil as it's been superseeded by file command.
483 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
485 * docs/osdetect.cfg: Add isolinux config to detected OSes.
487 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
489 Implement syslinux parser.
491 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
493 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
495 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
499 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
501 Use AT keyboard on Yeeloong 3A.
503 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
505 Add Yeeloong 3A reboot and halt.
507 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
509 Add Radeon Yeeloong 3A support.
511 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
513 Add bonito 3A support.
515 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
517 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
519 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
521 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
523 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
525 * grub-core/loader/macho.c: Fix compilation on non-i386.
527 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
529 Add missing format_arg attribute to check that printf with translated
530 messages has proper arguments.
532 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
534 Use grub_xasprintf to format translated error messages containing
537 2013-12-17 Jon McCune <jonmccune@google.com>
539 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
541 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
543 Unify message for unsupported relocation.
545 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
547 Mark miscompile error for translation.
549 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
551 Use %I64 and not %ll when using OS printf if compiling for windows.
553 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
555 Update Mac code to match new register_efi prototype.
557 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
559 Implement better integration with Mac firmware.
561 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
563 * grub-core/loader/multiboot_mbi2.c: Implement special value for
566 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
568 Include serial module in default_payload.elf.
570 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
572 Add explicit thumb interwork bx in asm files.
574 Shouldn't matter for armv >= 5 but let's be safe.
576 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
578 Implement Truecrypt ISO loader.
580 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
582 * grub-core/lib/arg.c: Ensure at least a single space between commands.
584 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
586 Implement grub_file tool and use it to implement generating of config
589 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
591 Change to v1 xen grants.
593 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
595 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
597 GRUB relied on %ebx being preserved across hypercall which isn't true.
599 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
601 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
603 GRUB relied on %rdi being preserved across hypercall which isn't true.
605 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
607 Implement XEN VFB support.
609 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
611 Remove grub_bios_interrupt on coreboot.
613 It's not used currently and cannot be used safely currently.
615 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
617 Update exclude.pot and mark few strings for translation.
619 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
621 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
623 Reported by: Jon McCune
625 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
627 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
628 Add verbose information which firmware directories were tried.
630 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
632 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
633 function to optionally redirect all three standard descriptors.
634 Redefine grub_util_exec, grub_util_exec_redirect and
635 grub_util_exec_redirect_null to use it.
636 * include/grub/emu/exec.h: Define it.
637 * include/grub/osdep/exec_unix.h: Delete, it is unused.
638 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
639 Use grub_util_exec_redirect_all to redirect error to NULL.
641 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
643 * grub-core/tests/sleep_test.c: Silence spurious warning.
645 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
647 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
648 linker trying to "fixup" the code.
650 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
652 * grub-core/kern/x86_64/xen/startup.S: Align stack.
654 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
656 Add support for converting PE+ to Elf64.
658 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
660 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
662 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
664 Remove practice of assigning random const pointers to device id.
666 This is not required as cache code already checks driver id as well.
668 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
670 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
673 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
675 * include/grub/efi/api.h: Don't use call wrappers when compiled with
676 mingw or cygwin as API already matches.
678 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
680 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
682 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
684 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
687 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
689 Handle X86_64_PC64 relocation.
691 Those are generated by some cygwin compilers.
693 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
695 Determine the need for mingw-related stubs at compile time rather than
696 using not very significant $target_os.
698 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
700 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
701 may not work with ELF.
703 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
705 Use unix functions for temporary files and special files on cygwin.
707 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
709 Define functions explicitly rather than using --defsym in tests
710 whenever possible. Respect locality in remaining cases.
712 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
714 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
716 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
718 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
719 unlikely errors when getting EFI variables and make exhaustive search
720 for all BootNNNN variables to find matching one.
722 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
724 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
726 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
728 New functional test for sleep function.
730 This test allows to check sleep without qemu. Keep qemu version as
731 well as functional test won't notice if all clocks are going too fast
734 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
736 Add explicit sysv_abi on amd64 asm routines.
738 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
740 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
743 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
745 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
748 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
750 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
753 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
755 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
757 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
759 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
762 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
764 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
766 In case of quick removal of loopback and adding another one it may
767 get same ID, confusing the cache system.
769 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
771 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
774 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
776 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
777 than converting to long.
779 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
781 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
783 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
785 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
786 than almost useless pointer.
788 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
790 Add gcc_struct to all packed structures when compiling with mingw.
792 Just "packed" doesn't always pack the way we expect.
794 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
796 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
798 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
800 * util/grub-pe2elf.c: Fix handling of .bss.
802 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
804 Implement windows flavour of EFI install routines.
806 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
808 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
810 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
812 Change grub_install_register_efi interface to pass GRUB device.
814 This allows grub_install_register_efi to request partition info
817 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
819 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
821 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
823 Do not use TCHAR string functions as they are not available on cygwin.
825 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
827 Workaround windows bug when querying EFI system partition parameters.
829 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
831 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
834 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
836 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
838 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
840 Make i386-* other than i386-pc compileable under cygwin.
842 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
844 Fix definition of grub_efi_hard_drive_device_path. Take care that
845 existing code would work even if by some reason bogus definition is
846 used by EFI implementations.
848 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
850 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
852 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
854 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
857 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
859 * util/config.c: Remove trailing newline from distributor in simple
862 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
864 * include/grub/efi/api.h: Rename protocol and interface to avoid
867 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
869 * .gitignore: Add .exe variants. Add missing files. Remove few outdated
872 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
874 * grub-core/osdep/exec.c: Use unix version on cygwin.
876 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
878 Implement multiboot2 EFI BS specification.
880 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
882 * grub-core/normal/charset.c: Fix premature line wrap and crash.
883 Crash happened only in some cases like a string starting at the
884 half of the screen of same length.
886 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
888 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
889 with EFI counterpart.
891 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
893 Propagate the EFI commits to x86-efi specific parts.
895 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
897 * grub-core/commands/efi/lssal.c: Fix terminating condition.
899 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
901 Introduce grub_efi_packed_guid and use it where alignment is not
904 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
906 * include/grub/efi/api.h (grub_efi_device_path): Define length as
907 unaligned u16 rather than u8[2].
909 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
911 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
912 for relocation range.
914 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
916 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
917 non-function pcrel21b relocation. It happens with .text.unlikely
920 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
922 * make MAX_USABLE_ADDRESS platform-specific
923 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
925 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
927 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
929 2013-12-09 Jon McCune <jonmccune@google.com>
931 * Add --no-rs-codes flag to optionally disable reed-solomon codes
932 in grub-install and grub-bios-setup for x86 BIOS targets.
934 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
936 Add missing compile and link options for sparc64-emu.
938 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
940 Implement sparc64 trampolines (needed for sparc64-emu).
942 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
944 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
945 range of R_SPARC_HI22.
946 Implement R_SPARC_LM22.
948 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
950 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
951 Do not explicitly check for symbol table as it's already checked in
952 platform-independent layer.
954 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
956 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
957 on ia64 as __clear_cache is a dummy on ia64.
959 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
961 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
962 Do not explicitly check for symbol table as it's already checked in
963 platform-independent layer.
965 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
967 * util/grub-mkconfig.in: Add missing newline to output.
969 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
971 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
972 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
974 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
976 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
977 compilation with GCC <= 4.2.
978 * grub-core/kern/emu/argp_common.c: Likewise.
980 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
982 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
983 right platform rather than leaking to sparc64-emu.
985 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
987 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
988 But ensure that the variables in question are indeed unsigned.
990 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
992 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
994 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
996 Remove grub_memalign on emu.
998 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1000 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1001 truncate incomplete lines but instead flushes them.
1003 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1005 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1006 and implement windows variant.
1008 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1010 Fix mips-emu compilation.
1012 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1014 * configure.ac: Check for freetype library usability.
1016 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1020 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1022 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1024 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1026 * docs/grub.texi (Environment): Update color_normal and color_highlight
1027 defaults (light-gray instead of white).
1029 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1031 * grub-core/normal/main.c (INIT): Set default color to light-gray
1032 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1033 and apparently BIOS defaults.
1035 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1037 Transform -C option to grub-mkstandalone to --core-compress available
1038 in all grub-install flavours.
1040 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1042 Merge GRUBFS and GRUB_FS variables.
1044 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1046 Revert commit 69ca97c820, it caused failures when using OS device name
1047 in grub-install. Instead just strip off parenthesis in grub-install
1048 if (hdX) was passed.
1050 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1052 * util/grub-install.c (push_partmap_module): Add helper to convert
1053 partmap names to module names and use it in probe_mods(). Fixes
1054 failure to find partmap modules in diskfilter case.
1056 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1058 * configure.ac: Make unifont mandatory on coreboot.
1060 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1062 * configure.ac: Skip unifont 6.3 pcf and bdf.
1064 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1066 * Makefile.am: Remove partial font files if generation failed.
1068 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1070 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1072 * include/grub/util/misc.h: Define it ...
1073 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1075 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1077 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1080 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1082 Don't add -mlong-calls when compiling with clang.
1084 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1086 * configure.ac: Fix a typo.
1088 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1090 Revamp relocation handling.
1092 Move more code to common dl.c. Add missing veneers for arm and arm64.
1093 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1095 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1097 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1099 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1101 * INSTALL: Raise minimum python version to 2.6.
1102 * gentpl.py: Use python3-style print function.
1104 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1106 * util/grub-install.c: Mention Boot* variable.
1108 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1110 * grub-core/osdep/linux/hostdisk.c
1111 (grub_util_find_partition_start_os): Initialise start to avoid
1112 spurious compiler warning.
1114 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1116 On Linux, read partition start offsets from sysfs if possible, to
1117 cope with block device drivers that don't implement HDIO_GETGEO.
1118 Fixes Ubuntu bug #1237519.
1120 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1122 (sysfs_partition_start): Likewise.
1123 (grub_util_find_partition_start_os): Try sysfs_partition_start
1126 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1128 * grub-core/kern/fdt.c: Update struct size when adding node.
1130 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1132 Handle unaligned .bss on sparc64.
1134 Current code improperly assumes that both __bss_start and _end are
1135 aligned to 8-bytes. Eliminating this assumption and explicitly align
1138 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1140 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1141 so it doesn't land in the middle of loaded image.
1143 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1145 * configure.ac: Move all warning options that may be absent in
1146 gcc >= 3.1 to optional.
1148 Note: while this allows to compile with older GCC, official requirements
1149 remain the same and no support for older GCC.
1151 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1153 Copying the themes directory in grub-shell isn't
1154 parallel-test-friendly and breaks on the second test when the source
1155 directory is read-only (as in "make distcheck"). Instead, add a
1156 hidden --themes-directory option to grub-mkrescue et al, and use it
1159 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1161 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1162 as it's no longer necessarry.
1164 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1166 * configure.ac: Allow compilation with older GCC for ARM.
1168 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1170 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1171 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1174 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1176 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1178 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1180 Pass font config to config.h and not by TARGET_CFLAGS as adding
1181 arguments doesn't work if TARGET_CFLAGS is specified on command
1184 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1186 * configure.ac: Add -Wvla if compiler supports it.
1188 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1190 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1191 Remove variable length arrays.
1192 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1194 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1196 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1198 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1200 * include/grub/types.h: Declare all byteswaps as inline functions
1201 except compile-time ones.
1203 Solves variable shadowing in constructions like
1204 cpu_to_le (le_to_cpu(x) + 1).
1206 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1208 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1210 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1212 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1215 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1217 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1218 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1220 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1222 * grub-core/Makefile.core.def (setjmp): Distribute
1225 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1227 Add a new timeout_style environment variable and a corresponding
1228 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1229 controls hidden-timeout handling more simply than the previous
1230 arrangements, and pressing any hotkeys associated with menu entries
1231 during the hidden timeout will now boot the corresponding menu entry
1234 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1235 generates a warning, and if it shows the menu it will do so as if
1236 the second timeout were not present. Other combinations are
1237 translated into reasonable equivalents.
1239 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1241 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1243 * util/config.c: Add missing pointer adjustment.
1244 Reported by: qwertial
1246 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1248 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1249 directly, not via `cpu' link, to fix libgrub.pp generation.
1251 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1255 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1257 * docs/grub.texi (sleep): Document exit codes.
1259 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1261 Ensure that -mno-unaligned-access or some equivalent option is used.
1263 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1265 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1268 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1270 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1272 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1274 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1275 builds, since we don't have an EPS version of font_char_metrics.png.
1276 Add leading dot to image extension per the Texinfo documentation.
1278 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1280 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1281 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1282 * util/grub-gen-widthspec.c: Likewise.
1283 * util/grub-mkfont.c: Likewise.
1285 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1287 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1288 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1289 failed to install on (hdX).
1290 * util/grub-setup.c (get_device_name): Remove, not needed after
1293 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1295 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1297 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1299 * util/grub-fstest.c: Remove variable length arrays.
1301 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1303 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1305 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1307 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1308 computing crc32 rather than handling with md fundtions directly.
1310 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1312 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1313 checking fwstart.img rather than md fundtions directly.
1315 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1317 * util/grub-mkrescue.c (main): Check that fread succeeded.
1319 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1321 * conf/Makefile.common: Remove -mexplicit-relocs and
1322 -DUSE_ASCII_FALLBACK on yeeloong.
1324 -DUSE_ASCII_FALLBACK is already added by font snippets.
1325 -mexplicit-relocs isn't needed is compiler/assemblera are
1326 configured properly.
1327 If they're not we shouldn't attempt to fix it by ourselves.
1328 Binary compare between before and after shows no difference.
1330 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1332 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1333 sources in dependencies directly.
1335 This was the only instance of "library" in core config. A bug was
1336 reported that -fno-stack-protector wasn't passed to it. Instead of
1337 figuring out why it failed just remove this construction used
1340 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1342 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1345 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1347 * docs/grub.texi (ls): Fix command description in case of a device name
1350 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1352 Eliminate variable length arrays in grub_vsnprintf_real.
1354 A bit tricky because this function has to continue to work without
1355 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1356 but make all stack references use 32-bit offset rather than 8-bit one.
1357 So split va_args preparsing to separate function and put the prealloc
1360 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1362 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1363 Fixes build for windows.
1365 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1367 * gentpl.py: Don't generate platform-dependent conditionals for
1368 platform-independent targets.
1370 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1372 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1373 references to mdadm from otherwise generic code.
1374 (grub_util_exec_pipe): Likewise.
1375 (grub_util_exec_pipe_stderr): Likewise.
1376 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1377 This function calls vgs, not mdadm; adjust variable names
1380 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1382 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1383 of Autogen. The Autogen definitions files remain intact as they
1384 offer a useful abstraction.
1386 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1388 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1389 into no-ops, and use it in programs that copy files but do not need
1390 to take special care to sync writes (grub-mknetdir, grub-rescue,
1393 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
1395 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1396 than hardcoding /usr/local/bin/xorriso.
1398 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1400 Add PCI command activation to all PCI drivers as required for coreboot
1401 and maybe some other firmwares.
1403 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1405 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1406 and non-Apple variants of efiemu compile.
1408 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1410 * configure.ac: Add explicit check for linking format of
1411 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1412 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1413 hardcoding linking format.
1415 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1417 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1420 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
1421 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1423 Add a --locale-directory option to grub-install and related tools.
1425 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1426 --locale-directory option.
1427 (enum grub_install_options): Add
1428 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1429 * util/grub-install-common.c (grub_install_help_filter): Handle
1430 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1431 (grub_install_parse): Likewise.
1432 (get_localedir): New function to check for a user-provided option
1433 before trying grub_util_get_localedir.
1434 (copy_locales): Use get_localedir rather than
1435 grub_util_get_localedir. Handle differing locale directory layouts.
1436 (grub_install_copy_files): Likewise.
1438 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1440 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1441 Don't rely on PATH_MAX.
1443 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1445 * grub-core/genmoddep.awk: Use more portable && rather than and.
1447 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1449 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
1450 an object after data. While it doesn't seem right solution, it
1451 works well enough and OSX isn't main compilation platform.
1453 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1455 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
1456 While it doesn't seem right solution, it works well enough and
1457 OSX isn't main compilation platform.
1459 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1461 * configure.ac: Add -static to LDFLAGS when using apple linker to
1462 prevent it from pulling in dynamic linker.
1464 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1466 Apple assembly doesn't handle symbol arithmetic well. So define an
1467 offset symbol in boot.S and use it.
1469 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1471 Apple assembly doesn't handle symbol arithmetic well. So instead
1472 of getting addres of kernel_sector + 4 define kernel_sector_high.
1473 It also makes code more readable.
1475 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1477 With Apple assembly in .macro environvemnt you have to use $$ instead
1478 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
1479 to $$x on Apple and to $x on everything else.
1481 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1483 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
1486 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1488 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
1489 and non-Apple. This instruction is shorter and faster,
1490 so no reason not to use it on both.
1492 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1494 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
1495 .text when compiling for Apple.
1497 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1499 * grub-core/term/arc/console.c: Add missing cast to silence warning.
1501 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1503 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
1504 %dx restore the probe worked on non-existant drive. Reorganize the
1505 code a little bit to free 2 bytes necessary for push/pop.
1507 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1509 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
1510 Add missing cast to silence warning.
1512 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
1514 * util/grub-install.c (update_nvram): Support --no-nvram flag
1517 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1519 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
1521 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1523 * util/garbage-gen.c: Add missing include of sys/time.h.
1525 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1527 Don't add -mflush-func if it's not supported by compiler.
1529 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1531 Move common BIOS/coreboot memory map declarations to
1532 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
1534 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
1536 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
1538 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1540 * INSTALL: Document why older clang versions aren't appropriate.
1542 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1544 * INSTALL: Document about clang for mips.
1546 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1548 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
1551 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1553 Add *-xen to the list of grub-install-common platforms.
1555 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1557 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
1560 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1562 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
1564 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1566 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
1567 with -mcmodel=large.
1569 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1571 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
1572 range-checking for 32-bit quantities.
1574 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1576 * configure.ac: Compile with -fPIC when compiling with clang on
1579 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1581 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
1582 when compiling with clang.
1584 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1586 clang emits calls to abort () under some unknown conditions.
1587 Export abort () when compiling with clang.
1589 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1591 * docs/grub-dev.texi: Document stack and heap sizes.
1593 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1595 * include/grub/i386/pc/memory.h: Decrease
1596 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
1597 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
1598 The binary doesn't change (checked). It's more to better reflect actual
1601 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1603 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
1604 at compile time that enough of scratch size is available.
1606 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1608 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
1609 Previously we misaligned stack by 8 in startup.S and compensated
1610 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
1611 right behaviour is to align stack in startup.S and keep it aligned
1612 in callwrap.S. startup.S part was committed few commits before. This
1613 takes care of callwrap.S.
1614 Reported by: Gary Lin.
1616 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1618 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
1619 .data and .bss. May happen if compiler and assembly use different
1622 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1624 On MIPS handle got16 relocations to local symbols in an ABI-compliant
1627 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1629 Add support for a new magic symbol _gp_disp on mips to handle PIC
1632 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1634 Use $t9 for indirect calls from asm to C as PIC ABI requires.
1636 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1638 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
1639 when rest of GRUB is compiled for hisher stepping. Instead use
1640 .set mips3/.set mips1 around cache and sync opcodes.
1642 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
1644 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
1645 do essentially the same thing, do it in similar way.
1647 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
1649 * util/grub-mkrescue.c (main): If a source directory is not
1650 specified, read platform-specific files from subdirectories of
1651 pkglibdir, not pkgdatadir.
1653 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
1655 * grub-core/normal/progress.c: Remove unused file.
1657 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1659 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
1662 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1664 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
1667 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1669 * coreboot.cfg: Add missing file.
1671 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1673 * Makefile.am: Allow STRIP to be empty when creating windowszip.
1675 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
1677 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
1678 selectively skipping systems.
1680 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1682 * Makefile.util.def (grub-mkimage): Add
1683 grub-core/osdep/aros/config.c to extra_dist.
1684 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
1685 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
1686 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
1687 grub-core/gnulib-no-gets.diff.
1689 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1691 Add automated filesystem checking based on scripts I've used now for
1692 quite some time locally. Most of the test require root so they are
1693 skipped when run without necessarry privelegies.
1695 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1697 * util/grub-install.c (main): Adjust info messages to match
1698 installed paths of grub-bios-setup and grub-sparc64-setup.
1700 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1702 * util/grub-install-common.c (copy_locales): Consistently use
1703 grub_util_get_localedir () rather than LOCALEDIR.
1704 (grub_install_copy_files): Likewise.
1706 2013-11-19 Josh Triplett <josh@joshtriplett.org>
1708 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
1709 16-byte boundary, as required by the x86-64 ABI, before calling
1710 grub_main. In some cases, GCC emits code that assumes this
1711 alignment, which crashes if not aligned. The EFI firmware is also
1712 entitled to assume that stack alignment without checking.
1714 2013-11-18 Josh Triplett <josh@joshtriplett.org>
1716 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
1717 4k page boundaries as expected by firmware rather than 1k
1719 (grub_mmap_malign_and_register): Likewise.
1721 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1723 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
1724 fragmentation 512M is enough.
1726 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1728 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
1729 pointer to 32K. This is the size of cache element which is the most
1730 common allocation >1K. This way the pointer is always around blocks
1731 of 32K and so we keep performance while decreasing fragmentation.
1733 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1735 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
1736 current memory when allocating large chunks. This significantly
1737 decreases memory fragmentation.
1739 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1741 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
1743 * tests/lzocompress_test.in: Skip if lzop is not installed.
1744 * tests/xzcompress_test.in: Skip if xz is not installed.
1746 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1748 * util/grub-mkrescue.c (main): Fix typo.
1750 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1752 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
1753 clock frequency to 200 MHz,
1755 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1757 * tests/util/grub-shell.in: Increase console size to 1024x1024.
1759 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1761 * Makefile.am (default_payload.elf): Add pata to loaded modules.
1762 Load config file from (cbfsdisk)/etc/grub.cfg.
1764 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1766 * util/grub-install-common.c (grub_install_copy_files): Fix module
1767 destination directory.
1769 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1771 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
1772 files have not been built.
1774 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1776 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
1777 Handle errors from mkstemp.
1778 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
1780 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1782 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
1783 on primary master on pseries.
1785 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1787 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
1788 already loaded. This saves memory needed for tests,
1790 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1792 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
1795 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1797 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
1800 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1802 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
1803 master since with some combinations of qemu and firmware only primary
1804 IDE channel is available.
1806 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1808 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
1809 low-memory platforms where we don't have enough memory for them.
1810 * grub-core/tests/videotest_checksum.c: Likewise.
1812 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1814 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
1815 already loaded. This saves memory needed for tests,
1817 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1819 Fix handling of install lists.
1821 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1823 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
1825 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1827 On i386-ieee1275 we run in paged mode. So we need to explicitly map
1828 the devices before accessing them.
1830 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1832 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
1835 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1837 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
1839 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1841 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
1842 (grub_file_close): Free file->name.
1844 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1846 * grub-core/commands/verify.c (free_pk): Plug memory leak.
1847 (grub_load_public_key): Likewise.
1848 (grub_verify_signature_real): Likewise.
1849 (grub_cmd_verify_signature): Likewise.
1851 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1853 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
1856 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1858 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
1859 (grub_longjmp): Restore r31.
1860 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
1862 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1864 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
1865 modules to be in line with make_image_abs.
1867 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1869 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
1871 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
1873 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
1875 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
1877 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1879 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
1880 to leave some memory to firmware.
1882 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1884 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
1885 of loading gfxterm as gfxterm is embed in kernel on some platforms.
1886 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
1889 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1891 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
1892 now needs full arguments.
1894 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1896 * util/grub-mkrescue.c (main): Add trailing \n in
1897 .disk_label.contentDetails to be in line with previous shell script.
1899 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1901 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
1903 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1905 * util/grub-install-common.c (grub_install_parse): Recognize
1906 --compress=none like shell script did.
1908 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1910 * include/grub/misc.h: Replace check for __sparc64__ with one for
1911 __sparc__ as __sparc64__ isn't actually defined.
1913 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1915 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
1916 counterpart of fixing the naming of escc ports.
1918 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1920 * util/grub-install-common.c (platforms): Fix the order of entries and
1921 remove useless field val.
1923 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1925 * util/grub-install.c: Add new option --no-bootsector to skip
1926 installing of bootsector. Accept --grub-setup=/bin/true as
1927 backwards-compatible synonym.
1929 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1931 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
1932 order of qsort arguments (number of elements vs. element size).
1934 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1936 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
1937 the function of these files exceeds what can be sanely handled in shell
1938 in posix-comaptible way. Also writing it in C extends the functionality
1939 to non-UNIX-like OS and minimal environments.
1941 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1943 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
1944 compiling to thumb2.
1945 * grub-core/kern/arm/cache_armv7.S: Likewise.
1946 * grub-core/lib/arm/setjmp.S: Likewise.
1948 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
1950 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
1951 in grub_uboot_syscall
1953 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1955 Decrease stack usage in lexer.
1957 We have only 92K of stack and using over 4K per frame is wasteful
1959 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
1960 as macros so that compiler would remove useless structure on stack.
1961 Better solution would be to fix flex not to put this structure on
1962 the stack but flex is external program.
1964 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1966 Decrease stack usage in signature verification.
1968 We have only 92K of stack and using over 4K per frame is wasteful
1970 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
1972 (grub_verify_signature_real): Likewise.
1974 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1976 Decrease stack usage in mdraid 0.9x.
1978 We have only 92K of stack and using over 4K per frame is wasteful
1980 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
1983 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1985 Decrease stack usage in BtrFS.
1987 We have only 92K of stack and using over 4K per frame is wasteful
1989 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
1992 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1994 Decrease stack usage in JFS.
1996 We have only 92K of stack and using over 4K per frame is wasteful
1998 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
1999 stack. Note: this function is recursive.
2000 (grub_jfs_read_inode): Read only part we care about.
2002 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2004 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2007 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2009 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2011 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2013 * docs/grub.texi (Environment): Document cmdpath.
2015 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2017 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2018 Remove "unused" attribute from arguments, they are used.
2020 2013-11-15 Colin Watson <cjwatson@debian.org>
2022 * .gitignore: Only ignore grub-mk* at the top level.
2024 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2026 * util/grub-reboot.in (usage): Fix a typo.
2028 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2030 Replace libgcc version of ctz with our own.
2032 On upcoming arm64 port libgcc ctz* are not usable in standalone
2033 environment. Since we need ctz* for this case and implementation is
2034 in C we may as well use it on all concerned platforms.
2036 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2038 * configure.ac: Probe for linking format rather than guessing it based
2041 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2043 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2044 "1" prior to handoff.
2046 Reported by: M A Young.
2048 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2050 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2053 Reported by: M A Young.
2055 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2057 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2058 compilation on NetBSD.
2060 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2062 * acinclude.m4: Don't add -P on initial nm test.
2064 Note: even though this patch postdates Andrey's it bears 14 Nov as
2065 date due to timezone difference.
2067 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2069 * grub-core/Makefile.core.def (signature_test): Add missing
2072 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2074 * util/grub-install_header: Set localedir here, since this file is
2076 * util/grub-install.in: Remove setting of localedir.
2077 * util/grub-mkrescue.in: Likewise.
2079 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2081 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2083 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2085 * configure.ac: Move nm checks to the end.
2086 Call grub_PROG_NM_WORKS.
2087 * acinclude.m4: New check grub_PROG_NM_WORKS.
2088 Use $TARGET_CFLAGS -c when compiling test binary.
2090 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2092 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2095 2013-11-14 Matthew Garrett <mjg@redhat.com>
2097 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2098 cmdpath to firmware directory.
2100 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2102 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2103 at the start of second iteration.
2105 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2107 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2109 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2111 * Makefile.am (default_payload.elf): New target for easier coreboot
2114 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2116 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2117 clang (not necessarry with -no-integrated-as).
2118 * include/grub/symbol.h [__arm__]: Likewise.
2120 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2122 * configure.ac: Use -no-integrated-as on arm with clang.
2123 * INSTALL: Mention ARM compilation with clang.
2125 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2127 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2130 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2132 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2133 code for indirect block handling.
2135 Saves 185 bytes on compressed image.
2137 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2141 * Makefile.am: Remove build-grub-* in make clean.
2143 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2145 New files to gitignore.
2147 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2148 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2150 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2152 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2154 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2156 * .gitignore: fix rules for .dep* and add *.a post git migration
2158 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2160 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2163 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2165 * grub-core/kern/misc.c: Don't redirect divisions in the
2167 * include/grub/misc.h: Likewise.
2169 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2171 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2172 systems that require checking the return value of write.
2174 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2176 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2177 efibootmgr quiet when --debug is not used, rather than when it is.
2179 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2181 * gentpl.py (define_macro_for_platform_dependencies): Remove
2182 first (and thus unused) of two definitions for this function.
2183 (platform_dependencies): Likewise.
2185 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2187 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2188 functions, we only need to check this for the target, not the host.
2189 * configure.ac (grub_apple_cc): Likewise.
2191 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2193 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2194 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2195 asm to stay in arm even if surrounding is thumb.
2197 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2199 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2200 helper functions are needed for thumb.
2202 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2204 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2205 level / 3 division explicitly unsigned. Saves few bytes.
2207 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2209 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2211 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2213 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2216 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2218 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2219 grub_uboot_boot_data to asm part.
2221 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2223 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2225 (grub_uboot_syscall): Save/restore r9 and align stack.
2227 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2229 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2231 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2233 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2234 occurencies with END.
2236 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2238 * util/grub-editenv.c (help_filter, argp): Document how to delete
2239 the whole environment block.
2240 Reported by Dan Jacobson. Fixes Debian bug #726265.
2242 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2244 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2247 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2249 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2250 increment/decrement.
2252 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2254 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2255 compiling with clang.
2257 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2259 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2262 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2264 Redirect all divisions to grub_divmod64.
2266 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2268 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2270 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2272 Add missing includes of loader.h.
2274 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2276 * configure.ac: Allow disabling themes.
2278 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2280 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2282 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2284 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2285 until it becomes operational.
2287 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2289 * grub-core/Makefile.core.def (legacy_password_test): Disable
2290 on platforms where no legacycfg is compiled.
2291 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2292 load legacy_password_test.
2294 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2296 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2298 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2300 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2302 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2304 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2305 strict-aliasing warning.
2306 (fsync): Silence cast warning.
2308 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2310 * grub-core/commands/verify.c: Remove variable length arrays.
2311 Load gcry_dsa/gcry_rsa automatically.
2313 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2315 * grub-core/tests/signature_test.c: New test.
2317 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2319 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2322 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2324 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2325 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2327 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2329 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2331 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2333 * grub-core/fs/proc.c: Allow \0 in proc files.
2335 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2337 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2339 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2341 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2343 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2345 * grub-core/fs/ext2.c: Remove variable length arrays.
2347 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2349 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2352 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2354 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2355 * grub-core/disk/cryptodisk.c: Likewise.
2356 * grub-core/disk/geli.c: Likewise.
2357 * grub-core/disk/luks.c: Likewise.
2359 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2361 * grub-core/tests/legacy_password_test.c: New test.
2362 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2364 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2366 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2368 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2370 * grub-core/tests/pbkdf2_test.c: New test.
2372 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2374 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2376 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2378 * grub-core/io/lzopio.c: Remove variable length arrays.
2380 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2382 * include/grub/crypto.h: Add maximums on hash size and cipher block
2385 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2387 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2389 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2391 * grub-core/tests/xnu_uuid_test.c: New test.
2393 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2395 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2398 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2400 * grub-core/commands/hashsum.c: Remove variable length arrays.
2402 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2404 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2406 * tests/grub_func_test.in: Increase memory allocation.
2408 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2410 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2411 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2414 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2416 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2417 (grub_util_get_fd_size_os): ...this.
2418 (grub_hostdisk_flush_initial_buffer): New empty function.
2420 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2422 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2423 without --defined-only.
2425 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2427 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2428 rip-relative addressing in prologue.
2430 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2432 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2433 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2435 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2437 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2438 Add missing semicolon.
2440 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2442 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2444 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2446 * configure.ac: Check for lzma.h for enabling liblzma and allow
2449 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2451 Add missing includes of loader.h.
2453 2013-11-11 Fam Zheng <famcool@gmail.com>
2455 * util/grub.d/30_os-prober.in: Add minix entry.
2457 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2459 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
2460 right buffer for temporary load.
2462 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2464 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
2466 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2468 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
2471 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2473 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
2475 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
2477 (LzmaDec_InitDicAndState): Make static.
2479 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2481 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
2483 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2485 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
2487 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
2489 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2491 * docs/grub-dev.texi: Replace bzr references with git ones.
2493 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2495 * docs/grub.texi (Simple configuration): Remove reference to
2496 grub-reboot from saved default entry description - grub-default
2497 does not use it anymore.
2499 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2501 * configure.ac: Make efiemu test cflags match the cflags efiemu is
2504 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2506 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
2508 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2510 Fix grub_machine_fini bitrot.
2512 Reported by: Glenn Washburn.
2514 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2516 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
2518 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2520 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
2522 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
2525 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2527 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
2528 Add -march=core2 when testing compile of efiemu64.
2530 Thanks Andrey Borzenkov for spotting this.
2532 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2534 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
2535 XEN PV environment and load kernels.
2537 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2539 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
2540 * grub-core/loader/multiboot_mbi2.c: Likewise.
2542 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2544 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
2547 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2549 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
2551 Tested by: Denis 'GNUtoo' Carikli.
2553 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2555 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
2557 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2559 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
2560 Use to get rounded angle rather than truncated.
2562 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2564 * grub-core/term/serial.c: Add option for enabling/disabling
2565 RTS/CTS flow control.
2567 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2569 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
2572 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2574 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
2575 Use grub_fatal rather than divide by zero.
2576 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
2578 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2580 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
2582 (grub_fixed_fsf_divide): Likewise.
2584 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2586 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
2587 division by-zero and senseless negative divisions.
2589 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2591 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
2592 division by-zero and senseless negative divisions.
2593 (circprog_set_property): Don't accept negative num_ticks.
2595 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2597 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
2598 division by-zero and senseless negative divisions.
2600 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2602 * configure.ac: Use elf_*_fbsd on kfreebsd.
2604 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2606 * grub-core/tests/div_test.c: New test.
2608 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2610 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
2611 * grub-core/gfxmenu/gui_canvas.c: Likewise.
2612 * grub-core/gfxmenu/view.c: Likewise.
2613 * grub-core/video/fb/video_fb.c: Introduce new functions:
2614 grub_video_set_area_status, grub_video_get_area_status,
2615 grub_video_set_region, grub_video_get_region.
2616 * grub-core/video/bochs.c: Likewise.
2617 * grub-core/video/capture.c: Likewise.
2618 * grub-core/video/video.c: Likewise.
2619 * grub-core/video/cirrus.c: Likewise.
2620 * grub-core/video/efi_gop.c: Likewise.
2621 * grub-core/video/efi_uga.c: Likewise.
2622 * grub-core/video/emu/sdl.c: Likewise.
2623 * grub-core/video/radeon_fuloong2e.c: Likewise.
2624 * grub-core/video/sis315pro.c: Likewise.
2625 * grub-core/video/sm712.c: Likewise.
2626 * grub-core/video/i386/pc/vbe.c: Likewise.
2627 * grub-core/video/i386/pc/vga.c: Likewise.
2628 * grub-core/video/ieee1275.c: Likewise.
2629 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
2630 * include/grub/video.h: Likewise.
2631 * include/grub/video_fb.h: Likewise.
2632 * include/grub/fbfill.h: Updated render_target structure.
2633 grub_video_rect_t viewport, region, area
2634 int area_offset_x, area_offset_y, area_enabled
2635 * include/grub/gui.h: New helper function
2636 grub_video_bounds_inside_region.
2637 * docs/grub-dev.texi: Added information about new functions.
2639 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2641 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
2644 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2646 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
2648 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
2650 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2652 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
2653 simple division on arm and ia64.
2655 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2657 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
2660 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2662 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
2664 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2666 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
2667 prefix symbol, not @.
2669 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2671 * INSTALL: Add note about older gcc and clang.
2673 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2675 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
2677 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2679 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
2680 NULL pointer dereference.
2682 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2684 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
2687 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2689 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
2692 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2694 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
2696 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
2697 * grub-core/disk/geli.c (ascii2hex): Likewise.
2699 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2701 * configure.ac: Run linker tests without -Werror.
2702 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
2703 Change all occurences of -static-libgcc resp -lgcc to
2704 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
2706 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2708 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
2710 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2712 Allow compiling with clang (not really supported though).
2714 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
2716 * configure.ac: Add -no-integrated-as when using clangfor asm files.
2717 Add -mrtd -mregparm=3 on i386 when not using clang.
2718 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
2720 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2722 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
2724 * grub-core/lib/reed_solomon.c: Likewise.
2725 * include/grub/i386/gdb.h: Likewise.
2726 * include/grub/i386/pc/int.h: Likewise.
2727 * include/grub/i386/pc/pxe.h: Likewise.
2728 * include/grub/ieee1275/ieee1275.h: Likewise.
2730 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2732 Import libgcrypt 1.5.3.
2734 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2736 * configure.ac: Don't add -Wcast-align on x86.
2738 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2740 * configure.ac: Add -freg-struct-return on all platforms that
2743 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2745 * acinclude.m4: Use -Werror on parameter tests.
2746 * configure.ac: Likewise.
2748 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2750 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
2752 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2754 * configure.ac: Check that -malign-loops works rather than assuming that
2755 either -falign-loops or -malign-loops work.
2757 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2759 * configure.ac: Remove -fnested-functions. We don't need it anymore.
2761 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2763 * configure.ac: Prevent cflags leaking to subsequent tests by always
2764 resetting cflags to target_cflags in target tests.
2766 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2768 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
2771 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2773 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
2775 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2777 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
2779 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2781 * grub-core/normal/cmdline.c (grub_cmdline_get):
2782 Remove nested functions.
2784 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2786 * tests/test_sha512sum.in: Make it work on emu.
2788 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2790 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
2792 (grub_bidi_line_logical_to_visual): Likewise.
2794 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2796 Remove vestiges of -Wunsafe-loop-optimisations.
2798 * conf/Makefile.common (CFLAGS_GNULIB): Remove
2799 -Wno-unsafe-loop-optimisations.
2800 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
2802 * grub-core/io/gzio.c: Likewise.
2803 * grub-core/script/parser.y: Likewise.
2804 * grub-core/script/yylex.l: Likewise.
2805 * util/grub-mkfont.c: Likewise.
2807 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2809 * util/grub-mkfont.c (process_cursive): Remove nested function.
2811 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2813 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
2814 (grub_boot_time): Likewise.
2816 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2818 * include/grub/symbol.h (FUNCTION): Use @function rather than
2820 (VARIABLE): Likewise.
2822 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2824 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
2826 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2828 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
2829 (parse_dhcp_vendor): Likewise.
2831 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2833 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
2835 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2837 * grub-core/gettext/gettext.c (main_context), (secondary_context):
2838 Define after defining type and not before.
2840 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2842 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
2844 (grub_gcm_decrypt): Likewise.
2845 (algo_decrypt): Likewise.
2846 (grub_zfs_decrypt_real): Transform error type.
2848 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2850 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
2852 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2854 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
2855 (grub_usbms_cbi_reset): Likewise.
2856 (grub_usbms_bo_reset): Likewise.
2857 (grub_usbms_reset): Likewise.
2858 (grub_usbms_attach): Likewise.
2859 (grub_usbms_transfer_cbi): Likewise.
2861 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2863 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
2864 "checksum = checksum;".
2866 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2868 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
2871 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2873 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
2876 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2878 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
2880 (grub_ehci_fini_hw): Likewise.
2881 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
2883 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2885 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
2886 return grub_usb_err_t for cosistency. All users updated.
2888 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2890 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
2891 assigning to itself.
2893 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
2894 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2896 Issue separate DNS queries for ipv4 and ipv6
2898 Adding multiple questions on a single DNS query is not supportted by
2899 most DNS servers. This patch issues two separate DNS queries
2900 sequentially for ipv4 and then for ipv6.
2902 Fixes: https://savannah.gnu.org/bugs/?39710
2904 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
2905 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
2906 * (grub_net_dns_lookup): Now using separated dns packages.
2907 * (grub_cmd_nslookup): Add error condition.
2908 * (grub_cmd_list_dns): Print DNS option.
2909 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
2910 --prefer-ipv4, and --prefer-ipv6.
2911 * include/grub/net.h (grub_dns_option_t): New enum.
2912 * (grub_net_network_level_address): option added.
2914 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
2916 * grub-core/video/fb/video_fb.c: Merge two blit functions
2919 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2921 * grub-core/term/terminfo.c: Add sequences for home and end.
2923 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2925 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
2928 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2930 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
2933 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2935 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
2936 e-mail by Per Öberg.
2938 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2940 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
2943 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
2945 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
2947 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
2949 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2951 * docs/grub.texi: Document usage of menuentry id.
2953 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2955 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
2957 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
2959 * grub-core/commands/i386/nthibr.c: New command.
2961 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2963 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
2965 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2967 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
2970 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2972 Support GRUB_DISABLE_SUBMENU config.
2974 Inspired by patch from Prarit Bhargava.
2976 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2978 * docs/grub.texi: Mention RSA support.
2980 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2982 * grub-core/commands/verify.c: Add RSA support.
2984 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2986 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
2987 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
2988 device is known to be ATAPI.
2990 2013-11-03 Mike Frysinger <vapier>
2992 * configure.ac: Don't add target-prefix.
2994 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2996 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
2999 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3001 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3002 if language is English.
3004 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3006 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3008 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3010 * configure.ac: Don't add -m32/-m64 on emu.
3014 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3015 broken linux headers.
3017 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3019 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3021 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3023 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3024 Reed-Solomon recovery if more than half of redundancy info is 0.
3026 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3028 * util/grub-mount.c: Handle symlinks to directories.
3030 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3032 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3033 find_file recursively for symlink.
3035 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3037 * tests/util/grub-shell.in: Copy themes.
3039 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3041 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3043 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3045 * configure.ac: Use 0x8000 for address instead of 8000.
3047 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3049 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3052 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3054 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3057 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3059 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3061 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3063 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3064 file_progress_read_hook.
3065 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3067 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3069 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3072 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3074 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3076 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3078 Rewrite blocklist functions in order to get progress when
3079 reading large extents and decrease amount of blocklist hook calls.
3081 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3083 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3086 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3088 Support --base-clock for serial command to handle weird cards with
3089 non-standard base clock.
3091 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3093 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3095 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3096 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3097 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3098 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3099 + strcpy rather than strncpy.
3101 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3103 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3104 (check_pool_label): Likewise. Fixes overflow.
3105 (nvlist_find_value): Fix comparison.
3107 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3109 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3110 more appropriate functions.
3112 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3114 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3117 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3119 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3121 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3123 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3126 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3128 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3130 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3132 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3133 (initialize_tables): reset tl and td to NULL after freeing.
3135 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3137 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3139 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3141 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3144 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3146 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3148 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3150 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3153 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3155 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3156 a page in protected space.
3158 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3160 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3161 allocate space for zero-sized modules.
3163 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3165 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3167 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3169 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3171 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3173 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3174 safeguards. Fixes a crash with i386/pc/console.c.
3176 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3178 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3179 and grub_hostfs_init.
3181 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3183 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3184 windows method on other platforms without good stat as well.
3186 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3188 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3190 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3192 Make / in btrfs refer to real root, not the default volume.
3193 Modify mkrelpath to work even if device is mounted with subvolid option.
3195 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3197 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3199 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3202 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3204 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3207 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3209 * docs/autoiso.cfg: New file.
3211 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3213 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3214 COND_GRUB_PE2ELF conditions.
3216 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3218 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3219 "vnd", "rd" and "fd" disks.
3221 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3223 Move grub_disk_write out of kernel into disk.mod.
3225 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3227 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3230 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3232 * grub-core/kern/misc.c (grub_abort): Make static
3234 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3236 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3237 transform invalid unicode codepoints.
3239 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3241 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3244 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3246 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3248 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3250 Consolidate cpuid code.
3252 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3254 Move cpuid code to cpuid.h and TSC code to tsc.c.
3256 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3258 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3260 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3262 * util/grub-mkconfig.in: Replace $0 with $self.
3263 * util/grub-reboot.in: Likewise.
3264 * util/grub-set-default.in: Likewise.
3266 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3268 * docs/osdetect.cfg: New file.
3270 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3272 * tests/util/grub-shell.in: Add new --debug option.
3274 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3276 * tests/test_unset.in: New test.
3278 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3280 * tests/test_sha512sum.in: New test.
3282 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3284 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3285 * include/grub/misc.h: Remove strncat.
3286 * grub-core/lib/posix_wrap/string.h: Likewise.
3288 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3290 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3291 Try to handle more than 0xFFFF packets.
3292 Reported by: Bernhard Übelacker <bernhardu>.
3293 He also spotted few overflows in first version of this patch.
3295 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3297 * tests/date_unit_test.c: New test.
3299 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3301 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3302 of first three years after start of validity of unixtime.
3304 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3306 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3307 division as the one making more sense.
3308 (update_screen): Likewise.
3309 (complete): Likewise.
3311 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3313 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3315 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3317 Make char and string width grub_size_t rather than grub_ssize_t.
3319 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3321 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3323 (grub_history_replace): Likewise.
3325 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3327 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3330 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3332 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3335 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3337 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3338 Use unsigned divisions rather than signed variants.
3340 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3342 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3343 unsigned arithmetics.
3346 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3348 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3350 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3352 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3353 rather than signed one.
3354 (recovery): Likewise.
3356 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3358 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3360 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3362 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3365 2013-10-25 Jon McCune <jonmccune@google.com>
3367 * docs/grub.texi: Cleanup security documentation around signatures.
3369 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3371 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3373 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3375 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3378 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3380 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3381 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3382 functions when compiling for kernel.
3384 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3386 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3387 unsigned long long when using %llu.
3389 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3391 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3392 terminal after updating progress.
3394 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3396 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3397 argument. We don't disable Gate A20 in this code.
3399 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3401 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3402 Conceptually based on change in branch "vbe-on-coreboot".
3404 2013-10-24 Robert Millan <rmh@gnu.org>
3406 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3407 numeric constants with their symbolic equivalent.
3408 Taken from branch "vbe-on-coreboot".
3410 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3412 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3414 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3416 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3417 divmod64 for offset division.
3419 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3421 Rename .bzrignore to .gitignore. Add "*.o" rule.
3423 * .bzrignore: Renamed to...
3424 * .gitignore: ...this.
3426 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3428 Add new progress module that displays the load progress of files.
3430 * grub-core/lib/progress.c: New file.
3431 * grub-core/Makefile.core.def (progress): New module.
3432 * grub-core/kern/file.c (grub_file_open): File name added.
3433 * (grub_file_read): Progress hook added.
3434 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3435 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3436 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3437 * include/grub/file.h (struct grub_file): Add progress module members.
3438 * include/grub/term.h (struct grub_term_output): Likewise.
3439 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3440 Terminal velocity added.
3441 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3442 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3443 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
3444 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
3445 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
3446 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
3447 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
3448 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
3449 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
3450 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
3451 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
3452 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
3454 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3456 Verify signatures of signatures unless --skip-sig is specified.
3458 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3460 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3463 Saves 70 bytes on compressed image.
3465 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3467 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
3470 Saves 10 bytes on compressed image.
3472 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3474 * grub-core/kern/misc.c (grub_isprint): Move to ...
3475 * include/grub/misc.h (grub_isprint): ... here. Make inline.
3477 Saves 20 bytes on compressed image due to remving exporting.
3479 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3481 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
3483 Saves 5 bytes on compressed image.
3485 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3487 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
3490 Saves 379 bytes on compressed image.
3492 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3494 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
3496 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3498 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
3500 Saves 40 bytes on compressed image.
3502 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3504 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
3505 mask rather than 64-bit type.
3507 Saves 20 bytes on compressed image.
3509 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3511 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
3512 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
3514 Saves 273 bytes on compressed image.
3516 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3518 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
3519 variable length arrays.
3521 Saves 50 bytes on compressed image.
3523 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3525 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3527 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3529 * grub-core/fs/ufs.c: Remove variable length arrays.
3531 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3533 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
3535 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3537 * grub-core/fs/zfs.c: Remove variable length arrays.
3538 Reduces zfs.mod by 160 bytes (208 compressed).
3540 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3542 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
3544 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3546 * grub-core/net/arp.c: Remove variable length arrays.
3547 * grub-core/net/bootp.c: Likewise.
3548 * grub-core/net/dns.c: Likewise.
3549 * grub-core/net/icmp6.c: Likewise.
3550 * grub-core/net/net.c: Likewise.
3552 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3554 * grub-core/fs/ntfs.c: Remove variable length arrays.
3555 Increases ntfs.mod by 64 bytes (but decreases by 3 when
3558 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3560 * grub-core/fs/hfs.c: Remove variable length arrays.
3561 Reduces hfs.mod by 8 bytes (52 compressed).
3563 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3565 * grub-core/fs/udf.c: Remove variable length arrays.
3566 Increases udf.mod by 128 bytes (but decreases by 13 when
3569 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3571 * grub-core/fs/iso9660.c: Remove variable length arrays.
3572 Increases iso9660.mod by 200 bytes (but decreases by 79 when
3575 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3577 * grub-core/fs/nilfs2.c: Remove variable length arrays.
3578 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
3581 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3583 * grub-core/fs/xfs.c: Remove variable length arrays.
3584 Reduces xfs.mod by 40 bytes (43 compressed).
3586 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3588 * grub-core/fs/fshelp.c: Remove variable length arrays.
3589 Reduces fshelp.mod by 116 bytes (23 compressed).
3591 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3593 * grub-core/normal/completion.c: Remove variable length arrays.
3594 * grub-core/normal/menu_entry.c: Likewise.
3596 Reduces normal.mod by 496 bytes.
3598 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3600 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
3601 by 356 bytes (158 compressed).
3603 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3605 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
3606 by 364 bytes (169 compressed).
3608 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3610 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
3611 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
3612 * include/grub/types.h (grub_unaligned_uint64_t): New type.
3614 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3616 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
3617 bitmasks to small structures of size chosen to fit in registers.
3619 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3621 * conf/Makefile.common: Use -freg-struct-return on i386. This
3622 decreases code size and improves performance.
3624 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3626 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
3628 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3630 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
3632 Simplify expressions to save around 256 bytes in kernel.img.
3633 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
3635 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3637 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
3638 Use GRUB_UTIL_FD_O_* rather than O_*.
3640 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3642 Add haiku-specific functions.
3644 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3646 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
3648 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3650 Move stat () and device mode checking into OS-dependent files as
3651 long as performance doesn't suffer.
3653 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3655 Split make_system_path_relative_to_its_root into separate file
3656 relpath.c from getroot.c as it's common between unix and haiku
3657 but otherwise haiku doesn't use any functions from unix getroot.c.
3659 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3661 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
3663 (grub_util_is_special_file): Likewise.
3665 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3667 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
3668 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
3670 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3672 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
3673 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
3675 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3677 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
3678 (load_image): Likewise.
3680 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3682 * util/grub-render-label.c: Move backend part to ...
3683 * util/render-label.c: ... here.
3685 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3687 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
3688 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
3690 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3692 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
3694 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3696 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
3697 CD-ROM in case when it's declared as having subpartitions.
3699 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3701 Don't add -lm on haiku.
3703 * configure.ac: Define BUILD_LIBM to -lm on most platforms
3705 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
3708 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3710 * configure.ac: Use -melf_*_haiku as target on haiku.
3712 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3714 * Makefile.util.def: Add util/setup.c to extra_dist.
3716 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3718 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
3719 unknown types through.
3721 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3723 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
3724 (grub_util_check_char_device): Likewise.
3725 * include/grub/emu/getroot.h: Likewise.
3727 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3729 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
3730 memset rather than inline static function.
3732 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3734 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
3735 not doing embedded decompressor.
3737 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3739 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
3741 * grub-core/kern/disk.c: Likewise.
3742 * grub-core/kern/misc.c: Likewise.
3743 * include/grub/parser.h: Likewise.
3744 * include/grub/script_sh.h: Likewise.
3745 * include/grub/zfs/zfs.h: Likewise.
3747 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3749 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
3751 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3753 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
3754 defined before trying to use it.
3756 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3758 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
3761 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3763 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
3764 Use __unused__ rather than __used__ on gcc < 3.2.
3766 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3768 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
3770 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
3772 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3774 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
3776 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3778 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
3779 * include/grub/emu/misc.h: Likewise.
3781 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3783 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
3786 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
3788 * grub-core/tests/checksums.h: Regenerated due to progress bar
3789 get_minimal_size changes.
3791 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
3793 Added `tr' command support.
3795 * grub-core/commands/tr.c: New file.
3796 * grub-core/Makefile.core.def: Build rules for new module.
3798 * tests/grub_cmd_tr.in: New test.
3799 * Makefile.util.def: Build rules for new test.
3801 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3803 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
3805 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3807 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
3808 * docs/gurb.texi: Likewise.
3810 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3812 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
3813 Pixmap highlighted section with east and west slices was displayed
3814 incorrectly due to negative width of the central slice.
3816 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3818 * docs/grub.texi: Graphical options information update.
3819 Removed outdated. Updated current. Inserted missed.
3821 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3823 * docs/grub.texi: Mention few new platform-specific commands.
3825 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3827 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
3828 currently used so this doesn't really have any effect.
3829 Reported by: Douglas Ray <dougray>
3831 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3833 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
3834 compilation but prevents gcc from displaying messages in non-Latin
3836 * conf/Makefile.common: Likewise.
3838 2013-10-16 Hiroyuki YAMAMORI
3840 Handle Japanese special keys.
3841 Reported by: Hiroyuki YAMAMORI.
3842 Codes supplied by: Hiroyuki YAMAMORI.
3844 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
3846 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
3848 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
3850 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
3851 * docs/grub.texi: Likewise.
3853 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3855 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
3856 value in case of incomplete read.
3857 (grub_util_fd_write): Likewise.
3859 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3861 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
3863 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3865 * util/grub-editenv.c (create_envblk_file): More from here ...
3866 * util/editenv.c (grub_util_create_envblk_file): ... to here.
3868 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3870 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
3871 canonicalize file name before doing the rest.
3873 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3875 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
3878 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3880 Define grub_util_is_directory/regular/special_file and
3881 use OS-dependent versions rather than to rely on stat().
3883 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3885 * util/grub-mkimage.c: Move backend part to ...
3886 * util/mkimage.c: ... here.
3888 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3890 Allow compilation with mingw64 albeit with warnings due to lack of
3893 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
3894 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
3895 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
3896 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
3898 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
3900 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3902 Remove leftover references to some of the system headers.
3904 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3906 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
3909 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3911 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
3914 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3916 Split out blocklist retrieving from setup.c to
3917 grub-core/osdep/blocklist.c and add windows implementation since
3918 generic version doesn't work on NTFS on Windows due to aggressive
3921 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3923 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
3926 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3928 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
3929 Cut tailing newline. Remove arbitrary limitation. Always use
3930 grub_util_tchar_to_utf8.
3932 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3934 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
3935 * tests/printf_unit_test.c (printf_test): Add %% tests.
3936 Reported by: Paulo Flabiano Smorigo.
3938 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3940 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
3943 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3945 * configure.ac: Check for nvlist_lookup_string in nvpair since we
3946 use nvlist_lookup_string and don't use nvlist_print.
3948 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3950 Add wrappers around rename, unlink, mkdir, opendir, readdir and
3951 closedir to handle filename charset translation.
3953 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3955 * include/grub/emu/hostdisk.h: Move file operations to
3956 * include/grub/emu/hostfile.h: ... here.
3958 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3960 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
3963 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3965 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
3967 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3969 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
3970 and remove export.h.
3972 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3974 * grub-core/kern/emu/error.c: Removed.
3975 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
3976 explicitly as it's already in libgnu.a.
3978 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3980 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
3981 config-util.h include.
3983 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3985 Split emunet into platform-dependent and GRUB-binding parts. Keep
3986 platform-dependent part in kernel for easy access to OS functions.
3988 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3990 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
3993 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3995 * grub-core/osdep/windows/emuconsole.c: New file.
3997 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3999 * conf/Makefile.extra-dist: Add osdep/*/init.c
4001 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4003 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4005 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4007 * util/grub-probe.c (probe): Separate different drives in hint-str
4008 by spaces and not newlines.
4009 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4011 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4013 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4016 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4018 Pass-through unknown E820 types. It required reorganisation of mmap
4021 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4023 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4025 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4027 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4030 2013-10-14 qwertial <qwertial>
4032 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4034 2013-10-14 Jon McCune <jonmccune@google.com>
4036 * docs/grub.texi: Document new signatures possibility.
4038 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4040 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4042 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4044 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4046 (grub_util_tchar_to_utf8): Likewise.
4048 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4050 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4051 * grub-core/kern/emu/main.c: Add missing include.
4052 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4053 Don't call grub_util_init_nls.
4054 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4057 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4059 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4062 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4064 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4066 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4068 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4070 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4072 Add a wrapper for fopen. On unix-like systems just pass-through. On
4073 windows use unicode version.
4075 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4077 Move set_program_name and init_nls to host_init. On windows
4078 fix in this fuction console and argument charset as well.
4080 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4082 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4083 GRUB_ENABLE_CRYPTODISK.
4085 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4086 GRUB_ENABLE_CRYPTODISK.
4087 * util/grub-mkconfig_lib.in: Likewise.
4089 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4091 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4093 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4095 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4096 error when enabling debug.
4098 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4100 * configure.ac: Use -melf_*_obsd on openbsd.
4102 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4104 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4106 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4108 * include/grub/misc.h: Use gnu_printf rather than printf as format
4109 template since our functions are independent of libc.
4111 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4113 * util/grub-setup.c (setup): Move copying of partition table as
4114 futher up as possible to avoid possible overwrite by floppy routines.
4116 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4118 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4120 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4122 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4123 * docs/grub.texi: Likewise.
4125 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4127 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4128 it's mostly unused. Move vestiges to the callers.
4130 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4132 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4133 version of salt and hash. Use grub_snprintf rather than snprintf.
4135 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4137 * docs/grub.texi: Fix problem with braces.
4139 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4141 * conf/Makefile.extra-dist: Fix extra-dist list.
4142 * grub-core/Makefile.core.def: Likewise.
4144 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4146 * docs/grub.texi: Document disk names used on Windows and AROS.
4148 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4150 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4152 * grub-core/osdep/aros/hostdisk.c: Likewise.
4154 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4156 Avoid including hostfile.h when not necessarry as it pulls
4157 in OS-specific headers which may redefine generic names
4160 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4162 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4163 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4164 scrollbar_bottom_pad
4165 * docs/grub.texi: Likewise.
4167 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4169 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4171 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4173 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4175 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4177 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4179 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4182 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4184 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4187 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4189 Move OS-specific driver configuration to grub_util_fd_open. This
4190 moves OS-dependent parts from kern/emu/hostdisk.c to
4191 grub-core/osdep/*/hostdisk.c.
4193 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4195 * util/grub-mkimage.c (generate_image): Use size_t instead of
4197 * util/grub-mkimagexx.c (locate_sections): Likewise.
4198 (load_image): Likewise.
4200 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4202 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4204 (grub_util_write_image): Likewise.
4206 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4208 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4209 get random when no RNG is available.
4210 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4212 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4214 * include/grub/util/lvm.h: Removed.
4216 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4218 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4219 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4221 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4223 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4225 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4227 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4229 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4231 * grub-core/net/drivers/emu/emunet.c: Move to ..
4232 * grub-core/osdep/linux/emunet.c: ..here.
4234 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4236 * util/ieee1275/ofpath.c: Move to ...
4237 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4238 * grub-core/osdep/basic/ofpath.c: ..here.
4240 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4242 Move password-querying (util-version) routines to grub-core/osdep.
4244 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4246 Move sleep routines to grub-core/osdep.
4248 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4250 Move OS-dependent files to grub-core/osdep and document it.
4252 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4254 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4255 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4257 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4259 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4261 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4263 * util/misc.c: Remove leftover inclusion of malloc.h.
4265 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4267 * include/grub/setjmp.h: Remove leftover GRUBOF.
4269 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4271 * util/raid.c: Fold into ...
4272 * util/getroot_linux.c: ... here. Make all functions static.
4274 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4276 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4277 macros to GRUB ones.
4279 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4281 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4282 occasional bug. If there are too many boot entries or too low
4283 scrollbar height then we need to use another formula to calculate
4284 the position and size of the scrollbar thumb.
4286 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4288 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4290 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4292 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4293 * docs/grub.texi: Likewise.
4295 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4297 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4300 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4302 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4303 minimal width calculations.
4305 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4307 * docs/grub.texi: Update note on colors on emu console.
4309 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4311 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4312 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4313 it's FS and not GRUB limitation.
4315 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4317 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4319 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4321 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4323 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4325 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4326 kernels by version order.
4328 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4330 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4332 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4334 Add AROS hostdisk and getroot routines.
4336 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4338 Make cryptodisk and diskfilter probe data retrievable programmatically
4339 and not just printable.
4341 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4343 Split random retrieving code into separate files.
4345 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4347 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4350 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4352 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4354 * grub-core/tests/fake_input.c: Likewise.
4355 * grub-core/tests/cmdline_cat_test.c: Likewise.
4357 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4359 * grub-core/video/capture.c: Do not do finalization when .fini
4360 is called as there is explicit capture_end.
4362 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4364 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4365 changing windows to avoid crash.
4367 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4369 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4371 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4373 * po/exclude.pot: Add several strings to exclude.
4375 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4377 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4379 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4381 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4382 ./util/grub-gen-asciih.c to exclude list.
4384 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4386 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4387 and don't mark error strings for translation.
4389 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4391 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4392 properly in case of missing block size.
4394 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4396 * grub-core/lib/arm/setjmp.S: Add missing license section.
4398 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4400 * po/swiss.sed: Add replacement for key names and for term computer.
4402 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4404 * grub-core/gfxmenu/theme_loader.c: New global options for the
4405 theme background image handling. desktop-image-scale-method,
4406 desktop-image-h-align, desktop-image-v-align.
4407 * grub-core/gfxmenu/view.c: Likewise.
4408 * include/gfxmenu_view.h: Likewise.
4409 * include/bitmap_scale.h: Proportional scale functions introduced.
4410 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4411 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4412 cases of unexpected input variables for scale functions.
4413 * docs/grub.texi: Updated documentation for new options.
4415 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4417 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4419 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4421 * grub-core/tests/checksums.h: Corrected due to changes in
4422 bilinear interpolation function.
4424 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4426 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4427 to eliminate artefacts in bilinear interpolation.
4429 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4431 * grub-core/video/readers/tga.c: Support paletted tga.
4433 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4435 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4436 incorrect cbcr setting when in color mode.
4438 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4440 * grub-core/video/readers/png.c: Support paletted images and clean up
4443 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4445 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
4446 usage of wrong table which resulted in mishandling of 4-byte
4449 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4451 * grub-core/term/terminfo.c: Add Home and End key sequences.
4453 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4455 * grub-core/video/readers/png.c (grub_png_decode_image_header):
4456 Fix formula for computing total number of bytes.
4458 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4460 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
4461 image processing, fix big-endian and support grayscale.
4463 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4465 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
4466 Correctly will with maximum transparency when using index color.
4468 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4470 * grub-core/video/readers/png.c: Support grayscale
4472 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4474 * grub-core/video/readers/jpeg.c: Support grayscale.
4476 2013-09-26 Jon McCune <jonmccune@google.com>
4478 * grub-core/commands/loadenv.c: Support skipping signature check
4479 and variable names filtering.
4481 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4483 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
4484 * grub-core/kern/emu/hostfs.c: Likewise.
4485 * util/getroot_unix.c: Likewise.
4487 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4489 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
4490 Migrate all explicit defines to this new one.
4492 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4494 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
4495 grub_util_fd_strerror when using grub_util_fd_*.
4496 (grub_util_fd_open_device): Likewise.
4497 (grub_util_biosdisk_read): Likewise.
4498 (grub_util_biosdisk_write): Likewise.
4499 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
4500 (grub_util_fd_strerror): Likewise.
4501 (grub_util_fd_sync): Likewise.
4502 (grub_util_fd_close): Likewise.
4503 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
4504 (grub_util_fd_close): Likewise.
4505 (grub_util_fd_strerror): Likewise.
4506 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
4507 function proto rather than macro.
4508 (grub_util_fd_sync): Likewise.
4509 (grub_util_fd_open): Likewise.
4510 (grub_util_fd_strerror): New proto.
4512 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4514 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
4515 platforms on which it doesn't work.
4517 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4519 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
4520 stat immediately to where it's used.
4522 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4524 * util/getroot.c (grub_util_check_block_device): Move to ...
4525 * util/getroot_unix.c (grub_util_check_block_device): ... here.
4526 * util/getroot.c (grub_util_check_char_device): Move to ...
4527 * util/getroot_unix.c (grub_util_check_char_device): ... here.
4529 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4531 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
4534 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
4536 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
4538 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
4540 * docs/grub.texi (File name syntax): Document ZFS filenames
4541 (/volume@snapshot/...).
4543 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4545 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
4546 Always return full path. Fixes a problem with mkrelpath.
4548 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4550 * util/grub-install.in: Add GPT PReP support.
4551 * util/grub-probe.c (probe): Support GPT partition type.
4552 (main): Support -t gpt_parttype.
4554 2013-09-23 Aleš Nesrsta <starous@volny.cz>
4556 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
4558 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
4560 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
4562 2013-09-23 Tim Hardeck <thardeck>
4564 * util/grub.d/10_hurd.in: Filter out character for the class.
4565 * util/grub.d/10_kfreebsd.in: Likewise.
4566 * util/grub.d/10_linux.in: Likewise.
4567 * util/grub.d/20_linux_xen.in: Likewise.
4569 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
4571 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
4574 2013-09-23 Josh Triplett <josh@joshtriplett.org>
4576 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
4579 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4581 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
4582 doesn't use posix_wrap. Keep literal -fno-builtin however.
4584 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4586 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
4588 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4591 * configure.ac: Do not enable -Wmissing-noreturn as its
4592 usefulness is limited and creates problems on some OS notably with
4593 code generated by bison.
4595 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4598 * configure.ac: Do not explicitly enable -Waddress as it's not
4599 supported by all gcc and when it is, it's already enabled by -Wall.
4601 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4603 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
4604 desactivated use of EDID at all.
4606 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4609 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
4610 video if no text is available.
4612 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4615 * configure.ac: Substitute TARGET_RANLIB.
4617 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4620 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
4622 Based on patches from AROS.
4624 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4627 * grub-core/Makefile.am: Override STRIP and RANLIB.
4628 * configure.ac: compute TARGET_RANLIB.
4629 * INSTALL: Document TARGET_RANLIB
4631 Based on patches from AROS.
4633 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4635 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
4636 that floppies are unpartitioned.
4638 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4640 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
4641 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
4643 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4645 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
4646 less nice but more portable.
4647 * grub-core/lib/posix_wrap/wchar.h: Likewise.
4649 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4651 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
4653 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
4655 (grub_cryptodisk_cheat_insert): Likewise.
4656 (grub_cryptodisk_close): Likewise.
4658 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4660 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
4661 Use windows path for DEFAULT_DIRECTORY.
4663 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4665 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
4666 difference was likely just gcc version, not anything mingw-related.
4668 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4670 Use Winapi on both cygwin and mingw32 to share more code between both.
4672 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
4674 * util/grub-install.in: Add --grub-editenv option.
4675 * util/grub-install_header (grub_compress_file): Explicitly check for
4676 plain file to avoid cp error.
4678 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
4680 * docs/grub.texi (Device syntax): Document new LVM UUID based device
4681 names; fix LVM driver name (lvm, not lv).
4682 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
4685 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4687 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
4688 files rather than one file with loads of #if's.
4689 * util/getroot.c: Likewise.
4691 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4693 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
4695 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4697 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
4698 GNU/Hurd to the list of checked PRNG.
4700 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4702 * configure.ac: On FreeBSD use -melf_*_fbsd format.
4704 2013-09-21 Ales Nesrsta <starous@volny.cz>
4706 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
4708 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4710 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
4711 * grub-core/disk/lvm.c: Add LVM UUIDs.
4712 * util/getroot.c: Use LVM UUIDs whenever possible.
4714 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
4716 * docs/grub.texi (Networking commands): Add documentation for
4717 network related commands.
4719 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4721 * util/getroot.c (grub_util_open_dm): Check major rather than the name
4722 to determine if device is handled by devmapper.
4723 (convert_system_partition_to_system_disk): Likewise.
4724 (get_dm_uuid): Don't check explicitly if device is mapped, it's
4725 already done in grub_util_open_dm.
4727 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
4729 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
4730 Clean up stack manipulation (sync_caches_armv*)
4732 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4734 * util/lvm.c: Remove since unused. Remove remaining references.
4736 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4738 Handle the case of partitioned LVM properly.
4740 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
4741 Stop on meeting LVM, mpath or DMRAID.
4742 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
4743 (read_device_map): Likewise.
4744 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
4745 device is full disk rather than erroring out on LVM and similar cases.
4747 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4749 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
4751 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4753 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
4755 Reported by: Leif Lindholm
4757 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
4758 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4760 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
4763 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
4765 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
4766 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
4768 2013-09-18 Douglas Ray <dougray@cpan.org>
4770 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
4773 2013-09-18 Aleš Nesrsta <starous@volny.cz>
4775 * docs/grub.texi: Fix broken link.
4777 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
4779 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
4780 to break endless loop.
4782 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4784 * util/grub-fstest.c: Fix several printf formats.
4785 * util/grub-mkimage.c: Likewise.
4786 * util/grub-mkimagexx.c: Likewise.
4787 * util/grub-script-check.c: Likewise.
4789 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4791 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
4794 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4796 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
4798 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4800 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
4801 removed in current versions cygwin_conv_*.
4803 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4805 * configure.ac: Disable efiemu runtime on cygwin.
4807 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4809 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
4810 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
4812 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4814 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
4817 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4819 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
4821 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
4824 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4826 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
4827 when on x86 and not cygwin.
4828 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
4831 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4833 * configure.ac: Set CPP to build one when checkoing for freetype for
4836 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4838 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
4839 [!GRUB_BUILD]: Remove has_argument.
4841 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4843 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
4844 Replace with a dummy.
4846 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4848 * configure.ac: Don't change host_os from mingw to cygwin.
4850 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4852 * configure.ac: Change target_os from windows to cygwin.
4854 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4856 Handle grub-pe2elf and grub-mkfont for cases when build != host.
4858 * Makefile.am (build-grub-mkfont): Don't include gnulib.
4859 (build-grub-gen-asciih): Likewise.
4860 (build-grub-gen-widthspec): Likewise.
4861 * Makefile.util.def (grub-pe2elf): Remove.
4862 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
4863 * configure.ac: Separate tests for build.
4864 Move ./build-grub-pe2elf to grub-core.
4866 * grub-core/Makefile.am (build-grub-pe2elf): New target.
4867 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
4869 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
4871 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
4872 * util/grub-pe2elf.c: Simplify not to rely on getopt.
4873 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
4875 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4877 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
4878 mingw32 as well based on grub_util_get_disk_size.
4879 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
4880 grub_util_get_fd_size.
4882 (fsync): Moved to ...
4883 * grub-core/kern/emu/misc.c (fsync): ... here.
4885 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4887 * include/grub/mm.h (grub_extend_alloc): Remove.
4888 * grub-core/loader/i386/pc/plan9.c: Use own version of
4889 grub_extend_alloc with appropriate types.
4891 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4893 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
4895 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4897 * util/getroot.c: Include sys/wait.h only when we need waitpid.
4899 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4901 Fix dependencies on cygwin.
4903 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
4904 dependencies when used and defined.
4905 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
4907 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4909 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
4910 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
4912 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4914 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
4915 implementation available to cause compile-time rather than runtime
4918 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4920 * util/grub-fstest.c: Don't check for symlinks on windows.
4922 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4924 * INSTALL: Mention unavailability of man pages when cross-compiling.
4926 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4928 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
4930 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
4932 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4934 * INSTALL: Document cross-compilation.
4935 * acinclude.m4: Determine whether nm support -P and --defined-only.
4936 * configure.ac: Add TARGET_ to all variables pertaining to target
4937 that don't have it yet.
4938 * gentpl.py: Likewise.
4939 * grub-core/Makefile.am: Likewise.
4940 * grub-core/genmod.sh.in: Likewise.
4941 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
4944 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
4946 * configure.ac: Remove -Wempty-body. It's not essential and needs
4949 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
4951 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
4952 * util/getroot.c: Likewise.
4954 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4956 * grub-core/disk/ahci.c: Add needed explicit cast.
4957 * grub-core/lib/backtrace.c: Likewise.
4958 * grub-core/net/ip.c: Likewise.
4959 * grub-core/net/tcp.c: Likewise.
4960 * grub-core/net/udp.c: Likewise.
4962 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4964 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
4966 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4968 * util/import_gcry.py: Add final newline in visibility.h.
4970 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4972 * conf/Makefile.common: Fix typo.
4974 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4976 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
4978 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4980 * Makefile.am (widthspec.h): Fix typo.
4981 * util/grub-gen-widthspec.c: Likewise.
4983 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4985 Move ascii.h and widthspec.h generation to a separate build-time-only
4988 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4990 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
4991 Always fill bootdisk info and improve check for NetBSD disklabel.
4993 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4995 * conf/Makefile.extra-dist: Add util/bin2h.c.
4996 Reported by: floppym.
4998 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5000 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5002 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5004 * configure.ac: Disable unifont and starfield if no freetype was found.
5006 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5008 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5009 on NetBSD and OpenBSD.
5011 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5013 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5015 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5017 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5018 reduced. Inheritant options are processed during the theme loading.
5020 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5022 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5024 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5026 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5028 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5030 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5033 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5035 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5036 remove-potcdate.sed.
5038 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5040 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5041 unused attribute from pull argument.
5043 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5045 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5048 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5050 * util/getroot.c (pull_lvm_by_command): add --separator option
5051 to vgs call to disable padding of output to 10 characters.
5053 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5055 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5057 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5060 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5062 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5065 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5067 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5068 full Canadian cross. Tested with build=x86_64, host=arm,
5069 target=ppc-ieee1275.
5071 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5073 * configure.ac: Error if no $BUILD_CC could be found.
5076 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5078 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5081 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5083 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5084 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5086 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5088 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5089 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5090 falling back to the partition device, otherwise a later call to this
5091 function may fail spuriously.
5092 Reported by Axel Beckert. Fixes Debian bug #708614.
5094 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5096 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5098 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5100 Prevent shadowing of stdlib's devname(3) on BSD.
5102 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5103 and devlast to diskname and disklast, respectively.
5105 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5107 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5109 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5111 * docs/grub.texi: Introduce terminal window position options:
5112 terminal-left: terminal window's left position
5113 terminal-top: terminal window's top position
5114 terminal-width: terminal window's width
5115 terminal-height: terminal window's height
5116 terminal-border: terminal window's border width
5117 * grub-core/gfxmenu/theme-loader.c: Likewise.
5118 * include/grub/gfxmenu_view.h: Likewise.
5119 * po/exlude.pot: Likewise.
5120 * grub-core/gfxmenu/view.c: Likewise.
5121 Also updated minimal window size.
5122 Also terminal_sanity_check function has been introduced.
5123 * grub-core/tests/checksums.h: Update (terminal window height
5124 is adjusted now for low resolution screen)
5126 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5128 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5131 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5133 * po/exclude.pot: Add few recent exceptions.
5135 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5137 * tests/grub_func_test.in: Add unicode.pf2.
5139 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5141 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5142 standard rather than noral color, in line with other terminals.
5144 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5146 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5149 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5151 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5153 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5155 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5156 inappropriate printf.
5158 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5160 * .bzrignore: Remove grub-core/lib/dtc-grub,
5161 grub-core/Makefile.libfdt.def
5162 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5164 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5166 * include/grub/video.h (grub_video_register): Keep double-linked as
5167 well as single-linked invariants.
5168 Reported by: qwertial.
5170 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5172 * grub-core/commands/nativedisk.c (get_uuid): Handle
5173 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5175 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5177 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5178 maximum of NW, N, NE heights instead of N's height and maximum of
5179 NW, W, SW widths instead of W's width. (So the box will be always
5182 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5184 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5185 Fix misuse of variable count.
5187 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5188 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5189 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5191 New ports to arm-uboot and arm-efi.
5192 Mostly by Leif Lindholm with some additions from
5193 Francesco Lavra and cleanup by Vladimir Serbinenko.
5195 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5197 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5199 Reported by: Leon Drugi.
5201 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5203 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5204 Reported by: Paulo Flabiano Smorigo.
5206 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5208 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5210 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5212 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5214 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5216 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5218 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5220 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5222 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5224 * grub-core/net/bootp.c: Export net_* variables.
5225 * grub-core/net/net.c: Likewise.
5227 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5229 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5231 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5233 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5235 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5237 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5239 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5241 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5243 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5245 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5248 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5250 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5253 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5255 * grub-core/fs/zfs/zfs_lz4.c: New file.
5256 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5258 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5260 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5262 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5264 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5265 (check_pool_label): Likewise.
5266 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5268 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5270 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5272 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5274 * docs/grub.texi (Commands): Document postition parameters
5275 for menuentry command.
5277 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5279 * util/grub-mknetdir.in: Remove stray line from help output.
5281 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5283 Remove early sm712 init as there is no reason for it (the "watchdog"
5284 effect was due to wrong GPIO map).
5286 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5288 * grub-core/commands/pcidump.c: Remove static variables.
5290 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5292 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5294 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5296 * configure.ac: Move delimiter after the infos.
5298 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5300 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5302 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5304 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5305 not filling whole 8x16 space.
5307 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5309 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5311 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5313 * configure.ac: Indicate which liblzma is used if any.
5315 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5316 2013-06-21 Craig Sanders <savannah@taz.net.au>
5318 * util/grub-reboot.in: Document submenu usage.
5320 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5322 * .bzrignore: Update with a number of new test-related files.
5324 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5326 * util/grub-script-check.c: Fail on scripts containing no
5327 commands, to guard against corrupted grub-mkconfig setups that
5328 produce no useful output.
5329 * tests/grub_script_no_commands.in: New test.
5330 * Makefile.util.def (grub_script_no_commands): Add.
5331 Reported by Hans Putter. Fixes Debian bug #713886.
5333 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5335 * grub-core/disk/diskfilter.c: Forgot to remove comment
5336 from previous commit.
5338 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5340 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5341 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5343 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5345 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5347 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5349 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5350 rescan diskfilter devices until nothing new is found.
5352 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5354 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5356 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5358 Don't try to detect cbfs on *-emu.
5360 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5362 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5364 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5366 Add support for processed coreboot payload chainloading.
5368 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5370 Enable coreboot information commands even when not loaded as
5371 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5373 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5375 Support for cbfs. Also factor out the part which is common
5376 for all archives to a separate module. This splits tar from cpio
5377 as they are very different but keeps cpio, cpio_be, odc and newc
5378 together since they're very similar.
5380 2013-06-15 David Michael <fedora.dm0@gmail.com>
5382 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5383 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5385 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5387 * tests/grub_script_eval.in: Really add the eval test.
5389 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5391 Move flavour-specific parts out of common cpio.c file and
5392 rename remaining to cpio_common.c
5394 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5396 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5397 off new function grub_script_execute_new_scope. Change callers to use
5398 either of them as appropriate.
5399 * grub-core/commands/eval.c: New command eval.
5400 * docs/grub.texi (Commands): Document it.
5402 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5404 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5405 to fetch values when listing.
5407 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5409 Fix make dist on non-pc.
5411 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
5413 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5414 without a device name.
5416 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5418 Remove enable_executable_check as it's not needed anymore.
5419 Reported by: dougray.
5421 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5423 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5424 ambigouos RAID before discovering RAIDs on top of it.
5427 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5429 Fix typo (failback vs fallback).
5431 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5433 * util/grub.d/30_os-prober.in: Add support for probing EFI
5434 System Partition (as of os-prober 1.58).
5436 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5438 * configure.ac: Add yet another path to unifont. For parabola.
5440 2013-05-30 Josh Triplett <josh@joshtriplett.org>
5442 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5443 handling to copy the killed characters to the kill buffer as
5444 UCS4 stored as grub_uint32_t rather than as 8-bit characters
5445 stored as char. Eliminates UCS4 truncation and corruption
5446 observed when killing characters with Ctrl-u and yanking them
5449 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5451 Detach optional parts of gfxterm and integrate in with coreboot init.
5453 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5455 Move blit and fill dispatcher to appropriate files to decrease export
5456 and relocation overhead.
5458 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5460 * grub-core/font/font.c, include/grub/font.h: Inline simple font
5463 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5465 * grub-core/Makefile.am: Fix compilation problem with some
5468 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5470 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
5472 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5474 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
5477 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5479 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
5482 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
5484 * grub-core/partmap/dfly.c: New partition map.
5486 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5488 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
5490 Reported by: Francesco Lavra.
5492 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
5494 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
5495 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
5497 * conf/Makefile.common: define dist_grubconf_DATA
5499 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5501 Progressively skip menu elements on small terminals rather
5504 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5506 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
5507 to avoid losing last column.
5509 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5511 * po/exclude.pot: Add missing string "%C".
5513 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5515 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
5518 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5520 * util/grub-install.in: Gettextize "Not found" message.
5522 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5525 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
5527 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5529 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
5531 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
5533 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5535 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
5537 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5539 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
5540 attribute since structure is not necessarily aligned.
5542 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
5544 * docs/grub.texi (Device syntax): Clarify description of network
5547 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5549 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
5550 for vasprintf presence.
5552 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5554 * util/grub-install.in: Handle efibootmgr presence check.
5555 Reported by: Leif Lindholm.
5557 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5559 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
5560 new strings to translate.
5562 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5564 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
5565 yet another string (pun intended) to translate.
5567 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5569 * po/POTFILES-shell.in: Autogenerate it.
5571 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5573 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
5575 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5577 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
5580 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
5582 * docs/grub.texi (Network): Add description of net_default_interface,
5583 net_default_ip and net_default_mac. Rewrite variables description
5584 to emphasize that they are per-interface.
5586 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5588 New test: cmdline and cat.
5590 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5592 * grub-core/commands/cat.c: Show UTF-8 characters.
5594 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5596 * conf/Makefile.common: Poison float and double on non-emu.
5598 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5600 * configure.ac: Don't disable extended registers on emu.
5602 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5604 * configure.ac: Don't use extended registers on x86_64.
5605 Reported by: Peter Jones.
5607 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5609 * grub-core/term/efi/console.c: Fix compile error.
5611 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5613 Compressed HFS+ support.
5615 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5617 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
5620 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5624 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5626 * grub-core/tests/setjmp_test.c: New test.
5628 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5630 New variables 'net_default_*' to determine MAC/IP of default interface.
5632 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5634 * tests/gettext_strings_test.in: A test to check for strings not
5635 marked for translation.
5637 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5639 * autogen.sh: Exclude unused libgcrypt files from translation.
5641 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5643 Simplify few strings.
5645 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5647 Mark few forgotten strings for translation.
5649 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5651 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
5654 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5656 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
5658 * grub-core/video/readers/tga.c: Likewise.
5660 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5662 * tests/priority_queue_unit_test.cc: New test.
5664 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5666 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
5669 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
5671 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
5672 variable for one time boot menu entry.
5674 2013-05-05 Bean <bean123ch@gmail.com>
5676 * grub-core/commands/testspeed.c: New command testspeed.
5678 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5680 Factor-out human-size printing.
5682 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5684 Agglomerate more mallocs to speed-up gfxterm.
5686 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5688 Speed-up gfxterm by slightly agglomerating mallocs.
5690 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5694 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5696 Speed-up gfxterm by saving intermediate results in index+alpha
5699 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5701 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
5704 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5706 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
5707 line of timeout as it may contain the rest of long line.
5709 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5711 * grub-core/normal/main.c: Fix freed memory dereference.
5713 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5715 Fix several memory leaks.
5717 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5719 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
5721 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5723 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
5725 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5727 Fix test -a and -o precedence.
5728 Reported by: adrian15.
5730 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5732 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
5734 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
5736 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
5737 and add it as source to functional_test module.
5739 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5741 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
5743 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5745 New series of tests for gfxterm and gfxmenu.
5747 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5749 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
5750 the theme path relative to $prefix/themes.
5752 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5754 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
5756 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
5758 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5760 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
5763 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5765 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
5766 grub_gfxmenu_timeout_notifications.
5767 (grub_gfxmenu_view_destroy): Likewise.
5769 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5771 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
5773 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5775 Several fixes to ieee1275 and big-endian video.
5777 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5779 Add missing exports on mips.
5781 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5783 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
5784 if no unifont is found.
5785 Restore original keyboard.
5787 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5789 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
5790 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
5792 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5794 First automated video test (running videotest and comparing results)
5796 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5798 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
5799 instead of 2 to have full RGB/CMY test pattern.
5801 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5805 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5807 * include/grub/arc/arc.h: Account for missing "other" peripheral on
5808 ARCS. All users updated.
5810 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5812 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
5814 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5816 * grub-core/partmap/amiga.c: Fix size of checksummed block.
5818 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5820 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
5821 Reported by: qwertial.
5823 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
5825 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
5826 with syntax "XXX deg"/"XXX °".
5828 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5830 Make PCI init in i386-qemu port more robust.
5832 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
5834 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
5835 cached view is reused.
5836 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
5839 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5841 Unify more code in grub-install_header.
5843 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5847 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5849 Enforce disabling of firmware disk drivers when native drivers kick in.
5851 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5853 * grub-core/commands/nativedisk.c: Customize the list of modules on
5854 platform. Don't try to search for disks already using native drivers.
5856 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5858 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
5861 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5863 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
5864 handling of variables containing backslash.
5866 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5868 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
5870 Reported by: qwertial.
5872 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5874 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
5876 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5878 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
5880 Reported by: qwertial.
5882 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5884 * docs/grub.texi: Add a comment about usefullness of nativedisk.
5886 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5888 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
5890 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5892 New command `nativedisk'.
5894 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5896 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
5897 * grub-core/loader/i386/bsd.c: Likewise.
5899 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5901 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
5903 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5905 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
5906 grub_get_unaligned16 rather than shifts.
5908 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5910 * grub-core/kern/file.c: Use const char * rather than casting to
5913 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5915 * grub-core/commands/probe.c: Add missing grub_device_close.
5917 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5919 * INSTALL: Document linguas.sh.
5921 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5923 Remove POTFILES.in and regenerate it in autogen.sh.
5925 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5927 Move --directory/--override-directorry to grub-install_header and unify.
5929 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5931 * grub-core/term/morse.c: Macroify dih and dah.
5933 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5935 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
5937 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5939 * grub-core/term/ns8250.c: Systematically probe ports by writing
5940 to SR before using them.
5942 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5944 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
5946 (check_sas): Get sas_adress info.
5948 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5950 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
5953 2013-04-27 Leon Drugi <eyak>
5955 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
5958 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5960 Core compression test.
5962 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5964 Implement grub_machine_get_bootlocation for ARC.
5966 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5968 Improve AHCI detection and command issuing.
5970 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5974 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5976 Make 'make check' work on emu.
5978 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5980 Replace libcurses with our own vt100 handling for the ease of testing
5981 and decreasing prerequisites.
5983 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5985 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
5987 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5989 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
5990 compile when not needed.
5992 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5994 * tests/pseries_test.in: New test.
5996 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5998 Add test to check that different boot mediums work.
6000 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6002 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6003 ofw limited ISO support.
6005 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6007 * configure.ac: Fix loongson conditional.
6009 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6013 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6015 Add serial on ARC platform.
6017 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6019 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6022 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6024 * tests/partmap_test.in: Add missing double semicolon.
6026 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6028 * util/grub-mkrescue.in: Fix loongson filename.
6030 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6032 * util/grub-mkrescue.in: Move all files that don't have a location
6033 set in stone under /boot/grub. Use ISO hard links rather than copies
6036 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6038 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6041 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6043 Make check work on mips-arc.
6045 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6047 * util/grub-mkrescue.in: Alias sashARCS as sash.
6049 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6051 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6054 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6056 * util/grub-install.in: Fix target fo qemu_mips.
6057 Fix extension on EFI.
6059 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6061 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6062 in front of chosen entry to mark it even if highlighting is lost.
6064 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6066 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6067 gfxpayload=keep if cbfb is active.
6069 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6071 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6073 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6075 Add missing video ids to coreboot and ieee1275 video.
6077 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6079 * util/grub-mkrescue.in: Add mips-arc support.
6081 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6083 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6085 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6087 Move mips-arc link address. Previous link address was chosen
6088 in belief that RAM on SGI platforms grows down while in fact it
6089 grows up from an unusual base.
6091 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6093 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6094 Fix a type which prevented CD-ROM and floppy boot.
6096 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6098 Support coreboot framebuffer.
6100 * grub-core/video/i386/coreboot/cbfb.c: New file.
6102 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6104 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6105 detecting too small regions.
6107 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6109 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6111 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6113 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6115 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6117 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6119 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6120 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6121 * grub-core/loader/powerpc/ieee1275/linux.c
6122 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6124 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6126 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6127 Look for /boot-rom as well as /rom/boot-rom.
6129 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6131 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6132 handling when creating text_layer failed.
6133 * grub-core/video/video.c (grub_video_create_render_target):
6134 Set result to 0 on error.
6135 (grub_video_delete_render_target): Do not dereference NULL.
6137 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6139 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6140 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6141 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6142 (grub_linux_load64): Mask out 2 high bits.
6144 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6146 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6149 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6151 Add support for pseries and other bootinfo machines to grub-mkrescue.
6153 Tested by: Paulo Flabiano Smorigo.
6155 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6157 * util/grub-mkrescue.in: Add GPT for EFI boot.
6159 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6161 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6162 It improves performance in qemu.
6164 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6166 * build-aux/snippet: Add missing gnulib files.
6168 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6170 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6172 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6174 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6176 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6177 2013-04-15 Peter Jones <pjones@redhat.com>
6179 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6181 Based on patch by Peter Jones.
6183 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6185 Fix DMRAID partition handling.
6187 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6189 * tests/grub_cmd_date.in: Skip on sparc64.
6191 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6193 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6194 firmware error messages.
6196 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6198 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6199 source and destination differ.
6201 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6203 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6206 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6208 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6209 match config-util.h to avoid warnings and increase compatibility.
6211 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6212 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6214 Add option to compress files on install/image creation.
6216 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6218 * docs/grub-dev.texi: Rearrange menu to match the section order.
6219 Reported by: Bryan Hundven.
6221 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6223 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6225 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6227 Move GRUB out of system area when using xorriso 1.2.9 or later.
6229 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6231 * tests/grub_cmd_date.in: Add missing exit 1.
6233 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6235 * tests/partmap_test.in: Skip on sparc64.
6237 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6239 Support grub-shell on sparc64.
6241 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6243 Support mkrescue on sparc64.
6245 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6247 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6248 Needed on OpenBIOS due to incomplete device tree.
6250 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6252 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6253 would be otherwise excluded.
6255 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6257 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6258 Inline name defines used only once.
6260 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6262 Fix memory leaks in ofnet.
6263 Reported by: Francesco Lavra.
6265 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6267 * docs/man/grub-glue-efi.h2m: Add missing file.
6269 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6271 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6273 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6275 Better support Apple Intel Macs on CD.
6277 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6279 Replace stpcpy with grub_stpcpy in tools.
6281 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6283 Handle Japanese special keys.
6284 Reported by: Hiroyuki YAMAMORI.
6285 Codes supplied by: Hiroyuki YAMAMORI.
6287 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6289 * util/grub-mkimage.c: Document memdisk implying --prefix.
6291 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6293 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6294 much we can do about it anyway.
6296 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6298 Fix handling of split transfers.
6300 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6302 * grub-core/net/http.c: Fix bad free.
6304 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6306 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6309 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6311 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6313 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6315 * tests/util/grub-shell.in: Fix it on powerpc.
6317 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6319 Turn off QEMU ACPI-way since new releases don't have shutdown port
6322 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6324 * docs/grub.texi: Update coreboot status info.
6326 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6328 * tests/grub_cmd_date.in: New test for datetime.
6330 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6332 * tests/partmap_test.in: Fix missing qemudisk setting.
6334 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6336 Support i386-ieee1275 grub-mkrescue and make check on it.
6338 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6340 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6343 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6345 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6346 GRUB_CMDLINE_XEN_DEFAULT.
6347 Reported by: Marc Warne (GigaTux) <gigatux>
6349 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6353 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6355 Use ACPI shutdown intests as traditional port was removed.
6357 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6359 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6362 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6364 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6365 Fix few warining messages and leaks while on it.
6367 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6369 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6370 links under grub-core/lib/libgcrypt-grub/mpi.
6372 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6374 Fix ia64-efi image generation on big-endian machines. Deduplicate
6375 some code while on it.
6376 Reported by: Leif Lindholm.
6378 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6380 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6383 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6385 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6387 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6389 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6392 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6394 * grub-core/normal/term.c: Few more fixes for menu entry editor
6396 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6398 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6400 * grub-core/normal/term.c: Few more fixes for menu entry editor
6402 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6404 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6406 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6407 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6409 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6411 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6412 instead of hardcoding grub.mo.
6414 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6416 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6418 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6420 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6421 grub-core/disk/geli.c.
6423 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6425 * util/grub-mkfont.c: Prefer enum to #define.
6427 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6429 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6431 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6433 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6435 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6437 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6439 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6441 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6443 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6445 * include/grub/bsdlabel.h: Use enums.
6447 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6449 Move GRUB_CHAR_BIT to types.h.
6451 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6453 * docs/grub.texi: Document more user commands.
6455 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6457 * docs/grub.texi: Document menuentry --id option.
6459 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
6461 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
6463 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6465 Unify file copying setup across different install scripts. Add
6466 options for performing partial install.
6468 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6469 2013-04-04 Peter Jones <pjones@redhat.com>
6471 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
6473 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6475 Use TSC as a possible time source on i386-ieee1275.
6477 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6479 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
6482 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6484 * util/grub-setup.c (setup): Handle some corner cases.
6486 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6488 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
6490 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6492 * grub-core/commands/verify.c: Save verified file to avoid it being
6493 tampered with after verification was done.
6495 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6497 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
6498 reported width by one to compensate for curesor algorithm problem.
6500 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6502 Fix screen corruption in menu entry editor and simplify the code
6505 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
6507 * util/grub-mount.c (fuse_init): Return error if fuse_main
6510 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
6512 * include/grub/elf.h: Add missing ARM relocation codes and fix
6515 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6517 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
6519 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6520 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6522 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
6523 into account when calculating radius.
6525 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6527 * grub-core/gfxmenu/view.c: Fix off-by-one error.
6529 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6531 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
6533 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
6535 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
6536 missing closing bracket.
6538 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
6540 * INSTALL: Mention xorriso requirement.
6542 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
6544 * grub-core/commands/verify.c: Fix hash algorithms values for
6545 the first three hashes - they start with 1, not with 0.
6547 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6549 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
6550 Try terminating EFI services several times due to quirks in some
6553 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
6555 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
6556 skipping Event, Device, Processor, PowerRes, ThermalZone, and
6557 BankField extended opcodes.
6558 (get_sleep_type): Add minimal scope handling (just enough to
6559 handle setting the scope to the root path).
6560 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
6561 * include/grub/acpi.h: Add enumeration values for Event, Device,
6562 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
6564 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
6566 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
6569 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6571 * grub-core/disk/ahci.c: Give more time for AHCI request.
6573 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6575 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
6578 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6580 Replace the region at 0 from coreboot tables to available in BSD
6583 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6585 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
6588 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6590 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
6593 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6595 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
6596 handling of multi-device filesystems.
6598 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6600 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
6603 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6605 Add new 'proc' filesystem framework and put luks_script into it.
6607 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6609 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
6612 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6614 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
6616 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6618 Add ability to generate newc additions on runtime.
6620 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6622 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
6625 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
6627 * po/POTFILES.in: Regenerate.
6629 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6631 * grub-core/commands/verify.c (hashes): Add several hashes
6634 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6636 Slight improve in USB-related boot-time checkpoints.
6638 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6640 * grub-core/commands/boottime.c: Fix copyright header.
6642 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6644 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
6645 coreboot tables content. Support for cbmemc.
6647 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6649 Fix a conflict between ports structures with 2 controllers of
6652 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6654 * include/grub/boottime.h: Add missing file.
6656 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6658 Initialize USB ports in parallel to speed-up boot.
6660 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6662 Fix USB devices not being detected when requested
6663 due to delayed attach.
6665 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6667 Implement boot time analysis framework.
6669 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6671 Remove get_endpoint_descriptor and change all functions needing
6672 descriptor to just receive it as argument rather than endpoint
6675 2013-03-19 Aleš Nesrsta <starous@volny.cz>
6677 Better estimate the maximum USB transfer size.
6679 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
6681 Resend a packet if we got the wrong buffer in status.
6683 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6685 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
6686 multiplication rather than division.
6688 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6690 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
6693 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6695 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
6696 operations to have intended shifts and not divisions.
6698 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6700 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
6701 intended shifts rather than division.
6703 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6705 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
6706 computation for some years before epoch. Avode confusing division
6709 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6711 * grub-core/video/i386/pc/vbe.c
6712 (grub_video_vbe_print_adapter_specific_info): Replace division by
6715 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6717 Adjust types in gdb module to have intended unsigned shifts rather than
6720 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6722 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
6723 maximum size is 4G - 1 on hfs
6725 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6727 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
6729 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6731 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
6734 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
6736 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
6737 causing gcc error with gcc 4.7.1.
6739 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
6741 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
6742 dereference null pointer. While the code is technically correct, gcc
6743 may eliminate a null check if pointer is already dereferenced.
6745 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
6747 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
6749 * grub-core/normal/term.c (read_terminal_list): Likewise.
6751 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
6753 Lift up core size limits on some platforms. Fix potential memory
6754 corruption with big core on small memory systems. Document remaining
6757 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6759 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
6762 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6764 Remove all trampoline support. Add -Wtrampolines when
6765 present. Remove symbols used for trampolines to make
6766 link fail if trampolines are present.
6768 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6770 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
6771 append out of its parent.
6773 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6775 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
6778 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6780 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
6781 all vars to a macro. All users updated.
6783 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6785 * grub-core/disk/ieee1275/nand.c: Fix compilation on
6788 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6790 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
6792 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6794 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
6796 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6798 Move to more hookless approach in IEEE1275 devices handling.
6800 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6802 * grub-core/kern/term.c (grub_term_normal_color),
6803 (grub_term_highlight_color): Add back lost defaults.
6805 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6807 Make elfload not use hooks. Opt for flags and iterators instead.
6809 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6811 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
6812 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
6814 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6816 * grub-core/script/execute.c (gettext_append): Remove nested functions.
6818 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6820 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
6821 hook pass-through parameter. All users updated and unnested.
6823 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6825 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
6828 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6830 * grub-core/fs/hfs.c: Remove nested functions.
6832 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6834 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
6835 the context through.
6836 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
6838 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6840 * util/grub-editenv.c (list_variables): Move print_var out of its
6843 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6845 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
6848 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6850 * grub-core/gentrigtables.c: Make tables const.
6852 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6854 Remove nested functions from videoinfo iterators.
6856 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6858 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
6859 for 64-bit platforms.
6861 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6863 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
6864 a FOR_CHILDREN macro.
6866 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6868 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
6869 platform from firmware path.
6871 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6873 Enable linux16 on non-BIOS systems for i.a. memtest.
6875 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
6877 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
6879 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6881 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
6882 Fix end of table condition.
6884 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6886 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
6889 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6891 * grub-core/fs/jfs.c: Remove nested functions.
6893 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6895 * grub-core/fs/minix.c: Remove nested functions.
6897 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6899 * grub-core/fs/iso9660.c: Remove nested functions.
6901 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6903 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
6906 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6908 * util/grub-fstest.c: Remove nested functions.
6910 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6912 * grub-core/loader/machoXX.c: Remove nested functions.
6914 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
6916 Remove nested functions from disk and file read hooks.
6918 * include/grub/disk.h (grub_disk_read_hook_t): New type.
6919 (struct grub_disk): Add read_hook_data member.
6920 * include/grub/file.h (struct grub_file): Likewise.
6921 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
6926 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
6928 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
6929 Fix off by one error in enumerating extended partitions.
6931 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
6933 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
6934 memory leak if device name is not found.
6936 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6938 * grub-core/normal/menu_entry.c (update_screen): remove
6939 unused variable `off' which caused scroll down arrow to be always shown.
6941 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6943 * grub-core/normal/menu_entry.c (insert_string): fix off by one
6944 access to unallocated memory.
6946 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6948 * Makefile.util.def: Add partmap/msdos.c to common library.
6949 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
6950 * grub-core/disk/ldm.c: Check for existence of
6951 GRUB_PC_PARTITION_TYPE_LDM.
6953 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6955 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
6956 sizes and display sector size.
6958 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6960 Implement new command cmosdump.
6962 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6964 Support Openfirmware disks with non-512B sectors.
6966 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
6968 * (grub_ofdisk_get_block_size): New function.
6969 * (grub_ofdisk_prepare): Use the correct block size.
6970 * (grub_ofdisk_read): Likewise.
6971 * (grub_ofdisk_write): Likewise.
6972 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
6975 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6977 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
6979 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6981 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
6984 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6986 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
6989 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6991 Implement USBDebug (full USB stack variant).
6993 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6995 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
6996 unless they have unexpected values.
6998 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7000 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7003 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7005 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7006 zero-out of port structure.
7008 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7010 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7011 of extended attributes.
7013 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7015 * util/grub-install.in: change misleading comment about
7018 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7020 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7021 when menu highlight color isn't set.
7023 2013-01-27 C. Masloch <pushbx@38.de>
7025 Improve FreeDOS direct loading support compatibility.
7027 * include/grub/i386/relocator.h (grub_relocator16_state):
7029 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7031 (grub_relocator16_boot): Handle %ebp.
7032 * grub-core/lib/i386/relocator16.S: Likewise.
7033 * grub-core/loader/i386/pc/freedos.c:
7034 Load BPB to pass kernel which partition to load from.
7035 Check that kernel file is not too large.
7036 Set register dl to BIOS unit number as well.
7038 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7040 * util/grub-reboot.in (usage): Document the need for
7042 * util/grub-set-default.in (usage): Likewise.
7043 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7045 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7047 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7048 than defining WORDS_BIGENDIAN manually.
7050 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7052 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7055 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7057 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7059 (blit_comb: add_device_width): Likewise.
7061 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7063 Remove nested functions from USB iterators.
7065 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7066 (grub_usb_controller_iterate_hook_t): Likewise.
7067 (grub_usb_iterate): Add hook_data argument.
7068 (grub_usb_controller_iterate): Likewise.
7069 (struct grub_usb_controller_dev.iterate): Likewise.
7071 Update all implementations and callers.
7073 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7075 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7076 margin when not needed.
7078 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7080 Make color variables global instead of it being per-terminal.
7082 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7084 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7087 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7089 Fix powerpc and sparc64 build failures caused by un-nesting memory
7092 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7094 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7095 parameter declarations.
7097 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7099 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7101 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7103 Improve spkmomdem reliability by adding a separator between bytes.
7105 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7107 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7108 an Acer registration utility with several sightings in the wild.
7109 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7111 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7113 Remove nested functions from filesystem directory iterators.
7115 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7116 (struct grub_fs.dir): Add hook_data argument.
7118 Update all implementations and callers.
7120 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7122 * docs/grub.texi (Multi-boot manual config): Fix typo for
7125 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7127 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7128 until after its use in generate_image.
7130 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7132 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7133 initrd size to addr_min, since the initrd will be allocated after
7136 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7138 * conf/Makefile.common: Fix autogen rules to pass definition
7139 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7141 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7143 * include/grub/elf.h: Update ARM definitions based on binutils.
7145 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7147 Split long USB transfers into short ones.
7149 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7151 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7152 is interrupted by ESC.
7154 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7156 * util/grub-script-check.c (main): Uniform the error message.
7158 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7160 Remove nested functions from ELF iterators.
7162 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7164 Remove nested functions from device iterators.
7166 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7167 (grub_arc_iterate_devs): Add hook_data argument.
7168 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7169 (struct grub_ata_dev.iterate): Add hook_data argument.
7170 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7171 (grub_device_iterate): Add hook_data argument.
7172 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7173 (struct grub_disk_dev.iterate): Add hook_data argument.
7174 (grub_disk_dev_iterate): Likewise.
7175 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7177 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7179 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7181 (struct grub_partition_map.iterate): Add hook_data argument.
7182 (grub_partition_iterate): Likewise.
7183 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7184 (struct grub_scsi_dev.iterate): Add hook_data argument.
7188 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7190 Fix typos for "developer" and "development".
7192 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7194 Add license header to spkmodem-recv.c.
7196 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7198 Rewrite spkmodem to use PIT for timing. Double the speed.
7200 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7202 Add new command pcidump.
7204 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7206 New terminal outputs using serial: morse and spkmodem.
7208 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7210 Improve bidi handling in entry editor.
7212 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7214 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7215 argument to prevent name collision.
7217 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7219 Remove nested functions from script reading and parsing.
7221 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7222 getline_data argument, passed to getline.
7223 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7224 getline_data argument, passed to grub_parser_split_cmdline.
7225 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7226 lexerstate->getline_data to lexerstate->getline.
7227 (grub_script_lexer_init): Add getline_data argument, saved in
7228 lexerstate->getline_data.
7229 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7230 argument, passed to grub_script_parse.
7231 * grub-core/script/script.c (grub_script_parse): Add getline_data
7232 argument, passed to grub_script_lexer_init.
7233 * include/grub/parser.h (grub_parser_split_cmdline): Update
7234 prototype. Update all callers to pass appropriate getline data.
7235 (struct grub_parser.parse_line): Likewise.
7236 (grub_rescue_parse_line): Likewise.
7237 * include/grub/reader.h (grub_reader_getline_t): Add void *
7239 * include/grub/script_sh.h (struct grub_lexer_param): Add
7240 getline_data member.
7241 (grub_script_parse): Update prototype. Update all callers to pass
7242 appropriate getline data.
7243 (grub_script_lexer_init): Likewise.
7244 (grub_normal_parse_line): Likewise.
7246 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7248 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7249 static instead of nested. Rename to ...
7250 (grub_parser_execute_getline): ... this.
7251 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7253 * grub-core/normal/main.c (read_config_file: getline): Make static
7254 instead of nested. Rename to ...
7255 (read_config_file_getline): ... this.
7256 (grub_normal_read_line): Add unused data argument.
7257 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7258 getline): Make static instead of nested. Rename to ...
7259 (grub_script_execute_sourcecode_getline): ... this.
7260 * util/grub-script-check.c (main: get_config_line): Make static
7263 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7265 Remove nested functions from memory map iterators.
7267 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7268 argument, passed to hook.
7269 * grub-core/kern/i386/coreboot/mmap.c
7270 (grub_linuxbios_table_iterate): Likewise.
7271 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7273 (grub_machine_mmap_iterate): Add hook_data argument.
7274 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7275 Add hook_data argument, passed to hook.
7276 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7278 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7280 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7282 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7284 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7286 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7288 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7289 (grub_machine_mmap_iterate): Likewise.
7290 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7291 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7293 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7294 Remove NESTED_FUNC_ATTR from here and from all users.
7295 (grub_mmap_iterate): Update prototype.
7296 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7297 pass appropriate hook data.
7298 (grub_machine_mmap_iterate): Likewise.
7300 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7301 static instead of nested.
7302 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7304 (lsmmap_hook): ... this.
7305 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7307 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7308 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7309 heap_init): Likewise.
7310 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7312 (mmap_iterate_hook): ... this.
7313 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7315 * grub-core/lib/ieee1275/relocator.c
7316 (grub_relocator_firmware_get_max_events: count): Likewise.
7317 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7319 (grub_relocator_firmware_fill_events_iter): ... this.
7320 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7321 hook): Likewise. Rename to ...
7322 (grub_relocator_alloc_chunk_align_iter): ... this.
7323 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7325 (generate_e820_mmap_iter): ... this.
7326 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7328 (count_hook): ... this.
7329 (grub_linux_boot: hook): Likewise. Rename to ...
7330 (grub_linux_boot_mmap_find): ... this.
7331 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7332 (grub_linux_boot_mmap_fill): ... this.
7333 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7334 hook): Likewise. Rename to ...
7335 (grub_fill_multiboot_mmap_iter): ... this.
7336 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7337 hook): Likewise. Rename to ...
7338 (count_hook): ... this.
7339 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7340 hook): Likewise. Rename to ...
7341 (grub_fill_multiboot_mmap_iter): ... this.
7342 * grub-core/loader/powerpc/ieee1275/linux.c
7343 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7344 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7345 Likewise. Rename to ...
7346 (alloc_phys_choose): ... this.
7347 (determine_phys_base: get_physbase): Likewise.
7348 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7349 find_hook): Likewise.
7350 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7351 (malloc_hook: count_hook): Likewise.
7352 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7353 Likewise. Rename to ...
7354 (lower_hook): ... this.
7355 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7356 (upper_hook): ... this.
7357 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7358 (post64_hook): ... this.
7359 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7360 Likewise. Rename to ...
7361 (lower_hook): ... this.
7362 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7363 (upper_hook): ... this.
7364 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7365 (grub_mmap_iterate: fill_hook): Likewise.
7366 (fill_mask): Pass addr and mask within a single struct.
7367 (grub_cmd_badram: hook): Make static instead of nested. Rename
7369 (badram_iter): ... this.
7370 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7371 (cutmem_iter): ... this.
7373 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7375 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7376 delimit path in strings using quotes.
7377 * util/getroot.c (grub_guess_root_devices): Likewise.
7378 (grub_make_system_path_relative_to_its_root): Likewise.
7379 * util/grub-probe.c (probe): Likewise.
7380 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7381 (xrealpath): Likewise.
7383 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7385 Fix compilation with older compilers.
7387 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7388 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7390 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7391 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7392 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7394 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7395 * include/grub/crypto.h: Add type defines.
7396 * util/import_gcrypth.sed: Remove duplicate type defines.
7398 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7400 New command list_trusted.
7402 * grub-core/commands/verify.c (grub_cmd_list): New function.
7404 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7406 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7409 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7411 Remove nested functions from PCI iterators.
7413 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7414 passed to hook. Update all callers to pass appropriate hook data.
7415 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7416 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7417 Remove NESTED_FUNC_ATTR from here and from all users.
7418 (grub_pci_iterate): Update prototype.
7419 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7420 instead of nested. Rename to ...
7421 (grub_cs5536_find_iter): ... this.
7422 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7423 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7425 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7427 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7429 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7431 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7432 * grub-core/video/radeon_fuloong2e.c
7433 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7434 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7435 find_card): Likewise.
7436 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7439 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7441 * grub-core/commands/verify.c: Mark messages for translating.
7443 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7445 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
7448 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7450 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
7453 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7455 * autogen.sh: Do not try to delete nonexistant files.
7456 * util/import_gcrypth.sed: Add some missing header removals.
7458 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
7460 Clean up dangling references to grub-setup.
7461 Fixes Ubuntu bug #1082045.
7463 * docs/grub.texi (Images): Refer generally to grub-install rather
7464 than directly to grub-setup.
7465 (Installing GRUB using grub-install): Remove direct reference to
7467 (Device map) Likewise.
7468 (Invoking grub-install): Likewise.
7469 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7470 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7471 * util/grub-install.in (usage): Likewise.
7473 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
7474 Apply to grub-bios-setup and grub-sparc64-setup rather than to
7476 * configure.ac: Remove grub_setup output variable.
7478 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
7480 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
7481 grub-setup to grub-sparc64-setup.
7483 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7485 Import gcrypt public-key cryptography and implement signature checking.
7487 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7489 * grub-core/fs/ntfs.c: Ue more appropriate types.
7490 * grub-core/fs/ntfscomp.c: Likewise.
7491 * include/grub/ntfs.h: Likewise.
7493 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7495 Support Apple FAT binaries on non-Apple platforms.
7497 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
7498 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
7500 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
7503 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7505 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
7508 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
7510 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
7511 explicitly zeroing elements.
7512 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
7513 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
7514 of elements in a structure already allocated using grub_zalloc.
7515 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
7517 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
7519 * docs/grub.texi (grub_cpu): New subsection.
7520 (grub_platform): Likewise.
7522 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7524 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
7526 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7528 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
7531 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7533 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
7534 * grub-core/fs/ntfscomp.c: Likewise.
7535 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
7536 (grub_ntfs_comp): Likewise.
7538 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7540 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
7542 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
7543 of groups_per_block. All users updated.
7545 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7547 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
7548 grub_error properly.
7549 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
7550 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
7552 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7554 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
7555 always in /boot/zfs.
7556 Reported by: Yuta Satoh.
7558 2013-01-03 Yuta Satoh <nigoro>
7560 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
7563 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7565 * configure.ac: Extend -Wno-trampolines to host.
7567 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7569 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
7572 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
7574 * docs/grub.texi (Invoking grub-mkrelpath): New section.
7575 (Invoking grub-script-check): Likewise.
7577 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
7579 * docs/grub.texi (Invoking grub-mount): New section.
7580 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
7582 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7584 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
7585 test failures, so that a failing unit test correctly causes 'make
7588 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7590 Fix failing printf test.
7592 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
7593 '$' in the correct order when collecting type information.
7595 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7597 * docs/grub.texi (configfile): Explain environment variable
7599 (source): New section.
7600 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
7602 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
7604 Remove several trivially-unnecessary uses of nested functions.
7606 * grub-core/commands/i386/pc/sendkey.c
7607 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
7609 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
7611 (legacy_file_getline): ... this.
7612 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
7614 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
7615 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
7617 (probe_dummy_iter): ... this.
7618 * grub-core/kern/i386/coreboot/mmap.c
7619 (grub_linuxbios_table_iterate: check_signature): Likewise.
7620 * grub-core/kern/parser.c (grub_parser_split_cmdline:
7621 check_varstate): Likewise. Mark inline.
7622 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
7623 an additional parameter.
7624 (find_long: fnd_long): Likewise. Pass two additional parameters.
7625 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
7626 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
7627 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
7628 Likewise. Rename to ...
7629 (grub_cmos_find_port_iter): ... this.
7630 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
7632 (find_rtc_iter): ... this.
7634 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
7635 function directly into the function body, since it is only called
7638 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
7640 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
7641 __attribute__ ((unused)).
7642 * grub-core/video/bochs.c (find_card): Likewise.
7643 * grub-core/video/cirrus.c (find_card): Likewise.
7644 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
7645 * grub-core/video/sis315pro.c (find_card): Likewise.
7646 * grub-core/video/sm712.c (find_card): Likewise.
7648 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7650 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
7651 Fixes Savannah bug #37821.
7653 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7655 Apply program name transformations at build-time rather than at
7656 run-time. Fixes Debian bug #696465.
7658 * acinclude.m4 (grub_TRANSFORM): New macro.
7659 * configure.ac: Create output variables with transformed names for
7661 * util/bash-completion.d/grub-completion.bash.in: Use
7662 pre-transformed variables for program names.
7663 * util/grub-install.in: Likewise.
7664 * util/grub-kbdcomp.in: Likewise.
7665 * util/grub-mkconfig.in: Likewise.
7666 * util/grub-mkconfig_lib.in: Likewise.
7667 * util/grub-mknetdir.in: Likewise.
7668 * util/grub-mkrescue.in: Likewise.
7669 * util/grub-mkstandalone.in: Likewise.
7670 * util/grub-reboot.in: Likewise.
7671 * util/grub-set-default.in: Likewise.
7672 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7673 * tests/util/grub-shell-tester.in: Remove unused assignment.
7674 * tests/util/grub-shell.in: Likewise.
7675 * util/grub.d/00_header.in: Likewise.
7677 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7679 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
7681 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
7683 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
7685 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
7687 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
7688 Reported by: Eriks Latosheks <foresterlv>.
7690 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7692 * docs/grub.texi (Network): Update instructions on generating netboot
7695 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7697 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
7698 around device name if necessarry.
7700 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7702 * util/grub-install.in: Follow the symbolic link parameter added
7703 to the file command.
7705 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
7707 * util/grub-install.in: Remove stale TODO.
7709 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7711 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
7712 dynamic allocation for the bootpath buffer.
7714 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
7716 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
7719 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7721 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
7722 argument rather than font name. All users updated.
7723 (grub_gfxterm_set_window): Likewise.
7725 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
7727 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
7730 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7732 * util/getroot.c (convert_system_partition_to_system_disk): Support
7735 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7737 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
7738 infinite loop on corrupted FS.
7740 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
7742 Fix big-endian mtime.
7744 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
7745 together sec and usec.
7746 (grub_ufs_dir): Use correct byteswapping for UFS time.
7748 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
7750 Support big-endian UFS1.
7752 * Makefile.util.def (libgrubmods): Add ufs_be.c
7753 * grub-core/Makefile.core.def (ufs1_be): New module.
7754 * grub-core/fs/ufs_be.c: New file.
7755 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
7758 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
7760 * include/grub/types.h: Fix functionality unaffecting typo in
7761 GRUB_TARGET_WORDSIZE conditional macro.
7763 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7765 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
7767 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
7769 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
7770 that /netbsd appears first (when it exists).
7772 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
7774 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
7775 Fixes Savannah bug #37558.
7777 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
7779 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
7780 description of extract_entries_configfile.
7782 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
7784 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
7786 (grub_cmd_linux): Likewise.
7787 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
7788 preferred_lifetime. Update all users.
7790 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
7792 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
7793 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
7795 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
7797 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
7798 errors from grub-probe to /dev/null, not stdout.
7800 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
7802 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
7805 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
7807 * util/grub-install.in: Make the error message if $source_dir
7808 doesn't exist more useful.
7810 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
7812 Fix grub-emu build on FreeBSD.
7814 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
7815 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
7817 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
7818 implementation is currently Linux-specific.
7819 * util/getroot.c (exec_pipe): Define only on Linux or when either
7820 libzfs or libnvpair is unavailable.
7821 (find_root_devices_from_poolname): Remove unused path variable.
7823 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
7825 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
7826 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
7827 should fit before end == 63.
7829 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
7831 * util/grub-setup.c (write_rootdev): Remove unused core_img
7832 parameter. Update all callers.
7833 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
7834 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
7837 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7839 * util/grub-mkconfig_lib.in (grub_tab): New variable.
7840 (grub_add_tab): New function.
7841 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
7842 * util/grub.d/10_illumos.in: Likewise.
7843 * util/grub.d/10_kfreebsd.in: Likewise.
7844 * util/grub.d/10_linux.in: Likewise.
7845 * util/grub.d/10_netbsd.in: Likewise.
7846 * util/grub.d/10_windows.in: Likewise.
7847 * util/grub.d/10_xnu.in: Likewise.
7848 * util/grub.d/20_linux_xen.in: Likewise.
7849 * util/grub.d/30_os-prober.in: Likewise.
7851 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7853 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7854 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
7855 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
7856 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
7857 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
7859 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
7860 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
7862 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7864 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
7866 Reported by: BURETTE, Bernard.
7868 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
7870 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
7873 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
7875 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
7876 IEEE1275 machines. Fixes powerpc-emu compilation.
7877 * include/grub/terminfo.h: Likewise.
7879 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7881 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
7883 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
7885 (efiemu_set_variable): Make vendor_guid a const pointer.
7887 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7889 Don't require grub-mkconfig_lib to generate manpages for programs.
7891 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
7892 dependencies, don't add grub-mkconfig_lib.
7893 (program): Pass empty adddeps.
7894 (script): Pass grub-mkconfig_lib as adddeps.
7896 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7898 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
7899 * util/getroot.c (grub_find_device): Likewise.
7900 (get_mdadm_uuid): Likewise.
7901 (grub_util_is_imsm): Likewise.
7902 (grub_util_pull_device): Likewise.
7903 * util/grub-probe.c (probe): Likewise.
7905 2012-09-10 Benoit Gschwind <gschwind>
7907 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
7908 (devs): Add devpath_8.
7910 2012-09-08 Peter Jones <pjones@redhat.com>
7912 * grub-core/Makefile.core.def (efifwsetup): New module.
7913 * grub-core/commands/efi/efifwsetup.c: New file.
7914 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
7915 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
7917 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
7919 2012-09-05 Jiri Slaby <jslaby@suse.cz>
7921 * configure.ac: Add SuSe path.
7923 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
7927 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
7929 * util/import_gcry.py: Sort cipher_files, to make build system
7930 generation more deterministic.
7932 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7934 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
7935 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
7936 (grub_set_datetime): Likewise.
7938 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7940 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
7943 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7945 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
7947 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7949 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
7951 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7953 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
7954 required for checkouts from bzr, but it may be useful for users or
7955 distributors wishing to update translations against a tarball
7956 distribution, and it can be helpful for the tarball to be a superset
7959 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7961 * Makefile.am (EXTRA_DIST): Add
7962 grub-core/tests/boot/linux.init-mips.S,
7963 grub-core/tests/boot/linux.init-ppc.S, and
7964 grub-core/tests/boot/linux-ppc.cfg.
7966 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7968 * grub-core/mmap/mips/loongson: Remove empty directory.
7970 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7972 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
7975 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7977 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
7980 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
7982 * configure.ac: Strengthen the test for working -nostdinc -isystem.
7984 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
7986 * po/POTFILES.in: Regenerated.
7988 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
7990 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
7991 (NetBSD): New subsection.
7993 2012-07-22 Ales Nesrsta <starous@volny.cz>
7995 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
7996 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
7998 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8000 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8001 * util/grub.d/10_hurd.in: Add missing quoting.
8002 * util/grub.d/10_illumos.in: Likewise.
8003 * util/grub.d/10_kfreebsd.in: Likewise.
8004 * util/grub.d/10_linux.in: Likewise.
8005 * util/grub.d/20_linux_xen.in: Likewise.
8007 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8009 New command `lsefi'.
8011 * grub-core/Makefile.core.def (lsefi): New module.
8012 * grub-core/commands/efi/lsefi.c: New file.
8013 * include/grub/efi/api.h: Add more GUIDs.
8015 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8017 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8018 (grub_bsd_elf32_hook): Likewise.
8019 (grub_bsd_elf64_size_hook): Likewise.
8020 (grub_bsd_elf64_hook): Likewise.
8021 (grub_bsd_load_elf): Likewise.
8023 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8025 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8026 if hash function is unavailable.
8027 (dec_stream_header): Likewise.
8029 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8031 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8034 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8036 Fix coreboot compilation.
8038 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8039 (grub_vga_text_init_real): ... this.
8040 (grub_vga_text_fini): Rename to ...
8041 (grub_vga_text_fini_real): ... this.
8043 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8045 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8047 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8049 * grub-core/lib/legacy_parse.c: Support clear and testload.
8051 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8053 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8055 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8057 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8059 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8061 * grub-core/net/tftp.c (ack): Fix endianness problem.
8062 (tftp_receive): Likewise.
8063 Reported by: Michael Davidsaver.
8065 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8067 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8069 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8071 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8072 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8073 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8075 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8077 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8079 Reported by: Stuart Hayes.
8081 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8083 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8085 * grub-core/Makefile.core.def (mda_text): New module.
8086 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8087 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8088 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8089 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8091 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8092 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8093 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8095 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8097 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8099 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8101 * grub-core/term/i386/vga_common.c: Removed.
8102 * include/grub/i386/vga_common.h: Likewise.
8103 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8104 (grub_vga_cr_bw_read): Likewise.
8105 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8106 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8107 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8108 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8109 grub_vga_cr_read/grub_vga_cr_write.
8110 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8112 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8114 * configure.ac: Bump version to 2.00.
8115 * grub-core/normal/main.c (features): Add feature_200_final.
8117 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8118 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8120 * NEWS: Fix unclarity and language mistakes.
8122 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8124 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8125 additional size to 3 pages.
8126 Reported by: Stuart Hayes.
8128 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8130 * NEWS: Add 2.00 entry.
8132 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8134 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8135 put explicit "/" for empty path.
8136 (wildcard_expand): Improve dprintf.
8138 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8140 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8141 it's equal to currnode. This can happen with "" symlink.
8143 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8145 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8146 echo shell command by printf command.
8148 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8150 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8151 the value returned by firmware is the maximal position, not diumension.
8152 (grub_terminfo_output_state): Use a more sane fallback.
8154 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8156 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8158 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8160 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8161 frequency to 150 MHz.
8163 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8167 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8169 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8171 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8173 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8175 Handle slash in HFS label.
8177 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8178 (grub_hfs_dir): Tanslate slash.
8179 (grub_hfs_label): Don't translate slash.
8181 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8183 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8184 network protocol listing since it introduces problematic dependency on
8187 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8189 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8191 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8193 Init video early on yeeloong to avoid being rebooted by watchdog.
8195 * grub-core/Makefile.am (gensm712): New target.
8196 (sm712_start.S): Likewise.
8197 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8198 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8199 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8201 * include/grub/vga.h: Move registry definitions to...
8202 * include/grub/vgaregs.h: ... here.
8204 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8206 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8209 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8211 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8212 platforms with firmware disk drivers in the core.
8214 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8216 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8217 informative verbose message.
8218 (read_lv): Handle 64-bit segment size.
8220 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8222 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8224 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8226 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8227 character but still remove trainling spaces.
8228 (grub_fat_label): Ignore archive flag.
8230 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8232 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8233 cast between linux_kernel_header and linux_kernel_params.
8235 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8237 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8239 (grub_raid6_recover_func_t): Likewise.
8240 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8241 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8243 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8245 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8247 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8251 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8252 [__NetBSD__]: Add explicit cast before bitshift.
8254 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8256 * configure.ac: Bump to 2.00~rc1.
8258 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8260 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8263 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8264 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8266 * docs/grub.texi: Fix search syntax.
8267 (Multi-boot manual config): Put msdos rather than GPT example.
8268 Grammar corrections.
8270 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8272 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8274 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8276 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8278 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8280 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8281 message on double free. Put the value of magic in case of mismatch.
8283 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8285 Speed-up video on yeeloong.
8287 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8289 (grub_video_sm712_video_fini): Unmap cached_ptr.
8290 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8291 (grub_video_sm712_set_active_render_target): Removed.
8292 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8293 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8296 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8298 Avoid flushing the same line multiple times on loongson.
8300 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8301 Step in 32 bytes and not 1 byte.
8302 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8305 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8307 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8310 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8312 Implement flow control for http.
8314 * grub-core/net/http.c (parse_line): Handle response 206.
8315 (http_receive): Stall if too many packets are in the queue.
8316 (http_establish): Fix range header.
8317 (http_seek): Fix double free.
8318 (http_close): Likewise.
8319 (http_packets_pulled): New function.
8320 (grub_http_protocol): Set http_seek
8321 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8322 (ack_real): Set window depending on i_stall.
8323 (grub_net_send_tcp_packet): Likewise.
8324 (grub_net_tcp_stall): New function.
8325 (grub_net_tcp_unstall): Likewise.
8326 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8327 (grub_net_tcp_unstall): Likewise.
8329 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8331 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8333 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8335 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8337 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8339 * tests/util/grub-shell.in: Fix a typo.
8341 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8343 Implement flow control for tftp.
8345 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8346 packets but stop only if stop condition is satisfied.
8347 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8348 `stall' instead of `eof' as stop condition.
8349 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8350 (http_err): Likewise.
8351 * grub-core/net/tftp.c (ack): Replace the first argument with data
8353 (tftp_receive): Stall if too many packets are in wait queue.
8354 (tftp_packets_pulled): New function.
8355 (grub_tftp_protocol): Set packets_pulled.
8356 * include/grub/net.h (grub_net_packets): New field count.
8357 (grub_net_put_packet): Increment count.
8358 (grub_net_remove_packet): Likewise.
8359 (grub_net_app_protocol): New field `packets_pulled'.
8360 (grub_net): New field `stall'.
8362 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8364 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8365 sync part to handle them.
8367 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8369 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8370 * grub-core/net/drivers/ieee1275/ofnet.c
8371 (grub_ieee1275_net_config_real): Likewise.
8373 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8375 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8376 the direct route for server/gateway.
8378 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8380 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8381 IP address to server name since we may not hame the DNS.
8383 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8385 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8386 freeing random buffer on failure.
8387 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8389 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8391 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8393 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8395 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8397 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8398 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8399 Handle malloc error correctly.
8401 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8403 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8406 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8408 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8411 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8413 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8414 none is explicitly specified.
8416 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8418 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8421 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8423 Respect netmask from bootp/dhcp.
8425 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8426 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8427 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8429 (grub_net_add_ipv4_local): ... this.
8430 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8431 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8432 (grub_net_add_ipv4_local): New proto.
8434 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8436 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8437 determining EFI memory map size.
8439 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8441 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8443 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8445 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
8446 when looking for partition separator.
8448 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8450 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8453 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8455 Restructure FAT driver to avoid hook in label reading as it hits a
8458 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
8459 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
8460 (grub_fat_iterate_dir): Split into ...
8461 (grub_fat_iterate_init): ... this, ...
8462 (grub_fat_iterate_fini): ... this, ...
8463 (grub_fat_iterate_dir_next): ... and this. All users updated.
8465 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8467 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8468 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
8469 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8470 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
8471 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
8472 New fields last_key and last_key_time.
8473 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
8474 extended key-esc into extended key-extended key.
8476 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8478 Avoid unnecessary memcpy of whole video buffer.
8480 * grub-core/video/fb/video_fb.c (dirty): New struct.
8481 (framebuffer): Add members current_dirty and previous_dirty.
8482 (dirty): New function.
8483 (grub_video_fb_fill_rect): Update dirty.
8484 (common_blitter): Likewise.
8485 (grub_video_fb_scroll): Likewise.
8486 (doublebuf_blit_update_screen): Copy only dirty part.
8487 (doublebuf_pageflipping_update_screen): Likewise.
8488 (grub_video_fb_doublebuf_blit_init): Init dirty.
8489 (doublebuf_pageflipping_init): Likewise.
8490 (grub_video_fb_setup): Likewise.
8492 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8494 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
8497 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8499 Fix wildcard regexp dot and other special characters handling.
8500 Reported by: Robert Mabee.
8502 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
8503 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
8504 (split_path): Trigger expansion on '?'.
8505 (unescape): New function.
8506 (wildcard_expand): Unescape parts copied without globbing.
8507 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
8508 (grub_script_arglist_to_argv): Don't unescape expansions.
8510 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8512 * include/grub/net.h (grub_net_card): New member txbufsize.
8513 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
8514 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
8515 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
8516 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
8518 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
8519 compatible property to check for macs. Set
8520 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
8521 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
8522 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
8523 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
8524 (send_card_buffer): Use txbuf.
8525 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
8526 nested function out of the parent while on it.
8528 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8530 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
8532 (grub_ieee1275_net_config_real): Fix config pointer.
8534 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8536 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
8537 filename parsing to non-block devices.
8539 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8541 * grub-core/kern/device.c (grub_device_open): Remove dead code.
8543 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8545 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
8548 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8550 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
8551 UUID search command even if hints probing failed.
8553 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8555 * po/POTFILES.in: Regenerated.
8557 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
8559 Speed-up video on fuloong.
8561 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
8563 (grub_pci_device_unmap_range): Handle non-cached address.
8564 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
8566 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
8567 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
8568 (grub_video_sis315pro_set_active_render_target): Removed.
8569 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
8570 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8571 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
8573 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
8576 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
8578 * docs/grub.texi (Multi-boot manual config): New section.
8580 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8582 Avoid slow read-back from VRAM.
8584 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
8586 * grub-core/video/fb/video_fb.c
8587 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
8588 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
8589 (front_target): Remove front_target. Add pages.
8590 (grub_video_fb_init): Skip setting front_pages.
8591 (grub_video_fb_fini): Likewise.
8592 (doublebuf_blit_update_screen): Use pages.
8593 (grub_video_fb_doublebuf_blit_init): Likewise.
8594 (doublebuf_pageflipping_init): Allocate offscreen buffer.
8595 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
8596 (grub_video_fb_setup): Prefer doublebuffing.
8598 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8600 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
8603 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8607 * tests/util/grub-shell.in: Handle loongson.
8608 * tests/partmap_test.in: Add loongson to the list of platform using ATA
8610 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
8611 Reboot instead of shutdown if REBOOT is defined.
8613 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8615 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
8616 sized ports since unlike on real hardware qemu supports only 32-bit
8619 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8621 * Makefile.util.def (grub-mkrescue): Enable on loongson.
8622 * util/grub-mkrescue.in: Handle loongson.
8624 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
8626 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
8627 Set is_part appropriately.
8628 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
8629 names. Canonicalize partition without full disk.
8631 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8633 Revert usb-quiesce since it's wrong.
8635 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
8636 (grub_ofdisk_init): Don't do quiesce.
8638 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8640 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
8641 PowerMac workaround to Xserves as well.
8642 Information supplied by: Benjamin Herrenschmidt.
8644 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8646 Don't assume that beginning address is also the entry point on ppc.
8648 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
8649 (grub_linux_boot): Use linux_entry.
8650 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
8651 (grub_linux_load64): Likewise.
8653 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8655 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
8657 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8659 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
8660 needlessly lose the console.
8662 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8664 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
8667 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
8669 Remove non-functional EFI grub_get_rtc. Put a better fatal message
8670 than current grub_get_rtc() not implemented when booted with
8671 coreboot without TSC.
8673 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
8674 Add machine/time.h to kernel headers on loongson.
8675 * grub-core/Makefile.core.def (kernel): Remove
8676 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
8677 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
8678 (grub_get_rtc): Likewise.
8679 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
8680 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
8681 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
8682 * grub-core/kern/i386/tsc.c (grub_tsc_init)
8683 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
8684 rather than installing known non-working time source.
8685 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
8686 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
8687 * include/grub/time.h: Don't include machine/time.h.
8688 * include/grub/efi/time.h: Removed.
8689 * include/grub/i386/efi/time.h: Likewise.
8690 * include/grub/i386/ieee1275/time.h: Likewise.
8691 * include/grub/powerpc/ieee1275/time.h: Likewise.
8692 * include/grub/sparc64/ieee1275/time.h: Likewise.
8693 * include/grub/x86_64/efi/time.h: Likewise.
8695 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
8697 Remove dot on i and j when combining with above diacritics.
8699 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
8701 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
8702 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
8703 with dotless variants when any combining above is present.
8705 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8707 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
8708 text and not binary.
8710 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8712 Stop polling as soon as we have the packet we were waiting for.
8714 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
8716 * grub-core/net/arp.c (have_pending): New var.
8717 (pending_req): Likewise.
8718 (grub_net_arp_send_request): Fill pending_req and use have_pending as
8720 (grub_net_arp_receive): Set have_pending.
8721 * grub-core/net/dns.c (recv_data): New field stop.
8722 (recv_hook): Set stop.
8723 (grub_net_dns_lookup): Init stop and use as stop condition.
8724 * grub-core/net/http.c (http_establish): Use headers_recv as stop
8726 * grub-core/net/net.c (grub_net_poll_cards): New argument
8727 stop_condition. Stop when it goes true.
8728 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
8730 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
8732 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8734 Keep TX and RX buffers on EFI rather than always allocate new ones.
8736 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
8737 card. All users updated.
8738 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
8739 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
8740 (get_card_packet): Likewise.
8741 (grub_efinet_findcards): Init new fields.
8743 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8745 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
8746 compilation error on sparc64.
8748 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8750 Use ITC on IA64 rather than broken routine based on daytime.
8752 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
8754 (grub_get_rtc) [__ia64__]: Likewise.
8755 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
8756 (get_itc): New function.
8757 (grub_rtc_get_time_ms): Likewise.
8758 (grub_machine_init): Calibrate ITC.
8759 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
8760 Keep only on non-ia64. Don't export since it's broken and used only
8761 if TSC is unavailable.
8763 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8765 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
8767 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
8768 Skip if parent is unused.
8770 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8772 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
8774 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8776 Fix wildcard escaping.
8778 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
8779 * grub-core/script/execute.c (wildcard_escape): .. to here.
8781 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
8782 * grub-core/script/execute.c (wildcard_unescape): .. to here.
8784 * grub-core/script/execute.c (gettext_append): Always escape.
8785 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
8786 * grub-core/script/yylex.l: Don't cut away the escaping.
8787 * tests/grub_script_echo1.in: Add tests with wildcard.
8789 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8791 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
8792 (ftdi_hw_configure): Likewise.
8793 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
8795 (real_config): Handle 1.5 stop bits.
8796 (pl2303_hw_configure): Likewise.
8798 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8800 * Makefile.am: Add ppc linux bootcheck.
8801 * grub-core/tests/boot/linux-ppc.cfg: New file.
8802 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
8804 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8806 * tests/grub_script_expansion.in: Skip network protocols.
8808 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8810 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
8812 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8814 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
8818 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8820 ESCC serial driver for conducting sautomated tests in qemu.
8821 Not tested on real hardware.
8823 * include/grub/serial.h (grub_serial_port): New field escc_desc.
8824 * grub-core/term/ieee1275/escc.c: New file.
8825 * grub-core/Makefile.core.def (escc): New module.
8827 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8829 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
8831 (serial_hw_fetch): Don't read invalid handle.
8832 (serial_hw_put): Don't write into invalid handle.
8834 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8836 Add a 1.5 stop bits value.
8838 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
8839 * include/grub/serial.h (grub_serial_stop_bits_t): Add
8840 GRUB_SERIAL_STOP_BITS_1_5.
8842 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8844 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
8845 value rather than let it uninited.
8847 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8849 * grub-core/commands/wildcard.c (+check_file): New function.
8850 (wildcard_expand): Don't expand to non-existing files, expand with
8851 suffix and not attempt to expand if not needed.
8853 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8855 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
8856 out of partitions containing other partitions.
8858 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8860 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
8861 on some qemu versions with GRUB.
8863 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
8865 (grub_openbsd_bootarg_pcibios): New struct.
8866 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
8869 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8871 * tests/util/grub-shell.in: Trim firmware output on EFI.
8873 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8875 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
8876 and coreboot since it's already in kernel.
8878 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8880 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
8881 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
8882 to here. New return value start. All users updated.
8883 Recursively scan linear mappings.
8884 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
8886 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
8887 Use grub_util_get_dm_node_linear_info.
8888 * util/getroot.c (convert_system_partition_to_system_disk): Use
8889 grub_util_info rather than grub_dprintf.
8890 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
8892 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8894 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
8896 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
8897 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
8899 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8901 * include/grub/types.h (grub_set_unaligned64): New function.
8902 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
8905 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8907 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
8908 (grub_ofdisk_fini): Quiesce USB devices.
8910 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8912 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
8915 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8917 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
8919 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8921 * grub-core/disk/pata.c (grub_pata_pio_read)
8922 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
8923 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
8925 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8927 Extend automated tests to qemu-mips.
8929 * Makefile.am: reorganise tests and enable qemu-mips.
8930 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
8931 * grub-core/tests/boot/linux.init-mips.S: New file.
8932 * tests/partmap_test.in: Handle ata0 disks.
8933 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
8936 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8938 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
8940 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
8943 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8945 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
8946 (grub_halt): Likewise.
8947 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
8949 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8951 * grub-core/term/serial.c (grub_serial_register)
8952 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
8953 the behaviour in line with x86 platforms.
8955 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8957 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
8958 (grub_ata_strncpy): Likewise.
8959 (grub_ata_identify): Add missing byteswaps.
8961 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8963 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
8965 (screen_read_char): Likewise.
8966 (grub_vga_text_cls): Likewise.
8968 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8970 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
8972 (make_file_path): Likewise.
8974 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8976 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
8978 Tested by: Paulo Flabiano Smorigo.
8979 Crucial information about API supplied by: Coleen <Last name unknown>.
8980 Reviewed by: Coleen <Last name unknown>.
8982 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8984 * util/grub-mkimage.c: Disable -Wcast-align.
8986 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8988 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
8991 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8993 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
8995 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8997 * util/grub-probe.c (escape_of_path): Fix double free.
8999 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9001 * grub-core/commands/videoinfo.c (hook): Show pitch.
9003 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9005 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9007 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9009 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9010 (probe): Add ieee1275 to OFW devices.
9012 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9014 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9016 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9018 Handle IBM OFW path.
9020 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9022 (of_path_of_scsi): Handle vdevice.
9024 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9026 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9027 Allocate in multiples of 16 to avoid adding a few bytes free region the
9030 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9032 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9033 Allocate in multiples of 16 to avoid adding a few bytes free region the
9035 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9037 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9039 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9041 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9042 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9044 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9046 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9048 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9050 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9051 resulted in \\ at the end of the line.
9053 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9055 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9056 (grub_parser_cmdline_state): Likewise.
9057 (grub_parser_split_cmdline): Likewise.
9059 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9061 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9062 /dev/root and /dev/dm-*.
9064 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9066 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9067 fix partially stale display.
9069 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9071 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9074 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9076 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9077 Fix MBR remapping workaround.
9078 (grub_util_biosdisk_read) [__linux__]: Likewise.
9080 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9082 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9084 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9086 * configure.ac: Bump to beta6.
9088 2012-05-31 Christer Weinigel <christer@weinigel.se>
9090 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9092 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9094 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9095 (grub_cmd_linux): Likewise.
9097 2012-05-31 Christer Weinigel <christer@weinigel.se>
9101 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9102 (GRUB_EHCI_MULT_TWO): Likewise.
9103 (GRUB_EHCI_MULT_THREE): Likewise.
9104 (GRUB_EHCI_CMASK_MASK): New enum value.
9105 (GRUB_EHCI_SMASK_MASK): Likewise.
9106 (GRUB_EHCI_CMASK_OFF): Likewise.
9107 (GRUB_EHCI_SMASK_OFF): Likewise.
9108 (grub_ehci_pci_iter): Enable periodic schedule.
9109 (grub_ehci_parse_notrun): Likewise.
9110 (grub_ehci_restore_hw): Likewise.
9111 (grub_ehci_setup_qh): Set flags for low speed transfers.
9112 (grub_ehci_find_qh): Use periodic list for low speed.
9113 (grub_ehci_setup_transfer): Check periodic queue as well.
9114 (grub_ehci_check_transfer): Likewise.
9115 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9117 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9119 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9122 2012-05-31 Peter Jones <pjones@redhat.com>
9124 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9125 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9126 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9128 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9130 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9131 uninited variable. Allocate at least setup_sects.
9133 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9135 Fix handling of EFI with big memory maps.
9137 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9138 (real_mode_mem): Likewise.
9139 (real_mode_target): Likewise.
9140 (real_mode_pages): Likewise.
9141 (prot_mode_pages): Likewise.
9142 (linux_params): New var.
9143 (linux_cmdline): Likewise.
9144 (free_pages): Don't set real mode variables.
9145 (allocate_pages): Don't allocate real mode memory.
9146 (grub_e820_add_region): Remove the limit.
9147 (grub_linux_boot): Allocate and copy real mode memory.
9148 (grub_linux_unload): Free linux_cmdline.
9149 (grub_cmd_linux): Use temporary storage for parameters.
9150 (grub_cmd_initrd): Likewise.
9151 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9152 (linux_kernel_params): Make it 1K big.
9154 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9156 * Makefile.util.def: Remove -Wno-format.
9157 * grub-core/Makefile.core.def: Likewise.
9159 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9161 * tests/cmp_unit_test.c: Add missing failure message.
9162 * tests/example_unit_test.c: Likewise.
9163 * tests/printf_unit_test.c: Likewise.
9165 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9167 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9168 relaxation of protective MBR requirements.
9170 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9172 * configure.ac: Add condition for COND_HOST_XNU.
9173 * Makefile.util.def (10_xnu): New script.
9174 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9176 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9178 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9181 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9183 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9184 Binary on other platforms stays identical.
9186 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9188 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9191 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9193 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9195 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9197 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9198 rather than defining size_t ourselves to avoid conflict.
9200 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9202 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9203 initialisation to avoid __bzero reference.
9205 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9207 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9209 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9210 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9211 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9212 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9213 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9215 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9217 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9218 * grub-core/kern/misc.c: Likewise.
9219 * grub-core/loader/i386/xnu.c: Likewise.
9220 * include/grub/i386/tsc.h: Likewise.
9221 * include/grub/symbol.h: Likewise.
9223 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9225 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9226 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9229 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9231 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9232 Implement Apple flavour.
9233 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9235 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9237 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9238 (memmove) [__APPLE__]: Likewise.
9239 (memcpy) [__APPLE__]: Likewise.
9240 (memset) [__APPLE__]: Likewise.
9241 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9242 (memmove) [__APPLE__]: Likewise.
9243 (memcpy) [__APPLE__]: Likewise.
9244 (memset) [__APPLE__]: Likewise.
9246 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9248 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9251 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9253 * grub-core/normal/main.c (read_config_file): Provide config_file and
9255 * util/grub.d/41_custom.in: Use config_directoy when available.
9257 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9259 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9260 (grub_bfs_dir): Likewise.
9262 2012-05-27 Peter Jones <pjones@redhat.com>
9264 The old code gives arguments to a printf function which can't work
9265 correctly, and the compiler complains.
9267 * grub-core/tests/example_functional_test.c (example_test): Add
9269 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9270 * include/grub/test.h (grub_test_assert_helper): New declaration.
9271 (grub_test_assert): Use grub_test_assert_helper.
9273 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9275 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9276 (exfctest): ... this to avoid overlong filenames.
9279 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9281 Handle "." and ".." on squashfs.
9283 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9284 Make inode numbers into stack.
9285 (grub_squash_read_symlink): Use stack.
9286 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9287 (make_root_node): Fill stack.
9288 (grub_squash_open): Use stack.
9290 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9292 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9295 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9297 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9298 stderr on test calls.
9300 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9302 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9304 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9306 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9308 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9310 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9313 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9315 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9316 (grub_hfsplus_iterate_dir): Add "." and "..".
9318 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9320 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9321 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9323 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9325 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9326 (find_path): Handle "." and "..".
9328 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9330 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9331 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9332 (grub_affs_iterate_dir): Handle hardlinks.
9334 2012-05-26 Matthew Garrett <mjg@redhat.com>
9336 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9337 (grub_efi_console_fini): Likewise.
9338 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9339 (grub_video_gop_fill_mode_info): Rename to ...
9340 (grub_video_gop_fill_real_mode_info): ... this.
9341 (grub_video_gop_fill_mode_info): New function.
9342 (grub_video_gop_setup): Setup double framebuffer.
9343 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9345 (grub_video_gop_swap_buffers): Copy framebuffer.
9346 (grub_video_gop_fini): Free offscreen buffer.
9347 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9349 (grub_efi_gop_blt_pixel): New struct.
9351 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9353 * gentpl.py: Remove error disabling for objconv.
9355 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9357 * configure.ac: Remove -Wunitialized as it's not available on older
9360 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9362 Fix extent overflow comparator.
9364 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9365 (grub_hfsplus_read_block): Set type.
9366 (grub_hfsplus_cmp_extkey): Compare type.
9368 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9370 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9372 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9374 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9377 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9379 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9380 (dejavu_bold_14.pf2): New target.
9382 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9384 * configure.ac: Fix djvu font detection.
9386 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9388 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9389 ext* instead of ext2.
9391 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9393 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9396 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9398 * docs/grub-dev.texi: Remove dot from .png.
9400 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9402 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9403 protective entry in any slot.
9404 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9405 if protective entry is found in any slot.
9407 Protective entry in non-first slot make no sense but is a widespread
9410 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9412 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9414 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9416 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9418 (grub_reiserfs_open): Don't free root.
9420 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9422 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9423 after freeing for safety.
9425 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9427 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9428 Reported by: Jordan Uggla.
9430 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9432 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9433 actual implementation. Specifically, clarify that the grub menu will
9434 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9437 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9439 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9442 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9444 Remove unjustified hard dependency of normal.mod on gfxterm.
9446 * include/grub/term.h (grub_term_output): New member fullscreen.
9447 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
9448 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
9449 (grub_gfxterm): Set .fullscreen.
9450 * grub-core/normal/menu.c (menu_init): Use fullscreen.
9451 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
9453 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9455 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
9456 mentioning possible problems with non-ASCII (non-compliant) ISOs.
9457 Mention case-insensitive AFFS, SFS and JFS.
9459 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9461 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
9463 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9465 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9468 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9470 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
9471 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
9473 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9475 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
9476 (grub_jfs_mount): Fill caseins.
9477 (grub_jfs_find_file): Respect caseins.
9479 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9481 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
9484 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9486 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
9487 New argument origpath. All users updated.
9489 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9491 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
9492 (read_attr): Ensure that we read start of possibly compressed block.
9494 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9496 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
9497 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
9500 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9502 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
9503 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
9504 (dejavu.pf2): Replace with ...
9505 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
9508 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9510 * util/grub.d/20_linux_xen.in: Add missing line.
9512 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9514 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
9515 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
9516 (grub_utf16_to_utf8): Likewise.
9518 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9520 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
9521 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
9522 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9523 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
9524 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9525 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
9527 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9529 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9532 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9534 * grub-core/fs/udf.c (read_string): Bail out on size=0.
9535 (grub_udf_read_symlink): Handle read_string failure.
9537 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9539 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
9542 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9544 Fix handling of UDF symlinks.
9546 * grub-core/fs/udf.c (read_string): New argument outbuf.
9548 (grub_ufs_read_symlink): Rename to ...
9549 (grub_udf_read_symlink): ... this. All users updated.
9550 Handle symlinks with more than one component.
9552 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9554 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
9555 symlinks. Replace leading colon with a slash.
9557 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9559 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
9562 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9564 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
9565 match in inner node.
9567 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9569 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
9570 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
9571 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
9572 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
9573 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
9574 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
9575 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
9576 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
9577 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
9579 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
9581 Use grub-probe and not cmp to check that disk is empty.
9583 * util/grub-install.in: Use grub-probe for zero-check.
9584 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
9585 (probe): Handle PRINT_ZERO_CHECK.
9586 (argp_parser): Handle -t zero_check.
9588 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
9590 Flush block cache on adding disk to device map.
9592 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
9593 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
9595 (read_device_map): Likewise.
9596 (open_device): Flush on opening.
9598 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9600 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
9601 (handle_symlink): Fix off-by-one error.
9602 Canonicalize the target.
9603 (grub_cpio_dir): Canonicalize the name.
9606 (grub_cpio_open): Canonicalize the name.
9608 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9610 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
9613 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9615 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
9616 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
9618 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9620 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
9621 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
9624 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9626 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
9629 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9631 Fix UFS1 big file support.
9633 * grub-core/fs/ufs.c (INODE): Removed.
9634 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
9636 (INODE_MODE): Simplify.
9637 (grub_ufs_inode): Use uint64_t for size and not int64_t.
9638 (grub_ufs_lookup_symlink): Don't use INODE.
9640 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9642 Fix minixfs with non-power-of-two blocks since it's supported by minix.
9644 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
9645 (grub_minix_data): Replace log_block_size with block_size.
9646 (grub_minix_read_file): Use block_size but avoid 64-bit division.
9647 (grub_minix_mount): Fill block_size.
9649 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9651 * configure.ac: Bump to beta5.
9653 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9655 Fix wrapped HFS+ handling.
9657 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
9658 blocks_start. All users updated.
9659 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
9661 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
9663 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9665 Fix long symlinks on reiserfs.
9667 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
9668 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
9669 (grub_reiserfs_iterate_dir): Save size for non-directories.
9670 (grub_reiserfs_open): Don't reread stat block as we already know the
9672 (grub_reiserfs_read): Split into...
9673 (grub_reiserfs_read_real): ... and ...
9674 (grub_reiserfs_read): ...this.
9676 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9678 Fix non-indexed JFS.
9680 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
9681 (grub_jfs_data): New field namecomponentlen.
9682 (grub_jfs_mount): Fill namecomponentlen.
9683 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
9685 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9687 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
9688 * tests/grub_script_echo1.in: Add tests.
9690 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9692 * util/grub-install.in: Ignore empty devicetree directory.
9694 2012-05-08 Bean <bean123ch@gmail.com>
9696 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
9698 (free_rsm): Free header as well.
9699 (free_old_fragments): Fix memory leak.
9700 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
9701 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
9702 (destroy_pq): Likewise.
9703 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
9705 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9707 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
9708 resulting hash as a precaution.
9710 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9712 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
9713 '_' in variable names.
9714 * grub-core/net/net.c (grub_net_network_level_interface_register):
9717 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9719 Fix AFFS with non-512B blocks.
9721 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
9722 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
9723 (grub_affs_data): Replace blocksize with log_blocksize.
9724 (grub_affs_read_block): Fix non-512B blocks.
9725 (grub_affs_read_symlink): Likewise.
9726 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
9727 (grub_affs_read): Fix non-512B blocks.
9728 (grub_affs_label): Likewise.
9729 (grub_affs_mtime): Likewise.
9730 (grub_affs_mount): Fix block detection routine.
9732 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9734 Add filesystem mtime to AFFS.
9736 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
9737 (aftime2ctime): New function.
9738 (grub_affs_dir): Use aftime2ctime.
9739 (grub_affs_label): Fix return value.
9740 (grub_affs_mtime): New function.
9741 (grub_affs_fs): Add mtime.
9743 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9745 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
9748 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9750 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
9753 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9755 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
9757 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9759 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
9761 (FLAGS_CASE_SENSITIVE): New enum value.
9762 (cache_entry): New struct.
9763 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
9764 cache_size and cache.
9765 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
9766 Add log_blocksize and fshelp_flags.
9767 (grub_sfs_read_extent): Handle non-512 blocks.
9768 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
9769 (grub_sfs_read_file): Handle non-512 blocks.
9770 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
9772 (grub_sfs_read_symlink): Handle non-512 blocks.
9773 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
9774 (grub_sfs_dir): Free cache.
9775 (grub_sfs_close): Likewise.
9777 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9779 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
9782 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9784 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
9786 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9788 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
9790 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9792 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
9793 (grub_sfs_read_extent): Likewise.
9794 (grub_sfs_read_block): Likewise.
9795 (grub_sfs_mount): Likewise.
9796 (grub_sfs_iterate_dir): Likewise.
9797 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
9798 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
9800 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9802 Fix errors on compressed NTFS with 512B clusters.
9804 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
9806 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
9808 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
9809 Relax check for inline extents.
9810 (ntfscomp): Return correct -1 on error and not 0.
9812 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9814 * util/grub-install.in: Fix handling of prefix containing spaces.
9816 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9818 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
9819 (grub_squash_read_data): Fix offset byte-swapping.
9821 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9823 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
9824 per common usage and preffered in several parts of code.
9825 (grub_memcmp): Likewise.
9826 (grub_strncmp): Likewise.
9827 * include/grub/misc.h (grub_strcasecmp): Likewise.
9828 (grub_strncasecmp): Likewise.
9829 * Makefile.util.def (cmp_test): New test.
9830 (grub_script_strcmp): Likewise.
9831 * tests/cmp_unit_test.c: New file.
9832 * tests/grub_script_strcmp.in: Likewise.
9833 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
9835 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9837 * include/grub/pci.h: Move enums into no-asm part.
9839 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9841 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
9843 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
9845 * util/getroot.c (find_hurd_root_device): Try to make error message
9846 and comments to translators clearer.
9848 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9850 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
9852 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9854 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
9857 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9859 * docs/grub.cfg: Update.
9861 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9863 * docs/grub.texi (PXE): Remove not present variables.
9865 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9867 * grub-core/net/net.c (defserver_set_env): New function.
9868 (defserver_get_env): Likewise.
9869 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
9871 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9873 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
9876 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9878 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
9879 * grub-core/kern/emu/hostdisk.c: Likewise.
9881 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9883 Handle hurd userspace partitions.
9885 * util/getroot.c (find_hurd_root_device): New function.
9886 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
9888 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9890 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
9892 Reported by: Bastian Blank.
9894 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9896 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
9897 crossing page boundary.
9899 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9901 Fix B-tree search in BFS, especially in presence of non-ASCII
9904 * grub-core/fs/bfs.c (bfs_strcmp): New function.
9905 (find_in_b_tree): Use standard bsearch + btree algorithm.
9907 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9909 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
9912 2012-05-03 Matthew Garrett <mjg@redhat.com>
9913 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9915 Suspend broadcom cards in order to stop their DMA.
9917 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
9918 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
9919 (pci): Don't build on x86 EFI.
9920 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
9921 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
9923 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
9924 stop_broadcom if running on EFI.
9925 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
9926 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
9927 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
9928 (grub_pci_find_capability): New proto.
9930 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9932 * docs/grub.texi: Remove dot from the extension as it apparently
9933 doesn't work with some makeinfo versions.
9935 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9937 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
9938 with GRUB expectance.
9940 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9942 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
9944 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9946 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
9947 zero after directory block since last entry may be not 0-terminated if
9948 it ends on block boundary. Use continue instead of if spanning whole
9951 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9953 Support 4K sectors UDF inline files.
9955 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
9956 (grub_udf_extended_file_entry): Likewise.
9957 (grub_fshelp_node): Name the anonymous union. Put block at the end.
9959 (get_fshelp_size): New function.
9960 (grub_udf_read_icb): Read whole block.
9961 (grub_udf_iterate_dir): Likewise.
9962 (grub_udf_dir): Likewise.
9963 (grub_udf_open): Likewise.
9965 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9967 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
9969 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9971 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
9972 inline symlinks in addition to workaround.
9974 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9976 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
9978 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9980 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
9982 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9984 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
9986 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9988 Fix reiserfs big seek times.
9990 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
9991 exact. All users updated.
9992 (grub_reiserfs_read): Use nearest btree search for seeking.
9993 Fix return value on error.
9995 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9997 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
9999 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10000 * docs/grub.texi: Update menuentry description.
10002 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10004 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10005 crash when embedding onto filesystem.
10007 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10009 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10012 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10014 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10016 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10018 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10021 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10022 2012-05-01 Bean <bean123ch@gmail.com>
10024 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10026 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10028 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10029 Special behaviour for len = 0 to read whole file isn't used anywhere and
10030 can cause buffer ovewrflows in several places.
10032 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10034 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10036 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10038 Handle RAIDZ on non-512B sectors.
10040 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10041 max_children_ashift.
10042 (fill_vdev_info_real): Fill max_children_ashift.
10043 (read_device): Use max_children_ashift.
10045 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10047 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10049 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10051 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10053 * docs/grub.texi: Update device.map parts.
10055 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10057 Don't scan into non-diskfilter devices having diskfilter names.
10059 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10060 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10062 (scan_disk_hook): New function.
10064 2012-04-29 Bean <bean123ch@gmail.com>
10066 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10069 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10071 * configure.ac: Detect starfield theme font path
10072 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10074 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10076 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10077 geometry on serial consoles.
10079 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10081 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10082 because of network consoles.
10084 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10086 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10089 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10091 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10092 falls on Q syndrom.
10094 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10096 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10097 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10099 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10101 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10102 Allocate at lest 8192 for temporary buffer as required for lzo.
10104 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10106 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10107 to cluster_bits, since it's already added in.
10108 (grub_fat_read_data): Likewise.
10110 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10112 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10113 as long as cluster size is multiple of 512 bytes.
10115 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10117 * util/grub-mkrescue.in: Fix locale directory.
10119 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10121 * grub-core/kern/emu/hostdisk.c (map): Make static.
10123 2012-04-23 Bean <bean123ch@gmail.com>
10125 * util/grub-fstest.c (fstest): Add missing break.
10127 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10131 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10132 not define nr variable.
10133 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10134 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10135 grub_find_device): Do not define.
10137 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10139 Fix kfreebsd compile and behaviour.
10141 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10143 * util/getroot.c: Fix wait.h include.
10144 (grub_guess_root_devices): Error if grub_find_device fails.
10145 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10146 (grub_util_get_dev_abstraction): Likewise.
10147 (grub_util_pull_device): Likewise.
10148 (grub_util_get_grub_dev): Likewise.
10149 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10151 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10153 Fix and unify wholedisk detection.
10155 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10156 is_part. All users updated.
10157 (device_is_wholedisk): Removed.
10158 (grub_util_biosdisk_get_grub_dev): Use is_part.
10160 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10162 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10165 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10167 * configure.ac: Bump to beta4.
10169 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10171 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10172 --fs-uuid --set UUID syntax.
10174 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10176 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10179 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10181 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10183 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10185 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10187 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10189 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10191 2012-04-18 Bean <bean123ch@gmail.com>
10193 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10196 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10198 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10200 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10201 corresponding to GRUB partitions.
10202 (grub_util_biosdisk_write): Likewise.
10204 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10206 Scan mdraid before LVM.
10208 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10209 (grub_diskfilter_register_front): ... this.
10210 (grub_diskfilter_register_back): New function.
10211 All users of grub_diskfilter_register updated.
10213 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10215 * util/grub-install.in: Fix an automatic target detection bug.
10217 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10219 * util/grub-install.in: New option --efi-directory.
10221 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10223 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10224 boot services if we have no other choice.
10226 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10228 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10230 * tests/util/grub-shell.in: Update to --directory.
10232 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10234 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10236 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10238 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10239 (grub_minix_read_file): Likewise.
10240 (grub_minix_read_inode): Likewise.
10241 (grub_minix_find_file): Likewise.
10242 (grub_minix_dir): Likewise.
10244 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10246 * util/grub-setup.c (setup): Fix partition handling and blocklist
10249 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10251 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10252 redundant buggy overlap check.
10254 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10256 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10259 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10261 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10262 kh.loadflags on pre-2.00 kernels.
10264 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10266 Terminate UNDI and PXE before launching the payload to avoid problems
10269 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10270 (grub_loader_flags): ... this. All users updated.
10271 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10272 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10273 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10274 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10276 (grub_pxe_restore): Likewise.
10277 (fini_hnd): New var.
10278 (GRUB_MOD_INIT): Register shutdown hook.
10279 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10280 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10281 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10282 (grub_loader_set): Rename second argument to flags.
10284 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10286 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10288 (grub_get_num_of_utf8_bytes): New function.
10289 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10290 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10292 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10293 (grub_ucs4_to_utf8): Change return type.
10295 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10297 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10299 * grub-core/fs/bfs.c (hop_level): Likewise.
10300 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10302 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10304 * grub-core/lib/adler32.c: Recode due to license unclearness.
10306 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10308 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10309 (test_header): Likewise.
10311 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10313 Fix --help formatting.
10315 * util/grub-mkconfig_lib.in (print_option_help): New function.
10316 (grub_fmt): Likewise.
10317 * util/grub-install.in: Use print_option_help and grub_fmt.
10318 * util/grub-kbdcomp.in: Likewise.
10319 * util/grub-mkconfig.in: Likewise.
10320 * util/grub-mknetdir.in: Likewise.
10321 * util/grub-mkrescue.in: Likewise.
10322 * util/grub-mkstandalone.in: Likewise.
10323 * util/grub-reboot.in: Likewise.
10324 * util/grub-set-default.in: Likewise.
10325 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10327 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10329 * linguas.sh: Remove autogenerated *.po.
10331 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10333 * po/README: Move language fetcing to ...
10334 * linguas.sh: ... here.
10335 * po/README: Point to linguas.sh.
10337 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10339 * po/README: Exclude ko.po due to disclaimer problems.
10341 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10343 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10345 (grub_gettext_translate_real): Handle 0th string.
10346 (grub_gettext_translate): Ensure that "" isn't translated.
10348 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10350 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10351 TRANSLATORS comment.
10352 (grub_diskfilter_print_partmap): Propagate changing of error into
10355 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10357 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10358 to uint64_t to prevent overflow.
10359 (grub_diskfilter_lv): Increase start_extent and extent_count
10360 to uint64_t to prevent overflow.
10362 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10364 * configure.ac: Increase version.
10366 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10368 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10370 * po/Rules-translit: New file.
10371 * po/arabic.sed: Likewise.
10372 * po/cyrillic.sed: Likewise.
10373 * po/greek.sed: Likewise.
10374 * po/hebrew.sed: Likewise.
10375 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10376 * po/Makefile.in.in: Add extra_dist4.
10378 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10380 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10382 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10383 modify names. Introduce MODE_BIGENDIAN.
10384 * grub-core/fs/minix_be.c: New file.
10385 * grub-core/fs/minix2_be.c: Likewise
10386 * grub-core/fs/minix3_be.c: Likewise.
10387 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10389 * grub-core/Makefile.core.def (minix_be): New module.
10390 (minix2_be): Likewise.
10391 (minix3_be): Likewise.
10393 2012-04-01 Felix <email@hamburg.de>
10395 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10396 (devs): Add MBP 2011.
10398 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10400 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10402 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10404 * grub-core/normal/cmdline.c (print_completion): New field
10406 (grub_cmdline_get): Handle width properly.
10408 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10410 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10412 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10414 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
10415 after 29th of February.
10417 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10419 Fix exfat endianness handling.
10421 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10422 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10423 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10424 Byte-swap utf16 when necessary.
10425 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10427 2012-03-31 Anton Blanchard <anton@samba.org>
10428 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10430 Fix btrfs endianness handling.
10432 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10433 (lower_bound): Make root uint64_t. Use root in le.
10434 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10435 (find_path): Fix template key init.
10436 (grub_btrfs_dir): Fix mtime byteswap.
10437 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10439 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10441 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10442 recursion_depth. Break infinite resursions. All users updated.
10444 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10446 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
10448 Reported by: Peter Jones.
10450 2012-03-31 Anton Blanchard <anton@samba.org>
10452 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
10455 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10457 * util/grub-install.in: Fix nvram call for PreP.
10459 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10461 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
10462 the error when some elements are missing into a warning.
10464 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10466 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
10468 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
10470 * docs/grub.texi (Invoking grub-probe): New section.
10471 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
10473 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10475 Fix tab and wide character handling in editor and menu.
10477 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
10478 agglomerate control characters with combining marks.
10479 (bidi_line_wrap): Allow break on tab.
10480 (grub_unicode_get_comb_start): New function.
10481 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
10483 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
10485 * grub-core/normal/term.c (print_ucs4_terminal): New argument
10486 fixed_tab_size. All users updated.
10487 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
10488 (grub_term_getcharwidth): Handle \t.
10489 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
10492 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10494 Handle big-endian mdraid.
10496 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
10497 * grub-core/Makefile.core.def (mdraid09_be): New module.
10498 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
10499 rather than grub_le_to_cpu* and grub_cpu_to_le*.
10500 * grub-core/disk/mdraid_linux_be.c: New file.
10502 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10504 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
10506 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10508 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
10509 missing quotes which caused confusion among translators.
10511 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10513 * util/grub-mkconfig_lib.in: Fix typo.
10515 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10517 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
10519 * tests/grub_script_leading_whitespace.in: New file.
10520 * Makefile.util.def (grub_script_leading_whitespace): New test.
10522 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10524 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
10527 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10529 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
10530 starts with control character.
10532 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10534 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
10536 (grub_gdb_outbuf): Likewise.
10538 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10540 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
10541 zero terminator. Fixes a crash.
10543 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10545 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
10547 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
10548 images independently of preffered adderss field.
10550 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10552 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
10553 * grub-core/commands/regexp.c: Likewise.
10554 * grub-core/loader/i386/linux.c: Likewise.
10555 * grub-core/partmap/msdos.c: Likewise.
10556 * grub-core/script/execute.c: Likewise.
10557 * grub-core/term/gfxterm.c: Likewise.
10559 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10561 Add variable parsing in $"..." and fix several mismatches with bash.
10563 * Makefile.util.def (grub_script_gettext): New test.
10564 * grub-core/script/execute.c (parse_string): New function.
10565 (gettext_append): Likewise.
10566 (grub_script_arglist_to_argv): Use gettext_append.
10567 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
10568 * tests/grub_script_gettext.in: New file.
10570 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10572 Fix handling of leading spaces in scripts.
10574 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
10576 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
10577 other than skipping \r. All users updated.
10578 * tests/grub_script_echo1.in: Add space-related tests.
10579 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
10581 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10583 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
10585 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10587 * configure.ac: Bump up the version to beta2.
10589 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10591 Fix gettext reload bugs (e.g. inability to disable gettext
10594 * grub-core/gettext/gettext.c: Encapsulate all static variables in
10595 main_context and secondary_context. All functions updated.
10596 (grub_gettext_translate): Rename to ...
10597 (grub_gettext_translate_real): ... this. Return NULL on failed
10599 (grub_gettext_translate): Handle secondary context.
10600 (grub_gettext_delete_list): Close file and zero-out the context.
10601 (grub_mofile_open): Don't call grub_gettext_delete_list.
10603 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
10604 if locale="" to avoid pointless error message.
10605 (grub_gettext_env_write_lang): Update lang even if load fails.
10606 Handle secondary context.
10607 (grub_gettext_reread_prefix): New function.
10608 (read_main): Likewise.
10609 (read_secondary): Likewise.
10610 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
10611 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
10612 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
10613 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
10615 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10617 * configure.ac: Decrease warning level to avoid spurious warnings and
10618 to be able to compile with GCC 4.2.
10619 * Makefile.util.def: Remove -Wno-error=logical-op.
10621 2012-03-10 William Bittner <william.bittner@gmail.com>
10623 * util/import_unicode.py: Add missing brackets around string for
10626 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10628 Fix efi chainloader on network root.
10630 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
10632 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
10635 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10637 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
10638 unused show_text member.
10639 * docs/grub.texi: Document "text" property.
10641 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10643 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
10646 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10648 Fix IMSM handling on Fedora.
10650 * util/getroot.c (grub_util_is_imsm): New function.
10651 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
10653 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10655 * Makefile.am: Strip gold section.
10656 * conf/Makefile.common: Likewise.
10657 * gentpl.py: Likewise.
10658 * grub-core/Makefile.core.def: Likewise.
10659 * grub-core/genmod.sh.in: Likewise.
10661 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10663 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
10664 * util/grub.d/20_linux_xen.in: Likewise.
10665 Based on Debian patch.
10667 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10669 * util/grub.d/10_linux.in: Fix syntax error resulting in
10670 Richard Laager's patch.
10671 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
10673 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10675 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
10678 2012-03-10 Richard Laager <rlaager@wiktel.com>
10680 * util/grub.d/10_linux.in: Fix ZFS root passing.
10682 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10684 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
10685 * grub-core/commands/xnu_uuid.c: Likewise.
10686 * grub-core/loader/efi/appleloader.c: Likewise.
10687 * grub-core/script/execute.c: Likewise.
10688 * grub-core/script/main.c: Likewise.
10689 * util/grub-mkfont.c: Likewise.
10691 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10693 * util/grub-mkfont.c (options): Use more appropriate "select" that
10694 "set" for face index.
10696 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10698 * util/grub-editenv.c (options): Gettextize command summaries.
10700 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10702 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
10703 "out of memory" error messagge.
10705 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10707 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
10708 of diskfilter for diskfilter on diskfilter support.
10710 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10712 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
10714 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10716 * util/grub-install.in: Check for themes/starfield/theme.txt and not
10719 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10721 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
10723 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10725 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
10727 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10729 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
10732 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
10734 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
10736 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
10738 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
10740 * util/grub-install.in: Fix and gettextize error message.
10742 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10744 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
10746 * util/grub-mount.c (options): Likewise.
10748 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10750 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
10752 * grub-core/commands/search_wrap.c (options): Likewise.
10754 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10756 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
10758 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10760 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
10762 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
10765 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10767 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
10768 "temporary" since it's used in identifier and is limited in space.
10770 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10772 * po/POTFILES.in: Regenerate. Include *.h since they contain
10773 translatable strings as well.
10775 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10777 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
10778 byte-swap on big-endian.
10779 Reported by: Lennart Sorensen
10781 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
10783 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
10784 (allocate_pages): Improve dprintf.
10785 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
10786 code32_start. Fill code32_start and kernel_alignment in params.
10787 (grub_cmd_initrd): Use prot_init_space.
10789 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10791 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
10793 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10795 * util/grub-install.in: Add missing dot at the end of sentence.
10797 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10799 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
10800 * grub-core/commands/videotest.c: Likewise.
10801 * grub-core/loader/i386/linux.c: Likewise.
10803 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10805 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
10807 Reported by: Milo Casagrande.
10809 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10811 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
10812 * grub-core/commands/gptsync.c: Likewise.
10813 * grub-core/commands/hashsum.c: Likewise.
10814 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10815 * grub-core/commands/legacycfg.c: Likewise.
10816 * grub-core/io/gzio.c: Likewise.
10817 * grub-core/net/net.c: Likewise.
10818 * grub-core/term/gfxterm.c: Likewise.
10819 * grub-core/term/terminfo.c: Likewise.
10820 * grub-core/tests/test_blockarg.c: Likewise.
10821 * grub-core/video/video.c: Likewise.
10822 * util/grub-install.in: Likewise.
10823 * util/grub-mkfont.c: Likewise.
10825 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10827 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
10829 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10831 * grub-core/commands/search_wrap.c (options): Fix a typo.
10832 Reported by: David Prévot.
10834 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10836 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
10839 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10841 * util/grub-script-check.c (main): Fix a syntax error message which was
10844 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10846 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
10848 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10850 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
10853 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10855 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
10857 * util/grub-mount.c (options): Likewise.
10859 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10861 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
10863 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10865 * grub-core/net/http.c: Add TRANSLATORS comments.
10866 * grub-core/normal/cmdline.c: Likewise.
10867 * grub-core/normal/misc.c: Likewise.
10868 * grub-core/partmap/msdos.c: Likewise.
10869 * grub-core/parttool/msdospart.c: Likewise.
10870 * grub-core/script/execute.c: Likewise.
10871 * grub-core/script/main.c: Likewise.
10872 * grub-core/term/terminfo.c: Likewise.
10873 * grub-core/video/bitmap.c: Likewise.
10874 * util/grub-install.in: Likewise.
10875 * util/grub-mkimage.c: Likewise.
10876 * util/grub-mklayout.c: Likewise.
10877 * util/grub-setup.c: Likewise.
10879 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10881 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
10882 with similar messages in grub-fstest.
10884 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10886 * util/grub-install.in: Unify "option requires an argument" message
10887 with similar messages in other files.
10888 * util/grub-mkconfig.in: Likewise.
10890 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10892 * util/grub-set-default.in: Replace printf with gettext_printf (the
10893 string in in question is already translated from grub-reboot)
10895 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10897 * configure.ac: Bump up the version to beta1.
10899 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10901 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
10902 case when min_align = 0.
10904 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10906 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
10907 and fix a case when line_start overflows.
10909 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10911 * util/grub-reboot.in (usage): Mention id posibility.
10912 * util/grub-set-default.in (usage): Likewise.
10914 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10916 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
10917 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
10918 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
10919 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
10920 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
10921 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10922 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10924 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10926 * grub-core/commands/menuentry.c (options): Remove
10927 GRUB_ARG_OPTION_REPEATABLE.
10928 Reported by: Andreas Vogel
10930 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
10932 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
10934 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
10936 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
10939 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10941 Use sort -V by the idea of Georgi Georgiev.
10943 * util/grub-mkconfig_lib.in (version_sort): New function.
10944 (version_test_numeric): Use version_sort.
10946 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10948 Use submenus in grub-mkconfig.
10950 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
10951 * util/grub-mkconfig_lib.in (grub_quote): New function.
10952 (gettext_printf): Use gettext and not gettext_quoted to fix several
10954 * util/grub.d/10_hurd.in: Use submenus.
10955 * util/grub.d/10_kfreebsd.in: Likewise.
10956 * util/grub.d/10_linux.in: Likewise.
10957 * util/grub.d/10_netbsd.in: Likewise.
10958 * util/grub.d/20_linux_xen.in: Likewise.
10959 * util/grub.d/30_os-prober.in: Likewise.
10960 * util/grub.d/10_illumos.in: Add missing quoting.
10961 * util/grub.d/10_windows.in: Likewise.
10963 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10965 Fix menu title instability bug.
10967 * grub-core/commands/menuentry.c (options): New option --id.
10968 (grub_normal_add_menu_entry): New argument id. All users updated.
10969 (grub_cmd_menuentry): Handle --id.
10970 (grub_menu_init): Accept unknown arguments.
10971 * grub-core/normal/main.c (features): Add feature_menuentry_id and
10972 feature_menuentry_options.
10973 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
10975 (get_entry_number): Match with id as well.
10976 * include/grub/menu.h (grub_menu_entry): New member id.
10977 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
10978 * util/grub.d/00_header.in: Define menuentry_id_option.
10979 * util/grub.d/10_hurd.in: Define id.
10980 * util/grub.d/10_illumos.in: Likewise.
10981 * util/grub.d/10_kfreebsd.in: Likewise.
10982 * util/grub.d/10_linux.in: Likewise.
10983 * util/grub.d/10_netbsd.in: Likewise.
10984 * util/grub.d/10_windows.in: Likewise.
10985 * util/grub.d/20_linux_xen.in: Likewise.
10986 * util/grub.d/30_os-prober.in: Likewise.
10988 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10990 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
10991 "scope" with "body".
10993 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10995 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
10996 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
10997 prot_size and prot_file_size.
10999 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11001 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11002 All users updated. If easily=1 require raid-5/-6 to be full.
11003 (is_node_readable): Likewise.
11004 (scan_devices): Scan incomplete but readable LVs at the end.
11005 (grub_diskfilter_memberlist): Pull missing devices.
11006 (insert_array): Skip scanning until device is complete or scan is
11008 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11010 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11011 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11013 2012-03-03 Matthew Garrett <mjg@redhat.com>
11014 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11016 Avoid EFI boot services when loading Linux.
11018 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11019 avoid_efi_bootservices. All users updated.
11020 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11021 argument avoid_efi_bootservices. All users updated.
11022 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11023 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11024 align, min_align, relocatable, prefered_address. All users updated.
11025 Allocate avoiding boot services if kernel is relocatable.
11026 (grub_cmd_linux): Check if kernel is relocatable.
11027 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11028 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11029 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11030 avoid_efi_boot_services.
11031 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11032 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11033 (linux_kernel_params): Likewise.
11035 2012-03-03 Matthew Garrett <mjg@redhat.com>
11036 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11040 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11042 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11043 modes. Set gop_handle.
11044 (grub_video_gop_get_edid): New function.
11045 (grub_gop_get_preferred_mode): Likewise.
11046 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11047 (grub_video_efi_gop_adapter): Set .get_edid.
11048 * include/grub/efi/edid.h: New file.
11049 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11051 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11053 * util/grub-install.in: Load efivars unconditionally.
11055 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11057 * po/Rules-piglatin: Change suffix from .po-update-en to
11058 .po-update-en-piglatin.
11060 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11064 * po/piglatin.sed: New file.
11065 * po/en@piglatin.header: Likewise.
11066 * po/Rules-piglatin: Likewise.
11067 * po/README: Add en@piglatin to autogenerated languages.
11069 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11071 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11073 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11074 "Check" since we don't check anything.
11075 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11077 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11078 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11079 (grub_md_sha512_real): Likewise.
11081 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11083 * grub-core/commands/gptsync.c: Fix typographic quoting.
11084 * grub-core/commands/ieee1275/suspend.c: Likewise.
11085 * grub-core/commands/parttool.c: Likewise.
11086 * grub-core/commands/search_wrap.c: Likewise.
11087 * grub-core/commands/videoinfo.c: Likewise.
11088 * grub-core/gfxmenu/gui_label.c: Likewise.
11089 * grub-core/hello/hello.c: Likewise.
11090 * grub-core/kern/emu/main.c: Likewise.
11091 * grub-core/net/net.c: Likewise.
11092 * grub-core/normal/menu.c: Likewise.
11093 * grub-core/normal/menu_text.c: Likewise.
11094 * grub-core/normal/misc.c: Likewise.
11095 * util/grub-editenv.c: Likewise.
11096 * util/grub-install.in: Likewise.
11097 * util/grub-kbdcomp.in: Likewise.
11098 * util/grub-mkconfig.in: Likewise.
11099 * util/grub-mknetdir.in: Likewise.
11100 * util/grub-mkrescue.in: Likewise.
11101 * util/grub-mkstandalone.in: Likewise.
11102 * util/grub-reboot.in: Likewise.
11103 * util/grub-set-default.in: Likewise.
11104 * util/grub-setup.c: Likewise.
11105 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11107 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11109 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11110 * grub-core/commands/keystatus.c: Likewise.
11111 * grub-core/commands/loadenv.c: Likewise.
11112 * grub-core/commands/probe.c: Likewise.
11113 * grub-core/commands/regexp.c: Likewise.
11114 * grub-core/commands/true.c: Likewise.
11115 * grub-core/commands/videoinfo.c: Likewise.
11116 * grub-core/disk/cryptodisk.c: Likewise.
11117 * grub-core/disk/ldm.c: Likewise.
11118 * grub-core/disk/loopback.c: Likewise.
11119 * grub-core/disk/luks.c: Likewise.
11120 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11121 * grub-core/kern/disk.c: Likewise.
11122 * grub-core/kern/emu/hostdisk.c: Likewise.
11124 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11126 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11127 * util/grub-install.in: Add missing quote in the comment.
11129 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11131 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11132 * grub-core/commands/lsmmap.c: Likewise.
11133 * grub-core/commands/minicmd.c: Likewise.
11134 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11135 * grub-core/commands/regexp.c: Likewise.
11136 * grub-core/gdb/gdb.c: Likewise.
11137 * grub-core/term/gfxterm.c: Likewise.
11138 * util/grub-mkconfig.in: Likewise.
11139 * util/grub-mkfont.c: Likewise.
11140 * util/grub-mklayout.c: Likewise.
11141 * util/grub-mknetdir.in: Likewise.
11142 * util/grub-mkrescue.in: Likewise.
11143 * util/grub.d/30_os-prober.in: Likewise.
11145 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11147 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11148 with "Direct color" and "Packed" with "Packed pixel".
11149 (grub_cmd_videoinfo): Simplify legend.
11151 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11153 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11154 absolutely unclear error message.
11156 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11158 * util/grub-mkstandalone.in: Remove confusing leftover print.
11160 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11162 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11164 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11165 (GRUB_MOD_INIT): Likewise.
11166 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11168 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11170 * util/grub-install.in (usage): Likewise.
11171 Spell ID in whole letters.
11172 Add missing ending dot.
11174 * util/grub-reboot.in: Fix capitalisation.
11175 * util/grub-set-default.in: Likewise.
11177 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11179 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11180 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11181 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11182 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11183 Disable -Werror for -Wdeprecated-declarations.
11184 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11185 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11186 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11187 (grub_util_get_grub_dev): Make luks handling dependent on
11188 HAVE_DEVICE_MAPPER and not __linux__.
11189 (get_win32_path): Fix format security.
11190 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11191 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11192 Don't try grub_find_zpool_from_dir.
11193 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11194 #ifdef-out paresdir.
11196 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11198 * util/grub-pe2elf.c (usage): Add missing noreturn.
11199 (write_section_data): Rename name to shname to avoid shadowing.
11200 (write_symbol_table): Rename name to symname to avoid shadowing.
11201 Fix write_reloc_section call.
11203 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11205 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11206 to ensure that it's after the last byte of .text.
11208 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11210 * util/ieee1275/ofpath.c (my_isdigit): New function.
11211 (trailing_digits): Use my_isdigit.
11212 (strip_trailing_digits): Likewise.
11214 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11216 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11217 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11219 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11221 * grub-core/kern/i386/pc/startup.S: Define __start.
11223 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11225 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11226 strip already transforms he format.
11228 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11230 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11232 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11234 * util/grub-install.in: Add missing gettext init.
11235 * util/grub-kbdcomp.in: Likewise.
11236 * util/grub-mkconfig.in: Likewise.
11237 * util/grub-mknetdir.in: Likewise.
11238 * util/grub-mkrescue.in: Likewise.
11239 * util/grub-mkstandalone.in: Likewise.
11240 * util/grub-reboot.in: Likewise.
11241 * util/grub-set-default.in: Likewise.
11242 * util/grub.d/00_header.in: Likewise.
11243 * util/grub.d/10_hurd.in: Likewise.
11244 * util/grub.d/10_windows.in: Likewise.
11245 * util/grub.d/30_os-prober.in: Likewise.
11246 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11248 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11250 * po/Rules-swiss: Fix header comment.
11252 2012-02-29 Andreas Vogel <anvoit>
11254 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11255 resulted in leak of arguments.
11257 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11259 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11260 reed_solomon_size const definition instead of computing it since
11261 Apple assembler doesn't support the later.
11263 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11265 * gentpl.py (kernel): Rewrite Apple part.
11267 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11269 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11271 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11273 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11275 (load_image): Likewise.
11277 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11279 * configure.ac: Fix a typo in previous commit.
11281 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11283 Don't add -Wl,-N on Apple platform.
11285 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11286 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11288 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11290 * grub-core/Makefile.core.def (lzma_decompress): Use
11291 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11293 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11295 * grub-core/genmod.sh.in: Rewrite the Apple part.
11297 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11299 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11302 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11304 * acinclude.m4 (grub_CHECK_PIC): New test.
11305 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11307 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11309 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11310 to avoid the warning.
11312 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11314 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11315 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11316 after. All users updated.
11318 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11320 Use the common size routine in hostfs so we can read disks as well.
11322 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11323 (grub_util_get_fd_size): ... this. Return size in bytes.
11325 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11326 grub_util_get_fd_size.
11328 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11330 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11331 Add blocksize retrieval.
11333 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11335 * configure.ac: Restore CFLAGS after efiemu check.
11337 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11339 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11342 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11344 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11346 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11348 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11349 (grub_cmd_halt): Likewise.
11351 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11353 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11354 for local arithmetics.
11355 Break %sp init into 2 instructions.
11356 Add 0 byte at the end.
11358 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11360 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11363 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11365 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11368 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11370 * grub-core/disk/ldm.c (make_vg): Init part.name.
11371 (grub_ldm_detect): Silence spurious warning.
11372 (grub_util_is_ldm): Likewise.
11374 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11376 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11377 sane value to avoid a spurious warning.
11379 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11381 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11382 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11384 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11386 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11387 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11389 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11391 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11392 hardcoding the relevant info.
11394 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11396 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11397 missing const qualifiers.
11398 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11400 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11402 * util/getroot.c [__APPLE__]: Add missing includes.
11403 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11405 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11407 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11409 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11411 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11414 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11416 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11418 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11420 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11421 and grub_file_close call.
11423 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11425 Add LZSS Mach-O support (needed for new xnu kernelcache).
11427 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11428 * grub-core/loader/lzss.c: New file.
11429 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11430 on Mach-O open failure.
11431 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11432 Don't free cmdsXX in uncompressedXX is set.
11433 (grub_macho_file): Init new fields.
11434 New argument is_64bit. All users updated.
11435 Handle compressed. Error out if no suitable architecture is found.
11437 (grub_macho_open): New argument is_64bit. All users updated.
11438 * grub-core/loader/macho32.c: Add defines for new fields.
11439 * grub-core/loader/macho64.c: Likewise.
11440 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11441 (grub_macho_parse): Handle compressed.
11442 Defer actual processing if compressed.
11443 (grub_macho_cmds_iterate): Decompress if compressed. New argument
11444 "filename". All users updated.
11445 (grub_macho_size): New argument "filename". All users updated.
11446 (grub_macho_get_entry_point): Likewise.
11447 (grub_macho_load): Handle compressed.
11448 * include/grub/macho.h (grub_macho_lzss_header): New struct.
11449 (GRUB_MACHO_LZSS_OFFSET): New define.
11450 (grub_decompress_lzss): New proto.
11451 * include/grub/machoload.h (grub_macho_file): New fields to handle
11453 (grub_macho_contains_macho64): Remove proto.
11454 (grub_macho_contains_macho32): Likewise.
11455 * util/grub.d/30_os-prober.in: Use kernel cache if available.
11457 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11459 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
11461 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11465 * Makefile.am (starfield_theme_files): New var.
11466 (starfield_DATA): Use starfield_theme_files.
11467 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
11468 Add bootcheck-related files.
11469 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
11470 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
11471 and font_char_metrics.txt.
11472 * grub-core/Makefile.core.def (kernel): Update extra_dist.
11473 (setjmp): Add lib/ia64/longjmp.S.
11474 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
11475 * po/POTFILES.in: Regenerate.
11476 * po/Rules-swiss: use DISTFILES.common.extra2 and not
11477 DISTFILES.common.extra1.
11478 * util/devicemap.c: Removed.
11479 * grub-core/lib/i386/relocator_backward.S: Likewise.
11480 * util/import_gcry.py: Remove unused files. Add extra_dist for
11483 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11485 * grub-core/gettext/gettext.c (grub_mofile_open): Call
11486 grub_gettext_delete_list before changing grub_gettext_max to avoid
11487 running out of array bounds.
11489 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11491 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
11492 grub_vga_text_init/grub_vga_text_fini.
11494 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11496 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
11498 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11500 * configure.ac: Bump to 2.00~beta0.
11502 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11504 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
11505 missing initialisation.
11507 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11509 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
11511 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11513 Support v2 xnu boot arguments.
11515 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
11516 New argument fsbfreq_out.
11517 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
11518 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
11520 * grub-core/loader/machoXX.c (grub_macho_load): New argument
11522 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
11523 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
11524 (grub_xnu_boot_params): Rename to ...
11525 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
11526 (grub_xnu_boot_params_v2): New struct.
11528 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11530 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
11531 zeroing of CRC field before computing CRC.
11533 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11535 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
11536 Change order of allocations to decrease fragmentation.
11538 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11540 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
11542 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
11544 Use write-combining MTRR to speed up video with buggy BIOSes.
11546 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
11547 (cpuid): New define.
11550 (mtrr_base): Likewise.
11551 (mtrr_mask): Likewise.
11552 (grub_vbe_enable_mtrr_entry): New function.
11553 (grub_vbe_enable_mtrr): Likewise.
11554 (grub_vbe_disable_mtrr): Likewise.
11555 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
11556 control off to BIOS.
11557 (grub_video_vbe_init): Fill mtrr.
11558 (grub_video_vbe_fini): Disable mtrr.
11559 (grub_video_vbe_get_info_and_fini): Likewise.
11560 (grub_video_vbe_setup): Enable mtrr.
11562 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
11564 * include/grub/partition.h (grub_partition_map): Change prototype of
11565 embed to take a maximum value for nsectors.
11566 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
11567 * include/grub/fs.h (grub_fs): Likewise.
11568 * grub-core/partmap/msdos.c (embed_signatures): New array.
11569 (pc_partition_map_embed): Check for and avoid sectors matching any
11570 of the signatures in embed_signatures, up to max_nsectors.
11571 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
11572 returned sector map to max_nsectors.
11573 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
11574 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
11575 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
11576 * util/grub-setup.c (setup): Allow for the embedding area being
11577 split into multiple blocklists. Tell dest_partmap->embed the
11578 maximum number of sectors we care about.
11580 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11582 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
11583 Specify blocklist_install and reserver_first_sector for all fs.
11584 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
11587 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11589 * util/grub-install.in: Clarify strings.
11590 Fix source dir check.
11592 2012-02-27 Richard Laager <rlaager@wiktel.com>
11594 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
11595 "zfs" and "fuse.zfs" as synonyms.
11597 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11599 * configure.ac: Put platform and target_cpu substitutions back since
11600 they are used for directories.
11602 2012-02-27 Richard Laager <rlaager@wiktel.com>
11603 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11605 * util/grub.d/10_linux.in: Add ZFS-related arguments.
11606 * util/grub.d/20_linux_xen.in: Likewise.
11608 2012-02-27 Richard Laager <rlaager@wiktel.com>
11610 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
11613 2012-02-27 Richard Laager <rlaager@wiktel.com>
11615 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
11618 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11620 Don't use insecure popen in getroot.
11622 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
11623 (exec_pipe): ... here.
11624 (find_root_devices_from_poolname): Use exec_pipe.
11626 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11628 Remove platform and target_cpu replacement.
11630 * configure.ac: Remove platform and target_cpu substitutions.
11631 * tests/util/grub-shell.in: Use modinfo.
11632 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
11635 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11637 Autodetect platform in grub-install but allow override.
11639 * util/grub-install.in: Autodetect platform. Support --target and
11640 --directory. Read platform from modinfo.sh.
11642 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11644 Support btrfs multi-volume probe.
11646 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
11647 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
11648 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
11649 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
11650 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
11651 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
11652 grub_find_root_devices_from_btrfs if on btrfs.
11654 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11656 Remove any awareness of *.c util files about target.
11658 * Makefile.util.def (grub-setup): Split to ...
11659 (grub-bios-setup): ... and this.
11660 (grub-sparc64-setup): ... and this.
11661 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
11662 * docs/man/grub-setup.h2m: Split into ...
11663 * docs/man/grub-sparc64-setup.h2m: ... this.
11664 * docs/man/grub-bios-setup.h2m: ... and this.
11665 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
11666 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
11667 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
11668 (grub_target_addr_t): Remove.
11669 (grub_target_size_t): Remove.
11670 (grub_target_ssize_t): Remove.
11671 * util/grub-install.in: Use new grub-*-setup.
11672 * util/grub-mkimagexx.c (Elf_Word): New define.
11673 (Elf_Half): Likewise.
11674 (Elf_Section): Likewise.
11675 (ELF_ST_TYPE): Likewise.
11676 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
11677 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
11679 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11681 Replace grub_target_addr with more appropriate types.
11683 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
11684 grub_target_addr with grub_addr.
11685 * grub-core/commands/iorw.c (grub_cmd_read): Replace
11686 grub_target_addr with grub_port.
11687 (grub_cmd_write): Likewise.
11688 * grub-core/commands/memrw.c (grub_cmd_read): Replace
11689 grub_target_addr with grub_addr.
11690 (grub_cmd_write): Likewise.
11691 * grub-core/video/efi_uga.c (find_line_len): Likewise.
11693 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11695 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
11696 const qualifier for vendor_guid.
11698 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11700 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
11702 (efiemu_memequal): Likewise.
11703 (find_variable): Likewise.
11705 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11707 Fix missing console prototype on qemu-mips.
11709 * include/grub/mips/qemu_mips/console.h: New file.
11711 2012-02-27 Matthew Garrett <mjg@redhat.com>
11712 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11714 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
11715 * include/grub/efi/efi.h: Likewise.
11716 * include/grub/efi/api.h: Add guid for EFI-specified variables.
11717 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
11718 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
11719 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
11720 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
11721 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
11723 2012-02-27 Matthew Garrett <mjg@redhat.com>
11725 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
11727 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11729 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
11732 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11734 * configure.ac: Remove inappropriate use of program_transform_name
11735 on grubdir and bootdir but allow explicit specification of those
11738 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11740 * util/grub-mknetdir.in (grub_prefix): Removed.
11741 (subdir): Use @bootdirname@ and @grubdirname@.
11743 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11745 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
11747 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11749 * po/POTFILES.in: Regenerated.
11751 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11753 Remove improper use of program_transform_name on pkglibrootdir.
11755 * configure.ac (pkglibrootdir): Removed.
11756 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
11757 * util/grub-mkimage.c: Likewise.
11759 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11761 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
11764 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11766 * util/grub-install.in: Use file identifier if no UUID is available
11767 or user explicitly prompted for it.
11769 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
11771 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
11772 (freebsd_get_zfs): New function.
11773 (grub_freebsd_boot): Pass zfs UUID.
11774 (grub_cmd_freebsd): Set zfs UUID.
11776 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11778 * conf/Makefile.common (platformdir): Base on pkglibdir and not
11781 2012-02-27 Mike Gilbert <floppym@gentoo.org>
11783 Add configure flag to control libzfs integration.
11785 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
11787 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11789 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
11791 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
11794 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11796 Remove grub_{modname}_init and grub_{modname}_fini. They should never
11797 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
11798 be used on non-modules.
11800 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
11801 Rename to grub_boot_init.
11802 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
11803 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
11804 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
11805 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
11806 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
11807 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
11808 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
11809 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
11811 (grub_machine_init): Remove empty inits.
11812 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
11814 (grub_machine_init): Remove empty inits.
11815 * grub-core/term/arc/console.c: Remove explicit proto.
11816 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
11817 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
11818 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11819 grub_at_keyboard_fini.
11820 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
11821 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
11822 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11824 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
11825 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
11826 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11828 * grub-core/term/ieee1275/console.c: Remove explicit proto.
11829 * grub-core/term/serial.c (GRUB_MOD_INIT)
11830 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
11831 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11833 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
11834 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
11835 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11836 grub_terminfo_fini.
11837 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
11838 (GRUB_MOD_FINI): Likewise.
11839 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
11840 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
11841 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11842 grub_video_radeon_fuloong2e_fini.
11843 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
11844 [LOONGSON]: Rename to grub_video_sis315pro_init.
11845 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11846 grub_video_sis315pro_fini.
11847 * grub-core/video/sm712.c (GRUB_MOD_INIT)
11848 [LOONGSON]: Rename to grub_video_sm712_init.
11849 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11850 grub_video_sm712_fini.
11851 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
11852 (grub_at_keyboard_fini): Likewise.
11853 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
11854 Don't declare grub_{modname}_init.
11855 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
11856 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
11858 (grub_keylayouts_fini) [!EMU]: Likewise.
11859 * include/grub/serial.h (grub_serial_init) [!EMU]:
11861 (grub_serial_fini) [!EMU]: Likewise.
11862 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
11864 (grub_terminfo_fini) [!EMU]: Likewise.
11865 * include/grub/video.h (grub_font_init) [!EMU]:
11867 (grub_font_fini) [!EMU]: Likewise.
11868 (grub_gfxterm_init) [!EMU]: Likewise.
11869 (grub_gfxterm_fini) [!EMU]: Likewise.
11870 (grub_video_sm712_init) [!EMU]: Likewise.
11871 (grub_video_sm712_fini) [!EMU]: Likewise.
11872 (grub_video_sis315pro_init) [!EMU]: Likewise.
11873 (grub_video_sis315pro_fini) [!EMU]: Likewise.
11874 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
11875 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
11877 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11879 Make nand a prefix for nand devices.
11881 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
11883 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11885 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
11886 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
11888 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11890 * include/grub/env.h (grub_env_find): Remove prototype.
11891 * grub-core/kern/env.c (grub_env_find): Make static.
11892 (grub_env_set): Remove useless set.
11894 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11896 * grub-core/kern/i386/realmode.S: Remove useless align.
11898 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11900 * include/grub/dl.h (grub_dl_load_file): Don't export.
11902 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11904 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
11907 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11909 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
11911 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
11912 not reloading whole superblock but only the part which is really needed.
11913 Remove useless grub_errors.
11914 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
11917 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11919 Don't export grub_get_rtc.
11921 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
11922 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
11924 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11926 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
11928 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11930 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
11931 argument since it can be deduced from diskfilter. All users updated.
11933 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11937 * include/grub/list.h (grub_prio_list): Removed.
11938 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
11939 GRUB_COMMAND_PRIO_MASK.
11940 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
11941 GRUB_COMMAND_FLAG_ACTIVE.
11942 (grub_prio_list_insert): Removed.
11943 (grub_prio_list_remove): Likewise.
11944 (GRUB_AS_PRIO_LIST): Likewise.
11945 (GRUB_AS_PRIO_LIST_P): Likewise.
11946 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
11947 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
11948 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
11949 * grub-core/kern/command.c (grub_register_command_prio): Inline
11950 the prio_list code.
11951 (grub_unregister_command): Likewise.
11953 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11955 Fix interrupt mixup from previous commit.
11957 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
11958 (grub_realidt): New var.
11959 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
11961 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
11963 (grub_relocator16_boot): Set grub_relocator16_idt.
11964 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
11965 (LOCAL(realidt)): ... this.
11966 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
11967 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
11968 (grub_realidt): New variable.
11970 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11972 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
11973 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
11974 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
11975 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
11977 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
11978 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
11979 * po/POTFILES.in: Regenerate.
11981 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11983 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
11986 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11988 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
11990 (add_length): Likewise.
11992 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11993 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
11995 GDB serial and backtrace support.
11997 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
11998 (prot_to_real): Likewise.
11999 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12000 * grub-core/Makefile.core.def (backtrace): New module.
12002 * grub-core/gdb/cstub.c: New file.
12003 * grub-core/gdb/gdb.c: Likewise.
12004 * grub-core/gdb/i386/idt.c: Likewise.
12005 * grub-core/gdb/i386/machdep.S: Likewise.
12006 * grub-core/gdb/i386/signal.c: Likewise.
12007 * grub-core/lib/i386/backtrace.c: Likewise.
12008 * grub-core/lib/backtrace.c: Likewise.
12009 * include/grub/backtrace.h: Likewise.
12010 * include/grub/gdb.h: Likewise.
12011 * include/grub/i386/gdb.h: Likewise.
12013 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12015 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12017 (add_length): Likewise.
12018 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12019 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12021 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12022 __argp_get_display_len.
12024 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12026 $"..." support in scripts.
12028 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12029 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12030 * grub-core/script/yylex.l: Likewise.
12031 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12034 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12036 * gentpl.py: Remove obsolete pkglib_DATA handling.
12038 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12040 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12043 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12044 * util/grub-kbdcomp.in: Likewise.
12045 * util/grub-mkconfig.in: Likewise.
12046 * util/grub-mkconfig_lib.in: Likewise.
12047 * util/grub-mknetdir.in: Likewise.
12048 * util/grub-mkrescue.in: Likewise.
12049 * util/grub-mkstandalone.in: Likewise.
12050 * util/grub-reboot.in: Likewise.
12051 * util/grub-set-default.in: Likewise.
12052 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12054 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12056 Remove GRUB_PREFIX.
12058 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12059 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12060 used for backward compatibility.
12062 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12064 Add new all_video module.
12066 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12067 * grub-core/Makefile.core.def (all_video): New module.
12068 * grub-core/genmoddep.awk: Generate dependency of all_video from
12070 * grub-core/lib/fake_module.c: New file.
12071 * grub-core/normal/main.c (features): Add feature_all_video_module.
12072 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12073 don't do explicit search again.
12074 insmod all_video in load_video if available.
12076 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12078 Another round of string clarification and adding TRANSLATORS comments.
12080 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12082 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12084 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12086 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12088 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12089 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12091 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12093 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12094 trailing newline implicitly. All users updated.
12096 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12098 Implement serial on IEEE1275 and EFI.
12100 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12101 on emu. Mention arc and emu as the only platforms without serial
12103 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12104 ieee1275 platforms.
12105 * grub-core/term/efi/serial.c: New file.
12106 * grub-core/term/ieee1275/serial.c: Likewise.
12107 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12108 specification if no ns8250 driver is available.
12109 (grub_cmd_serial): Likewise.
12110 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12111 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12112 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12113 (grub_efi_parity_type_t): New type.
12114 (grub_efi_stop_bits_t): Likewise.
12115 (grub_efi_serial_io_interface): New struct.
12116 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12117 available for all interfaces.
12118 Add EFI and IEEE1275 fields.
12119 (grub_ofserial_init): New proto.
12120 (grub_efiserial_init): Likeiwse.
12121 * util/grub.d/00_header.in: Don't check for the presence of serial
12124 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12126 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12127 name as if it was an alias.
12129 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12131 * grub-core/commands/lsacpi.c (options): Fix typo.
12133 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12135 Convert grub-emu to argp.
12137 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12139 * util/argp_common.c: Rename to ...
12140 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12141 Add missing includes.
12142 * grub-core/kern/emu/main.c: Convert to argp.
12143 * po/POTFILES.in: Regenerate.
12144 * util/grub-install.in (usage): Make first letter lowcase in messages
12146 * util/grub-setup.c (options): Likewise.
12148 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12150 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12151 Put back accidently commented-out code.
12153 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12155 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12156 loop check using Brent algorithm.
12157 (grub_hfsplus_btree_search): Likewise.
12159 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12161 * util/grub-install.in: Fix usage of wrong device for PreP install.
12163 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12165 * conf/Makefile.common (CFLAGS_GNULIB): Add
12166 -Wno-unsafe-loop-optimizations.
12167 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12169 * grub-core/commands/legacycfg.c: Add pragma to skip
12170 -Wunsafe-loop-optimizations.
12171 (check_password_md5_real): Fix loop counter type.
12172 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12174 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12175 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12177 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12178 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12179 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12181 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12182 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12183 avoid possible infinite loops.
12184 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12185 and -Wunsafe-loop-optimizations.
12186 * grub-core/script/yylex.l: Likewise.
12187 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12188 (print_glyphs): Avoid infinite loops.
12189 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12191 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12193 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12194 to avoid infinite loop.
12195 (disp_acpi_rsdt_table): Likewise.
12197 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12199 * grub-core/font/font.c (grub_font_load): Add support for default
12200 path for fonts ($prefix/fonts).
12201 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12202 for checking if string is a path.
12203 * grub-core/normal/main.c (features): Add feature_default_font_path.
12204 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12205 * util/grub.d/00_header.in: Use default directory if possible.
12206 * util/grub-install.in: Install unicode.pf2.
12208 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12210 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12211 * po/Rules-swiss: New file.
12212 * po/swiss.sed: Likewise.
12214 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12216 * grub-core/fs/btrfs.c (find_device): Fix typos.
12217 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12218 * util/grub-mkrelpath.c (argp_parser): Likewise.
12219 Reported by: Yuri Chornoivan.
12221 2012-02-23 Dalet Omega <daletomega@gmail.com>
12223 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12224 for usual informative messages.
12226 2012-02-23 Dalet Omega <daletomega@gmail.com>
12230 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12231 * conf/Makefile.common: Define starfielddir.
12232 * configure.ac: Configure starfield.
12233 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12234 * themes/starfield/README: Likewise.
12235 * themes/starfield/blob_w.png: Likewise.
12236 * themes/starfield/boot_menu_c.png: Likewise.
12237 * themes/starfield/boot_menu_e.png: Likewise.
12238 * themes/starfield/boot_menu_n.png: Likewise.
12239 * themes/starfield/boot_menu_ne.png: Likewise.
12240 * themes/starfield/boot_menu_nw.png: Likewise.
12241 * themes/starfield/boot_menu_s.png: Likewise.
12242 * themes/starfield/boot_menu_se.png: Likewise.
12243 * themes/starfield/boot_menu_sw.png: Likewise.
12244 * themes/starfield/boot_menu_w.png: Likewise.
12245 * themes/starfield/slider_c.png: Likewise.
12246 * themes/starfield/slider_n.png: Likewise.
12247 * themes/starfield/slider_s.png: Likewise.
12248 * themes/starfield/src/blob_nw.xcf: Likewise.
12249 * themes/starfield/src/bootmenu/: Likewise.
12250 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12251 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12252 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12253 * themes/starfield/src/slider_c.xcf: Likewise.
12254 * themes/starfield/src/slider_n.xcf: Likewise.
12255 * themes/starfield/src/slider_s.xcf: Likewise.
12256 * themes/starfield/src/terminalbox/: Likewise.
12257 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12258 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12259 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12260 * themes/starfield/starfield.png: Likewise.
12261 * themes/starfield/terminal_box_c.png: Likewise.
12262 * themes/starfield/terminal_box_e.png: Likewise.
12263 * themes/starfield/terminal_box_n.png: Likewise.
12264 * themes/starfield/terminal_box_ne.png: Likewise.
12265 * themes/starfield/terminal_box_nw.png: Likewise.
12266 * themes/starfield/terminal_box_s.png: Likewise.
12267 * themes/starfield/terminal_box_se.png: Likewise.
12268 * themes/starfield/terminal_box_sw.png: Likewise.
12269 * themes/starfield/terminal_box_w.png: Likewise.
12270 * themes/starfield/theme.txt: Likewise.
12272 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12274 * util/grub.d/00_header.in: Add missing export theme.
12276 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12278 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12280 Reported by: Eren D.
12282 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12284 * conf/Makefile.common (grubdatadir): Removed.
12285 (Makefile.am): Move eveything grubdata to pkgdata.
12287 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12289 * grub-core/commands/acpihalt.c (get_sleep_type):
12290 Remove unused variable.
12292 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12294 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12295 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12296 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12297 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12298 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12299 i18n with gettext no-op.
12300 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12301 GRUB_ACPI_OPCODE_STRING_CONST.
12302 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12303 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12305 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12307 * po/POTFILES.in: Regenerate.
12309 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12311 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12312 -Wno-error=missing-noreturn.
12314 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12316 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12317 condition to avoid possibly infinite loops.
12318 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12319 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12321 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12323 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12324 condition to avoid possibly infinite loops.
12326 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12328 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12331 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12333 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12335 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12337 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12339 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12341 * util/bin2h.c (usage): Add missing attribute noreturn.
12343 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12345 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12346 if the size isn't divisible by 512.
12348 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12350 Make list_push and list_remove functions rather than inline functions
12351 to decrease size and avoid aliasing violations.
12353 * include/grub/list.h (grub_list_push): Move to ...
12354 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12355 * include/grub/list.h (grub_list_remove): Move to ...
12356 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12358 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12360 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12361 and -Wunused-result.
12363 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12365 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12366 Reported by: Seth Goldberg
12368 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12370 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12372 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12374 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12375 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12377 * docs/grub.texi (Simple configuration): Document
12378 GRUB_CMDLINE_GNUMACH.
12380 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12382 * conf/Makefile.common (platform_SCRIPTS): New variable.
12383 (platform_PROGRAMS): Likewise.
12384 * gentpl.py: Mark *,module and *.image for install.
12385 * grub-core/gdb_grub.in: Add a notice of expected environment.
12386 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12387 (gmodule.pl): Likewise.
12389 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12391 Replace grub_checkkey with grub_getkey_noblock.
12393 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12394 (grub_getkey_noblock): ... this. All users updated.
12396 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12398 * grub-core/kern/emu/console.c: Move to ...
12399 * grub-core/term/emu/console.c: ...here.
12400 (grub_ncurses_getkey): Fix return value if no key is detected.
12402 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12404 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12405 (grub_unit_test_fini): Likewise.
12406 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12408 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12410 * include/grub/test.h (GRUB_UNIT_TEST)
12412 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12414 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12415 Better error handling.
12416 (grub_script_return): Likewise.
12417 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12419 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12421 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12422 rimplicit redifinition.
12424 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12426 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12429 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12431 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12432 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12435 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12437 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12438 as GRUB_ERR_BUG. Don't malloc if no device is available.
12440 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12442 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12443 Mark calling with invalid term as GRUB_ERR_BUG.
12445 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12447 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
12448 packets rather than raising an error.
12450 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12452 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
12455 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12457 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
12458 diagnostic to dprintf.
12459 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12461 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12463 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
12466 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12468 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
12469 (grub_ntfs_iterate_dir): Likewise.
12471 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12473 Efiemu stylistic fixes and gettext.
12475 * grub-core/efiemu/i386/loadcore32.c
12476 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
12477 * grub-core/efiemu/i386/loadcore64.c
12478 (grub_arch_efiemu_relocate_symbols64): Likewise.
12479 * grub-core/efiemu/i386/pc/cfgtables.c
12480 (grub_machine_efiemu_init_tables): Likewise.
12481 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
12482 (grub_efiemu_loadcore_initXX): Add a filename argument.
12484 Improved error message.
12485 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
12486 Add a filename argument.
12488 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
12489 Reclassify double relocation as GRUB_ERR_BUG.
12491 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12493 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
12496 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12498 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
12501 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12503 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
12505 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12507 Improve string. Gettextize.
12509 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12511 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
12513 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
12515 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12517 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
12518 [GRUB_UTIL]: New function.
12519 (insert_array) [GRUB_UTIL]: Store partmaps.
12520 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
12522 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
12523 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
12524 (probe_abstraction): Print diskfilter and not raid.
12525 Reported by: Lennart Sorensen
12527 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12529 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
12530 * util/grub-mkimagexx.c (MASK3): New define.
12531 (add_value_to_slot_20b): Use MASK3.
12532 (add_value_to_slot_21): Likewise.
12533 (relocate_addresses): Fix format specification.
12534 (load_image): Explicitly init symtab_section.
12536 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12538 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
12539 (grub_util_biosdisk_get_grub_dev): Fix format specification.
12541 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12543 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
12545 Reported by: Lennart Sorensen
12547 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12549 * gentpl.py: Add missing license header.
12550 * docs/grub.texi: Update copyright year.
12552 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
12554 Source grub-mkconfig_lib from the build directory at build time.
12555 Suggested by: Vladimir Serbinenko.
12557 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
12558 * util/grub-install.in: Define pkgdatadir if not already set, and source
12559 grub-mkconfig_lib from there.
12560 * util/grub-kbdcomp.in: Likewise.
12561 * util/grub-mkconfig.in: Likewise.
12562 * util/grub-mknetdir.in: Likewise.
12563 * util/grub-mkrescue.in: Likewise.
12564 * util/grub-mkstandalone.in: Likewise.
12565 * util/grub-reboot.in: Likewise.
12566 * util/grub-set-default.in: Likewise.
12567 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12569 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12571 Increase warning level.
12573 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
12574 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
12575 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
12576 (TARGET_CFLAGS): Likewise.
12577 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
12578 * grub-core/Makefile.core.def (decompressor_xz): Add
12579 -Wno-unreachable-code.
12580 (normal): Add -Wno-redundant-decls.
12581 (xzio): Add -Wno-unreachable-code.
12582 (lzopio): Add -Wno-redundant-decls -Wno-error.
12583 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
12584 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
12585 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
12586 * grub-core/kern/dl.c: Add exception to -Wcast-align.
12587 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
12588 * grub-core/kern/i386/coreboot/init.c: Add exception to
12589 -Wsuggest-attribute=noreturn.
12590 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
12591 * grub-core/kern/ia64/dl_helper.c: Likewise.
12592 * grub-core/kern/mips/dl.c: Likewise.
12593 * grub-core/kern/sparc64/dl.c: Likewise.
12594 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
12595 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
12596 (memcmp): Likewise.
12597 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
12598 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
12599 * grub-core/loader/mips/linux.c: Likewise.
12600 * grub-core/loader/multiboot_elfxx.c: Likewise.
12601 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
12602 * grub-core/video/sm712.c: Add exception to -Wcast-align.
12603 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
12604 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
12606 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
12607 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
12610 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12612 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
12615 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12617 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
12618 Avoid improper use of strings.
12619 (grub_cmd_legacy_initrdnounzip): Likewise.
12621 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12623 * include/grub/emu/misc.h (grub_util_warn): Add missing format
12625 (grub_util_info): Likewise.
12626 (grub_util_error): Likewise.
12628 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12630 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
12631 * util/grub-fstest.c (fstest): Likewise.
12633 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12635 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
12636 (grub_md_sha512_real): Likewise.
12637 (grub_util_get_geli_uuid): Likewise.
12638 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
12639 (grub_util_biosdisk_open): Fix format specification.
12640 Respect format security.
12641 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
12642 (xrealloc): Likewise.
12643 (xasprintf): Likewise.
12645 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12647 * util/import_gcry.py: Include grub/crypto.h in init.c.
12649 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12651 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
12652 (generate_image): Make prefix a const char *.
12653 Fix format specifications. Respect format security.
12654 Avoid void * arithmetics.
12656 (argp_parser): Remove unused variable. Respect format security.
12657 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
12658 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
12659 (count_funcs): Remove unused variable.
12660 (relocate_addresses): Fix format specification.
12661 Disable x86-64 with elf32. Remove unused variables.
12662 (add_fixup_entry): Avoid shadowing.
12663 (make_reloc_section): Fix format specification.
12665 (locate_sections): Fix format specifications.
12666 (load_image): Avoid shadowing.
12668 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12670 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
12671 Fix format specifications. Respect format security.
12672 Don't translate already translated grub_errmsg.
12673 (argp_parser): Remove unused variable
12675 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12677 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
12679 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12681 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
12682 (main): Likewise. Use xmalloc. Respect format security.
12684 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12686 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
12688 (argp_parser): Remove unused variable.
12690 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12692 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
12693 (add_pixel): Make static.
12694 (add_font): Likewise.
12695 (write_string_section): Make name and str a const char *.
12696 (write_be16_section): Make name a const char *.
12697 (print_glyphs): Make static.
12698 (write_font_ascii_bitmap): Likewise.
12699 (write_font_width_spec): Likewise.
12700 (write_font_pf2): Likewise.
12701 (argp_parser): Remove unused variable.
12702 Respect format security.
12703 (main): Avoid shadowing. Respect format security.
12705 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12707 * util/grub-editenv.c (argp_parser): Make static.
12708 (create_envblk_file): Use xmalloc.
12709 (open_envblk_file): Likewise.
12710 Resepect format security.
12711 (set_variables): Respect format security.
12713 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12715 * util/getroot.c (grub_find_device): Respect format security.
12716 (get_mdadm_uuid): Remove unused variable.
12717 (grub_util_pull_device): Dont call gettext on already translated
12719 (find_system_device): Remove unused variable.
12720 (grub_util_get_grub_dev): Likewise.
12721 (grub_make_system_path_relative_to_its_root): Respect format security.
12723 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12725 * util/grub-fstest.c (execute_command): Make first argument
12727 (read_file): Avoid shadowing.
12728 Reuse underlying error message if device open fails.
12729 (cmd_cmp): Respect format security.
12730 (root): Make const char *.
12731 (fstest): Remove args argument and use global copy.
12732 Respect format security.
12733 (argp_parser): Make static.
12734 (main): Make default_root const char *.
12736 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12738 * util/grub-mount.c (root): Make const char *.
12739 (execute_command): Make first argument a const char *.
12740 (fuse_init): Respect format security.
12741 (argp_parser): Make static. Remove unused variable.
12742 (main): Make default_root a const char *.
12743 Respect format security.
12745 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12747 * util/grub-probe.c (probe): Don't call gettext on already translated
12749 Remove unused variables.
12750 (argp_parser): Remove unused variable.
12752 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12754 * util/grub-script-check.c (argp_parser): Remove unused variable.
12755 (main): Rename read to curread to avoid shadowing.
12757 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12759 * util/misc.c (grub_util_write_image_at): Fix format specification.
12760 (grub_util_write_image): Likewise.
12761 (grub_script_execute_argument_to_string): Removed (unused).
12762 (grub_script_execute_menuentry): Likewise.
12763 (grub_putchar): Likewise.
12765 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12767 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
12768 (FUNCTION) [GRUB_UTIL]: Likewise.
12769 (VARIABLE) [GRUB_UTIL]: Likewise.
12771 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12773 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
12774 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
12776 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12778 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
12781 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12783 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
12784 (LzmaEnc_SaveState): Removed (unused).
12785 (LzmaEnc_RestoreState): Likewise.
12786 (LzmaEnc_InitPriceTables): Made static.
12787 (LzmaEnc_Construct): Likewise.
12788 (LzmaEnc_FreeLits): Likewise.
12789 (LzmaEnc_Destruct): Likewise.
12790 (LzmaEnc_Init): Likewise.
12791 (LzmaEnc_InitPrices): Likewise.
12792 (LzmaEnc_Finish): Likewise.
12793 (LzmaEnc_PrepareForLzma2): Removed (unused).
12794 (LzmaEnc_MemPrepare): Likewise.
12795 (LzmaEnc_GetNumAvailableBytes): Likewise.
12796 (LzmaEnc_GetCurBuf): Likewise.
12797 (LzmaEnc_CodeOneMemBlock): Likewise.
12799 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12801 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
12802 (grub_util_ldm_embed): Likewise.
12804 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12806 * util/grub-editenv.c (print_var): Rename name to varname to
12808 (main): Rename index to curindex to avoid shadowing.
12809 Make filename a const char *.
12811 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12813 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
12814 to arg_getline to avoid shadowing.
12816 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12818 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
12819 disk_ to avoid shadowing.
12821 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12823 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
12824 curindex to avoid shadowing.
12826 (MatchFinder_GetNumAvailableBytes): Make static.
12828 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12830 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
12833 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12835 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
12836 argument from encrypt to do_encrypt to avoid shadowing.
12838 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12840 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
12841 incorrect nesting of #if's.
12843 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12845 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
12846 checks which are always false on some platforms.
12847 (grub_cmd_lsacpi): Likewise.
12848 * grub-core/kern/misc.c (grub_strtoul): Likewise.
12849 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
12852 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12854 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
12855 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
12857 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12859 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
12860 re_dfa_t to avoid breaking alignment invariants.
12861 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
12862 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
12864 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12866 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
12867 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
12869 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12871 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
12874 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12876 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
12877 conserve alignment invariants.
12878 (grub_ehci_ehcc_read16): Likewise.
12879 (grub_ehci_oper_read32): Likewise.
12880 (grub_ehci_oper_write32): Likewise.
12881 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
12882 Conserve alignment invariants.
12884 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12886 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
12887 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
12890 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12892 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
12893 Remove unused variable.
12895 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12897 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
12900 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12902 * include/grub/net.h: Remove double declarations.
12904 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12906 Remove "payload" command in ia64 Linux loader since I couldn't
12907 find any evidence of it being used for anything.
12908 Replace "relocate" command with an environment variable
12910 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
12912 (ia64_boot_payload): Removed.
12913 (last_payload): Likewise.
12914 (RELOCATE_OFF): Likewise.
12915 (RELOCATE_ON): Likewise.
12916 (RELOCATE_FORCE): Likewise.
12917 (relocate): Likewise.
12918 (free_pages): Don't free payloads.
12919 (grub_load_elf64): Use common error messages.
12920 Use "linux_relocate" variable.
12921 Increase the space after boot_params.
12922 (grub_cmd_payload): Removed.
12923 (grub_cmd_relocate): Likewise.
12924 (grub_cmd_fpswa): Improve messages.
12925 (cmd_payload): Removed.
12926 (cmd_relocate): Likewise.
12927 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
12928 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
12930 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12932 Convert UHCI to DMA framework.
12934 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
12935 (grub_uhci_pci_iter): Fill new members
12936 (grub_alloc_td): Use P2V and V2P functions.
12937 (grub_free_queue): Likewise.
12938 (grub_alloc_qh): Likewise.
12939 (grub_uhci_setup_transfer): Likewise.
12940 (grub_uhci_check_transfer): Likewise.
12942 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12944 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
12945 Remove assignment in if while on it.
12947 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12949 * util/grub-mkstandalone.in: Fix modules directory.
12951 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12953 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
12955 (argp_parser): Accept "auto" as compression specification.
12957 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12959 Fix `help' with unloaded modules.
12961 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
12962 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
12963 (grub_dyncmd_dispatcher): Small stylistic fix.
12964 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
12965 explicit help is requested.
12967 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12969 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
12970 Explicitly init restart while on it.
12972 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12974 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
12977 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12979 * util/grub-mknetdir.in: Use . rather than source for POSIX
12982 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12984 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
12986 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12988 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
12991 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12993 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
12996 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12998 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13000 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13002 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13003 iteration of partitions.
13005 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13007 Improve gettext support. Stylistic fixes and error handling fixes while
13010 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13012 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13013 part. Instead setup the correct stack in RM.
13014 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13016 * include/grub/i386/relocator_private.h: New file.
13018 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13020 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13022 * util/grub-fstest.c (options): Add missing DEVICE part.
13024 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13026 Clarify and unify messages.
13028 * grub-core/commands/hashsum.c (options): Unify messages.
13029 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13030 literal-only message as translatable.
13031 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13032 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13033 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13035 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13036 key, not the key used to unlock. Clarify what it's used for.
13037 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13038 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13039 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13040 * util/grub-editenv.c (options): Unify "verbose" message.
13041 * util/grub-fstest.c (read_file): Unify error message.
13042 (fstest): Add quotes around commands.
13043 (options): Unify "verbose" message.
13044 * util/grub-install.in: Add quotes around variable name.
13045 * util/grub-kbdcomp.in: Unify error message.
13046 * util/grub-mkfont.c (main): Likewise.
13047 * util/grub-mkrescue.in: Likewise.
13048 * util/grub-mklayout.c (options): Unify "verbose" message.
13049 * util/grub-mkstandalone.in: Unify help and verbose messages.
13050 * util/grub-mount.c (options): Unify "verbose" message.
13051 * util/grub-probe.c (options): Likewise.
13052 * util/grub-script-check.c (options): Likewise.
13053 * util/grub-setup.c (setup): Unify no-terminator message.
13054 (options): Use DEVICE and not DEV.
13055 Unify "verbose" message.
13056 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13058 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13060 Improve and unify messages.
13062 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13063 name. All users updated.
13064 Print filename in error.
13065 (read_device_map): Print filename in error.
13066 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13067 (grub_util_get_os_disk): Likewise.
13068 (grub_util_biosdisk_get_grub_dev): Likewise.
13069 (grub_util_check_block_device): Likewise.
13070 (grub_util_check_char_device): Likewise.
13071 (grub_make_system_path_relative_to_its_root): Likewise.
13072 * util/grub-editenv.c (create_envblk_file): Likewise.
13073 (open_envblk_file): Likewise.
13074 (write_envblk): Likewise.
13075 * util/grub-fstest.c (cmd_cp): Likewise.
13076 (cmd_cat): Likewise.
13077 (cmd_cmp): Likewise.
13078 * util/grub-menulst2cfg.c (main): Likewise.
13079 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13080 (write_font_width_spec): Likewise.
13081 (write_font_pf2): Likewise.
13082 * util/grub-mkimage.c (generate_image): New argument outname.
13084 Remove unreacheable message.
13085 (options): Unify messages.
13086 (help_filter): Likewise.
13087 * util/grub-mklayout.c (usage): Removed (unused).
13088 (main): Print filename in error.
13089 * util/grub-mkrescue.in: Fix wrong quoting.
13090 * util/grub-setup.c (setup): Print filename in error.
13091 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13092 (check_sas): Likewise.
13093 * util/misc.c (grub_util_get_fp_size): Removed.
13094 (grub_util_get_image_size): Print filename in error.
13095 (grub_util_read_at): Removed.
13096 (grub_util_read_image): Print filename in error.
13097 (grub_util_load_image): Likewise.
13098 (grub_util_write_image_at): New argument filename. All users updated.
13099 Print filename in error.
13100 (grub_util_write_image): New argument filename. All users updated.
13101 Print filename in error.
13102 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13103 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13105 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13107 * grub-core/Makefile.core.def (pxechain): New module.
13108 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13109 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13111 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13112 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13114 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13116 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13117 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13118 * include/grub/err.h (grub_error_saved): New struct.
13119 (grub_errmsg): Make array size explicit.
13120 * include/grub/misc.h (grub_error_save): New function.
13121 (grub_error_load): Likewise.
13122 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13123 (grub_error_push): Update `errno' member name.
13124 (grub_error_pop): Likewise
13125 * grub-core/net/tftp.c (tftp_data): New member save_err.
13126 (tftp_receive): Save error.
13127 (tftp_open): Restore error.
13129 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13131 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13132 to real mode down to execute A20-related code in protected mode as
13135 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13137 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13138 NULL when the argument `level' has an unexpected value.
13140 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13142 Move platform-dependent files from $prefix to $prefix/$platform.
13144 * config.h.in (GRUB_TARGET_CPU): New definition.
13145 (GRUB_PLATFORM): Likewise.
13146 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13147 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13148 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13149 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13150 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13151 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13152 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13153 * grub-core/normal/term.c (read_terminal_list): Likewise.
13154 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13156 (grub_gettext_init_ext): Likewise.
13157 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13159 * util/grub-install.in: Update directories.
13160 * util/grub-mknetdir.in: Likewise.
13161 * util/grub-mkrescue.in: Likewise.
13163 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13165 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13166 grub_error framework. All users updated.
13168 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13170 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13171 lists (by always binsearching), improve caching (cache strings
13172 used for binsearch, not only results), improve
13173 maintainability (by using more structured binary search) and correct
13176 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13178 * grub-core/script/execute.c (grub_script_return): Fix warning.
13180 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13182 * grub-core/script/execute.c (grub_script_return): Fix potential
13184 Reported by: Jim Meyering.
13186 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13188 * po/POTFILES.in: Regenerate.
13189 * util/grub-install.in: Gettextize the strings missed in first pass.
13191 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13193 * Makefile.util.def (grub-mkdevicemap): Removed.
13194 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13195 * include/grub/util/deviceiter.h: Removed.
13196 * util/deviceiter.c: Likewise.
13197 * util/getroot.c (grub_util_get_os_disk): New function.
13198 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13199 replacement for EFI.
13200 * util/grub-mkdevicemap.c: Removed.
13201 * util/grub-probe.c (probe): Handle PRINT_DISK.
13202 (argp_parser): Handle -t disk.
13204 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13206 * util/grub-mkfont.c: Migrate to argp.
13207 * util/grub-mklayout.c: Likewise.
13208 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13209 * util/grub-mkrelpath.c: Likewise.
13210 * util/grub-probe.c: Likewise.
13211 * util/grub-script-check.c: Likewise.
13213 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13215 * util/grub-reboot.in: Add missing datarootdir.
13216 Add missing newline.
13217 * util/grub-set-default.in: Add missing datarootdir.
13218 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13219 * util/grub-mkrescue.in: Likewise.
13221 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13223 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13225 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13227 * util/grub-kbdcomp.in: Add decent help and gettextize.
13228 * docs/man/grub-kbdcomp.h2m: New file.
13230 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13232 Migrate grub-mkimage.c to argp.
13234 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13235 (grub-setup): Likewise.
13236 * util/grub-setup.c (print_version): Move to ...
13237 * util/argp_common.c (print_version): ... here.
13238 * util/grub-setup.c (argp_program_version_hook): Move to ...
13239 * util/argp_common.c (argp_program_version_hook): ... here.
13240 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13242 * util/grub-mkimage.c (main): Migrate to argp.
13244 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13246 * util/grub-mkrescue.in: Use same message as
13247 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13248 for better translations.
13250 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13252 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13253 options with generic grub-mkrescue.in with the goal of future
13256 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13258 * grub-core/kern/mm.c: Add missing include of i18n.h
13259 * grub-core/lib/relocator.c: Likewise.
13261 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13263 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13265 (allocate_pages): Check return value.
13266 Replace fatal with error.
13267 (grub_linux_boot): Replace printf with dprintf.
13268 Check find_mmap_size return value.
13269 Replace fatal with error.
13270 Don't call grub_machine_fini.
13271 (grub_load_elf64): Replace printf with dprintf.
13272 (grub_cmd_linux): Likewise.
13273 (grub_cmd_initrd): Likewise.
13274 (grub_cmd_payload): Likewise.
13276 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13278 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13280 * grub-core/video/radeon_fuloong2e.c
13281 (grub_video_radeon_fuloong2e_setup): Likewise.
13282 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13283 * grub-core/video/video.c (grub_video_set_mode): Don't override
13284 standard out of memory message.
13286 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13288 NetBSD disk wedge support.
13290 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13291 [__NetBSD__]: Handle NetBSD disk wedges.
13292 * util/getroot.c (convert_system_partition_to_system_disk)
13293 [__NetBSD__]: Likewise.
13295 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13297 * util/grub-mkconfig.in: Use umask rather than chmod to create
13298 grub.cfg.new to avoid insecure grub.cfg.
13300 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13302 * grub-core/commands/ls.c: Gettextize.
13303 * grub-core/commands/setpci.c: Likewise.
13304 * grub-core/commands/videotest.c: Likewise.
13305 * grub-core/disk/geli.c: Likewise.
13306 * grub-core/kern/mm.c: Likewise.
13307 * grub-core/lib/relocator.c: Likewise.
13308 * grub-core/loader/efi/appleloader.c: Likewise.
13309 * grub-core/loader/i386/xnu.c: Likewise.
13310 * grub-core/loader/ia64/efi/linux.c: Likewise.
13311 * grub-core/loader/xnu.c: Likewise.
13312 * grub-core/net/dns.c: Likewise.
13313 * grub-core/net/net.c: Likewise.
13314 * grub-core/script/lexer.c: Likewise.
13315 * grub-core/script/parser.y: Likewise.
13316 * grub-core/script/yylex.l: Likewise.
13317 * util/getroot.c: Likewise.
13318 * util/grub-setup.c: Likewise.
13320 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13322 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13325 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13327 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13329 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13331 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13333 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13334 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13336 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13338 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13339 * util/grub-install.in: Gettextize.
13340 * util/grub-mkconfig.in: Likewise.
13341 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13343 (grub_warn): Gettextize.
13344 * util/grub-mknetdir.in: Gettextize.
13345 * util/grub-mkrescue.in: Likewise.
13346 * util/grub-mkstandalone.in: Likewise.
13347 * util/grub-reboot.in: Likewise.
13348 * util/grub-set-default.in: Likewise.
13349 * util/grub.d/00_header.in: Likewise.
13350 * util/grub.d/10_hurd.in: Likewise.
13351 * util/grub.d/10_kfreebsd.in: Likewise.
13352 * util/grub.d/10_linux.in: Likewise.
13353 * util/grub.d/10_netbsd.in: Likewise.
13354 * util/grub.d/10_windows.in: Likewise.
13355 * util/grub.d/20_linux_xen.in: Likewise.
13356 * util/grub.d/30_os-prober.in: Likewise.
13357 * po/POTFILES-shell.in: Regenerate.
13359 2012-02-03 Richard Laager <rlaager@wiktel.com>
13361 * util/grub-mkimage.c (main): Fix format-security warning.
13362 * util/grub-mkrelpath.c (main): Likewise.
13363 * util/grub-probe.c (main): Likewise.
13365 2012-02-03 Richard Laager <rlaager@wiktel.com>
13367 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13369 Put back lost PRINT_DRIVE.
13371 2012-02-03 Richard Laager <rlaager@wiktel.com>
13373 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13374 (grub_guess_root_devices): Replace strlen with sizeof.
13376 (find_root_devices_from_poolname): Remove unused variable.
13379 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13381 Support install on multi-device filesystems.
13383 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13384 (grub_guess_root_devices): ...this. Return char **. All users updated.
13385 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13387 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13388 (find_root_devices_from_poolname): ... here.
13389 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13391 (grub_guess_root_device): Rename to ...
13392 (grub_guess_root_devices): ... this. Return char **. All users updated.
13393 * util/grub-install.in: Handle multi-device filesystems.
13394 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13395 argument. All users updated.
13396 Handle multi-device filesystems.
13397 Use 'delim' as separator.
13398 Remove device check to allow filesystems on file.
13399 (main): Support -0 argument. Handle multi-device.
13400 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13401 Fix a cross-device check while on it.
13402 (arguments): Remove root_dev.
13403 (argp_parser): Remove -r.
13404 (main): Remove root_dev.
13406 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13408 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13410 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13412 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13414 Reported by: NODA, Kai <nodakai>.
13416 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13420 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13422 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13423 (grub_ehci_setup_qh): Likewise.
13424 (grub_ehci_find_qh): Likewise.
13425 (grub_ehci_transaction): Likewise.
13426 (grub_ehci_setup_transfer): Likewise.
13427 (grub_ehci_check_transfer): Likewise.
13428 (grub_ehci_portstatus): Likewise.
13429 (grub_ehci_detect_dev): Likewise.
13430 (grub_ehci_transfer_controller_data): New field td_last_phys.
13431 (grub_ehci_setup_transfer): Fill td_last_phys.
13432 (grub_ehci_check_transfer): Use td_last_phys.
13434 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13436 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13437 if no submenu is present.
13439 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13443 * include/grub/usb.h (grub_usbms_protocol_t): New values
13444 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
13445 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
13446 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
13447 (grub_usbms_dev): Add subclass, protocol and intrpt.
13448 Remove in_maxsz and out_maxsz.
13449 (grub_usbms_reset): Rename to ...
13450 (grub_usbms_bo_reset): .. this.
13451 (grub_usbms_cbi_cmd): New function.
13452 (grub_usbms_cbi_reset): Likewise.
13453 (grub_usbms_reset): Likewise.
13454 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
13455 (grub_usbms_transfer): Rename to ...
13456 (grub_usbms_transfer_bo): ... this.
13457 (grub_usbms_transfer_cbi): Likewise.
13458 (grub_usbms_transfer): Likewise.
13460 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13461 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13463 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
13464 the support for the CS5536 modification thereos and few bugfixes.
13466 * grub-core/Makefile.core.def (ehci): New module.
13467 * grub-core/bus/usb/ehci.c: New file.
13468 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
13469 port and hubaddr. All users updated.
13470 Save port and hubaddr into dev structure.
13471 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
13473 * include/grub/pci.h (grub_dma_phys2virt): New function.
13474 (grub_dma_virt2phys): Likewise.
13475 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
13477 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13479 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
13480 check as some mkfs implementations omit it.
13482 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13484 * docs/grub.texi (Unicode): Mention identifier and space limitations.
13486 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13488 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
13489 Add new member volname2.
13490 (grub_jfs_label): Use volname2 if available.
13492 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13494 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
13495 over last_mounted as seen in image generated by mkfs.nilfs2.
13496 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
13498 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13500 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
13501 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
13502 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
13504 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13506 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
13509 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13511 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
13512 subvolume name (by removing a bogus and useless check).
13514 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13516 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
13517 sizeof while on it.
13519 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13521 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
13522 (grub_scsi_read_capacity10): ... this.
13523 (grub_scsi_read_capacity16): New function.
13524 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
13526 Fix off-by-one error.
13527 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
13529 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
13530 (grub_scsi_read_capacity10): ... this.
13531 (grub_scsi_read_capacity_data): Rename to ...
13532 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
13533 (grub_scsi_read_capacity16): New struct.
13534 (grub_scsi_read_capacity16_data): Likewise.
13535 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
13536 grub_scsi_cmd_read_capacity10.
13537 New command grub_scsi_cmd_read_capacity16.
13539 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13541 SCSI >2TiB support.
13543 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
13544 (grub_scsi_write16): Likewise.
13545 (grub_scsi_read): Use read16 when necessary.
13546 (grub_scsi_write): Likewise.
13547 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
13548 (grub_scsi_write16): Likewise.
13549 (grub_scsi_cmd_t): Add READ16 and WRITE16.
13551 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13553 SCSI write support (for usbms mainly).
13555 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
13557 (grub_scsi_write): Implement.
13558 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
13560 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13562 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
13565 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13567 * grub-core/lib/posix_wrap/string.h (memchr): New function.
13569 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13571 * po/POTFILES.in: Regenerate.
13573 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13575 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
13576 with grub_printf to avoid unnecessary fatal failure.
13578 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13580 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
13581 (INT_MAX): Likewise.
13582 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
13583 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
13584 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
13585 (strcpy): Likewise.
13586 (strstr): Likewise.
13587 (strchr): Likewise.
13588 (strncpy): Likewise.
13589 (strcat): Likewise.
13590 (strncat): Likewise.
13591 (strcoll): Likewise.
13592 * include/grub/types.h (GRUB_SHRT_MAX): New define.
13593 (GRUB_INT_MAX): Likewise.
13595 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13597 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
13599 (optimize_utf8): Likewise.
13600 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
13602 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13604 * grub-core/boot/i386/pc/lnxboot.S: Use
13605 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
13606 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
13608 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
13610 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
13612 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13614 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
13615 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
13616 now to avoid double free.
13617 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
13619 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
13620 * util/grub-probe.c (escape_of_path): Always return a new copy.
13621 (print_full_name): Escape path.
13622 (probe): Don't call grub_util_devname_to_ofpath on NULL.
13623 Fix hints on abstractions.
13625 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13627 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
13628 Don't add "root" line if no compatibility hont is available.
13629 Suggested by: Seth Goldberg.
13631 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13633 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
13634 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
13635 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
13636 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
13638 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13640 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
13642 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13644 * util/grub-pe2elf.c (ehdr): Make static.
13646 (num_sections): Likewise.
13647 (offset): Likewise.
13649 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13651 Eliminate ofpath limits and possible overflows.
13653 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
13654 (OF_PATH_MAX): Removed.
13655 (MAX_DISK_CAT): New const.
13656 (find_obppath): Use allocated rather than preallocated buffer.
13657 Return result. Argument of_path removed. All users updated.
13658 Add missing fdstat.
13659 (xrealpath): New function.
13660 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
13661 Allocate rather than use preallocated buffer. All users updated.
13662 (__of_path_common): Use allocated rather than preallocatecd buffer.
13663 Return result. Argument of_path removed. All users updated.
13664 (vendor_is_ATA): Read only needed part form the file.
13665 (check_sas): Allocate depending on contents rather than fixed.
13666 (main) [STANDALONE]: Handle NULL result.
13668 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13670 * grub-core/normal/completion.c (iterate_dev): Close the disk.
13672 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13674 Cryptodisk write support.
13676 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
13677 (grub_cryptodisk_decrypt): Moved logic to ...
13678 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
13679 (grub_cryptodisk_write): Implement.
13680 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
13681 (grub_util_fd_write): ... this. Make global.
13682 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
13684 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13686 * include/grub/list.h (grub_list_remove): Don't crash if element is
13689 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13691 Rename ofconsole to console.
13693 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
13694 as sysnonym to console.
13695 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
13696 * grub-core/term/ieee1275/console.c: ... this. All users updated.
13697 Rename grub_ofconsole_ to grub_console_. All users updated
13698 (grub_console_term_output): Rename "ofconsole" to "console".
13699 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
13702 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13704 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
13706 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
13707 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
13708 GRUB_DISK_DEVICE_FILE_ID.
13710 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13712 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
13713 and improve performance.
13715 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13717 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
13718 missing ieee1275/ prefix on whole disk.
13720 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13722 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
13723 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13725 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13727 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
13729 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13731 Merge common RAID and LVM logic to an abstract diskfilter.
13732 Add LDM support using the same framework.
13734 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
13735 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
13736 (libgrubmods): Remove grub-core/disk/raid.c and
13737 grub-core/partmap/gpt.c.
13738 * grub-core/Makefile.core.def (ldm): New module.
13739 (raid): Renamed to diskfilter. All users updated.
13740 * grub-core/disk/raid.c: Moved to ...
13741 * grub-core/disk/diskfilter.c: ... here.
13742 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
13744 (find_array): Renamed to ...
13745 (find_lv): ... this. Support multi-LV. Skip nameless LVs
13746 (grub_is_array_readable): Renamed to ...
13747 (grub_is_lv_readable): ... this. Support multinode hierarchy.
13748 (insert_array): New argument id.
13749 (is_node_readable): New function.
13750 (scan_device): Rename to ...
13751 (scan_disk): .. this. Restrict to one disk.
13752 (scan_devices): New function.
13753 (grub_diskfilter_iterate): Support multi-LV.
13754 Skip invisible and nameless LVs.
13755 (grub_diskfilter_memberlist): Support multi-LV.
13756 (grub_diskfilter_read_node): New function.
13757 (grub_raid_read): Most of logic moved to ...
13758 (read_segment): ... here
13759 (read_lv): New function.
13760 (grub_diskfilter_get_vg_by_uuid): New function.
13761 (grub_diskfilter_make_raid): Likewise.
13762 * grub-core/disk/ldm.c: New file.
13763 * grub-core/disk/lvm.c (vg_list): Removed.
13764 (lv_count): Likewise.
13765 (scan_depth): Likewise.
13766 (is_lv_readable): Likewise.
13767 (grub_lvm_getvalue): Advance pointer past the number.
13768 (find_lv): Removed.
13769 (do_lvm_scan): Refactored into ...
13770 (grub_lvm_detect): ... this. Support raid.
13771 (grub_lvm_iterate): Removed.
13772 (grub_lvm_memberlist): Likewise.
13773 (grub_lvm_open): Likewise.
13774 (grub_lvm_close): Likewise.
13775 (read_lv): Likewise.
13776 (read_node): Likewise.
13777 (is_node_readable): Likewise.
13778 (is_lv_readable): Likewise.
13779 (grub_lvm_read): Likewise.
13780 (grub_lvm_write): Likewise.
13781 (grub_lvm_dev): Use diskfilter
13782 (GRUB_MOD_INIT): Likewise.
13783 (GRUB_MOD_FINI): Likewise.
13784 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
13786 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
13787 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13788 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
13789 grub_diskfilter_read_node.
13790 Fix a bug with xor.
13791 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
13792 grub_diskfilter_read_node.
13793 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
13794 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
13795 (grub_disk_dev_iterate): Move from here...
13796 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
13797 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
13799 (grub_hostdisk_find_partition_start): Likewise.
13800 (grub_hostdisk_os_dev_to_grub_drive): New function.
13801 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
13802 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
13803 * util/getroot.c (make_device_name): ... here.
13804 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
13806 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
13807 * grub-core/kern/emu/hostdisk.c
13808 (convert_system_partition_to_system_disk): Move to ...
13809 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
13810 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
13811 * util/getroot.c (device_is_wholedisk): ... here.
13812 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
13813 * util/getroot.c (find_system_device): ... here.
13814 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
13816 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
13817 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
13819 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
13821 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
13823 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
13824 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
13825 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
13827 * include/grub/raid.h: Renamed to ...
13828 * include/grub/diskfilter.h: ... this.
13829 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
13830 (GRUB_RAID_LAYOUT_*): Make into array.
13831 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
13832 (grub_diskfilter_vg): New struct.
13833 (grub_diskfilter_pv_id): Likewise.
13834 (grub_raid_member): Removed.
13835 (grub_raid_array): Likewise.
13836 (grub_diskfilter_pv): New struct.
13837 (grub_diskfilter_lv): Likewise.
13838 (grub_diskfilter_segment): Likewise.
13839 (grub_diskfilter_node): Likewise.
13840 (grub_diskfilter_get_vg_by_uuid): New proto.
13841 (grub_raid_register): Inline.
13842 (grub_diskfilter_unregister): Likewise.
13843 (grub_diskfilter_make_raid): New proto.
13844 (grub_diskfilter_vg_register): Likewise.
13845 (grub_diskfilter_read_node): Likewise.
13846 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
13847 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
13848 (grub_util_is_ldm): Likewise.
13849 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
13850 (grub_hostdisk_find_partition_start): Likewise.
13851 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
13852 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
13854 (grub_gpt_partition_map_iterate): New proto.
13855 * include/grub/lvm.h (grub_lvm_vg): Removed.
13856 (grub_lvm_pv): Likewise.
13857 (grub_lvm_lv): Likewise.
13858 (grub_lvm_segment): Likewise.
13859 (grub_lvm_node): Likewise.
13860 * util/getroot.c [...]
13861 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
13862 (probe_abstraction): Likewise.
13863 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
13864 (main): Remove dead logic.
13866 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
13868 Simplify root device discover and don't fail when trying to open
13871 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
13873 (get_diskname_from_path): Likewise.
13874 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
13877 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13879 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
13881 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13883 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
13886 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13888 * util/grub-install.in: Add missing \.
13889 Reported by: gentoofan
13891 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13893 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
13894 (direct_read): Use correct compressed size.
13895 (grub_squash_read_data): Likewise.
13897 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13899 * docs/grub.texi (Platform limitations): New section.
13900 (Platform-specific operations): Likewise.
13901 * docs/grub-dev.texi (Porting): Likewise.
13903 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13905 IEEE1275 disk write support.
13907 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
13909 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
13910 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
13911 and seek loginc to ...
13912 (grub_ofdisk_prepare): ... here.
13913 (grub_ofdisk_write): Implement.
13915 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13917 ARC disk write support.
13919 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
13920 (reopen): New argument writable. All users updated.
13921 Handle required access mode.
13922 (grub_arcdisk_write): Implement.
13923 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
13924 (grub_arc_firmware_vector): Make buffer to write a const buffer.
13926 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13928 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
13929 (read_sblock): Don't attempt to read superblocks outside the disk size.
13931 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13933 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
13934 first superblock to find the second one when possible.
13936 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13938 * util/grub-install.in: Fix an ARC bug.
13939 Print a warning if no platform-specific setup is available.
13941 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13943 Use static allocation rather than scratch pointer in reed_solomon.
13944 It decreases its size significantly and avoids a variable in .text.
13946 * grub-core/lib/reed_solomon.c (scratch): Removed.
13947 (chosenstat): New const or static array.
13949 (errpot): Likewise.
13950 (errpos): Likewise.
13953 (errvals): Likewise.
13954 (eqstat): Likewise.
13955 (pol_evaluate): Replace x with log_x argument. All users updated.
13956 (syndroms): Removed.
13957 (gauss_solve): Use statically allocated arrays.
13958 (rs_recover): Likewise.
13959 Calculate syndroms directly.
13960 (decode_block): Use statically allocated arrays.
13961 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
13962 (main) [TEST]: Allow -DTEST -DSTANDALONE.
13964 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13966 Eliminate fixed limit on reed solomon decoder length.
13968 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
13969 rather than hardcoding the address.
13970 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
13971 no_reed_solomon_length.
13972 Move gate_a20 to no-reed-solomon part.
13973 Don't force a particular size of no reed-solomon part.
13974 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
13976 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
13977 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
13979 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13981 * grub-core/commands/wildcard.c (match_files): Handle filenames
13982 without explicit device.
13983 (wildcard_expand): Don't add explicit device if not already present.
13984 * tests/grub_script_echo1.in: Add a new expansion test.
13986 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13988 Replace single-linked with double-linked lists. It results in more
13989 compact and more efficient code.
13991 * grub-core/kern/list.c (grub_list_push): Moved from here ...
13992 * include/grub/list.h (grub_list_push): ... to here. Set prev.
13993 (grub_list_remove): Moved from here ...
13994 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
13995 (grub_prio_list_insert): Set prev.
13996 * include/grub/list.h (grub_list): Add prev. All users updated.
13998 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14000 Handle newer autotools. Add some missing quotes while on it.
14002 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14003 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14004 (pkgdata_DATA): ... here.
14005 * Makefile.util.def (update-grub_lib): Removed.
14006 * conf/Makefile.common (pkglib_DATA): Removed.
14007 (pkglib_SCRIPTS): Likewise.
14008 (pkgdata_DATA): New variable.
14009 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14011 Add missing quotes.
14012 Remove unused variable while on it.
14013 * tests/util/grub-shell.in: Likewise.
14014 * util/grub-install.in: Likewise.
14015 * util/grub-mkconfig.in: Likewise.
14016 * util/grub-mknetdir.in: Likewise.
14017 * util/grub-mkrescue.in: Likewise.
14018 * util/grub-mkstandalone.in: Likewise.
14019 * util/grub.d/00_header.in: Likewise.
14020 * util/grub.d/10_hurd.in: Likewise.
14021 * util/grub.d/10_illumos.in: Likewise.
14022 * util/grub.d/10_kfreebsd.in: Likewise.
14023 * util/grub.d/10_linux.in: Likewise.
14024 * util/grub.d/10_netbsd.in: Likewise.
14025 * util/grub.d/10_windows.in: Likewise.
14026 * util/grub.d/20_linux_xen.in: Likewise.
14027 * util/grub.d/30_os-prober.in: Likewise.
14028 * util/update-grub_lib.in: Removed.
14030 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14032 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14033 a workaround for intel problem.
14035 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14036 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14037 2012-01-23 pfsmorigo
14039 * util/grub-install.in: Support dd'in into PreP partition.
14040 * util/grub-probe.c (probe): Support discovering partition type.
14041 (main): Support -t msdos_parttype.
14043 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14045 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14046 infinite recursion using counter.
14047 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14048 init to skip it if the magic check fails.
14049 (dec_stream_header): Init s->crc32.
14051 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14052 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14053 2012-01-22 Richard Laager <rlaager@wiktel.com>
14055 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14057 (find_bestub): Determine correct size.
14058 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14059 (scan_disk): Align the size down.
14060 Call check pool before find_bestub to have ashift.
14062 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14064 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14065 dprintf in no-malloc zone.
14067 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14069 * configure.ac: Add back in test for limits.h.
14071 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14073 Support 4K-sector NTFS.
14075 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14076 (grub_ntfs_data): Remove blocksize.
14077 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14078 Remove data argument. All users updated.
14080 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14082 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14083 being in .text to avoid dprel references.
14084 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14085 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14086 (grub_arch_highmemsize): Likewise.
14087 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14088 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14089 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14091 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14093 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14095 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14096 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14098 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14100 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14102 (grub_set_datetime_cmos): Likewise.
14104 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14106 Make XZ compression parameters dependent on target and not host CPU.
14108 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14109 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14111 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14113 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14114 set but not used variable.
14116 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14118 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14119 created when no uuid support is compiled into mkfs.reiser.
14121 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14123 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14124 (utf8_to_macroman): Do the opposite.
14125 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14127 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14129 * configure.ac: Refise build qemu_mips w/o unifont.
14131 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14133 Eliminate grub_min/grub_max prone to overflow usage.
14135 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14136 (poll_nonroot_hub): Likewise.
14137 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14138 (grub_affs_label): Likewise.
14139 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14140 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14141 (grub_hfs_label): Likewise.
14142 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14143 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14144 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14145 (zap_leaf_array_get): Likewise.
14146 (dnode_get_path): Likewise.
14147 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14148 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14149 * grub-core/script/execute.c (grub_script_break): Likewise.
14150 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14152 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14153 * include/grub/misc.h (grub_min): Removed.
14154 (grub_max): Likewise.
14156 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14158 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14161 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14163 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14165 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14167 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14169 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14171 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14172 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14174 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14176 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14177 rather than a hack for grub_strncasemap.
14179 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14181 Support multiple initrds
14182 Note: part of this was accidently committed in r3739.
14184 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14186 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14187 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14188 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14189 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14190 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14192 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14194 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14195 disks with unknown size.
14196 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14198 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14200 Remove defines pertaining to arbitrary limits not affecting GRUB
14203 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14204 (EXT2_MAX_SYMLINKCNT): Likewise.
14205 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14206 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14207 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14208 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14209 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14210 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14211 (DN_MAX_OBJECT_SHIFT): Likewise.
14212 (DN_MAX_OFFSET_SHIFT): Likewise.
14213 (DN_MAX_OBJECT): Likewise.
14214 (DNODES_PER_LEVEL_SHIFT): Likewise.
14215 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14216 (SPA_MAXBLOCKSIZE): Likewise.
14217 (SPA_BLOCKSIZES): Likewise.
14218 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14219 (MZAP_MAX_BLKSZ): Likewise.
14221 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14223 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14224 handle NULL appropriately.
14227 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14231 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14233 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14234 * configure.ac: Fix efiemu check.
14236 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14238 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14240 Reported by: adamwill
14242 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14244 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14246 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14248 Fix handling of wide characters in gfxterm.
14250 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14251 (clear_char): Likewise.
14252 (paint_char): Skip code == NULL chars.
14253 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14255 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14257 * grub-core/normal/charset.c: Move comment to right place.
14259 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14261 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14262 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14263 (grub_affs_mount): Revert the correct version checking.
14265 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14267 * docs/grub.texi (Unicode): Mention several other unsupported features.
14269 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14271 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14272 case statements as compile-time one.
14273 (direct_read): Prevent spurious warnings.
14274 (grub_squash_read_data): Likewise.
14276 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14278 Various squash4 fixes and LZO and XZ support.
14280 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14281 Add xzembed source files.
14282 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14283 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14284 (grub_squash_inode): New subtype long_dir.
14285 (SQUASH_TYPE_LONG_DIR): New inode type.
14286 (COMPRESSION): New enum.
14287 (XZBUFSIZ): New const.
14288 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14289 (read_chunk): Use data->decompress.
14290 (zlib_decompress): New function.
14291 (lzo_decompress): Likewise.
14292 (xz_decompress): Likewise.
14293 (squash_mount): Set new data fields.
14294 (grub_squash_iterate_dir): Handle long dir.
14295 (squash_unmount): Free xzdec and xzbuf.
14296 (grub_squash_open): Check ino type.
14297 (direct_read): Stylistic fixes. Use data->decompress.
14298 (grub_squash_read_data): Likewise.
14299 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14300 (get_byte): Likewise.
14301 (grub_zlib_disk_read): Removed.
14302 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14303 (GRUB_POSIX_BOOL_DEFINED): New define.
14304 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14305 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14306 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14307 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14309 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14311 Don't override more informative errors.
14313 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14314 * grub-core/font/font.c (open_section): Likewise.
14315 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14316 filename. Don't override errors.
14317 (grub_cmd_openbsd_ramdisk): Don't override errors.
14318 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14319 (grub_cmd_initrd): Likewise.
14320 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14321 (grub_cmd_initrd): Likewise.
14322 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14323 (grub_cmd_linux): Likewise.
14324 (grub_cmd_initrd): Likewise.
14325 (grub_cmd_payload): Likewise.
14326 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14327 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14328 (grub_cmd_module): Likewise.
14329 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14330 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14331 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14332 (grub_cmd_xnu_mkext): Likewise.
14333 (grub_cmd_xnu_ramdisk): Likewise.
14334 (grub_xnu_check_os_bundle_required): Likewise.
14335 (grub_xnu_load_kext_from_dir): Likewise.
14336 (grub_cmd_xnu_kextdir): Likewise.
14337 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14339 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14341 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14342 as 1024 in block size field. Found on one of my test images.
14343 Small optimisation while on it.
14345 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14347 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14348 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14349 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14350 performance fixes while on it.
14351 (grub_sfs_close): Fix memory leak while on it.
14352 (grub_sfs_label): Convert Latin1 to UTF-8.
14354 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14356 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14357 space to avoid overflows.
14358 (grub_hfs_label): Convert from macroman to UTF-8.
14360 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14362 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14364 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14366 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14368 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14370 * unicode: Import Unicode 6.0 data.
14372 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14374 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14377 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14379 Avoid cutting in the middle of UTF-8 character.
14381 * include/grub/charset.h (grub_getend): New function.
14382 * grub-core/script/function.c (grub_script_function_find): Use
14384 * grub-core/normal/completion.c (add_completion): Likewise.
14386 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14388 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14389 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14390 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14391 (GRUB_UNICODE_TAG_END): Likewise.
14392 (GRUB_UNICODE_LAST_VALID): Likewise.
14394 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14396 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14397 len and make it smaller. All users updated.
14398 * util/import_unicode.py: Put length and not end character.
14401 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14403 Make better Unicode-compliant and unify some UTF-8 code pathes.
14405 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14407 (grub_is_valid_utf8): Use grub_utf8_process.
14408 Check resulting code range.
14409 (grub_utf8_to_ucs4): Use grub_utf8_process.
14410 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14413 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14415 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14417 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14419 * docs/grub.texi (Filesystems): Mention AFS.
14421 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14423 * docs/grub.texi (Filesystems): Clarify restrictions.
14424 (Regexp): Mention non-Unicode regexp behaviour.
14425 (Other): Mention non-Unicode matching behaviour.
14427 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14429 Make HFS implementation use MacRoman.
14431 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14432 (macroman): New const array.
14433 (macroman_to_utf8): New function.
14434 (utf8_to_macroman): Likewise.
14435 (grub_hfs_find_dir): Use utf8_to_macroman.
14436 (grub_hfs_dir): Use macroman_to_utf8.
14437 Set case_insensitive.
14439 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14441 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14443 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14445 Integrate hints into autogeneration scripts.
14447 * docs/grub.texi (Filesystems): Add a hostdisk example.
14448 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
14449 (grub-probe): Add ofpath.
14450 * gentpl.py: Remove group nosparc64.
14451 * grub-core/commands/search.c (cache_entry): New struct.
14453 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
14454 * grub-core/commands/search_wrap.c (options): Add platform-specific
14456 (grub_cmd_search): Handle platform-specific hints.
14457 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
14458 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
14459 (grub_util_biosdisk_data): Likewise.
14460 (grub_util_biosdisk_open): Set device_map.
14461 (read_device_map): Handle "" as indication of no map.
14463 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
14464 (grub_util_biosdisk_get_compatibility_hint): New function.
14465 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
14466 * include/grub/emu/hostdisk.h
14467 (grub_util_biosdisk_get_compatibility_hint): New proto.
14468 * util/grub-install.in: Don't call grub-mkdevicemap.
14469 Add platform-specific hint to load.cfg.
14470 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
14471 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
14472 hints. Set root preliminary to compatibility hint, not to OS name.
14473 * util/grub-probe.c (PRINT_*): Add hints.
14474 (print): Make static.
14475 (escape_of_path): New function.
14476 (guess_bios_drive): Likewise.
14477 (guess_efi_drive): Likewise.
14478 (guess_baremetal_drive): Likewise.
14479 (print_full_name): Likewise.
14480 (probe): Handle hints.
14482 * util/ieee1275/devicemap.c: Removed.
14483 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
14485 (grub_util_devname_to_ofpath): Return NULL on failure.
14487 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
14489 * util/getroot.c (grub_util_pull_device): Fix memory leak.
14491 * po/POTFILES.in: Regenerated.
14493 Allow purely long options
14495 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
14496 (SHORT_ARG_USAGE): Likewise.
14497 (grub_arg_show_help): Compare opt with help_options.
14498 (parse_option): Receive opt as argument. If makes big simplificatons.
14501 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14503 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
14504 Restructure to avoid warning.
14506 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14508 * util/grub-install.in: Account for possible escaped comma in device
14511 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14513 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
14516 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14518 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
14519 allocation and zero-setting.
14520 (grub_ieee1275_get_devname): Check that alias is complete.
14522 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14524 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
14525 unaligned segments.
14527 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14529 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
14531 (grub_ofdisk_open): Check and discard ieee1275 prefix.
14532 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14533 Add ieee1275 prefix.
14535 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14537 * docs/grub.texi (Filesystems): Update.
14539 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14541 Support odc, newc and bigendian cpio formats.
14543 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
14544 * grub-core/Makefile.core.def (newc): New module.
14546 (cpio_be): Likewise.
14547 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
14549 (MAGIC2): Likewise.
14550 (head) [MODE_ODC]: Adapt for the format.
14551 (head) [MODE_NEWC]: Likewise.
14552 (head) [!MODE_*]: Write fields of interest as arrays.
14553 (MAGIC_USTAR): Removed.
14554 (read_number) [MODE_NEWC]: Change to hex.
14555 (read_number) [!MODE_*]: Parse binary arrays.
14556 (grub_cpio_find_file): Factor out the code for better structure and
14557 always use read_number.
14558 (grub_cpio_mount): Use MAGIC and MAGIC2.
14559 (grub_cpio_dir): Exit on first hook non-0 return.
14560 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
14561 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
14562 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
14563 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
14564 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
14565 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
14566 * grub-core/fs/newc.c: New file.
14567 * grub-core/fs/odc.c: Likewise.
14568 * grub-core/fs/cpio_be.c: Likewise.
14570 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14572 Fix handling of tar numbers occupying the whole field.
14574 * grub-core/fs/cpio.c (read_number): New function.
14575 (grub_cpio_find_file): Use read_number instead of strtoull.
14577 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14579 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
14580 occupying the whole field size.
14582 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
14584 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
14586 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14588 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
14590 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
14592 * grub-core/Makefile.core.def (lzma_decompress): Add missing
14593 TARGET_IMG_LDFLAGS.
14595 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14597 * util/getroot.c (ESCAPED_PATH_MAX): New define.
14598 (mountinfo_entry): Increase the field size to take escaping into
14600 (find_root_device_from_libzfs): Add one byte to size of strings for
14603 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14605 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
14607 * util/grub-setup.c (setup): Likewise.
14609 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14611 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
14614 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14616 * docs/grub.texi (Internationalisation): New section.
14618 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14620 * docs/grub.texi (Loopback booting): New section.
14622 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
14624 * util/grub-mkstandalone.in: Fix minor typo errors.
14626 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14628 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
14630 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
14631 net/icmp.c and net/icmp6.c.
14632 (http): New module.
14633 (priority_queue): Likewise.
14634 * grub-core/io/bufio.c: Rewritten.
14635 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
14636 TYPE_WITH_CONFIGFILE_OPTION.
14637 (legacy_commands): Add bootp and dhcp.
14638 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
14639 (grub_legacy_parse): Likewise.
14640 * grub-core/lib/priority_queue.c: New file.
14641 * grub-core/net/arp.c: Add missing license header.
14642 (arp_find_entry): Removed.
14643 (arp_find_entry): Likewise.
14644 (grub_net_arp_resolve): Rename to ...
14645 (grub_net_arp_send_request): ...this.
14646 (grub_net_arp_receive): New card argument.
14647 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
14648 Set router and DNS server.
14649 (grub_net_configure_by_dhcp_ack): Handle routing information.
14650 (grub_cmd_bootp): Set checksum.
14651 (grub_bootp_init): Remove net_dhcp.
14652 * grub-core/net/dns.c: New file.
14653 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
14655 (get_card_packet): Handle allocation.
14656 (grub_efinet_findcards): Set mtu.
14657 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
14658 (get_card_packet): Handle allocation.
14659 (emucard): Set mtu.
14660 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
14661 (GRUB_MOD_INIT): Set mtu.
14662 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
14664 (get_card_packet): Handle allocation.
14665 (grub_ofnet_findcards): Set mtu.
14666 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
14668 (grub_net_recv_ethernet_packet): Handle IPv6.
14669 * grub-core/net/http.c: New file.
14670 * grub-core/net/icmp.c: Likewise.
14671 * grub-core/net/icmp6.c: Likewise.
14672 * grub-core/net/ip.c (ip6addr): New type.
14673 (ip6hdr): Likewise.
14674 (reassemble): Likewise.
14675 (cmp): New function.
14676 (reassembles): New variable.
14677 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
14678 (id): New variable.
14679 (send_fragmented): New function.
14680 (grub_net_send_ip_packet): Rename to ...
14681 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
14683 (grub_net_recv_ip_packets): Rename to ...
14684 (handle_dgram): ... this. Check checksum. Handle non-UDP.
14685 (free_rsm): New function.
14686 (free_old_fragments): Likewise.
14687 (grub_net_recv_ip4_packets): New function.
14688 (grub_net_send_ip6_packet): Likewise.
14689 (grub_net_send_ip_packet): Likewise.
14690 (grub_net_recv_ip6_packets): Likewise.
14691 (grub_net_recv_ip_packets): Likewise.
14692 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
14693 (LINK_LAYER_CACHE_SIZE): New const.
14694 (link_layer_find_entry): New function.
14695 (grub_net_link_layer_add_address): Likewise.
14696 (grub_net_link_layer_resolve_check): Likewise.
14697 (grub_net_link_layer_resolve): Likewise.
14698 (grub_net_ipv6_get_slaac): Likewise.
14699 (grub_net_ipv6_get_link_local): Likewise.
14700 (grub_cmd_ipv6_autoconf): Likewise.
14701 (parse_ip): Handle one number representation.
14702 (parse_ip6): New functoion.
14703 (match_net): Handle IPv6.
14704 (grub_net_resolve_address): Handle IPv6 and DNS.
14705 (grub_net_resolve_net_address): Handle IPv6.
14706 (route_cmp): New function.
14707 (grub_net_route_address): Find best route.
14708 (grub_net_addr_to_str): Handle IPv6.
14709 (grub_net_addr_cmp): New function.
14710 (grub_net_add_addr): Register local route.
14711 (print_net_address): Handle net address.
14712 (grub_net_poll_cards): Retransmit TCP.
14713 (grub_net_poll_cards_idle_real): Likewise.
14714 (have_ahead): New function.
14715 (grub_net_seek_real): Use underlying seek.
14716 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
14717 * grub-core/net/tcp.c: New file.
14718 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
14719 (cmp): New function.
14721 (tftp_receive): Handle unordered input.
14722 (destroy_pq): New function.
14723 (tftp_close): Close pq.
14724 * grub-core/net/udp.c: Put missing license header.
14725 (grub_net_udp_socket): New function.
14726 (udp_socket_register): Likewise.
14727 (grub_net_udp_close): Likewise.
14728 (grub_net_recv_udp_packet): Check checksum.
14729 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
14730 * include/grub/misc.h (grub_memchr): New function.
14731 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
14732 (grub_net_card_driver): Return buf in recv.
14733 (grub_net_slaac_mac_list): New struct.
14734 (grub_network_level_protocol_id): Add ipv6.
14735 (grub_net_network_level_addr): Likewise.
14736 (grub_net_network_level_net_addr): Likewise.
14737 (grub_net_app_protocol): Add seek.
14738 (grub_net_socket): Removed.
14739 (grub_net_sockets): Likewise.
14740 (grub_net_socket_register): Likewise.
14741 (grub_net_socket_unregister): Likewise.
14742 (FOR_NET_SOCKETS): Likewise.
14743 (grub_net_add_addr): Add const.
14744 (GRUB_NET_BOOTP_*): New enum.
14745 (grub_net_addr_cmp): New proto.
14746 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
14747 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
14748 (grub_net_hwaddr_to_str): NEw proto.
14749 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
14750 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
14751 (grub_dns_init): New proto.
14752 (grub_dns_fini): Likewise.
14753 (grub_net_tcp_retransmit): Likewise.
14754 (grub_net_link_layer_add_address): Likewise.
14755 (grub_net_link_layer_resolve_check): Likewise.
14756 (grub_net_link_layer_resolve): Likewise.
14757 (grub_net_dns_lookup): Likewise.
14758 (grub_net_add_dns_server): Likewise.
14759 (grub_net_remove_dns_server): Likewise.
14760 (GRUB_NET_TRIES): New const.
14761 (GRUB_NET_INTERVAL): Likewise.
14762 * include/grub/net/arp.h: Mostly rewritten.
14763 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
14764 * include/grub/net/ip.h: Mostly rewritten.
14765 * include/grub/net/netbuff.h: Indent.
14766 * include/grub/net/tcp.h: New file.
14767 * include/grub/net/udp.h: Mostly rewritten.
14768 * include/grub/priority_queue.h: New file.
14769 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
14770 (grub_swap_bytes64_compile_time): Likewise.
14771 (grub_cpu_to_be16_compile_time): Likewise.
14772 (grub_cpu_to_be32_compile_time): Likewise.
14773 (grub_cpu_to_be64_compile_time): Likewise.
14774 (grub_be_to_cpu64_compile_time): Likewise.
14776 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
14778 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
14779 UINT_TO_PTR with cast.
14781 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14783 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
14786 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14788 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
14791 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14793 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
14796 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14798 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
14799 Add missing const attribute.
14800 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
14802 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
14805 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14807 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
14809 (serpent_setkey): Likewise.
14810 (serpent_encrypt_internal): Likewise.
14811 (serpent_decrypt_internal): Likewise.
14812 (serpent_encrypt): Don't put an alignment-increasing cast.
14813 (serpent_decrypt): Likewise.
14814 (serpent_test): Likewise.
14816 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14818 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
14820 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14822 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
14824 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
14826 (PTR_TO_UINT64): Likewise.
14827 (PTR_TO_UINT32): Likewise.
14829 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14831 * util/grub-mkimage.c (generate_image): Decrease the higher limit
14833 * util/grub-setup.c (setup): Don't add redundancy past the higher load
14836 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14838 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
14839 text_width > available width a bit more gracefully.
14841 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14843 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
14844 current address calculation.
14846 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14848 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
14850 (encode_block): Likewise.
14852 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14854 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
14857 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14859 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
14860 non-RS part to avoid RS messing with GDT.
14861 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14862 Increase to suit in realmode routines.
14864 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14866 * grub-core/kern/i386/realmode.S: Increase alignment.
14867 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
14869 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14871 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
14873 (syndroms): Compute 0 syndrom.
14874 (rs_recover): Use 0 syndrom.
14876 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14878 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
14880 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14882 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
14885 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14887 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
14889 (get_top_pad): Likewise.
14890 (get_right_pad): Likewise.
14891 (get_bottom_pad): Likewise.
14893 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14895 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
14897 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14899 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
14900 attribute as the structure isn't guaranteed to be properly aligned.
14901 (grub_efi_pci_device_path): Likewise.
14902 (grub_efi_pccard_device_path): Likewise.
14903 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
14904 specify the size of `memory_type'.
14905 (grub_efi_vendor_device_path): Likewise.
14906 (grub_efi_controller_device_path): Likewise.
14907 (grub_efi_acpi_device_path): Likewise.
14908 (grub_efi_expanded_acpi_device_path): Likewise.
14909 (grub_efi_atapi_device_path): Likewise.
14910 (grub_efi_scsi_device_path): Likewise.
14911 (grub_efi_fibre_channel_device_path): Likewise.
14912 (grub_efi_1394_device_path): Likewise.
14913 (grub_efi_usb_device_path): Likewise.
14914 (grub_efi_usb_class_device_path): Likewise.
14915 (grub_efi_i2o_device_path): Likewise.
14916 (grub_efi_mac_address_device_path): Likewise.
14917 (grub_efi_ipv4_device_path): Likewise.
14918 (grub_efi_ipv6_device_path): Likewise.
14919 (grub_efi_infiniband_device_path): Likewise.
14920 (grub_efi_uart_device_path): Likewise.
14921 (grub_efi_vendor_messaging_device_path): Likewise.
14922 (grub_efi_hard_drive_device_path): Likewise.
14923 (grub_efi_cdrom_device_path): Likewise.
14924 (grub_efi_vendor_media_device_path): Likewise.
14925 (grub_efi_file_path_device_path): Likewise.
14926 (grub_efi_protocol_device_path): Likewise.
14927 (grub_efi_piwg_device_path): Likewise.
14928 (grub_efi_bios_device_path): Likewise.
14930 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14932 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
14933 (grub_ucs4_to_utf8_alloc): Likewise.
14934 (grub_ucs4_to_utf8): Likewise.
14935 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
14936 (grub_ucs4_to_utf8_alloc): Likewise.
14938 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14940 AFFS never uses unicode.
14942 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
14943 (grub_latin1_to_utf8): New inline function.
14944 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
14946 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14948 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
14951 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14953 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
14954 (grub_squash_dirent_header): Likewise.
14955 (read_chunk): Don't double swap.
14956 (grub_squash_iterate_dir): Fix swap sizes.
14958 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14960 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
14962 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14964 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
14965 (grub_hfs_iterate_dir): Likewise.
14967 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14969 Fix video on platforms where unaligned access is forbidden.
14970 Make several optimisations while on it.
14972 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
14973 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14974 (grub_video_fbblit_replace_32bit_1bit): Likewise.
14975 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
14977 (grub_video_fbblit_replace_16bit_1bit):
14978 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14979 (grub_video_fbblit_replace_8bit_1bit): Likewise.
14980 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
14981 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
14982 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
14983 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
14984 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
14985 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
14986 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
14987 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
14988 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
14989 (grub_video_fbblit_replace_index_RGB888): Likewise.
14990 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
14991 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
14992 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
14993 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
14994 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
14995 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
14996 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
14998 (grub_video_fbblit_blend_XXX565_1bit):
14999 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15000 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15001 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15003 * grub-core/video/fb/video_fb.c (common_blitter)
15004 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15005 (grub_video_fb_create_render_target_from_pointer)
15006 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15007 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15008 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15010 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15012 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15014 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15015 HH22 and HM10 relocations.
15017 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15019 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15021 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15023 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15024 allocation succeeded.
15026 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15028 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15029 argument a u8 pointer. All users updated.
15030 Handle unaligned buffers.
15032 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15034 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15035 add_part to workaround compiler bug.
15037 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15039 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15041 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15043 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15044 Reserve alignment invariants.
15045 (grub_multiboot_load): Likewise.
15046 (retrieve_video_parameters): Likewise.
15047 (grub_multiboot_make_mbi): Likewise.
15049 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15051 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15054 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15056 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15057 (grub_pata_pio_write): Likewise.
15059 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15061 Add noreturn attributes and remove unreachable code.
15063 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15065 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15066 code. Mark as noreturn.
15067 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15068 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15069 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15071 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15072 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15073 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15074 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15075 * include/grub/kernel.h (grub_main): Mark as noreturn.
15076 * include/grub/reader.h (grub_rescue_run): Likewise.
15078 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15080 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15081 redundant declaration.
15083 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15085 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15086 redundant declaration.
15087 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15089 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15091 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15092 to ensure alignment.
15093 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15094 alignment. Ensure tmp alignment.
15095 (grub_cmd_hdparm): Ensure buf alignment.
15096 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15097 to ensure alignment.
15098 (grub_ata_dumpinfo): Ensure text alignment.
15099 (grub_atapi_identify): Preserve alignment invariant.
15100 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15102 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15104 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15105 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15106 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15107 * include/grub/misc.h (grub_reboot)
15108 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15109 (grub_halt) [__mips__]: Likewise.
15111 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15113 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15114 Remove redundant declaration.
15115 (grub_mmap_get_post64): Likewise.
15116 (grub_mmap_get_upper): Likewise.
15117 (grub_mmap_get_lower): Likewise.
15119 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15121 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15122 uint32_t * to ensure alignment.
15123 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15125 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15127 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15128 uint16_t * to ensure alignment.
15129 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15132 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15134 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15135 to ensure alignment.
15136 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15138 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15140 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15141 Handle unaligned pointers.
15144 (fixup): Use byte access instead of v16at.
15145 (find_attr): Fix imporper usage of v32at.
15146 (read_data): Likewise.
15147 (list_file): Handle byte-swapping and unaligned strings.
15148 (grub_ntfs_label): Likewise.
15150 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15152 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15153 as it's not necessarily aligned.
15155 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15157 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15158 redundant declaration.
15159 (grub_serial_init): Likewise.
15160 (grub_terminfo_init): Likewise.
15162 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15164 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15166 (ZAP_HASH_IDX): Likewise.
15167 (ZAP_LEAF_HASH_SHIFT): Likewise.
15168 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15169 (LEAF_HASH): Likewise.
15170 (ZAP_LEAF_NUMCHUNKS): Likewise.
15171 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15172 alignment invariants. Return pointer. All users updated.
15173 (ZAP_LEAF_ENTRY): Make into inline function.
15176 (xor_out): Use grub_crypto_xor.
15177 (dnode_get_path): Use grub_get_unaligned.
15178 (nvlist_find_value): Likewise.
15179 (grub_zfs_nvlist_lookup_uint64): Likewise.
15180 (grub_zfs_nvlist_lookup_string): Likewise.
15181 (get_nvlist_size): Likewise.
15182 (grub_zfs_open): Likewise.
15183 (fill_fs_info): Likewise.
15184 (grub_zfs_dir): Likewise.
15185 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15186 alignment invariants.
15187 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15188 necessarily aligned.
15190 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15192 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15194 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15196 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15197 arithmetic to conserve alignment invariants.
15199 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15201 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15202 redundant declaration.
15203 (grub_efiemu_mm_obtain_request): Likewise.
15204 (grub_efiemu_prepare): Likewise.
15206 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15208 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15211 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15213 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15214 case of aunaligned recptr.
15215 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15217 (grub_hfsplus_btree_search): Handle unaligned index.
15219 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15221 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15222 to get freetag and skip.
15224 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15226 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15228 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15229 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15231 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15233 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15234 name for checksum and fix allocation algorithm.
15236 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15238 * include/grub/types.h (grub_properly_aligned_t): New type.
15239 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15240 (grub_get_unaligned16): Add explicit casts.
15241 (grub_get_unaligned32): Likewise.
15242 (grub_get_unaligned64): Likewise.
15243 (grub_set_unaligned16): New function.
15244 (grub_set_unaligned32): Likewise.
15246 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15248 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15250 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15252 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15253 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15254 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15256 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15258 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15261 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15263 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15264 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15266 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15268 Unify and improve RAID and crypto xor.
15270 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15271 changed to grub_crypto_xor
15272 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15273 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15274 Use bigger types when possible.
15276 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15278 * grub-core/disk/raid.c (scan_devices): Fix condition.
15280 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15282 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15283 Make name a const ptr.
15285 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15287 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15288 first argument a const pointer.
15289 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15290 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15292 (grub_children_iterate): Likewise.
15293 (grub_machine_mmap_iterate): Remove redundant declaration.
15295 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15297 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15298 (grub_cmd_acpi) [!x86]: Disable EBDA.
15300 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15302 Enable UTF8 in gnulib regexp.
15304 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15305 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15306 (isupper): Use grub_isupper.
15307 (isascii): New inline function.
15308 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15309 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15310 * grub-core/normal/charset.c (grub_utf8_process): New function.
15311 (grub_utf8_to_utf16): Use grub_utf8_process.
15312 (grub_encode_utf8_character): New function.
15313 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15314 * include/grub/charset.h (grub_utf8_process): New declaration.
15315 (grub_encode_utf8_character): Likewise.
15316 * include/grub/misc.h (grub_islower): New inline function.
15317 (grub_isupper): Likewise.
15318 (grub_strchrsub): Moved down to fix the definitions.
15320 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15322 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15325 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15327 * include/grub/loader.h (grub_loader_register_preboot_hook):
15328 Use struct preboot * and not void * for handle. All users updated.
15329 (grub_loader_unregister_preboot_hook): Likewise.
15331 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15333 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15334 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15335 UTF-16-BE. All users updated.
15336 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15337 (grub_hfsplus_iterate_dir): Likewise.
15338 (grub_hfsplus_label): Likewise.
15340 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15342 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15344 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15346 Add missing const qualifiers.
15348 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15349 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15350 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15351 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15352 (grub_lvm_check_flag): Likewise.
15353 * grub-core/efiemu/i386/coredetect.c
15354 (grub_efiemu_get_default_core_name): Likewise
15355 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15356 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15357 * grub-core/fs/ntfs.c (fixup): Likewise.
15358 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15359 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15360 (fzap_lookup): Likewise.
15361 (zap_lookup): Likewise.
15362 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15363 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15364 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15365 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15366 (grub_freebsd_add_meta_module): Likewise.
15367 (grub_cmd_freebsd_module): Likewise.
15368 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15369 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15370 (grub_xnu_writetree_get_size): Likewise.
15371 (grub_xnu_writetree_toheap_real): Likewise.
15372 (grub_xnu_find_key): Likewise.
15373 (grub_xnu_create_key): Likewise.
15374 (grub_xnu_create_value): Likewise.
15375 (grub_xnu_register_memory): Likewise.
15376 (grub_xnu_check_os_bundle_required): Likewise.
15377 (grub_xnu_scan_dir_for_kexts): Likewise.
15378 (grub_xnu_load_kext_from_dir): Likewise.
15379 * grub-core/normal/color.c (color_list): Likewise.
15380 * grub-core/normal/completion.c (current_word): Likewise.
15381 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15382 * grub-core/term/serial.c (grub_serial_find): Likewise.
15383 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15384 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15386 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15387 (grub_freebsd_add_meta_module): Likewise.
15388 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15389 * include/grub/net.h (grub_net_card_driver): Likewise.
15390 (grub_net_card): Likewise.
15391 (grub_net_app_protocol): Likewise.
15392 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15393 * include/grub/serial.h (grub_serial_find): Likewise.
15394 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15395 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15396 (grub_xnu_create_value): Likewise.
15397 (grub_xnu_find_key): Likewise.
15398 (grub_xnu_scan_dir_for_kexts): Likewise.
15399 (grub_xnu_load_kext_from_dir): Likewise.
15401 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15402 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15403 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15404 Moved from here ...
15405 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15407 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
15409 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15411 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15413 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15414 (read_device): Fix size calculation.
15416 2011-11-25 Robert Millan <rmh@gnu.org>
15418 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15419 (find_root_device_from_libzfs): Add zpool output parser to be used
15420 as fallback when libzfs isn't available.
15422 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15424 * po/Makefile.in.in: Add missing escape-continuation.
15426 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15428 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15430 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15432 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15434 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15436 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15438 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15440 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15442 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15444 * grub-core/lib/adler32.c: Add missing license specification.
15445 * grub-core/lib/crc64.c: Likewise.
15446 * grub-core/loader/i386/pc/plan9.c: Likewise.
15447 * grub-core/partmap/plan.c: Likewise.
15449 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
15451 Add facility to debug GRUB with gdb under qemu.
15453 * grub-core/gdb_grub.in: New file.
15454 * grub-core/gmodule.pl.in: Likewise.
15455 * grub-core/Makefile.core.def (gmodule.pl): New script.
15456 (gdb_grub): Likewise.
15458 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15460 * util/grub-mount.c (argp_parser): Accept relative pathes.
15461 * util/grub-fstest.c (argp_parser): Likewise.
15463 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15467 * Makefile.util.def (libgrubmods): Add
15468 grub-core/partmap/plan.c.
15469 * docs/grub.texi: Notice Plan9 support.
15470 * grub-core/Makefile.core.def (plan9): New module.
15471 (part_plan): Likewise.
15472 * grub-core/loader/i386/pc/plan9.c: New file.
15473 * grub-core/partmap/plan.c: Likewise.
15474 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
15476 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
15477 * include/grub/mm.h (grub_extend_alloc): New inline function.
15479 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15481 Make Reed-Solomon faster by using power of generator representation of
15484 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
15485 (gf_double_t): Likewise.
15486 (gf_invert): Removed.
15487 (gf_powx): New array.
15488 (gf_powx_inv): Likewise.
15489 (scratch): Move higher.
15490 (gf_reduce): Removed.
15491 (gf_mul): Use powx.
15492 (gf_invert): Likewise.
15493 (init_inverts): Replaced with ...
15494 (init_powx): ...this. All users updated.
15495 (pol_evaluate): Replace multiplications with additions.
15496 (rs_encode): Likewise.
15497 (gauss_eliminate): Call gf_invert.
15498 (grub_reed_solomon_add_redundancy): Call init_powx.
15499 (grub_reed_solomon_recover): Call init_powx unconditionally.
15501 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15503 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
15505 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15507 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
15508 disk->partiton for safety.
15510 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15512 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
15514 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
15516 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15518 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
15520 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15522 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
15524 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15526 Fix spaces handling in proc/self/mountinfo.
15528 * util/getroot.c (unescape): New function.
15529 (grub_find_root_device_from_mountinfo): Use unescape.
15531 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15533 Support ZFS embedding.
15535 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
15536 (grub_zfs_fs): Register grub_zfs_embed.
15538 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15540 Fix MIPS compilation.
15542 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
15543 * include/grub/offsets.h: Rename decompressor fields from
15544 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
15545 * util/grub-mkimage.c (image_targets): Use new names.
15547 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15549 Defer multiboot device parsing until we're in compressed part.
15551 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
15552 bsd_part. setdevice has fallen into disuse.
15553 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
15554 (bsd_part): Likewise.
15555 (boot_dev): New variable.
15556 (multiboot_trampoline): Don't parse multiboot device.
15557 Pass multiboot device in %edx.
15558 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
15560 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
15562 * grub-core/kern/i386/pc/startup.S: Save edx.
15563 (grub_boot_drive): Removed.
15564 (grub_install_dos_part): Likewise.
15565 (grub_install_bsd_part): Likewise.
15566 (grub_boot_device): New variable.
15567 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
15568 (grub_install_bsd_part): Likewise.
15569 (grub_boot_drive): Likewise.
15570 (grub_boot_device): New variable.
15571 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
15573 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
15574 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
15575 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
15576 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
15577 * util/grub-install.in: Remove redundant condition.
15579 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15581 Fix bug introduced by previous commit.
15583 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
15585 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15587 Use decompressors framework on i386-pc. It increases core size
15588 by 46 bytes but improves compatibility and maintainability.
15590 * grub-core/Makefile.core.def (lzma_decompress): New image.
15591 (kernel): Add i386_pc_ldflags.
15592 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
15593 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
15594 to real_to_prot, prot_to_real and device info.
15595 * include/grub/offsets.h: Renamed decompressor offsets.
15596 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
15597 (image_target_desc): Remove raw_size and rename decompressor fields.
15598 (compress_kernel): Handle lzma.
15599 (generate_image): Handle decompressors on i386-pc.
15601 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15603 * configure.ac: Add -fno-asynchronous-unwind-tables.
15605 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15607 Move assembly code to C by using intwrap. It increases core size
15608 by 88 bytes but improves compatibility and maintainability.
15610 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
15611 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
15612 ... here. Translated to C.
15613 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
15614 * grub-core/term/i386/pc/console.c (grub_console_getkey):
15615 ... here. Translated to C.
15616 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
15617 * grub-core/term/i386/pc/console.c (grub_console_getxy):
15618 ... here. Translated to C.
15619 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
15620 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
15621 ... here. Translated to C.
15622 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
15623 * grub-core/term/i386/pc/console.c (grub_console_cls):
15624 ... here. Translated to C.
15625 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
15626 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
15627 ... here. Translated to C.
15628 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
15629 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
15631 * grub-core/term/i386/pc/console.c (int10_9): New function.
15632 (grub_console_putchar): Likewise.
15633 * include/grub/i386/pc/console.h: Removed the not anymore shared
15636 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15638 Move grub_chainloader_real_boot out of the kernel.
15640 * grub-core/Makefile.am: Remove machine/loader.h.
15641 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
15643 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
15645 (grub_relocator16_keep_a20_enabled): Likewise.
15646 (grub_relocator16_boot): Fill new variables.
15647 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
15648 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
15650 (grub_chainloader_unload): Likewise.
15651 (grub_chainloader_cmd): Likewise.
15652 * include/grub/i386/pc/loader.h: Removed.
15653 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
15654 and esi. All initialisers updated.
15656 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15657 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
15659 * Makefile.util.def (grub-mount): New util.
15660 * .bzrignore: Add grub-mount.
15661 * configure.ac: Check for fuse and enable grub-mount if available.
15662 * docs/man/grub-mount.h2m: New file.
15663 * util/grub-mount.c: Likewise.
15665 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15667 * grub-core/commands/efi/fixvideo.c: Gettextize.
15668 * grub-core/commands/hashsum.c: Likewise.
15669 * grub-core/commands/i386/cmostest.c: Likewise.
15670 * grub-core/commands/i386/pc/drivemap.c: Likewise.
15671 * grub-core/commands/i386/pc/lsapm.c: Likewise.
15672 * grub-core/commands/i386/pc/sendkey.c: Likewise.
15673 * grub-core/commands/lsmmap.c: Likewise.
15674 * grub-core/commands/menuentry.c: Likewise.
15675 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
15676 * grub-core/commands/setpci.c: Likewise.
15677 * grub-core/loader/i386/bsd.c: Likewise.
15678 * grub-core/loader/i386/linux.c: Likewise.
15679 * util/getroot.c: Likewise.
15680 * util/grub-editenv.c: Likewise.
15681 * util/grub-fstest.c: Likewise.
15682 * util/grub-mkfont.c: Likewise.
15683 * util/grub-mkimage.c: Likewise.
15684 * util/grub-mkpasswd-pbkdf2.c: Likewise.
15685 * util/grub-pe2elf.c: Likewise.
15686 * util/grub-probe.c: Likewise.
15687 * util/grub-setup.c: Likewise.
15688 * util/ieee1275/ofpath.c: Likewise.
15689 * util/misc.c: Likewise.
15690 * util/raid.c: Likewise.
15692 2011-11-11 Robert Millan <rmh@gnu.org>
15694 * util/getroot.c (grub_util_get_geom_abstraction): Remove
15695 __attribute__((unused)) from `os_dev', which *is* being used.
15697 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15699 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
15701 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
15702 GRUB_IA64_DL_GOT_ALIGN.
15703 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
15704 GRUB_IA64_DL_TRAMP_ALIGN.
15706 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15708 Replace grub_fatal with normal errors in i386 linux loader.
15710 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
15711 (allocate_pages): Check find_efi_mmap_size return value.
15712 (grub_e820_add_region): Return error.
15713 (grub_linux_boot): Check mmap return value.
15715 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15717 * grub-core/commands/acpihalt.c: Gettextized.
15718 * grub-core/commands/cacheinfo.c: Likewise.
15719 * grub-core/commands/cmp.c: Likewise.
15720 * grub-core/commands/efi/loadbios.c: Likewise.
15721 * grub-core/commands/gptsync.c: Likewise.
15722 * grub-core/commands/ieee1275/suspend.c: Likewise.
15723 * grub-core/commands/legacycfg.c: Likewise.
15724 * grub-core/commands/memrw.c: Likewise.
15725 * grub-core/commands/minicmd.c: Likewise.
15726 * grub-core/commands/parttool.c: Likewise.
15727 * grub-core/commands/time.c: Likewise.
15728 * grub-core/commands/videoinfo.c: Likewise.
15729 * grub-core/disk/geli.c: Likewise.
15730 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
15731 * grub-core/disk/luks.c: Likewise.
15732 * grub-core/disk/lvm.c: Likewise.
15733 * grub-core/font/font_cmd.c: Likewise.
15734 * grub-core/fs/zfs/zfscrypt.c: Likewise.
15735 * grub-core/fs/zfs/zfsinfo.c: Likewise.
15736 * grub-core/gfxmenu/view.c: Likewise.
15737 * grub-core/kern/emu/hostdisk.c: Likewise.
15738 * grub-core/kern/emu/main.c: Likewise.
15739 * grub-core/kern/emu/misc.c: Likewise.
15740 * grub-core/kern/emu/mm.c: Likewise.
15741 * grub-core/kern/mips/arc/init.c: Likewise.
15742 * grub-core/kern/mips/loongson/init.c: Likewise.
15743 * grub-core/kern/partition.c: Likewise.
15744 * grub-core/lib/i386/halt.c: Likewise.
15745 * grub-core/lib/mips/arc/reboot.c: Likewise.
15746 * grub-core/lib/mips/loongson/reboot.c: Likewise.
15747 * grub-core/loader/i386/pc/chainloader.c: Likewise.
15748 * grub-core/loader/i386/xnu.c: Likewise.
15749 * grub-core/loader/multiboot.c: Likewise.
15750 * grub-core/net/bootp.c: Likewise.
15751 * grub-core/net/net.c: Likewise.
15752 * grub-core/normal/term.c: Likewise.
15753 * grub-core/partmap/bsdlabel.c: Likewise.
15754 * grub-core/parttool/msdospart.c: Likewise.
15755 * grub-core/term/gfxterm.c: Likewise.
15756 * grub-core/term/terminfo.c: Likewise.
15757 * grub-core/video/i386/pc/vbe.c: Likewise.
15758 * util/grub-menulst2cfg.c: Likewise.
15759 * util/grub-mkdevicemap.c: Likewise.
15760 * util/grub-mklayout.c: Likewise.
15761 * util/grub-mkrelpath.c: Likewise.
15762 * util/grub-script-check.c: Likewise.
15763 * util/ieee1275/grub-ofpathname.c: Likewise.
15764 * util/resolve.c: Likewise.
15766 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15768 Support %1$d syntax.
15770 * tests/printf_unit_test.c: New file.
15771 * Makefile.util.def (printf_test): New test.
15772 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
15774 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15776 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
15779 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15781 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
15783 * grub-core/font/font.c (grub_font_load): Likewise.
15785 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15787 * util/grub-macho2img.c: Add comment concerning gettext.
15788 * grub-core/lib/legacy_parse.c: Likewise.
15790 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15792 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
15793 (grub_xvasprintf): Likewise.
15795 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15797 Add const keyword to grub_env_get and gettextize week days.
15799 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
15800 (grub_read_hook_datetime): Return const char *.
15801 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
15803 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15805 (grub_get_weekday_name): Return const char *. Call gettext.
15806 * grub-core/script/argv.c (grub_script_argv_append): Receive const
15807 char * and len as the argument. All users updated.
15808 (grub_script_argv_split_append): Receive const char *.
15809 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
15810 * include/grub/env.h (grub_env_get): Likewise.
15811 (grub_env_read_hook_t): Return const char *.
15812 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
15813 (grub_script_argv_split_append): Likewise.
15815 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15817 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
15819 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15821 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
15822 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
15824 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15826 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
15829 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15831 Fix mips compilation.
15833 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
15835 (hashes): Use in embed decoder as well (for sizes).
15836 (dec_stream_header): Fix embed decompressor logic.
15837 (dec_stream_footer): Likewise.
15839 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15841 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
15842 an error and not a fatal on unrecognised relocation types.
15844 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15846 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
15847 Issue error rather than printf on unknown arguments.
15849 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15851 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
15854 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15856 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
15859 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15861 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
15862 leftover debug printf.
15864 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15866 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
15868 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15870 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
15873 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15875 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
15877 2011-11-10 Shea Levy <slevy@tieronedesign.com>
15879 Allow all modules to perform serial IO
15881 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
15882 * include/grub/serial.h (grub_serial_port_configure): New inline
15884 (grub_serial_port_fetch): Likewise.
15885 (grub_serial_port_put): Likewise.
15886 (grub_serial_port_fini): Likewise.
15887 (grub_serial_find): New proto.
15889 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15891 Put symlink at the end of the node and fix a potential
15894 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
15895 Make symlink into an array.
15896 (set_rockridge): Set have_symlink and alloc_dirents.
15897 (grub_iso9660_read_symlink): Use new layout.
15898 (grub_iso9660_iterate_dir): Fix memory corruption.
15900 (grub_iso9660_dir): Set have_symlink.
15901 (grub_iso9660_open): Likewise.
15903 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15905 Remove local keyword.
15907 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
15908 (version_test_gt): Likewise.
15909 (version_find_latest): Likewise.
15910 (gettext_printf): Likewise.
15911 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
15913 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15915 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
15917 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15919 Fix ZFS memory and resource leaks.
15921 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
15924 (fill_vdev_info): New parameter inserted. All users updated.
15925 (check_pool_label): Likewise.
15926 (scan_disk): Likewise.
15927 (scan_devices): Close non-inserted disks.
15928 (fzap_iterate): Free l.
15929 (unmount_device): Free children descripto memory.
15931 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15933 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
15934 argument (access out of bounds).
15936 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15938 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
15941 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15943 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
15946 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15948 Fix several memory leaks.
15950 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
15951 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
15952 (grub_cpio_dir): Likewise.
15953 * grub-core/fs/fat.c (grub_fat_label): Likewise.
15954 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
15955 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
15956 (grub_romfs_label): Likewise.
15957 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
15958 (squash_unmount): New function.
15959 (grub_squash_dir): Fix memory leak.
15960 (grub_squash_open): Likewise.
15961 (grub_squash_read): Likewise.
15962 (grub_squash_mtime): Likewise.
15963 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
15964 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
15965 * util/grub-fstest.c (fstest): Likewise.
15967 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15969 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
15970 avoid accessing beyond the array.
15972 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15974 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
15976 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15978 Several AFFS fixes.
15980 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
15981 (GRUB_AFFS_FLAG_FFS): Removed.
15982 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
15983 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
15984 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
15985 (grub_fshelp_node): Make block 32-bit.
15986 Add block_cache and last_block_cache.
15987 (grub_affs_read_block): Fill and use block cache.
15988 (grub_affs_read_file): Removed.
15989 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
15991 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
15993 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
15995 (grub_affs_close): Free block cache.
15996 (grub_affs_read): Use grub_fshelp_read_file directly.
15998 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16000 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16003 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16005 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16007 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16010 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16012 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16014 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16015 byteswap when needed.
16017 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16019 Fix FreeBSD compilation.
16021 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16022 to avoid circular dependency.
16023 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16024 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16025 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16027 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16029 Fix ZFS crypto error types.
16031 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16032 (grub_gcm_decrypt): Likewise.
16033 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16036 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16040 * Makefile.util.def (10_illumos): New script.
16041 * configure.ac: Set COND_HOST_ILLUMOS.
16042 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16043 Support Illumos calls.
16044 (find_partition_start) [__sun__]: Likewise.
16045 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16046 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16047 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16048 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16050 * util/grub-probe.c (probe) [__sun__]: Do character check.
16051 * util/grub.d/10_illumos.in: New file.
16053 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16055 Support escaped commas in hostdisk.
16057 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16058 (find_grub_drive): Use unescape_cmp.
16059 (make_device_name): Escape commas.
16061 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16063 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16065 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16067 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16070 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16072 Support trampoline jumps on powerpc.
16074 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16076 (grub_dl_load_segments): Set mod->sz.
16077 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16079 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16081 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16083 (trampoline): New struct.
16084 (trampoline_template): New const.
16085 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16086 * include/grub/dl.h (grub_dl): Add sz element.
16087 [__powerpc__]: Follow __ia64__.
16088 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16089 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16090 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16091 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16093 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16095 ZFS crypto support.
16097 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16098 * grub-core/Makefile.core.def (zfscrypt): New module.
16099 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16100 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16101 it. All users updated.
16102 (grub_zfs_decrypt): New var.
16103 (grub_zfs_load_key): Likewise.
16104 (zio_checksum_functions): Add SHA256+MAC.
16105 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16106 (zio_read): Handle encrypted blocks.
16107 (zap_verify): Remove incorrect check.
16108 (fzap_iterate): Handle non-standard fzap.
16109 (zap_iterate): Likewise.
16110 (zap_iterate_u64): New function.
16111 (dnode_get_fullpath): Load keys.
16112 * grub-core/fs/zfs/zfscrypt.c: New file.
16113 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16114 (grub_crypto_ecb_encrypt): Make input const.
16115 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16116 (grub_crypto_ecb_encrypt): Make input const.
16117 (GRUB_CIPHER_AES): New macro.
16118 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16119 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16120 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16121 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16122 prefix. All users updated.
16123 (grub_zfs_add_key): New proto.
16124 (grub_zfs_decrypt): Likewise.
16125 (grub_zfs_load_key): Likewise.
16126 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16127 * util/grub-fstest.c (options): Add -K option.
16128 (argp_parser): Likewise.
16130 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16132 Support zle compression on ZFS.
16134 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16135 (decomp_table): Add zle.
16136 * include/grub/zfs/zio.h (zio_compress): Add zle.
16138 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16140 Support BtrFS embedding.
16142 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16143 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16144 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16145 * util/grub-setup.c (setup): Use fs embedding if available.
16146 Add additional sanity check.
16148 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16150 * util/grub-install.in: Fix condition for config_opt.
16152 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16154 Support third redundancy strip on raidz3.
16156 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16157 Return error on singularity. All users updated.
16158 (read_device): Don't stop on 3rd failure on raidz3.
16160 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16162 Support case-insensitive ZFS subvolumes.
16164 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16166 (zap_hash): Likewise.
16167 (name_cmp): New function.
16168 (zap_leaf_array_equal): New parameter case_insensitive.
16170 (zap_leaf_lookup): Likewise.
16171 (fzap_lookup): Likewise.
16172 (zap_lookup): Likewise.
16173 (dnode_get_path): New parameter case_insensitive. Retrieve case
16174 sensitiviness of a volume. All users updated.
16175 (dnode_get_fullpath): New parameter case_insensitive.
16177 (grub_zfs_dir): Set info.case_insensitiveness.
16179 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16181 Support second redundancy strip on raidz(2,3).
16183 * grub-core/fs/zfs/zfs.c (powx): New array.
16184 (powx_inv): Likewise.
16186 (xor_out): New function.
16187 (gf_mul): Likewise.
16188 (recovery): Likewise.
16189 (read_device): Use second redundancy strip.
16191 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16193 Use a power of generator representation of GF(256) multiplication group
16194 to save space time and complexity.
16196 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16197 (raid6_table2): Likewise.
16199 (powx_inv): Likewise.
16201 (grub_raid_block_mul): Replace with ...
16202 (grub_raid_block_mulx): ...this.
16203 (grub_raid6_init_table): Rewritten.
16204 (grub_raid6_recover): Use power of generator representation.
16206 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16208 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16209 for the right device.
16211 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16213 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16214 expected by grub-mkimage and it's more clear since there is no implicit
16217 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16219 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16221 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16223 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16225 * util/grub-mkrescue.in: Fix handling xorriso option.
16227 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16229 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16232 2011-11-03 crocket <crockabiscuit@gmail.com>
16234 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16236 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16238 XZ CRC64 and SHA256 support.
16240 * Makefile.util.def (libgrubmods): Add crc64.c.
16241 * grub-core/Makefile.core.def (crc64): New module.
16242 * grub-core/lib/crc64.c: New file.
16243 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16244 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16246 (MAX_HASH_SIZE): New define.
16247 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16248 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16249 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16250 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16251 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16252 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16253 Handle non-crc32 hashes.
16254 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16255 (dec_stream_header): Handle non-crc32 hashes.
16256 (dec_stream_footer): Likewise.
16257 (dec_block_header): Likewise.
16258 (dec_main): Likewise.
16259 (xz_dec_init): Likewise.
16260 (xz_dec_reset): Likewise.
16261 (xz_dec_end): Likewise.
16262 * util/import_gcry.py: Add CRC64 line.
16264 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16266 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16269 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16271 Make reiserfs label retrieval similar to other *_label functions.
16273 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16274 (REISERFS_MAX_LABEL_LENGTH): Removed.
16275 (REISERFS_LABEL_OFFSET): Likewise.
16276 (grub_reiserfs_label): Rewritten.
16278 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16280 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16283 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16285 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16287 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16289 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16290 drive failure on both raidz and raidz2.
16292 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16294 Fix RAIDZ(2) for >= 5 devices.
16296 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16297 asize argument. All users updated.
16299 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16303 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16304 (fill_vdev_info_real): Set ashift.
16305 (read_device): Rewrite RAIDZ part based on reverse engineering.
16307 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16309 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16310 don't report potentially unavialiable fields in debug output.
16311 (find_path): Fix double-free and memory leak.
16313 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16315 Read label on UFS1.
16317 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16318 (grub_ufs_fs): Always set .label.
16320 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16324 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16325 (grub_ufs_data): New field log2_blksz.
16326 (grub_ufs_read_file): Use shifts.
16327 (grub_ufs_mount): Check block size and logarithm it.
16329 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16331 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16334 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16336 Handle symlinks and long names on tar and cpio.
16338 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16339 (ATTR_FILE): Likewise.
16340 (ATTR_DIR): Likewise.
16341 (ATTR_LNK): Likewise.
16342 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16343 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16345 (grub_cpio_mount): Zero-fill data.
16346 (handle_symlink): New function.
16347 (grub_cpio_dir): Handle symlinks.
16348 (grub_cpio_open): Likewise.
16349 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16351 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16353 Fix iso9660 filename limitations and fix memory leaks.
16355 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16356 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16358 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16360 Fix JFS file name length limitations.
16362 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16363 (grub_jfs_diropen): Fix maximum filename length.
16364 (grub_jfs_getent): Fix filename length.
16365 (grub_jfs_lookup_symlink): Fix size checks.
16367 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16369 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16372 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16374 Leverage BFS implementation to read AFS.
16376 * Makefile.util.def (libgrubmods): Add afs.c.
16377 * grub-core/Makefile.core.def (afs): New module
16378 * grub-core/fs/afs.c: New file.
16379 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16381 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16383 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16385 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16387 * grub-core/fs/bfs.c: Run indent.
16389 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16391 BFS implementation based on the specification.
16393 * grub-core/fs/bfs.c: New file.
16394 * Makefile.util.def (libgrubmods): Add bfs.c.
16395 * grub-core/Makefile.core.def (bfs): New module.
16397 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16399 * util/grub-fstest.c (cmd_cp): Clarify error message.
16400 (cmd_cmp): Likewise.
16402 2011-10-30 Yves Blusseau <blusseau@zetam.org>
16404 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16407 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16409 Remove afs and befs because of copyright problem.
16411 * grub-core/fs/afs.c: Removed.
16412 * grub-core/fs/afs_be.c: Removed.
16413 * grub-core/fs/befs.c: Removed.
16414 * grub-core/fs/befs_be.c: Removed.
16415 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16416 * grub-core/Makefile.core.def (afs): Removed.
16417 (afs_be): Likewise.
16419 (befs_be): Likewise.
16421 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16423 Prefer rockridge over Joliet.
16425 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16427 (set_rockridge): ... here.
16428 (grub_iso9660_mount): Check rockridge on the primary label when
16429 discovering. Ignore Joliet if Rockridge is present.
16431 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16433 Use shifts in nilfs2.
16435 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16436 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16437 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16438 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16439 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16440 (grub_nilfs2_entries_per_block): Replaced with ...
16441 (grub_nilfs2_log_entries_per_block_log): ... this.
16442 (grub_nilfs2_blocks_per_group): Replaced with ...
16443 (grub_nilfs2_blocks_per_group_log): ... this.
16444 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
16445 (grub_nilfs2_blocks_per_desc_block_log): ... this.
16446 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
16447 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
16448 (grub_nilfs2_palloc_entry_offset): Replaced ...
16449 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
16450 (grub_nilfs2_dat_translate): Use shifts.
16451 (grub_nilfs2_read_inode): Likewise.
16452 (GRUB_MOD_INIT): Ensure that logs are correct.
16454 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16456 Use shifts in minix filesystem.
16458 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
16459 (GRUB_MINIX_ZONE2SECT): Likewise.
16460 (grub_minix_data): Replace block_size with log_block_size.
16461 (grub_minix_read_file): Use shifts.
16462 (grub_minix_mount): Check block size and take a logarithm.
16464 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16466 Use shifts in squash4.
16468 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
16469 (squash_mount): Check block size and take logarithm.
16470 (direct_read): Use shifts.
16472 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16474 Correct befs block counting logic.
16476 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
16477 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
16478 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
16479 (grub_afs_read_inode): Use block_shift.
16480 (RANGE_SHIFT): New definition.
16481 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
16482 unexpected conditions, use shifts and appropriate types.
16483 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
16485 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16487 * grub-core/disk/raid.c (scan_devices): Check partition.
16488 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16490 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16492 Support BFS (befs) UUID.
16494 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
16495 (grub_afs_small_data_element_header): New struct.
16496 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
16497 (grub_afs_read_attribute) [MODE_BFS]: New function.
16498 (grub_afs_iterate_dir): Allocate for complete inode.
16499 (grub_afs_mount): Likewise.
16500 (grub_afs_uuid) [MODE_BFS]: New function.
16501 (grub_afs_fs) [MODE_BFS]: Add .uuid.
16503 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16505 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
16506 (zfs_unmount): Fix memory leak.
16508 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16510 Support NTFS reparse points.
16512 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
16513 (symlink_descriptor): New struct.
16514 (grub_ntfs_read_symlink): New function.
16515 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
16516 (grub_ntfs_open): Likewise.
16518 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16520 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
16522 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16524 fstest xnu_uuid subcommand.
16526 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
16527 grub-core/commands/xnu_uuid.c.
16528 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
16529 (fstest): Handle xnu_uuid.
16530 (options): Document xnu_uuid.
16531 (argp_parser): Parse xnu_uuid.
16533 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16535 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
16536 -l argument. Add newline at the end if printing.
16537 (GRUB_MOD_INIT): Document -l.
16539 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16541 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
16543 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16545 ZFS multi-device and version 33 support.
16547 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
16548 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
16549 (grub_zfs_data): Add multidev-ice-related fields.
16550 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
16551 (dva_get_offset): Make dva const.
16552 (zfs_fetch_nvlist): New function.
16553 (fill_vdev_info_real): Likewise.
16554 (fill_vdev_info): Likewise.
16555 (check_pool_label): Likewise.
16556 (scan_disk): Likewise.
16557 (scan_devices): Likewise.
16558 (read_device): Likewise.
16559 (read_dva): Likewise.
16560 (zio_read_gang): Use read_dva.
16561 (zio_read_data): Likewise.
16562 (zap_leaf_lookup): Add missing endian conversion.
16563 (zap_verify): Add missing endian conversion. All users updated.
16564 (fzap_lookup): Likewise.
16565 (fzap_iterate): Likewise.
16566 (dnode_get_path): Handle SA bonus.
16567 (nvlist_find_value): Make input const. All users updated.
16568 (unmount_device): New function.
16569 (zfs_unmount): Use unmount_device.
16570 (zfs_mount): Use scan_disk.
16571 (zfs_mtime): New function.
16572 (grub_zfs_open): Handle system attributes.
16573 (fill_fs_info): Likewise.
16574 (grub_zfs_dir): Likewise.
16575 (grub_zfs_fs): Add mtime.
16576 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
16577 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
16578 (SA_MTIME_OFFSET): Likewise.
16579 (SA_SYMLINK_OFFSET): Likewise.
16580 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
16581 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
16582 (fstest): Support zfsinfo.
16583 (argp_parser): Likewise.
16585 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16587 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
16590 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16594 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
16595 sharing the same block. Iterate over correct number of indices.
16596 (dnode_get_path): Handle symlinks correctly.
16598 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16600 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
16602 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16604 Read label on HFS+.
16606 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
16607 (grub_hfsplus_btree_search): Fix types.
16608 (grub_hfsplus_label): Implement.
16610 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16612 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
16614 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16616 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
16618 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16620 Fix symlink handling on iso9660.
16622 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
16624 (grub_iso9660_susp_iterate): Accept zero-size iterate.
16625 (grub_iso9660_read_symlink): Moved most of code ...
16626 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
16628 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16630 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
16631 Use union to avoid breaking strict-aliasing rules.
16633 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16635 Support multi-extent iso files.
16637 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
16639 (grub_fshelp_node): Revamp. All users updated.
16640 (FLAG_*): New enum.
16641 (read_node): New function.
16642 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
16644 (grub_iso9660_mount): Don't attempt to read sua when there is none.
16645 (get_node_size): New function.
16646 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
16648 Fix memory leak on . and ..
16649 (grub_iso9660_read): Use read_node.
16650 (grub_iso9660_close): Free node.
16652 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16654 Fix tar 4G limit and handle paths containing dot.
16656 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
16657 (canonicalize): New function.
16658 (grub_cpio_find_file): Use canonicalize. Store offs in
16660 (grub_cpio_dir): Use grub_disk_addr_t.
16661 (grub_cpio_open): Likewise.
16663 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16665 Fix handling of uncompressed blocks on squashfs and break 4G limit.
16667 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
16669 (grub_squash_inode): Add long_file and block_size.
16670 (grub_squash_cache_inode): New struct.
16671 (grub_squash_dirent): Make types into enum.
16672 (SQUASH_TYPE_LONG_REGULAR): New type.
16673 (grub_squash_frag_desc): Add field size.
16674 (SQUASH_BLOCK_FLAGS): New enum.
16675 (grub_squash_data): Use grub_squash_cache_inode.
16676 (grub_fshelp_node): Make ino_chunk 64-bit.
16677 (read_chunk): Minor argument change. All users updated.
16678 (squash_mount): Use correct le_to_cpu.
16679 (grub_squash_open): Handle LONG_REGULAR.
16680 (direct_read): New function.
16681 (grub_squash_read_data): Handle blocks correctly.
16683 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16685 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
16687 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16689 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
16691 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16693 Fix 2G limit on ZFS.
16695 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
16697 (uberblock_verify): Likewise.
16698 (dmu_read): Likewise.
16699 (grub_zfs_read): Likewise. Remove invalid cast.
16701 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16703 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
16704 (grub_jfs_blkno): Fix incorrect shift.
16705 (grub_jfs_read_file): Use more appropriate types.
16707 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16709 Support triple indirect on minix2 and minix3.
16711 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
16712 Declare triple_indir_zone.
16713 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
16716 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16720 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
16721 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
16722 Rename ctime to mtime. All users updated.
16723 (grub_minix_get_file_block): Fix types and double indirect computations.
16725 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16727 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
16728 if no label is found.
16729 (grub_fat_iterate_dir): Fix file size type.
16730 (grub_fat_iterate_dir): Likewise.
16732 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16734 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
16736 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
16737 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
16739 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16741 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
16743 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16745 * util/import_gcry.py: Accept space between # and include.
16747 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16749 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
16751 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16753 Fine grainely disable warnings on lexer. Remove Wno-error on it.
16755 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
16756 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
16758 * grub-core/script/yylex.l: Add fine-grained #pragma.
16760 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16762 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
16763 New inline function.
16764 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
16766 (memset) [GRUB_UTIL]: Likewise.
16767 (memcmp) [GRUB_UTIL]: Likewise.
16769 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16771 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
16772 inline function rather than a define.
16774 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16776 * util/grub-setup.c: Add missing include.
16778 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16780 * util/ieee1275/grub-ofpathname.c: Add missing include.
16782 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16784 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
16785 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
16788 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16790 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
16793 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16795 * util/grub-install.in: Add datarootdir as per automake manual
16797 * util/grub-mknetdir.in: Likewise.
16799 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16801 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
16803 * util/grub.d/10_kfreebsd.in: Likewise.
16804 * util/grub.d/10_linux.in: Likewise.
16805 * util/grub.d/10_netbsd.in: Likewise.
16806 * util/grub.d/10_windows.in: Likewise.
16807 * util/grub.d/20_linux_xen.in: Likewise.
16809 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
16811 Remove redundant grub_kernel_image_size.
16813 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
16815 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
16816 the small code. It moves it only by few bytes but simplifies the code.
16817 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
16819 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
16820 (grub_kernel_image_size): Removed.
16821 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
16822 (grub_kernel_image_size): Removed.
16823 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
16824 compiled with Apple toolchain.
16825 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
16826 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
16827 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
16828 (grub_total_module_size): Likewise.
16829 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
16831 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
16832 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
16833 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16834 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
16835 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
16836 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
16837 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
16838 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
16840 (grub_total_module_size): Removed.
16841 * util/grub-mkimage.c (image_target_desc): Remove image_size.
16842 (image_targets): Likewise.
16843 Set .compressed_size to no field on sparc.
16844 (generate_image): Remove kernel_image_size handling.
16846 2011-10-19 Szymon Janc <szymon@janc.net.pl>
16848 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
16849 NULL pointer dereference.
16851 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16853 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
16854 done with a dedicated section.
16856 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
16857 Ensure the correct position of boot_path.
16858 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
16859 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
16861 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
16862 * include/grub/boot.h: Removed. All references removed.
16863 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
16865 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
16867 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16869 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
16872 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16874 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
16876 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16878 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
16879 Don't add the bogus brackets.
16881 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16885 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
16886 * grub-core/Makefile.core.def (exfat): New module.
16887 * grub-core/fs/exfat.c: New file.
16888 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
16889 (GRUB_FAT_ATTR_*): Make into an enum.
16890 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
16891 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
16892 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
16893 (GRUB_FAT_MAXFILE): Removed.
16894 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
16895 (grub_current_fat_bpb_t): New type.
16896 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
16897 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
16898 (grub_fat_dir_node_t): New type.
16899 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
16900 (fat_log2) [MODE_EXFAT]: Removed.
16901 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
16902 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
16903 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
16904 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
16905 (grub_fat_label) [MODE_EXFAT]: New function.
16906 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
16907 reserved_first_sector to 0.
16909 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16911 Move grub_reboot out of the kernel.
16913 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
16914 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
16915 * grub-core/lib/efi/reboot.c: ... here.
16916 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
16917 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
16918 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
16919 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
16920 * grub-core/lib/i386/reboot_trampoline.S: ... here.
16921 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
16922 * grub-core/lib/ieee1275/reboot.c: ... here.
16923 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
16924 * grub-core/lib/mips/arc/reboot.c: ... here.
16925 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
16926 * grub-core/lib/mips/loongson/reboot.c: ...here.
16927 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
16928 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
16929 * include/grub/emu/misc.h (grub_reboot): New function declaration.
16930 * include/grub/i386/reboot.h: New file.
16931 * include/grub/mips/loongson/ec.h: Fix includes.
16932 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
16933 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
16934 * grub-core/lib/i386/reboot.c: New file.
16936 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
16938 Make grub_prefix into module to fix the arbitrary limit and save
16941 * grub-core/kern/emu/main.c (grub_prefix): Removed.
16942 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
16943 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
16944 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
16945 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
16946 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
16947 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
16948 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
16949 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
16950 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
16951 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
16952 * include/grub/ia64/efi/kernel.h: Removed.
16953 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
16954 (grub_prefix): Removed.
16955 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
16956 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
16957 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
16958 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
16959 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
16960 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
16961 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
16962 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
16963 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
16964 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
16965 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
16966 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
16967 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
16968 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
16969 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
16970 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
16971 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
16972 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16973 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
16974 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
16975 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
16976 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
16977 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
16978 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
16979 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
16980 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
16981 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
16982 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
16983 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
16985 * util/grub-mkimage.c (image_target_desc): Removed prefix and
16987 (image_targets): Likewise.
16988 (generate_image): Put prefix as a module.
16990 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16992 Replace grub_module_iterate with FOR_MODULES.
16994 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
16995 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
16996 (grub_efi_modules_addr): ...this.
16997 * grub-core/kern/efi/init.c (grub_modbase): New variable.
16998 (grub_efi_init): Set grub_modbase.
16999 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17000 (grub_modbase): New variable.
17001 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17002 (grub_modbase): New variable.
17003 (grub_machine_init): Set grub_modbase.
17004 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17005 (grub_modbase): New variable.
17006 (grub_machine_init): Set grub_modbase.
17007 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17008 (grub_modbase): New variable.
17009 (grub_machine_init): Set grub_modbase.
17010 * grub-core/kern/main.c (grub_module_iterate): Remove.
17011 (grub_modules_get_end): Use grub_modbase.
17012 (grub_load_modules): Use FOR_MODULES.
17013 (grub_load_config): Likewise.
17014 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17015 (grub_modbase): New variable.
17016 (grub_machine_init): Set grub_modbase.
17017 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17018 (grub_modbase): New variable.
17019 (grub_machine_init): Set grub_modbase.
17020 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17022 (grub_modbase): New variable.
17023 (grub_machine_init): Set grub_modbase.
17024 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17025 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17026 (grub_module_iterate): Likewise.
17027 (grub_modbase): New variable declaration.
17028 (FOR_MODULES): New macro.
17030 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17032 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17033 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17035 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17037 Fix few obvious type discrepancies.
17039 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17040 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17041 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17043 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17044 and connected types.
17045 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17047 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17048 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17049 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17050 and connected types.
17052 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17054 Fix python 3.x incompatibilities.
17056 * gentpl.py: Put brackets around print strings.
17057 * util/import_gcry.py: Open explicitly as utf-8.
17058 Use in instead of has_key.
17060 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17062 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17063 (GRUB_XFS_INO_AGBITS): Make into inline function.
17064 (GRUB_XFS_INO_INOINAG): Likewise.
17065 (GRUB_XFS_INO_AG): Likewise.
17066 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17067 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17068 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17069 (GRUB_XFS_EXTENT_SIZE): Likewise.
17070 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17071 (GRUB_XFS_NEXT_DIRENT): Likewise.
17072 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17073 (grub_xfs_read_file): Fix offset type.
17075 2011-10-15 Robert Millan <rmh@gnu.org>
17077 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17079 2011-10-15 Robert Millan <rmh@gnu.org>
17081 Fix build problem on FreeBSD and GNU/kFreeBSD.
17083 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17085 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17087 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17089 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17091 (grub_hfsplus_btree_recoffset): Likewise.
17092 (grub_hfsplus_btree_recptr): Likewise.
17093 (grub_hfsplus_find_block): Likewise.
17094 (grub_hfsplus_btree_search): Likewise.
17095 (grub_hfsplus_read_block): Likewise.
17096 (grub_hfsplus_read_file): Likewise.
17097 (grub_hfsplus_mount): Likewise.
17098 (grub_hfsplus_btree_iterate_node): Likewise.
17099 (grub_hfsplus_btree_search): Likewise.
17100 (grub_hfsplus_iterate_dir): Likewise.
17101 (grub_hfsplus_read): A small code simplification.
17103 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17105 * grub-core/kern/emu/hostdisk.c
17106 (convert_system_partition_to_system_disk): Don't assume that children
17107 of mapper nodes are mapper nodes.
17109 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17111 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17112 * include/grub/misc.h (grub_isxdigit): New function.
17113 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17114 switched to grub_isxdigit.
17115 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17116 number starting with a letter.
17118 2011-10-09 Robert Millan <rmh@gnu.org>
17120 LVM support for FreeBSD and GNU/kFreeBSD.
17122 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17124 (LVM_DEV_MAPPER_STRING): Move from here ...
17125 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17126 * util/getroot.c: Include `<grub/util/lvm.h>'.
17127 (grub_util_get_dev_abstraction): Enable
17128 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17129 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17130 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17131 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17133 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17135 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17136 when LVM abstraction is required for ${GRUB_DEVICE}.
17138 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17140 Add support for LZO compression in GRUB:
17141 - import of minilzo library,
17142 - LZO decompression for btrfs,
17143 - lzop files decompression.
17145 * grub-core/io/lzopio.c: New file.
17146 * grub-core/lib/adler32.c: Likewise.
17147 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17148 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17149 * grub-core/lib/minilzo/minilzo.c: Likewise.
17150 * grub-core/lib/minilzo/minilzo.h: Likewise.
17151 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17152 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17153 grub-core/lib/minilzo/minilzo.c to common.
17154 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17155 cflags in cppflags.
17156 * grub-core/Makefile.core.def (btrfs): Likewise.
17157 * grub-core/Makefile.core.def (lzopio): New module.
17158 (adler32): Likewise.
17159 * grub-core/fs/btrfs.c: Include minilzo.h.
17160 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17161 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17162 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17163 (grub_btrfs_lzo_decompress): New function.
17164 (grub_btrfs_extent_read): Add support for LZO compression type.
17165 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17166 (GRUB_USHRT_MAX): Likewise.
17167 (GRUB_UINT_MAX): Likewise.
17168 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17169 (UINT_MAX): Likewise.
17170 (CHAR_BIT): Likewise.
17171 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17172 grub-core/lib/posix_wrap/limits.h
17173 (UCHAR_MAX): Likewise.
17174 * include/grub/file.h (grub_file_filter_id): New compression filter
17175 GRUB_FILE_FILTER_LZOPIO.
17176 * include/grub/file.h (grub_file_filter_id): Set
17177 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17178 * include/grub/types.h (grub_get_unaligned16): New function.
17179 (grub_get_unaligned32): Likewise.
17180 (grub_get_unaligned64): Likewise.
17181 * util/import_gcry.py (cryptolist): Add adler32.
17183 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17185 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17186 in perspective decreases the complexity of build system and fixes
17187 compilation right now.
17189 2011-10-01 Ales Nesrsta <starous@volny.cz>
17191 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17192 (fixed problem related to using UHCI with coreboot).
17194 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17196 * gentpl.py: Use Autogen macros so that the output template file
17197 (Makefile.tpl) size is reduced.
17199 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17201 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17204 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17206 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17207 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17209 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17211 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17214 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17216 Remove extra declaration of sleep for mingw32.
17218 * util/misc.c (sleep) [__MINGW32__]: Removed.
17219 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17221 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17223 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17225 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17227 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17228 (grub_netbsd_btinfo_bootwedge): New struct.
17229 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17231 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17233 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17235 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17238 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17240 Fix incorrect identifiers in bash-completion.
17242 * util/bash-completion.d/grub-completion.bash.in
17243 (_grub_mkpasswd-pbkdf2): Rename to ...
17244 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17245 (_grub_script-check): Rename to ...
17246 (_grub_script_check): ... this. All users updated.
17248 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17250 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17251 Return 0 if disk isn't biosdisk.
17253 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17255 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17257 * Makefile.util.def (grub-fstest): Likewise.
17259 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17261 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17262 Get sector size from disk label.
17264 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17266 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17267 */README* as well as README*.
17268 Reported by: Axel Beckert.
17270 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17272 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17273 case of less than 256 MiB of RAM.
17275 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17277 * grub-core/commands/wildcard.c (make_regex): Handle @.
17279 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17281 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17283 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17285 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17286 AC_LANG_CONFTEST macros.
17288 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17290 Add grub-fstest option to uncompress data for commands.
17292 * util/grub-fstest.c (uncompress): New var.
17293 (options): New option -u.
17295 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17297 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17298 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17300 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17302 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17303 file type was not recognized correctly (not gzip or corrupted).
17305 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17307 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17308 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17310 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17312 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17314 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17315 video_radeon_fuloong2e.
17316 * grub-core/video/radeon_fuloong2e.c: New file.
17317 * include/grub/video.h (grub_video_id_t): Add new ID
17318 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17320 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17322 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17324 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17325 that PRID matches the detected subplatform and reset the subplatform
17328 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17330 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17332 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17334 Fix PCI iterating on functions >= 4.
17336 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17337 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17339 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17340 (grub_pci_read): Fix bitmask.
17341 (grub_pci_read_word): Likewise.
17342 (grub_pci_read_byte): Likewise.
17343 (grub_pci_write): Likewise.
17344 (grub_pci_write_word): Likewise.
17345 (grub_pci_write_byte): Likewise.
17347 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17349 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17350 can still be specified in TARGET_CFLAGS)
17352 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17354 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17356 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17357 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17358 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17359 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17360 (FULOONG): Rename to ...
17361 (FULOONG2F): ... this. All users updated.
17362 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17363 (machtype_fuloong2f_str): ... this.
17364 (machtype_fuloong2e_str): New string.
17365 Check for machtype_fuloong2e_str.
17366 * grub-core/loader/mips/linux.c (loongson_machtypes)
17367 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17368 * grub-core/term/serial.c (loongson_defserial)
17369 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17370 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17371 loongson_defserial.
17372 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17374 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17375 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17376 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17377 to IMAGE_FULOONG2F_FLASH. All users updated.
17378 (image_targets): Rename images.
17379 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17381 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17383 Make enable of disk cache statistics code configurable.
17385 * configure.ac: --enable-cache-stats added.
17386 * config.h.in (DISK_CACHE_STATS): New define.
17387 * grub-core/Makefile.core.def (cacheinfo): New command.
17388 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17389 * grub-core/commands/cacheinfo.c: New file.
17390 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17391 moved to cacheinfo.c.
17392 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17394 * include/grub/disk.h: Likewise.
17396 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17398 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17399 * grub-core/Makefile.am: Likewise.
17401 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17403 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17406 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17408 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17410 (grub_jfs_lookup_symlink): Use correct starting inode.
17412 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17414 * util/grub-setup.c (main): Add missing gcry initialisation.
17416 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17418 Don't accept text modes on EFI when booting Linux.
17420 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17421 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17423 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
17424 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17426 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17427 use of "/path/.." as in grub-install for EFI as well as handling
17428 symlinks correctly.
17429 Fixes Debian bug #637768.
17431 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17433 * util/grub-probe.c: Remove duplicate #include.
17435 2011-08-10 Robert Millan <rmh@gnu.org>
17437 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17439 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17441 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17442 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17444 2011-08-03 Robert Millan <rmh@gnu.org>
17446 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
17447 la_array as packed.
17448 Reported by: Zachary Bedell
17450 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17452 * configure.ac: The Loongson port requires grub-mkfont due to its
17453 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
17456 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17458 * util/grub-install.in: Don't source grub-mkconfig_lib until after
17459 processing arguments (otherwise help2man fails when GRUB has not yet
17462 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17464 New script grub-mkstandalone.
17466 * Makefile.util.def (grub-mkstandalone): New script.
17467 * docs/man/grub-mkstandalone.h2m: New file.
17468 * util/grub-mkstandalone.in: Likewise.
17470 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17472 Support ATA disks with 4K sectors.
17474 * include/grub/ata.h (grub_ata): New member log_sector_size.
17475 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
17476 (grub_ata_identify): Read sector size.
17477 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
17479 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17481 * util/grub-install.in: Don't use uhci outside of x86.
17483 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17485 * util/grub-mkrescue.in: Add missing quotes.
17487 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17489 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
17492 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17494 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
17496 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17498 * include/grub/video.h: add missing EXPORT_FUND on
17499 grub_video_edid_checksum and grub_video_edid_preferred_mode.
17501 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17503 * include/grub/mips/kernel.h: Fix define conflict.
17505 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17507 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
17510 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
17512 Preferred resolution detection for VBE.
17514 * grub-core/video/video.c (grub_video_edid_checksum): New function.
17515 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
17516 the Flat Panel extension, in line with the X.org VESA driver.
17517 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
17519 (grub_vbe_bios_get_ddc_capabilities): Likewise.
17520 (grub_vbe_bios_read_edid): Likewise.
17521 (grub_vbe_get_preferred_mode): Likewise.
17522 (grub_video_vbe_setup): When the mode is "auto", try to get the
17523 preferred mode from VBE, and use the largest mode that is no larger
17524 than the preferred mode (some BIOSes expose a preferred mode that is
17525 not in their mode list!). If this fails, fall back to 640x480 as a
17526 safe conservative choice.
17527 (grub_video_vbe_get_edid): New function.
17528 (grub_video_vbe_adapter): Add get_edid.
17529 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
17530 (struct grub_video_adapter): Add get_edid.
17531 (grub_video_edid_checksum): Add prototype.
17532 (grub_video_edid_preferred_mode): Likewise.
17533 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
17536 * grub-core/commands/videoinfo.c (print_edid): New function.
17537 (grub_cmd_videoinfo): Print EDID if available.
17539 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
17540 is more appropriate on a wider range of platforms than 640x480.
17541 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
17544 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17546 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
17548 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17550 * po/POTFILES.in: Regenerate.
17552 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17554 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
17555 incorrect memory usage.
17557 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17559 * util/grub-install.in: Source grub-mkconfig_lib.
17561 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
17563 Remove getroot.c from core on emu platform.
17565 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
17567 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
17569 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
17570 * util/getroot.c (get_win32_path): ... here.
17571 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
17572 * util/getroot.c (fini_libzfs): ... here.
17573 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
17574 * util/getroot.c (grub_get_libzfs_handle): ... here.
17575 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
17577 * util/getroot.c (grub_find_zpool_from_dir): ... here.
17578 * grub-core/kern/emu/misc.c
17579 (grub_make_system_path_relative_to_its_root): Moved from here...
17580 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
17581 * grub-core/kern/emu/getroot.c: Moved from here ...
17582 * util/getroot.c: ... here. All users updated.
17583 * grub-core/kern/emu/raid.c: Moved from here ...
17584 * util/raid.c: ... here. All users updated.
17586 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
17588 * po/POTFILES.in: Regenerate.
17590 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17592 Fix compilation on GNU/Linux.
17594 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
17596 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
17597 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
17598 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
17600 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17601 2011-07-07 Michael Gorven <michael@gorven.za.net>
17602 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
17604 LUKS and GELI support.
17606 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
17607 grub-core/disk/luks.c, grub-core/disk/geli.c,
17608 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
17609 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
17610 grub-core/lib/arg.c.
17611 (libgrubmods.a): Remove gcrypts cflags and cppflags.
17612 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
17613 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
17614 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
17615 (grub-bin2h): Add libgcry.a.
17616 (grub-mkimage): Likewise.
17617 (grub-mkrelpath): Likewise.
17618 (grub-script-check): Likewise.
17619 (grub-editenv): Likewise.
17620 (grub-mkpasswd-pbkdf2): Likewise.
17621 (grub-pe2elf): Likewise.
17622 (grub-fstest): Likewise.
17623 (grub-mkfont): Likewise.
17624 (grub-mkdevicemap): Likewise.
17625 (grub-probe): Likewise.
17626 (grub-ofpath): Likewise.
17627 (grub-mklayout): Likewise.
17628 (example_unit_test): Likewise.
17629 (grub-menulst2cfg): Likewise.
17630 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
17631 * grub-core/Makefile.core.def (cryptodisk): New module.
17634 * grub-core/disk/AFSplitter.c: New file.
17635 * grub-core/disk/cryptodisk.c: Likewise.
17636 * grub-core/disk/geli.c: Likewise.
17637 * grub-core/disk/luks.c: Likewise.
17638 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
17640 (grub_util_get_dm_abstraction): New function.
17641 (grub_util_follow_gpart_up): Likewise.
17642 (grub_util_get_geom_abstraction): Likewise.
17643 (grub_util_get_dev_abstraction): Use new functions.
17644 (grub_util_pull_device): Pull GELI and LUKS.
17645 (grub_util_get_grub_dev): Handle LUKS and GELI.
17646 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
17647 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
17648 (follow_geom_up): Removed.
17649 (grub_util_fd_seek): New function.
17650 (open_device): Use grub_util_fd_seek.
17651 (nread): Rename to ..
17652 (grub_util_fd_read): ... this. All users updated.
17653 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
17654 (grub_crypto_cbc_decrypt): Likewise.
17655 (grub_crypto_hmac_write): Likewise.
17656 (grub_crypto_hmac_buffer): Likewise.
17657 (grub_password_get): Extend to util.
17658 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
17659 New member modname.
17660 (gcry_md_spec) [GRUB_UTIL]: Likewise.
17661 * include/grub/cryptodisk.h: New file.
17662 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
17663 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
17665 (grub_util_follow_gpart_up): New proto.
17666 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
17667 (grub_util_fd_read): Likewise.
17668 (grub_cryptodisk_cheat_mount): Likewise.
17669 (grub_util_cryptodisk_print_uuid): Likewise.
17670 (grub_util_get_fd_sectors): Likewise.
17671 * util/grub-fstest.c (mount_crypt): New var.
17672 (fstest): Mount crypto if requested.
17673 (options): New option -C.
17674 (argp_parser): Parse -C.
17675 (main): Init and fini gcry.
17676 * util/grub-install.in: Support cryptodisk install.
17677 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
17678 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
17680 (prepare_grub_to_access_device): Likewise.
17681 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
17682 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
17683 (probe_cryptodisk_uuid): New function.
17684 (probe_abstraction): Likewise.
17685 (probe): Use new functions.
17686 * util/import_gcry.py: Create Makefile.utilgcry.def.
17687 Add modname member.
17689 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17691 Lazy device scanning.
17693 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
17694 (grub-setup): Remove util/raid.c.
17695 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
17696 * grub-core/disk/lvm.c (scan_depth): New variable.
17697 (grub_lvm_iterate): Rescan if necessary.
17698 (find_lv): New function based on grub_lvm_open.
17699 (grub_lvm_open): Use find_lv. Rescan on error.
17700 (is_node_readable): New function.
17701 (is_lv_readable): Likewise.
17702 (grub_lvm_scan_device): Skip already found disks.
17703 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
17704 Stop if searched device is found and readable.
17705 * grub-core/disk/raid.c (inscnt): New variable.
17706 (scan_depth): Likewise.
17707 (scan_devices): New function based on grub_raid_register. Abort if
17708 looked for device is found.
17709 (grub_raid_iterate): Rescan if needed.
17710 (find_array): NEw function based on -grub_raid_open.
17711 (grub_raid_open): Use find_array and rescan.
17712 (insert_array): Set became_readable_at.
17713 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
17714 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
17716 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
17717 (grub_util_pull_device): New function.
17718 (grub_util_get_grub_dev): Call grub_util_pull_device.
17719 * util/raid.c: Moved to ..
17720 * grub-core/kern/emu/raid.c: ... here.
17721 (grub_util_raid_getmembers): New parameter "bootable".
17722 All users updated. Support 1.x.
17723 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
17725 * include/grub/disk.h (grub_disk_pull_t): New enum.
17726 (grub_disk_dev): Change iterate prototype.
17728 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
17730 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
17731 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
17732 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
17733 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
17735 * include/grub/util/raid.h: Removed.
17737 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
17739 * po/POTFILES.in: Regenerate.
17741 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
17743 Unify sparc init with other ieee1275.
17745 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
17746 instead of kern/sparc64/ieee1275/init.c.
17747 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
17748 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
17749 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
17750 grub/machine/kernel.h.
17751 (grub_ieee1275_original_stack) [__sparc__]: New variable.
17752 (grub_claim_heap) [__sparc__]: Use sparc version.
17753 (grub_machine_init): Moved args parsing to
17754 (grub_parse_cmdline): ...this.
17755 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
17756 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
17758 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
17760 Move BOOTP to separate file.
17762 * grub-core/Makefile.core.def (net): Add net/bootp.c.
17763 * grub-core/net/net.c: Move all BOOTP functions to
17764 * grub-core/net/bootp.c: ... here.
17766 Use frame interface on PXE.
17768 * grub-core/Makefile.core.def (pxecmd): Removed.
17769 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
17770 * grub-core/commands/i386/pc/pxecmd.c: Removed.
17771 * grub-core/i386/pc/pxe.c: Moved from here ...
17772 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
17773 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
17774 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
17776 EFI network support.
17778 * grub-core/Makefile.core.def (efinet): New module.
17779 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
17781 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
17783 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
17784 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
17785 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
17786 * grub-core/net/drivers/efi/efinet.c: New file.
17787 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
17788 (grub_efi_net_config): New extern var.
17790 Various cleanups and bugfixes.
17792 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
17794 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
17795 disk declared as partition.
17796 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
17798 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
17799 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
17800 (grub_debug_zalloc): Likewise.
17801 (grub_debug_realloc): Likewise.
17802 (grub_debug_memalign): Likewise.
17803 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
17804 Check that target is IPv4.
17805 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
17806 local-mac-address as fallback.
17807 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
17809 * grub-core/net/ip.c (ipchksum): Rename to ...
17810 (grub_net_ip_chksum): ... this. All users updated.
17811 (grub_net_recv_ip_packets): Special handling for DHCP.
17812 * util/grub-mkimage.c (generate_image): Zero-out aout header.
17814 Unify prefix handling
17816 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
17817 (grub_machine_get_bootlocation): ... this.
17818 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
17819 (grub_machine_get_bootlocation): ... this.
17820 (grub_prefix): New variable.
17822 (root_dev): New variable.
17824 (main): Use new variables.
17825 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
17827 (grub_machine_get_bootlocation): ... this.
17828 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
17829 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
17830 (grub_machine_get_bootlocation): ... this.
17831 (grub_machine_set_prefix): Removed.
17832 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
17833 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
17835 (grub_machine_get_bootlocation): ... this.
17836 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
17837 (grub_set_prefix_and_root): ... this. All users updated.
17838 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
17840 (grub_machine_get_bootlocation): ... this.
17841 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
17842 (grub_machine_get_bootlocation): New proto.
17843 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
17845 Less intrusive and more reliable seek on network implementation.
17847 * grub-core/kern/file.c (grub_file_net_seek): Removed.
17848 (grub_file_seek): Don't call grub_file_net_seek.
17849 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
17850 (grub_net_fs_read_real): .. this.
17851 (grub_net_seek_real): Use net->offset.
17852 (grub_net_fs_read): Seek if necessary.
17854 Unify IEEE1275 netwotk config with the other platforms.
17856 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
17858 (grub_machine_get_bootlocation): Support network.
17859 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
17860 Support type and device parsing.
17861 (grub_ieee1275_get_device_type): New function.
17862 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
17864 (grub_ieee1275_net_config_real): ... this.
17865 (grub_ofnet_probecards): Removed.
17866 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
17867 * include/grub/ieee1275/ofnet.h: Removed.
17868 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
17870 (grub_ieee1275_get_device_type): New function.
17872 Unify network device closing across platforms and make more robust.
17874 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
17876 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
17878 * grub-core/net/net.c (grub_net_network_level_interface_register):
17880 (grub_net_card_unregister): Close all interfaces.
17881 (receive_packets): Don't poll if no iterfaces are registered.
17883 (grub_net_fini_hw): New function.
17884 (grub_net_restore_hw): Likewise.
17885 (fini_hnd): New variable.
17886 (GRUB_MOD_INIT): Register preboot hook.
17887 (GRUB_MOD_FINI): Run and unregister preboot hook.
17889 Poll network cards when idle.
17891 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
17892 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
17893 * grub-core/net/net.c (receive_packets): Save last poll time.
17894 (grub_net_poll_cards_idle_real): New function.
17895 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
17896 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
17897 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
17899 Rename ofnet interfaces.
17901 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
17902 (grub_ofnet_findcards): Use ofnet_%s names.
17904 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
17906 Cleanup socket opening.
17908 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
17909 (grub_net_fs_close): Likewise.
17910 (grub_net_fs_read_real): Use eof member.
17911 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
17912 (+grub_net_udp_close): New inline function.
17914 * include/grub/net/tftp.h: Moved to the top of ...
17915 * grub-core/net/tftp.c: ... here.
17916 * include/grub/net/ip.h: Moved mostly to the top of ...
17917 * grub-core/net/ip.c: ... here.
17918 * include/grub/net/ethernet.h: Moved mostly to the top of ...
17919 * grub-core/net/ethernet.c: ... here.
17921 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
17923 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
17926 * include/grub/net/ip.h (ipv4_ini): Removed.
17927 (ipv4_fini): Likewise.
17929 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
17930 (grub_net_send_ip_packets): Likewise.
17932 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17934 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
17935 grub_read_cmos prototype.
17937 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17939 VGA text support in qemu-mips
17941 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
17942 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
17943 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
17945 * grub-core/kern/i386/qemu/init.c: Renamed to ...
17946 * grub-core/kern/vga_init.c: ... this.
17947 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
17948 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
17949 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
17951 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
17952 GRUB_MACHINE_PCI_IO_BASE.
17954 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17956 MIPS qemu flash support.
17958 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
17960 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
17961 (grub_machine_init): Probe memory if its size isn't known.
17962 * util/grub-mkimage.c (image_targets): Add flash targets.
17963 (generate_image): Handle flash targets.
17965 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17967 MIPS qemu at_keyboard support.
17969 * gentpl.py (videoinkernel): Add qemu-mips.
17970 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
17971 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
17972 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
17974 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
17975 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
17976 * grub-core/term/serial.c (grub_serial_register)
17977 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
17979 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17981 CMOS support on sparc.
17983 * gentpl.py (cmos): Add powerpc and sparc.
17984 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
17986 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
17987 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
17988 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
17989 grub_set_datetime_cmos.
17990 * grub-core/lib/ieee1275/cmos.c: New file.
17991 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
17992 (find_rtc): Set no_ieee1275_rtc on error.
17993 (grub_get_datetime): Call grub_get_datetime_cmos on error.
17994 (grub_set_datetime): Call grub_set_datetime_cmos on error.
17995 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
17996 fail. Move value to argument. All users updated
17997 (grub_cmos_write): Likewise.
17998 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
17999 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18000 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18001 grub_get_datetime_cmos and grub_set_datetime_cmos.
18003 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18005 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18006 sourcing grub-mkconfig_lib.
18007 * util/update-grub_lib.in: Likewise.
18008 * util/grub.d/00_header.in: Likewise.
18009 * util/grub.d/10_hurd.in: Likewise.
18010 * util/grub.d/10_kfreebsd.in: Likewise.
18011 * util/grub.d/10_linux.in: Likewise.
18012 * util/grub.d/10_netbsd.in: Likewise.
18013 * util/grub.d/10_windows.in: Likewise.
18014 * util/grub.d/20_linux_xen.in: Likewise.
18015 * util/grub.d/30_os-prober.in: Likewise.
18017 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18019 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18020 default_bg_color rather than black.
18021 (grub_gfxterm_fullscreen): Likewise.
18022 (grub_gfxterm_background_color_cmd): Save new background color in
18025 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18027 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18029 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18031 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18034 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18036 Chainloading on coreboot support.
18038 * grub-core/Makefile.core.def (chain): Add coreboot.
18039 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18041 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18043 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18046 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18048 Implement time command.
18050 * grub-core/Makefile.core.def (time): New module.
18051 * grub-core/commands/time.c: New file.
18052 * grub-core/script/parser.y: Remove "time" keyword.
18053 * grub-core/script/yylex.l: Likewise.
18055 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18057 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18059 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18061 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18062 when handling leftovers.
18064 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18066 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18067 so that help2man doesn't fail.
18069 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18071 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18072 type in pointers on sparc64.
18073 (get_card_packet): Likewise.
18075 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18077 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18079 (grub_cmd_videoinfo): Fetch current video mode.
18081 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18083 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18084 because of underlying system restrictions.
18086 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18088 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18091 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18093 Coreboot video support.
18095 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18097 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18098 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18100 * grub-core/kern/i386/int.S: ... here.
18101 * grub-core/video/i386/pc/vbe.c: Updated includes.
18102 * grub-core/video/i386/pc/vga.c: Likewise.
18103 * include/grub/i386/coreboot/memory.h
18104 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18105 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18106 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18107 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18108 Disable interrupts.
18109 * include/grub/i386/pc/vga.h: Removed. All users updated.
18111 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18113 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18114 definitions for dprintf.
18115 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18117 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18119 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18121 (get_card_packet): Likewise.
18123 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18125 Display the path of the file when file is not found
18127 * grub-core/fs/fat.c: Display the filename when file is not found.
18128 * grub-core/fs/fshelp.c: Likewise.
18129 * grub-core/fs/hfs.c: Likewise.
18130 * grub-core/fs/jfs.c: Likewise.
18131 * grub-core/fs/minix.c: Likewise.
18132 * grub-core/fs/ufs.c: Likewise.
18133 * grub-core/fs/btrfs.c: Likewise.
18134 * grub-core/commands/i386/pc/play.c: Likewise.
18136 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18138 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18139 pointer checks before calling grub_free().
18140 * grub-core/commands/wildcard.c (match_devices): Likewise.
18141 * grub-core/commands/wildcard.c (match_files): Likewise.
18142 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18143 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18144 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18145 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18146 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18147 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18148 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18149 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18150 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18152 2011-06-25 Patrick <p55@mailinator.com>
18154 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18156 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18158 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18159 (grub_pxe_send): Likewise.
18160 (GRUB_MOD_INIT): Fix types.
18162 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18164 * grub-core/io/xzio.c: Fix code style issues
18166 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18167 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18169 Network infrastructure.
18170 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18172 * include/grub/net/arp.h: New file.
18173 * include/grub/net/device.h: Likewise.
18174 * include/grub/net/ethernet.h: Likewise.
18175 * include/grub/net/ip.h: Likewise.
18176 * include/grub/net/netbuff.h: Likewise.
18177 * include/grub/net/tftp.h: Likewise.
18178 * include/grub/net/udp.h: Likewise.
18179 * include/grub/ieee1275/ofnet.h: Likewise.
18180 * include/grub/emu/export.h: Likewise.
18181 * include/grub/net.h: Likewise.
18182 * grub-core/net/arp.c: Likewise.
18183 * grub-core/net/ethernet.c: Likewise.
18184 * grub-core/net/ip.c: Likewise.
18185 * grub-core/net/udp.c: Likewise.
18186 * grub-core/net/tftp.c: Likewise.
18187 * grub-core/net/netbuff.c: Likewise.
18188 * grub-core/net/net.c: Likewise.
18189 * grub-core/net/drivers/emu/emunet.c: Likewise.
18190 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18191 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18193 * grub-core/Makefile.core.def (net): New module.
18196 (emunet): Likewise.
18197 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18199 * grub-core/kern/device.c (grub_net_open) : New variable.
18200 (grub_device_open): Handle network device.
18201 (grub_device_close): Likewise.
18202 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18203 (grub_grubnet_fini): Likewise.
18204 (grub_file_seek): Seek in network device.
18205 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18206 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18208 (grub_machine_fini): Call grub_grubnet_fini.
18209 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18211 (grub_ieee1275_get_aliasdevname): New function.
18212 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18213 Add unofficial Solaris network info.
18214 (grub_multiboot_make_mbi): Likewise.
18215 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18216 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18217 * include/grub/device.h (grub_fs): Removed.
18218 * include/grub/err.h (grub_err_t): Add network-related values.
18219 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18220 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18221 (grub_ieee1275_get_aliasdevname): New proto.
18222 * include/grub/net.h: Rewritten.
18224 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18226 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18229 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18231 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18232 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18233 it truncates the output.
18234 Reported by: Ximin Luo.
18236 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18238 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18240 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18242 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18243 partmap before abstraction.
18245 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18247 * util/grub-mkconfig_lib.in: Add missing quotes.
18249 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18251 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18252 old method if mountinfo would return /dev/root and /dev/root doesn't
18255 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18259 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18260 (decomp_table): Add zlib entries.
18261 (zio_read): USe 8 bits for compression function rather than 3.
18262 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18264 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18266 * grub-core/disk/ahci.c: Add missing license statements.
18267 * grub-core/fs/romfs.c: Likewise.
18268 * grub-core/lib/ia64/setjmp.S: Likewise.
18269 * grub-core/loader/i386/pc/freedos.c: Likewise.
18270 * grub-core/loader/ia64/efi/linux.c: Likewise.
18271 * grub-core/video/colors.c: Likewise.
18272 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18274 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18278 * grub-core/Makefile.core.def (ata_pthru): Removed.
18279 (ahci): New module.
18281 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18283 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18285 (grub_hdparm_do_check_powermode_cmd): Likewise.
18286 (grub_hdparm_do_smart_cmd): Likewise.
18287 (grub_hdparm_set_val_cmd): Likewise.
18288 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18289 * grub-core/disk/ahci.c: New file.
18290 * grub-core/disk/ata.c: Factor out the low-level part into ...
18291 * grub-core/disk/pata.c: ... here.
18292 * grub-core/disk/ata_pthru.c: Contents moved to ...
18293 * grub-core/disk/pata.c: ... here.
18294 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18295 (grub_scsi_iterate): Use grub_scsi_names.
18296 (grub_scsi_open): Likewise.
18297 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18298 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18299 (grub_ata_regs_t): New struct.
18300 (grub_disk_ata_pass_through_parms): Likewise.
18301 (grub_ata_device): Renamed to ...
18302 (grub_ata): ... this.
18303 (grub_ata_dev): New struct.
18304 Removed all low-level inline functions.
18305 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18306 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18307 iterate hooks and open. All users updated.
18308 * util/grub-install.in: Handle AHCI disk module.
18310 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18312 Add support for DRI and RSTn markers in JPEG files.
18314 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18315 (JPEG_MARKER_RST0): Likewise.
18316 (JPEG_MARKER_RST1): Likewise.
18317 (JPEG_MARKER_RST2): Likewise.
18318 (JPEG_MARKER_RST3): Likewise.
18319 (JPEG_MARKER_RST4): Likewise.
18320 (JPEG_MARKER_RST5): Likewise.
18321 (JPEG_MARKER_RST6): Likewise.
18322 (JPEG_MARKER_RST7): Likewise.
18323 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18324 (grub_jpeg_decode_dri): New function.
18325 (grub_jpeg_decode_sos): Move image data related part into
18326 grub_jpeg_decode_data function.
18327 (grub_jpeg_decode_data): New function.
18328 (grub_jpeg_reset): New function.
18329 (grub_jpeg_decode_jpeg): Handle new markers.
18331 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18333 * util/ieee1275/ofpath.c (check_sas): Close fd.
18334 (main): Free of_path.
18335 Reported by: David Volgyes <dvolgyes>.
18337 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18339 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18340 Reported by: David Volgyes <dvolgyes>.
18342 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18344 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18346 Reported by: David Volgyes <dvolgyes>.
18348 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18350 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18352 Reported by: David Volgyes <dvolgyes>.
18354 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18356 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18357 Prevent memory leak.
18359 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18361 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18362 (main): Close file.
18363 Reported by: David Volgyes <dvolgyes>.
18365 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18367 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18368 to continue if allocation is failed.
18370 Reported by: David Volgyes <dvolgyes>.
18372 2011-06-23 David Volgyes <dvolgyes>
18374 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18377 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18379 Fix spurious warning.
18381 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18382 (acorn_partition_map_find): Use .bin member.
18384 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18386 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18387 /dev/root as a valid device.
18389 2011-06-23 Jim Meyering <meyering@redhat.com>
18391 Avoid NULL deref in grub_device_open.
18393 * grub-core/kern/device.c (grub_device_open): Don't dereference
18394 a NULL pointer upon failed grub_env_get.
18396 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18398 Support non-512B sectors and agglomerate reads.
18400 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18401 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18402 (disk_io_guid): Removed.
18403 (make_devices): Locate solely by BlockIO.
18404 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18405 (grub_efidisk_read): Use read_blocks.
18406 (grub_efidisk_write): Use write_blocks.
18407 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18409 (get_safe_sectors): Handle non-512B sectors.
18410 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18412 (grub_biosdisk_write): Handle non-512B sectors.
18413 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18414 (grub_scsi_read): Remove special non-512B block handling (now handled
18416 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18417 and do sanity checks.
18418 (grub_disk_adjust_range): Handle non-512B sectors.
18419 (transform_sector): New function.
18420 (grub_disk_read_small): Likewise.
18421 (grub_disk_read): Rewritten.
18422 (grub_disk_write): Handle non-512B sectors.
18423 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18425 (open_device): Use log_sector_size.
18426 (grub_util_biosdisk_read): Likewise.
18427 (grub_util_biosdisk_write): Likewise.
18428 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18430 (pc_partition_map_embed): Likewise.
18431 * include/grub/disk.h (grub_disk): New field log_sector_size.
18432 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18433 (GRUB_DISK_CACHE_BITS): Increased to 6.
18434 * util/grub-fstest.c (fstest): New command testload.
18435 (argp_parser): Likewise.
18437 2011-06-16 Robert Millan <rmh@gnu.org>
18439 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18440 `ata' driver on kernel of FreeBSD 9.
18442 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18443 (get_ataraid_disk_name): New functions.
18444 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
18445 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
18446 get_ataraid_disk_name() and get_ada_disk_name().
18448 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
18450 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
18453 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
18455 * docs/grub.texi (Obtaining and Building GRUB): Substitute
18456 `ftp.gnu.org' for `alpha.gnu.org'.
18458 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18460 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
18461 partitions under /dev/disk/by-id/.
18463 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18465 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
18466 after ten consecutive open failures. Scanning all the way up to
18467 10000 is excessive and can cause serious performance problems in
18468 some configurations.
18469 Fixes Ubuntu bug #787461.
18471 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18473 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
18476 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
18477 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18479 Don't stat devices unless we have to.
18481 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
18482 dir == /dev/mapper.
18483 (grub_guess_root_device): Use already known os_dev if possible.
18484 * grub-core/kern/emu/hostdisk.c
18485 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
18486 if device is known to be a dm one.
18488 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
18490 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
18491 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
18492 Reported by: Pawel Tecza.
18494 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
18496 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
18497 (lsefisystab): Likewise.
18499 (lsefimmap): Likewise.
18500 (hdparm): Enable on qemu-mips.
18501 (setjmp): Add ia64 nodist.
18502 (serial): Simplify tags.
18504 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18506 * Makefile.util.def (grub-ofpathname): Install manual page.
18508 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18510 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
18512 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18514 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
18516 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18518 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
18521 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18523 Use full 64-bit division.
18525 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
18526 (grub_divmod64): ... this.
18527 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
18530 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18532 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
18535 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18537 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
18538 to avoid accidents when debugging with 'sh -x'.
18539 * grub-core/gensyminfo.sh.in: Likewise.
18540 * tests/example_scripted_test.in: Likewise.
18541 * tests/grub_cmd_regexp.in: Likewise.
18542 * tests/grub_script_blanklines.in: Likewise.
18543 * tests/grub_script_dollar.in: Likewise.
18544 * tests/grub_script_expansion.in: Likewise.
18545 * tests/grub_script_final_semicolon.in: Likewise.
18546 * tests/partmap_test.in: Likewise.
18547 * tests/util/grub-shell-tester.in: Likewise.
18548 * tests/util/grub-shell.in: Likewise.
18550 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18552 Move gfxmenu color handling to video, so that gfxterm can use it
18555 * grub-core/gfxmenu/named_colors.c: Move to ...
18556 * grub-core/video/colors.c: ... here. Rename
18557 grub_gui_get_named_color to grub_video_get_named_color.
18558 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
18559 * grub-core/video/colors.c (my_isxdigit): ... here.
18560 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
18562 * grub-core/video/colors.c (parse_hex_color_component): ... here.
18563 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
18565 * grub-core/video/colors.c (grub_video_parse_color): ... here.
18567 * include/grub/gui.h (grub_gui_color_t): Move to ...
18568 * include/grub/video.h (grub_video_rgba_color_t): ... here.
18569 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
18570 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
18571 * include/grub/gui.h (grub_gui_map_color): Move to ...
18572 * include/grub/video.h (grub_video_map_rgba_color): ... here.
18573 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
18575 * include/grub/video.h (grub_video_get_named_color): ... here.
18576 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
18577 * include/grub/video.h (grub_video_parse_color): ... here.
18579 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
18581 (gfxmenu): Remove gfxmenu/named_colors.c.
18582 (video) [videomodules]: Add video/colors.c.
18584 Add a background_color command.
18586 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
18588 (GRUB_MOD_INIT): Register background_color command.
18589 (GRUB_MOD_FINI): Unregister background_color command.
18590 (redraw_screen_rect): Allow blend/replace of text layer to be
18591 controlled independently from whether there is a background bitmap.
18592 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
18595 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18597 Patch BPB in ntldr and chainloader --bpb.
18599 * grub-core/fs/fat.c: Include grub/fat.h.
18600 (grub_fat_bpb): Moved to ...
18601 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
18602 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
18604 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
18606 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
18608 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
18610 (grub_chainloader_cmd): Patch BPB if --bpb is given.
18611 (GRUB_MOD_INIT): Show --bpb.
18612 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
18613 * grub-core/normal/main.c (features): New variable.
18614 (GRUB_MOD_INIT): Set feature_* variables.
18615 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
18617 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
18619 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18621 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
18624 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18626 FreeDOS direct loading support.
18628 * docs/grub.texi (Supported OS): Add FreeDOS.
18629 * grub-core/Makefile.core.def (freedos): New module.
18630 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
18632 (grub_relocator16_boot): Handle %ebx.
18633 * grub-core/lib/i386/relocator16.S: Likewise.
18634 * grub-core/loader/i386/pc/freedos.c: New file.
18636 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18638 Long Linux command line support.
18640 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
18641 (maximal_cmdline_size): New variable.
18642 (allocate_pages): Use maximal_cmdline_size.
18643 (grub_cmd_linux): Set and use maximal_cmdline_size.
18644 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
18645 (allocate_pages): Use maximal_cmdline_size.
18646 (grub_cmd_linux): Set and use maximal_cmdline_size.
18647 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
18648 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
18651 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18652 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18654 Improve devmapper support
18656 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
18657 (grub_util_is_lvm): New function.
18658 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
18659 than lvm if not dmraid.
18660 Handle mapped md nodes.
18661 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
18662 (grub_util_device_is_mapped): ... this. Make always available. All users
18664 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
18665 (convert_system_partition_to_system_disk): Handle lvm, mpath and
18667 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
18669 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18671 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
18673 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
18674 * grub-core/modinfo.sh.in: New file.
18675 * grub-core/Makefile.core.def (modinfo.sh): New script.
18676 * util/grub-mknetdir.in: Use modinfo.sh.
18677 * util/grub-mkrescue.in: Likewise.
18679 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18681 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
18682 Fix potential usage of Elf32 instead of Elf64 when compiling on
18683 32-bit architecture. Add endianness macros while on it.
18685 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18687 Use mipsel- rather than mips- in directories involving mipsel ports to
18688 allow both endiannesses coexist.
18690 * configure.ac: proparate target_cpu=mipsel rather than resetting to
18691 mips. All conditions adjusted.
18692 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
18694 * util/grub-install.in: Adjust conditions to take renaming into account.
18695 * util/grub-mkimage.c (image_targets): Likewise. New target
18696 mips-qemu_mips-elf for bigendian mips.
18698 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18700 Avoid unnecessary copying on MIPS.
18702 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
18703 early if src == dest.
18704 * util/grub-mkimage.c (generate_image): Arange for src == dest if
18705 compression is none.
18707 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18709 Reduce memory footprint on SGI by putting modules before the kernel
18710 as opposed to after.
18712 * grub-core/Makefile.core.def (kernel): Increase linking address.
18713 (none_decompress): Likewise.
18714 (xz_decompress): Likewise.
18715 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
18717 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
18719 (grub_arch_modules_addr): New function.
18720 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
18721 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
18722 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
18724 * grub-core/kern/mips/startup.S (total_size): Rename to ...
18725 (grub_total_modules_size): ... this. Make global.
18726 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
18727 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
18729 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
18730 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
18731 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
18732 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
18733 * util/grub-mkimage.c (image_target_desc): New flag
18734 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
18735 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
18736 (generate_image): Handle images with modules before kernel.
18738 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18740 Prevent potential loss of memory map by overwrite on qemu-mips.
18742 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
18743 Save ram size in $s4.
18744 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
18745 All users changed to grub_arch_memsize.
18746 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
18748 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
18749 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
18750 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
18753 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18755 * .bzrignore: Remove grub-dumpbios.
18757 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18759 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
18760 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
18761 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
18762 existing options which append).
18763 * docs/grub.texi (Simple configuration): Document new options.
18764 Reported by: Ian Jackson. Fixes Debian bug #617538.
18766 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18768 * util/grub-fstest.c (cmd_cat): New function.
18769 (fstest): Handle CMD_CAT.
18770 (options): Add cat.
18771 (argp_parser): Handle cat.
18773 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18775 * Makefile.util.def (grub-bin2h): Don't install.
18776 * docs/man/grub-bin2h.h2m: Remove.
18778 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18780 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
18783 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18785 Reenable qemu-mips port.
18787 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
18788 Fix small arc bug while on it.
18789 * gentpl.py: Handle qemu_mips.
18790 * grub-core/Makefile.am: Likewise.
18791 * grub-core/Makefile.core.def: Likewise.
18792 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
18793 inappropriate includes.
18794 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
18795 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
18796 * grub-core/kern/main.c (grub_modules_get_end)
18797 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
18798 * grub-core/kern/mips/qemu-mips: Moved to ..
18799 * grub-core/kern/mips/qemu_mips: ... this.
18800 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
18801 (grub_machine_init): Call terminfo_init and serial_init.
18802 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
18803 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
18805 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
18807 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
18808 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
18809 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
18810 * include/grub/mips/qemu_mips/cmos.h: New file.
18811 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
18812 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
18814 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
18815 Use correct mips-style address.
18816 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
18817 (GRUB_TICKS_PER_SECOND): Removed.
18818 (grub_get_rtc): Likewise.
18819 (grub_cpu_idle): Likewise.
18820 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
18822 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
18823 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
18824 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
18825 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
18826 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
18827 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
18828 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
18829 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
18831 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18835 * Makefile.util.def (libgrubmods.a): Add dvh.c.
18836 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
18838 * configure.ac: New target mips-arc.
18839 * gentpl.py: Likewise.
18840 * grub-core/Makefile.am: Likewise.
18841 * grub-core/Makefile.core.def: Likewise.
18842 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
18843 (none_decompress): Likewise.
18844 (lsdev): New module.
18845 (datetime): Use lib/arc/datetime.c on ARC.
18846 (part_dvh): New module.
18847 * grub-core/commands/arc/lsdev.c: New file.
18848 * grub-core/disk/arc/arcdisk.c: Likewise.
18849 * grub-core/kern/mips/arc/init.c: Likewise.
18850 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
18852 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
18854 (grub_arch_dl_relocate_symbols): Likewise.
18855 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
18856 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
18857 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
18859 * grub-core/lib/arc/datetime.c: New file.
18860 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
18861 pci.h on non-loongson.
18862 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
18863 (grub_linux_boot): Set unused registers to 0.
18864 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
18865 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
18866 * grub-core/mmap/mips/uppermem.c: ...here.
18867 * grub-core/partmap/dvh.c: New file.
18868 * grub-core/term/arc/console.c: Likewise.
18869 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
18870 (grub_terminfo_set_current): Add terminal "arc".
18871 (grub_terminfo_readkey): Support ARC sequences.
18872 * include/grub/arc/arc.h: New file.
18873 * include/grub/arc/console.h: Likewise.
18874 * include/grub/disk.h (grub_disk_dev_id): Add
18875 GRUB_DISK_DEVICE_ARCDISK_ID.
18876 * include/grub/mips/arc/kernel.h: New file.
18877 * include/grub/mips/arc/memory.h: Likewise.
18878 * include/grub/mips/arc/time.h: Likewise.
18879 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
18880 * include/grub/mips/kernel.h (grub_halt): ... here.
18881 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
18883 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
18884 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
18885 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
18886 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
18888 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
18890 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
18891 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
18892 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
18893 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
18894 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
18895 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
18896 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
18897 (grub_phys_addr_t): Moved from here ...
18898 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
18899 (grub_vtop): Moved from here ...
18900 * include/grub/mips/memory.h (grub_vtop): ... here.
18901 (grub_map_memory): Moved from here ...
18902 * include/grub/mips/memory.h (grub_map_memory): ... here.
18903 (grub_unmap_memory): Moved from here ...
18904 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
18905 (grub_machine_mmap_iterate): Moved from here ...
18906 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
18907 (grub_mmap_get_lower): Moved from here ...
18908 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
18909 (grub_mmap_get_upper): Moved from here ...
18910 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
18911 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
18913 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
18914 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
18916 * include/grub/mips/time.h (grub_get_rtc): ... here.
18917 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
18919 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
18920 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
18922 * include/grub/mips/time.h (grub_cpu_idle): ... here.
18923 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
18925 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
18926 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
18927 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
18928 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
18929 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
18930 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
18931 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
18932 (GRUB_MACHINE_LINK_ADDR): Likewise.
18933 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
18935 * util/grub-install.in: Run dvhtool on ARC.
18936 * util/grub-mkimage.c (image_targets): Add mips-arc.
18937 (generate_image): Handle ECOFF output for mips-arc.
18939 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18941 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
18944 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18946 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
18947 after enabling port.
18949 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18951 Skip incorrect USB devices.
18953 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
18955 * include/grub/usb.h (grub_usb_err_t): New enum value
18956 GRUB_USB_ERR_BADDEVICE.
18958 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18960 Fuloong video init support.
18962 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
18964 (grub_vga_read_arx): New function.
18965 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
18967 (framebuffer): New members io, mmioptr and mmiobase.
18968 (read_sis_cmd): New function.
18969 (write_sis_cmd): Likewise.
18970 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
18971 rather than 640x400.
18972 * grub-core/video/sis315_init.c: New file.
18974 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18976 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
18978 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
18979 to grub_dl_register_symbol.
18981 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18983 Fix compilation errors.
18985 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
18986 potentially unused.
18987 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
18988 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
18989 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
18990 to loongson machines.
18992 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18994 Several FS mtime support.
18996 * grub-core/fs/affs.c (grub_affs_time): New struct.
18997 (grub_affs_file): New field mtime.
18998 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
18999 type. Removed 'size'. New field 'di'. All users updated.
19000 (grub_affs_mount): Simplify checsum checking.
19001 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19002 (grub_affs_dir): Handle mtime.
19003 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19004 (grub_cpio_dir): Likewise.
19005 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19006 (grub_hfs_filerec): New field mtime.
19007 (grub_hfs_dir): Handle mtime.
19008 (grub_hfs_mtime): New function.
19009 (grub_hfs_fs): Register grub_hfs_mtime.
19010 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19011 (grub_iso9660_dir): New field mtime.
19012 (grub_fshelp_node): New field dirent.
19013 (iso9660_to_unixtime): New function.
19014 (iso9660_to_unixtime2): Likewise.
19015 (grub_iso9660_read_symlink): Use node->dirent.
19016 (grub_iso9660_iterate_dir): Likewise.
19017 (grub_iso9660_dir): Set mtime.
19018 (grub_iso9660_mtime): New function.
19019 (grub_iso9660_fs): Register grub_iso9660_mtime.
19020 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19021 (grub_jfs_inode): New fields atime, ctime and mtime.
19022 (grub_jfs_dir): Set mtime.
19023 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19024 * grub-core/fs/ntfs.c (list_file): Set mtime.
19025 (grub_ntfs_dir): Likewise.
19026 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19027 (grub_reiserfs_iterate_dir): Set mtime.
19028 (grub_reiserfs_dir): Likewise.
19029 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19030 (grub_fshelp_node): Likewise.
19031 (grub_sfs_iterate_dir): Set mtime.
19032 (grub_sfs_dir): Likewise.
19033 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19034 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19035 (grub_xfs_inode): New fields atime, mtime, ctime.
19036 (grub_xfs_dir): Set mtime.
19037 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19038 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19039 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19041 Support UDF symlinks.
19043 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19044 (grub_ufs_read_symlink): New function. All users updated.
19046 Check amiga partmap checksum.
19048 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19049 (grub_amiga_partition): Likewise.
19050 (amiga_partition_map_checksum): New function.
19051 (amiga_partition_map_iterate): Check checksum.
19053 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19057 * Makefile.util.def (libgrubmods.a): Add romfs.
19058 * grub-core/Makefile.core.def (romfs): New module.
19059 * grub-core/fs/romfs.c: New file.
19061 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19063 Squashfs v4 support.
19065 * Makefile.util.def (libgrubmods.a): Add squash4.
19066 * grub-core/Makefile.core.def (squash4): New module.
19067 * grub-core/fs/squash4.c: New file.
19068 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19069 disk_input_start, disk_input.
19070 (get_byte): Handle disk_input.
19071 (grub_zlib_disk_read): New function.
19072 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19074 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19075 2011-05-15 Feiran Zheng <famcool@gmail.com>
19077 * Makefile.util.def (libgrubmods.a): Add minix3.
19078 * grub-core/Makefile.core.def (minix3): New module.
19079 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19080 (GRUB_MINIX_BSIZE): Removed.
19081 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19082 (grub_minix_ino_t): New type.
19083 (grub_minix_le_to_cpu_ino): New macro.
19084 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19085 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19086 (grub_minix_data): New field block_size.
19087 (grub_minix_read_file): Handle 64-bit correctly.
19088 * grub-core/fs/minix3.c: New file.
19090 2011-05-15 Tristan Gingold <gingold@free.fr>
19091 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19092 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19096 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19097 * configure.ac: Add ia64-efi target.
19098 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19099 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19100 * gentpl.py: Add ia64_efi platform.
19101 Rename x86_efi to efi and Add ia64-efi. All users updated.
19102 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19103 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19104 Remove kern/generic/rtc_get_time_ms.c on EFI.
19105 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19106 kern/ia64/dl_helper.c on ia64-efi.
19107 Add kern/emu/cache.c on emu.
19108 (linux): Use on loader/ia64/efi/linux.c on ia64.
19109 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19110 whether symbol is a function.
19111 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19112 (grub_symbol): New field 'isfunc'.
19113 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19114 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19115 (grub_dl_load_segments): Place all sections into the same region.
19116 [__ia64__]: Create trampolines and got.
19117 [GRUB_MACHINE_EMU]: Call mprotect.
19118 (grub_dl_resolve_symbols): Resolve symbol type as well.
19119 [__ia64__]: Create function descriptors.
19120 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19121 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19122 (grub_get_rtc): New function.
19123 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19124 * grub-core/kern/emu/cache.S: Renamed to ...
19125 * grub-core/kern/emu/cache_s.S: ... this.
19126 [__ia64__]: Add a nop.
19127 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19128 [__ia64__]: New function.
19129 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19130 * grub-core/kern/ia64/dl.c: New file.
19131 * grub-core/kern/ia64/dl_helper.c: Likewise.
19132 * grub-core/kern/ia64/efi/init.c: New file.
19133 * grub-core/kern/ia64/efi/startup.S: Likewise.
19134 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19135 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19136 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19137 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19138 * grub-core/loader/ia64/efi/linux.c: New file.
19139 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19140 (GRUB_MOD_DEP): Likewise.
19141 (grub_dl) [__ia64__]: New fields got and tramp.
19142 (grub_dl): New field 'base'.
19143 (grub_dl_register_symbol): New argument isfunc. All users updated.
19144 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19145 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19146 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19147 (grub_ia64_dl_get_tramp_got_size): New proto.
19148 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19149 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19150 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19151 * include/grub/efi/api.h: Skip call wrappers on ia64.
19152 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19153 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19154 * include/grub/elf.h (ELF_ST_INFO): New definition.
19155 * include/grub/ia64/efi/kernel.h: New file.
19156 * include/grub/ia64/efi/memory.h: Likewise.
19157 * include/grub/ia64/efi/time.h: Likewise.
19158 * include/grub/ia64/kernel.h: Likewise.
19159 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19160 * include/grub/ia64/time.h: New file.
19161 * include/grub/ia64/types.h: Likewise.
19162 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19163 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19165 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19166 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19167 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19168 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19170 (EFI64_HEADER_SIZE): New definition. All users updated.
19171 (image_targets): Add ia64-efi.
19172 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19173 jumpers_addr. All users updated.
19174 Create function descriptors.
19175 (count_funcs): New function.
19176 (unaligned_uint32): New struct.
19177 (MASK20): New definition.
19178 (MASK19): Likewise.
19179 (MASKF21): Likewise.
19180 (add_value_to_slot_20b): New function.
19181 (add_value_to_slot_21_real): Likewise.
19182 (add_value_to_slot_21): Likewise.
19183 (ia64_kernel_trampoline): New struct.
19184 (nopm): New variable.
19186 (make_trampoline): New function.
19187 (relocate_addresses): Handle ia64.
19188 (make_reloc_section): Likewise.
19189 (load_image): Likewise.
19191 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19193 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19194 warning. Move variables before code while on it.
19196 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19200 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19201 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19202 * grub-core/boot/mips/loongson/fuloong.S: New file.
19203 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19204 Explicitly init CS5536.
19205 [FULOONG]: Don't use serial until CS5536 is available.
19206 Set GPIO based on dumps.
19207 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19208 [FULOONG]: Handle GPIO and memory controller differences.
19209 Parse machine type in $a2.
19210 * grub-core/boot/mips/startup_raw.S: Determine and save the
19212 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19213 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19214 init on architecture type.
19215 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19216 SIS315E. Don't init at_keyboard on fuloong.
19217 (grub_halt): Support Fuloong.
19218 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19219 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19220 (loongson_machtypes): New array.
19221 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19223 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19224 config. All users updated. Handle CS5536 serial.
19225 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19226 default port on machine type. Register serial as inactive.
19227 * grub-core/video/sis315pro.c: New file.
19228 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19230 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19231 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19232 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19233 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19234 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19235 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19237 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19238 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19240 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19241 (grub_arch_machine): New extern var.
19242 * include/grub/mips/loongson/serial.h
19243 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19244 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19245 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19246 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19247 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19248 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19249 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19250 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19251 * include/grub/term.h (grub_term_register_input_inactive): New inline
19253 (grub_term_register_output_inactive): Likewise.
19254 * include/grub/video.h (grub_video_driver_id): New value
19255 GRUB_VIDEO_DRIVER_SIS315PRO.
19256 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19257 New field "names". All users updated.
19258 New field value IMAGE_FULOONG_FLASH.
19259 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19261 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19263 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19264 and add some clarification.
19266 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19268 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19269 platforms if kernel is compressed.
19271 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19273 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19274 unused modules since currently referrence counter isn't reliable and
19275 there isn't much memory to recover there anyway.
19277 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19279 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19280 rather than resetting it to allow modules to reference themselves
19283 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19285 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19286 counter on dependencies since grub_dl_unref already handles this.
19288 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19290 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19291 on error if not already done.
19293 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19295 Fix few potential memory misusage.
19297 * grub-core/font/font.c (load_font_index): Don't free char_index to
19299 (grub_font_load): Zero-fill font at alloc for safety.
19300 Close file on error.
19301 (free_font): Free bmp_idx.
19303 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19305 * docs/grub.texi (Installation): Fix several outdated claims.
19307 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19309 Handle module_license on windows.
19311 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19313 (insert_string): Make argument const char * instead of char *.
19314 (write_section_data): Handle long section names.
19315 Handle module_license.
19317 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19319 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19320 handle class-free menuentries.
19321 (grub_normal_add_menu_entry): Add a check to be sure.
19323 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19325 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19328 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19330 * configure.ac: Bump version to 1.99.
19332 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19334 Give ATA device a bit more time on first try in order to allow disks
19337 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19338 if dev->present is 1. Reset dev->present on failure.
19339 (grub_ata_device_initialize): Set dev->present to 1.
19340 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19341 (grub_ata_device): New member 'present'.
19343 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19345 * util/grub-mkimage.c (generate_image): Update hash.
19347 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19349 Flush caches on DMA memory.
19351 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19352 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19353 (grub_dma_free): Likewise.
19354 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19356 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19358 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19359 to avoid asm treating ld and sd as macros.
19361 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19363 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19366 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19368 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19369 grub_decompress_core since later would fail if grub_decompress_core
19372 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19374 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19375 R_MIPS_JALR since it's used by newer compiler.
19377 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19379 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19381 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19383 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19384 file_path to 0 for surety.
19385 (grub_chainloader_boot): Set exit_data to NULL.
19386 Unset the loader once done.
19387 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19389 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19391 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19392 unknown key into a dprintf.
19394 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19396 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19397 on first non-existant partition.
19399 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19401 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19403 Reported by: Mark Korenberg.
19405 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19407 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19410 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19412 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19413 before closing to ensure that it will be readable by grub-setup.
19415 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19417 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19418 (devpath_1): Use MAKE_PIWG_PATH.
19419 (devpath_2): Likewise.
19420 (devpath_3): Likewise.
19421 (devpath_4): Likewise.
19422 (devpath_5): Likewise.
19423 (devpath_6): Likewise.
19425 The appleldr.mod was checked that to be binary identical to previous
19428 2011-05-05 Zach <mikezackles>
19430 Support 2010 Macbooks.
19432 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19433 (devs): Add devpath_6.
19435 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19437 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19438 /dev/random. /dev/urandom is good enough for our purposes (salting).
19440 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19442 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19444 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19446 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
19449 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19451 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
19452 and not 0 on failure.
19454 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19456 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
19457 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
19458 disk; otherwise grub_fs_probe will not fall back to the next
19460 (grub_pxefs_open): Likewise, for consistency.
19461 Reported and tested by: Ezekiel Grave.
19463 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19465 * tests/partmap_test.in: Don't hardcode path to parted.
19466 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
19468 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
19470 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
19471 of `ls' to find out which devices are available.
19473 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19475 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
19476 than source address for efi mmap buffer.
19478 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19480 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
19481 wrong action on non-detecting the magic.
19483 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19485 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
19486 already supplied by another part of the module (fixes compilation on
19489 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19491 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
19492 match the one used by mdadm.
19494 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19496 * po/README: Add instructions for creating po/LINGUAS.
19498 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19500 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
19503 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
19504 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
19505 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
19506 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
19507 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
19508 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
19509 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
19510 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
19511 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
19512 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
19513 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
19514 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
19515 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
19516 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
19517 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
19518 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
19519 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
19520 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
19521 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
19522 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
19523 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
19524 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
19526 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19528 * grub-core/kern/emu/getroot.c
19529 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
19530 test that was incorrectly reintroduced in r3214.
19531 Reported by: Ian Dall. Fixes Savannah bug #33133.
19533 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19535 Fix stack pointer handling in 16-bit relocator.
19537 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
19538 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
19539 Fixes Ubuntu bug #683904.
19541 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19543 * configure.ac: Bump version to 1.99~rc2.
19545 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19547 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
19548 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
19549 * grub-core/lib/x86_64/setjmp.S: Likewise.
19550 * grub-core/lib/mips/setjmp.S: Likewise.
19551 * grub-core/lib/powerpc/setjmp.S: Likewise.
19552 * grub-core/lib/sparc64/setjmp.S: Likewise.
19554 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19556 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
19557 * grub-core/lib/efi/datetime.c: Likewise.
19559 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19561 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
19563 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
19564 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
19565 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
19567 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19569 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
19571 (grub_gfxterm_term_init): Likewise.
19573 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19575 Take into account the decorations the computing menu entry width.
19577 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
19578 (grub_gfxmenu_create_box): Register get_border_width.
19579 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
19581 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
19584 2011-04-18 Endres Puschner <code@e7p.de>
19586 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
19587 Don't skip first class.
19589 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19591 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
19593 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
19595 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19597 Complete 64-bit division support.
19599 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
19600 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
19601 * include/grub/misc.h (grub_divmod64): Rename to ...
19602 (grub_divmod64_full): ... this.
19603 (grub_divmod64): New inline function.
19605 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19607 * util/grub-mkimage.c (generate_image): Add forgotten comma.
19609 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19611 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
19612 performing the necessary test.
19614 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
19616 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
19617 (kfreebsd.elf): Likewise.
19618 (pc-chainloader.elf): Likewise.
19619 (ntldr.elf): Likewise.
19621 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
19623 Identify RAID by its UUID rather than (guessed) name.
19625 * grub-core/disk/raid.c (ascii2hex): New function.
19626 (grub_raid_open): Accept mduuid/%s specification.
19627 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
19628 (get_mdadm_uuid): ... this.
19629 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
19631 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
19633 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
19636 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
19638 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
19640 * util/grub.d/20_linux_xen.in: Likewise.
19642 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
19644 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
19645 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
19647 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
19648 Build a list of relevant visible mounts using the mnt_id and
19649 parent_mnt_id fields, and then scan that list at the end.
19651 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19653 * docs/grub.texi (normal): New section.
19654 (normal_exit): New section.
19655 (Embedded configuration): Add reference to normal.
19656 (GRUB only offers a rescue shell): Likewise.
19657 * docs/grub-dev.texi (Error Handling): Fix typo.
19659 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19661 * NEWS: Drop obsolete entry about probe-only btrfs support.
19663 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19665 * util/import_gcry.py: Fix typo.
19667 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19669 * NEWS: Add btrfs support.
19671 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19672 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
19674 BtrFS support. Written by me (Vladimir) with important bugfixes and
19675 even more important testing by Colin.
19677 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
19678 * grub-core/Makefile.core.def (btrfs): Add crc.c.
19679 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
19680 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
19681 mem_input_off and mem_input. All users updated to accept in-RAM input.
19682 (gzio_seek): New function.
19683 (test_zlib_header): Likewise.
19684 (grub_gzio_read): Likewise.
19685 (grub_zlib_decompress): Likewise.
19686 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
19687 Accept partial and non-virtual mounts.
19688 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
19689 avoid receiving /dev/dm-X as device.
19690 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
19691 Handle bind and partial mounts.
19692 * grub-core/lib/crc.c: New file.
19693 * include/grub/deflate.h: Likewise.
19694 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
19696 * include/grub/lib/crc.h: New file.
19698 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19700 Implement automatic module license checking according to new GNU
19703 * grub-core/kern/dl.c (grub_dl_check_license): New function.
19704 (grub_dl_load_core): Use grub_dl_check_license.
19705 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
19706 (GRUB_MOD_LICENSE): Likewise.
19707 (GRUB_MOD_DUAL_LICENSE): Likewise.
19708 All modules updated.
19710 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
19712 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
19713 reserved_first_sector to 1. btrfs reserves plenty of space for boot
19715 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
19717 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19719 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
19721 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19723 * util/grub-fstest.c (read_file): Report GRUB error if file opening
19726 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19728 * grub-core/kern/file.c (grub_file_open): Don't take into account the
19729 parenthesis in the middle of the filename.
19731 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19733 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
19734 rather than trying to put initrd way too high.
19735 Reported by: Ryan Lortie <desrt@desrt.ca>
19737 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19739 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
19740 improperly removed string.
19742 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19744 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
19746 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
19747 (open_device) Likewise.
19748 (grub_util_biosdisk_close): Likewise.
19749 Reported by: Mark Korenberg.
19751 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
19753 * util/grub-mkconfig_lib.in: Add missing quotes.
19755 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
19757 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
19760 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19762 Dynamically count the number of lines for the lower banner.
19764 * grub-core/normal/menu_entry.c (per_term_screen): New member
19766 (print_down): Use num_entries.
19767 (update_screen): Likewise.
19768 (grub_menu_entry_run): Set num_entries.
19769 * grub-core/normal/menu_text.c (menu_viewer_data): New member
19771 (grub_print_message_indented): Move real part to ...
19772 (grub_print_message_indented_real): ... here. Additional argument
19774 (draw_border): Additional argument num_entries.
19775 (print_message): Additional argument dry_run.
19776 (print_entries): Receive menu viewer data.
19777 (grub_menu_init_page): New argment num_entries.
19778 (menu_text_set_chosen_entry): Use num_entries.
19779 (grub_menu_try_text): Likewise.
19780 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
19782 (grub_ucs4_count_lines): New function.
19783 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
19784 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
19785 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
19786 (grub_term_border_height): Likewise.
19787 (grub_term_num_entries): Likewise.
19789 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19791 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
19792 Remove now unused string.
19794 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
19796 * docs/grub-dev.texi (Finding your way around): Update for 1.99
19798 (Getting started): GRUB is developed in Bazaar now, not Subversion.
19800 (Comment): Fix typo.
19801 (Getting started): General copy-editing.
19802 (Typical Development Experience): Likewise.
19803 (Error Handling): Likewise.
19804 (Video API): Likewise.
19806 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
19808 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
19811 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19813 * util/grub-mkimage.c (main): Handle special naming of yeeloong
19816 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
19818 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
19819 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
19822 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19824 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
19825 grub_strcpy since the lines aren't necessarily 0-terminated.
19827 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19829 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
19832 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19834 * grub-core/commands/probe.c (options): Argument to set isn't optional.
19835 (GRUB_MOD_INIT): DEVICE isn't optional.
19837 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19839 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
19840 word on new line if it's too long anyway. Fixes a hang.
19842 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19844 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
19846 * util/grub-setup.c (main): Reuse md device name if available.
19847 * util/raid.c (grub_util_raid_getmembers): Receive device name and
19848 not GRUB name as argument.
19849 Based on patch by: Florian Wagner <fwagner>.
19851 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19853 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
19854 Place mbi on low memory for better compatibility.
19856 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19858 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
19860 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19861 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
19863 * autogen.sh: Ensure that collate and ctype locale is C.
19864 * conf/Makefile.common: Likewise.
19866 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19868 * grub-core/normal/menu.c: Add missing include.
19870 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19872 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
19874 2011-04-08 Martin Zuther <mzuther@mzuther.de>
19876 * util/grub-mkconfig.in: Ignore emacsen backup.
19878 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19880 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
19882 (grub_util_biosdisk_close): Likewise.
19884 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19886 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
19887 const attribute and use grub_isdigit.
19889 2011-04-06 Andrey <dev_null@ukr.net>
19891 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
19894 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19896 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
19897 useful grub_dprintf's.
19899 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19901 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
19903 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19905 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
19907 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19909 Output errors if theme loading failed.
19911 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
19912 grub_gfxterm_fullscreen on error paths to ...
19913 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
19914 theme loading error.
19916 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19918 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
19919 space for older compilers.
19920 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
19922 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19924 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
19925 and report them as not RAID members since they are useless for GRUB.
19926 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19928 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19930 Increase LVM implementation robustness in order not to crash on
19931 configurations like pvmove. Previously code assumed that in some places
19932 only lvs or only pvs are used whereas it seems that they are used
19935 * grub-core/disk/lvm.c (read_node): New function.
19936 (read_lv): Use read_node.
19937 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
19938 Match volumes only at the end when all lvs are found. Take both
19939 pvs (first) and lvs (second) into account.
19940 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
19941 mirror_* into node_*. All users updated.
19942 (grub_lvm_stripe): Merge this ...
19943 (grub_lvm_mirror): ... and this ...
19944 (grub_lvm_node): ... into this. All users updated.
19946 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19948 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
19949 of function to allow further scanning for LVMs.
19951 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19953 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
19954 on failed seek as it breaks open fd reusage.
19956 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19958 * util/grub-install.in: Add a recommendation to use --recheck before
19961 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19963 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
19966 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19968 GRUB developper manual based on existing Internals section and
19969 contributions by the various authors with active copyright assignment.
19971 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
19972 * docs/font_char_metrics.png: New file.
19973 * docs/font_char_metrics.txt: Likewise.
19974 * docs/grub-dev.texi: Likewise.
19975 * docs/grub.texi (Internals): Move from here ...
19976 * docs/grub-dev.texi: ... here.
19978 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
19980 Store the loopback device as data on loopback grub_disk structures,
19981 rather than the file it points to. This fixes use of freed memory
19982 if an existing loopback device is replaced.
19984 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
19985 disk->data, not dev->file.
19986 (grub_loopback_read): Adjust file assignment to match.
19987 Fixes Ubuntu bug #742967.
19989 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
19991 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
19992 when replacing an existing device.
19994 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
19996 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
19997 memory corruptions.
19999 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20001 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20002 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20003 (grub_jfs_read_inode): Likewise.
20004 (grub_jfs_opendir): Likewise. Remove now useless casts.
20005 (grub_jfs_getent): Likewise.
20006 Make ino a grub_uint32_t rather than int.
20007 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20008 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20009 division and module with bit operations.
20010 (grub_jfs_find_file): Make ino a grub_uint32_t.
20011 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20013 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20015 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20016 warning. (This was in fact always initialised before use, but GCC
20017 wasn't smart enough to prove that.)
20018 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20020 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20022 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20024 (efi_wrap_1): Likewise.
20025 (efi_wrap_2): Likewise.
20026 (efi_wrap_3): Likewise.
20027 (efi_wrap_4): Likewise.
20028 (efi_wrap_5): Likewise.
20029 (efi_wrap_6): Likewise.
20030 (efi_wrap_10): Likewise.
20031 Based on information by: Red Hat/Peter Jones.
20033 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20035 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20036 set-but-not-used variable.
20038 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20040 * docs/grub.texi (Simple configuration): Be more explicit about
20041 GRUB_DEFAULT, and add an example.
20042 Reported by: Leslie Rhorer.
20044 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20046 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20049 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20051 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20052 * util/grub.d/20_linux_xen.in: Likewise.
20054 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20056 * util/grub.d/10_linux.in: Try alternative config filenames where
20057 we parse config file.
20058 * util/grub.d/20_linux_xen.in: Likewise.
20060 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20062 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20063 * util/grub.d/20_linux_xen.in: Likewise.
20065 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20067 * grub-core/disk/raid.c (insert_array): Add few potentially
20068 useful grub_util_info.
20069 (grub_raid_register): Likewise.
20071 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20073 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20074 Preserve partition number in mdadm code path.
20076 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20078 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20079 few potentially useful grub_util_info.
20081 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20083 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20085 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20087 * docs/grub.texi (default): Use @example rather than nested
20088 itemized lists to avoid breaking gendocs.
20090 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20092 * docs/grub.texi (Future): Update.
20094 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20096 * docs/grub.texi (Environment): New chapter.
20097 (Changes from GRUB Legacy): Link to "Environment block" section for
20098 details of limitations.
20099 (Simple configuration): Likewise. Link to documentation of gfxmode
20100 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20102 (Shell-like scripting): Note that normal variables are stored in the
20104 (gettext): Link to documentation of lang and locale_dir.
20105 (list_env): New section.
20106 (load_env): New section.
20107 (save_env): New section.
20109 (Reporting bugs): Fix typo.
20111 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20113 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20116 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20118 * grub-core/term/at_keyboard.c (set_scancodes)
20119 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20121 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20123 * docs/grub.texi (Menu-specific commands): Remove some semantics
20124 that were true in GRUB Legacy but not in GRUB 2.
20125 (submenu): New section.
20126 (false): New section.
20127 (read): New section.
20128 (true): New section.
20130 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20132 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20134 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20136 * docs/grub.texi (Simple configuration): Explain some of the
20137 current limitations of grub-mkconfig.
20138 Reported by: Leslie Rhorer.
20140 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20142 Old macs search for boot.efi rather than for bootia32.efi.
20144 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20145 * util/grub-mkrescue.in: Likewise.
20146 Suggested by: Peter Jones.
20148 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20150 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20152 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20154 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20155 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20156 (grub_lvm_mirror): New struct.
20157 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20158 (grub_lvm_iterate): Iterate only visible volumes.
20159 (grub_lvm_read): Factor out to ..
20160 (read_lv): ... this. Support mirrors.
20161 (grub_lvm_read): New wrapper function.
20162 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20163 stripped or mirrored.
20165 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20167 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20169 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20171 * docs/grub.texi (loopback): New section.
20173 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20175 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20178 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20180 * docs/grub.texi (BIOS installation): New section, partly based on
20181 previous text in other sections.
20182 (Installing GRUB using grub-install): Replace BIOS discussion with a
20184 (Images): Likewise.
20186 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20188 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20189 [HAVE_DIOCGDINFO]: Add safety checks.
20191 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20193 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20194 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20196 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20198 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20199 real_sb->size is zero (e.g. RAID-0), get the disk size from
20200 real_sb->data_size instead.
20201 Fixes Ubuntu bug #743136.
20203 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20205 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20206 printf clauses for printing size and start.
20208 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20210 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20211 Reported and tested by: Timothy Nikkel.
20213 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20215 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20216 (dirty_region_add_real): ... this.
20217 (dirty_region_add): Don't discard margin refresh when performing
20220 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20222 * grub-core/lib/relocator.c (allocate_regstart)
20223 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20224 terminals are capabple of malloc-free operation.
20225 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20226 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20228 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20230 * util/grub-setup.c: Copy the partition table zone if floppy support
20231 is disabled, even if no partition table is found.
20233 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20234 during POST if an invalid partition table is contained in the PBR
20235 of the active partition when GRUB is installed to a partition.
20237 2011-03-28 Colin Watson <cjwatson@debian.org>
20239 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20242 2011-03-28 Colin Watson <cjwatson@debian.org>
20244 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20245 to be specific about what kind of RAID device we're scanning for.
20247 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20249 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20250 return freed string.
20252 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20254 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20256 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20258 Use libgeom on FreeBSD to detect partitions.
20260 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20261 (grub-mkrelpath): Likewise.
20262 (grub-script-check): Likewise.
20263 (grub-editenv): Likewise.
20264 (grub-mkpasswd-pbkdf2): Likewise.
20265 (grub-fstest): Likewise.
20266 (grub-mkfont): Likewise.
20267 (grub-mkdevicemap): Likewise.
20268 (grub-probe): Likewise.
20269 (grub-setup): Likewise.
20270 (grub-ofpathname): Likewise.
20271 (grub-mklayout): Likewise.
20272 (example_unit_test): Likewise.
20273 (grub-menulst2cfg): Likewise.
20274 * grub-core/Makefile.core.def (grub-emu): Likewise.
20275 (grub-emu-lite): Likewise.
20276 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20277 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20278 define HAVE_DIOCGDINFO.
20279 (follow_geom_up) [FreeBSD]: New function.
20280 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20281 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20282 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20283 unconditionally of HAVE_DIOCGDINFO.
20285 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20287 Fix FreeBSD compilation problem.
20289 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20290 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20292 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20294 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20295 Switch back to page zero before loading a kernel, since some kernel
20296 drivers expect that.
20297 Thanks to: Felix Kuehling.
20299 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20301 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20302 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20303 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20305 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20307 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20308 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20310 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20312 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20313 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20314 malloc is disabled.
20316 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20318 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20319 for modules headers when counting the needed allocation size.
20321 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20323 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20324 if no ASCII character is found to prevent crash.
20326 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20328 * grub-core/video/bitmap.c (match_extension): Ignore case.
20330 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20332 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20334 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20336 * grub-core/script/parser.y: Declare "time" as valid argument.
20338 2011-03-23 Peter Jones <pjones@redhat.com>
20340 Fix incorrect assert failure reporting.
20342 * grub-core/tests/example_functional_test.c (example_test): Add
20344 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20345 (failure_start): ...this. Check that malloc succeeded.
20346 Don't call xvasprintf. Return failure struct.
20347 (failure_append_vtext): New function.
20348 (failure_append_text): Likewise.
20349 (add_failure): Likewise.
20350 (grub_test_assert_helper): Likewise.
20351 * include/grub/test.h (grub_test_assert_helper): New declaration.
20352 (grub_test_assert): Macro rewritten.
20354 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20356 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20358 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20360 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20362 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20364 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20365 into GRUB-style one.
20367 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20369 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20370 error and not grub_errno.
20371 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20373 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20375 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20376 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20378 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20380 * grub-core/efiemu/i386/pc/cfgtables.c
20381 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20382 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20383 (grub_xnu_unlock): Likewise.
20384 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20386 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20388 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20389 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20390 * grub-core/commands/hashsum.c (aliases): Likewise.
20391 * grub-core/commands/setpci.c (pci_registers): Likewise.
20392 * grub-core/disk/usbms.c (attach_hook): Likewise.
20393 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20394 (zio_checksum_table): Likewise.
20395 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20396 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20397 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20398 * grub-core/lib/relocator.c (leftovers): Likewise.
20399 (extra_blocks): Likewise.
20400 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20401 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20402 (modules_last): Likewise.
20403 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20404 (devices): Likewise.
20405 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20406 (modules_last): Likewise.
20407 * grub-core/normal/auth.c (users): Likewise.
20408 * grub-core/normal/context.c (initial_menu): Likewise.
20409 (current_menu): Likewise.
20410 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20411 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20412 (grub_serial_terminfo_input_template): Likewise.
20413 (grub_serial_terminfo_output_template): Likewise.
20414 (grub_serial_terminfo_input): Likewise.
20415 (grub_serial_terminfo_output): Likewise.
20416 (registered): Likewise.
20417 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20419 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20421 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20422 grub_video_mode_type_t.
20423 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20424 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20425 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20427 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20429 * util/grub-install.in: Correct the x86-64 name as x86_64.
20431 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
20433 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20434 initial chunk read from the kernel always includes GRUB's multiboot
20435 header, which is now outside the first sector.
20437 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20439 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20440 cached mmap_size, so that this works correctly when called multiple
20442 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20444 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20446 * docs/grub.texi (Simple configuration): Tidy up formatting.
20448 2011-03-07 Szymon Janc <szymon@janc.net.pl>
20450 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
20451 Set-but-not-used variable removed.
20453 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20455 Workaround yet another IEEE1275 bug.
20457 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
20458 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
20459 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
20460 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
20462 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20463 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
20465 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20467 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
20470 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
20472 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
20473 empty, since in that case we can only generate either nothing or a
20474 syntactically invalid configuration file.
20475 Reported by: Michal Suchanek. Fixes Debian bug #612898.
20477 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20479 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
20480 (Making a GRUB bootable CD-ROM): Likewise.
20481 (Invoking grub-mkrescue): New section.
20482 Reported by: Yann Dirson. Fixes Debian bug #612585.
20484 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20486 * util/grub-install.in: Remove unnecessary brackets from tr
20488 * util/grub.d/10_hurd.in: Likewise.
20489 * util/grub.d/10_kfreebsd.in: Likewise.
20490 * util/grub.d/10_linux.in: Likewise.
20491 * util/grub.d/20_linux_xen.in: Likewise.
20492 Reported by: Jamie Heilman. Fixes Debian bug #612564.
20494 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
20496 * include/grub/file.h (not_easly_seekable): Rename to ...
20497 (not_easily_seekable): ... this. Update all users.
20499 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
20501 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
20504 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
20506 * util/grub-mkimage.c (generate_image): Refuse to create the images
20507 bigger than the actual flash (512K) in Loongson machines. 512K is also
20508 the biggest chip supported by them.
20510 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20512 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
20514 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
20516 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
20517 super_offset field.
20519 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20521 * util/grub-install.in: Ignore install device on platforms
20522 where it doesn't make sense. Always use UUIDs except on pc, efi and
20524 Reported by: Daniel Kahn Gillmor.
20526 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20528 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
20530 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20532 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
20533 (iterate_real): Don't rely on partition being non-NULL.
20535 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20537 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
20538 supported platforms. Put a compile time assert for this rather than
20539 generate a warning with 32-bit shift.
20541 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20543 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
20544 logical expression more readable.
20546 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20548 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
20549 even if some elements have a name.
20550 Reported by: Alexander GQ Gerasiov.
20552 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
20554 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
20555 path unreadable if `grub-probe -t abstraction' fails, for example if
20556 memberlist fails on an LVM volume group.
20557 Reported by: Darius Jahandarie.
20559 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
20561 * docs/grub.texi (Simple configuration): Document
20562 GRUB_PRELOAD_MODULES.
20564 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
20566 * .bzrignore: Remove nonexistent grub-pbkdf2.
20568 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
20570 * configure.ac: Bump version to 1.99~rc1.
20572 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
20574 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
20577 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
20579 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
20582 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
20584 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
20586 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20588 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
20591 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20593 Fix compilation on cygwin.
20595 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
20596 -R .drectve on cygwin.
20597 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
20598 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
20599 (COND_CYGWIN): New condition.
20600 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
20601 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
20602 not @TARGET_OBJ2ELF@.
20603 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
20604 type to determine whether aux is to be used.
20606 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20608 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
20609 realpath'ed device string.
20610 Handle floppy (somewhat).
20611 Issue error in unknown case rather than garbage.
20612 Reported by: Axel Beckert.
20614 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20616 * util/grub.d/00_header.in (load_video): Handle the case when no video
20618 Thanks to: Axel Beckert.
20620 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20622 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
20623 variable. Fixes problem on big endian platforms.
20625 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20627 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
20628 It doesn't work well there.
20630 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20632 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
20634 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
20635 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
20638 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20640 Use alias->path rather than buggy "canon".
20642 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
20643 (ofdisk_hash_add): New argument curcan. All users updated.
20645 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
20647 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
20649 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20651 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
20652 loadmask before doing any calculations. Use correct type for offset.
20653 (grub_linux_load64): Likewise.
20655 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
20657 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
20659 (console_grub_equivalences_unshift): Likewise.
20660 Reported by: Daniel Dehennin.
20662 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20664 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
20665 (set_env_limn_ro): Likewise.
20666 (GRUB_MOD_INIT): Likewise.
20667 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
20668 ARRAY_SIZE while on it.
20669 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
20670 * grub-core/normal/context.c (grub_env_export): Move from here ...
20671 * grub-core/kern/env.c (grub_env_export): ... here.
20672 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
20674 * grub-core/kern/main.c (grub_main): Export root and prefix.
20675 * include/grub/env.h (grub_env_export): Export.
20676 Reported by: Seth Goldberg.
20678 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20680 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20681 Take into account space used by ELF sections and multiboot palette.
20682 Reported by: Grégoire Sutre.
20684 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20688 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20690 Pass more appropriate video id to Linux.
20692 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
20693 grub_video_get_driver_id and variable gfxpayloadforcelfb to
20695 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
20696 shift params->lfb_size.
20697 * include/grub/i386/linux.h: Make an enume out of have_vga values.
20699 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20701 * util/grub-menulst2cfg.c: Add missing include of misc.h.
20703 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20705 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
20706 separator and pass bootpath/devid even if only one of them is available.
20707 Reported by: Seth Goldberg.
20709 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20711 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
20712 implementations bug on them.
20714 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
20716 (filter_memory_map): Likewise.
20718 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20720 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
20721 Reported by: nebuchadnezzar.
20723 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20725 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
20726 Reported by: nebuchadnezzar.
20728 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20730 Submenu default support.
20732 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
20733 auto_boot. All users updated.
20735 Handle chosen and default with submenus.
20736 (grub_menu_execute_with_fallback): Declared static.
20737 Don't notify failure if autobooted. Upper level does it.
20738 (menuentry_eq): New function.
20739 (get_entry_number): Use menuentry_eq.
20740 (show_menu): New parameter "autobooted". All users updated.
20741 (grub_show_menu): Likewise.
20742 * include/grub/normal.h (grub_show_menu): Likewise.
20743 * include/grub/menu.h (grub_menu_execute_entry): Removed.
20744 (grub_menu_execute_with_fallback): Likewise.
20746 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20748 * util/grub-mklayout.c (usage): Update help text.
20750 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20752 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
20754 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20756 * util/grub-menulst2cfg.c (main): Trim the line.
20758 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20760 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
20761 (grub_machine_init): Don't check amount of low memory as reportedly
20762 INT 12h can be broken and if low memory is too low we wouldn't have
20763 gotten into grub_machine_init anyway.
20765 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20767 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
20768 (grub_machine_mmap_iterate): Take low memory into account
20770 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20772 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
20774 Reported by: TiCPU.
20776 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20778 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
20781 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
20783 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
20784 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
20786 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
20788 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
20789 openbsd and netbsd types being in part_bsd module.
20791 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20793 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
20794 (_FILE_OFFSET_BITS): Likewise.
20795 Reported by: Seth Goldberg.
20797 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20799 * configure.ac: Check for libdevmapper header.
20801 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20803 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
20805 (fzap_lookup): Likewise.
20806 (dnode_get): Likewise.
20807 (make_mdn): Likewise.
20808 (zfs_mount): Likewise.
20809 (fzap_iterate): Use temporary pointer to avoid aliasing.
20810 (grub_zfs_read): Likewise.
20811 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
20812 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
20813 pointers to avoid aliasing.
20814 (grub_cmd_xnu_kernel64): Likewise.
20815 (grub_xnu_load_driver): Likewise.
20817 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20819 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
20821 (grub_cmd_terminal_output): Likewise.
20822 Reported and tested by: Grégoire Sutre.
20824 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20826 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
20828 Reported and tested by: Grégoire Sutre.
20830 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20832 * configure.ac: Do CPU substitution even if it's specified explicitly.
20833 Reported and tested by: Alain Greppin.
20835 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20837 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
20838 Reported and tested by: Alain Greppin.
20840 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20842 Satisfy some bison versions need for inttypes.h.
20844 * grub-core/lib/posix_wrap/inttypes.h: New file.
20845 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
20846 (int16_t): Likewise.
20847 (int32_t): Likewise.
20848 (int64_t): Likewise.
20849 Reported and tested by: Alain Greppin.
20851 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20853 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
20854 Silence spurious warning.
20855 Reported and tested by: Alain Greppin.
20857 2011-01-07 Szymon Janc <szymon@janc.net.pl>
20859 * docs/grub.texi (Support automatic decompression): Update with xz
20860 decompression support.
20862 2011-01-07 Szymon Janc <szymon@janc.net.pl>
20864 Improve loaders' kernel command line handling.
20866 * grub-core/lib/cmdline.c: New file.
20867 * include/grub/lib/cmdline.h: Likewise.
20868 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
20869 grub_create_loader_cmdline to create kernel command line.
20870 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20871 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
20872 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
20873 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
20874 (linux): Add lib/cmdline.c on common.
20876 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20878 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
20879 inopos might be unaligned.
20881 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20883 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
20884 endian transformations.
20885 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20886 Based on report by: Doug Nazar.
20888 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
20890 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
20891 array->members[i].start_sector.
20892 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
20894 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20896 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
20897 Reported and tested by: Grégoire Sutre.
20899 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
20901 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
20902 avoid causing test failures by clearing the screen.
20904 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
20906 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20907 Fix prefix check to handle the case where dir ends with a slash
20908 (most significantly, "/" itself).
20909 Reported by: Michael Vogt.
20911 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20913 Run terminfo_cls on initing terminfo output to clear the screen and
20914 move the cursor to (0,0).
20916 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
20917 Call grub_terminfo_output_init.
20918 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
20919 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
20920 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
20922 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20924 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
20927 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20929 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
20932 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20934 The E820 type 5 is BADRAM, not EXEC_CODE.
20936 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
20937 (GRUB_E820_BADRAM): New define.
20938 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
20939 into reserved. Propagate BADRAM.
20940 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
20941 (GRUB_E820_BADRAM): New define.
20943 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20945 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
20946 Ignore the memory post-4G.
20947 (grub_relocator_firmware_alloc_region): Additional debug statement.
20949 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20951 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
20953 Reported by: David Pravec.
20955 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20957 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
20960 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20962 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
20964 (grub_reed_solomon_recover): Likewise.
20966 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20968 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
20970 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20972 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
20975 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
20977 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
20978 descriptions of extract_legacy_entries_source and
20979 extract_legacy_entries_configfile.
20980 Reported by: Seung Soo, Ha.
20982 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
20984 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
20985 on devices that do not implement function 0.
20987 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
20989 * grub-core/fs/hfsplus.c: Make parent unsigned.
20990 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
20992 (grub_hfsplus_cmp_extkey): Likewise
20994 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
20996 * util/grub-install.in: Correctly use bootloader_id and not
20997 GRUB_DISTRIBUTOR on efibootmgr line.
20999 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21001 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21003 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21005 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21006 Xen and reorder menu item wording to make it clearer that this entry
21007 will launch Xen. Print separate messages when loading Xen and
21010 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21012 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21013 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21014 loop in case of incorrect amiga partmap.
21016 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21018 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21019 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21022 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21024 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21026 Reported by: crocket
21028 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21030 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21032 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21034 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21036 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21038 (grub_cmd_xnu_kextdir): Likewise.
21039 (grub_cmd_xnu_splash): Likewise.
21041 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21043 Avoid using Reed-Solomon with 0 redundancy.
21045 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21046 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21048 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21049 (grub_reed_solomon_recover): Likewise.
21051 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21053 Don't use disk subsystem in freebsd_boot.
21055 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21056 (freebsd_biosdev): Likewise.
21057 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21058 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21060 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21062 Handling of files of unknown size is currently limited. They can't be
21063 used e.g. for initrd or modules. Moreover gzip handling of not
21064 easily seekable files is buggy. Disable unknown file size for now. May
21065 be inefficient but works.
21067 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21068 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21070 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21072 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21075 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21077 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21079 2010-12-25 Shea Levy <shlevy>
21081 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21083 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21085 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21086 Windows Server 2008.
21087 Reported by: Devin Giddings.
21089 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21091 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21092 writing an error message because of async power management.
21093 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21094 (grub_reboot): Likewise.
21096 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21098 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21099 keep unit tests from failing when they shouldn't.
21101 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21103 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21104 previous patch increased the size of the RS code by 20 bytes (at
21105 least with gcc-4.4), so increase this by 20 bytes to match.
21106 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21108 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21110 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21111 scratch area. Make sure to initialise chosen in standalone mode as
21112 well as non-standalone.
21113 Reported by: Robert Hooker and Andy Whitcroft.
21114 Tested by: Andy Whitcroft.
21116 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21118 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21119 constructing a new unescaped string and passing it to grub_xputs in
21120 one go, rather than passing characters to grub_printf one at a time.
21122 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21124 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21125 initialising utf16.
21127 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21129 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21130 comment. Add an extra layer of quotation, requiring the output of
21131 this function to be used in a printf format string.
21132 (gettext_printf): New function.
21133 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21134 Extract translatable strings from here-documents and use a temporary
21135 variable instead, so that xgettext can find them.
21136 * util/grub.d/10_kfreebsd.in: Likewise.
21137 * util/grub.d/10_linux.in: Likewise.
21138 * util/grub.d/20_linux_xen.in: Likewise.
21140 * po/grub.d.sed: New file.
21141 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21142 arguments. Set c-format flags on all strings extracted from
21143 util/grub.d/ (xgettext refuses to include these itself for strings
21144 it extracted from a shell file, but these really are c-format).
21146 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21148 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21149 Avoid next pointing to nowhere.
21151 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21153 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21154 rather than assuming than rootblock is exactly in the middle.
21155 (grub_affs_label): Likewise.
21157 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21159 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21160 reserved_first_sector to 0.
21161 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21162 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21163 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21165 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21167 Fix handling of UTF-16 UDF labels.
21169 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21170 (read_string): .. here.
21171 (grub_udf_label): Use read_string.
21173 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21175 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21176 editor under argument scope.
21177 Reported by: Jordan Uggla
21179 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21181 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21183 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21185 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21186 line, and other keys scroll an entire page (previous handling was
21187 for \r and \n to scroll a page and other keys to scroll two lines).
21189 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21191 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21192 Set ptrdest to correct get_physical_target_address rather than
21193 incorrect get_virtual_current_address.
21195 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21197 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21198 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21200 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21202 * .bzrignore: Ignore grub-core/rs_decoder.S.
21204 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21206 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21207 .mo/.mo.gz opening sequence to ...
21208 (grub_mofile_open_lang): ... here.
21209 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21210 * util/grub.d/00_header.in (grub_lang): Include country part of
21212 Reported by: Mario Limonciello.
21214 2010-12-09 Robert Millan <rmh@gnu.org>
21216 * NEWS: Document addition of ZFS support.
21218 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21220 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21221 rather than `/ 2', as the latter requires -Wa,--divide which would
21222 require bumping our minimum binutils version.
21224 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21226 * util/grub-script-check.c (main): Print script line number on
21229 2010-12-01 Robert Millan <rmh@gnu.org>
21231 * grub-core/fs/zfs/zfs.c: New file.
21232 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21233 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21234 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21235 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21237 * include/grub/zfs/dmu.h: Likewise.
21238 * include/grub/zfs/dmu_objset.h: Likewise.
21239 * include/grub/zfs/dnode.h: Likewise.
21240 * include/grub/zfs/dsl_dataset.h: Likewise.
21241 * include/grub/zfs/dsl_dir.h: Likewise.
21242 * include/grub/zfs/sa_impl.h: Likewise.
21243 * include/grub/zfs/spa.h: Likewise.
21244 * include/grub/zfs/uberblock_impl.h: Likewise.
21245 * include/grub/zfs/vdev_impl.h: Likewise.
21246 * include/grub/zfs/zap_impl.h: Likewise.
21247 * include/grub/zfs/zap_leaf.h: Likewise.
21248 * include/grub/zfs/zfs.h: Likewise.
21249 * include/grub/zfs/zfs_acl.h: Likewise.
21250 * include/grub/zfs/zfs_znode.h: Likewise.
21251 * include/grub/zfs/zil.h: Likewise.
21252 * include/grub/zfs/zio.h: Likewise.
21253 * include/grub/zfs/zio_checksum.h: Likewise.
21255 * Makefile.util.def: Build ZFS into libgrubmods.
21256 * grub-core/Makefile.core.def: Build zfs.mod.
21258 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21260 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21262 * grub-core/commands/wildcard.c (match_files): Likewise.
21264 2010-11-30 Robert Millan <rmh@gnu.org>
21266 * grub-core/loader/i386/bsd.c
21267 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21268 whether kernel is loaded using grub_loader_is_loaded(), rather
21269 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21270 certain error conditions.
21272 2010-11-30 Robert Millan <rmh@gnu.org>
21274 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21275 (grub_cmd_echo): Call grub_refresh() after printing a message.
21277 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21279 Avoid using tricks for initialising endian variables.
21281 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21283 (GRUB_MOD_INIT): Don't byte-swap.
21284 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21285 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21286 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21287 (grub_swap_bytes32_compile_time): Likewise.
21288 (grub_cpu_to_le32_compile_time): Likewise.
21289 (grub_cpu_to_le16_compile_time): Likewise.
21291 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21293 * util/grub-setup.c (setup): Stop recommending --force. People who
21294 understand the dangers of blocklists are able to find this option
21295 anyway and the ones who don't shouldn't use it anyway.
21297 2010-11-26 Robert Millan <rmh@gnu.org>
21299 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21302 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21304 Fix LVM-on-RAID probing.
21306 * util/grub-probe.c (probe): Remember which disk was detected as
21307 RAID (perhaps an LVM physical volume). Use that disk's raidname
21308 rather than that of the top-level disk.
21310 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21312 Fix cmdline argument quotes for setparams command of menuentry
21315 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21316 quotes for arguments.
21317 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21318 grub_strchrsub function instead.
21320 * include/grub/misc.h (grub_strchrsub): New function.
21322 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21324 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21325 effort by skipping "." and ".." entries up-front.
21326 Suggested by: Michael Lazarev.
21328 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21330 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21331 ldflags to ldadd, to fix link line ordering.
21332 (none_decompress): Likewise.
21334 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21336 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21338 (grub-emu-lite): Remove kern/emu/cache.S.
21340 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21342 * util/deviceiter.c (compare_devices): If the by-id link for a
21343 device couldn't be resolved, fall back to sorting by the by-id link
21344 rather than segfaulting.
21345 Reported and tested by: Daniel Mierswa.
21347 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21349 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21350 ldflags, to fix link line ordering.
21352 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21354 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21355 linkers are picky about this.
21357 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21359 * grub-core/Makefile.am (command.lst): Adjust sed expression
21360 ordering so that extended and priority commands aren't treated as
21363 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21365 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21366 Remove byte-swapping function calls, which are not valid in
21367 structure initialisers.
21368 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21370 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21371 grub_gpt_partition_type_bios_boot.
21373 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21375 Fix test program build on GNU/kFreeBSD.
21377 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21378 $(LIBNVPAIR)' library dependencies.
21380 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21382 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21384 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21386 * util/grub-install.in: Remove excessive quoting that broke
21387 installations to RAID devices.
21389 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21391 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21392 bootloader version instead of 0.
21394 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21396 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21399 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21401 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21402 retrieve the metadat sector if size isn't known.
21403 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21405 2010-11-18 Robert Millan <rmh@gnu.org>
21407 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21408 with grub_memcmp().
21410 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21412 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21414 Reported by: Jordan Uggla.
21416 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21418 Make better UTF compliant.
21420 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21421 sequences as incorrect.
21422 (grub_is_valid_utf8): Likewise.
21423 (grub_utf8_to_ucs4): Likewise.
21424 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21425 (grub_ucs4_to_utf8_alloc): Likewise.
21426 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21428 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21430 Make legacy_source behave like source.
21432 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21434 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21436 2010-11-16 Colin Watson <cjwatson@debian.org>
21438 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21439 (-Wunused implies -Wunused-parameter, but not vice versa).
21441 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
21443 * configure.ac: Make error messages less confusing by testing for
21444 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
21445 accepted, but produces a diagnostic if something else is wrong).
21447 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21449 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
21450 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
21452 (grub_keyboard_controller_init)
21453 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
21454 read the initial state since controller isn't inited yet.
21456 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21458 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
21459 allocate_regbeg may need to create new chunk header.
21461 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21463 Fix quoting in legacy parser.
21465 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
21467 (grub_legacy_parse): Likewise.
21468 Reported by: Jordan Uggla.
21469 Tested by: Jordan Uggla.
21471 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21473 Don't add -lgcc on i386 and x86_64.
21475 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
21476 * conf/Makefile.common (LDADD_KERNEL): Likewise.
21477 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
21479 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21481 * configure.ac: Add -Wno-trampolines when supported.
21483 2010-11-14 Modestas Vainius <modax@debian.org>
21485 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
21488 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21490 Add generic logical block size support for UDF.
21492 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
21493 (GRUB_UDF_BLKSZ): Removed.
21494 (struct grub_udf_data): New field "lbshift" to hold the logical block
21495 size of the file system in log2 format. All users updated.
21496 (sblocklist): Change type to unsigned.
21497 (grub_udf_mount): Change type of "sblklist" to unsigned.
21498 Move AVDP search before VRS recognition, because the latter requires
21499 knowledge of the logical block size, which is detected during the
21501 Detect and validate logical block size during AVDP search, adding
21502 support for block sizes 512, 1024 and 4096.
21503 Make VRS recognition independent of block size.
21505 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21507 Properly handle deleted files on UDF.
21509 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
21510 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
21513 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21515 Support reading files larger than 2 GiB.
21517 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
21518 "offset" to grub_off_t.
21519 (grub_udf_read_file): Likewise for parameter "pos".
21521 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21523 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
21525 (Simple configuration): Refer to Changes from GRUB Legacy about
21526 save_env availability.
21528 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21530 * util/grub-install.in: Ignore empty partition table detection
21531 instead of trying to include part_ module.
21533 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21535 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
21536 LVM on RAID support.
21538 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21540 Properly define WORDS_BIGENDIAN in wrapped environments.
21542 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
21544 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
21546 Reported by: Manoel Rebelo Abranches.
21547 Tested by: Manoel Rebelo Abranches.
21549 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21551 * util/grub-mkconfig.in: Fix quoting.
21553 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21555 Support big ext2 files.
21557 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
21558 (grub_ext2_read_block): Support triple indirect blocks.
21559 (grub_ext2_read_file): Use 64-bit types and read size_high.
21560 (grub_ext2_open): Read size_high.
21561 Reported by: Ximin Luo.
21562 Tested by: Manoel Rebelo Abranches.
21564 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21566 * util/grub-install.in: Handle filenames containing spaces.
21567 Reported by: Jordan Uggla.
21568 Tested by: Jordan Uggla.
21570 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21572 * util/grub-mkconfig.in (grub_script_check): New variable.
21573 Use grub_script_check instead of grub-script-check.
21574 Reported by: Barry Jackson.
21576 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21578 * docs/grub.texi (menu): Correct the order.
21579 Reported by: D. Hugh Redelmeier.
21581 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
21583 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
21586 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
21588 * include/grub/elfload.h (grub_elf32_size): New parameter.
21590 Return maximum segments alignment.
21591 (grub_elf64_size): Likewise.
21592 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
21593 Return maximum segments alignment.
21594 (grub_elf64_size): Likewise.
21595 * grub-core/loader/powerpc/ieee1275/linux.c:
21596 (grub_linux_claimmap_iterate): New function. Uses the
21597 "available" property in the "memory" node for memory allocation
21598 for kernel in the PowerPC loader.
21599 (grub_linux_load32): Correctly find linux entry point offset.
21600 (grub_linux_load64): Likewise.
21602 2010-11-07 Robert Millan <rmh@gnu.org>
21604 On mips-yeeloong, build with -march=loongson2f when this flag is
21605 available (GCC >= 4.4).
21606 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
21608 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
21609 or otherwise add -march=mips3.
21611 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
21613 Suppress shell expansion on echo '*' and echo "*" like cases.
21614 Reported by: Jordan Uggla.
21616 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
21617 string arguments before shell expansion.
21618 * tests/grub_cmd_echo.in: New testcases.
21620 2010-11-07 Robert Millan <rmh@gnu.org>
21622 * conf/mips-qemu-mips.rmk: Remove stale file from previous
21625 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
21627 * grub-core/kern/emu/hostdisk.c
21628 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
21630 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21632 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
21633 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
21634 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
21636 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21638 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
21640 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21642 * util/grub-install.in: Replace useless recomendation to pass
21643 --modules with a recomendation to report a bug.
21645 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21647 Properly register serial terminfo.
21648 Reported by: Jordan Uggla
21650 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
21652 (grub_serial_terminfo_output_template): Likewise.
21653 (grub_cmd_serial): Register "serial" with terminfo.
21654 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
21655 grub_serial_terminfo_output.
21657 2010-11-05 Robert Millan <rmh@gnu.org>
21659 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
21662 2010-11-05 Robert Millan <rmh@gnu.org>
21664 On Yeeloong, pass machine type information to Linux.
21666 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
21667 (LOONGSON_MACHTYPE): New macro, set to
21668 "machtype=lemote-yeeloong-2f-8.9inches".
21669 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
21670 additional argument to Linux.
21672 2010-11-04 Robert Millan <rmh@gnu.org>
21674 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
21675 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
21676 (its SATA disks are detected as slaveless IDE master drives on
21678 Reported by Carsten Aulbert.
21680 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
21682 * util/bin2h.c (main): Fix spelling error in generated output.
21684 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
21686 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
21688 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21690 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
21691 vga= option is supplied.
21693 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21695 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
21696 * util/grub.d/10_kfreebsd.in: Likewise.
21697 * util/grub.d/10_linux.in: Likewise.
21698 * util/grub.d/20_linux_xen.in: Likewise.
21700 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21702 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
21703 argument as an argument to no-argument option.
21705 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21707 * util/grub.d/10_linux.in: Add missing load_video with explicit
21708 GRUB_GFXPAYLOAD_LINUX.
21710 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21712 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
21714 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21716 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
21717 elements with invlid index.
21718 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21719 * grub-core/disk/raid.c (insert_array): Automatically reallocate
21721 * include/grub/raid.h (grub_raid_member): New struct.
21722 (grub_raid_array): Transform devices and start_sector into usage of
21723 grub_raid_member. All users updated
21724 (allocated_devs): New member.
21726 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21728 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
21731 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
21733 NetBSD build fix for getline function conflict from gnulib.
21735 * Makefile.util.def (libgrubkern.a): New library for grub kernel
21736 components that depend on gnulib headers.
21737 (libgrubmods.a): Renamed from earlier libgrub.a.
21738 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
21740 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21742 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
21743 install rather than creating a broken install.
21745 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21747 * util/grub-setup.c (argp): Remove misleading example of installing to
21750 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21752 * util/grub-setup.c (setup): Clarify the error message.
21754 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21756 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
21758 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
21760 * grub-core/kern/emu/misc.c
21761 (grub_make_system_path_relative_to_its_root)
21762 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
21764 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
21766 * grub-core/kern/emu/misc.c
21767 (grub_make_system_path_relative_to_its_root): Revert r2882.
21769 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
21771 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
21772 useless field head. All users updated.
21773 (free_subchunk): Correct handling of IN_REGION subchunk.
21775 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
21777 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
21778 (Supported kernels): Likewise.
21780 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21782 Make mktemp invocations portable.
21784 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
21785 exit if mktemp fails.
21786 * tests/grub_script_blockarg.in: Likewise.
21787 * tests/partmap_test.in: Likewise.
21788 * tests/util/grub-shell-tester.in: Likewise.
21789 * tests/util/grub-shell.in: Likewise.
21790 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21791 * Makefile.am: Likewise, and chain shell commands with `&&'
21793 * util/grub-mkrescue.in: Use the same explicit template as above, and
21794 exit if mktemp fails.
21796 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
21798 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
21799 Linux kernel, reported by Dennis Schridde.
21801 2010-10-17 Szymon Janc <szymon@janc.net.pl>
21803 * grub-core/normal/auth.c (grub_auth_check_authentication):
21804 Set-but-not-used variable removed.
21806 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21808 * docs/grub.texi (GNU/Linux): Document APM unavailability with
21809 32-bit linux protocol.
21811 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21813 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
21814 cursor shape for sanity.
21816 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21818 * docs/grub.texi (Installation): Document buggy BIOS install.
21820 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21822 * docs/grub.texi (Installation): Indent.
21824 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21826 * util/grub-setup.c (setup): New parameter allow_floppy.
21827 (arguments): New member allow_floppy.
21828 (argp_parser): Handle --allow-floppy.
21829 (main): Pass allow_floppy.
21830 * util/grub-install.in: New option --allow-floppy passed though to
21833 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21835 * util/grub-install.in: Handle partitionless disks.
21837 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21839 * util/grub-setup.c (setup): Don't clean blocklists before readability
21842 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21844 * docs/grub.texi (Installation): Document embedding zone. Remove
21845 obsolete grub-install example.
21847 2010-10-16 Szymon Janc <szymon@janc.net.pl>
21849 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
21850 Set-but-not-used variable ifdef'ed.
21851 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
21852 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
21854 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
21855 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
21856 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
21857 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
21858 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
21859 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
21860 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
21861 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
21862 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
21863 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
21864 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
21867 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21869 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
21870 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
21873 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21875 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
21876 synonym to _S5_. Needed for some DSDTs.
21878 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21880 Userspace ACPI parser debugging.
21882 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
21883 headers and add relevant defines. Don't include standard headers.
21884 (main) [GRUB_DSDT_TEST]: New function.
21885 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
21886 Don't declare functions.
21888 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21890 Remove dead grub_efi_mm_fini.
21892 * grub-core/kern/efi/mm.c (allocated_page): Removed.
21893 (ALLOCATED_PAGES_SIZE): Likewise.
21894 (MAX_ALLOCATED_PAGES): Likewise.
21895 (allocated_pages): Likewise.
21896 (grub_efi_allocate_pages): Don't record allocated pages.
21897 (grub_efi_free_pages): Likewise.
21898 (grub_efi_mm_init): Likewise.
21899 (grub_efi_mm_fini): Removed.
21901 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21903 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
21904 (grub_efi_mm_init): Take into account the memory map size increase.
21906 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21908 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
21909 (serial_hw_put): Wait based on real time rather than port reads. Don't
21911 * include/grub/serial.h (grub_serial_port): New field broken.
21913 2010-10-16 Robert Millan <rmh@gnu.org>
21915 * grub-core/kern/emu/misc.c
21916 (grub_make_system_path_relative_to_its_root): Fix premature return
21917 when processing non-root ZFS filesystems.
21918 Reported by Sergio Talens-Oliag.
21920 2010-10-15 Robert Millan <rmh@gnu.org>
21922 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
21923 guarantee compressed ones are processed first.
21925 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21927 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
21928 grub_efiemu_autocore.
21930 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21932 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
21934 (grub_console_getkey): Use correct jae opcode rather than ja.
21936 2010-10-12 Robert Millan <rmh@gnu.org>
21938 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
21939 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
21940 variable. All references updated.
21942 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
21944 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
21946 Correctly distinguish mdraid flavours.
21948 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
21949 (insert_array): New argument raid.
21950 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
21951 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
21952 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
21954 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
21956 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
21957 handling of special keys.
21959 2010-10-02 Aleš Nesrsta <starous@volny.cz>
21961 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
21962 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
21964 2010-10-02 Aleš Nesrsta <starous@volny.cz>
21966 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
21967 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
21969 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
21970 Use right endpoint when querying descriptor.
21972 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
21974 Clear out 0x80 color bit on EFI.
21976 Reported by: decoder and meta tech.
21978 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
21979 (grub_console_setcolorstate): Clear out 0x80 bit.
21980 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
21981 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
21982 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
21984 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
21986 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
21989 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21991 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
21992 mo_file after freeing.
21994 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21996 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
21998 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22000 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22003 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22005 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22008 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22010 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22012 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22013 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22014 and terminfo.h when needed.
22015 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22016 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22017 (terminfo): Enable only on terminfokernel.
22018 (extcmd): Likewise.
22019 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22020 * include/grub/lib/arg.h: Likewise.
22021 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22022 incorrect usage of ->.
22024 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22026 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22027 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22029 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22031 Fix coreboot compilation.
22033 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22034 Take VBE info into account even if only text is supported.
22035 (fill_vbe_info): Take into account the case when only VGA text
22037 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22038 on coreboot, multiboot and qemu.
22040 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22042 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22044 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22046 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22048 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22051 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22053 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22054 if they were BSD-style.
22056 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22058 * grub-core/boot/i386/pc/lnxboot.S: Replace
22059 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22060 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22062 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22064 Write embedding zone using Reed-Solomon.
22066 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22067 * grub-core/Makefile.am (rs_decoder.S): New target.
22068 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22069 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22070 (multiboot): Move to RS part.
22071 (post_reed_solomon): New label.
22072 (grub_boot_drive): Move to non-RS part since it's modified in memory
22074 Include rs_decoder.S.
22075 * grub-core/lib/reed_solomon.c: New file.
22076 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22078 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22079 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22080 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22081 * include/grub/partition.h (grub_partition_map): Change prototype of
22082 embed to allow returning additional sectors.
22083 * include/grub/reed_solomon.h: New file.
22084 * util/grub-setup.c (setup): Handle Reed-Solomon.
22086 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22088 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22089 i386 and x86-64 definedness tests.
22091 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22093 Fix generation of kernel_syms.lst
22095 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22098 2010-09-26 Robert Millan <rmh@gnu.org>
22100 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22102 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22103 the pool is an array of devices, iterate through it and return the
22104 first device that passes a stat() test (instead of blindly returning
22107 2010-09-26 Robert Millan <rmh@gnu.org>
22109 Build fixes for GNU/kFreeBSD.
22111 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22112 to programs that require ZFS conversion.
22113 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22114 kernels that don't have FLOPPY_MAJOR.
22116 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22118 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22120 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22122 Fix grub-emu build.
22124 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22125 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22126 mdraid09 and mdraid1x.
22128 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22130 Re-enable grub-extras.
22132 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22133 avoid confusing Automake. Run autogen only twice, once for the top
22134 level and once for grub-core. Add Makefile.util.def and
22135 Makefile.core.def from extra modules to the appropriate autogen
22136 invocations. If Makefile.common exists in an extra module, include
22137 it in both Makefile.util.am and grub-core/Makefile.core.am;
22138 similarly, include any Makefile.util.common file in Makefile.util.am
22139 and any Makefile.core.common file in grub-core/Makefile.core.am.
22140 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22141 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22142 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22143 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22145 * gentpl.py (gvar_add): Turn GVARS into a set.
22146 (global_variable_initializers): Sort global variables on output.
22147 (vars_init): New function.
22148 (first_time): Likewise.
22149 (library): Ensure that non-global variable initialisations are
22150 emitted before the first time we emit code for a library block.
22151 Append to variables rather than setting them. Only emit
22152 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22153 each conditional path.
22154 (program): installdir() emits an Autogen macro, so must be passed to
22155 var_add rather than gvar_add.
22157 (script): Likewise.
22158 (rules): New function, centralising handling for different target
22159 types. Set up Guile association lists for first_time and vars_init,
22160 and send most output to a diversion so that variable initialisations
22161 can be emitted first.
22162 (module_rules): Use new rules function.
22163 (kernel_rules): Likewise.
22164 (image_rules): Likewise.
22165 (library_rules): Likewise.
22166 (program_rules): Likewise.
22167 (script_rules): Likewise.
22168 (data_rules): Likewise.
22170 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22172 * .bzrignore: Add contrib and grub-core/contrib. Remove
22173 grub-core/Makefile.gcry.am.
22175 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22177 * grub-core/lib/LzFind.c: Add missing include.
22178 * grub-core/lib/LzmaEnc.c: Likewise.
22179 * grub-core/script/lexer.c: Likewise.
22180 * grub-core/script/yylex.l: Likewise.
22181 * util/grub-macho2img.c: Likewise.
22182 * util/grub-menulst2cfg.c: Likewise.
22183 * util/grub-mklayout.c: Likewise.
22184 * util/grub-mkpasswd-pbkdf2.c
22185 * util/grub-mkrelpath.c: Likewise.
22186 * util/resolve.c: Likewise.
22188 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22190 * Makefile.util.def (example_unit_test): Add
22191 grub-core/gnulib/libgnu.a.
22193 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22195 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22197 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22199 Support xz compression on yeeloong.
22201 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22202 * configure.ac: Check for LZMA.
22203 * grub-core/Makefile.core.def (xz_decompress): New target.
22204 (none_decompress): Likewise.
22205 * grub-core/boot/decompressor/minilib.c: New file.
22206 * grub-core/boot/decompressor/none.c: Likewise.
22207 * grub-core/boot/decompressor/xz.c: Likewise.
22208 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22209 * grub-core/kern/mips/cache_flush.S: Likewise.
22210 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22211 * grub-core/kern/mips/startup.S: Move first stage to ...
22212 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22214 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22215 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22216 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22217 Allocate statically.
22218 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22219 Allocate statically or use scratch. Don't check CRC32.
22220 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22221 Allocate statically. Don't check CRC32.
22222 * include/grub/decompressor.h: New file.
22223 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22225 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22226 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22227 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22228 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22229 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22230 * util/grub-mkimage.c (grub_compression_t): New type.
22231 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22232 (image_target_desc): New field default_compression.
22233 (image_targets): Adjust yeeloong targets.
22234 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22235 (compress_kernel): New parameter comp.
22236 (generate_image): Likewise. Handle new compression case.
22237 (options): New option --compression
22239 (main): Handle new option.
22241 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22243 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22245 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22247 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22248 typo in __i386__ conditional.
22250 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22252 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22255 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22257 Implement EFI and ACPI multiboot2 extensions.
22259 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22260 new tags as supported.
22261 (acpiv2_size): New function.
22262 (grub_multiboot_get_mbi_size): Take new tags into account.
22263 (grub_multiboot_make_mbi): Add new tags.
22264 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22266 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22268 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22269 Added missing configuration of USB device.
22271 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22273 * grub-core/normal/menu_entry.c (run): Make sure we always return
22276 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22278 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22279 NumberOfPages is UINT64 according to the UEFI specification, not
22280 UINTN. Fix printf format.
22282 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22284 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22285 `err' to grub_usb_err_t.
22286 Reported and tested by: KESHAV P.R.
22288 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22290 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22291 tpart non-const, so that we can assign to it. (Since this is a
22292 typedef, the constness refers to the pointer rather than what it
22295 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22297 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22298 $(top_srcdir)/grub-core/gnulib as well as
22299 $(top_builddir)/grub-core/gnulib.
22300 Reported by: KESHAV P.R.
22302 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22304 * util/grub-install.in: Fix the bootloader ID option to be
22305 consistently --bootloader-id, not --bootloader_id.
22306 Reported by: KESHAV P.R.
22308 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22310 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22311 check hash checksum." consistently translatable.
22313 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22315 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22318 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22320 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22321 (GRUB_MOD_INIT): Register sha1sum command.
22322 (GRUB_MOD_FINI): Unregister sha1sum command.
22324 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22326 Keep boot and grub directory names in sync with utils scripts
22328 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22329 * config.h.in: Add previous macros.
22330 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22331 * util/grub-install.in: Use $bootdir and $grubdir variables.
22333 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22335 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22336 convert partition names to disk names if the new `convert' parameter
22338 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22339 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22340 disk in its own right. This can happen with Xen disk images.
22342 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22344 * util/grub-editenv.c: Update strings to avoid warnings when generating
22346 * util/grub-setup.c: Likewise.
22348 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22350 * configure.ac: Change version to 1.99~beta0.
22352 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22354 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22356 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22358 * include/multiboot.h: Resynced with specification.
22359 * include/multiboot2.h: Likewise.
22361 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22363 Fix po directory handling.
22365 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22366 * grub-core/gnulib/Makefile.am: Import gettext module.
22367 * m4/gnulib-cache.m4: Likewise.
22368 * m4/gnulib-comp.m4: Likewise.
22369 * m4/gettext.m4: New file, from gnulib.
22370 * m4/glibc2.m4: Likewise.
22371 * m4/iconv.m4: Likewise.
22372 * m4/intdiv0.m4: Likewise.
22373 * m4/intl.m4: Likewise.
22374 * m4/intldir.m4: Likewise.
22375 * m4/intlmacosx.m4: Likewise.
22376 * m4/intmax.m4: Likewise.
22377 * m4/inttypes-pri.m4: Likewise.
22378 * m4/lcmessage.m4: Likewise.
22379 * m4/lib-ld.m4: Likewise.
22380 * m4/lib-link.m4: Likewise.
22381 * m4/lib-prefix.m4: Likewise.
22382 * m4/lock.m4: Likewise.
22383 * m4/nls.m4: Likewise.
22384 * m4/po.m4: Likewise.
22385 * m4/printf-posix.m4: Likewise.
22386 * m4/progtest.m4: Likewise.
22387 * m4/threadlib.m4: Likewise.
22388 * m4/uintmax_t.m4: Likewise.
22389 * m4/visibility.m4: Likewise.
22390 * po/Makefile.am: Remove.
22391 * po/Makefile.in.in: New file, from gettext.
22392 ($(DOMAIN).pot-update): Support POTFILES-shell.
22393 * po/Makevars: New file.
22394 * po/POTFILES-shell: Rename to ...
22395 * po/POTFILES-shell.in: ... this. Update.
22396 * po/POTFILES: Rename to ...
22397 * po/POTFILES.in: ... this. Update.
22398 * po/Rules-quot: New file, from gettext.
22399 * po/boldquot.sed: Likewise.
22400 * po/en@boldquot.header: Likewise.
22401 * po/en@quot.header: Likewise.
22402 * po/insert-header.sin: Likewise.
22403 * po/quot.sed: Likewise.
22404 * po/remove-potcdate.sin: Likewise.
22406 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22408 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22410 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22412 * util/grub.d/20_linux_xen.in: Use submenus.
22414 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22418 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22419 parameter submenu. All users updated.
22420 * grub-core/normal/main.c (free_menu): Rename to ...
22421 (grub_normal_free_menu): ... this. Made global.
22422 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22424 * grub-core/normal/menu_entry.c (screen): New field submenu.
22425 (make_screen): Set submenu.
22426 (run): Open new context if requested.
22427 * include/grub/menu.h (grub_menu_entry): New field submenu.
22428 * include/grub/normal.h (grub_normal_free_menu): New proto.
22430 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22432 Menu entries extractor.
22434 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22436 (GRUB_MOD_INIT): Register new variants.
22437 (GRUB_MOD_FINI): Unregister new variants.
22438 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22439 into grub_cmd_legacy_source.
22440 (grub_cmd_legacy_source): Implement extractor variants.
22441 (GRUB_MOD_INIT): Register new variants.
22442 (GRUB_MOD_FINI): Unregister new variants.
22443 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
22445 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
22446 search as an extractor.
22447 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
22448 test as an extractor.
22449 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
22451 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
22452 (grub_env_new_context): New function.
22453 (grub_env_context_open): Likewise.
22454 (grub_env_extractor_open): Likewise.
22455 (grub_env_extractor_close): Likewise.
22456 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22457 grub_extractor_level.
22458 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
22459 * include/grub/env.h (grub_env_extractor_open): New proto.
22460 (grub_env_extractor_close): Likewise.
22461 * include/grub/normal.h (grub_extractor_level): New external variable.
22463 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22465 Make cutmem accept a region specification.
22466 Suggested by: Samuel Thibault
22468 * grub-core/mmap/mmap.c (parsemem): New function.
22469 (grub_cmd_cutmem): Handle new arguments.
22471 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22473 New command cutmem.
22475 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
22476 (GRUB_MOD_INIT): Register new command.
22477 (GRUB_MOD_FINI): Unregister new command.
22479 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22481 Support some annoying BSD and Minix subpartitions.
22483 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
22484 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
22485 Properly handle concatenation.
22486 * grub-core/kern/device.c (grub_device_iterate): Likewise.
22487 * grub-core/normal/completion.c (iterate_partition): Likewise.
22488 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
22489 contain partition. All users updated.
22490 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
22492 (grub_openbsdlabel_partition_map): Likewise.
22493 (bsdlabel_partition_map_iterate): Rename to ..
22494 (iterate_real): ... this. New arguments sector, freebsd and pmap.
22495 (bsdlabel_partition_map_iterate): New function.
22496 (netopenbsdlabel_partition_map_iterate): Likewise.
22497 (netbsdlabel_partition_map_iterate): Likewise.
22498 (openbsdlabel_partition_map_iterate): Likewise.
22499 (GRUB_MOD_INIT): Register new partmaps.
22500 (GRUB_MOD_FINI): Unregister new partmaps.
22501 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
22502 (grub_partition_msdos_iterate): ... this. All users updated.
22503 Don't support embedding other than in a minix partition.
22504 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
22506 * include/grub/partition.h (grub_partition): New field msdostype.
22507 * util/grub-install.in: Handle openbsd and netbsd types being in
22510 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22512 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
22514 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
22515 * grub-core/Makefile.core.def (mdraid): Renamed to ...
22516 (mdraid09): ... this.
22517 (mdraid1x): New module.
22518 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
22519 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
22521 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22523 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
22526 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22528 * grub-core/commands/efi/lsefimmap.c: Correct header.
22531 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22533 * util/grub-editenv.c (argp_parser): Don't pass translated strings
22534 as printf format strings; the translations might contain '%' which
22535 could cause a crash.
22537 * util/grub-fstest.c (argp_parser): Likewise.
22538 * util/grub-setup.c (argp_parser): Likewise.
22541 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22543 Use argp in grub-fstest.
22545 * util/grub-fstest.c: Don't include getopt.h.
22547 (root): New variable.
22548 (args_count): Likewise.
22550 (num_disks): Likewise.
22551 (images): Likewise.
22553 (debug_str): Likewise.
22555 (options): Transformed to argp.
22557 (main): Split argument parsing into ...
22558 (argp_parser): ... this. Changed to argp format.
22559 (argp): New variable.
22560 (main): Use argp_parse.
22562 2010-09-20 Tristan Gingold <gingold@free.fr>
22563 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
22564 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22566 * grub-core/commands/efi/lsefimmap.c: New file.
22567 * grub-core/Makefile.core.def (lsefimmap): New module.
22568 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
22570 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22572 Pause the execution (10s max) if any errors are displayed so the user
22573 has a chance to see them.
22575 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
22576 (grub_print_error): Increment grub_err_printed_errors.
22577 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
22578 execution if any errors were displayed.
22579 (show_menu): Remove old code for pause.
22580 * grub-core/normal/menu_entry.c (run): Likewise.
22581 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
22583 (grub_normal_get_char_counter): Likewise.
22584 * include/grub/err.h (grub_err_printed_errors): New external variable.
22585 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
22587 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22589 Support multiboot VBE info.
22591 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22592 Take VBE info into account.
22593 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
22594 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
22595 Call fill_vbe_info when appropriate.
22596 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
22597 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
22599 (grub_multiboot_get_mbi_size): Take new tags into account.
22600 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
22601 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
22602 Call fill_vbe_tag when appropriate.
22603 (grub_multiboot_make_mbi): Properly align tags.
22604 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
22606 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
22608 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
22610 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22612 Suport manual terminal geometry specification.
22614 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
22615 Save state in grub_ofconsole_terminfo_output.
22616 (grub_ofconsole_term): Use grub_terminfo_getwh.
22617 (grub_ofconsole_getwh): Removed.
22618 * grub-core/term/serial.c (grub_serial_getwh): Removed.
22619 (grub_serial_term): Use grub_terminfo_getwh.
22620 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
22621 (options): New struct.
22622 (OPTION_*): New enum.
22623 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
22624 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
22626 (grub_terminfo_getwh): New proto.
22627 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
22629 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22631 Handle legacy "terminal" command.
22633 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
22635 (legacy_commands): Add terminal and title.
22636 (grub_legacy_parse): Handle terminal. Simplify title handling.
22638 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22640 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
22641 parameters overflow.
22643 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22645 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
22648 * docs/grub.texi (Shell-like scripting): Document `!'.
22649 (Network): Simplify using new i386-pc-pxe format. Mention
22654 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22656 * Makefile.am (SUBDIRS): Restore "."; it's important to force
22657 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
22660 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22662 * grub-core/commands/efi/lsefisystab.c: Correct header.
22663 * grub-core/commands/efi/lssal.c: Likewise.
22664 * grub-core/commands/testload.c: Likewise.
22666 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22668 * util/grub-mkrescue.in: Add explicit root argument to --set to
22669 prevent the UUID being interpreted as an argument to --set (matches
22670 previous change to prepare_grub_to_access_device).
22672 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22674 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
22675 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
22676 the verbosity of later #ifs.
22677 (find_partition_start): Define this function on FreeBSD too.
22678 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
22680 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
22683 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22685 * util/grub-editenv.c: Use argp instead of getopt.
22687 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22689 * util/grub-setup.c: Use argp instead of getopt.
22691 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22693 Use gnulib-tool to create gnulib source files.
22695 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
22696 grub-core/gnulib directories
22697 * .bzignore: Add **/.deps and autogenerated gnulib files
22698 * configure.ac: Assign auxiliary directory to build-aux, add invocation
22699 of gnulib macros, add grub-core/gnulib/Makefile
22700 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
22701 include m4 directory to aclocal.
22702 * Makefile.util.def: Remove direct compilation of gnulib source files
22703 and use the new grub-core/gnulib/libgnu.a.
22704 * build-aux/config.rpath: move config.rpath from top directory to
22706 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
22708 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
22709 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
22710 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
22712 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
22715 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22717 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
22718 grub-core/genmod.sh and grub-core/gensyminfo.sh
22720 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
22722 Add a test for echo command options.
22724 * tests/grub_cmd_echo.in: New test.
22725 * Makefile.util.def: Rules for new test.
22727 2010-09-20 Szymon Janc <szymon@janc.net.pl>
22729 Remove crc.mod and move crc command to hashsum.mod.
22730 Remove lib/crc.c - users updated to use gcrypt implementation.
22732 * grub-core/commands/crc.c: Removed.
22733 * grub-core/Makefile.core.def (crc): Module removed.
22734 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
22735 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
22736 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
22737 * grub-core/lib/crc.c: Removed.
22738 * include/grub/lib/crc.h: Removed.
22739 * Makefile.util.def (crc): Remove lib/crc.c
22740 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
22741 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
22742 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
22743 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
22744 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
22745 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
22747 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22749 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
22751 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22753 Split config.h for util and core.
22755 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
22756 (ADDR32): Likewise.
22757 (DATA32): Likewise.
22758 (BSS_START_SYMBOL): Likewise.
22759 (END_SYMBOL): Likewise.
22760 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
22761 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
22762 * config.h.in: New file.
22763 * configure.ac: Use config-util.h as config define file.
22764 Rename MACHINE into GRUB_MACHINE. All users updated.
22765 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
22767 (NESTED_FUNC_ATTR): Likewise.
22768 Substitue new variables.
22769 (COND_HAVE_ASM_USCORE): New conditional.
22770 * grub-core/Makefile.am (ASM_PREFIX): New variable.
22771 (kernel_syms.lst): Use ASM_PREFIX.
22772 * grub-core/kern/emu/console.c: Include config-util.h.
22773 * grub-core/kern/emu/misc.c: Likewise.
22774 * grub-core/kern/emu/mm.c: Likewise.
22775 * include/grub/emu/misc.h: Likewise.
22776 * include/grub/libgcc.h: Likewise.
22778 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22780 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
22782 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
22783 Fix GRUB_TERM_KEY_* constants usage.
22784 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
22786 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22788 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
22790 * grub-core/bus/usb/uhci.c: Remove empty define.
22791 (grub_uhci_check_transfer): Add missing cast.
22792 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
22794 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
22796 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
22798 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22800 * grub-core/Makefile.core.def (legacycfg): Add
22801 lib/i386/pc/vesa_modes_table.c on emu.
22803 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
22805 Reduce number of temporary files generated by build system.
22807 * grub-core/gencmdlist.sh: Removed.
22808 * grub-core/genfslist.sh: Removed.
22809 * grub-core/genhandlerlist.sh: Removed.
22810 * grub-core/genmodsrc.sh: Removed.
22811 * grub-core/genpartmaplist.sh: Removed.
22812 * grub-core/genparttoollist.sh: Removed.
22813 * grub-core/gentermiinallist.sh: Removed.
22814 * grub-core/genvideolist.sh: Removed.
22816 * grub-core/genmod.sh.in: New file.
22817 * grub-core/gensyminfo.sh.in: New file.
22819 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
22820 * conf/Makefile.extra-dist: Update with new files.
22821 * gentpl.py: Remove rules related to unnecessary temporary files.
22822 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
22824 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
22826 * grub-core/bus/usb/uhci.c: Remove empty #define.
22827 * grub-core/genmoddep.awk: Updated with new syminfo format.
22828 * util/bash-completion.d/Makefile.am: Add config.log to
22831 2010-09-19 Yves Blusseau <blusseau@zetam.org>
22833 * Makefile.util.def: Add forgotten $(LIBINTL) library.
22835 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
22837 * util/grub-mkconfig.in: Check the config script for syntax errors
22840 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
22841 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22843 * Makefile.util.def (grub-install): Use util/grub-install.in on all
22845 * util/grub-install.in: Add EFI and IEEE1275 support.
22846 * util/i386/efi/grub-install.in: Removed.
22847 * util/ieee1275/grub-install.in: Likewise.
22849 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22851 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
22852 (grub_cmd_cmosclean): Likewise.
22853 (GRUB_MOD_INIT): Register command cmosclean.
22854 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
22855 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
22857 2010-09-18 Carles Pina i Estany <carles@pina.cat>
22858 2010-09-18 Aleš Nesrsta <starous@volny.cz>
22859 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22861 Add keyboard layouts support.
22863 * Makefile.util.def (grub-mklayout): New file.
22864 (grub-kbdcomp): New script.
22865 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
22866 Add keyboard_layouts.h.
22867 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
22868 commands/boot.c on yeeloong.
22869 (keylayouts): New module.
22870 * grub-core/bus/usb/ohci.c
22871 * grub-core/bus/usb/uhci.c
22872 * grub-core/bus/usb/usbhub.c (rescan): New variable.
22873 (grub_usb_add_hub): Poll interrupt pipe for device handling.
22874 (attach_root_port): Likewise.
22875 (poll_nonroot_hub): Likewise.
22876 (grub_usb_poll_devices): Likewise.
22877 (detach_device): Close transfer.
22878 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
22880 (grub_usb_bulk_setup_readwrite): Likewise.
22881 (grub_usb_bulk_finish_readwrite): Likewise.
22882 * grub-core/commands/keylayouts.c: New file.
22883 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
22884 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
22886 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
22887 support scancode 2.
22888 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
22889 * include/grub/keyboard_layouts.h: New file.
22890 * util/grub-mklayout.c: New file.
22891 * util/grub-kbdcomp.in: Likewise.
22893 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22895 Unify memory types.
22897 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
22898 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
22900 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
22901 (grub_upper_mem): Likewise.
22902 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
22903 * include/grub/memory.h (grub_memory_type_t): New enum.
22906 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22908 * grub-core/Makefile.core.def (lsapm): New module.
22909 * grub-core/commands/i386/pc/lsapm.c: New file.
22910 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
22911 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
22913 * include/grub/i386/pc/apm.h: New file.
22914 * include/multiboot.h (multiboot_apm_info): New struct.
22916 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22918 GRUB-legacy configuration file support.
22920 * Makefile.util.def (grub-menulst2cfg): New util.
22921 * docs/man/grub-menulst2cfg.h2m: New file.
22922 * grub-core/Makefile.core.def (legacycfg): New module.
22923 * grub-core/commands/legacycfg.c: New file.
22924 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
22925 (grub_normal_add_menu_entry): ... this.
22926 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
22927 (grub_normal_set_password): ...this.
22928 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
22929 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
22930 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
22931 * grub-core/lib/legacy_parse.c: New file.
22932 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
22933 * include/grub/i386/pc/vesa_modes_table.h: New file.
22934 * include/grub/legacy_parse.h: Likewise.
22935 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
22936 * util/grub-menulst2cfg.c: New file.
22938 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
22940 * grub-core/kern/emu/hostdisk.c
22941 (convert_system_partition_to_system_disk): Initialise node.
22943 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
22945 * grub-core/kern/emu/hostdisk.c
22946 (convert_system_partition_to_system_disk): Fix devmapper memory pool
22948 Reported and based on patch by: Modestas Vainius.
22950 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
22952 Fix DM-RAID probing with recent versions of device-mapper udev
22955 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
22956 canonicalise device paths under /dev/mapper/.
22957 (convert_system_partition_to_system_disk): Compare the
22958 uncanonicalised path to /dev/mapper/ rather than the canonicalised
22959 path, since device nodes under /dev/mapper/ are often symlinks.
22961 2010-09-17 Yves Blusseau <blusseau@zetam.org>
22963 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
22965 2010-09-16 Yves Blusseau <blusseau@zetam.org>
22967 * configure.ac: Avoid some annoying error messages if freetype-config
22968 program is not found.
22970 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
22972 Support RAID on virtio devices, and others.
22974 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
22976 [__MINGW32__] (grub_find_device): ... this.
22977 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
22978 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
22979 reasonable default if dir is NULL.
22980 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
22982 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
22983 (grub_guess_root_device): Update callers.
22984 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
22986 * util/raid.c (grub_util_getdiskname): Remove.
22987 (grub_util_raid_getmembers): Use grub_find_device rather than
22988 grub_util_getdiskname.
22990 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
22992 * docs/grub.texi (serial): Remove obsolete comment about GRUB
22993 needing to be compiled with serial support.
22994 (ls): Indicate that multiple files are accepted.
22995 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
22996 indicate that multiple files are accepted.
22998 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23000 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23001 libgrub_a_init.c, and util/bash-completion.d/grub.
23003 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23005 * util/grub-setup.c (setup): Fix incorrect container semantics.
23007 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23009 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23011 Reported by: J. Nick Terry
23013 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23015 Move embedding routines to partmap sources files.
23017 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23018 [GRUB_UTIL]: New variable.
23019 (gpt_partition_map_iterate): Set part.parent.
23020 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23021 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23022 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23024 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23025 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23026 (grub_partition_map) [GRUB_UTIL]: New field embed.
23027 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23028 (setup): Use ->embed.
23030 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23032 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23034 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23035 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23037 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23039 Add function to get completions from usage.
23041 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23042 completions from usage. Use LC_ALL=C to get options properly.
23044 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23046 * grub-core/gnulib/basename-lgpl.c: Imported.
23047 * grub-core/gnulib/basename.c: Likewise.
23048 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23049 * grub-core/gnulib/dirname.c: Likewise.
23050 * grub-core/gnulib/dirname.h: Likewise.
23051 * grub-core/gnulib/stripslash.c: Likewise.
23053 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23055 * grub-core/gnulib/error.c: Resynced.
23056 * grub-core/gnulib/getopt.c: Likewise.
23057 * grub-core/gnulib/getopt_int.h: Likewise.
23058 * grub-core/gnulib/regex.h: Likewise.
23059 * grub-core/gnulib/regex_internal.c: Likewise.
23060 * grub-core/gnulib/regex_internal.h: Likewise.
23062 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23064 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23065 CRC calculations and validity checks.
23066 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23069 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23071 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23073 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23075 Fix incorrect echo options handling.
23076 Reported by: Yves Blusseau.
23078 * include/grub/command.h (grub_command_flags_t): New flags
23079 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23080 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23081 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23083 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23085 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23087 (GRUB_COMMAND_FLAG_MENU): Likewise.
23088 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23089 (GRUB_COMMAND_FLAG_TITLE): Removed.
23090 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23091 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23092 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23093 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23094 (grub_command_flags_t): New enum. All users updated.
23096 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23098 Fix solaris compilation.
23100 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23101 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23102 (grub-emu-list): Likewise.
23104 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23106 Remove deprecated root command.
23108 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23111 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23113 * util/i386/pc/grub-setup.c: Merge this ...
23114 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23115 * util/grub-setup.c: ... into this.
23116 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23119 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23121 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23124 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23126 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23129 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23131 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23132 explicit root argument to set to prevent UUID to be interpreted as
23135 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23137 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23139 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23141 Don't export grub_gate_a20.
23143 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23144 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23146 (grub_gate_a20): ... this. All users updated.
23147 * include/grub/i386/pc/init.h: Removed. All users updated.
23149 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23151 Create euro.pf2 which supports most European languages.
23153 * Makefile.am (grubdata_DATA): Add euro.pf2.
23154 (euro.pf2): New target.
23155 (CLEANFILES): Add euro.pf2.
23157 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23159 * configure.ac: Disable emu-usb by default to prevent inadvertent
23162 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23164 Disable usbserial on grub-emu since our libusb code isn't good enough
23167 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23168 (usbserial_pl2303): Likewise.
23169 (usbserial_ftdi): Likewise.
23171 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23173 * include/grub/disk.h (grub_disk): Remove has_partitions.
23175 * disk/loopback.c (grub_loopback): Remove has_partitions.
23177 (options): Remove partitions. All users updated.
23178 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23179 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23180 actual partition table is found.
23182 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23184 Remove readability checks (too many false negatives).
23186 * util/grub-install.in: Remove readability checks.
23187 * util/grub-mkconfig.in: Likewise.
23188 * util/grub.d/10_hurd.in: Likewise.
23189 * util/grub.d/10_kfreebsd.in: Likewise.
23190 * util/grub.d/10_linux.in: Likewise.
23191 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23194 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23196 Enable acpi shutdown on all ACPI platforms.
23198 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23199 on coreboo, multiboot and EFI.
23200 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23201 (grub_acpi_halt): Likewise.
23202 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23203 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23204 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23205 * grub-core/lib/i386/halt.c (grub_halt)
23206 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23208 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23210 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23213 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23215 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23216 * grub-core/video/efi_uga.c: Likewise.
23218 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23220 Filter devaliases and never open same device twice.
23222 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23223 (last_ihandle): Likewise.
23224 (ofdisk_hash_ent): New member shortest.
23225 (ofdisk_hash_add): Add canonical path too.
23226 (scan): New function.
23227 (grub_ofdisk_iterate): Iterate over hashed entries.
23228 (compute_dev_path): Don't add :0.
23229 (grub_ofdisk_open): Don't really open the disk.
23230 (grub_ofdisk_close): Avoid closing unrelated disk.
23231 (grub_ofdisk_read): Implement reopen logic.
23232 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23234 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23237 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23241 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23242 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23243 right address. Add sparc64_ieee1275_ldflags.
23244 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23245 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23246 to grub_host_to_target_addr
23247 (load_image): Likewise.
23249 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23251 * grub-core/normal/completion.c (complete_file): Handle device
23253 Fix based on patch by Doug Nazar.
23255 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23257 grub-mknetdir script.
23259 * Makefile.util.def (grub-mknetdir): New module.
23260 * tests/util/grub-shell.in: Support boot=net
23261 * util/grub-mknetdir.in: New file.
23263 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23265 videoinfo on non-vbe.
23267 * grub-core/Makefile.core.def (vbeinfo): Removed.
23268 (vbetest): Removed.
23269 (videoinfo): New module.
23270 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23271 * grub-core/commands/i386/pc/vbetest.c: Removed.
23272 * grub-core/commands/videoinfo.c: New file.
23273 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23275 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23277 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23278 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23279 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23280 mode_number. New parameter mode. All users updated.
23281 (grub_video_gop_iterate): New function.
23282 (grub_video_efi_gop): New member iterate.
23283 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23284 (grub_vbe_set_video_mode): Remove setting useless fields.
23285 (vbe2videoinfo): New function.
23286 (grub_video_vbe_iterate): Likewise.
23287 (grub_video_vbe_setup): Use vbe2videoinfo.
23288 (grub_video_vbe_print_adapter_specific_info): New function.
23289 (grub_video_vbe_adapter): New fields iterate and
23290 print_adapter_specific_info.
23291 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23293 (grub_video_mode_info): New field mode_number.
23294 (grub_video_adapter): New fields iterate and
23295 print_adapter_specific_info.
23297 2010-09-13 Tristan Gingold <gingold@free.fr>
23298 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23299 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23301 * grub-core/commands/efi/lsefisystab.c: New file.
23302 * grub-core/commands/efi/lssal.c: Likewise.
23303 * grub-core/Makefile.core.def (lsacpi): New module.
23304 (lsefisystab): Likewise.
23305 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23306 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23307 (grub_efi_sal_system_table): New struct.
23308 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23309 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23310 (grub_efi_sal_system_table_platform_features): Likewise.
23311 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23312 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23313 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23314 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23316 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23318 Support explicit user claim that a device is BIOS-visible.
23320 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23321 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23322 * grub-core/kern/emu/hostdisk.c
23323 (convert_system_partition_to_system_disk): Support mdX.
23324 (find_system_device): New parameter add. All users updated.
23325 (grub_util_biosdisk_is_present): New function.
23326 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23329 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23331 Search hints support.
23333 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23336 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23338 Bash completion script for util commands
23340 * Makefile.am: Add util/bash-completion.d directory
23341 * configure.ac: Likewise.
23342 * util/bash-completion.d/Makefile.am: New file.
23343 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23345 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23347 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23348 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23349 Reported by: Yves Blusseau.
23351 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23353 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23354 partition size and offset.
23356 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23358 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23360 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23362 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23364 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23366 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23367 (grub_xvasprintf): Likewise.
23369 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23371 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23373 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23375 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23376 args ending with NULL.
23378 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23380 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23383 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23385 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23387 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23389 Shutdown using ACPI.
23391 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23392 * grub-core/commands/acpihalt.c: New file.
23393 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23394 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23395 (grub_acpi_halt): New proto.
23396 (GRUB_ACPI_SLP_EN): New const.
23397 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23398 (GRUB_ACPI_OPCODE_*): New enum.
23399 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23401 2010-09-11 Tristan Gingold <gingold@free.fr>
23402 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
23403 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23405 * commands/lsacpi.c: New file.
23406 * grub-core/Makefile.core.def (lsacpi): New module.
23407 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23408 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23409 (grub_acpi_madt_entry_header): New struct.
23410 (grub_acpi_madt): Likewise.
23411 (grub_acpi_madt_entry_interrupt_override): Likewise.
23412 (grub_acpi_madt_entry_sapic): Likewise.
23413 (grub_acpi_madt_entry_lsapic): Likewise.
23414 (grub_acpi_madt_entry_platform_int_source): Likewise.
23415 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23416 (PRIuGRUB_UINT32_T): Likewise.
23417 (PRIxGRUB_UINT64_T): Likewise.
23419 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23421 Implement loading palette on ieee1275_fb.
23423 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23424 (have_setcolors): Likewise.
23425 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23426 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23427 (grub_video_ieee1275_set_palette): Implement.
23429 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23430 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
23432 * util/grub-install.in (grub_partition): New variable.
23433 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23434 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23435 Fixes a bug reported by Yves Blusseau.
23437 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23441 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23442 =grub_cpu_flush_cache on all mips and not only yeeloong.
23443 * configure.ac (COND_mips): New conditional.
23444 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
23446 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
23447 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
23448 [GRUB_LINKER_HAVE_INIT]: New function.
23449 (grub_emu_post_init): Likewise.
23450 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
23451 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
23452 * include/grub/cache.h (_mips): Include mips/cache.h.
23453 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
23454 LVM and RAID prototypes.
23455 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
23456 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
23459 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23461 * util/grub-install.in: Don't try to verify core.img until after
23462 running grub-mkimage to create it.
23464 2010-09-10 Robert Millan <rmh@gnu.org>
23466 * util/grub.d/10_hurd.in: Add misc readability checks.
23467 * util/grub.d/10_kfreebsd.in: Likewise.
23468 * util/grub.d/10_linux.in: Likewise.
23470 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23472 * util/grub-install.in: ${imgext} won't be defined here until the
23473 install branch is merged. For the meantime, only verify core.img on
23474 i386-pc and sparc64-ieee1275 platforms.
23476 2010-09-10 Robert Millan <rmh@gnu.org>
23478 Solaris support in grub_find_zpool_from_dir(). Thanks
23479 Seth Goldberg for referring to getextmntent() facility.
23481 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
23483 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
23485 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
23486 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
23487 method for finding zpool name.
23489 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23491 grub-fstest needs the host and hostfs modules while other utilities
23492 actively require those modules to be absent, so grub-fstest needs
23493 its own initialisation and finalisation code.
23495 * Makefile.am (grub_fstest.pp): New target.
23496 (grub_fstest_init.lst): Likewise.
23497 (grub_fstest_init.c): Likewise.
23498 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
23500 2010-09-10 Robert Millan <rmh@gnu.org>
23502 * configure.ac: Check for `struct statfs.f_fstypename' and
23503 `struct statfs.f_mntfromname'.
23505 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
23506 kFreeBSD-specific code.
23508 2010-09-10 Robert Millan <rmh@gnu.org>
23510 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
23511 on ZFS. Now non-main filesystems are supported as / too.
23513 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
23515 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
23516 and grub-core/disk/host.c to ...
23517 (grub-fstest): ... here. Having the host disk implementation
23518 present confuses grub-probe and other utility programs.
23520 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
23521 when writing to a file, not when writing to stdout.
23523 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
23525 * tests/partmap_test.in: New test for partitions.
23526 * Makefile.util.def: Rules for new test.
23528 2010-09-09 Robert Millan <rmh@gnu.org>
23530 * util/grub-probe.c (probe): Fix a pair of unhandled error
23533 2010-09-09 Robert Millan <rmh@gnu.org>
23535 Basic Btrfs support (detection and UUID).
23537 * grub-core/fs/btrfs.c: New file.
23538 * Makefile.util.def (library): Register btrfs.c.
23539 * grub-core/Makefile.core.def: Likewise.
23541 2010-09-08 Robert Millan <rmh@gnu.org>
23543 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
23544 with (optional) parameters to specify device and relative path.
23545 * util/grub-install.in: Use is_path_readable_by_grub() to
23546 verify readability of a few critical files.
23547 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
23548 verify readability of grub.cfg.new.
23550 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
23552 Split minix.mod into minix.mod and minix2.mod.
23554 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
23555 * grub-core/Makefile.core.def (minix2): New module.
23556 * grub-core/fs/minix.c: Use definitions instead of runtime version
23558 * grub-core/fs/minix2.c: New file.
23560 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23562 Add new --boot-directory option to replace --root-directory
23564 * util/grub-install.in: Add new --boot-directory option
23565 * util/grub-reboot.in: Likewise.
23566 * util/grub-set-default.in: Likewise.
23568 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23570 * util/grub-mkconfig.in: Use new variable.
23572 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23574 * configure.ac: Define some useful variables.
23576 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
23578 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
23579 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
23580 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
23581 Use terminfo and don't use cursor-on/cursor-off unless it's known
23583 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
23584 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
23586 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
23588 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
23589 starts with "(,", fill the drive containing the loaded image in
23590 between those two characters, but expect that a full partition
23591 specification including partition map names will follow.
23593 2010-09-08 Robert Millan <rmh@gnu.org>
23595 * configure.ac: Remove `--enable-grub-fstest' option.
23596 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
23598 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
23599 `grub-fstest' instead of `grub-probe' for readability verification.
23600 * util/grub-probe.c (probe): Remove readability verification kludge.
23602 2010-09-08 Robert Millan <rmh@gnu.org>
23604 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
23605 initializing `GRUB_FS'.
23607 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
23609 Not command (!) support to GRUB script.
23611 * tests/grub_script_not.in: New test.
23612 * Makefile.util.def: Rules for new test.
23614 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23615 ! command as a special case.
23616 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
23618 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23620 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
23623 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23625 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
23627 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23629 * docs/grub.texi (Shell-like scripting): Documentation for break,
23630 continue, shift and return commands.
23632 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
23634 Rename CD-ROM to cd on BIOS.
23636 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
23638 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
23640 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23642 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
23643 * util/grub-probe.c (main): Likewise.
23644 * util/i386/pc/grub-setup.c (main): Likewise.
23645 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
23646 Reported and debugged by: alexxy
23648 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23650 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
23653 2010-09-05 Jo Shields <directhex@apebox.org>
23655 * util/grub.d/30_os-prober.in: Add missing classes.
23657 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23659 * docs/grub.texi (Theme file format): Document new position format.
23661 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23663 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
23664 a table. Use @code instead of @verbatim.
23666 2010-09-05 Colin D Bennett <colin@gibibit.com>
23668 Gfxmenu documentation.
23670 * docs/grub.texi (Theme file format): New chapter.
23672 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23674 * grub-core/Makefile.core.def (xzio): New module.
23675 * grub-core/io/xzio.c: New file.
23676 * grub-core/lib/xzembed/xz.h: New file (from xembed).
23677 * grub-core/lib/xzembed/xz_config.h: Likewise.
23678 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
23679 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
23680 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
23681 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
23682 * grub-core/lib/xzembed/xz_private.h: Likewise.
23683 * grub-core/lib/xzembed/xz_stream.h: Likewise.
23684 * include/grub/file.h (grub_file_filter_id): New compression filter
23685 GRUB_FILE_FILTER_XZIO.
23687 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23689 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
23690 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
23693 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23695 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
23696 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
23698 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23700 Uncompressed checksum support.
23702 * grub-core/commands/hashsum.c (options): Add option --uncompress.
23703 (check_list): New parameter uncompress.
23704 (grub_cmd_hashsum): Handle --uncompress.
23706 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23708 Reintroduce testload.
23710 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
23712 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
23713 (GRUB_MOD_INIT): New function.
23714 (GRUB_MOD_FINI): Likewise.
23715 * grub-core/Makefile.core.def (testload): New module.
23717 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23719 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
23720 (uint8_t): New type.
23721 (uint16_t): Likewise.
23722 (uint32_t): Likewise.
23723 (uint64_t): Likewise.
23725 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23727 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
23729 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23731 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
23733 (grub_gzfile_open): Removed. All users updated.
23734 (GRUB_MOD_INIT): New function.
23735 (GRUB_MOD_FINI): Likewise.
23736 * grub-core/kern/file.c (grub_file_filters_all): New variable.
23737 (grub_file_filters_enabled): Likewise.
23738 (grub_file_open): Handle filters.
23739 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
23740 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
23741 * include/grub/file.h (grub_file_filter_id_t): New type.
23742 (grub_file_filter_t): Likewise.
23743 (grub_file_filters_all): New extern variable.
23744 (grub_file_filters_enabled): Likewise.
23745 (grub_file_filter_register): New inline function.
23746 (grub_file_filter_unregister): Likewise.
23747 (grub_file_filter_disable): Likewise.
23748 (grub_file_filter_disable_compression): Likewise.
23749 * include/grub/gzio.h: Removed.
23751 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23753 Filename expansion support for wildcards in GRUB script.
23755 * tests/grub_script_expansion.in: New test.
23756 * Makefile.util.def: Rule for new test.
23758 * grub-core/commands/wildcard.c: New file, implements filename
23759 expansion support for GRUB script.
23760 * grub-core/Makefile.core.def: Rule update for regexp.mod.
23761 * grub-core/script/argv.c: Cosmetic changes.
23762 * grub-core/script/execute.c (grub_script_arglist_to_argv):
23763 Refactored to perform wildcard expansion on arguments.
23764 * include/grub/script_sh.h (grub_script_wildcard_translator): New
23767 * tests/util/grub-shell.in: Fix quoting for read input.
23769 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23771 Support for updating environment variables with matched substrings
23774 * tests/grub_cmd_regexp.in: New test.
23775 * Makefile.util.def: Rule for new test.
23777 * grub-core/commands/regexp.c: New option -s to update environment
23778 variables with regexp matches.
23780 2010-09-04 Szymon Janc <szymon@janc.net.pl>
23782 * include/grub/file.h (grub_file): New member not_easly_seekable.
23783 (grub_file_seekable): New inline function.
23784 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
23786 (grub_gzio_open): Set not_easly_seekable.
23787 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
23788 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
23790 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23792 Support for options to appear multiple times on cmdline.
23794 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
23795 * grub-core/commands/extcmd.c: Support for repeatable option.
23796 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
23797 repeatable option support.
23799 Refactor menuentry into a regular command.
23801 * grub-core/commands/menuentry.c: New file, menuentry command
23803 * grub-core/Makefile.core.def: Rule update for normal.mod.
23804 * grub-core/normal/main.c: Moved menuentry creation to
23805 grub-core/commands/menuentry.c.
23806 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
23807 (grub_menu_execute_entry_real): Removed.
23808 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
23810 (grub_script_execute_menuentry): Removed.
23811 * grub-core/script/parser.y (menuentry): Removed.
23812 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
23813 * grub-core/script/yylex.l (menuentry): Removed.
23814 * include/grub/menu.h (grub_menu_init): New prototype.
23815 (grub_menu_fini): New prototype.
23816 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
23817 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
23818 (grub_script_execute_sourcecode): New prototype.
23820 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23822 "return" command for GRUB script functions.
23824 * tests/grub_script_return.in: New test.
23825 * Makefile.util.def: Rules for new test.
23827 * grub-core/script/execute.c (grub_script_return): New function.
23828 * grub-core/script/main.c: Register/unregister return commaond.
23829 * include/grub/script_sh.h (grub_script_return): New prototype.
23831 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23833 "setparams" command to update positional parameters.
23835 * tests/grub_script_setparams.in: New test.
23836 * Makefile.util.def: Rules for new test.
23838 * grub-core/script/argv.c (grub_script_argv_make): New function.
23839 * grub-core/script/execute.c (replace_scope): New function.
23840 (grub_script_setparams): New function.
23841 * grub-core/script/lexer.c: Remove unused variables.
23842 * grub-core/script/main.c: Register/unregister setparams command.
23843 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
23844 (grub_script_setparams): New prototype.
23846 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23848 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
23851 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23853 Support for passing block of commands as an argument to extcmds.
23855 * Makefile.util.def: Rules for new test.
23856 * tests/grub_script_blockarg.in: New test.
23857 * grub-core/tests/test_blockarg.c: New file, block argument
23858 command used in the test.
23860 * include/grub/extcmd.h (grub_extcmd_context): New struct.
23861 (grub_register_extcmd_prio): New function prototype.
23862 (grub_extcmd_dispatcher): New function prototype.
23863 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
23865 * include/grub/script_sh.h (struct grub_script): New members
23866 `children', `next_siblings' and `refcnt' for block arguments and
23867 reference counting.
23868 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
23869 (grub_script_arg): New member `script' for block argument.
23870 (grub_script_argv): New member `script' for block argument.
23871 (grub_parser_param): New member `scripts' for block argument.
23872 (grub_script_mem_free): New extern function prototype.
23873 (grub_script_ref): New function prototype.
23874 (grub_script_unref): New function prototype.
23876 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
23877 extcmd form to support block arguments.
23878 * grub-core/script/argv.c: Block arguments support.
23879 * grub-core/script/execute.c: Likewise.
23880 * grub-core/script/lexer.c: Likewise.
23881 * grub-core/script/main.c: Likewise.
23882 * grub-core/script/script.c: Likewise.
23883 * grub-core/script/parser.y: Likewise. New `block' and `block0'
23886 * grub-core/commands/acpi.c: Update extcmd implementations with
23887 grub_extcmd_context_t.
23888 * grub-core/commands/cat.c: Likewise.
23889 * grub-core/commands/echo.c: Likewise.
23890 * grub-core/commands/extcmd.c: Likewise.
23891 * grub-core/commands/hashsum.c: Likewise.
23892 * grub-core/commands/hdparm.c: Likewise.
23893 * grub-core/commands/help.c: Likewise.
23894 * grub-core/commands/hexdump.c: Likewise.
23895 * grub-core/commands/i386/cpuid.c: Likewise.
23896 * grub-core/commands/i386/pc/drivemap.c: Likewise.
23897 * grub-core/commands/i386/pc/halt.c: Likewise.
23898 * grub-core/commands/i386/pc/sendkey.c: Likewise.
23899 * grub-core/commands/iorw.c: Likewise.
23900 * grub-core/commands/keystatus.c: Likewise.
23901 * grub-core/commands/loadenv.c: Likewise.
23902 * grub-core/commands/ls.c: Likewise.
23903 * grub-core/commands/lspci.c: Likewise.
23904 * grub-core/commands/memrw.c: Likewise.
23905 * grub-core/commands/probe.c: Likewise.
23906 * grub-core/commands/search_wrap.c: Likewise.
23907 * grub-core/commands/setpci.c: Likewise.
23908 * grub-core/commands/sleep.c: Likewise.
23909 * grub-core/disk/loopback.c: Likewise.
23910 * grub-core/hello/hello.c: Likewise.
23911 * grub-core/loader/i386/bsd.c: Likewise.
23912 * grub-core/loader/xnu.c: Likewise.
23913 * grub-core/term/gfxterm.c: Likewise.
23914 * grub-core/term/serial.c: Likewise.
23915 * grub-core/tests/lib/functional_test.c: Likewise.
23917 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23919 Multi-line quoted strings support.
23921 * grub-core/script/lexer.c (append_newline): Removed.
23922 (grub_script_lexer_yywrap): Refactored.
23923 (grub_script_lexer_init): Refactored.
23924 * grub-core/script/yylex.l (yywrap): New function.
23925 (grub_lexer_resplit): New function.
23926 (grub_lexer_unput): New function.
23927 * include/grub/script_sh.h (grub_lexer_param): New members, unput
23929 * tests/grub_script_echo1.in: Added few more testcases.
23931 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
23933 * grub-core/kern/misc.c: Don't add abort alias in utils.
23934 Reported by: echoline.
23936 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
23938 Add missing files into "make dist" tarball for other platforms.
23940 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
23941 * conf/Makefile.common (dist_noinst_DATA): New variable.
23942 * conf/Makefile.extra-dist: Added missing make dist files.
23943 * grub-core/Makefile.core.def: Likewise.
23945 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
23947 Compress grub_prefix.
23949 * grub-core/boot/i386/pc/lnxboot.S: Use
23950 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
23951 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
23952 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
23953 GRUB_MACHINE_PREFIX_END. All users updated.
23954 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
23955 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
23957 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
23958 * util/grub-mkimage.c (image_target_desc): Change data_end to
23959 prefix_end. All users updated.
23961 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
23963 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
23965 (grub_openbsd_boot): Likewise.
23966 (grub_netbsd_boot): Likewise.
23967 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
23968 (grub_xnu_boot): Likewise.
23970 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23972 * configure.ac: Clean LIBS variable after tests.
23974 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
23976 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
23978 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23980 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
23981 echo if libdevmapper will be used.
23983 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
23985 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
23986 constant for the same file.
23988 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23990 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
23992 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
23994 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
23997 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
23999 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24000 required by the boot protocol.
24002 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24003 ebp and edi members.
24004 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24005 state.ebp and state.edi.
24006 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24007 %ebp and %edi according to grub_relocator32_ebp and
24008 grub_relocator32_edi respectively.
24009 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24012 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24014 Add i386-pc-pxe image target.
24016 * util/grub-mkimage.c (image_target_desc): New enum value
24018 (image_targets): New target i386-pc-pxe.
24019 (generate_image): Handle i386-pc-pxe image.
24021 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24025 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24026 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24028 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24029 (grub_pxe_pxenv): Correct type.
24031 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24033 * NEWS: Document most of the important changes since 1.98.
24035 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24037 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24038 generated manual page) a little.
24040 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24042 * docs/grub.texi: Add myself as an author.
24044 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24046 * Makefile.util.def (libgrub.a): Add missing sunpc.
24047 Reported by: Seth Goldberg.
24049 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24051 Interrupt wrapping and code simplifications.
24053 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24054 x86_noieee1275 which are functionaly equivalent in this case.
24055 (grub-install): Make source on each platform explicit. Enable on
24057 * gentpl.py (x86_efi_pc): Removed group.
24058 (x86_noefi): Likewise.
24059 (i386_noefi): Likewise.
24060 (x86_noieee1275): Likewise.
24061 (i386_noieee1275): Likewise.
24062 (i386_noefi_noieee1275): Likewise.
24063 (i386_pc_qemu_coreboot): Likewise.
24064 (i386_coreboot_multiboot): Likewise.
24065 (i386_pc_coreboot_multiboot_qemu): Likewise.
24066 (x86_noefi_mips): Likewise.
24067 (noieee1275): Likewise.
24068 (ieee1275_mips): Likewise.
24069 (noemu_noieee1275): Likewise.
24072 (videoinkernel): Likewise.
24073 (videomodules): Likewise.
24074 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24075 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24076 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24077 include/grub/loader.h, include/grub/msdos_partition.h,
24078 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24079 include/grub/machine/console.h, include/grub/machine/vga.h,
24080 include/grub/machine/vbe.h, include/grub/machine/init.h,
24081 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24082 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24083 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24084 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24085 * grub-core/Makefile.core.def (kernel): Explicit the source for
24086 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24087 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24088 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24089 Use videoinkernel tag.
24090 (usb): Enable on all usb.
24091 (usbserial_common): Likewise.
24092 (usbserial_pl2303): Likewise.
24093 (usbserial_ftdi): Likewise.
24094 (uhci): Enable on all x86.
24095 (ohci): Enable on all pci.
24096 (cmostest): Enable on all CMOS.
24097 (acpi): Include commands/acpi.c on all platforms.
24098 (halt): Add relevant lib/*/halt.c.
24099 (hdparm): Enable on all pci.
24101 (usbtest): Enable on all usb.
24102 (ata): Enable on all pci.
24103 (ata_pthru): Likewise.
24104 (usbms): Enable on all usb.
24105 (usb_keyboard): Likewise.
24106 (font): Use tag videomodules.
24108 (datetime): Use tag cmos. Enable on all noemu.
24109 (mmap): Use tags common and x86.
24110 (gfxterm): Use tag videomodules.
24111 (bitmap): Likewise.
24112 (bitmap_scale): Likewise.
24113 (video_fb): Likewise.
24115 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24116 adjust padding accordingly. All users updated.
24117 (grub_ohci_transaction): Fix bad format specification.
24118 (GRUB_MOD_INIT): Add asserts for struct size.
24119 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24120 (grub_alloc_td): Likewise.
24121 (grub_free_queue): Likewise.
24122 (grub_uhci_transfer): Likewise.
24123 (grub_uhci_transaction): Fix bad format specification.
24124 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24125 (grub_usb_bulk_readwrite): Likewise.
24126 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24127 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24129 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24131 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24132 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24133 Transformed into C.
24134 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24135 Moved from here ...
24136 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24137 ... here. Transformed into C. Made static.
24138 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24139 Moved from here ...
24140 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24141 ... here. Transformed into C. Made static.
24142 * grub-core/kern/i386/pc/startup.S
24143 (grub_biosdisk_check_int13_extensions): Moved from here ...
24144 * grub-core/disk/i386/pc/biosdisk.c
24145 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24147 * grub-core/kern/i386/pc/startup.S
24148 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24149 * grub-core/disk/i386/pc/biosdisk.c
24150 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24151 Transformed into C. Made static.
24152 * grub-core/kern/i386/pc/startup.S
24153 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24154 * grub-core/disk/i386/pc/biosdisk.c
24155 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24156 Transformed into C. Made static.
24157 * grub-core/kern/i386/pc/startup.S
24158 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24159 * grub-core/disk/i386/pc/biosdisk.c
24160 (grub_biosdisk_get_diskinfo_standard): ... here.
24161 Transformed into C. Made static.
24162 * grub-core/kern/i386/pc/startup.S
24163 (grub_biosdisk_get_num_floppies): Moved from here ...
24164 * grub-core/disk/i386/pc/biosdisk.c
24165 (grub_biosdisk_get_num_floppies): ... here.
24166 Transformed into C. Made static.
24167 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24169 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24170 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24171 Transformed into C. Made static.
24172 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24173 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24174 Transformed into C. Made static.
24175 * grub-core/kern/i386/ieee1275/init.c: Removed.
24176 * grub-core/kern/i386/misc.S: Likewise.
24177 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24178 Splitted from here ...
24179 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24180 Transformed into C. Made static. All users updated.
24181 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24182 Transformed into C. Made static. All users updated.
24183 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24185 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24186 Transformed into C. Made static. All users updated.
24187 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24189 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24190 Transformed into C. Made static. All users updated.
24191 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24192 Removed (replaced by C version).
24193 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24195 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24196 Transformed into C. Made static.
24197 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24199 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24200 ... here. Transformed into C.
24201 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24203 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24204 ... here. Transformed into C.
24205 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24207 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24208 ... here. Transformed into C. Made static.
24209 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24211 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24212 ... here. Transformed into C.
24213 * grub-core/kern/i386/pc/startup.S
24214 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24215 * grub-core/video/i386/pc/vbe.c
24216 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24217 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24219 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24220 ... here. Transformed into C.
24221 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24223 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24224 ... here. Transformed into C.
24225 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24227 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24228 ... here. Transformed into C.
24229 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24231 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24232 ... here. Transformed into C.
24233 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24235 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24236 ... here. Transformed into C. Made static.
24237 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24239 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24240 ... here. Transformed into C. Made static.
24241 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24243 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24244 ... here. Transformed into C. Made static.
24245 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24246 pxe_rm_entry as third argument.
24247 (grub_bios_interrupt): New function.
24248 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24249 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24250 of calling grub_stop.
24251 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24252 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24253 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24254 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24255 * grub-core/lib/i386/halt.c: Moved from here ...
24256 * grub-core/lib/i386/halt.c: ... here.
24257 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24258 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24259 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24261 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24262 * include/grub/i386/coreboot/init.h: Removed.
24263 * include/grub/i386/multiboot/init.h: Likewise.
24264 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24265 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24266 * include/grub/i386/pc/int.h: New file.
24267 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24268 (grub_pxe_scan): Removed.
24269 (grub_pxe_call): Update prototype.
24270 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24272 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24273 * include/grub/i386/qemu/init.h: Removed.
24274 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24276 (grub_halt): Likewise.
24277 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24278 (grub_reboot): Likewise.
24279 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24280 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24281 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24283 2010-08-30 Robert Millan <rmh@gnu.org>
24285 * NEWS: Document addition of ZFS support in `grub-install' and
24288 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24290 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24293 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24295 Remove leftover embedding of font objects.
24297 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24298 * util/grub-install.in (font): Removed.
24299 * util/grub-mkimage.c (generate_image): Remove font support. All users
24302 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24304 Remove leftover embedding of font objects.
24306 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24307 * util/grub-install.in (font): Removed.
24308 * util/grub-mkimage.c (generate_image): Remove font support. All users
24311 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24313 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24314 Reported by: Ian Turner
24316 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24318 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24319 timeout to avoid indefinite boot stalling.
24321 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24323 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24324 (grub_env_write_color_highlight): Likewise.
24326 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24328 * grub-core/normal/term.c (print_more): Return to normal and not
24329 to standard state after printing "---MORE---".
24331 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24333 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24334 Mask out the bit 0x80 since it has other meaning that specifiing color.
24336 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24338 New relocator. Allows for more kernel support and more straightforward
24341 * Makefile.am (BOOTTARGET): New variable.
24342 (QEMU32): Likewise.
24343 (linux.init.x86_64): New target.
24344 (linux.init.i386): Likewise.
24345 (multiboot.elf): Likewise.
24346 (kfreebsd.elf): Likewise.
24347 (kfreebsd.aout): Likewise.
24348 (pc-chainloader.elf): Likewise.
24349 (pc-chainloader.bin): Likewise.
24350 (ntldr.elf): Likewise.
24351 (ntldr.bin): Likewise.
24352 (multiboot2.elf): Likewise.
24353 (kfreebsd.init.x86_64): Likewise.
24354 (kfreebsd.init.i386): Likewise.
24355 (knetbsd.init.i386): Likewise.
24356 (kopenbsd.init.i386): Likewise.
24357 (knetbsd.init.x86_64): Likewise.
24358 (kopenbsd.init.x86_64): Likewise.
24359 (linux-initramfs.i386): Likewise.
24360 (linux-initramfs.x86_64): Likewise.
24361 (kfreebsd-mfsroot.i386.img): Likewise.
24362 (knetbsd.image.i386): Likewise.
24363 (kopenbsd.image.i386): Likewise.
24364 (kopenbsd.image.x86_64): Likewise.
24365 (knetbsd.miniroot-image.i386.img): Likewise.
24366 (kfreebsd-mfsroot.x86_64.img): Likewise.
24367 (knetbsd.image.x86_64): Likewise.
24368 (knetbsd.miniroot-image.x86_64.img): Likewise.
24369 (kfreebsd-mfsroot.i386.gz): Likewise.
24370 (bootcheck-kfreebsd-i386): Likewise.
24371 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24372 (bootcheck-kfreebsd-x86_64): Likewise.
24373 (knetbsd.miniroot-image.i386.gz): Likewise.
24374 (bootcheck-knetbsd-i386): Likewise.
24375 (bootcheck-kopenbsd-i386): Likewise.
24376 (bootcheck-kopenbsd-x86_64): Likewise.
24377 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24378 (bootcheck-knetbsd-x86_64): Likewise.
24379 (bootcheck-linux-i386): Likewise.
24380 (bootcheck-linux-x86_64): Likewise.
24381 (bootcheck-linux16-i386): Likewise.
24382 (bootcheck-linux16-x86_64): Likewise.
24383 (bootcheck-multiboot): Likewise.
24384 (bootcheck-multiboot2): Likewise.
24385 (bootcheck-kfreebsd-aout): Likewise.
24386 (bootcheck-pc-chainloader): Likewise.
24387 (bootcheck-ntldr): Likewise.
24388 (CLEANFILES): Add new targets.
24389 (BOOTCHECKS): New variable.
24390 (.PHONY): Add bootchecks.
24391 (SUCCESSFUL_BOOT_STRING): New variable.
24392 (BOOTCHECK_TIMEOUT): Likewise.
24393 (bootcheck): New target
24394 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24395 * configure.ac: Correct efiemu excuse.
24396 * docs/grub.texi (Supported kernels): New chapter.
24397 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24398 include/grub/mm_private.h. Simplify inclusion of
24399 include/grub/boot.h, include/grub/loader.h
24400 and include/grub/msdos_partition.h
24401 (KERNEL_HEADER_FILES) [i386_coreboot]:
24402 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24403 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24404 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24405 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24406 include/grub/machine/loader.h.
24407 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24408 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24410 (pci.mod): Enable on i386-multiboot.
24411 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24412 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24414 (relocator.mod): Rewritten.
24415 (aout.mod): Enable on all x86.
24416 (bsd.mod): Likewise.
24417 (ntldr.mod): New module.
24418 (linux.mod): Use loader/i386/linux.c on all x86.
24419 (xnu.mod): Enable on all x86.
24420 (vga_text.mod): disable on EFI and QEMU.
24421 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24422 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24423 * grub-core/efiemu/loadcore.c: Likewise.
24424 * grub-core/efiemu/main.c: Likewise.
24425 (grub_efiemu_exit_boot_services): Removed.
24426 (grub_efiemu_finish_boot_services): Likewise.
24427 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24429 * grub-core/efiemu/i386/nocfgtables.c: New file.
24430 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24431 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24432 (grub_efi_finish_boot_services): Moved from here ...
24433 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24434 Fille finish memory map and related data.
24435 (finish_mmap_buf): New variable.
24436 (grub_efi_uintn_t finish_mmap_size): Likewise.
24437 (grub_efi_uintn_t finish_key): Likewise.
24438 (grub_efi_uintn_t finish_desc_size): Likewise.
24439 (grub_efi_uint32_t finish_desc_version): Likewise.
24440 (grub_efi_is_finished): Likewise.
24441 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24443 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
24444 (grub_elf64_phdr_iterate): Likewise.
24445 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
24446 (grub_os_area_size): Likewise.
24447 (grub_machine_init): Don't reserve os area.
24448 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
24449 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
24450 * grub-core/kern/i386/loader.S: Removed.
24451 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
24452 (grub_os_area_size): Likewise.
24453 (grub_machine_init): Don't reserve os area.
24454 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
24455 Don't call grub_dl_unload_all.
24456 Don't include loader.S.
24457 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
24458 Declare the memory after _end as available.
24459 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
24460 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
24461 (GRUB_MM_ALLOC_MAGIC): Moved from here...
24462 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
24463 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
24464 * include/grub/mm_private.h (grub_mm_header): ... here.
24465 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
24466 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
24467 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
24468 (grub_mm_region): ..here. Removed addr. Added pre_size.
24470 * grub-core/kern/mm.c (base): Renamed to ...
24471 (grub_mm_base): ... this. Made global.
24472 (grub_real_malloc): Alloc from end of region.
24473 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
24474 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
24475 * grub-core/kern/powerpc/cache_flush.S: ... here.
24476 * grub-core/lib/efi/relocator.c: New file.
24477 * grub-core/lib/i386/relocator.c: Rewritten.
24478 * grub-core/lib/i386/relocator16.S: New file.
24479 * grub-core/lib/i386/relocator32.S: Likewise.
24480 * grub-core/lib/i386/relocator64.S: Likewise.
24481 * grub-core/lib/i386/relocator_asm.S: Rewritten.
24482 * grub-core/lib/i386/relocator_common.S: New file.
24483 * grub-core/lib/ieee1275/relocator.c: Likewise.
24484 * grub-core/lib/mips/relocator.c: Rewritten.
24485 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
24486 stylistic adjustments.
24487 * grub-core/lib/powerpc/relocator.c: New file.
24488 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
24489 * grub-core/lib/relocator.c: Rewritten.
24490 * grub-core/lib/x86_64/relocator_asm.S: New file.
24491 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
24492 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
24493 (bsd_tag): New struct.
24494 (tags): New variable.
24495 (tags_last): Likewise.
24496 (netbsd_module): New struct.
24497 (netbsd_mods): New variable.
24498 (netbsd_mods_last): Likewise.
24499 (openbsd_opts): New parameter "serial".
24500 (OPENBSD_SERIAL_ARG): New definition.
24501 (netbsd_opts): New parameter "serial".
24502 (NETBSD_SERIAL_ARG): New definition.
24503 (grub_freebsd_add_meta): Reorganised into ...
24504 (grub_bsd_add_meta): ...this. All users updated.
24505 (grub_freebsd_add_mmap): Reorganised into ...
24506 (generate_e820_mmap): ...this...
24507 (grub_bsd_add_mmap): ...and this. All users updated.
24508 (grub_freebsd_list_modules): Use tags.
24509 (grub_netbsd_add_meta_module): New function.
24510 (grub_netbsd_list_modules): Likewise.
24511 (grub_freebsd_boot): Use relocator and finish EFI.
24512 (grub_openbsd_boot): Likewise.
24513 (grub_netbsd_setup_video): New function.
24514 (grub_netbsd_add_modules): Likewise.
24515 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
24517 (grub_bsd_unload): Unload tags.
24518 (grub_bsd_load_aout): Use relocator.
24519 (grub_bsd_elf32_size_hook): New function.
24520 (grub_bsd_elf32_hook): Use relocator.
24521 (grub_bsd_elf64_size_hook): New function.
24522 (grub_bsd_elf64_hook): Use relocator.
24523 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
24524 (grub_bsd_load): Zero-out openbsd_ramdisk.
24525 (grub_bsd_load): Use relocator.
24526 (grub_cmd_openbsd): Support serial.
24527 (grub_cmd_netbsd): Support modules.
24528 (grub_cmd_freebsd_module): Use relocator.
24529 (grub_netbsd_module_load): New function.
24530 (grub_cmd_netbsd_module): Likewise.
24531 (grub_cmd_openbsd_ramdisk): Likewise.
24532 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
24534 (GRUB_MOD_FINI): Unregister new commands.
24535 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
24536 (grub_freebsd_load_elfmodule_obj): Use relocator.
24537 (grub_freebsd_load_elfmodule): Likewise.
24538 (grub_freebsd_load_elf_meta): Likewise.
24539 (grub_netbsd_load_elf_meta): New function.
24540 (grub_openbsd_find_ramdisk): Likewise.
24541 * grub-core/loader/i386/bsd_helper.S: Removed.
24542 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
24543 * grub-core/loader/i386/bsd_trampoline.S: Removed.
24544 * grub-core/loader/i386/efi/linux.c: Likewise.
24545 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
24546 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
24547 (DEFAULT_VIDEO_MODE): Likewise.
24548 (real_mode_target): New variable.
24549 (prot_mode_target): Likewise.
24550 (initrd_mem_target): Likewise.
24551 (relocator): Likewise.
24552 (efi_mmap_buf): Likewise.
24553 (efi_mmap_size): Likewise.
24554 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
24555 (free_pages): Use relocator.
24556 (allocate_pages): Account for efi_mmap and use relocator. Return error.
24557 (grub_linux_setup_video): Return error.
24558 (grub_linux_trampoline_start): Removed.
24559 (grub_linux_trampoline_end): Likewise.
24560 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
24561 andd video parameters depending on firmware.
24562 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
24563 [GRUB_MACHINE_EFI]: Pass EFI parameters.
24564 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
24565 (grub_cmd_initrd): Use relocator.
24566 * grub-core/loader/i386/linux_trampoline.S: Removed.
24567 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
24568 (elf_sec_entsize): Likewise.
24569 (elf_sec_shstrndx): Likewise.
24570 (elf_sections): Likewise.
24571 (grub_multiboot_load): Use relocator.
24572 (grub_multiboot_get_mbi_size): Account for sections.
24573 (grub_multiboot_make_mbi): Use relocator and support sections.
24574 (grub_multiboot_add_elfsyms): New function.
24575 (grub_multiboot_free_mbi): Free sections.
24576 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
24577 (grub_linux_real_target): Likewise.
24578 (grub_linux_real_chunk): Likewise.
24579 (grub_linux16_prot_size): Likewise.
24580 (grub_linux16_boot): Use relocator.
24581 (grub_linux_unload): Unload relocator.
24582 (grub_cmd_linux): Use relocator.
24583 (grub_cmd_initrd): Likewise.
24584 * grub-core/loader/i386/pc/ntldr.c: New file.
24585 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
24586 Don't try to guess CPU frequency.
24587 (grub_xnu_set_video): Stretch bitmap.
24588 (grub_xnu_boot): Use relocator.
24589 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
24590 (grub_linux_unload): Free relocator.
24591 (grub_linux_load32): Use relocator.
24592 (grub_linux_load64): Likewise.
24593 (grub_cmd_initrd): Likewise.
24594 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
24595 (grub_multiboot_unload): Unload relocator.
24596 (grub_cmd_multiboot): Use relocator.
24597 (grub_cmd_module): Likewise.
24598 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
24599 Use relocator and support sections.
24600 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
24601 (elf_sec_entsize): Likewise.
24602 (elf_sec_shstrndx): Likewise.
24603 (elf_sections): Likewise.
24604 (grub_multiboot_load): Use relocator.
24605 (grub_multiboot_get_mbi_size): Account for sections.
24606 (grub_multiboot_make_mbi): Use relocator and support sections.
24607 (grub_multiboot_add_elfsyms): New function.
24608 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
24609 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
24610 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
24611 Prototype changed. All users updated.
24612 (grub_xnu_align_heap): Simplified.
24613 (grub_xnu_writetree_toheap): Likewise.
24614 (grub_xnu_unload): Unload relocator.
24615 (grub_cmd_xnu_kernel): Use relocator.
24616 (grub_cmd_xnu_kernel64): Likewise.
24617 (grub_xnu_register_memory): Simplified.
24618 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
24619 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
24621 (grub_console_checkkey): Likewise.
24622 (grub_console_getkey): Likewise.
24623 (grub_console_getwh): Likewise.
24624 (grub_console_getxy): Likewise.
24625 (grub_console_gotoxy): Likewise.
24626 (grub_console_cls): Likewise.
24627 (grub_console_setcolorstate): Likewise.
24628 (grub_console_setcursor): Likewise.
24629 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
24630 * grub-core/tests/boot/kbsd.init-i386.S: New file.
24631 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
24632 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
24633 * grub-core/tests/boot/kernel-8086.S: Likewise.
24634 * grub-core/tests/boot/kernel-i386.S: Likewise.
24635 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
24636 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
24637 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
24638 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
24639 * grub-core/tests/boot/knetbsd.cfg: Likewise.
24640 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
24641 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
24642 * grub-core/tests/boot/linux.cfg: Likewise.
24643 * grub-core/tests/boot/linux.init-i386.S: Likewise.
24644 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
24645 * grub-core/tests/boot/linux16.cfg: Likewise.
24646 * grub-core/tests/boot/multiboot.cfg: Likewise.
24647 * grub-core/tests/boot/multiboot2.cfg: Likewise.
24648 * grub-core/tests/boot/ntldr.cfg: Likewise.
24649 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
24650 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
24651 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
24653 * include/grub/dl.h (grub_dl_unload_all): Removed.
24654 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
24655 (grub_efi_finish_boot_services): Change prototype.
24656 (grub_efi_is_finished): New variable.
24657 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
24659 (grub_efiemu_finish_boot_services): Removed.
24660 (grub_machine_efiemu_init_tables): New prototype.
24661 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
24662 (grub_elf64_phdr_iterate): Likewise.
24663 * include/grub/i386/bsd.h: Include relocator.h.
24664 (freebsd_tag_header): New struct.
24665 (grub_openbsd_bios_mmap): Removed.
24666 (grub_unix_real_boot): Removed.
24667 (grub_freebsd_load_elfmodule32): Changed prototype.
24668 (grub_freebsd_load_elfmodule_obj64): Likewise.
24669 (grub_freebsd_load_elf_meta32): Likewise.
24670 (grub_freebsd_load_elf_meta64): Likewise.
24671 (grub_freebsd_add_meta): Removed.
24672 (grub_netbsd_load_elf_meta32): New prototype.
24673 (grub_netbsd_load_elf_meta64): Likewise.
24674 (grub_bsd_add_meta): Likewise.
24675 (grub_openbsd_ramdisk_descriptor): New struct.
24676 (grub_openbsd_find_ramdisk32): New prototype.
24677 (grub_openbsd_find_ramdisk64): Likewise.
24678 * include/grub/i386/coreboot/loader.h: Removed.
24679 * include/grub/i386/efi/loader.h: Likewise.
24680 * include/grub/i386/ieee1275/loader.h: Likewise.
24681 * include/grub/i386/linux.h (linux_kernel_header): Change void *
24683 * include/grub/i386/loader.h: Removed.
24684 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
24686 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
24687 (grub_phys_addr_t): New type.
24688 (grub_vtop): New inline function.
24689 (grub_map_memory): Likewise.
24690 (grub_unmap_memory): Likewise.
24691 * include/grub/i386/multiboot/loader.h: Removed.
24692 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
24693 (NETBSD_BTINFO_CONSOLE): New definition.
24694 (NETBSD_BTINFO_SYMTAB): Likewise.
24695 (NETBSD_BTINFO_MODULES): Likewise.
24696 (NETBSD_BTINFO_FRAMEBUF): Likewise.
24697 (grub_netbsd_bootinfo): New struct.
24698 (grub_netbsd_btinfo_common): Use explicit bitsize.
24699 (grub_netbsd_btinfo_mmap_entry): Removed.
24700 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
24701 (grub_netbsd_btinfo_bootdisk): New struct.
24702 (grub_netbsd_btinfo_symtab): Likewise.
24703 (grub_netbsd_btinfo_serial): Likewise.
24704 (grub_netbsd_btinfo_modules): Likewise.
24705 (grub_netbsd_btinfo_framebuf): Likewise.
24706 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
24707 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
24709 (grub_openbsd_bootargs): Use explicit bitsize.
24710 (grub_openbsd_bootarg_console): New struct.
24711 (GRUB_OPENBSD_COM_MAJOR): New definition.
24712 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
24713 * include/grub/i386/pc/efiemu.h: Removed.
24714 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
24715 * include/grub/i386/qemu/loader.h: Removed.
24716 * include/grub/i386/relocator.h: Rewritten.
24717 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
24718 * include/grub/mips/memory.h: New file.
24719 * include/grub/mips/multiboot.h: Rewritten.
24720 * include/grub/mips/relocator.h: Rewritten.
24721 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
24722 (grub_vtop): New function.
24723 (grub_map_memory): Likewise.
24724 (grub_unmap_memory): Likewise.
24725 * include/grub/misc.h (ALIGN_DOWN): New definition.
24726 * include/grub/mm.h (grub_mm_check_real): New proto.
24727 (GRUB_MM_CHECK): New definition.
24728 * include/grub/mm_private.h: New file.
24729 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
24730 (grub_multiboot_get_mbi_size): Removed.
24731 (grub_multiboot_make_mbi): Change prottype.
24732 (grub_multiboot_set_accepts_video): New proto.
24733 (grub_multiboot_add_elfsyms): Likewise.
24734 (grub_multiboot_payload_eip): New variable.
24735 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
24737 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
24739 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
24740 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
24741 * include/grub/powerpc/ieee1275/loader.h: Removed.
24742 * include/grub/powerpc/memory.h: New file.
24743 * include/grub/powerpc/relocator.h: Likewise.
24744 * include/grub/relocator.h: Likewise.
24745 * include/grub/relocator_private.h: Likewise.
24746 * include/grub/sparc64/ieee1275/loader.h: Removed.
24747 * include/grub/x86_64/memory.h: New file.
24748 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
24749 (grub_xnu_heap_malloc): Likewise.
24750 (grub_xnu_heap_real_start): Removed.
24751 (grub_xnu_heap_start): Likewise.
24752 (grub_xnu_relocator): New variable.
24753 (grub_xnu_heap_target_start): Likewise.
24754 * tests/util/grub-shell.in: Support non-pc.
24755 * util/grub-mkimage.c (image_targets): Fix multiboot target.
24757 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24759 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
24761 (grub_bidi_logical_to_visual): Check that malloc succeded.
24762 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
24764 (grub_xputs_normal): Likewise.
24766 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24768 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
24771 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24773 * grub-core/efiemu/runtime/efiemu.sh: Removed.
24775 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24777 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
24779 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24781 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
24784 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
24786 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
24788 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24790 * grub-core/normal/term.c (print_more): Fix a memory leak.
24791 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
24792 (grub_xputs_normal): Likewise.
24794 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24796 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
24797 the begining of the string
24799 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24801 * grub-core/script/script.c (grub_script_parse): Free parsed on
24804 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24806 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
24809 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24811 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
24814 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24816 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
24817 (scroll_up): Fix a memory leak.
24819 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24821 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
24824 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
24826 Handle USB pendrives exposed as floppies.
24828 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
24830 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
24831 Check for partitions on all devices.
24833 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24835 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
24836 (readkey): Likewise.
24838 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
24840 Multiple variable names support to "export" command.
24842 * normal/context.c (grub_cmd_export): "export" command supports
24843 multiple variable names.
24845 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
24847 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
24848 --target=drive output to Mach device name.
24850 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
24852 New Automake based build system for GRUB.
24854 * ABOUT-NLS: New file.
24855 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
24856 in Makefile.util.def file.
24857 * Makefile.util.def: New file. Autogen build definitions file for
24859 * conf/Makefile.common: New file. Common variables for GRUB host
24860 utils and target modules.
24861 * conf/Makefile.extra-dist: New file. Extra files for make dist.
24862 * docs/Makefile.am: New file. Automake file for docs.
24863 * gentpl.py: New file. Python script to generate Autogen
24865 * grub-core/Makefile.am: New file. GRUB target modules' rules
24866 that doesn't fit in Makefile.core.def file.
24867 * grub-core/Makefile.core.def: New file. Autogen build
24868 definitions file for GRUB target modules.
24869 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
24870 specific setjmp.S file.
24871 * po/Makefile.am: New file.
24873 * .bzrignore: New ignores.
24874 * INSTALL: New requirements, without Ruby.
24875 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
24876 * autogen.sh: Updated to invoke autogen as necessary.
24877 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
24878 and defines for Automake conditionals.
24879 * geninit.sh: Refactoring.
24881 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
24883 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
24886 * include/grub/test.h: Fix functional test modules' naming.
24887 * grub-core/tests/example_functional_test.c: Fix test module name.
24889 * util/misc.c: Hosted versions' of grub functions for libgrub.a
24890 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
24891 * util/grub-editenv.c: Likewise.
24892 * util/grub-fstest.c: Likewise.
24893 * util/grub-mkdevicemap.c: Likewise.
24894 * util/grub-mkfont.c: Likewise.
24895 * util/grub-mkimage.c: Likewise.
24896 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24897 * util/grub-probe.c: Likewise.
24898 * util/grub-script-check.c: Likewise.
24899 * util/i386/pc/grub-setup.c: Likewise.
24900 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24902 * tests/util/grub-shell.in: Fix override directory path.
24903 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
24904 * util/import_gcry.py: Create Makefile.gcry.def file instead.
24906 * util/lvm.c: Update #includes.
24907 * util/raid.c: Likewise.
24908 * util/resolve.c: Likewise.
24909 * grub-core/bus/emu/pci.c: Likewise.
24910 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
24911 * grub-core/lib/posix_wrap/string.h: Likewise.
24912 * grub-core/kern/emu/main.c: Likewise.
24914 * grub-core/gensymlist.sh: New file. Script for generating kernel
24916 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
24918 * grub-core/gentrigtables.c: Fix unused variable warnings.
24920 * Makefile.in: Removed.
24921 * conf/any-emu.rmk: Removed.
24922 * conf/common.rmk: Removed.
24923 * conf/i386-coreboot.rmk: Removed.
24924 * conf/i386-efi.rmk: Removed.
24925 * conf/i386-ieee1275.rmk: Removed.
24926 * conf/i386-multiboot.rmk: Removed.
24927 * conf/i386-pc.rmk: Removed.
24928 * conf/i386-qemu.rmk: Removed.
24929 * conf/i386.rmk: Removed.
24930 * conf/mips-yeeloong.rmk: Removed.
24931 * conf/mips.rmk: Removed.
24932 * conf/powerpc-ieee1275.rmk: Removed.
24933 * conf/sparc64-ieee1275.rmk: Removed.
24934 * conf/tests.rmk: Removed.
24935 * conf/x86-efi.rmk: Removed.
24936 * conf/x86_64-efi.rmk: Removed.
24937 * gendistlist.sh: Removed.
24938 * geninitheader.sh: Removed.
24939 * genkernsyms.sh.in: Removed.
24940 * genmk.rb: Removed.
24941 * gensymlist.sh.in: Removed.
24942 * mkinstalldirs: Removed.
24944 * grub-core/boot: ... to here.
24946 * grub-core/bus: ... to here.
24947 * commands: Moved ...
24948 * grub-core/commands: ... to here.
24950 * grub-core/disk: ... to here.
24951 * efiemu: Moved ...
24952 * grub-core/efiemu: ... to here.
24954 * grub-core/font: ... to here.
24956 * grub-core/fs: ... to here.
24957 * gencmdlist.sh: Moved ...
24958 * grub-core/gencmdlist.sh: ... to here.
24959 * genemuinit.sh: Moved ...
24960 * grub-core/genemuinit.sh: ... to here.
24961 * genemuinitheader.sh: Moved ...
24962 * grub-core/genemuinitheader.sh: ... to here.
24963 * genfslist.sh: Moved ...
24964 * grub-core/genfslist.sh: ... to here.
24965 * genhandlerlist.sh: Moved ...
24966 * grub-core/genhandlerlist.sh: ... to here.
24967 * genmoddep.awk: Moved ...
24968 * grub-core/genmoddep.awk: ... to here.
24969 * genmodsrc.sh: Moved ...
24970 * grub-core/genmodsrc.sh: ... to here.
24971 * genpartmaplist.sh: Moved ...
24972 * grub-core/genpartmaplist.sh: ... to here.
24973 * genparttoollist.sh: Moved ...
24974 * grub-core/genparttoollist.sh: ... to here.
24975 * genterminallist.sh: Moved ...
24976 * grub-core/genterminallist.sh: ... to here.
24977 * gentrigtables.c: Moved ...
24978 * grub-core/gentrigtables.c: ... to here.
24979 * genvideolist.sh: Moved ...
24980 * grub-core/genvideolist.sh: ... to here.
24981 * gettext: Moved ...
24982 * grub-core/gettext: ... to here.
24983 * gfxmenu: Moved ...
24984 * grub-core/gfxmenu: ... to here.
24985 * gnulib: Moved ...
24986 * grub-core/gnulib: ... to here.
24988 * grub-core/hello: ... to here.
24990 * grub-core/hook: ... to here.
24992 * grub-core/io: ... to here.
24994 * grub-core/kern: ... to here.
24996 * grub-core/lib: ... to here.
24997 * loader: Moved ...
24998 * grub-core/loader: ... to here.
25000 * grub-core/mmap: ... to here.
25001 * normal: Moved ...
25002 * grub-core/normal: ... to here.
25003 * partmap: Moved ...
25004 * grub-core/partmap: ... to here.
25005 * parttool: Moved ...
25006 * grub-core/parttool: ... to here.
25007 * script: Moved ...
25008 * grub-core/script: ... to here.
25010 * grub-core/term: ... to here
25011 * tests/example_functional_test.c: Moved ...
25012 * grub-core/tests/example_functional_test.c: ... to here.
25013 * tests/lib/functional_test.c: Moved ...
25014 * grub-core/tests/lib/functional_test.c: ... to here.
25015 * tests/lib/test.c: Moved ...
25016 * grub-core/tests/lib/test.c: ... to here.
25018 * grub-core/video: ... to here.
25020 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25022 Replace --enable-grub-emu-modules with grub-emu-lite.
25024 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25027 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25028 * kern/emu/full.c: New file. For grub-emu specific initialization.
25029 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25030 * kern/emu/main.c: Call initialization function grub_emu_init.
25032 * Makefile.in: Include grub-emu-lite in install.
25033 * commands/parttool.c: Use grub_no_autoload to differentiate
25034 between grub-emu and grub-emu-lite.
25035 * include/grub/misc.h: New variable grub_no_autoload.
25037 * conf/any-emu.rmk: New rules for grub-emu-lite.
25038 * configure.ac: Remove --enable-grub-emu-modules.
25039 * genmk.rb: Cleanup unnecessary rules.
25040 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25042 * normal/main.c: Don't load list files on grub-emu-lite.
25043 * util/misc.c (grub_arch_sync_caches): Removed.
25045 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25047 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25048 grub-mkimage rather than grub-mkelfimage.
25049 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25051 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25053 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25054 a key after CapsLock or NumLock. It's just a qemu bug.
25056 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25058 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25059 needed by libusb wrapper.
25061 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25063 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25065 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25067 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25068 --nounzip is passed.
25070 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25072 USB hotunplugging and USB serial support.
25074 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25075 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25076 (grub_uhci_transfer): Respect timeout and set *actual.
25077 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25078 non-standard length.
25079 (grub_usb_device_attach): Autoload modules.
25080 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25081 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25082 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25084 (grub_usb_add_hub): Fill nports and children.
25085 (attach_root_port): Receive hub instead of controller.
25086 All users updated. Fill hub->devices.
25087 (grub_usb_root_hub): Allocate hub->devices.
25088 (detach_device): New function.
25089 (poll_nonroot_hub): Fill children and detach devices.
25090 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25091 actual arguments. All users updated.
25092 (grub_usb_bulk_read_extended): New function.
25093 * bus/usb/serial/common.c: New file.
25094 * bus/usb/serial/ftdi.c: Likewise.
25095 * bus/usb/serial/pl2303.c: Likewise.
25096 * commands/terminal.c (handle_command): Support wildcard.
25097 * commands/usbtest.c: Output "Unknown" instead of empty string.
25098 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25099 (usbserial_common_mod_SOURCES): New variable.
25100 (usbserial_common_mod_CFLAGS): Likewise.
25101 (usbserial_common_mod_LDFLAGS): Likewise.
25102 (pkglib_MODULES): Add usbserial_pl2303.mod.
25103 (usbserial_pl2303_mod_SOURCES): New variable.
25104 (usbserial_pl2303_mod_CFLAGS): Likewise.
25105 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25106 (pkglib_MODULES): Add usbserial_ftdi.mod.
25107 (usbserial_ftdi_mod_SOURCES): New variable.
25108 (usbserial_ftdi_mod_CFLAGS): Likewise.
25109 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25110 (pkglib_MODULES): Add serial.mod.
25111 (serial_mod_SOURCES): New variable.
25112 (serial_mod_CFLAGS): Likewise.
25113 (serial_mod_LDFLAGS): Likewise.
25114 * conf/i386-pc.rmk: Likewise.
25115 * conf/mips-yeeloong.rmk: Likewise.
25116 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25117 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25118 * disk/usbms.c (first_available_slot): New variable.
25119 (grub_usbms_attach): Don't reuse free slots due to potential cache
25121 * include/grub/serial.h: Moved to ..
25122 * include/grub/ns8250.h: ...this.
25123 * include/grub/serial.h: New file.
25124 * include/grub/term.h (grub_term_poll_usb): New variable.
25125 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25126 readkey. All users updated.
25127 (grub_terminfo_output_state): Pass term to put.
25128 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25129 (grub_usb_controller_dev): Add timeout and actual arguments to
25130 transfer. All users updated.
25131 (grub_usb_interface): New field detach_data.
25132 (grub_usb_device): New fields children and nports.
25133 (grub_usb_ep_type_t): New type.
25134 (grub_usb_get_ep_type): New function.
25135 (grub_usb_bulk_read_extended): Likewise.
25136 * include/grub/usbdesc.h (grub_usb_desc): New type.
25137 * include/grub/usbserial.h: New file.
25138 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25139 * kern/term.c (grub_term_poll_usb): New variable.
25140 (grub_getkey): Call grub_term_poll_usb if set.
25141 (grub_checkkey): Likewise.
25142 (grub_getkeystatus): Likewise.
25143 * term/serial.c: Moved controller-specific parts to ...
25144 * term/ns8250.c: ... here.
25145 * term/serial.c: Mostly rewritten.
25146 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25149 2010-08-20 Robert Millan <rmh@gnu.org>
25151 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25152 a separate module and maybe other interesting combinations.
25154 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25155 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25156 (kfreebsd_entry): Add generic filesystem module load routine.
25157 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25159 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25161 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25162 "numcenter" (I misunderstood the purpose of this entry).
25163 * docs/grub.texi (sendkey): Likewise.
25165 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25167 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25168 status flag options; simply omitting the option is equivalent and
25169 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25170 (keysym_table): Rename "num5numlock" to "numlock".
25171 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25172 can uniformly say that only the last of multiple `sendkey'
25173 invocations has any effect.
25174 * docs/grub.texi (sendkey): New section.
25176 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25178 * commands/i386/pc/sendkey.c (options): Fix three typos.
25180 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25182 Implement sendkey support.
25184 * commands/i386/pc/sendkey.c: New file.
25185 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25186 (sendkey_mod_SOURCES): New variable.
25187 (sendkey_mod_CFLAGS): Likewise.
25188 (sendkey_mod_LDFLAGS): Likewise.
25190 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25192 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25193 fix warnings from Autoconf.
25195 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25197 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25198 to avoid false positives with some assemblers that output things
25199 like "someprefix_func" as part of their output.
25201 2010-08-15 Robert Millan <rmh@gnu.org>
25203 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25205 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25206 grub_get_libzfs_handle() errors.
25208 2010-08-14 Robert Millan <rmh@gnu.org>
25210 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25211 filesystem is not ZFS.
25213 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25215 Fix for misspelled color names defaulting to black/black (bug
25216 reported by Doug Nazar)
25218 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25219 status to prototype.
25220 * normal/color.c (grub_parse_color_name_pair): Return failure
25222 (grub_env_write_color_normal): Ignore bad color names.
25223 (grub_env_write_color_highlight): Likewise.
25224 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25226 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25228 "shift" command support to GRUB script.
25230 * include/grub/script_sh.h (grub_script_shift): New prototype.
25231 * script/execute.c (grub_script_shift): New function.
25232 * script/main.c (grub_script_init): Register shift command.
25233 (grub_script_fini): Unregister shift command.
25234 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25236 * tests/grub_script_shift.in: New testcase.
25237 * conf/tests.rmk: Rules for new testcase.
25239 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25241 "continue" command support to GRUB script.
25243 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25244 (grub_script_break): Continue support.
25245 * script/main.c (grub_script_init): Register continue command.
25246 (grub_script_fini): Unregister continue command.
25248 * tests/grub_script_continue.in: New testcase.
25249 * conf/tests.rmk: Rules for new testcase.
25251 2010-08-12 BVK Chaitanya <bvk@dbook>
25253 "break" command support to GRUB script.
25255 * conf/common.rmk: Rule updates to grub-script-check.
25256 * include/grub/misc.h (grub_min): New function.
25257 * include/grub/script_sh.h (grub_script_init): New prototype.
25258 (grub_script_fini): New prototype.
25259 (grub_script_break): New prototype.
25260 * script/main.c (grub_script_init): New function.
25261 (grub_script_fini): New function.
25262 * script/execute.c (grub_script_break): New function.
25263 * normal/main.c: Calls to grub_script_{init,fini}.
25264 * util/grub-script-check.c (grub_script_break): New function.
25266 * tests/grub_script_break.in: New testcase.
25267 * conf/tests.rmk: Rules for new test case.
25269 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25271 Function parameters support to GRUB script.
25273 * script/yylex.l (VARIABLE): Regular expression update.
25274 * script/function.c (grub_script_function_call): Moved ...
25275 * script/execute.c (grub_script_function_call): ... to here.
25276 (grub_script_execute_arglist_to_argv): Removed.
25277 (grub_script_arglist_to_argv): New function.
25278 * script/argv.c: New file.
25279 (grub_script_argv_free): New function.
25280 (grub_script_argv_next): Likewise.
25281 (grub_script_argv_append): Likewise.
25282 (grub_script_argv_split_append): Likewise.
25283 * include/grub/script_sh.h (grub_script_argv): New struct.
25284 (grub_script_argv_free): New function.
25285 (grub_script_argv_next): Likewise.
25286 (grub_script_argv_append): Likewise.
25287 (grub_script_argv_split_append): Likewise.
25289 * conf/common.rmk (normal.mod): New source script/argv.c.
25291 * tests/grub_script_echo1.in: More tests.
25292 * tests/grub_script_vars1.in: Likewise.
25293 * tests/grub_script_functions.in: New test case.
25294 * conf/tests.rmk: Rules for new testcase.
25296 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25298 Remove grub_script_cmdblock struct.
25300 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25301 * script/parser.y: Likewise.
25302 * script/execute.c: Rename cmdblock suffix to cmdlist.
25303 * script/script.c: Likewise.
25304 * util/grub-script-check.c: Likewise.
25306 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25308 * .bzrignore: add grub-macho2img
25310 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25312 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25314 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25316 Remove the dump of sm712 initialisation sequence.
25318 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25319 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25320 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25321 (GRUB_VGA_CR_*): Added many registers.
25322 (GRUB_VGA_SR_*): Likewise.
25323 (GRUB_VGA_GR_*): Likewise.
25324 (grub_vga_write_arx): New function.
25325 (grub_video_hw_config): New struct.
25326 (grub_vga_set_geometry): New function.
25327 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25328 GRUB_PCI_CLASS_SUBCLASS_VGA.
25329 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25330 * video/sm712.c (grub_sm712_write_reg): New function
25331 (grub_sm712_read_reg): Likewise.
25332 (grub_sm712_sr_write): Likewise.
25333 (grub_sm712_gr_write): Likewise.
25334 (grub_sm712_cr_write): Likewise.
25335 (grub_sm712_write_arx): Likewise.
25336 (grub_sm712_cr_shadow_write): Likewise.
25337 (grub_sm712_write_dda_lookup): Likewise.
25338 (grub_video_sm712_setup): Initialise the video rather then
25339 blindly replay the dump.
25340 (main) [TEST]: Add a routine to be able to compile as standalone for
25342 * video/sm712_init.c (sm712_init): Removed.
25343 (sm712_sr_seq1): New array.
25344 (sm712_sr_seq2): Likewise.
25346 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25348 * include/grub/vga.h: Add missing grub/pci.h include.
25350 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25352 * util/grub-macho2img.c (main): fix typo
25354 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25356 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25357 (grub_vga_gr_read): Likewise.
25358 (grub_vga_cr_write): Likewise.
25359 (grub_vga_cr_read): Likewise.
25360 (grub_vga_sr_write): Likewise.
25361 (grub_vga_sr_read): Likewise.
25362 (grub_vga_palette_read): Likewise.
25363 (grub_vga_palette_write): Likewise.
25364 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25365 (grub_sm712_sr_read): New function.
25366 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25367 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25369 2010-08-09 Robert Millan <rmh@gnu.org>
25371 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25372 out unused variables on non-ZFS build.
25374 2010-08-08 Robert Millan <rmh@gnu.org>
25376 Fix path generation for sub-filesystems in ZFS.
25378 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25381 2010-08-08 Robert Millan <rmh@gnu.org>
25383 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25385 2010-08-08 Robert Millan <rmh@gnu.org>
25387 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25388 exist, issue a proper error message (rely on `ls' for translated
25391 2010-08-08 Robert Millan <rmh@gnu.org>
25393 Fix grub-probe invocation.
25395 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25397 2010-08-04 Robert Millan <rmh@gnu.org>
25399 * configure.ac: Remove checks for getfsstat() and getmntany().
25400 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25401 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25402 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25403 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25404 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25406 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25407 via find_mount_point_from_dir() and getfsstat() / getmntany().
25409 2010-08-04 Robert Millan <rmh@gnu.org>
25411 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25412 (grub_find_zpool_from_mount_point): Merge into ...
25413 (grub_find_zpool_from_dir): ... this.
25414 * kern/emu/misc.c: Likewise.
25417 (grub_make_system_path_relative_to_its_root): Replace
25418 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25419 with grub_find_zpool_from_dir().
25420 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25422 2010-08-04 Robert Millan <rmh@gnu.org>
25424 Support OpenSolaris in ZFS device resolution.
25426 * configure.ac: Check for getmntany().
25427 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25428 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25431 2010-08-03 Robert Millan <rmh@gnu.org>
25433 Fix grub-emu build.
25435 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25436 * include/grub/emu/misc.h: ... here.
25438 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25439 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25441 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25442 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25443 (grub_get_libzfs_handle): Move to ...
25444 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
25445 (grub_get_libzfs_handle): ... here.
25447 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
25449 * script/execute.c (grub_script_execute_cmdline): Check for NULL
25450 as command name case.
25452 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
25454 * disk/raid.c (insert_array): Select unique numbers for named arrays
25455 as well, for use as keys in the disk cache.
25457 2010-08-01 Robert Millan <rmh@gnu.org>
25459 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
25460 kFreeBSD device name, except on ZFS where the filesystem label is
25462 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
25463 `/boot/zfs/zpool.cache'.
25464 Set mountfrom kernel variable using ${kfreebsd_device}.
25466 2010-08-01 Robert Millan <rmh@gnu.org>
25468 Make it even harder to use uninitialized `libzfs_handle' (and
25469 make the interface a bit simpler).
25471 * include/grub/util/misc.h (grub_util_init_libzfs)
25472 (libzfs_handle): Remove.
25473 (grub_get_libzfs_handle): New prototype.
25475 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
25477 (grub_util_init_libzfs): Remove.
25478 (grub_get_libzfs_handle): New function.
25480 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
25481 grub_get_libzfs_handle() to obtain a libzfs handle instead of
25482 accessing `libzfs_handle' directly.
25484 2010-08-01 Robert Millan <rmh@gnu.org>
25486 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25487 (grub_find_zpool_from_mount_point): New function prototypes.
25489 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
25490 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
25492 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
25493 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
25494 `static' attribute.
25496 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
25497 finding zpool from mount point into ...
25498 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
25500 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
25501 requested path is part of a ZFS pool, use
25502 grub_find_zpool_from_mount_point() to detect its filesystem name,
25503 and generate a path with `/fsname@path' syntax.
25505 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25507 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
25508 (void) rather than () so that this is a proper prototype.
25510 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25512 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
25514 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25516 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
25517 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
25519 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25521 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
25523 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25525 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
25527 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25529 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
25530 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
25531 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
25532 disable gfxpayload.
25533 (Shell-like scripting): Add real content.
25534 (Serial terminal): Suggest `terminal_input serial; terminal_output
25535 serial' rather than putting the two commands on separate lines,
25536 since console input will be inoperative after the first command.
25537 (menuentry): Document --class, --users, and --hotkey options.
25538 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
25539 Vladimir Serbinenko).
25541 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25542 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25544 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
25546 2010-08-01 Robert Millan <rmh@gnu.org>
25548 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25549 (grub_find_zpool_from_mount_point): New function prototypes.
25551 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
25552 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
25554 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
25555 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
25556 `static' attribute.
25558 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
25559 finding zpool from mount point into ...
25560 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
25562 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
25563 requested path is part of a ZFS pool, use
25564 grub_find_zpool_from_mount_point() to detect its filesystem name,
25565 and generate a path with `/fsname@path' syntax.
25567 2010-08-01 Robert Millan <rmh@gnu.org>
25569 Prevent accidental use of uninitialized libzfs_handle.
25571 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
25572 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
25573 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
25575 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25577 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
25578 util/grub.d/10_linux.in). Fixes Debian bug #591093.
25580 2010-08-01 Robert Millan <rmh@gnu.org>
25582 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
25584 2010-07-31 Robert Millan <rmh@gnu.org>
25586 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
25588 2010-07-31 Robert Millan <rmh@gnu.org>
25590 * kern/emu/misc.c: Add missing license header.
25592 2010-07-31 Robert Millan <rmh@gnu.org>
25594 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
25596 * include/grub/util/libnvpair.h: Include `<config.h>'.
25597 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
25598 declaring libnvpair prototypes ourselves.
25599 * include/grub/util/libzfs.h: Include `<config.h>'.
25600 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
25601 declaring libzfs prototypes ourselves.
25603 (libzfs_handle): Moved to ...
25604 * include/grub/util/misc.h (libzfs_handle): ... here.
25605 Include `<grub/util/libzfs.h>'.
25607 2010-07-30 Robert Millan <rmh@gnu.org>
25609 * include/grub/emu/misc.h: Add missing license header.
25611 2010-07-30 Robert Millan <rmh@gnu.org>
25613 Enable `grub-probe -t device' resolution on ZFS.
25615 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
25616 * include/grub/util/libnvpair.h: New file.
25617 * include/grub/util/libzfs.h: New file.
25619 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
25620 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
25621 `<grub/util/libnvpair.h>'.
25622 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
25624 (find_mount_point_from_dir): New static function.
25625 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
25627 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
25628 find_root_device_from_libzfs() before ressorting to find_root_device().
25630 * include/grub/util/misc.h (grub_util_init_libzfs): New function
25632 * util/misc.c: Include `<grub/util/libzfs.h>'.
25633 (grub_util_init_libzfs): New function.
25634 [HAVE_LIBZFS] (libzfs_handle): New global variable.
25635 [HAVE_LIBZFS] (fini_libzfs): New static function.
25636 (grub_util_init_libzfs): New function.
25637 * util/grub-probe.c (main): Call grub_util_init_libzfs().
25639 2010-07-30 Robert Millan <rmh@gnu.org>
25641 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
25642 (xmalloc, xrealloc, xstrdup, xasprintf): Add
25643 `warn_unused_result' attribute.
25644 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
25645 (grub_xasprintf, grub_xvasprintf): Likewise.
25646 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
25648 2010-07-29 Robert Millan <rmh@gnu.org>
25650 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
25651 (probe): Handle `PRINT_FS_LABEL'.
25652 (main): Handle `-t fs_label'.
25654 2010-07-29 Robert Millan <rmh@gnu.org>
25656 * configure.ac: Remove grub-mkisofs checks.
25658 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
25660 * util/ieee1275/grub-install.in: Don't use empty grub_device.
25661 Reported by: Lennart Sorensen.
25663 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25665 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
25666 prior to terminal_input/terminal_output separation. It's been over 1.5
25667 years and those versions weren't widely deployed.
25669 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
25671 * disk/raid.c (insert_array): Don't count named arrays when looking
25672 for unused array numbers.
25673 Reported and tested by: Michael Guntsche.
25675 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25677 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
25678 implementation of this so that grub-emu links again, with a note
25679 that this should support hotplugging in the future.
25681 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25683 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
25685 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25687 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
25689 (grub_loopback_close): Remove empty function.
25690 (grub_loopback_dev): Remove close method.
25692 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25694 Disable EFI cursor when the EFI console becomes inactive.
25696 * term/efi/console.c (grub_efi_console_init): New function.
25697 (grub_efi_console_fini): New function.
25698 (grub_console_term_output): Register init and fini methods.
25700 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25702 * tests/util/grub-shell-tester.in: Remove bashism and declare as
25705 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25707 * disk/loopback.c (grub_loopback): Replace filename with file.
25708 (delete_loopback): Handle new semantics.
25709 (grub_cmd_loopback): Likewise.
25710 (grub_loopback_iterate): Likewise.
25711 (grub_loopback_close): Likewise.
25713 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25715 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
25717 Reported by: Tito Keitel.
25719 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25721 * docs/grub.texi (Naming convention): Document new naming convention.
25723 2010-07-20 Vadim Solomin <vadic052@gmail.com>
25724 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25726 Generate device.map in something closer to the old ordering.
25728 * util/deviceiter.c (struct device): New declaration.
25729 (compare_file_names): Rename to ...
25730 (compare_devices): ... this. Sort by kernel name in preference to
25731 the stable by-id name, but keep the latter as a fallback comparison.
25732 Update header comment.
25733 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
25734 of `struct device' rather than of plain file names.
25736 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
25738 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
25741 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25743 * commands/acpi.c (setup_common_tables): Use sizeof instead of
25745 (setv1table): Likewise.
25747 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25749 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
25750 removing the homehost if present.
25751 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
25752 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
25753 removing the homehost if present.
25754 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
25756 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
25758 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
25759 parameter. Set its pointer target to 0.
25760 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
25761 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
25762 `data_offset' value from the superblock for 1.x metadata.
25763 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
25764 data on the device.
25765 (insert_array): Record the start sector of data on the device.
25766 (grub_raid_register): Pass start_sector parameters to
25767 grub_raid_list->detect and insert_array.
25768 * include/grub/raid.h (struct grub_raid_array): Add start_sector
25770 (struct grub_raid): Add start_sector parameter to `detect'.
25772 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
25773 __attribute__ ((packed)), leaving a comment.
25774 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
25775 (grub_mdraid_detect_09): ... here and ...
25776 (grub_mdraid_detect_1x): ... here.
25778 2010-07-20 Peter Henn <peter.henn@web.de>
25780 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
25781 chunk size and disk size, which are already given as sector counts
25782 as distinct from the 0.90 units. Fetch the correct device number
25783 from the role table instead of using the table index.
25785 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
25787 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
25788 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
25789 (WriteMostly1): New macro.
25790 Set array->name to NULL for metadata format 0.90. Add support for
25791 metadata 1.x. Fix some comments.
25792 * disk/raid.c (): Add support for name based RAID arrays. Fix a
25794 * util/getroot.c (grub_util_get_grub_dev): Add support for
25795 /dev/md/name style devices.
25797 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25799 * .bzrignore: Ignore 20_linux_xen.
25801 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
25803 * util/import_unicode.py: Remove unnecessary imports.
25805 2010-07-17 Aleš Nesrsta <starous@volny.cz>
25807 Hotplugging and USB hub support.
25809 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
25810 (grub_ohci): Likewise.
25811 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
25812 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
25813 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
25814 (GRUB_OHCI_CTRL_EDS): Likewise.
25815 (GRUB_OHCI_BULK_EDS): Likewise.
25816 (GRUB_OHCI_TDS): Likewise.
25817 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
25818 (grub_ohci_ed_phys2virt): New function.
25819 (grub_ohci_virt_to_phys): Likewise.
25820 (grub_ohci_td_phys2virt): Likewise.
25821 (grub_ohci_td_virt2phys): Likewise.
25822 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
25824 (grub_ohci_find_ed): New function.
25825 (grub_ohci_alloc_td): Likewise.
25826 (grub_ohci_free_td): Likewise.
25827 (grub_ohci_free_tds): Likewise.
25828 (grub_ohci_transfer): Use previously allocated memory.
25829 (grub_ohci_portstatus): Reset status changed bit.
25830 (grub_ohci_detect_dev): Supply status changed.
25831 (grub_ohci_fini_hw): Free memory.
25832 (grub_ohci_restore_hw): Reallocate memory.
25833 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
25834 Reset status change.
25835 (grub_uhci_detect_dev): Supply status_change.
25836 * bus/usb/usb.c (attach_hooks): New var.
25837 (grub_usb_device_attach): New function.
25838 (grub_usb_register_attach_hook_class): Likewise.
25839 (grub_usb_unregister_attach_hook_class): Likewise.
25840 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
25841 (grub_usb_add_hub): Reset connection changed bit.
25842 (attach_root_port): New function.
25843 (grub_usb_root_hub): Likewise.
25844 (poll_nonroot_hub): Likewise.
25845 (grub_usb_poll_devices): Likewise.
25846 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
25847 * disk/usbms.c (grub_usbms_open): Use device hooks.
25848 (grub_usbms_iterate) :Poll devices.
25849 (grub_usbms_finddevs): Split into ...
25850 (grub_usbms_attach): ... this ...
25851 (grub_usbms_attach): ... and this.
25852 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
25854 (grub_usb_interface): New fields attached and detach_hook.
25855 (grub_usb_attach_hook_class): New type.
25856 (grub_usb_attach_desc): New struct.
25857 (grub_usb_register_attach_hook_class): New function.
25858 (grub_usb_unregister_attach_hook_class): Likewise.
25859 (grub_usb_poll_devices): Likewise.
25860 (grub_usb_device_attach): Likewise.
25861 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
25862 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
25864 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25866 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
25867 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
25868 delta determination style. Works with most NetBSD partitions too.
25870 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25872 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
25873 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
25875 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25877 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
25879 2010-07-14 Anton Blanchard <anton@samba.org>
25881 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
25884 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
25886 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
25888 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
25890 * kern/partition.c (grub_partition_check_containment): New function to
25891 check that a partition is physically contained in a parent. Since
25892 offsets are relative (and non-negative), this reduces to checking that
25893 the partition ends before its parent.
25894 (grub_partition_map_probe): Discard out-of-range sub-partitions.
25895 (grub_partition_iterate): Likewise.
25896 * include/grub/partition.h (grub_partition_map): Slightly more detailed
25898 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
25899 partitions that start before their parent, and add debug printfs.
25901 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
25903 * Makefile.in (.SUFFIX): Spell correctly, as ...
25904 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
25905 bare module name without `.mod', e.g. `test') tried to invoke a
25908 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
25910 * README: Point to the Info manual.
25912 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
25914 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
25915 2nd superblock position from partition size.
25917 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
25919 * Makefile.in (MAINTAINER_CLEANFILES): Remove
25920 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
25921 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
25924 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25926 Restructure SCSI .id handling.
25927 Reported and tested by: Aleš Nesrsta.
25929 * disk/ata.c (grub_atapi_close): Removed. All users updated.
25930 (grub_atapi_dev): Changed .name to "ata". New field .id.
25931 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
25932 (grub_usbms_dev): New field .id.
25933 * disk/scsi.c (grub_scsi_iterate): Generate name.
25934 (grub_scsi_open): Parse name.
25935 * include/grub/scsi.h (grub_make_scsi_id): New function.
25936 (grub_scsi_dev): Change iterate and open to number instead of naming
25937 busses. All users updated.
25938 (grub_scsi): Remove name. Add .bus.
25940 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25942 * commands/help.c (grub_cmd_help): Fix a typo.
25944 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25946 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
25947 Reported and tested by: Colin Watson.
25949 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25951 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
25954 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
25956 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
25958 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
25960 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
25963 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25965 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
25966 and disk/raid6_recover.c.
25967 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
25968 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
25970 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25972 * term/gfxterm.c (repaint_schedulded): Rename to ...
25973 (repaint_scheduled): ... this. Update all callers.
25974 (repaint_was_schedulded): Rename to ...
25975 (repaint_was_scheduled): ... this. Update all callers.
25977 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25979 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
25980 which we expect to be handled by upper layers.
25982 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
25984 * bus/usb/usbhub.c: #include time.h header.
25986 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25988 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
25989 entry_name also for entries without stat blocks (e.g. ".."); fixes
25990 corruption of the first entry in a directory.
25992 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25994 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
25995 after setting gfxterm as the active terminal. GRUB_BACKGROUND
25996 doesn't work otherwise.
25998 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26000 * docs/grub.texi (Features): Update list of supported file systems.
26001 (GNU/Linux): Update for GRUB 2.
26002 (Serial terminal): Remove mention of --disable-serial, which was a
26003 GRUB Legacy configure option. Update instructions to use
26004 `terminal_input' and `terminal_output' rather than `terminal'.
26005 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26006 configuration' and `Installing GRUB using grub-install'.
26007 (Menu entry editor): Update for GRUB 2.
26008 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26009 Document new -a, -u, and -v options.
26010 (initrd): New section.
26011 (initrd16): New section.
26012 (linux): New section.
26013 (linux16): New section.
26014 (search): The `var' argument to `--set' is optional.
26015 (GRUB only offers a rescue shell): Go into a little more detail on
26018 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26020 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26022 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26024 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26025 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26027 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26029 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26030 install_prefix, in line with install_dos_part and install_bsd_part.
26031 Add new prefix variable, which is copied to install_prefix after
26032 comparing core.img in memory with the one read from disk in the
26033 no-embedding case, and use that rather than overwriting
26034 install_prefix immediately when installing to a partition.
26035 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26038 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26040 * configure.ac: Avoid == in test command, it's not portable.
26041 * util/grub.d/30_os-prober.in: Likewise.
26043 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26045 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26047 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26049 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26050 multiple (top-level) partmaps.
26052 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26054 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26055 Reported by: Tino Keitel.
26057 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26059 Bidi and diacritics support.
26061 * Makefile.in (widthspec.bin): New target.
26062 (widthspec.h): Likewise.
26063 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26064 * autogen.sh: Generate unidata.c.
26065 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26066 * commands/ls.c (grub_ls_list_devices): Likewise.
26067 (grub_ls_list_files): Likewise.
26068 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26069 (grub_mini_cmd_lsmod): Likewise.
26070 * commands/read.c: Likewise.
26071 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26072 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26073 * lib/arg.c (grub_arg_show_help): Likewise.
26074 * lib/crypto.c (grub_password_get): Likewise.
26075 * normal/auth.c (grub_username_get): Likewise.
26076 * normal/misc.c (grub_normal_print_device_info): Likewise.
26077 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26078 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26079 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26080 (normal/charset.c_DEPENDENCIES): New variable.
26081 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26082 (pkglib_MODULES): Remove charset.mod.
26083 (charset_mod_SOURCES): Removed.
26084 (charset_mod_CFLAGS): Likewise.
26085 (charset_mod_LDFLAGS): Likewise.
26086 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26087 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26089 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26090 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26091 (kernel_img_HEADERS): Add terminfo.h.
26092 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26093 Fill ->font. Reverse ascii bitmaps.
26094 (grub_font_get_xheight): New function.
26095 * font/font.c (grub_font_get_string_width): Moved from here ...
26096 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26097 * font/font.c (grub_font_draw_string): Moved from here ...
26098 * gfxmenu/font.c (grub_font_draw_string): ... here.
26099 * font/font.c (grub_font_dup_glyph): New function.
26100 (grub_font_blit_glyph): Likewise.
26101 (grub_font_blit_glyph_mirror): Likewise.
26102 (blit_comb): Likewise.
26103 (grub_font_construct_dry_run): Likewise.
26104 (grub_font_get_constructed_device_width): Likewise.
26105 (grub_font_construct_glyph): Likewise.
26106 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26107 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26108 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26109 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26110 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26111 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26112 (grub_font_get_xheight): New proto.
26113 (grub_font_get_constructed_device_width): Likewise.
26114 (grub_font_construct_glyph): Likewise.
26115 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26116 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26117 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26118 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26119 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26120 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26121 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26122 (grub_console_getcharwidth): Likewise.
26123 * include/grub/misc.h (grub_xputs): New proto.
26124 (grub_puts): Inlined.
26125 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26126 (grub_normal_get_line_counter): Removed.
26127 (grub_install_newline_hook): Likewise.
26128 (grub_normal_get_char_counter): New proto.
26129 (grub_normal_reset_more): Likewise.
26130 (grub_xputs_normal): Likewise.
26131 * include/grub/powerpc/ieee1275/console.h: Removed.
26132 * include/grub/sparc64/ieee1275/console.h: Likewise.
26133 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26134 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26135 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26136 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26137 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26138 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26139 (grub_term_input): Pass reference to self. All users updated.
26140 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26141 Pass reference to self. New fields normal_color, highlight_color and
26142 data. All users updated.
26143 (grub_putchar): Removed.
26144 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26145 (grub_unicode_estimate_width): New function.
26146 (grub_term_getcharwidth): Add defaults.
26147 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26148 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26149 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26150 (grub_cls): Remove EXPORT_FUNC.
26151 (grub_setcolorstate): Inline.
26152 (grub_newline_hook): Removed.
26153 * include/grub/terminfo.h: Rewritten. All users updated.
26154 * include/grub/unicode.h: New file.
26155 * include/grub/video.h (grub_video_signed_rect): New type.
26156 * kern/emu/console.c (grub_console_highlight_color): Removed.
26157 (grub_console_normal_color): Likewise.
26158 (grub_console_standard_color): Made static.
26159 (grub_ncurses_putchar): Remove mapping.
26160 (grub_ncurses_getcharwidth): Removed.
26161 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26162 (grub_ncurses_setcolor): Removed.
26163 (grub_ncurses_getcolor): Likewise.
26164 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26165 (grub_console_putchar): ... this.
26166 (grub_console_putchar): Handle argument difference.
26167 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26168 console_init_early and console_init_lately.
26169 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26170 * kern/misc.c (grub_puts): Removed.
26171 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26172 (grub_vsnprintf_real): Remove str = NULL support.
26173 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26174 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26175 * kern/term.c (grub_putcode): Renamed to ...
26176 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26177 (grub_putchar): Removed.
26178 (grub_xputs_dumb): New function.
26179 (grub_xputs): New variable.
26180 * lib/charset.c: Move from here ...
26181 * normal/charset.c: ... to here.
26182 (grub_ucs4_to_utf8): New function.
26183 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26184 (join_types): New variable.
26185 (unpack_join): New function.
26186 (bidi_types): New variable.
26187 (unpack_bidi): New function.
26188 (get_bidi_type): Likewise.
26189 (get_join_type): Likewise.
26190 (is_mirrored): Likewise.
26191 (grub_unicode_get_comb_type): Likewise.
26192 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26193 (is_type_after): Likewise.
26194 (grub_unicode_aglomerate_comb): Likewise.
26195 (bidi_line_wrap): Likewise.
26196 (grub_bidi_line_logical_to_visual): Likewise.
26197 (grub_bidi_logical_to_visual): Likewise.
26198 (grub_unicode_mirror_code): Likewise.
26199 (grub_unicode_shape_code): Likewise.
26200 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26201 Don't use grub_putchar.
26202 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26203 (grub_normal_reader_init): Likewise.
26204 (grub_xputs_saved): New variable.
26205 (GRUB_MOD_INIT): Set grub_xputs.
26206 (GRUB_MOD_FINI): Restore grub_xputs.
26207 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26208 (menu_init): Avoid printing gfxmenu error.
26209 (show_menu): Use grub_normal_get_char_counter.
26210 * normal/menu_entry.c (update_screen): Fix out-of-array.
26211 (complete): Avoid NULL dereferencing.
26212 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26213 * normal/menu_text.c (print_spaces): Removed.
26214 (grub_print_ucs4): Likewise.
26215 (grub_print_message_indented): Use grub_print_ucs4.
26216 (print_message): Use grub_putcode.
26217 (print_entry): Hanlde diacritics.
26218 * normal/term.c (term_state): New type.
26219 (grub_more_lines): Removed.
26220 (term_states): New variable.
26221 (grub_normal_line_counter): Renamed to ..
26222 (grub_normal_char_counter): ...this. All users updated.
26223 (grub_normal_get_line_counter): Renamed to ...
26224 (grub_normal_get_char_counter): ... this.
26225 (grub_normal_reset_more): New function.
26226 (process_newline): Removed.
26227 (print_more): New function.
26228 (grub_install_newline_hook): Removed.
26229 (map_code): New function.
26230 (grub_puts_terminal): Use grub_print_ucs4.
26231 (putglyph): New function.
26232 (putcode_real): Likewise.
26233 (grub_putcode): Use putcode_real.
26234 (get_maxwidth): New function.
26235 (get_startwidth): Likewise.
26236 (print_ucs4_terminal): Likewise.
26237 (find_term_state): Likewise.
26238 (put_glyphs_terminal): Likewise.
26239 (print_backlog): Likewise.
26240 (print_ucs4_real): Likewise.
26241 (grub_print_ucs4): Likewise.
26242 (grub_xputs_normal): Likewise.
26243 * term/efi/console.c (grub_console_putchar): Output diacritics.
26244 (grub_console_getcharwidth): Removed.
26245 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26246 * term/gfxterm.c (clear_char): Free chars.
26247 (scroll_up): Avoid leaking memory.
26248 (grub_gfxterm_putchar): Support diacritics.
26249 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26250 * term/i386/pc/console.c (grub_console_term_output): Declare as
26251 GRUB_TERM_CODE_TYPE_VGA.
26252 * term/i386/pc/vga.c (grub_vga_term): Declare as
26253 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26254 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26255 GRUB_TERM_CODE_TYPE_VGA.
26256 * term/i386/vga_common.c (map_char): Removed.
26257 (grub_console_putchar): Likewise.
26258 (grub_console_getcharwidth): Likewise.
26259 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26260 (colors): Reordered to match terminfo.
26261 (grub_ofconsole_normal_color): Removed.
26262 (grub_ofconsole_writeesc): Likewise.
26263 (grub_ofconsole_highlight_color): Likewise.
26264 (grub_ofconsole_getcharwidth): Likewise.
26265 (grub_ofconsole_setcolorstate): Likewise.
26266 (grub_ofconsole_setcolor): Likewise.
26267 (grub_ofconsole_getcolor): Likewise.
26268 (grub_ofconsole_readkey): Renamed to ...
26269 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26271 (grub_ofconsole_checkkey): Removed.
26272 (grub_ofconsole_getkey): Likewise.
26273 (grub_ofconsole_getxy): Likewise.
26274 (grub_ofconsole_gotoxy): Likewise.
26275 (grub_ofconsole_cls): Likewise.
26276 (grub_ofconsole_refresh): Likewise.
26277 (grub_ofconsole_terminfo_input): New struct.
26278 (grub_ofconsole_terminfo_output): Likewise.
26279 (grub_ofconsole_term_input): Use terminfo.
26280 (grub_ofconsole_term_output): Likewise.
26281 (grub_console_init): Split into ...
26282 (grub_console_init_early): ...this and ...
26283 (grub_console_init_lately): ...this. Use terminfo.
26284 (grub_ofconsole_putchar): Renamed to ...
26285 (put): ... this. Remove mapping.
26286 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26287 * term/serial.c: Simplify using terminfo.
26290 (keep_track): Likewise.
26291 (registered): Likewise.
26292 (input_buf): Likewise.
26293 (npending): Likewise.
26294 (serial_translate_key_sequence): Likewise.
26295 (fill_input_buf): Likewise.
26296 (grub_serial_checkkey): Likewise.
26297 (grub_serial_getkey): Likewise.
26298 (grub_serial_getxy): Likewise.
26299 (grub_serial_gotoxy): Likewise.
26300 (grub_serial_putchar): Likewise.
26301 (grub_serial_cls): Likewise.
26302 (grub_serial_setcolorstate): Likewise.
26303 (grub_serial_setcursor): Likewise.
26304 (serial_hw_init): Use serial_hw_fetch.
26305 (grub_serial_terminfo_input): New variable.
26306 (grub_serial_terminfo_output): Likewise.
26307 (grub_serial_term_input): Use terminfo.
26308 (grub_serial_term_output): Likewise.
26309 * term/terminfo.c (putstr): Use put.
26310 (grub_terminfo_all_free): New function
26311 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26312 (grub_terminfo_output_register): New function.
26313 (grub_terminfo_output_unregister): Likewise.
26314 (grub_terminfo_getxy): Likewise.
26315 (grub_terminfo_readkey): Likewise.
26316 (grub_terminfo_checkkey): Likewise.
26317 (grub_terminfo_getkey): Likewise.
26318 (grub_terminfo_input_init): Likewise.
26319 (print_terminfo): Likewise.
26320 (grub_cmd_terminfo): Handle encoding.
26321 (grub_terminfo_gotoxy): Track position.
26322 (grub_terminfo_cls): Likewise.
26323 (grub_terminfo_putchar): Likewise.
26324 (grub_terminfo_setcolorstate): Handle colors
26325 (grub_terminfo_cursor_on): This ...
26326 (grub_terminfo_cursor_off): ... and this merged into ...
26327 (grub_terminfo_setcursor): ... this.
26328 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26329 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26330 * unicode/BidiMirroring.txt: Likewise.
26331 * unicode/UnicodeData.txt: Likewise.
26332 * unicode/COPYING: Likewise.
26333 * util/grub-editenv.c (grub_putchar): Removed.
26334 (grub_xputs_real): New function.
26335 (grub_xputs): New variable.
26336 * util/grub-fstest.c (grub_putchar): Removed.
26337 (grub_xputs_real): New function.
26338 (grub_xputs): New variable.
26339 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26340 (grub_xputs_real): New function.
26341 (grub_xputs): New variable.
26342 * util/grub-probe.c (grub_putchar): Removed.
26343 (grub_xputs_real): New function.
26344 (grub_xputs): New variable.
26345 * util/grub-script-check.c (grub_putchar): Removed.
26346 (grub_xputs_real): New function.
26347 (grub_xputs): New variable.
26348 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26349 (grub_xputs_real): New function.
26350 (grub_xputs): New variable.
26351 * util/import_unicode.py: New file.
26352 * util/grub-mkfont.c (ft_errmsgs): New array.
26353 (grub_glyph_info): Make bitmap a pointer.
26354 (file_formats): New type WIDTH_SPEC.
26355 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26356 (options): Add width-spec.
26358 (add_char): Renamed to ...
26359 (add_glyph): ... this.
26360 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26361 (glyph_replace): New type.
26362 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26363 (add_char): New function.
26364 (add_subst): Likewise.
26365 (process_cursive): Likewise.
26366 (add_font): Handle GSUB.
26367 (write_font_width_spec): New function.
26368 (main): Sort glyphs.
26369 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26370 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26371 * kern/term.c (grub_cls): Moved from here...
26372 * normal/term.c (grub_cls): ... here.
26374 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26376 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26377 suitable for using within the format argument of printf when
26378 converting grub_size_t.
26379 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26380 "x" to convert grub_size_t arguments.
26382 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26384 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26386 (list_get_minimal_size): Take selection box into account.
26388 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26390 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26393 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26395 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26396 devices when iterating over /dev/disk/by-id; they will be handled
26397 later if appropriate, which they aren't always (e.g. LVM).
26399 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26401 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26402 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26404 (grub_halt): Likewise.
26405 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26407 (grub_halt): Don't return, even if all of shut-down, power-off, and
26410 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26412 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26413 arguments, not three.
26415 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26417 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26418 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26419 LVM-on-RAID is handled correctly.
26421 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26423 * docs/grub.texi (Changes from GRUB Legacy): New section.
26424 (Future): Fix typo.
26426 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26428 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26429 grub.d/README accidentally ends up executable for one reason or
26430 another. Ignore it.
26432 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26434 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26435 (gpt_partition_map_iterate): Support non-512B sectors.
26437 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26439 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26440 Tested by: Seth Goldberg.
26442 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26444 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
26445 Properly align mbi.
26446 Reported by: Seth Goldberg.
26448 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26450 * util/grub-mkrescue.in: Avoid module duplication.
26452 2010-07-01 Sean Finney <seanius@seanius.net>
26454 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
26456 2010-07-01 Sean Finney <seanius@seanius.net>
26458 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
26460 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26462 * disk/lvm.c (grub_lvm_checkvalue): New function.
26463 (grub_lvm_check_flag): Likewise.
26465 2010-07-01 Robert Millan <rmh@gnu.org>
26467 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
26468 Support 'p' as partition separator on kernel of FreeBSD (used
26470 (grub_util_biosdisk_get_grub_dev): Likewise.
26472 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26474 Yeeloong firmware port.
26476 * boot/mips/yeeloong/fwstart.S: New file.
26477 * bus/cs5536.c (gpiodump): New const.
26478 (set_io_space): New function.
26479 (set_iod): Likewise.
26480 (set_p2d): Likewise.
26481 (grub_cs5536_init_geode): Likewise.
26482 * commands/mips/yeeloong/lsspd.c: New file.
26483 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
26484 (serial_mod_SOURCES): New variable.
26485 (serial_mod_CFLAGS): Likewise.
26486 (serial_mod_LDFLAGS): Likewise.
26487 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
26488 term/terminfo.c and term/tparm.c.
26489 (pkglib_IMAGES): Add fwstart.img.
26490 (fwstart_img_SOURCES): New variable.
26491 (fwstart_img_CFLAGS): Likewise.
26492 (fwstart_img_ASFLAGS): Likewise.
26493 (fwstart_img_LDFLAGS): Likewise.
26494 (fwstart_img_FORMAT): Likewise.
26495 (pkglib_MODULES): Add lsspd.mod.
26496 (lsspd_mod_SOURCES): New variable.
26497 (lsspd_mod_CFLAGS): Likewise.
26498 (lsspd_mod_LDFLAGS): Likewise.
26499 (pkglib_MODULES): Add halt.mod.
26500 (halt_mod_SOURCES): New variable.
26501 (halt_mod_CFLAGS): Likewise.
26502 (halt_mod_LDFLAGS): Likewise.
26503 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
26504 (serial_mod_SOURCES): Removed.
26505 (serial_mod_CFLAGS): Likewise.
26506 (serial_mod_LDFLAGS): Likewise.
26507 * disk/ata.c (check_device): New function.
26508 (grub_ata_device_initialize): Use check_device.
26509 (grub_ata_iterate): Recheck devices.
26510 (grub_ata_open): Likewise.
26511 (grub_atapi_iterate): Likewise.
26512 (grub_atapi_open): Likewise.
26513 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
26514 (GRUB_ATA_CH1_PORT1): Likewise.
26515 (GRUB_ATA_CH0_PORT2): Likewise.
26516 (GRUB_ATA_CH1_PORT2): Likewise.
26517 * include/grub/mips/loongson.h: New file.
26518 * include/grub/mips/yeeloong/ec.h: Likewise.
26519 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
26520 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
26521 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
26522 * include/grub/misc.h (grub_halt): Declare as noreturn.
26523 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
26524 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
26525 (UART_ENABLE_FIFO_TRIGGER1): New definition.
26526 (UART_ENABLE_DTRRTS): Likewise.
26527 (UART_ENABLE_MODEM): Removed.
26528 (UART_ENABLE_OUT2): New const.
26529 * include/grub/term.h (grub_term_register_input_active): New function.
26530 (grub_term_register_output_active): Likewise.
26531 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
26533 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
26534 (init_pci): New function.
26535 (grub_machine_init): Execute platform init when firmware. Init serial.
26536 (grub_halt): Implement.
26537 (grub_exit): Likewise.
26538 (grub_reboot): Likewise.
26539 * term/serial.c (serial_hw_init): Update macros.
26540 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
26541 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
26542 (image_targets): New target mipsel-yeeloong-flash.
26543 (generate_image): Support IMAGE_YEELOONG_FLASH.
26544 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
26545 (grub_video_sm712_setup): Init card.
26546 (grub_video_sm712_set_palette): Removed.
26547 * video/sm712_init.c: New file.
26549 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
26551 * Makefile.in (install-local): Temporarily prepend $(builddir) to
26552 PATH when running help2man and then run it on the unadorned
26553 executable names, rather than passing $(builddir)/* paths to
26554 help2man. This avoids the build directory ending up in generated
26557 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
26559 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
26560 to avoid accidents when debugging with 'sh -x'.
26561 * util/grub-mkrescue.in: Likewise.
26562 * util/grub.d/00_header.in: Likewise.
26563 * util/grub.d/10_hurd.in: Likewise.
26564 * util/grub.d/10_kfreebsd.in: Likewise.
26565 * util/grub.d/10_linux.in: Likewise.
26566 * util/grub.d/10_netbsd.in: Likewise.
26567 * util/grub.d/10_windows.in: Likewise.
26568 * util/grub.d/20_linux_xen.in: Likewise.
26569 * util/grub.d/30_os-prober.in: Likewise.
26570 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26572 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
26574 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
26575 last character in the buffer.
26576 Reported by: Vladimir Serbinenko.
26578 2010-06-29 Robert Millan <rmh@gnu.org>
26580 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
26581 (Command-line and menu entry commands): Document `badram' command.
26583 2010-06-28 Robert Millan <rmh@gnu.org>
26585 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
26586 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
26587 command using ${GRUB_BADRAM} as parameter.
26589 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26591 * docs/grub.texi (Device map): New section.
26592 (Themes): New section (stub).
26593 * Makefile.in (docs/grub.info): The info documentation now builds
26594 without errors. Make sure it stays that way.
26596 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26598 Use normal parser for menu entries.
26599 Reported by: Thomas Frauendorfer
26601 * include/grub/parser.h (grub_parser_execute): Don't export.
26602 * normal/menu.c (grub_menu_execute_entry_real): New function.
26603 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
26605 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26607 * docs/grub.texi (Embedded configuration): New section (replacing
26608 old "Preset Menu" stub).
26609 (Images): New section.
26610 (configfile): Note that any menu entries defined in `file' are shown
26613 2010-06-28 Josh Triplett <josh@joshtriplett.org>
26615 * mmap/i386/pc/mmap_helper.S: Set CF on return.
26617 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26619 * util/grub-install.in: Add --debug-image= option.
26621 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26623 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
26626 * util/deviceiter.c (check_device): Rename to ...
26627 (check_device_readable_unique): ... this. Update all callers.
26628 Maintain and check a list of which devices (by canonicalized name)
26629 have already been seen.
26630 (clear_seen_devices): New function.
26631 (compare_file_names) [__linux__]: New function.
26632 (grub_util_iterate_devices): Clear the list of seen devices on exit
26633 and (just in case) on entry.
26634 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
26635 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
26636 seen-devices list, superseded by general code in check_device.
26638 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26640 * commands/cat.c (options): New variable.
26641 (grub_cmd_cat): Parse options. If the --dos option is given, print
26642 DOS-style "\r\n" line endings as simple newlines (Debian bug
26644 (GRUB_MOD_INIT): Use extcmd.
26645 (GRUB_MOD_FINI): Likewise.
26646 * docs/grub.texi (cat): Document --dos.
26648 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26650 XEN with Linux grub-mkconfig support.
26652 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
26653 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
26654 GRUB_CMDLINE_XEN_DEFAULT.
26655 * util/grub.d/20_linux_xen.in: New file.
26657 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26659 Initialise VGA video on qemu ourselves.
26661 * boot/i386/qemu/boot.S: Don't call 0xc000.
26662 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
26663 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
26664 (kernel_img_HEADERS): Add pci.h.
26665 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
26666 * configure.ac: Force unifont on qemu and yeeloong.
26667 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
26668 (grub_vga_palette_write): Use correct register.
26669 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
26670 Call grub_qemu_init_cirrus.
26671 * kern/i386/qemu/init.c: New file.
26672 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
26674 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
26676 2010-06-26 Pavel Roskin <proski@gnu.org>
26678 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
26681 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
26683 * docs/grub.texi (Simple configuration): Explain that
26684 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
26685 set to `true' to disable their respective recovery entries, not
26688 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
26690 Make the `source' command slightly faster.
26692 * normal/main.c (grub_normal_execute): Don't re-read list files when
26695 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
26697 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
26698 field position and mask size to red fields from mode_info, not
26700 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
26701 Remove redundant tag->common.framebuffer_type assignment.
26702 Reported by: Seth Goldberg.
26704 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
26706 Sync up other versions of the Linux loader with Robert Millan's
26707 change of 2010-01-09, "Make loader output a bit more user-friendly".
26709 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
26711 (grub_cmd_linux): Likewise.
26712 (grub_cmd_initrd): Likewise.
26713 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
26714 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
26716 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
26718 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
26719 larger than MEMORY_MAP_SIZE.
26721 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
26723 Fix parallel build.
26725 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
26727 * script/parser.y: #include grub_script.tab.h header.
26729 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26731 Support >3GiB and <16MiB RAM in i386-qemu.
26733 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
26734 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
26735 (grub_lower_mem): Removed.
26736 (grub_upper_mem): Likewise.
26737 (mem_size): Made static.
26738 (above_4g): New variable.
26739 (grub_machine_mmap_init): Detect small mem_size and above_4g.
26740 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
26743 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26745 Cirrus 5446 and Bochs video cards support.
26747 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
26749 (video_cirrus_mod_SOURCES): New variable.
26750 (video_cirrus_mod_CFLAGS): Likewise.
26751 (video_cirrus_mod_LDFLAGS): Likewise.
26752 (video_bochs_mod_SOURCES): Likewise.
26753 (video_bochs_mod_CFLAGS): Likewise.
26754 (video_bochs_mod_LDFLAGS): Likewise.
26755 * include/grub/vga.h: New file.
26756 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
26757 (grub_video_fb_set_page_t): New type.
26758 (grub_video_fb_setup): New prototype.
26759 (grub_video_fb_swap_buffers): Likewise.
26760 (grub_video_fb_get_info_and_fini): Likewise.
26761 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
26762 (CRTC_DATA_PORT): Likewise.
26763 (CRTC_CURSOR): Likewise.
26764 (CRTC_CURSOR_ADDR_HIGH): Likewise.
26765 (CRTC_CURSOR_ADDR_LOW): Likewise.
26766 (CRTC_CURSOR_DISABLE): Likewise.
26767 (update_cursor): Use grub_vga_cr_write.
26768 (grub_vga_text_setcursor): Likewise.
26769 * video/bochs.c: New file.
26770 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
26771 (palette): Likewise.
26772 (palette_size): Likewise.
26773 (framebuffer): New variable.
26774 (grub_video_fb_init): Use 'framebuffer'.
26775 (grub_video_fb_fini): Likewise.
26776 (grub_video_fb_get_info): Likewise.
26777 (grub_video_fb_get_palette): Likewise.
26778 (grub_video_fb_set_palette): Likewise.
26779 (grub_video_fb_set_viewport): Likewise.
26780 (grub_video_fb_get_viewport): Likewise.
26781 (grub_video_fb_map_color): Likewise.
26782 (grub_video_fb_map_rgb): Likewise.
26783 (grub_video_fb_map_rgba): Likewise.
26784 (grub_video_fb_unmap_color): Likewise.
26785 (grub_video_fb_unmap_color_int): Likewise.
26786 (grub_video_fb_fill_rect): Likewise.
26787 (grub_video_fb_blit_bitmap): Likewise.
26788 (grub_video_fb_blit_render_target): Likewise.
26789 (grub_video_fb_scroll): Likewise.
26790 (grub_video_fb_create_render_target): Likewise.
26791 (grub_video_fb_doublebuf_blit_init): Likewise.
26792 (grub_video_fb_set_active_render_target): Handle doublebuffering.
26793 (doublebuf_pageflipping_update_screen): New function.
26794 (doublebuf_pageflipping_init): Likewise.
26795 (grub_video_fb_setup): Likewise.
26796 (grub_video_fb_swap_buffers): Likewise.
26797 (grub_video_fb_get_info_and_fini): Likewise.
26798 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
26800 (doublebuf_pageflipping_commit): Restructured into ...
26801 (doublebuf_pageflipping_set_page): ... this.
26802 (doublebuf_pageflipping_update_screen): Removed.
26803 (doublebuf_pageflipping_init): Likewise.
26804 (double_buffering_init): Likewise.
26805 (grub_video_vbe_setup): Use grub_video_fb_setup.
26806 (grub_video_vbe_swap_buffers): Removed.
26807 (grub_video_vbe_set_active_render_target): Likewise.
26808 (grub_video_vbe_get_active_render_target): Likewise.
26809 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
26810 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
26811 grub_video_fb_set_active_render_target and
26812 grub_video_fb_get_active_render_target.
26813 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
26814 (SEQUENCER_DATA_PORT): Likewise.
26815 (MAP_MASK_REGISTER): Likewise.
26816 (CRTC_ADDR_PORT): Likewise.
26817 (CRTC_DATA_PORT): Likewise.
26818 (START_ADDR_HIGH_REGISTER): Likewise.
26819 (START_ADDR_LOW_REGISTER): Likewise.
26820 (GRAPHICS_ADDR_PORT): Likewise.
26821 (GRAPHICS_DATA_PORT): Likewise.
26822 (READ_MAP_REGISTER): Likewise.
26823 (INPUT_STATUS1_REGISTER): Likewise.
26824 (INPUT_STATUS1_VERTR_BIT): Likewise.
26825 (get_map_mask): Use grub_vga_sr_read.
26826 (set_map_mask): Use grub_vga_sr_write.
26827 (set_read_map): Use grub_vga_gr_write.
26828 (set_start_address): Use grub_vga_cr_write.
26829 * video/sm712.c (framebuffer): Remove leftover fields.
26831 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
26833 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
26834 setting GRUB_VIDEO_BACKEND. Make it available as a user override
26835 instead. Replace the gfxterm backend check with a check that
26836 ${GRUB_PREFIX}/video.lst is non-empty.
26837 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
26839 (load_video): New generated function. Call it before loading
26840 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
26841 * util/grub.d/10_linux.in (linux_entry): Call load_video.
26842 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
26843 * docs/grub.texi (Simple configuration): Document
26844 GRUB_VIDEO_BACKEND.
26846 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26848 Use video functions in linux and xnu loaders.
26850 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
26851 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
26852 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
26853 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
26854 loader/i386/pc/linux.c.
26855 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
26856 (find_line_len): Removed.
26857 (find_framebuf): Likewise.
26858 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
26859 * loader/i386/efi/xnu.c: Removed.
26860 * loader/i386/pc/xnu.c: Moved from here...
26861 * loader/i386/xnu.c: ...here.
26863 Enable priorities in video drivers.
26865 * include/grub/video.h (grub_video_adapter_prio_t): New type.
26866 (grub_video_adapter): New field prio.
26867 (grub_video_register): Respect prio when inserting.
26868 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
26869 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
26870 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
26871 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
26872 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
26873 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
26874 * video/sm712.c (grub_video_sm712_adapter): Likewise.
26878 * include/grub/video.h (grub_video_driver_id_t): New value
26879 GRUB_VIDEO_DRIVER_SDL.
26880 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
26882 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26884 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
26885 argument to printf.
26886 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26888 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26890 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
26891 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26893 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26895 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
26896 directly, and recommend grub-install instead.
26897 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26899 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26901 Fix i386-pc prefix handling with nested partitions (Debian bug
26902 #585068). Note that the case where the core image is booted using
26903 multiboot and relocated from its original location still requires
26906 * kern/i386/pc/init.c (make_install_device): If the prefix starts
26907 with "(,", fill the boot drive in between those two characters, but
26908 expect that a full partition specification including partition map
26910 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
26911 specified, write a prefix without the drive name but including a
26912 full partition specification.
26914 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
26916 * util/grub-mkconfig.in: Ignore non-option arguments, for
26917 compatibility with older versions (before 2010-06-12) which did the
26918 same. In particular, this makes it easier to ship an update-grub
26919 wrapper which is compatible with that used with GRUB Legacy (Debian
26922 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26924 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
26925 for manual page generation.
26927 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26929 * po/POTFILES: Remove leftover commands/handler.c.
26931 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
26933 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
26934 left this script non-functional.
26936 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
26938 * docs/man/grub-emu.h2m: New file.
26940 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
26942 * docs/grub.texi (Commands): Document reduced command set in rescue
26944 (cpuid): New section.
26946 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
26948 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
26949 new partition naming style.
26950 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
26952 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
26954 Add "-o grub.iso" like cmdline options support.
26956 * util/grub-install.in: Improve cmdline option parsing.
26957 * util/grub-mkconfig.in: Likewise.
26958 * util/grub-mkrescue.in: Likewise.
26959 * util/grub-reboot.in: Likewise.
26960 * util/grub-set-default.in: Likewise.
26961 * util/i386/efi/grub-install.in: Likewise.
26962 * util/ieee1275/grub-install.in: Likewise.
26963 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26965 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
26967 * .bzrignore: Ignore 41_custom.
26969 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
26971 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
26973 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
26975 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
26976 prototype declarations.
26978 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
26979 generating fs, partmap, and video lists.
26980 * include/grub/fs.h (grub_fs_register): Omit prototype if
26981 GRUB_LST_GENERATOR is defined.
26982 * include/grub/partition.h (grub_partition_map_register): Likewise.
26983 * include/grub/video.h (grub_video_register): Likewise.
26985 2010-06-12 Javier Martín <lordhabbit@gmail.com>
26987 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
26989 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
26991 * util/grub-mkrescue.in: Support --xorriso argument.
26993 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26995 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
26996 Suggested by: Thomas Schmitt.
26998 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27000 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27001 Suggested by: Thomas Schmitt.
27003 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27005 custom.cfg support.
27007 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27008 * util/grub.d/41_custom.in: New file.
27010 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27012 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27013 been merged back into normal.
27015 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27017 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27018 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27020 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27022 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27023 when generating manual pages.
27024 * docs/man/grub-bin2h.h2m: New file.
27025 * docs/man/grub-editenv.h2m: New file.
27026 * docs/man/grub-fstest.h2m: New file.
27027 * docs/man/grub-install.h2m: New file.
27028 * docs/man/grub-macho2img.h2m: New file.
27029 * docs/man/grub-mkconfig.h2m: New file.
27030 * docs/man/grub-mkdevicemap.h2m: New file.
27031 * docs/man/grub-mkfont.h2m: New file.
27032 * docs/man/grub-mkimage.h2m: New file.
27033 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27034 * docs/man/grub-mkrelpath.h2m: New file.
27035 * docs/man/grub-mkrescue.h2m: New file.
27036 * docs/man/grub-ofpathname.h2m: New file.
27037 * docs/man/grub-pe2elf.h2m: New file.
27038 * docs/man/grub-probe.h2m: New file.
27039 * docs/man/grub-reboot.h2m: New file.
27040 * docs/man/grub-script-check.h2m: New file.
27041 * docs/man/grub-set-default.h2m: New file.
27042 * docs/man/grub-setup.h2m: New file.
27044 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27046 Use FOR_* macros instead of *_iterate whenever possible.
27048 * commands/handler.c: Removed.
27049 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27050 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27051 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27052 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27053 (grub_probe_SOURCES): Remove kern/parser.c.
27054 (util/grub-script-check.c_DEPENDENCIES): Removed.
27055 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27056 and grub_script_check_init.c.
27057 (grub_script_check_init.lst): Removed.
27058 (grub_script_check_init.h): Likewise.
27059 (grub_script_check_init.c): Likewise.
27060 (pkglib_MODULES): Remove handler.mod and sh.mod.
27061 (handler_mod_SOURCES): Removed.
27062 (handler_mod_CFLAGS): Likewise.
27063 (handler_mod_LDFLAGS): Likewise.
27064 (normal_mod_SOURCES): Remove normal/handler.c.
27065 Add script/main.c, script/script.c, script/execute.c,
27066 script/function.c, script/lexer.c, grub_script.tab.c
27067 and grub_script.yy.c.
27068 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27069 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27070 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27071 (grub_setup_SOURCES): Remove kern/parser.c.
27072 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27073 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27074 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27075 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27076 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27077 (grub_setup_SOURCES): Remove kern/parser.c.
27078 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27079 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27080 * include/grub/command.h (grub_command_iterate): Removed.
27081 (FOR_COMMANDS): New macro.
27082 * include/grub/dl.h (grub_dl): New member next.
27083 (grub_dl_iterate): Removed.
27084 (grub_dl_head): New variable declaration.
27085 (FOR_DL_MODULES): New macro.
27086 * include/grub/fs.h: Include list.h.
27087 (grub_fs): Make next first element.
27088 (grub_fs_list): New variable declaration.
27089 (grub_fs_register): Make inline.
27090 (grub_fs_unregister): Likewise.
27091 (grub_fs_iterate): Removed.
27092 (FOR_FILESYSTEMS): New macro.
27093 * include/grub/handler.h: Removed.
27094 * include/grub/list.h (grub_list_hook_t): Removed.
27095 (grub_list_test_t): Likewise.
27096 (grub_list_pop): Likewise.
27097 (grub_list_iterate): Likewise.
27098 (grub_list_insert): Likewise.
27099 (FOR_LIST_ELEMENTS): New macro.
27100 * include/grub/parser.h (grub_parser_class): Removed.
27101 (grub_parser_register): Likewise.
27102 (grub_parser_unregister): Likewise.
27103 (grub_parser_get_current): Likewise.
27104 (grub_parser_set_current): Likewise.
27105 (grub_register_rescue_parser): Likewise.
27106 (grub_rescue_parse_line): New function.
27107 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27108 * include/grub/script_sh.h (grub_script_function_list): New variable
27110 (FOR_SCRIPT_FUNCTIONS): New macro.
27111 (grub_script_function_iterate): Removed.
27112 (grub_normal_parse_line): New prototype.
27113 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27114 (FOR_DISABLED_TERM_INPUTS): Likewise.
27115 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27116 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27117 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27119 (grub_video_register): Inline.
27120 (grub_video_unregister): Likewise.
27121 (grub_video_adapter_list): New variable declaration.
27122 (grub_video_iterate): Removed.
27123 (FOR_VIDEO_ADAPTERS): New macro.
27124 * kern/dl.c (grub_dl_list): Removed. All users updated.
27125 (grub_dl_iterate): Removed.
27126 * kern/fs.c (grub_fs_list): Make global.
27127 (grub_fs_register): Removed.
27128 (grub_fs_unregister): Likewise.
27129 (grub_fs_iterate): Likewise.
27130 * kern/handler.c: Removed.
27131 * kern/list.c (grub_list_pop): Removed.
27132 (grub_list_iterate): Likewise.
27133 (grub_list_insert): Likewise.
27134 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27135 (grub_prio_list_insert): Don't use grub_list_insert.
27136 * kern/main.c (grub_register_rescue_parser): Don't call
27137 grub_register_rescue_parser.
27138 * kern/parser.c (grub_parser_class): Removed.
27139 (grub_parser_execute): Use grub_rescue_parse_line.
27140 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27141 (grub_rescue_parser): Removed.
27142 (grub_register_rescue_parser): Likewise.
27143 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27144 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27145 (grub_auth_check_authentication): Likewise.
27146 * normal/completion.c (iterate_command): Removed.
27147 (grub_normal_do_completion): Use FOR_COMMANDS.
27148 * normal/handler.c: Removed.
27149 * normal/main.c (read_config_file): Remove parser changing.
27150 (grub_normal_execute): Don't call read_handler_list.
27151 (grub_normal_read_line_real): Statically allocate prompt.
27152 (grub_cmdline_run): Use grub_normal_parse_line.
27153 (GRUB_MOD_FINI): Don't call free_handler_list.
27154 * normal/menu_entry.c (run): Likewise.
27155 * script/function.c (grub_script_function_list): Make global.
27156 (grub_script_function_iterate): Removed.
27157 * script/main.c (grub_normal_parse_line): Make global.
27158 (grub_sh_parser): Removed.
27159 (GRUB_MOD_INIT): Likewise.
27160 (GRUB_MOD_FINI): Likewise.
27161 * tests/lib/functional_test.c (grub_functional_test): Use
27163 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27164 (grub_test_run): Use FOR_LIST_ELEMENTS.
27165 * tests/lib/unit_test.c (main): Likewise.
27166 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27168 * util/grub-fstest.c (grub_term_input_class): Removed.
27169 (grub_term_output_class): Likewise.
27170 * util/grub-probe.c: Likewise.
27171 * util/i386/pc/grub-setup.c: Likewise.
27172 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27173 * util/grub-script-check.c (main): Don't call grub_init_all and
27175 * video/video.c (grub_video_adapter_list): Make global.
27176 (grub_video_register): Removed.
27177 (grub_video_unregister): Likewise.
27178 (grub_video_iterate): Likewise.
27180 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27182 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27183 reported by Henrique Ferreiro.
27185 2010-06-09 Robert Millan <rmh@gnu.org>
27187 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27188 ones, when both are available.
27190 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27192 Make --version uniform and avoid hard-coded program name.
27194 * util/grub-mkimage.c (main): Use `program_name' instead of
27196 * util/i386/pc/grub-setup.c (main): Likewise.
27197 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27198 * util/grub-install.in: Save the basename of $0 in $self, and use the
27199 latter in informational messages. Use the same format for --version
27200 as the binary programs.
27201 * util/grub-mkconfig.in: Likewise.
27202 * util/grub-mkrescue.in: Likewise.
27203 * util/grub-reboot.in: Likewise.
27204 * util/grub-set-default.in: Likewise.
27205 * util/i386/efi/grub-install.in: Likewise.
27206 * util/ieee1275/grub-install.in: Likewise.
27207 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27209 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27211 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27212 embedding area. Use <= instead of == when checking for non-emptiness.
27214 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27216 * configure.ac: Add `.' to the directories searched for unifont.
27218 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27220 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27223 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27225 * docs/grub.texi (History): Expand to cover GRUB 2.
27226 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27227 commands, not `terminal'.
27228 (serial): Likewise.
27229 (terminal_input): New section.
27230 (terminal_output): New section.
27231 (uppermem): New section (stub).
27232 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27234 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27236 * docs/grub.texi (Security): Menu entries are unrestricted by
27237 default, not restricted to superusers as I had previously thought.
27238 Reword to account for this.
27240 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27242 * kern/emu/misc.c (device_mapper_null_log): New function.
27243 (grub_device_mapper_supported): New function.
27244 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27246 * kern/emu/hostdisk.c (find_partition_start): Check whether
27247 device-mapper is supported before trying to use it.
27248 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27250 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27252 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27253 (File name syntax): Likewise.
27254 (help): --all is no longer supported in GRUB 2. Be more precise
27255 about pattern matching.
27257 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27259 * normal/completion.c (grub_normal_do_completion): When completing
27260 arguments to "set" and the current word contains an equals sign,
27261 skip to after the equals sign before starting completion.
27263 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27265 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27267 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27269 * docs/grub.texi (Network): New section.
27270 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27271 `(nd)' as in GRUB Legacy.
27272 (pxe_unload): New section.
27274 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27276 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27277 in the rescue shell, so recommend using `set' instead. Thanks,
27280 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27282 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27283 (password): New section.
27284 (password_pbkdf2): New section.
27285 (search): New section.
27286 (Security): New section.
27287 (Troubleshooting): New section, currently very incomplete.
27288 (Invoking grub-mkpasswd-pbkdf2): New section.
27289 (Internals): New section, currently very incomplete.
27291 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27293 * util/grub.d/00_header.in: Add some more quoting (of
27294 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27296 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27298 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27300 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27301 to `count', fixing variable shadowing that broke the -c option.
27303 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27305 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27306 in case they contain spaces.
27308 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27310 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27311 "part_" to partmap module names, in line with grub-install.
27312 Reported by: Jindřich Makovička (Debian bug #584426).
27314 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27316 * util/grub-mkimage.c: Make target-related error messages slightly
27317 more helpful; -O talks about "format". Explicitly point to the use
27318 of -O if no target is specified.
27319 Reported by: Didier Raboud (Debian bug #584415).
27321 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27323 * INSTALL: Document several build requirements for optional features
27324 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27326 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27328 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27329 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27330 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27332 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27334 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27335 Thanks to Jordan Uggla for spotting this.
27337 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27339 Finally make USB usable.
27341 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27342 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27343 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27344 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27345 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27346 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27347 (GRUB_OHCI_FSMPS): Likewise.
27348 (GRUB_OHCI_PERIODIC_START): Likewise.
27349 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27350 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27351 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27352 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27353 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27354 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27355 (grub_ohci_transaction): Likewise.
27356 (grub_ohci_transfer): Improve condition detection algorithms.
27357 Handle toggle property. Program the transactions correctly.
27358 Improve error handling. Various important fixups.
27359 (grub_ohci_portstatus): Put register writes in right order.
27360 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27361 (grub_uhci_transfer): Don't show "failed" message on success.
27362 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27364 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27365 determine its size.
27366 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27367 before initialization is completed. Use IN direction for empty
27368 transfers. Use last_trans and compute toggle.
27369 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27370 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27371 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27372 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27373 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27374 (grub_usb_device): Increase toggle to 256.
27375 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27376 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27377 GRUB_USBMS_SUBCLASS_SFF8070.
27378 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27379 (grub_scsi_inquiry): New member page and alloc_length.
27380 (grub_scsi_request_sense): New structure.
27381 (grub_scsi_request_sense_data): Likewise.
27382 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27384 * disk/scsi.c (grub_scsi_request_sense): New function.
27385 (grub_scsi_test_unit_ready): Likewise.
27386 (grub_scsi_inquiry): Fill new fields.
27387 (grub_scsi_read_capacity): Likewise.
27388 (grub_scsi_read10): Add request sense at the end.
27389 (grub_scsi_read12): Likewise.
27390 (grub_scsi_write10): Likewise.
27391 (grub_scsi_write12): Likewise.
27392 (grub_scsi_open): Add Test Unit Ready.
27393 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27394 Support additional subclasses. Con't clear halt yet. Activate the
27395 proper config. Calculate LUNs correctly.
27396 (grub_usbms_transfer): Various important fixups.
27398 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27400 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27401 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27402 (grub_ohci_fini_hw): New function.
27403 (grub_ohci_restore_hw): Likewise.
27404 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27405 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27406 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27408 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27410 Dedicated DMA allocations.
27412 * bus/pci.c (grub_memalign_dma32): New function
27413 (grub_dma_free): Likewise.
27414 (grub_dma_get_virt): Likewise.
27415 (grub_dma_get_phys): Likewise.
27416 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27417 (grub_ohci_pci_iter): Use dma32_alloc.
27418 (grub_ohci_transfer): Likewise.
27419 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27420 (grub_usb_bulk_readwrite): Likewise.
27421 * include/grub/pci.h: Add declarations.
27423 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27427 * bus/cs5536.c: New file.
27428 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27429 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27430 (cs5536_mod_SOURCES): New variable.
27431 (cs5536_mod_CFLAGS): Likewise.
27432 (cs5536_mod_LDFLAGS): Likewise.
27433 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27435 (kernel_img_SOURCES): Add bus/cs5536.c.
27436 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27438 (usb_mod_SOURCES): New variable.
27439 (usb_mod_CFLAGS): New variable.
27440 (usb_mod_LDFLAGS): New variable.
27441 (usbtest_mod_SOURCES): New variable.
27442 (usbtest_mod_CFLAGS): New variable.
27443 (usbtest_mod_LDFLAGS): New variable.
27444 (ohci_mod_SOURCES): New variable.
27445 (ohci_mod_CFLAGS): New variable.
27446 (ohci_mod_LDFLAGS): New variable.
27447 (usbms_mod_SOURCES): New variable.
27448 (usbms_mod_CFLAGS): New variable.
27449 (usbms_mod_LDFLAGS): New variable.
27450 (usb_keyboard_mod_SOURCES): New variable.
27451 (usb_keyboard_mod_CFLAGS): New variable.
27452 (usb_keyboard_mod_LDFLAGS): New variable.
27453 * include/grub/smbus.h: New file.
27454 * include/grub/cs5536.h: New file.
27456 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27458 * util/grub.d/00_header.in: Add safety check to make sure that
27459 ${locale_dir} exists before trying to probe it.
27461 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27463 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
27464 per the GNU Coding Standards; this is now too obscure to be worth
27467 (chainloader): Remove cross-reference to `SCO UnixWare'.
27469 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27471 * docs/grub.texi (Chain-loading): New section.
27472 (DOS/Windows): New section, borrowed from GRUB Legacy with details
27473 adjusted for GRUB 2.
27474 (SCO UnixWare): Likewise.
27476 (chainloader): Add reference to `Block list syntax'.
27477 (drivemap): New section.
27478 (parttool): New section.
27480 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27482 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
27484 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
27485 (Installing GRUB using grub-install): Remove reference to the grub
27486 shell; mention `grub-mkimage' and `grub-setup' instead.
27487 (Invoking grub-install): Likewise.
27488 (Interface): Add reference to `Menu entry editor'.
27489 (serial): Remove `--device' option.
27491 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27493 * docs/grub.texi (Configuration): New section, documenting
27494 configuration file generation using grub-mkconfig. I've left a slot
27495 for documenting the full shell scripting format but have not yet
27496 started on writing that up.
27497 (Invoking grub-mkconfig): New section.
27499 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27501 * docs/grub.texi (direntry): Remove grub-terminfo reference.
27502 (GNU GRUB manual): Likewise.
27503 (General commands): Update description of `terminfo' for GRUB 2.
27505 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27507 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
27508 (GRUB_MOD_INIT): Fix capitalisation.
27509 * docs/grub.texi (Command-line and menu entry commands): Document
27510 gettext and gptsync commands.
27512 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27514 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
27515 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
27517 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
27519 Add btrfs probing support, currently only in the single-device case.
27521 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
27523 (grub_guess_root_device): Call find_root_device_from_mountinfo
27524 before looking in /dev.
27526 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27528 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
27529 GRUB_DISK_SIZE_UNKNOWN.
27530 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
27532 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
27534 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
27535 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
27536 corrupted or not synced properly.
27538 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27540 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
27541 Reported by: Seth Goldberg.
27543 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27545 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
27547 Reported by: Seth Goldberg.
27549 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27551 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
27552 Reported by: Seth Goldberg.
27554 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27556 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
27557 64-bit address as signed on MIPS.
27559 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
27561 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
27562 to the empty string.
27564 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
27566 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
27568 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
27569 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
27570 * kern/misc.c (__enable_execute_stack): Disable on
27573 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
27575 Make grub-probe work with symbolic links under /dev/mapper as well
27576 as with real block devices. The Linux world seems to be (at best)
27577 in transition here, and GRUB shouldn't get caught in the middle.
27579 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
27582 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27584 * util/grub-script-check.c (main): Ensure defined behaviour on empty
27585 input files (in which case exit zero).
27587 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27589 * kern/emu/misc.c (canonicalize_file_name): realpath can still
27590 return NULL for various reasons even if it has a maximum-length
27591 buffer: for example, there might be a symlink loop, or the path
27592 might exceed PATH_MAX. If this happens, return NULL.
27594 2010-05-27 Robert Millan <rmh@gnu.org>
27596 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
27597 partmap module to handle cross-partmap setups.
27598 Reported by Orestes Mas. Gràcies!
27600 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27602 * util/grub-mkrescue.in: Initialise override_dir rather than
27603 assuming that it's unset or empty in the environment.
27605 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
27607 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
27608 variable index into p_index to suppress a warning with -Wshadow.
27610 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
27612 * INSTALL: Added flex >= 2.5.35 requirement.
27614 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27616 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
27618 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27622 * commands/i386/cmostest.c: New file.
27623 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
27624 (cmostest_mod_SOURCES): New variable.
27625 (cmostest_mod_CFLAGS): Likewise.
27626 (cmostest_mod_LDFLAGS): Likewise.
27627 * conf/i386-pc.rmk: Likewise.
27628 * docs/grub.texi (Vendor power-on keys): New section.
27629 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
27630 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
27631 and GRUB_BUTTON_CMOS_ADDRESS.
27632 * util/grub.d/00_header.in: Handle powering-on by separate button.
27634 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27636 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
27637 Removed drawing_scrollbar argument. All users updated
27639 Reported by Jo Shields
27641 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27643 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
27644 buffer since gfxterm handles double repaint.
27646 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27648 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
27649 * term/gfxterm.c (real_scroll): Likewise.
27651 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27653 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
27654 before calling BIOS.
27656 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27658 * include/grub/i18n.h: Always enable grub_gettext.
27660 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27662 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
27663 partition naming style.
27665 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
27667 * util/grub-mkconfig.in: Fix handling of -o so that it works when
27668 not the first option.
27670 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
27672 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
27674 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
27676 * util/misc.c: Move inclusion of <limits.h> to ...
27677 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
27679 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
27681 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
27682 Fix merge error in NetBSD code.
27683 (find_partition_start) [__NetBSD__]: Likewise.
27685 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
27687 Fix grub-mkrescue usage unit testing.
27689 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
27691 2010-05-18 Christian Franke <franke@computer.org>
27693 * util/grub.d/10_windows.in: Use path names instead of
27694 drive letters to prevent warning from Cygwin 1.7.
27695 Add drivemap command to menuentry if needed.
27697 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
27699 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
27700 gnumach and gnumach.gz.
27702 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27704 * include/grub/i18n.h (gettext): Inline instead of using #define.
27705 (grub_gettext): Likewise.
27708 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27710 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
27711 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
27712 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
27713 (main): Add a slash after pkglibdirroot.
27715 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27717 * util/grub-install.in: Add missing "in" keyword.
27719 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27721 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
27722 Reported by: Seth Goldberg.
27724 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27726 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
27728 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
27730 * configure.ac: Check for Linux device-mapper support.
27732 * util/hostdisk.c (device_is_mapped): New function.
27733 (find_partition_start): New function, partly broken out from
27734 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
27735 device-mapper support added.
27736 (linux_find_partition): Use find_partition_start.
27737 (convert_system_partition_to_system_disk): Add `st' argument.
27738 Support Linux /dev/mapper/* devices if device-mapper support is
27739 available; only DM-RAID devices are understood at present.
27740 (find_system_device): Add `st' argument. Pass it to
27741 convert_system_partition_to_system_disk.
27742 (grub_util_biosdisk_get_grub_dev): Pass stat result to
27743 find_system_device and convert_system_partition_to_system_disk. Use
27744 find_partition_start.
27746 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
27747 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
27748 * util/deviceiter.c [__linux__]: Define MINOR.
27749 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
27750 * util/mkdevicemap.c (grub_putchar): New function.
27751 (grub_getkey): New function.
27752 (grub_refresh): New function.
27753 (main): Set debug=all if -v -v is used.
27755 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
27757 Fix build with non-GNU libcs.
27759 * util/misc.c (canonicalize_file_name): Move to ...
27760 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
27761 grub_make_system_path_relative_to_its_root.
27763 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
27765 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
27766 we handle finding grub-mkimage. Default to finding grub-mkimage in
27767 ${bindir} with program_transform_name applied, and provide a
27768 --grub-mkimage option to override this.
27770 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
27772 Remove grub-mkisofs.
27774 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
27775 (grub_mkisofs_SOURCES): Removed.
27776 (grub_mkisofs_CFLAGS): Removed.
27777 * util/mkisofs/defaults.h: Removed.
27778 * util/mkisofs/eltorito.c: Likewise.
27779 * util/mkisofs/exclude.h: Likewise.
27780 * util/mkisofs/hash.c: Likewise.
27781 * util/mkisofs/include/: Likewise.
27782 * util/mkisofs/include/fctldefs.h: Likewise.
27783 * util/mkisofs/include/mconfig.h: Likewise.
27784 * util/mkisofs/include/prototyp.h: Likewise.
27785 * util/mkisofs/include/statdefs.h: Likewise.
27786 * util/mkisofs/iso9660.h: Likewise.
27787 * util/mkisofs/joliet.c: Likewise.
27788 * util/mkisofs/match.c: Likewise.
27789 * util/mkisofs/match.h: Likewise.
27790 * util/mkisofs/mkisofs.c: Likewise.
27791 * util/mkisofs/mkisofs.h: Likewise.
27792 * util/mkisofs/msdos_partition.h: Likewise.
27793 * util/mkisofs/multi.c: Likewise.
27794 * util/mkisofs/name.c: Likewise.
27795 * util/mkisofs/rock.c: Likewise.
27796 * util/mkisofs/tree.c: Likewise.
27797 * util/mkisofs/write.c: Likewise.
27799 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
27801 Unify grub-mkimage accross platforms.
27803 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
27804 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
27805 (grub_mkelfimage_SOURCES): Removed.
27806 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
27807 (util/grub-mkimage.c_DEPENDENCIES): .. this.
27808 (bin_UTILITIES): Add grub-mkimage.
27809 (grub_mkimage_SOURCES): New variable.
27810 (kernel_img_HEADERS): Remove machine/kernel.h.
27811 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
27812 (pkglib_PROGRAMS): Add kernel.img.
27813 (kernel_img_HEADERS): Add machine/kernel.h.
27814 (kernel_img_FORMAT): Removed.
27815 (bin_UTILITIES): Remove grub-mkimage.
27816 (grub_mkimage_SOURCES): Removed.
27817 (grub_mkimage_CFLAGS): Likewise.
27818 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27819 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
27820 (pkglib_PROGRAMS): Add kernel.img.
27821 (bin_UTILITIES): Remove grub-mkimage.
27822 (grub_mkimage_SOURCES): Removed.
27823 (grub_mkimage_CFLAGS): Likewise.
27824 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27825 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
27826 (pkglib_PROGRAMS): Add kernel.img.
27827 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
27828 (pkglib_PROGRAMS): Add kernel.img.
27829 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
27830 (grub_mkimage_SOURCES): Removed.
27831 (grub_mkimage_CFLAGS): Likewise.
27832 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27833 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
27834 (pkglib_PROGRAMS): Add kernel.img.
27835 (bin_UTILITIES): Remove grub-mkimage.
27836 (grub_mkimage_SOURCES): Removed.
27837 (grub_mkimage_CFLAGS): Likewise.
27838 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27839 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
27840 (grub_mkimage_SOURCES): Removed.
27841 (grub_mkimage_CFLAGS): Likewise.
27842 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27843 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
27844 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
27845 (grub_pe32_optional_header): ... this.
27846 (grub_pe64_optional_header): ... and this. All users updated.
27847 (GRUB_PE32_PE32_MAGIC): Split into ..
27848 (GRUB_PE32_PE32_MAGIC): .. this.
27849 (GRUB_PE32_PE64_MAGIC): .. and this.
27850 (GRUB_PE32_SIGNATURE_SIZE): New definition.
27851 * include/grub/elf.h (PT_GNU_STACK): New definition.
27852 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
27853 * include/grub/i386/efi/kernel.h: Likewise.
27854 * include/grub/i386/kernel.h: Likewise.
27855 * include/grub/i386/pc/kernel.h: Likewise.
27856 * include/grub/i386/qemu/boot.h: Likewise.
27857 * include/grub/mips/kernel.h: Likewise.
27858 * include/grub/mips/qemu-mips/kernel.h: Likewise.
27859 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27860 * include/grub/powerpc/kernel.h: Likewise.
27861 * include/grub/sparc64/ieee1275/boot.h: Likewise.
27862 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27863 * include/grub/sparc64/kernel.h: Likewise.
27864 * include/grub/x86_64/efi/kernel.h: Likewise.
27865 * include/grub/x86_64/kernel.h: Likewise.
27866 * include/grub/offsets.h: New file.
27867 * include/grub/kernel.h (grub_module_info): Split into ...
27868 (grub_module_info32): ... this.
27869 (grub_module_info64): ... and this.
27870 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
27871 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
27872 (grub_boot_blocklist): Moved from here ...
27873 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
27874 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
27875 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
27876 * include/grub/types.h (grub_target_to_host16): Removed.
27877 (grub_target_to_host32): Likewise.
27878 (grub_target_to_host64): Likewise.
27879 (grub_host_to_target16): Likewise.
27880 (grub_host_to_target32): Likewise.
27881 (grub_host_to_target64): Likewise.
27882 (grub_host_to_target_addr): Likewise.
27884 Support grub-mkrescue for efi, coreboot and qemu.
27886 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
27887 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
27888 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
27889 * util/grub-mkrawimage.c: Moved from here ...
27890 * util/grub-mkimage.c: ... here. All users updated.
27891 (ALIGN_ADDR): Use image_target.
27892 (TARGET_NO_FIELD): New const.
27893 (image_target_desc): New type.
27894 (image_targets): New array.
27895 (grub_target_to_host64): Use image_target.
27896 (grub_target_to_host32): Likewise.
27897 (grub_target_to_host16): Likewise.
27898 (grub_host_to_target64): Likewise.
27899 (grub_host_to_target32): Likewise.
27900 (grub_host_to_target16): Likewise.
27901 (grub_host_to_target_addr): Likewise.
27902 (generate_image): Handle multiimage.
27903 (main): Require -O parameter. All users updated.
27904 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
27905 util/efi/grub-mkimage.c
27906 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
27907 New option --rom-directory.
27909 * util/i386/efi/grub-mkimage.c: Removed.
27910 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
27911 (grub_target_to_host32): Likewise.
27912 (grub_target_to_host64): Likewise.
27913 (grub_host_to_target16): Likewise.
27914 (grub_host_to_target32): Likewise.
27915 (grub_host_to_target64): Likewise.
27916 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
27917 (grub_target_to_host32): Likewise.
27918 (grub_target_to_host64): Likewise.
27919 (grub_host_to_target16): Likewise.
27920 (grub_host_to_target32): Likewise.
27921 (grub_host_to_target64): Likewise.
27923 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
27925 Source tree is reorganized for emu build.
27927 * include/grub/util/console.h: Move from here...
27928 * include/grub/emu/console.h: ...to here.
27929 * include/grub/util/getroot.h: Move from here...
27930 * include/grub/emu/getroot.h: ...to here.
27931 * include/grub/util/hostdisk.h: Move from here...
27932 * include/grub/emu/hostdisk.h: ...to here.
27933 * util/console.c: Move from here...
27934 * kern/emu/console.c: ...to here.
27935 * util/getroot.c: Move from here...
27936 * kern/emu/getroot.c: ...to here.
27937 * util/grub-emu.c: Move from here...
27938 * kern/emu/main.c: ...to here.
27939 * util/hostdisk.c: Move from here...
27940 * kern/emu/hostdisk.c: ...to here.
27941 * util/hostfs.c: Move from here...
27942 * kern/emu/hostfs.c: ...to here.
27943 * util/mm.c: Move from here...
27944 * kern/emu/mm.c: ...to here.
27945 * util/pci.c: Move from here...
27946 * bus/emu/pci.c: ...to here.
27947 * util/sdl.c: Move from here...
27948 * video/emu/sdl.c: ...to here.
27949 * util/time.c: Move from here...
27950 * kern/emu/time.c: ...to here.
27951 * util/usb.c: Move from here...
27952 * bus/usb/emu/usb.c: ...to here.
27954 * include/grub/emu/misc.h: New header for grub-emu functions.
27955 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
27957 * conf/any-emu.rmk: Rule updates for above renames.
27958 * conf/common.rmk: Likewise.
27959 * conf/i386-pc.rmk: Likewise.
27960 * conf/i386-qemu.rmk: Likewise.
27961 * conf/mips.rmk: Likewise.
27962 * conf/sparc64-ieee1275.rmk: Likewise.
27963 * conf/x86-efi.rmk: Likewise.
27965 * disk/lvm.h: #include updates for above renames.
27966 * util/grub-mkrelpath.c: Likewise.
27967 * util/grub-probe.c: Likewise.
27968 * util/i386/pc/grub-setup.c: Likewise.
27969 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27970 * kern/emu/console.c: Likewise.
27971 * kern/emu/getroot.c: Likewise.
27972 * kern/emu/hostdisk.c: Likewise.
27973 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
27975 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
27976 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
27977 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
27978 * util/misc.c: Remove grub-emu functions.
27980 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
27983 Reported by: Thorsten Grützmacher.
27985 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
27987 (circprog_set_property): Register and unregister timeout hook.
27988 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
27989 (label_destroy): Free template. and unregister hook.
27990 (label_set_state): New function.
27991 (label_set_property): Handle templates and hooks.
27992 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
27994 (progress_bar_set_property): Register and unregister timeout hook.
27995 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
27996 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
27997 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
27998 (update_timeout_visit): Removed.
27999 (update_timeouts): New function.
28000 (redraw_timeouts): Likewise.
28001 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28002 (grub_gfxmenu_clear_timeout): Likewise.
28003 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28004 (grub_gfxmenu_timeout_notify): Likewise.
28005 (grub_gfxmenu_timeout_notifications): New external variable.
28006 (grub_gfxmenu_timeout_register): New function.
28007 (grub_gfxmenu_timeout_unregister): Likewise.
28009 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28011 Transform (broken) vga terminal into (working) vga video driver.
28013 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28014 video/i386/pc/vga.c.
28015 * include/grub/video.h (grub_video_driver_id):
28016 Add GRUB_VIDEO_DRIVER_VGA.
28017 * term/i386/pc/vga.c: Renamed to ...
28018 * video/i386/pc/vga.c: ...this
28019 (DEBUG_VGA): Removed.
28020 (CHAR_WIDTH): Likewise.
28021 (CHAR_HEIGHT): Likewise.
28022 (TEXT_WIDTH): Likewise.
28023 (TEXT_HEIGHT): Likewise.
28024 (DEFAULT_FG_COLOR): Likewise.
28025 (DEFAULT_BG_COLOR): Likewise.
28026 (colored_char): Likewise.
28029 (cursor_state): Likewise.
28030 (fg_color): Likewise.
28031 (bg_color): Likewise.
28032 (text_buf): Likewise.
28035 (framebuffer): New variable.
28036 (set_read_map): Disabled.
28037 (setup): New variable.
28038 (is_target): Likewise.
28039 (grub_vga_mod_init): Likewise.
28040 (grub_vga_mod_fini): Likewise.
28041 (check_vga_mem): Likewise.
28042 (write_char): Likewise.
28043 (write_cursor): Likewise.
28044 (scroll_up): Likewise.
28045 (grub_vga_putchar): Likewise.
28046 (grub_vga_getcharwidth): Likewise.
28047 (grub_vga_getwh): Likewise.
28048 (grub_vga_getxy): Likewise.
28049 (grub_vga_gotoxy): Likewise.
28050 (grub_vga_cls): Likewise.
28051 (grub_vga_setcolorstate): Likewise.
28052 (grub_vga_setcursor): Likewise.
28053 (grub_video_vga_init): New function.
28054 (grub_video_vga_setup): Likewise.
28055 (grub_video_vga_fini): Likewise.
28056 (update_target): Likewise.
28057 (grub_video_vga_blit_bitmap): Likewise.
28058 (grub_video_vga_blit_render_target): Likewise.
28059 (grub_video_vga_set_active_render_target): Likewise.
28060 (grub_video_vga_get_active_render_target): Likewise.
28061 (grub_video_vga_swap_buffers): Likewise.
28062 (grub_video_vga_set_palette): Likewise.
28063 (grub_video_vga_get_info_and_fini): Likewise.
28064 (grub_vga_term): Removed.
28065 (grub_video_vga_adapter): New variable.
28066 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28067 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28069 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28071 * video/readers/jpeg.c: Indented.
28073 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28075 Various jpeg cleanups.
28077 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28078 (grub_jpeg_decode_quan_table): Use sizeof.
28079 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28081 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28083 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28084 tables. Ignore non-last ac bit.
28085 (grub_jpeg_decode_quan_table): Likewise.
28087 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28089 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28090 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28091 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28092 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28093 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28094 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28096 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28098 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28101 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28103 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28105 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28107 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28110 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28112 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28115 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28117 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28120 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28122 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28124 2010-05-01 Christian Franke <franke@computer.org>
28126 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28127 Remove broken Cygwin path conversion.
28128 * util/misc.c: [__CYGWIN__] Add include and define.
28129 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28131 (make_system_path_relative_to_its_root): Simplify loop, replace early
28133 [__CYGWIN__] Add conversion to win32 path.
28134 Include "/" case in trailing slash removal.
28136 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28138 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28139 Reported by: Seth Goldberg
28141 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28143 * commands/help.c (grub_cmd_help): Fix a typo.
28144 Reported by: Seth Goldberg
28146 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28148 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28150 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28151 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28152 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28153 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28154 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28155 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28156 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28157 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28158 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28159 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28160 * normal/context.c (GRUB_MOD_INIT): Likewise.
28161 * normal/main.c (GRUB_MOD_INIT): Likewise.
28162 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28163 * term/serial.c (GRUB_MOD_INIT): Likewise.
28164 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28166 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28168 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28171 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28173 * commands/iorw.c: New file.
28174 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28175 (iorw_mod_SOURCES): New variable.
28176 (iorw_mod_CFLAGS): Likewise.
28177 (iorw_mod_LDFLAGS): Likewise.
28179 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28183 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28184 * normal/main.c (hotkey_aliases): New variable.
28185 (grub_normal_add_menu_entry): Parse "--hotkey".
28186 * normal/menu_text.c (run_menu): Handle hotkeys.
28188 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28190 * kern/i386/coreboot/init.c (grub_machine_init): Call
28191 grub_machine_mmap_init on qemu.
28193 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28195 * boot/i386/qemu/boot.S: Add a missing .code16.
28197 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28199 Use LBIO on coreboot.
28201 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28202 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28203 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28205 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28206 grub_machine_mmap_init on coreboot.
28207 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28208 GRUB_LINUXBIOS_MEMBER_LINK.
28209 (grub_machine_mmap_iterate): Fix declaration.
28210 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28212 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28214 Split coreboot and multiboot ports.
28216 * conf/i386-multiboot.rmk: New file.
28217 * configure.ac: Add multiboot port.
28218 * include/grub/i386/multiboot/boot.h: New file.
28219 * include/grub/i386/multiboot/console.h: Likewise.
28220 * include/grub/i386/multiboot/init.h: Likewise.
28221 * include/grub/i386/multiboot/kernel.h: Likewise.
28222 * include/grub/i386/multiboot/loader.h: Likewise.
28223 * include/grub/i386/multiboot/memory.h: Likewise.
28224 * include/grub/i386/multiboot/serial.h: Likewise.
28225 * include/grub/i386/multiboot/time.h: Likewise.
28226 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28227 * loader/multiboot.c: Likewise.
28228 * loader/multiboot_mbi2.c: Likewise.
28229 * util/grub-mkrescue.in: Generate multiboot rescue.
28231 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28233 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28235 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28237 Merge handling of input and output terminals. Fix a hang.
28239 * commands/terminal.c (abstract_terminal): New struct.
28240 (handle_command): New function. Based on grub_cmd_terminal_input.
28241 (grub_cmd_terminal_input): Use handle_command.
28242 (grub_cmd_terminal_output): Use handle_command.
28244 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28246 Fix comment handling.
28248 * tests/grub_script_comments.in: New testcase.
28249 * conf/tests.rmk: Rules for new testcase.
28250 * script/yylex.l: Updated flex rules.
28252 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28254 * docs/grub.texi (play): Document that zero pitches produce rests.
28255 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28258 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28260 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28263 2010-04-26 Christian Franke <franke@computer.org>
28265 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28266 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28267 (grub_get_prefix): Remove function.
28268 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28269 make_system_path_relative_to_its_root ().
28270 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28272 2010-04-24 Christian Franke <franke@computer.org>
28274 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28275 (kernel_img_LDFLAGS): Remove -static-libgcc.
28277 2010-04-24 Christian Franke <franke@computer.org>
28279 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28280 and CHECK_END_SYMBOL if grub-emu is built.
28281 Unset TARGET_OBJ2ELF if grub-emu is built
28282 without module support.
28284 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28288 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28289 (grub_fstest_SOURCES): Likewise.
28290 (pkglib_MODULES): Add nilfs2.mod.
28291 (nilfs2_mod_SOURCES): New variable.
28292 (nilfs2_mod_CFLAGS): Likewise.
28293 (nilfs2_mod_LDFLAGS): Likewise.
28294 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28295 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28296 * fs/nilfs2.c: New file.
28298 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28300 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28303 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28305 Add grub-mkconfig support for NetBSD.
28307 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28308 * util/grub-mkconfig.in: export new NetBSD specific variables.
28309 * po/POTFILES-shell: added 10_netbsd.in.
28310 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28312 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28314 Fix emu build with grub-emu-pci and grub-emu-modules.
28316 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28318 * include/grub/libpciaccess.h: New file.
28319 * conf/any-emu.rmk: Update kernel headers for emu build.
28321 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28323 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28325 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28327 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28329 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28331 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28332 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28333 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28334 util/ieee1275/ofpath.c.
28335 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28336 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28337 * include/grub/sparc64/ieee1275/boot.h
28338 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28339 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28340 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28341 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28343 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28344 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28345 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28348 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28350 * util/grub-mkconfig.in: Corrected two == equality tests.
28351 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28352 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28353 expect a number appended to it.
28354 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28355 expects a number appended to it.
28357 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28359 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28361 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28363 * util/hostdisk.c (make_device_name): Change to new partition naming.
28365 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28367 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28369 2010-04-17 Christian Franke <franke@computer.org>
28371 * Makefile.in: Add missing localedir setting.
28373 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28375 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28376 mistake in r2156. Noticed by Anthony Fok.
28378 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28380 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28382 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28384 Fix a spurious, uninitialized variable warning.
28386 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28387 Initialize variable, shdr.
28388 (grub_freebsd_load_elfmodule): Likewise.
28389 (grub_freebsd_load_elf_meta): Likewise.
28391 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28393 Fix for escaped dollar in double quoted strings.
28395 * script/yylex.l: Updated flex rules.
28396 * conf/tests.rmk: Rule for new testcase.
28397 * tests/grub_script_dollar.in: New testcase.
28399 2010-04-13 Carles Pina i Estany <carles@pina.cat>
28400 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
28402 Enclose all translated strings in grub.cfg in single quotes, and
28403 escape them appropriately (Ubuntu bug #552921).
28405 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28406 * util/grub.d/10_hurd.in: Use it.
28407 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28408 * util/grub.d/10_linux.in (linux_entry): Likewise.
28410 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28412 Fix cygwin compilation.
28414 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28415 * include/grub/misc.h (__register_frame_info)
28416 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28417 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28418 * kern/misc.c (__register_frame_info)
28419 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28420 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28422 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28424 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28426 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28428 Unify libgcc processing.
28430 * Makefile.in (kernel_img_LDFLAGS): New variable.
28431 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28432 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28434 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28435 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28436 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28437 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28438 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28439 overwriting. Remove -lgcc and -static-libgcc
28440 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28441 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28442 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28443 (kernel_img_LDFLAGS): Append instead of overwriting.
28444 Remove -lgcc and -static-libgcc
28445 * conf/sparc64-ieee1275.rmk: Likewise.
28446 * include/grub/powerpc/libgcc.h: Move to ...
28447 * include/grub/libgcc.h: .. this.
28448 * include/grub/libgcc.h: Don't export most of the function on x86.
28449 (__bswapsi2): New export.
28450 (__bswapdi2): Likewise.
28451 * include/grub/mips/libgcc.h: Removed.
28452 * include/grub/sparc64/libgcc.h: Likewise.
28454 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28456 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
28457 disk_info_msg (conflicts with gettexting into languages with cases).
28459 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
28461 Add grub-probe support for NetBSD.
28463 * util/getroot.c (find_root_device): Convert block device to
28464 character device on NetBSD.
28465 * util/probe.c (probe): Require character device on NetBSD.
28466 * util/hostdisk.c: NetBSD specific headers.
28467 (configure_device_driver): new function to tune device driver
28468 parameters (currently only for NetBSD floppy driver).
28469 (grub_util_biosdisk_open): NetBSD specific code (get disk size
28470 via disklabel ioctl).
28471 (open_device): call configure_device_driver on NetBSD.
28472 (convert_system_partition_to_system_disk): NetBSD specific code.
28473 (device_is_wholedisk): Likewise.
28474 (grub_util_biosdisk_get_grub_dev): Likewise.
28475 (make_device_name): Fixed a typo in bsd_part_str.
28476 * configure.ac: check for opendisk() and getrawpartition() on
28477 NetBSD and set LIBUTIL.
28478 * Makefile.in: add LIBUTIL to LIBS.
28480 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28484 * util/grub-script-check.c: Better help message.
28486 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28490 * configure.ac: Flex version check.
28491 * conf/common.rmk: Add -Wno-error to sh.mod.
28492 * script/yylex.l: Remove all #pragma.
28494 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28496 * include/grub/util/misc.h (canonicalise_file_name): Add missing
28498 Reported by: Seth Goldberg.
28500 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28502 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
28503 Rename "module" to "module2".
28504 Reported by: Seth Goldberg.
28506 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28508 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
28510 Reported by: Seth Goldberg.
28512 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28514 * lib/posix_wrap/locale.h: Add missing file.
28515 Reported by: Seth Goldberg.
28517 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28519 grub-emu module load support.
28521 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
28522 NO_DYNAMIC_MODULES switched to this.
28523 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
28524 (CFLAGS): Likewise.
28525 * conf/any-emu.rmk: Generate symlist.
28526 (kernel_img_HEADERS): Add util/datetime.h.
28527 (kernel_img_HEADERS) [sdl]: Add sdl.h.
28528 (kernel_img_HEADERS) [libusb]: Add libusb.h.
28529 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
28530 kern/$(target_cpu)/cache.S.
28531 * configure.ac (grub-emu-modules): New option.
28532 * genmk.rb: Handle multiple source lists.
28533 * include/grub/sdl.h: New file.
28534 * include/grub/libusb.h: Likewise.
28535 * util/grub-emu.c (main): Hanle (host) root.
28536 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
28537 GRUB_ERR_UNKNOWN_DEVICE.
28538 * util/misc.c: Move mm functions to ...
28539 * util/mm.c: ... here. All users updated.
28541 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28543 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
28544 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
28546 (maintainer-clean): Remove libgcrypt-grub.
28548 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28550 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
28552 2010-04-09 EFI Coder <eficoder@hotmail.com>
28554 * normal/menu_text.c (print_message): Clean up the message and show
28555 the Fn information when on EFI
28556 * term/efi/console.c (grub_console_checkkey): Add F4 support.
28558 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28560 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
28562 * normal/crypto.c (read_crypto_list): Likewise.
28563 * normal/dyncmd.c (read_command_list): Likewise.
28564 * normal/term.c (read_terminal_list): Likewise.
28565 * normal/main.c (read_lists): Use explicit prefix.
28566 (read_lists_hook): Use read_lists.
28567 (grub_normal_execute): Likewise.
28569 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28571 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
28572 Reported by: Thomas Schmitt.
28573 Add -no-emul-boot to grub-mkisofs parameters.
28575 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28577 * font/font.c: Indented.
28579 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
28581 Elif support to GRUB script (by Deepak Vankadaru).
28583 * tests/grub_script_if.in: New testcase.
28584 * conf/tests.rmk: Rule for new testcase.
28585 * script/parser.y: Grammar rules for elif.
28587 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
28589 While and until loops support to GRUB script.
28591 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
28592 (grub_script_create_cmdwhile): New function prototype.
28593 (grub_script_execute_cmdwhile): New function prototype.
28594 * script/execute.c (grub_script_execute_cmdwhile): New function.
28595 * script/parser.y (command): New commands.
28596 (whilecmd): New grammar rule.
28597 (untilcmd): New grammar rule.
28598 * script/script.c (grub_script_create_cmdwhile): New function.
28599 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
28602 * tests/grub_script_while1.in: New testcase.
28603 * conf/tests.rmk: Rule for new testcase.
28605 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28607 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
28610 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
28612 GRUB_BACKGROUND support.
28614 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
28615 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
28617 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28619 Load fonts and modules for gfxmenu in grub-mkconfig.
28620 Idea by: Mario Vazquez
28622 * util/grub.d/00_header.in: Load pf2 and image modules.
28624 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28626 grub-mkconfig multiple terminal support.
28628 * util/grub-mkconfig.in: Handle multiple terminals correctly.
28629 * util/grub.d/00_header.in: Likewise.
28631 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28633 * Makefile.in: Specify files explicitly instead of using $< and $@ since
28634 we use cd $(srcdir).
28636 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
28638 * util/grub.d/10_linux.in: Only use the first word of
28639 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
28640 spaces in GRUB_DISTRIBUTOR.
28641 * util/grub.d/10_kfreebsd.in: Likewise.
28642 * util/grub.d/10_hurd.in: Likewise.
28644 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
28646 Fix unit testing framework for Qemu 0.12.
28648 * tests/util/grub-shell.in: Remove -serial stdio option.
28650 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
28652 POSIX header file wrappers.
28654 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
28656 * lib/posix_wrap/ctype.h: Likewise.
28657 * lib/posix_wrap/errno.h: Likewise.
28658 * lib/posix_wrap/langinfo.h: Likewise.
28659 * lib/posix_wrap/limits.h: Likewise.
28660 * lib/posix_wrap/localcharset.h: Likewise.
28661 * lib/posix_wrap/stdint.h: Likewise.
28662 * lib/posix_wrap/stdio.h: Likewise.
28663 * lib/posix_wrap/stdlib.h: Likewise.
28664 * lib/posix_wrap/string.h: Likewise.
28665 * lib/posix_wrap/sys/types.h: Likewise.
28666 * lib/posix_wrap/unistd.h: Likewise.
28667 * lib/posix_wrap/wchar.h: Likewise.
28668 * lib/posix_wrap/wctype.h: Likewise.
28669 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
28670 (grub_script.yy.h): Likewise.
28671 * script/yylex.l: Remove POSIX emulation #defines.
28672 * Makefile.in (POSIX_CFLAGS): New variable.
28673 (GNULIB_UTIL_CFLAGS): Likewise.
28677 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
28678 (regexp_mod_SOURCES): New variable.
28679 (regexp_mod_CFLAGS): Likewise.
28680 (regexp_mod_LDFLAGS): Likewise.
28681 * commands/regexp.c: New file.
28682 * gnulib/regcomp.c: New file. Imported from gnulib.
28683 * gnulib/regex.c: Likewise.
28684 * gnulib/regex_internal.c: Likewise.
28685 * gnulib/regex_internal.h: Likewise.
28686 * gnulib/regexec.c: Likewise.
28687 * gnulib/regex.h: Likewise.
28689 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28691 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
28692 unsupported video mode types.
28694 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28696 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
28698 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28700 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
28701 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
28703 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
28705 Remove unused grub_vga_get_font.
28707 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
28708 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
28710 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28712 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
28713 * include/grub/misc.h: Likewise.
28715 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28717 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
28718 for which failure is fatal.
28720 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28722 * util/grub-install.in: Use mkdir -p to create grub directory.
28723 * util/i386/efi/grub-install.in: Likewise.
28724 * util/ieee1275/grub-install.in: Likewise.
28726 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28728 * Makefile.in (LEX): new variable.
28730 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28732 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
28733 `=' and added double quotes on operands of this equality test.
28735 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
28737 * Makefile.in (uninstall): Remove a leftover debug echo.
28738 Reported by: Grégoire Sutre
28740 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
28742 MIPS multiboot2 support.
28744 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
28745 (multiboot2_mod_SOURCES): New variable.
28746 (multiboot2_mod_CFLAGS): Likewise.
28747 (multiboot2_mod_LDFLAGS): Likewise.
28748 (multiboot2_mod_ASFLAGS): Likewise.
28749 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
28751 (MULTIBOOT_ENTRY_REGISTER): Likewise.
28752 (MULTIBOOT_MBI_REGISTER): Likewise.
28753 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
28754 (MULTIBOOT_ELF32_MACHINE): Likewise.
28755 (MULTIBOOT_ELF64_MACHINE): Likewise.
28756 * include/grub/mips/multiboot.h: New file.
28757 * include/grub/video.h (grub_video_driver_id): New type
28758 GRUB_VIDEO_DRIVER_SM712.
28759 (grub_video_get_info_and_fini): Export.
28760 (grub_video_get_palette): Likewise.
28761 (grub_video_get_driver_id): Likewise.
28762 * include/multiboot2.h: Resynced with spec.
28763 * loader/i386/multiboot.c: Moved from here ...
28764 * loader/multiboot.c: ... here. All users updated.
28765 (grub_multiboot_boot): Use platform-specific macros.
28766 * loader/i386/multiboot_elfxx.c: Moved from here ...
28767 * loader/multiboot_elfxx.c: ... here. All users updated.
28768 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
28769 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
28770 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
28772 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
28774 Import gnulib argp module.
28776 * gnulib/argp-ba.c: New file.
28777 * gnulib/argp-eexst.c: Likewise.
28778 * gnulib/argp-fmtstream.c: Likewise.
28779 * gnulib/argp-fmtstream.h: Likewise.
28780 * gnulib/argp-fs-xinl.c: Likewise.
28781 * gnulib/argp-help.c: Likewise.
28782 * gnulib/argp-namefrob.h: Likewise.
28783 * gnulib/argp-parse.c: Likewise.
28784 * gnulib/argp-pin.c: Likewise.
28785 * gnulib/argp-pv.c: Likewise.
28786 * gnulib/argp-pvh.c: Likewise.
28787 * gnulib/argp-version-etc.c: Likewise.
28788 * gnulib/argp-version-etc.h: Likewise.
28789 * gnulib/argp-xinl.c: Likewise.
28790 * gnulib/argp.h: Likewise.
28792 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
28794 * kern/device.c (grub_device_iterate): Clear errors after failed
28797 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
28799 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
28800 returned by firmware.
28802 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
28804 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
28805 compilation on coreboot and qemu
28807 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
28809 * include/multiboot2.h: Resync with spec.
28811 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
28813 Multiboot2 tag support
28815 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
28816 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
28817 Remove loader/multiboot_loader.c.
28818 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
28819 (grub_multiboot2_real_boot): Likewise.
28820 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
28821 (grub_get_multiboot_mmap_count): New proto.
28822 (grub_fill_multiboot_mmap): Likewise.
28823 (grub_multiboot_set_video_mode): Likewise.
28824 (grub_multiboot_set_console): Likewise.
28825 (grub_multiboot_load): Likewise.
28826 (grub_multiboot_load_elf): Likewise.
28827 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
28828 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
28829 * include/multiboot.h: Resynced with specification.
28830 * include/multiboot2.h: Resynced with specification.
28831 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
28832 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
28833 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
28834 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
28836 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
28837 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
28838 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
28840 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
28842 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
28843 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
28845 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
28846 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
28847 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
28849 * loader/i386/multiboot_mbi2.c: New file.
28851 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
28853 Resync with gnulib.
28855 * Makefile.in (GNULIB_CFLAGS): New variable.
28856 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
28857 (grub_script_check_CFLAGS): New variable.
28858 * gnulib/alloca.h: Resync with gnulib.
28859 * gnulib/error.c: Likewise.
28860 * gnulib/error.h: Likewise.
28861 * gnulib/fnmatch.c: Likewise.
28862 * gnulib/fnmatch_loop.c: Likewise.
28863 * gnulib/getdelim.c: Likewise.
28864 * gnulib/getline.c: Likewise.
28865 * gnulib/getopt.c: Likewise.
28866 * gnulib/getopt1.c: Likewise.
28867 * gnulib/getopt_int.h: Likewise.
28868 * gnulib/gettext.h: Likewise.
28869 * gnulib/progname.c: Likewise.
28870 * gnulib/progname.h: Likewise.
28872 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
28874 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
28875 which is the case with --disabled-nls.
28877 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
28878 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
28879 * util/misc.c: Likewise.
28880 * util/mkisofs/mkisofs.c: Likewise.
28881 * util/mkisofs/mkisofs.h: Likewise.
28883 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
28885 Simplify Apple CC support.
28887 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
28888 Add 0 byte at the end not to have a symbol with empty target.
28889 * mmap/i386/pc/mmap_helper.S: Likewise.
28890 * genmk.rb: Ignore errors 2030 and 2050.
28891 * kern/i386/pc/startup.S: Use LOCAL when possible.
28893 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
28895 Testcase and the fix for final semicolon on cmdline.
28897 * tests/grub_script_final_semicolon.in: New testcase.
28898 * conf/tests.rmk: Rules for the new testcase.
28899 * script/parser.y: Grammar fix.
28901 2010-03-26 BVK Chaitanya <bvk@localhost>
28903 Blank lines testcase for GRUB script.
28905 * tests/grub_script_blanklines.in: New testcase.
28906 * conf/tests.rmk: Rules for the new testcase.
28908 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28910 Don't use __FILE__.
28912 * genmk.rb: Add -DGRUB_FILE to all C targets.
28913 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
28914 * include/grub/list.h: Likewise.
28915 * include/grub/misc.h: Likewise.
28916 * include/grub/mm.h: Likewise.
28917 * include/grub/test.h: Likewise.
28918 * kern/mm.c: Likewise.
28919 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
28921 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28923 Sunpc partitions support.
28925 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
28926 (grub_fstest_SOURCES): Likewise.
28927 (pkglib_MODULES): Add part_sunpc.mod.
28928 (part_sunpc_mod_SOURCES): New variable.
28929 (part_sunpc_mod_CFLAGS): Likewise.
28930 (part_sunpc_mod_LDFLAGS): Likewise.
28931 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
28932 * partmap/sunpc.c: New file.
28934 2010-03-26 BVK Chaitanya <bvk@localhost>
28936 For loop support to GRUB script.
28938 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
28939 (grub_script_create_cmdfor): New function prototype.
28940 (grub_script_execute_cmdfor): New function prototype.
28941 * script/execute.c (grub_script_execute_cmdfor): New function.
28942 * script/parser.y (command): New for command.
28943 (forcmd): New grammar rule.
28944 * script/script.c (grub_script_create_cmdfor): New function.
28945 * util/grub-script-check.c (grub_script_execute_cmdfor): New
28947 * tests/grub_script_for1.in: New testcase.
28948 * conf/tests.rmk: Rules for new testcase.
28950 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28954 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
28955 'partition' is NULL, grub_partition_get_start already does that.
28956 * commands/loadenv.c (check_blocklists): Likewise.
28957 (write_blocklists): Likewise.
28958 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
28959 (grub_fstest_SOURCES): Likewise.
28960 (pkglib_MODULES): Add part_bsd.mod.
28961 (part_bsd_mod_SOURCES): New variable.
28962 (part_bsd_mod_CFLAGS): Likewise.
28963 (part_bsd_mod_LDFLAGS): Likewise.
28964 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
28965 (grub_emu_SOURCES): Likewise.
28966 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28967 * include/grub/bsdlabel.h: New file.
28968 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
28970 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
28971 (grub_partition_map_list): New variable.
28972 (grub_partition_map_register): Inline.
28973 (grub_partition_map_unregister): Likewise.
28974 (FOR_PARTITION_MAPS): New macro.
28975 (grub_partition_map_iterate): Removed.
28976 (grub_partition_get_start): Handle nested partitions.
28977 * include/grub/msdos_partition.h: Remove bsd-related entries.
28978 (grub_pc_partition): Remove.
28979 * kern/disk.c (grub_disk_close): Free partition data.
28980 (grub_disk_adjust_range): Handle nested partitions.
28981 * kern/partition.c (grub_partition_map_probe): New function.
28982 (grub_partition_probe): Parse name to number, handle subpartitions.
28983 (get_partmap): New function.
28984 (grub_partition_iterate): Handle subpartitions.
28985 (grub_partition_get_name): Likewise.
28986 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
28987 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
28988 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
28989 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
28991 (acorn_partition_map_probe): Remove.
28992 (acorn_partition_map_get_name): Likewise.
28993 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
28995 Set 'index' to 0 since there can be only one partition entry per sector.
28996 (amiga_partition_map_probe): Remove.
28997 (amiga_partition_map_get_name): Likewise.
28998 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29000 Set 'offset' and 'index' to real positions of partitions.
29001 (apple_partition_map_probe): Remove.
29002 (apple_partition_map_get_name): Likewise.
29003 * partmap/bsdlabel.c: New file.
29004 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29006 Allocate 'data' so it can be correctly freed.
29007 Set 'index' to offset inside sector.
29008 (gpt_partition_map_probe): Remove.
29009 (gpt_partition_map_get_name): Likewise.
29010 * partmap/msdos.c (grub_partition_parse): Remove.
29011 (pc_partition_map_iterate): Don't force raw access.
29013 Make 'ext_offset' a local variable.
29014 (pc_partition_map_probe): Remove.
29015 (pc_partition_map_get_name): Remove.
29016 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29018 (sun_partition_map_probe): Remove.
29019 (sun_partition_map_get_name): Likewise.
29020 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29021 (grub_pcpart_type): Likewise.
29022 * util/hostdisk.c (open_device): Handle new numbering scheme.
29023 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29024 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29025 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29026 * util/grub-install.in: Insert all subpartition modules.
29027 * util/ieee1275/grub-install.in: Likewise.
29029 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29031 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29034 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29036 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29038 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29040 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29041 match where 'make install' puts them.
29042 * util/i386/efi/grub-install.in: Likewise.
29044 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29046 * .bzrignore: Add gentrigtables, grub-script-check,
29047 grub_script_check_init.c, grub_script_check_init.h, and
29050 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29052 * kern/parser.c: Indented.
29054 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29056 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29058 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29060 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29061 alpha_mask_size == 0 case.
29063 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29065 GRUB shell lexer and parser improvements.
29067 * conf/any-emu.rmk: Build rule updates.
29068 * conf/common.rmk: Likewise.
29069 * conf/i386-coreboot.rmk: Likewise.
29070 * conf/i386-efi.rmk: Likewise.
29071 * conf/i386-ieee1275.rmk: Likewise.
29072 * conf/i386-pc.rmk: Likewise.
29073 * conf/powerpc-ieee1275.rmk: Likewise.
29074 * conf/x86_64-efi.rmk: Likewise.
29076 * configure.ac: Configure check for flex.
29078 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29080 (grub_lexer_param): Struct member updates.
29081 (grub_parser_param): Likewise.
29082 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29083 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29084 (grub_script_lexer_init): Prototype update.
29085 (grub_script_lexer_record_start): Likewise.
29086 (grub_script_lexer_record_stop): Likewise.
29087 (grub_script_lexer_yywrap): New function prototype.
29088 (grub_script_lexer_fini): Likewise.
29089 (grub_script_execute_argument_to_string): Removed by...
29090 (grub_script_execute_argument_to_argv): ...better version.
29092 * script/execute.c (ROUND_UPTO): New macro.
29093 (grub_script_execute_cmdline): Out of memory fixes.
29094 (grub_script_execute_menuentry): Likewise.
29095 (grub_script_execute_argument_to_string): Removed. Update all
29097 (grub_script_execute_argument_to_argv): ...better version.
29098 * script/function.c (grub_script_function_create): Use
29099 grub_script_execute_argument_to_argv instead of
29100 grub_script_execute_argument_to_string.
29102 * script/lexer.c (check_varstate): Removed.
29103 (check_textstate): Removed.
29104 (grub_script_lexer_record_start): Likewise.
29105 (grub_script_lexer_record_stop): Likewise.
29106 (recordchar): Replaced with...
29107 (grub_script_lexer_record): ...new function.
29108 (nextchar): Removed.
29109 (grub_script_lexer_init): Rewritten.
29110 (grub_script_yylex): Rewritten.
29111 (append_newline): New function.
29112 (grub_script_lexer_yywrap): New function.
29113 (grub_script_lexer_fini): New function.
29114 (grub_script_yyerror): Sets error flag.
29116 * script/yylex.l: New file.
29117 (grub_lexer_yyfree): Wrapper for flex yyffre.
29118 (grub_lexer_yyalloc): Likewise.
29119 (grub_lexer_yyrealloc): Likewise.
29120 * script/parser.y: Refactored.
29122 * script/script.c (grub_script_arg_add): Out of memory fixes.
29123 (grub_script_add_arglist): Likewise.
29124 (grub_script_create_cmdline): Likewise.
29125 (grub_script_create_cmdmenu): Likewise.
29126 (grub_script_add_cmd): Likewise.
29127 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29128 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29131 * tests/grub_script_echo1.in: New testcase.
29132 * tests/grub_script_vars1.in: New testcase.
29133 * tests/grub_script_echo_keywords.in: New testcase.
29135 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29137 Remove some redundancy in build system.
29139 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29140 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29141 (TARGET_LDFLAGS): Add -nostdlib.
29142 (TARGET_IMG_LDFLAGS): Likewise.
29143 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29144 anything since mmap isn't available.
29145 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29147 (pkglib_MODULES): Remove reboot.mod.
29148 (reboot_mod_SOURCES): Removed.
29149 (reboot_mod_CFLAGS): Likewise.
29150 (reboot_mod_LDFLAGS): Likewise.
29151 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29152 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29153 (DEFSYMFILES): Add kernel_syms.lst.
29154 (kernel_img_HEADERS): Add common headers.
29155 (symlist.c): New target.
29156 (kernel_syms.lst): Likewise.
29157 (pkglib_MODULES): Add memdisk.mod.
29158 (memdisk_mod_SOURCES): New variable.
29159 (memdisk_mod_CFLAGS): Likewise.
29160 (memdisk_mod_LDFLAGS): Likewise.
29161 (pkglib_MODULES): Add reboot.mod.
29162 (reboot_mod_SOURCES): New variable.
29163 (reboot_mod_CFLAGS): Likewise.
29164 (reboot_mod_LDFLAGS): Likewise.
29165 (pkglib_MODULES): Add date.mod.
29166 (date_mod_SOURCES): New variable.
29167 (date_mod_CFLAGS): Likewise.
29168 (date_mod_LDFLAGS): Likewise.
29169 (pkglib_MODULES): Add datehook.mod.
29170 (datehook_mod_SOURCES): New variable.
29171 (datehook_mod_CFLAGS): Likewise.
29172 (datehook_mod_LDFLAGS): Likewise.
29173 (pkglib_MODULES): Add lsmmap.mod.
29174 (lsmmap_mod_SOURCES): New variable.
29175 (lsmmap_mod_CFLAGS): Likewise.
29176 (lsmmap_mod_LDFLAGS): Likewise.
29177 (pkglib_MODULES): Add boot.mod.
29178 (boot_mod_SOURCES): New variable.
29179 (boot_mod_CFLAGS): Likewise.
29180 (boot_mod_LDFLAGS): Likewise.
29181 * conf/i386-coreboot.rmk: Removed redundant parts.
29182 * conf/i386-ieee1275.rmk: Likewise.
29183 * conf/i386-pc.rmk: Likewise.
29184 * conf/mips-yeeloong.rmk: Likewise.
29185 * conf/mips.rmk: Likewise.
29186 * conf/powerpc-ieee1275.rmk: Likewise.
29187 * conf/sparc64-ieee1275.rmk: Likewise.
29188 * conf/x86_64-efi.rmk: Likewise.
29189 * conf/i386-coreboot.rmk: Moved qemu parts ..
29190 * conf/i386-qemu.rmk: ... here
29191 * conf/i386-efi.rmk: Moved common parts to...
29192 * conf/x86-efi.rmk: ... here.
29193 * conf/i386.rmk: Added modules common to all x86 variants.
29194 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29195 * disk/memdisk.c: Remove grub/machine/kernel.h.
29196 * gensymlist.sh.in: Include symbol.h.
29197 * hook/datehook.c: Correct module name.
29198 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29199 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29200 * include/grub/i386/efi/serial.h: New file.
29201 * include/grub/x86_64/efi/serial.h: Likewise.
29202 * util/time.c: Likewise.
29203 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29205 2010-03-14 Colin King <colin.king@ubuntu.com>
29206 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29208 Shrink the pre-partition-table part of boot.img by eight bytes.
29210 * boot/i386/pc/boot.S (ERR): New macro.
29211 (chs_mode): Use ERR.
29212 (geometry_error): Likewise.
29213 (hd_probe_error): Remove. This is only used once, so we wrwite
29215 (read_error): Instead of printing read_error_string, just set up
29216 %si and fall through to ...
29217 (error_message): ... this new function, also used by ERR.
29219 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29221 Speed up consecutive hostdisk operations on the same device.
29223 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29224 (grub_util_biosdisk_open): Initialise disk->data.
29225 (struct linux_partition_cache): New structure.
29226 (linux_find_partition): Cache partition start positions; these are
29227 expensive to compute on every read and write.
29228 (open_device): Cache open file descriptor in disk->data, so that we
29229 don't have to reopen it and flush the buffer cache for consecutive
29230 operations on the same device.
29231 (grub_util_biosdisk_close): New function.
29232 (grub_util_biosdisk_dev): Set `close' member.
29234 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29235 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29236 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29237 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29238 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29240 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29242 Compile parts of grub-emu as modules.
29244 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29245 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29246 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29247 (all-local): Add $(GRUB_EMU).
29248 (install-local): Install $(GRUB_EMU).
29249 (uninstall): Uninstall $(GRUB_EMU).
29250 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29251 * kern/dl.c: Likewise.
29252 * commands/sleep.c: Not include machine/time.h.
29253 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29254 (COMMON_CFLAGS): Likewise.
29255 (sbin_UTILITIES): Remove grub-emu.
29256 (grub_emu_SOURCES): Removed.
29257 (kernel_img_RELOCATABLE): New variable.
29258 (pkglib_PROGRAMS): Add kernel.img.
29259 (kernel_img_SOURCES): New variable
29260 (kernel_img_CFLAGS): Likewise.
29261 (kernel_img_LDFLAGS): Likewise.
29262 (TARGET_NO_STRIP): Likewise.
29263 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29264 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29265 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29266 (grub-emu): New target.
29267 (GRUB_EMU): New variable.
29268 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29269 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29270 * loader/xnu.c: Likewise.
29271 * include/grub/pci.h: Likewise.
29272 * genemuinit.sh: New file.
29273 * genemuinitheader.sh: Likewise.
29274 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29275 Support TARGET_NO_DYNAMIC_MODULES.
29276 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29277 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29278 * disk/loopback.c: Likewise.
29279 * font/font_cmd.c: Likewise.
29280 * partmap/acorn.c: Likewise.
29281 * partmap/amiga.c: Likewise.
29282 * partmap/apple.c: Likewise.
29283 * partmap/gpt.c: Likewise.
29284 * partmap/msdos.c: Likewise.
29285 * partmap/sun.c: Likewise.
29286 * parttool/msdospart.c: Likewise.
29287 * term/gfxterm.c: Likewise.
29288 * video/bitmap.c: Likewise.
29289 * video/readers/jpeg.c: Likewise.
29290 * video/readers/png.c: Likewise.
29291 * video/readers/tga.c: Likewise.
29292 * video/video.c: Likewise.
29293 * util/grub-emu.c (read_command_list): Removed.
29294 (main): Don't call util_init_nls.
29295 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29296 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29298 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29300 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29301 date.mod, datehook.mod.
29302 (datetime_mod_SOURCES): New variable.
29303 (datetime_mod_CFLAGS): Likewise.
29304 (datetime_mod_LDFLAGS): Likewise.
29305 (date_mod_SOURCES): Likewise.
29306 (date_mod_CFLAGS): Likewise.
29307 (date_mod_LDFLAGS): Likewise.
29308 (datehook_mod_SOURCES): Likewise.
29309 (datehook_mod_CFLAGS): Likewise.
29310 (datehook_mod_LDFLAGS): Likewise.
29311 * conf/sparc64-ieee1275.rmk: Likewise.
29312 * lib/ieee1275/datetime.c: New file.
29314 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29316 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29317 (ieee1275_fb_mod_SOURCES): New variable.
29318 (ieee1275_fb_mod_CFLAGS): Likewise.
29319 (ieee1275_fb_mod_LDFLAGS): Likewise.
29320 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29322 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29323 (HEAP_MAX_ADDR): Likewise.
29324 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29326 Correct stop condition.
29327 (grub_ieee1275_devices_iterate): New function.
29328 * video/ieee1275.c: New file.
29330 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29332 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29334 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29336 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29337 SCRATCH_PAD_DISKBOOT as scratch.
29338 (bootit): Pass Openfirmware pointer in %o4.
29339 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29341 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29342 with util/grub-mkrawimage.c.
29343 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29344 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29345 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29346 (grub_aout_load) [GRUB_UTIL]: Likewise.
29347 * include/grub/kernel.h (grub_modules_get_end): New proto.
29348 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29349 (SCRATCH_PAD_BOOT): New definition.
29350 (SCRATCH_PAD_DISKBOOT): Likewise.
29351 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29352 * include/grub/sparc64/ieee1275/ieee1275.h
29353 (grub_ieee1275_original_stack): New variable
29354 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29356 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29357 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29358 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29359 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29360 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29361 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29362 (grub_platform_image_format_t): New type.
29363 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29364 * kern/main.c (grub_modules_get_end)
29365 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29366 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29367 (codestart): Switch stacks.
29368 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29370 (grub_heap_init): Use grub_modules_get_end.
29371 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29373 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29375 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29377 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29379 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29381 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29383 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29386 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29388 * genmoddep.awk: Output all missing symbols and not only first.
29390 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29392 * NEWS: Put the date of 1.98 release.
29394 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29396 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29399 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29401 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29402 completition in the middle of string.
29404 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29406 * util/grub-mkrescue.in: Use mktemp with explicit template.
29408 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29410 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29412 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29414 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29417 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29419 Fix FreeBSD compilation.
29421 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29422 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29424 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29426 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29428 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29430 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29432 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29434 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29436 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29438 Support relative image path in theme file.
29440 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29441 (image_set_property): Handle theme_dir and relative path.
29443 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29445 * configure.ac: Alias amd64 to x86_64.
29447 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29449 * NEWS: mention multiboot on EFI.
29451 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29453 * kern/main.c (grub_load_modules): Handle errors from init functions of
29456 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29458 * normal/autofs.c (autoload_fs_module): Handle errors.
29460 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29462 Disable linux.mod on qemu-mips since it's not functional and leads
29463 to compilation failure.
29465 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
29466 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
29467 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
29468 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
29469 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
29470 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
29471 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
29472 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
29473 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
29474 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
29475 Reported by: BVK Chaitanya
29477 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
29479 * INSTALL: Add gettext as a dependency and add qemu to a new section
29480 "Prerequisites for make-check".
29482 2010-03-04 Christian Franke <franke@computer.org>
29484 * util/grub-pe2elf.c: Add missing include "progname.h".
29486 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29488 * normal/crypto.c (read_crypto_list): Fix a typo.
29489 Reported by: Seth Goldberg.
29491 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29493 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
29494 Reported by: Seth Goldberg.
29496 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29498 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
29501 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29503 * genmk.rb: Remove terminal*.lst in make clean.
29504 Reported by: Seth Goldberg.
29506 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29508 * util/i386/efi/grub-install.in: Copy gettext files.
29510 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29512 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
29514 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29516 Wait for user entry basing on presence of output rather than on errors.
29518 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
29519 (grub_install_newline_hook): Likewise.
29520 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
29521 * normal/menu.c (show_menu): Check line_counter to determine presence
29523 * normal/term.c (grub_normal_line_counter): New variable.
29524 (grub_normal_get_line_counter): New function.
29525 (grub_install_newline_hook): Likewise.
29527 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29529 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
29531 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29533 * configure.ac: Update version to 1.98.
29535 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
29537 * util/grub.d/10_linux.in (linux_entry): Don't default to
29538 gfxpayload=keep if Linux doesn't support video handover.
29540 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
29542 Don't compile video modules on yeeloong since video subsystem is part
29545 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
29546 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
29547 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
29548 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
29549 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
29550 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
29551 * include/grub/bitmap_scale.h: Likewise.
29552 * include/grub/bufio.h: Likewise.
29553 * include/grub/font.h: Likewise.
29554 * include/grub/gfxterm.h: Likewise.
29555 * include/grub/video.h: Likewise.
29556 * include/grub/vbe.h: Don't include video_fb.h.
29557 * video/i386/pc/vbe.c: Include video_fb.h.
29558 * commands/i386/pc/vbetest.c: Include video.h.
29560 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
29562 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
29563 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
29564 default entry if GRUB_SAVEDEFAULT=true. This allows using
29565 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
29566 saving a new default on every boot.
29568 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
29570 * normal/crypto.c (read_crypto_list): Fix a memory leak.
29571 * normal/term.c (read_terminal_list): Likewise.
29572 * normal/main.c (grub_normal_init_page): Likewise.
29573 (grub_normal_read_line_real): Likewise.
29575 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
29577 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
29579 Reported by: Seth Goldberg.
29581 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
29583 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
29584 duplicate declaration of `start'.
29586 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
29588 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
29590 Reported by: Georgy Buranov
29592 2010-02-20 Carles Pina i Estany <carles@pina.cat>
29594 * util/grub-mkrawimage.c (usage): Change string formatting to
29597 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
29599 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
29602 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
29604 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
29605 Reported by: Michael Suchanek.
29607 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
29609 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
29610 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
29612 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
29614 Remove any reference to non-free fonts.
29616 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
29617 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
29618 uses non-free components.
29619 * font/font.c (grub_font_get_name): Remove example name.
29620 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
29621 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
29622 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
29623 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
29625 2010-02-16 Georgy Buranov <gburanov@gmail.com>
29627 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
29629 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
29631 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
29633 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
29635 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
29637 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
29639 * gensymlist.sh.in: Use TARGET_CC instead of CC.
29641 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29643 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
29644 * docs/grub.texi (Command-line and menu entry commands): Document play
29647 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29649 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
29650 parse arguments as inline tempo and notes. Move code for playing notes
29652 (play): ... new function.
29654 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29656 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
29657 grub_uint16_t instead of short.
29658 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
29659 disk from little endian to cpu endianness.
29661 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
29663 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
29664 GRUB_TICKS_PER_SECOND instead of 120.
29666 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29668 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
29669 escape sequence after \e.
29671 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29673 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
29674 non-ASCII characters.
29676 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29678 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
29679 set root in single quotes to prevent \, from being unescaped.
29681 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29683 Prevent unknown commands from stopping menuentry execution.
29685 * script/execute.c (grub_script_execute_cmdline): Print error after
29688 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29690 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
29691 Reported by: Pavel Pisa.
29693 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29695 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
29697 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29699 Merge grub_ieee1275_map_physical into grub_map and rename to
29702 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
29703 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
29705 * kern/ieee1275/openfw.c (grub_map): Rename to ...
29706 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
29708 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
29710 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29712 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
29713 opening and not after.
29715 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29717 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
29720 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29722 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
29723 (alloc_phys): Use ALIGN_UP instead of align_addr.
29725 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29727 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
29729 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29731 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
29733 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29735 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
29738 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29740 Fix over-4GiB seek on sparc64.
29742 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
29743 Replace pos_i and pos_lo with pos. All users updated.
29744 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
29746 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
29748 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
29751 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29753 * util/grub-mkrawimage.c (main): Call set_program_name.
29755 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29757 Properly align 64-bit targets.
29759 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
29760 (generate_image): Use ALIGN_ADDR.
29762 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29764 Properly create cross-endian images.
29766 * include/grub/types.h (grub_host_to_target_addr): New macro
29767 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
29769 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29771 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
29773 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29775 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
29777 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
29778 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
29779 (grub_linux_boot): Divide by 64K when on VESA.
29781 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29783 Support GRUB_GFXPAYLOAD_LINUX.
29785 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
29786 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
29788 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29790 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
29791 to show messages instead of discarding them.
29792 Process errors after executing command and not before. Keep old method
29795 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
29797 * configure.ac: Check for ft2build.h.
29799 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29801 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
29803 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29805 * genkernsyms.sh.in: Use TARGET_CC.
29807 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
29811 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29813 * include/grub/multiboot2.h: Remove leftover file.
29814 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
29815 * include/grub/partition.h [GRUB_UTIL]: Likewise.
29817 2010-02-07 Yves Blusseau <blusseau@zetam.org>
29819 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
29821 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29823 Fix warnings in grub-emu when compiling with maximum warning options.
29825 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
29826 (grub_arch_modules_addr): Return 0 and not NULL.
29827 * util/misc.c (ENABLE_RELOCATABLE): New definition.
29828 (xstrdup): Use newstr instead of dup.
29829 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
29830 of disk to dsk to avoid shadowing.
29831 (find_free_slot): Fix prototype.
29832 * util/getroot.c (grub_util_is_dmraid): Make static.
29833 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
29834 Add missing prototype.
29835 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
29837 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29839 * loader/i386/linux.c (grub_linux_setup_video): Handle error
29842 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29844 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
29847 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29849 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
29850 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
29851 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
29852 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
29853 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
29854 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
29856 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29858 * include/grub/err.h (grub_err_printf): Don't export.
29860 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29862 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
29864 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29866 * include/grub/i18n.h (grub_gettext_dummy): Removed.
29867 * kern/misc.c (grub_gettext_dummy): Make static.
29869 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29871 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
29873 * kern/term.c (grub_putchar): Likewise.
29875 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29877 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
29878 buggy hook call and memory leak.
29880 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29882 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
29884 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29886 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
29888 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29890 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
29892 Return grub_errno on allocation error.
29894 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29896 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
29898 2010-02-06 Yves Blusseau <blusseau@zetam.org>
29900 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
29901 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
29903 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29905 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
29907 (grub_pxefs_open): Likewise.
29909 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29911 * util/grub.d/10_hurd.in: Add --class information to menuentries.
29912 * util/grub.d/10_kfreebsd.in: Likewise.
29913 * util/grub.d/10_linux.in: Likewise.
29915 2010-02-06 Colin D Bennett <colin@gibibit.com>
29917 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
29918 (gfxmenu_mod_SOURCES): New variable.
29919 (gfxmenu_mod_CFLAGS): Likewise.
29920 (gfxmenu_mod_LDFLAGS): Likewise.
29921 * include/grub/term.h (grub_term_set_current_output): Declare
29923 * docs/gfxmenu-theme-example.txt: New file.
29924 * gfxmenu/gfxmenu.c: Likewise.
29925 * gfxmenu/gui_box.c: Likewise.
29926 * gfxmenu/gui_canvas.c: Likewise.
29927 * gfxmenu/gui_circular_progress.c: Likewise.
29928 * gfxmenu/gui_image.c: Likewise.
29929 * gfxmenu/gui_label.c: Likewise.
29930 * gfxmenu/gui_list.c: Likewise.
29931 * gfxmenu/gui_progress_bar.c: Likewise.
29932 * gfxmenu/gui_string_util.c: Likewise.
29933 * gfxmenu/gui_util.c: Likewise.
29934 * gfxmenu/icon_manager.c: Likewise.
29935 * gfxmenu/model.c: Likewise.
29936 * gfxmenu/named_colors.c: Likewise.
29937 * gfxmenu/theme_loader.c: Likewise.
29938 * gfxmenu/view.c: Likewise.
29939 * gfxmenu/widget-box.c: Likewise.
29940 * include/grub/gfxmenu_model.h: Likewise.
29941 * include/grub/gfxmenu_view.h: Likewise.
29942 * include/grub/gfxwidgets.h: Likewise.
29943 * include/grub/gui.h: Likewise.
29944 * include/grub/gui_string_util.h: Likewise.
29945 * include/grub/icon_manager.h: Likewise.
29947 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29949 Agglomerate scrolling in gfxterm.
29951 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
29952 (grub_virtual_screen_setup): Initialise 'total_screen'.
29953 (write_char): Split to ...
29954 (paint_char): ... this ...
29955 (write_char): ... and this.
29956 (paint_char): Handle delayed scrolling.
29957 (draw_cursor): Likewise.
29958 (scroll_up): Split to ...
29959 (real_scroll): ... this ...
29960 (scroll_up): ... and this.
29961 (real_scroll): Handle multi-line scroll and draw below-the-bottom
29963 (grub_gfxterm_refresh): Call real_scroll.
29965 2010-02-06 Colin D Bennett <colin@gibibit.com>
29967 * include/grub/misc.h (grub_iscntrl): New inline function.
29968 (grub_isalnum): Likewise.
29969 (grub_strtol): Likewise.
29971 2010-02-06 Colin D Bennett <colin@gibibit.com>
29973 * normal/menu_text.c (get_entry_number): Move from here ...
29974 * normal/menu.c (get_entry_number): ... moved here.
29975 * include/grub/menu.h (grub_menu_get_default_entry_index):
29977 * normal/menu.c (grub_menu_get_default_entry_index): New function.
29978 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
29979 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
29980 (grub_menu_viewer_should_return): Likewise.
29981 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
29982 * normal/menu_text.c (run_menu): Enable menu switching.
29983 * normal/menu_viewer.c (should_return): New variable.
29984 (menu_viewer_changed): Likewise.
29985 (grub_menu_viewer_show_menu): Handle menu viewer changes.
29986 (grub_menu_viewer_should_return): New function.
29987 (menuviewer_write_hook): Likewise.
29988 (grub_menu_viewer_init): Likewise.
29990 2010-02-06 Colin D Bennet <colin@gibibit.com>
29991 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29993 Support for gfxterm in a window.
29995 * include/grub/gfxterm.h: New file.
29996 * include/grub/video.h (struct grub_video_rect): New declaration.
29997 (grub_video_rect_t): Likewise.
29998 * term/gfxterm.c (struct grub_gfxterm_window): New type.
29999 (refcount): New variable.
30000 (render_target): Likewise.
30001 (window): Likewise.
30002 (repaint_callback): Likewise.
30003 (grub_virtual_screen_setup): Use 'render_target'.
30004 (init_window): New function.
30005 (grub_gfxterm_init_window): Likewise.
30006 (grub_gfxterm_init): Check reference counter.
30008 (destroy_window): New function.
30009 (grub_gfxterm_destroy_window): Likewise.
30010 (grub_gfxterm_fini): Check reference counter.
30011 Use destroy_window.
30012 (redraw_screen_rect): Restore viewport.
30013 Use 'render_target' and 'window'.
30014 Call 'repaint_callback'.
30015 (write_char): Use 'render_target'.
30016 (draw_cursor): Likewise.
30017 (scroll_up): Restore viewport.
30018 Use 'render_target' and 'window'.
30019 Call 'repaint_callback'.
30020 (grub_gfxterm_cls): Likewise.
30021 (grub_gfxterm_refresh): Use 'window'.
30022 (grub_gfxterm_set_repaint_callback): New function.
30023 (grub_gfxterm_background_image_cmd): Use 'window'.
30024 (grub_gfxterm_get_term): New function.
30025 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30027 2010-02-06 Colin D Bennett <colin@gibibit.com>
30029 Bitmap scaling support.
30031 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30032 (bitmap_scale_mod_SOURCES): New variable.
30033 (bitmap_scale_mod_CFLAGS): Likewise.
30034 (bitmap_scale_mod_LDFLAGS): Likewise.
30035 * include/grub/bitmap_scale.h: New file.
30036 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30037 (background_image_cmd_options): New variable.
30038 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30039 (cmd): Rename and change type to ...
30040 (background_image_cmd_handle): ... this. All users updated.
30041 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30042 * video/bitmap_scale.c: New file.
30044 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30048 * Makefile.in (LIBSDL): New variable.
30049 (enable_grub_emu_sdl): Likewise.
30050 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30051 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30052 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30053 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30054 * util/sdl.c: New file.
30056 2010-02-06 Colin D Bennett <colin@gibibit.com>
30057 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30059 Double buffering support.
30061 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30062 * include/grub/video.h: Update comment.
30063 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30065 (grub_video_fb_doublebuf_blit_init): New prototype.
30066 * term/gfxterm.c (scroll_up): Support double buffering.
30067 (grub_gfxterm_refresh): Likewise.
30068 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30069 (grub_video_fb_doublebuf_blit_init): Likewise.
30070 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30071 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30072 'displayed_page', 'render_page' and 'update_screen'.
30073 (grub_video_vbe_fini): Free offscreen buffer.
30074 (doublebuf_pageflipping_commit): New function.
30075 (doublebuf_pageflipping_update_screen): Likewise.
30076 (doublebuf_pageflipping_init): Likewise.
30077 (double_buffering_init): Likewise.
30078 (grub_video_vbe_setup): Enable doublebuffering.
30079 (grub_video_vbe_swap_buffers): Implement.
30080 (grub_video_vbe_set_active_render_target): Handle double buffering.
30081 (grub_video_vbe_get_active_render_target): Likewise.
30082 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30083 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30084 (grub_video_vbe_enable_double_buffering): Likewise.
30085 (grub_video_vbe_swap_buffers): Use update_screen.
30086 (grub_video_set_mode): Use double buffering.
30088 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30090 * maintainance/gentrigtables.py: Remove.
30091 * lib/trig.c: Likewise.
30093 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30095 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30097 (trigtables.c): New rule.
30098 (gentrigtables): Likewise.
30099 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30101 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30103 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30106 2010-02-06 Colin D Bennet <colin@gibibit.com>
30108 Trigonometry support.
30110 * include/grub/trig.h: New file.
30111 * lib/trig.c: Likewise.
30112 * maintainance/gentrigtables.py: Likewise.
30113 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30114 (trig_mod_SOURCES): New variable.
30115 (trig_mod_CFLAGS): Likewise.
30116 (trig_mod_LDFLAGS): Likewise.
30118 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30120 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30123 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30125 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30128 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30130 * util/hostdisk.c (open_device): Don't use partition device when reading
30131 before the partition.
30132 (grub_util_biosdisk_read): Don't read from partition and before the
30133 partition in single operation.
30134 (grub_util_biosdisk_write): Don't write to partition and before the
30135 partition in single operation.
30137 2010-02-03 Torsten Landschoff <torsten@debian.org>
30139 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30142 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30144 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30146 (grub_biosdisk_write): Refuse to write to CDROM.
30148 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30150 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30152 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30154 * font/font.c (find_glyph): Check that bmp_idx is available before
30156 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30157 with (font == NULL).
30159 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30161 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30163 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30165 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30166 * util/grub-script-check.c (getline): Fix empty lines case.
30168 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30170 * Makefile.in (check): Exit with fail status when one of the tests
30172 * tests/example_functional_test.c (example_test): Fix reversed assert.
30173 * tests/example_unit_test.c (example_test): Likewise.
30175 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30177 * util/grub.d/10_linux.in: This script does not use any of the
30178 contents of gettext.sh, only the external command `gettext', so stop
30179 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30180 the same prefix as GRUB.)
30181 * util/grub.d/10_kfreebsd.in: Likewise.
30183 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30185 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30188 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30190 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30193 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30195 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30196 having a 4KiB and not 32KiB buffer size.
30198 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30200 * util/hostfs.c: Include `<errno.h>'.
30201 (grub_hostfs_read): Handle errors from fseeko() and fread().
30203 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30205 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30206 loop when using read hooks on files whose size isn't sector-aligned.
30208 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30210 Remove unused parameter.
30212 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30213 (grub_iso9660_open): Remove initialization of `data->length'.
30215 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30217 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30218 memleak conditions.
30220 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30222 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30223 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30225 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30227 * util/bin2h.c (usage): Fix warning (space after backslash).
30229 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30231 * font/font.c: Include `grub/fontformat.h.
30232 Remove font file format constants.
30233 (grub_font_load): Use the new macros.
30234 * include/grub/fontformat.h: New file.
30235 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30236 (write_font_pf2): Use the new macros.
30238 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30240 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30243 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30245 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30247 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30248 (_start): Macroify `0x7F'.
30250 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30251 (make_install_device): Use "(pxe)" as fallback prefix when booting
30254 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30256 * configure.ac: Reset LIBS after check for libgcc symbols.
30258 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30260 * util/hostdisk.c (open_device): Add trailing newline to debug
30263 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30265 * configure.ac: Check for `limits.h'.
30266 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30268 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30270 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30271 capitalize error strings.
30273 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30275 * util/grub.d/10_hurd.in: Add a recovery mode.
30277 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30279 * configure.ac: Check for libgcc symbols with -nostdlib.
30281 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30283 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30285 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30287 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30288 stack since heap may be unavailable at that point.
30289 (grub_ofconsole_gotoxy): Likewise.
30291 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30293 * configure.ac: Check for _restgpr_14_x.
30294 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30295 and _savegpr_* prototypes.
30297 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30299 Use generic grub_reboot() for i386-efi.
30301 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30302 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30303 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30305 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30307 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30308 presence of "prefix" variable as it breaks when normal.mod is
30311 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30313 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30314 stack since heap is unavailable at that point.
30316 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30318 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30319 (grub_freebsd_bootinfo): Rewritten.
30320 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30322 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30324 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30326 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30328 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30331 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30333 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30334 around for handling "/" to the correct fix. Fix a memory leak. Use
30335 xstrdup instead of strdup.
30337 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30339 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30341 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30343 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30345 * font/font.c (struct grub_font): New member 'bmp_idx'.
30346 (font_init): Initialise 'bmp_idx'.
30347 (load_font_index): Fill 'bmp_idx'.
30348 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30350 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30352 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30355 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30357 Move context handling out of the kernel.
30359 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30360 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30361 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30362 * conf/i386-efi.rmk: Likewise.
30363 * conf/i386-ieee1275.rmk: Likewise.
30364 * conf/i386-pc.rmk: Likewise.
30365 * conf/powerpc-ieee1275.rmk: Likewise.
30366 * conf/sparc64-ieee1275.rmk: Likewise.
30367 * conf/x86_64-efi.rmk: Likewise.
30368 * include/grub/env.h: Include grub/menu.h.
30369 (grub_env_var_type): Removed.
30370 (grub_env_var): Replaced field 'type' with 'global'.
30371 (grub_env_find): New prototype.
30372 (grub_env_context_open): Remove EXPORT_FUNC.
30373 (grub_env_context_close): Likewise.
30374 (grub_env_export): Likewise.
30375 (grub_env_set_data_slot): Removed.
30376 (grub_env_get_data_slot): Likewise.
30377 (grub_env_unset_data_slot): Likewise.
30378 (grub_env_unset_menu): New prototype.
30379 (grub_env_set_menu): Likewise.
30380 (grub_env_get_menu): Likewise.
30381 * include/grub/env_private.h: New file.
30382 * include/grub/normal.h (grub_context_init): New prototype.
30383 (grub_context_fini): Likewise.
30384 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30385 * normal/context.c (grub_cmd_export): ... to here.
30386 * kern/env.c: Include env_private.h.
30387 (HASHSZ): Moved to include/grub/env_private.h.
30388 (grub_env_context): Likewise.
30389 (grub_env_sorted_var): Likewise.
30390 (current_context): Renamed from this ...
30391 (grub_current_context): ...to this. 'static' removed. All users updated.
30392 (grub_env_find): Removed 'static'.
30393 (grub_env_context_open): Moved to normal/context.c.
30394 (grub_env_context_close): Likewise.
30395 (grub_env_export): Likewise.
30396 (mangle_data_slot_name): Removed.
30397 (grub_env_set_data_slot): Likewise.
30398 (grub_env_get_data_slot): Likewise.
30399 (grub_env_unset_data_slot): Likewise.
30400 * kern/main.c (grub_set_root_dev): Don't export root.
30401 It will be done later.
30402 (grub_main): Don't export prefix.
30403 It will be done later.
30404 * normal/context.c: New file.
30405 * normal/main.c (free_menu): Use grub_env_unset_menu.
30406 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30407 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30408 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30409 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30411 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30415 * commands/setpci.c: New file.
30416 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30417 (setpci_mod_SOURCES): New variable.
30418 (setpci_mod_CFLAGS): Likewise.
30419 (setpci_mod_LDFLAGS): Likewise.
30421 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30423 Byte-addressable PCI configuration space.
30425 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30427 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30428 GRUB_PCI_REG_CACHELINE.
30429 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30430 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30431 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30432 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30433 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30434 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30435 grub_pci_make_address.
30436 (lock_rom_area): Likewise.
30437 * commands/lspci.c (grub_lspci_iter): Use macroses
30438 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30439 of grub_pci_make_address.
30440 * disk/ata.c (grub_ata_pciinit): Likewise.
30441 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30442 (GRUB_PCI_REG_VENDOR): Likewise.
30443 (GRUB_PCI_REG_DEVICE): Likewise.
30444 (GRUB_PCI_REG_COMMAND): Likewise.
30445 (GRUB_PCI_REG_STATUS): Likewise.
30446 (GRUB_PCI_REG_REVISION): Likewise.
30447 (GRUB_PCI_REG_CLASS): Likewise.
30448 (GRUB_PCI_REG_CACHELINE): Likewise.
30449 (GRUB_PCI_REG_LAT_TIMER): Likewise.
30450 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
30451 (GRUB_PCI_REG_BIST): Likewise.
30452 (GRUB_PCI_REG_ADDRESSES): Likewise.
30453 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30454 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30455 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30456 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30457 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30458 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30459 (GRUB_PCI_REG_CIS_POINTER): Likewise.
30460 (GRUB_PCI_REG_SUBVENDOR): Likewise.
30461 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
30462 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
30463 (GRUB_PCI_REG_CAP_POINTER): Likewise.
30464 (GRUB_PCI_REG_IRQ_LINE): Likewise.
30465 (GRUB_PCI_REG_IRQ_PIN): Likewise.
30466 (GRUB_PCI_REG_MIN_GNT): Likewise.
30467 (GRUB_PCI_REG_MAX_LAT): Likewise.
30468 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
30469 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
30470 * video/efi_uga.c (find_framebuf): Likewise.
30471 * video/sm712.c (grub_video_sm712_setup): Likewise.
30472 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
30475 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30477 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
30478 can be reliably determined to be supported.
30480 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30482 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
30483 that VESA is supported.
30484 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
30487 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30489 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
30491 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30493 * util/misc.c (make_system_path_relative_to_its_root): Work around
30494 special-casing of "/", as previous incarnation of this routine did.
30496 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30498 Fix any-emu compilation.
30500 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
30501 * grub_bin2h_SOURCES: New variable.
30503 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30505 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
30507 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30509 * util/grub.d/00_header.in: Fix handling of locale_dir.
30511 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30513 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
30514 as possible unifont location (Gentoo).
30515 Reported by: Alexander Brüning
30517 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30519 Don't try to generate lists for kernel.img.
30521 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
30522 (pkglib_MODULES): Remove kernel.img.
30523 (kernel_img_EXPORTS): Removed.
30524 (kernel_img_RELOCATABLE): New variable.
30525 * conf/x86_64-efi.rmk: Likewise.
30526 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
30528 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30530 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
30531 grub_xasprintf or grub_snprintf.
30532 (grub_vsprintf): Likewise.
30533 (grub_snprintf): New proto.
30534 (grub_vsnprintf): Likewise.
30535 (grub_xasprintf): Likewise.
30536 (grub_xvasprintf): Likewise.
30537 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
30538 (grub_sprintf): Removed.
30539 (grub_vsnprintf): New function.
30540 (grub_snprintf): Likewise.
30541 (grub_xvasprintf): Likewise.
30542 (grub_xasprintf): Likewise.
30543 (grub_vsprintf): Renamed to ...
30544 (grub_vsnprintf_real): ...this. New argument max_len.
30546 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
30548 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
30549 fix grub-script-check warning.
30551 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30553 * include/grub/font.h (grub_font_load): Fix prototype.
30555 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30557 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
30559 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30561 * include/grub/x86_64/at_keyboard.h: New file.
30563 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30565 * loader/mips/linux.c: Include missing grub/i18n.h.
30567 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30569 * normal/menu.c (notify_execution_failure): Clarify error message.
30571 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30573 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
30574 return value (and revert all return statements). Update users.
30576 2010-01-20 Dan Merillat <debian@dan.merillat.org>
30578 * kern/device.c (grub_device_iterate): Allocate new part_ent
30579 structure based on sizeof (*p) rather than sizeof (p->next), to
30580 account for structure padding.
30582 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
30583 disk is NULL, which might happen for LVM physical volumes with no
30586 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30588 * loader/mips/linux.c (grub_cmd_initrd)
30589 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
30591 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30593 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
30594 (grub_video_video_init, grub_video_bitmap_init)
30595 (grub_font_manager_init, grub_term_gfxterm_init)
30596 (grub_at_keyboard_init): New extern declarations.
30597 (grub_machine_init): Initialize gfxterm and at_keyboard.
30599 * kern/main.c (grub_main): Revert grub_printf delay kludge.
30601 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
30602 `gfxterm.mod' into core image.
30604 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30605 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30606 (kernel_img_FORMAT): Copy to ...
30608 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30609 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30610 (kernel_img_FORMAT): ... here, and ...
30612 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30613 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30614 (kernel_img_FORMAT): ... here.
30616 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
30617 and input (at_keyboard) terminals in kernel.
30618 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
30620 (pkglib_MODULES): Remove `pci.mod'.
30621 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
30622 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
30623 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
30624 (at_keyboard_mod_LDFLAGS): Remove variables.
30626 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
30628 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
30630 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
30632 * include/grub/mips/libgcc.h: Only export symbols for functions
30633 that libgcc provides.
30635 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
30639 * bus/bonito.c: New file.
30640 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
30641 GRUB_PCI_NUM_DEVICES.
30642 * term/i386/pc/serial.c: Move to ...
30643 * term/serial.c: ... here. All users updated.
30644 * util/i386/pc/grub-mkimage.c: Move to ...
30645 * util/grub-mkrawimage.c: ... here. All users updated.
30646 * term/i386/pc/at_keyboard.c: Move to ...
30647 * term/at_keyboard.c: ... here. All users updated.
30648 * conf/mips-qemu-mips.rmk: New file.
30649 * conf/mips-yeeloong.rmk: Likewise.
30650 * conf/mips.rmk: Likewise.
30651 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
30653 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
30655 (grub_ata_pciinit): Support CS5536.
30656 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
30657 * font/font_cmd.c (loadfont_command): Open file before passing it to
30659 (pseudo_file_read): New function.
30660 (pseudo_file_close): Likewise.
30661 (pseudo_fs): New structure.
30662 (load_font_module): New function.
30663 (GRUB_MOD_INIT(font_manager)): Load embedded font.
30664 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
30665 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
30666 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
30667 * include/grub/i386/at_keyboard.h: Split into ...
30668 * include/grub/at_keyboard.h: ... this ...
30669 * include/grub/i386/at_keyboard.h: ... and this.
30670 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
30672 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
30674 (grub_elf64_size): Likewise.
30675 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
30677 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
30678 * include/grub/i386/coreboot/serial.h: Rewritten.
30679 * include/grub/i386/ieee1275/serial.h: Include
30680 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
30681 * include/grub/i386/pc/serial.h: Moved from here ...
30682 * include/grub/serial.h: ... to here. All users updated.
30683 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
30684 (GRUB_PCI_NUM_BUS): Likewise.
30685 (GRUB_PCI_NUM_DEVICES): Likewise.
30686 (grub_pci_device_map_range): Add missing volatile keyword.
30687 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
30688 * include/grub/mips/at_keyboard.h: New file.
30689 * include/grub/mips/cache.h: Likewise.
30690 * include/grub/mips/io.h: Likewise.
30691 * include/grub/mips/kernel.h: Likewise.
30692 * include/grub/mips/libgcc.h: Likewise.
30693 * include/grub/mips/pci.h: Likewise.
30694 * include/grub/mips/qemu-mips/boot.h: Likewise.
30695 * include/grub/mips/qemu-mips/kernel.h: Likewise.
30696 * include/grub/mips/qemu-mips/loader.h: Likewise.
30697 * include/grub/mips/qemu-mips/memory.h: Likewise.
30698 * include/grub/mips/qemu-mips/serial.h: Likewise.
30699 * include/grub/mips/qemu-mips/time.h: Likewise.
30700 * include/grub/mips/relocator.h: Likewise.
30701 * include/grub/mips/time.h: Likewise.
30702 * include/grub/mips/types.h: Likewise.
30703 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
30704 * include/grub/mips/yeeloong/boot.h: Likewise.
30705 * include/grub/mips/yeeloong/kernel.h: Likewise.
30706 * include/grub/mips/yeeloong/loader.h: Likewise.
30707 * include/grub/mips/yeeloong/memory.h: Likewise.
30708 * include/grub/mips/yeeloong/pci.h: Likewise.
30709 * include/grub/mips/yeeloong/serial.h: Likewise.
30710 * include/grub/mips/yeeloong/time.h: Likewise.
30711 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
30712 * kern/elf.c (grub_elf32_size): New parameter. All users
30714 (grub_elf64_size): Likewise.
30715 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
30716 Load modules before saying "Welcome to GRUB!".
30717 Call grub_refresh after saying "Welcome to GRUB!".
30718 * kern/mips/cache.S: New file.
30719 * kern/mips/cache_flush.S: Likewise.
30720 * kern/mips/dl.c: Likewise.
30721 * kern/mips/init.c: Likewise.
30722 * kern/mips/qemu-mips/init.c: Likewise.
30723 * kern/mips/startup.S: Likewise.
30724 * kern/mips/yeeloong/init.c: Likewise.
30725 * kern/term.c (grub_putcode): Handle NULL terminal.
30726 (grub_getcharwidth): Likewise.
30727 (grub_getkey): Likewise.
30728 (grub_checkkey): Likewise.
30729 (grub_getkeystatus): Likewise.
30730 (grub_getxy): Likewise.
30731 (grub_getwh): Likewise.
30732 (grub_gotoxy): Likewise.
30733 (grub_cls): Likewise.
30734 (grub_setcolorstate): Likewise.
30735 (grub_setcolor): Likewise.
30736 (grub_getcolor): Likewise.
30737 (grub_refresh): Likewise.
30738 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
30739 (write_jump): Add hatch nop.
30740 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
30741 * lib/mips/setjmp.S: New file.
30742 * loader/mips/linux.c: Likewise.
30743 * term/i386/pc/at_keyboard.c: Move from here ...
30744 * term/at_keyboard.c: ... to here.
30745 * term/i386/pc/serial.c: Moved from here ...
30746 * term/serial.c: ... to here. All users updated.
30747 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
30748 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
30749 (serial_translate_key_sequence): Avoid deadlock.
30750 (grub_serial_getkey): Handle backspace.
30751 (grub_serial_putchar): Fix newline handling.
30752 * util/i386/pc/grub-mkimage.c: Move from here ...
30753 * util/grub-mkrawimage.c: ... to here. All users updated.
30754 (generate_image): New parameters 'font_path' and 'format'.
30755 Support embedding font.
30756 Use grub_host_to_target* instead of grub_cpu_to_le*.
30757 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
30758 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
30759 (options): New option "--font".
30761 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
30762 (main): Handle "--font".
30763 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
30764 (grub_virtual_screen_setup): Set bg_color_display.
30765 (redraw_screen_rect): Use bg_color_display instead of incorrect
30767 (grub_gfxterm_cls): Likewise.
30768 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
30769 Support embedding config file.
30770 (add_segments): Likewise.
30771 (options): New option "--config".
30772 (main): Handle "--config".
30773 * video/sm712.c: New file.
30775 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30777 Fix parallel builds.
30779 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
30780 font.c depend on ascii.h).
30782 2010-01-12 Carles Pina i Estany <carles@pina.cat>
30784 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
30786 2010-01-11 Carles Pina i Estany <carles@pina.cat>
30788 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
30789 By default: disabled.
30790 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
30793 2010-01-10 Carles Pina i Estany <carles@pina.cat>
30795 * font/font.c: Update copyright years.
30796 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
30798 2010-01-10 Carles Pina i Estany <carles@pina.cat>
30800 * font/font.c: Include `ascii.h'.
30801 (ASCII_BITMAP_SIZE): New macro.
30802 (ascii_font_glyph): Define.
30803 (ascii_glyph_lookup): New function.
30804 (grub_font_get_string_width): Change comment. If glyph not found, use
30805 ascii_glyph_lookup.
30806 (grub_font_get_glyph_with_fallback): If glyph not available returns
30807 ascii_glyph_lookup.
30808 * util/grub-mkfont.c (file_formats): New enum.
30809 (options): Add `ascii-bitmaps' new option.
30810 (usage): Add `asii-bitmaps' new option.
30811 (write_font_ascii_bitmap): New function.
30812 (write_font): Rename to ...
30813 (write_font_p2): ... this. Remove print_glyphs call.
30814 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
30815 used. Call print_glyphs.
30816 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
30818 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
30820 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
30821 (grub_bin2h_SOURCES): New variable.
30822 * util/bin2h.c: New file.
30824 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30826 * include/multiboot.h: Resynced with spec.
30827 * include/multiboot2.h: Likewise.
30828 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
30829 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
30831 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30833 * include/grub/term.h (grub_term_register_input,
30834 grub_term_register_output): Check return of terminal init()
30835 routines, and abort if errors are raised.
30837 * commands/terminal.c: Update copyright year.
30839 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30841 * commands/terminal.c (grub_cmd_terminal_input)
30842 (grub_cmd_terminal_output): Check return of terminal init()
30843 routines, and abort if errors are raised.
30845 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
30847 * include/grub/i386/bsd.h: Fix include pathes.
30849 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
30851 Add missing *BSD copyright headers.
30853 * include/grub/aout.h: Add BSD licence.
30854 * include/grub/i386/bsd.h: Parts under different licences moved to ...
30855 * include/grub/i386/freebsd_linker.h: ... here,
30856 * include/grub/i386/freebsd_reboot.h: ... here,
30857 * include/grub/i386/netbsd_bootinfo.h: ... here,
30858 * include/grub/i386/netbsd_reboot.h: ... here,
30859 * include/grub/i386/openbsd_bootarg.h: ... here,
30860 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
30861 licence to each file.
30863 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30865 * acinclude.m4: Remove `nop' assembly instruction; it's not
30866 implemented by all architectures.
30868 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30870 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
30871 ELILO. This is no longer necessary.
30873 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
30875 Added new tool, grub-scrit-check to verify grub.cfg syntax.
30877 * util/grub-script-check.c: grub-script-check tool.
30878 * conf/common.rmk: Make rules for grub-script-check.
30880 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30882 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
30883 spotting it back in 2008. Shame on me for forgetting he did.
30885 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
30887 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30889 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
30890 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
30891 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
30892 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
30893 (GRUB_VIDEO_TYPE_EFI): Rename to ...
30894 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
30896 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
30898 * include/grub/test.h: Add license header.
30899 * tests/example_functional_test.c: Likewise.
30900 * tests/example_unit_test.c: Likewise.
30901 * tests/lib/functional_test.c: Likewise.
30902 * tests/lib/test.c: Likewise.
30903 * tests/lib/unit_test.c: Likewise.
30905 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
30907 Use flag-based instead of hook-based video mode selection and "auto"
30910 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
30911 (grub_video_set_mode): Changed prototype. All users updated.
30912 (grub_video_check_mode_flag): New inline function.
30913 * video/video.c (parse_modespec): New function.
30914 (grub_video_set_mode): Parse flags and keywords.
30916 2010-01-17 Carles Pina i Estany <carles@pina.cat>
30918 * util/misc.c (grub_util_info): Fix the order of the parameters in a
30921 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
30923 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
30925 2010-01-16 Carles Pina i Estany <carles@pina.cat>
30927 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
30929 * util/grub-emu.c (usage): Likewise.
30930 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
30931 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30932 * util/i386/pc/grub-mkimage.c (usage): Likewise.
30933 * util/i386/pc/grub-setup.c (usage): Likewise.
30935 2010-01-16 Carles Pina i Estany <carles@pina.cat>
30937 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
30939 (grub_util_info): Likewise.
30940 (grub_util_error): Likewise.
30941 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
30942 and/or new lines in `grub_util_warna', `grub_util_info',
30943 `grub_util_error' calls.
30944 * util/getroot.c: Likewise.
30945 * util/grub-editenv.c: Likewise.
30946 * util/grub-emu.c: Likewise.
30947 * util/grub-fstest.c: Likewise.
30948 * util/grub-mkdevicemap.c: Likewise.
30949 * util/grub-mkfont.c: Likewise.
30950 * util/grub-mkpasswd-pbkdf2.c: Likewise.
30951 * util/grub-mkrelpath.c: Likewise.
30952 * util/grub-pe2elf.c: Likewise.
30953 * util/grub-probe.c: Likewise.
30954 * util/hostdisk.c: Likewise.
30955 * util/i386/efi/grub-mkimage.c: Likewise.
30956 * util/i386/pc/grub-mkimage.c: Likewise.
30957 * util/i386/pc/grub-setup.c: Likewise.
30958 * util/ieee1275/ofpath.c: Likewise.
30959 * util/mkisofs/eltorito.c: Likewise.
30960 * util/mkisofs/rock.c: Likewise.
30961 * util/mkisofs/write.c: Likewise.
30962 * util/raid.c: Likewise.
30963 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
30964 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30966 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30968 Enable multiboot on non-pc.
30970 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
30971 multiboot.mod and multiboot2.mod to ...
30972 * conf/i386.rmk (pkglib_MODULES): ... here.
30973 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
30975 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
30976 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
30978 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
30979 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
30981 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
30982 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
30984 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
30985 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
30987 (ata_mod_SOURCES): Removed.
30988 (ata_mod_CFLAGS): Likewise.
30989 (ata_mod_LDFLAGS): Likewise.
30990 (relocator_mod_SOURCES): Removed.
30991 (relocator_mod_CFLAGS): Likewise.
30992 (relocator_mod_ASFLAGS): Likewise.
30993 (relocator_mod_LDFLAGS): Likewise.
30995 * include/grub/x86_64/multiboot.h: New file.
30996 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
30999 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31001 Video multiboot support.
31003 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31005 * include/multiboot.h: Resynced with multiboot specification.
31006 * include/multiboot2.h: Likewise.
31007 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31008 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31009 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31010 (HAS_VGA_TEXT): Likewise.
31011 (accepts_video): New variable.
31012 (grub_multiboot_set_accepts_video): New function.
31013 (grub_multiboot_get_mbi_size): Account for video structures.
31014 (set_video_mode): New function.
31015 (retrieve_video_parameters): Likewise.
31016 (grub_multiboot_make_mbi): Fill video fields.
31018 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31022 * include/grub/video.h (grub_video_driver_id): New type.
31023 (grub_video_adapter): New member 'id'. All users updated.
31024 (grub_video_get_driver_id): New proto.
31025 * video/video.c (grub_video_get_driver_id): New function.
31027 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31029 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31032 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31034 * normal/cmdline.c (print_completion): Gettextizze.
31036 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31038 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31040 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31042 * gettext/gettext.c (grub_gettext_translate): Push and pop
31044 (grub_gettext_delete_list): Change comment style.
31045 * kern/err.c (grub_error): Gettextizze.
31046 (grub_fatal): Gettextizze.
31048 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31050 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31051 (grub_linux16_real_boot): ... this.
31052 * kern/i386/loader.S: Likewise.
31053 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31054 (grub_linux16_boot): New function. Switches to text mode and calls
31055 grub_linux16_real_boot().
31057 * loader/i386/bsd.c: Include `<grub/video.h>'.
31058 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31059 text mode before calling grub_unix_real_boot().
31061 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31062 (grub_multiboot_boot): Switch to text mode before calling
31063 grub_relocator32_boot().
31065 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31066 (grub_chainloader_boot): Switch to text mode before calling
31067 grub_chainloader_real_boot().
31069 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31070 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31072 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31075 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31076 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31078 * util/grub.d/00_header.in: Define a "savedefault" function for use
31080 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31082 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31083 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31085 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31086 saved_entry if boot_once is unset.
31087 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31088 previous saved entry (i.e. grub-reboot).
31090 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31092 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31094 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31096 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31098 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31100 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31102 * util/grub-reboot.in: Fix --version output.
31103 * util/grub-set-default.in: Likewise.
31105 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31107 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31110 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31112 * util/grub.d/00_header.in: Quote the value assigned to `default',
31113 in case it contains spaces.
31115 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31117 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31118 `save_default_entry' call from the macosx case to the linux case.
31120 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31121 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31123 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31124 in `chosen' environment variable.
31125 * normal/menu_text.c (get_entry_number): Check if the variable
31126 matches the title of a menu entry.
31127 (run_menu): Pass menu to get_entry_number.
31129 * util/grub-reboot.in: New file.
31130 * util/grub-set-default.in: New file.
31131 * conf/common.rmk (grub-reboot): New utility.
31132 (grub-set-default): New utility.
31134 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31135 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31136 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31137 move it to `saved_entry' for the next boot. Load environment on
31139 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31140 * util/grub.d/10_hurd.in: Likewise.
31141 * util/grub.d/10_linux.in (linux_entry): Likewise.
31142 * util/grub.d/10_windows.in: Likewise.
31143 * util/grub.d/30_os-prober.in: Likewise.
31145 * util/grub-install.in: Create environment block.
31146 * util/i386/efi/grub-install.in: Likewise.
31147 * util/ieee1275/grub-install.in: Likewise.
31148 * util/sparc64/ieee1275/grub-install.in: Likewise.
31150 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31152 Unit testing framework for GRUB.
31154 * Makefile.in: Test framework build rules for 'make check'.
31155 * conf/tests.rmk: Build rules for individual tests and framework.
31157 * include/grub/test.h: Header file for whitebox tests.
31158 * tests/lib/functional_test.c: Framework support for whitebox
31160 * tests/lib/test.c: Common whitebox testing code for unit and
31162 * tests/lib/unit_test.c: Framework support for whitebox unit
31165 * tests/util/grub-shell-tester.in: Support utility for grub-script
31167 * tests/util/grub-shell.in: Utility to execute grub-script
31168 commands in a Qemu instance.
31170 * tests/example_functional_test.c: Example whitebox functional
31172 * tests/example_grub_script_test.in: Example grub-script test.
31173 * tests/example_scripted_test.in: Example scripted test.
31174 * tests/example_unit_test.c: Example whitebox unit test.
31176 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31178 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31179 Add loader/i386/multiboot_mbi.c.
31180 (multiboot2_mod_SOURCES): Likewise.
31181 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31182 (multiboot2_mod_SOURCES): Likewise.
31183 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31184 (grub_multiboot_make_mbi): Likewise.
31185 (grub_multiboot_free_mbi): Likewise.
31186 (grub_multiboot_init_mbi): Likewise.
31187 (grub_multiboot_add_module): Likewise.
31188 (grub_multiboot_set_bootdev): Likewise.
31189 * loader/i386/multiboot.c (mbi): Removed.
31190 (mbi_dest): Likewise.
31191 (alloc_mbi): New variable.
31192 (grub_multiboot_payload_size): Removed. All users updated.
31193 (grub_multiboot_pure_size): New variable.
31194 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31195 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31196 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31197 (grub_fill_multiboot_mmap): Likewise.
31198 (grub_multiboot_get_bootdev): Likewise.
31199 (grub_multiboot): Use multiboot_mbi functions.
31200 * loader/i386/multiboot_mbi.c: New file.
31202 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31204 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31205 it would result in module crash.
31207 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31209 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31210 (grub_ofconsole_getwh): Split to ...
31211 (grub_ofconsole_getwh): ... this.
31212 (grub_ofconsole_dimensions): ...and this.
31213 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31215 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31217 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31219 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31221 * loader/i386/pc/multiboot2.c: Removed stalled file.
31223 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31225 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31226 Reported by: Grégoire Sutre
31228 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31230 * util/misc.c (canonicalize_file_name): New function.
31231 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31232 instead of realpath().
31234 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31236 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31237 and make it clearer that it's optional. Based on confusion
31240 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31242 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31243 in premature implicit newline.
31245 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31247 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31248 which resulted in garbled command line at the end of screen.
31250 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31252 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31253 initialization with similar approach as with other Linux loaders.
31255 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31257 Fix i386-ieee1275 build.
31259 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31260 and grub_term_height() for video_{width,height} initialization.
31262 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31264 Fix grub-emu build.
31266 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31268 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31269 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31271 Support for multiple terminals.
31273 * Makefile.in (pkglib_DATA): terminal.lst.
31274 (terminal.lst): New target.
31275 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31276 (GRUB_MOD_INIT(handler)): Likewise.
31277 (GRUB_MOD_FINI(handler)): Likewise.
31278 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31279 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31280 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31281 (grub_cmd_sleep): Use grub_term_save_pos.
31282 * commands/terminal.c: New file.
31283 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31284 commands/terminal.c and lib/charset.c.
31285 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31286 (pkglib_MODULES): Add terminal.mod.
31287 (terminal_mod_SOURCES): New variable.
31288 (terminal_mod_CFLAGS): Likewise.
31289 (terminal_mod_LDFLAGS): Likewise.
31290 * genhandlerlist.sh: Don't handle terminals.
31291 * genmk.rb: Generate terminal-*.lst.
31292 * genterminallist.sh: New file.
31293 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31294 (grub_is_valid_utf8): Likewise.
31295 (grub_utf8_to_ucs4_alloc): Likewise.
31296 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31297 (grub_menu_register_viewer): Changed argument.
31298 (grub_menu_try_text): New proto.
31299 (grub_gfxmenu_try_hook): New declaration.
31300 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31301 (grub_menu_init_page): Additional argument term.
31302 (grub_normal_init_page): Likewise.
31303 (grub_cmdline_get): Arguments simplified.
31304 (grub_utf8_to_ucs4_alloc): Removed.
31305 (grub_print_ucs4): Additional argument term.
31306 (grub_getstringwidth): Likewise.
31307 (grub_print_message_indented): Likewise.
31308 (grub_menu_text_register_instances): New proto.
31309 (grub_show_menu): Likewise.
31310 (read_terminal_list): Likewise.
31311 (grub_set_more): Likewise.
31312 * include/grub/parser.h: Include handler.h.
31313 * include/grub/reader.h: Rewritten.
31314 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31315 (GRUB_TERM_WIDTH): Changed to function.
31316 (GRUB_TERM_HEIGHT): Likewise.
31317 (GRUB_TERM_BORDER_WIDTH): Likewise.
31318 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31319 (GRUB_TERM_NUM_ENTRIES): Likewise.
31320 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31321 (GRUB_TERM_CURSOR_X): Likewise.
31322 (grub_term_input_class): Likewise.
31323 (grub_term_output_class): Likewise.
31324 (grub_term_outputs_disabled): New declaration.
31325 (grub_term_inputs_disabled): Likewise.
31326 (grub_term_outputs): Likewise.
31327 (grub_term_inputs): Likewise.
31328 (grub_term_register_input): Rewritten.
31329 (grub_term_register_output): Likewise.
31330 (grub_term_unregister_input): Likewise.
31331 (grub_term_unregister_output): Likewise.
31332 (FOR_ACTIVE_TERM_INPUTS): New macro.
31333 (FOR_DISABLED_TERM_INPUTS): Likewise.
31334 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31335 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31336 * include/grub/terminfo.h: Add oterm argument to all protypes.
31337 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31338 Use grub_rescue_run.
31339 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31341 * kern/reader.c: Removed. All users updated.
31342 * kern/rescue_reader.c (grub_rescue_init): Removed.
31343 (grub_rescue_reader): Likewise.
31344 (grub_register_rescue_reader): Likewise.
31345 (grub_rescue_run): New function based on kern/reader.c.
31346 * kern/term.c: Adapted for multiterm.
31347 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31348 (grub_is_valid_utf8): Likewise.
31349 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31350 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31352 * loader/i386/linux.c (grub_linux_boot): Likewise.
31353 * normal/auth.c (grub_username_get): New function.
31354 (grub_auth_check_authentication): Use grub_username_get.
31355 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31356 * normal/color.c: Adapt for multiterm.
31357 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31358 (grub_normal_init_page): Additional argument term.
31359 (read_lists): Call read_terminal_lists.
31360 (grub_enter_normal_mode): Call grub_cmdline_run.
31361 Handle grub_normal_exit_level.
31362 (grub_cmd_normal): Make reentrant.
31363 (grub_cmd_normal_exit): New function.
31364 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31365 * normal/menu.c: Adapt for multiterm.
31366 * normal/menu_entry.c: Likewise.
31367 * normal/menu_text.c: Likewise.
31368 * normal/menu_viewer.c: Removed. All users updated.
31369 * normal/term.c: New file.
31370 * util/console.c: Change order of includes to workaround a bug in
31372 * term/terminfo.c: New argument oterm on all exported functions.
31374 * util/grub-editenv.c (grub_term_input_class): Removed.
31375 (grub_term_output_class): Likewise.
31377 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31379 Make loader output a bit more user-friendly.
31381 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31382 is being loaded. Likewise for the Hurd.
31384 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31385 that kernel of FreeBSD ${version} is being loaded.
31387 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31389 (grub_cmd_initrd): Likewise.
31390 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31391 that Linux ${version} is being loaded. Likewise for initrd.
31393 2010-01-09 Carles Pina i Estany <carles@pina.cat>
31395 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31397 2010-01-08 Carles Pina i Estany <carles@pina.cat>
31399 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31400 (GRUB_MOD_INIT): Gettextizze.
31401 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31402 (GRUB_MOD_INIT): Gettextizze.
31403 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31404 (grub_cmd_linux): Capitalise Linux.
31405 (GRUB_MOD_INIT): Gettextizze.
31406 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31407 (grub_cmd_linux): Capitalise Linux.
31408 (GRUB_MOD_INIT): Gettextizze.
31409 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31410 (grub_cmd_linux): Capitalise Linux.
31411 (GRUB_MOD_INIT): Gettextizze.
31412 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31413 (GRUB_MOD_INIT): Gettextizze.
31414 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31415 (grub_cmd_linux): Capitalise Linux.
31416 (GRUB_MOD_INIT): Gettextizze.
31417 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31418 (grub_cpu_xnu_init): Gettextizze.
31419 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31420 (GRUB_MOD_INIT): Gettextizze.
31421 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31422 (GRUB_MOD_INIT): Gettextizze.
31423 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31424 (grub_linux_load64): Capitalise Linux.
31425 (GRUB_MOD_INIT): Gettextizze.
31426 * loader/xnu.c: Include `<grub/i18n.h>'.
31427 (GRUB_MOD_INIT): Gettextizze.
31428 * po/POTFILES: Add `loader/efi/appleloader.c',
31429 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31430 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31431 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31432 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31433 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31434 and `loader/xnu.c'.
31436 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31438 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31440 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31442 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31443 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
31444 * util/mkisofs/mkisofs.c (main): Readjust --version output.
31446 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31448 Reset Multiboot 2 support. New loader implements the draft in
31449 /branches/multiboot2 and shares as much code as possible with the
31450 production Multiboot 1 implementation.
31452 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
31453 * loader/multiboot2.c: Likewise.
31454 * loader/i386/multiboot_helper.S: Likewise.
31455 * include/multiboot2.h: Replace with latest version from the draft
31456 in /branches/multiboot2.
31458 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
31459 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
31460 and `loader/multiboot2.c'.
31461 (pkglib_MODULES): Add `multiboot2.mod'.
31462 (multiboot2_mod_SOURCES): New variable.
31463 (multiboot2_mod_LDFLAGS): Likewise.
31464 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
31466 * conf/i386-pc.rmk: Likewise.
31468 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31469 (multiboot_mod_SOURCES): Remove variable.
31470 (multiboot_mod_LDFLAGS): Likewise.
31471 (multiboot_mod_CFLAGS): Likewise.
31473 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
31474 `<multiboot2.h>' instead of `<multiboot.h>'.
31475 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
31476 (MULTIBOOT_HEADER_MAGIC): New macros.
31478 * loader/multiboot_loader.c (module_version_status): Remove variable.
31479 (find_multi_boot2_header): Remove function.
31480 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
31481 logic. Always check for the Multiboot version we're compiling for.
31482 (grub_cmd_module_loader): Likewise.
31483 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
31484 command instead of `multiboot'.
31486 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31488 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
31489 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
31492 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31493 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31495 Fix breakage introduced with previous commit.
31497 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
31499 * normal/handler.c (read_handler_list): Revert part of previous commit
31500 affecting this file.
31501 * normal/main.c (read_lists): Move read_handler_list() call back to ...
31502 (grub_normal_execute): ... here.
31504 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31506 Merge prefix-redefinition-fix branch.
31508 * normal/autofs.c (read_fs_list): Make function capable of being
31509 run multiple times, gracefuly replacing the previous data
31511 * normal/dyncmd.c (read_command_list): Likewise.
31512 * normal/handler.c (read_handler_list): Likewise.
31513 * normal/main.c (read_lists): New function. Calls all the
31514 list reading functions.
31515 (grub_normal_execute): Use read_lists() instead of calling all
31516 list reading functions explicitly. Register read_lists() as a
31517 variable hook attached to ${prefix}.
31519 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31521 Merge crypto branch.
31523 * Makefile.in (pkglib_DATA): Add crypto.lst.
31524 (crypto.lst): New target.
31525 * commands/hashsum.c: New file.
31526 * commands/password.c (check_password): Use grub_crypto_memcmp.
31527 * commands/password_pbkdf2.c: New file.
31528 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
31529 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
31530 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
31531 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
31532 -I$(srcdir)/lib/libgcrypt_wrap.
31533 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
31534 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
31535 password_pbkdf2.mod.
31536 (crypto_mod_SOURCES): New variable.
31537 (crypto_mod_CFLAGS): Likewise.
31538 (crypto_mod_LDFLAGS): Likewise.
31539 (hashsum_mod_SOURCES): New variable.
31540 (hashsum_mod_CFLAGS): Likewise.
31541 (hashsum_mod_LDFLAGS): Likewise.
31542 (pbkdf2_mod_SOURCES): New variable.
31543 (pbkdf2_mod_CFLAGS): Likewise.
31544 (pbkdf2_mod_LDFLAGS): Likewise.
31545 (password_pbkdf2_mod_SOURCES): New variable.
31546 (password_pbkdf2_mod_CFLAGS): Likewise.
31547 (password_pbkdf2_mod_LDFLAGS): Likewise.
31548 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
31549 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
31550 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
31551 Include conf/gcry.rmk.
31552 * include/grub/auth.h: Rewritten.
31553 * include/grub/crypto.h: New file.
31554 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
31555 * include/grub/normal.h (read_crypto_list): New prototype.
31556 * lib/crypto.c: New file.
31557 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
31558 * lib/pbkdf2.c: Likewise.
31559 * normal/auth.c (grub_auth_strcmp): Removed.
31560 (grub_iswordseparator): Likewise.
31561 (grub_auth_strword): Likewise.
31562 (is_authenticated): Use grub_strword.
31563 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
31564 and grub_strword. Pass entered password to authentication callback.
31565 * normal/crypto.c: New file.
31566 * normal/main.c: Call read_crypto_list.
31567 * util/grub-mkpasswd-pbkdf2.c: New file.
31568 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
31570 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
31572 Fix descent and ascent calculation.
31574 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
31575 (options): New option "asce".
31577 (add_char): Ignore invalid glyphs for descent calculation.
31578 Calculate ascent from actual content.
31579 (print_glyphs): Use 'asce'.
31580 (write_font): Likewise. Allow ascent override.
31581 (main): Handle "asce" option.
31583 2010-01-06 Carles Pina i Estany <carles@pina.cat>
31585 * kern/err.c: Include `<grub/i18n.h>'.
31586 (grub_print_error): Add full stop. Gettextizze.
31587 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
31588 (grub_bsd_load_elf): Capitalise ELF.
31589 (grub_cmd_freebsd_loadenv): Add `s' in error string.
31590 (grub_cmd_freebsd_module): Likewise.
31591 (grub_cmd_freebsd_module_elf): Likewise.
31592 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
31594 2010-01-06 Carles Pina i Estany <carles@pina.cat>
31596 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
31597 * commands/search_file.c (HELP_MESSAGE): New macro.
31598 * commands/search_label.c (HELP_MESSAGE): Likewise.
31599 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
31600 * po/POTFILES: Add `commands/search_file.c',
31601 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
31602 `commands/search.c'.
31604 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
31606 * config.rpath: Update from Gnulib.
31608 2010-01-05 Yves Blusseau <blusseau@zetam.org>
31610 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
31612 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
31614 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
31616 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31618 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
31619 arguments to fread so that we get a return value in bytes, rather
31620 than something that will normally be rounded down to 0.
31621 Adjust error handling to avoid producing garbage when size_t is not
31622 the same size as long long.
31624 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31626 * util/mkisofs/write.c (padblock_write): Check return value of
31629 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
31631 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
31634 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
31636 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
31638 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
31639 instead of manual alignment.
31640 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
31641 verbose). Avoid attempts to read past end of the device
31642 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
31643 but GRUB_DISK_CACHE_SIZE may exceed that).
31645 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
31647 * commands/crc.c (grub_cmd_crc): Abort on read errors.
31648 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
31651 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
31653 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
31655 (grub_efi_piwg_device_path): New structure
31656 (grub_efi_piwg_device_path_t): New type.
31657 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
31658 (devpath_1): Transform to a structure. All users updated.
31659 (devpath_2): Likewise.
31660 (devpath_3): Likewise.
31661 (devpath_4): Likewise.
31662 (devpath_5): Likewise.
31664 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
31666 * loader/efi/appleloader.c: Restored. Update all users.
31668 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31670 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
31672 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
31673 (struct boot_blocklist): Move from here ...
31674 * include/grub/i386/pc/boot.h [ASM_FILE]
31675 (struct grub_boot_blocklist): ... to here. Update all users.
31676 (setup): Only initialize `start' member of `first_block'
31677 structure. Add assert() calls to verify the other members.
31679 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
31680 (generate_image): Fix broken blocklist length initialization.
31681 Add assert() call to verify blocklist `segment' field.
31683 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31685 * loader/efi/appleloader.c: Remove. Update all users.
31687 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31689 * boot/i386/pc/boot.S: Update copyright year.
31690 * boot/i386/pc/cdboot.S: Likewise.
31691 * boot/i386/pc/diskboot.S: Likewise.
31692 * boot/i386/pc/lnxboot.S: Likewise.
31693 * boot/i386/pc/pxeboot.S: Likewise.
31694 * bus/pci.c: Likewise.
31695 * commands/cmp.c: Likewise.
31696 * commands/help.c: Likewise.
31697 * commands/hexdump.c: Likewise.
31698 * commands/i386/pc/halt.c: Likewise.
31699 * commands/i386/pc/play.c: Likewise.
31700 * commands/i386/pc/vbeinfo.c: Likewise.
31701 * commands/ls.c: Likewise.
31702 * commands/test.c: Likewise.
31703 * disk/dmraid_nvidia.c: Likewise.
31704 * disk/i386/pc/biosdisk.c: Likewise.
31705 * disk/ieee1275/nand.c: Likewise.
31706 * disk/ieee1275/ofdisk.c: Likewise.
31707 * disk/lvm.c: Likewise.
31708 * disk/raid.c: Likewise.
31709 * disk/raid6_recover.c: Likewise.
31710 * disk/scsi.c: Likewise.
31711 * fs/affs.c: Likewise.
31712 * fs/cpio.c: Likewise.
31713 * fs/ext2.c: Likewise.
31714 * fs/hfs.c: Likewise.
31715 * fs/iso9660.c: Likewise.
31716 * fs/ntfs.c: Likewise.
31717 * fs/sfs.c: Likewise.
31718 * fs/udf.c: Likewise.
31719 * fs/ufs.c: Likewise.
31720 * fs/xfs.c: Likewise.
31721 * gencmdlist.sh: Likewise.
31722 * genmk.rb: Likewise.
31723 * include/grub/disk.h: Likewise.
31724 * include/grub/efi/api.h: Likewise.
31725 * include/grub/efi/efi.h: Likewise.
31726 * include/grub/efi/pe32.h: Likewise.
31727 * include/grub/elf.h: Likewise.
31728 * include/grub/fs.h: Likewise.
31729 * include/grub/i386/at_keyboard.h: Likewise.
31730 * include/grub/i386/pc/memory.h: Likewise.
31731 * include/grub/i386/pc/vbe.h: Likewise.
31732 * include/grub/i386/pci.h: Likewise.
31733 * include/grub/i386/tsc.h: Likewise.
31734 * include/grub/ieee1275/ieee1275.h: Likewise.
31735 * include/grub/ntfs.h: Likewise.
31736 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
31737 * include/grub/sparc64/libgcc.h: Likewise.
31738 * include/grub/symbol.h: Likewise.
31739 * include/grub/types.h: Likewise.
31740 * include/multiboot2.h: Likewise.
31741 * io/gzio.c: Likewise.
31742 * kern/device.c: Likewise.
31743 * kern/disk.c: Likewise.
31744 * kern/efi/efi.c: Likewise.
31745 * kern/efi/mm.c: Likewise.
31746 * kern/elf.c: Likewise.
31747 * kern/file.c: Likewise.
31748 * kern/i386/dl.c: Likewise.
31749 * kern/i386/pc/init.c: Likewise.
31750 * kern/i386/pc/startup.S: Likewise.
31751 * kern/ieee1275/ieee1275.c: Likewise.
31752 * kern/ieee1275/init.c: Likewise.
31753 * kern/main.c: Likewise.
31754 * kern/mm.c: Likewise.
31755 * kern/powerpc/dl.c: Likewise.
31756 * kern/sparc64/dl.c: Likewise.
31757 * kern/x86_64/dl.c: Likewise.
31758 * lib/hexdump.c: Likewise.
31759 * loader/efi/appleloader.c: Likewise.
31760 * loader/i386/ieee1275/linux.c: Likewise.
31761 * loader/i386/pc/chainloader.c: Likewise.
31762 * loader/i386/pc/linux.c: Likewise.
31763 * loader/i386/pc/multiboot2.c: Likewise.
31764 * loader/ieee1275/multiboot2.c: Likewise.
31765 * loader/multiboot2.c: Likewise.
31766 * loader/multiboot_loader.c: Likewise.
31767 * loader/powerpc/ieee1275/linux.c: Likewise.
31768 * normal/completion.c: Likewise.
31769 * normal/menu_entry.c: Likewise.
31770 * partmap/apple.c: Likewise.
31771 * util/grub.d/10_hurd.in: Likewise.
31772 * util/hostfs.c: Likewise.
31773 * video/readers/png.c: Likewise.
31775 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
31777 * include/grub/misc.h (GNUC_PREREQ): New macro.
31778 (ATTRIBUTE_ERROR): New macro.
31779 * include/grub/list.h (grub_bad_type_cast_real): Use
31782 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31784 * normal/menu_text.c (print_message): Change messages.
31786 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31788 * normal/menu_entry.c (store_completion): Gettextizze.
31790 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31792 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
31794 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31796 * po/POTFILES: Sort correctly.
31798 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31800 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
31801 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
31802 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
31804 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
31805 summary. Gettextizze the strings.
31806 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
31807 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
31808 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
31810 (GRUB_MOD_INIT): Remove command name from summary.
31811 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
31813 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
31814 * term/i386/pc/serial.c (options): Add full stops.
31815 (GRUB_MOD_INIT): Remove command name from the summary.
31817 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31819 * commands/acpi.c: Gettextizze help strings and/or options. Include
31820 `grub/i18n.h' if needed.
31821 * commands/blocklist.c: Likewise.
31822 * commands/boot.c: Likewise.
31823 * commands/cat.c: Likewise.
31824 * commands/cmp.c: Likewise.
31825 * commands/configfile.c: Likewise.
31826 * commands/crc.c: Likewise.
31827 * commands/date.c: Likewise.
31828 * commands/echo.c: Likewise.
31829 * commands/efi/fixvideo.c: Likewise.
31830 * commands/efi/loadbios.c: Likewise.
31831 * commands/gptsync.c: Likewise.
31832 * commands/halt.c: Likewise.
31833 * commands/handler.c: Likewise.
31834 * commands/hdparm.c: Likewise.
31835 * commands/hexdump.c: Likewise.
31836 * commands/i386/cpuid.c: Likewise.
31837 * commands/i386/pc/drivemap.c: Likewise.
31838 * commands/i386/pc/halt.c: Likewise.
31839 * commands/i386/pc/pxecmd.c: Likewise.
31840 * commands/i386/pc/vbeinfo.c: Likewise.
31841 * commands/i386/pc/vbetest.c: Likewise.
31842 * commands/ieee1275/suspend.c: Likewise.
31843 * commands/keystatus.c: Likewise.
31844 * commands/loadenv.c: Likewise.
31845 * commands/ls.c: Likewise.
31846 * commands/lsmmap.c: Likewise.
31847 * commands/lspci.c: Likewise.
31848 * commands/memrw.c: Likewise.
31849 * commands/minicmd.c: Likewise.
31850 * commands/parttool.c: Likewise.
31851 * commands/password.c: Likewise.
31852 * commands/probe.c: Likewise.
31853 * commands/read.c: Likewise.
31854 * commands/reboot.c: Likewise.
31855 * commands/search.c: Likewise.
31856 * commands/sleep.c: Likewise.
31857 * commands/test.c: Likewise.
31858 * commands/true.c: Likewise.
31859 * commands/usbtest.c: Likewise.
31860 * commands/videotest.c: Likewise.
31861 * commands/xnu_uuid.c: Likewise.
31862 * disk/loopback.c: Likewise.
31863 * hello/hello.c: Likewise.
31864 * loader/i386/bsd.c: Likewise.
31865 * term/i386/pc/serial.c: Likewise.
31866 * po/POTFILES: Add new files.
31868 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
31870 * term/i386/pc/at_keyboard.c
31871 (keyboard_controller_wait_untill_ready): Rename to ...
31872 (keyboard_controller_wait_until_ready): ... this. Update all users.
31874 2010-01-01 Carles Pina i Estany <carles@pina.cat>
31876 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
31877 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
31878 string using string width.
31879 * normal/menu_text.c (grub_print_message_indented): Use
31880 grub_print_spaces and not print_spaces.
31881 (print_timeout): Likewise.
31882 (print_spaces): Move to...
31883 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
31885 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
31887 Import from Gnulib.
31889 * gnulib/getdelim.c: New file.
31890 * gnulib/getline.c: Likewise.
31892 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
31894 * include/grub/list.h (grub_assert_fail): Removed.
31895 (grub_bad_type_cast_real): New function.
31896 (grub_bad_type_cast): New macro.
31897 (GRUB_AS_LIST): Use grub_bad_type_cast.
31898 (GRUB_AS_LIST_P): Likewise.
31899 (GRUB_AS_NAMED_LIST): Likewise.
31900 (GRUB_AS_NAMED_LIST_P): Likewise.
31901 (GRUB_AS_PRIO_LIST): Likewise.
31902 (GRUB_AS_PRIO_LIST_P): Likewise.
31903 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
31905 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
31907 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
31910 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
31912 * configure.ac: Check for TARGET_CFLAGS initialization before we
31913 initialize it ourselves (sigh).
31914 Move a few modifications to TARGET_CFLAGS to be unconditional
31915 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
31918 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
31919 * term/i386/pc/at_keyboard.c
31920 (keyboard_controller_wait_untill_ready): Likewise.
31921 (keyboard_controller_led): Rename `led_status' paramter to avoid
31924 2009-12-28 Carles Pina i Estany <carles@pina.cat>
31926 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
31929 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31931 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
31933 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31935 * normal/menu_text.c (grub_print_message_indented): Prevent
31936 past-the-end-of-array dereference.
31938 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31940 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
31941 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
31943 2009-12-27 Carles Pina i Estany <carles@pina.cat>
31945 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
31946 * normal/main.c (grub_normal_read_line): Remove a space from the
31949 2009-12-27 Carles Pina i Estany <carles@pina.cat>
31951 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
31952 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31953 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
31954 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
31955 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31956 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31957 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31959 2009-12-26 Carles Pina i Estany <carles@pina.cat>
31961 * video/readers/jpeg.c (cmd): Declare.
31962 (grub_cmd_jpegtest): Use `grub_command_t' type.
31963 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31965 (GRUB_MOD_FINI): Use `cmd' to unregister.
31966 * video/readers/png.c (cmd): Declare.
31967 (grub_cmd_pngtest): Use `grub_command_t' type.
31968 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31970 (GRUB_MOD_FINI): Use `cmd' to unregister.
31971 * video/readers/tga.c (cmd): Declare.
31972 (grub_cmd_tgatest): Use `grub_command_t' type.
31973 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31975 (GRUB_MOD_FINI): Use `cmd' to unregister.
31977 2009-12-26 Carles Pina i Estany <carles@pina.cat>
31979 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
31981 * kern/corecmd.c (grub_register_core_commands): Likewise.
31982 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
31983 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
31984 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
31985 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31986 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
31987 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
31988 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
31989 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
31990 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31991 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31992 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31993 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
31994 * normal/handler.c (insert_handler): Likewise.
31995 * normal/main.c (GRUB_MOD_INIT): Likewise.
31996 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
31998 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32000 * commands/help.c (grub_cmd_help): Print the command name before the
32002 (GRUB_MOD_INIT): Remove command name from the summary.
32003 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32005 * lib/arg.c (find_long): Print the command name before the summary.
32006 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32008 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32009 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32010 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32011 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32012 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32013 * commands/date.c (GRUB_MOD_INIT): Likewise.
32014 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32015 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32016 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32017 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32018 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32019 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32020 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32021 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32022 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32023 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32024 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32025 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32026 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32027 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32028 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32029 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32030 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32031 * commands/password.c (GRUB_MOD_INIT): Likewise.
32032 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32033 * commands/read.c (GRUB_MOD_INIT): Likewise.
32034 * commands/search.c (GRUB_MOD_INIT): Likewise.
32035 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32036 * commands/test.c (GRUB_MOD_INIT): Likewise.
32037 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32038 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32039 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32040 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32041 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32042 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32043 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32044 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32045 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32046 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32047 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32048 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32049 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32050 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32052 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32054 Use search command for preliminar UUID search.
32056 * commands/search.c: Split into ...
32057 * commands/search_wrap.c: ...this
32058 * commands/search.c: ...and this.
32059 * commands/search_file.c: New file.
32060 * commands/search_label.c: New file.
32061 * commands/search_uuid.c: New file.
32062 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32063 Add commands/search_wrap.c, commands/search_file.c,
32064 commands/search_label.c and commands/search_uuid.c.
32065 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32066 (search_mod_SOURCES): Set to commands/search_wrap.c.
32067 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32069 (search_fs_file_mod_SOURCES): New variable.
32070 (search_fs_file_mod_CFLAGS): Likewise.
32071 (search_fs_file_mod_LDFLAGS): Likewise.
32072 (search_label_mod_SOURCES): Likewise.
32073 (search_label_mod_CFLAGS): Likewise.
32074 (search_label_mod_LDFLAGS): Likewise.
32075 (search_fs_uuid_mod_SOURCES): New variable.
32076 (search_fs_uuid_mod_CFLAGS): Likewise.
32077 (search_fs_uuid_mod_LDFLAGS): Likewise.
32078 (fs_file_mod_SOURCES): Removed.
32079 (fs_file_mod_CFLAGS): Likewise.
32080 (fs_file_mod_LDFLAGS): Likewise.
32081 (fs_uuid_mod_SOURCES): Removed.
32082 (fs_uuid_mod_CFLAGS): Likewise.
32083 (fs_uuid_mod_LDFLAGS): Likewise.
32084 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32085 Set to util/grub-install.in.
32086 * disk/fs_file.c: Removed.
32087 * disk/fs_uuid.c: Likewise.
32088 * include/grub/search.h: New file.
32089 * util/grub-install.in: Handle sparc64.
32090 Create and use load.cfg.
32091 * util/sparc64/ieee1275/grub-install.in: Removed.
32093 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32095 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32096 Ignore return status if CF is cleared.
32097 (grub_biosdisk_get_diskinfo_standard): Likewise.
32099 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32101 * term/i386/pc/at_keyboard.c
32102 (keyboard_controller_wait_untill_ready): New function.
32103 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32104 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32105 for keyboard polling, rather than duplicate the same loop. This
32106 saves a few bytes in code size.
32108 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32110 Support for (pxe[:server[:gateway]]) syntax and
32111 use environment variable for PXE.
32113 * commands/i386/pc/pxecmd.c (options): Removed.
32114 (print_ip): Removed.
32115 (grub_cmd_pxe): Removed
32116 (grub_cmd_pxe_unload): New function.
32117 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32118 (grub_pxe_your_ip): Made static.
32119 (grub_pxe_default_server_ip): Likewise.
32120 (grub_pxe_default_gateway_ip): Likewise.
32121 (grub_pxe_blksize): Likewise.
32122 (parse_ip): New function.
32123 (grub_pxe_open): Support server and gateway specification.
32124 (grub_pxe_close): Free disk->data.
32125 (grub_pxefs_open): Use disk->data.
32126 (grub_pxefs_read): Likewise.
32127 (grub_env_write_readonly): New function.
32128 (set_mac_env): Likewise.
32129 (set_env_limn_ro): Likewise.
32130 (parse_dhcp_vendor): Likewise.
32131 (grub_pxe_detect): Set the environment variables.
32132 (set_ip_env): New function.
32133 (write_ip_env): Likewise.
32134 (grub_env_write_pxe_default_server): Likewise.
32135 (grub_env_write_pxe_default_gateway): Likewise.
32136 (grub_env_write_pxe_blocksize): Likewise.
32137 (GRUB_MOD_INIT(pxe)): Set environment variables.
32138 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32139 (grub_pxe_mac_addr_t): ... this. All users updated.
32140 (grub_pxe_your_ip): Removed.
32141 (grub_pxe_server_ip): Likewise.
32142 (grub_pxe_gateway_ip): Likewise.
32143 (grub_pxe_blksize): Likewise.
32145 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32147 * commands/help.c: Include `<grub/i18n.h>'.
32148 (grub_cmd_help): Gettextizze.
32149 (GRUB_MOD_INIT): Likewise.
32150 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32151 (GRUB_MOD_INIT): Gettextizze.
32152 * commands/search.c: Include `<grub/i18n.h>'.
32153 (options): Gettextizze.
32154 (GRUB_MOD_INIT): Gettextizze.
32155 * lib/arg.c: Include `<grub/i18n.h>'.
32156 (help_options): Gettextizze.
32157 (find_long): Likewise.
32158 (grub_arg_show_help): Likewise.
32159 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32160 (read_command_list): Gettextizze.
32161 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32162 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32164 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32166 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32167 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32168 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32169 (led_status): New variable.
32170 (keyboard_controller_led): New function.
32171 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32172 update led status for caps lock, num lock and scroll lock.
32174 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32176 * util/hostdisk.c (open_device): Fix a comment.
32178 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32180 * util/grub-install.in (host_os): New variable.
32181 * util/i386/efi/grub-install.in (host_os): Likewise.
32183 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32185 * util/mkisofs/write.c (padblock_write): Abort when given an
32186 excedingly large embed image, instead of silently truncating it.
32188 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32190 * include/multiboot.h: Indentation fixes.
32192 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32194 * include/multiboot.h (struct multiboot_aout_symbol_table)
32195 (struct multiboot_elf_section_header_table): New structure
32196 declarations (stolen from GRUB Legacy).
32197 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32200 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32201 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32204 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32206 * include/multiboot.h: Make comments src2texi-friendly.
32208 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32210 For consistency with [multiboot]/docs/boot.S.
32212 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32213 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32214 (MULTIBOOT_MAGIC2): Rename from this ...
32215 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32217 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32219 * include/multiboot.h: Remove `<grub/types.h>'.
32220 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32221 types. Update all users.
32223 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32225 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32226 `couldn't' and `can not' by `cannot'.
32227 * commands/i386/pc/drivemap.c: Likewise.
32228 * disk/ata.c: Likewise.
32229 * disk/ieee1275/nand.c: Likewise.
32230 * fs/affs.c: Likewise.
32231 * fs/fat.c: Likewise.
32232 * fs/hfs.c: Likewise.
32233 * fs/hfsplus.c: Likewise.
32234 * fs/iso9660.c: Likewise.
32235 * fs/jfs.c: Likewise.
32236 * fs/minix.c: Likewise.
32237 * fs/reiserfs.c: Likewise.
32238 * fs/sfs.c: Likewise.
32239 * fs/udf.c: Likewise.
32240 * fs/ufs.c: Likewise.
32241 * fs/xfs.c: Likewise.
32242 * loader/powerpc/ieee1275/linux.c: Likewise.
32243 * loader/sparc64/ieee1275/linux.c: Likewise.
32244 * util/grub-probe.c: Likewise.
32245 * util/misc.c: Likewise.
32247 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32249 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32251 * commands/acpi.c: Likewise.
32252 * commands/blocklist.c: Likewise.
32253 * commands/efi/loadbios.c: Likewise.
32254 * commands/i386/pc/drivemap.c: Likewise.
32255 * commands/loadenv.c: Likewise.
32256 * commands/memrw.c: Likewise.
32257 * commands/password.c: Likewise.
32258 * commands/videotest.c: Likewise.
32259 * disk/ata.c: Likewise.
32260 * disk/ata_pthru.c: Likewise.
32261 * disk/dmraid_nvidia.c: Likewise.
32262 * disk/ieee1275/nand.c: Likewise.
32263 * disk/ieee1275/ofdisk.c: Likewise.
32264 * disk/loopback.c: Likewise.
32265 * disk/lvm.c: Likewise.
32266 * disk/mdraid_linux.c: Likewise.
32267 * disk/raid.c: Likewise.
32268 * disk/raid6_recover.c: Likewise.
32269 * disk/scsi.c: Likewise.
32270 * efiemu/main.c: Likewise.
32271 * efiemu/mm.c: Likewise.
32272 * efiemu/pnvram.c: Likewise.
32273 * efiemu/symbols.c: Likewise.
32274 * font/font.c: Likewise.
32275 * fs/cpio.c: Likewise.
32276 * fs/hfsplus.c: Likewise.
32277 * fs/iso9660.c: Likewise.
32278 * fs/jfs.c: Likewise.
32279 * fs/minix.c: Likewise.
32280 * fs/ntfs.c: Likewise.
32281 * fs/ntfscomp.c: Likewise.
32282 * fs/reiserfs.c: Likewise.
32283 * fs/ufs.c: Likewise.
32284 * fs/xfs.c: Likewise.
32285 * gettext/gettext.c: Likewise.
32286 * include/grub/auth.h: Likewise.
32287 * kern/elf.c: Likewise.
32288 * kern/file.c: Likewise.
32289 * kern/ieee1275/init.c: Likewise.
32290 * kern/ieee1275/mmap.c: Likewise.
32291 * kern/ieee1275/openfw.c: Likewise.
32292 * kern/powerpc/dl.c: Likewise.
32293 * kern/sparc64/dl.c: Likewise.
32294 * lib/arg.c: Likewise.
32295 * loader/i386/bsd.c: Likewise.
32296 * loader/i386/bsdXX.c: Likewise.
32297 * loader/i386/efi/linux.c: Likewise.
32298 * loader/i386/efi/xnu.c: Likewise.
32299 * loader/i386/ieee1275/linux.c: Likewise.
32300 * loader/i386/linux.c: Likewise.
32301 * loader/i386/multiboot.c: Likewise.
32302 * loader/i386/pc/linux.c: Likewise.
32303 * loader/i386/pc/multiboot2.c: Likewise.
32304 * loader/i386/xnu.c: Likewise.
32305 * loader/ieee1275/multiboot2.c: Likewise.
32306 * loader/macho.c: Likewise.
32307 * loader/machoXX.c: Likewise.
32308 * loader/multiboot2.c: Likewise.
32309 * loader/multiboot_loader.c: Likewise.
32310 * loader/powerpc/ieee1275/linux.c: Likewise.
32311 * loader/sparc64/ieee1275/linux.c: Likewise.
32312 * loader/xnu.c: Likewise.
32313 * loader/xnu_resume.c: Likewise.
32314 * mmap/i386/pc/mmap.c: Likewise.
32315 * normal/menu_viewer.c: Likewise.
32316 * partmap/acorn.c: Likewise.
32317 * partmap/amiga.c: Likewise.
32318 * partmap/apple.c: Likewise.
32319 * script/lexer.c: Likewise.
32320 * term/gfxterm.c: Likewise.
32321 * term/i386/pc/serial.c: Likewise.
32322 * term/i386/pc/vga.c: Likewise.
32323 * term/ieee1275/ofconsole.c: Likewise.
32324 * term/terminfo.c: Likewise.
32325 * video/bitmap.c: Likewise.
32326 * video/efi_gop.c: Likewise.
32327 * video/efi_uga.c: Likewise.
32328 * video/fb/video_fb.c: Likewise.
32329 * video/i386/pc/vbe.c: Likewise.
32330 * video/readers/tga.c: Likewise.
32331 * video/video.c: Likewise.
32333 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32335 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32336 * commands/lspci.c: Likewise.
32337 * commands/probe.c: Likewise.
32338 * commands/xnu_uuid.c: Likewise.
32339 * conf/i386-coreboot.rmk: Likewise.
32340 * conf/i386-efi.rmk: Likewise.
32341 * conf/i386-ieee1275.rmk: Likewise.
32342 * conf/i386-pc.rmk: Likewise.
32343 * conf/powerpc-ieee1275.rmk: Likewise.
32344 * conf/sparc64-ieee1275.rmk: Likewise.
32345 * conf/x86_64-efi.rmk: Likewise.
32346 * fs/i386/pc/pxe.c: Likewise.
32347 * gettext/gettext.c: Likewise.
32348 * include/grub/efi/graphics_output.h: Likewise.
32349 * include/grub/i386/pc/memory.h: Likewise.
32350 * kern/env.c: Likewise.
32351 * kern/i386/qemu/startup.S: Likewise.
32352 * lib/i386/pc/biosnum.c: Likewise.
32353 * lib/i386/relocator.c: Likewise.
32354 * lib/i386/relocator_asm.S: Likewise.
32355 * lib/relocator.c: Likewise.
32356 * loader/i386/bsd.c: Likewise.
32357 * loader/i386/multiboot.c: Likewise.
32358 * loader/i386/pc/chainloader.c: Likewise.
32359 * loader/i386/xnu.c: Likewise.
32360 * loader/xnu.c: Likewise.
32361 * normal/main.c: Likewise.
32362 * normal/menu_text.c: Likewise.
32363 * util/getroot.c: Likewise.
32364 * util/grub-mkconfig_lib.in: Likewise.
32365 * util/grub.d/00_header.in: Likewise.
32366 * util/i386/pc/grub-mkimage.c: Likewise.
32367 * util/mkisofs/eltorito.c: Likewise.
32368 * util/mkisofs/exclude.h: Likewise.
32369 * util/mkisofs/hash.c: Likewise.
32370 * util/mkisofs/iso9660.h: Likewise.
32371 * util/mkisofs/joliet.c: Likewise.
32372 * util/mkisofs/mkisofs.c: Likewise.
32373 * util/mkisofs/mkisofs.h: Likewise.
32374 * util/mkisofs/multi.c: Likewise.
32375 * util/mkisofs/name.c: Likewise.
32376 * util/mkisofs/rock.c: Likewise.
32377 * util/mkisofs/tree.c: Likewise.
32378 * util/mkisofs/write.c: Likewise.
32379 * video/efi_gop.c: Likewise.
32381 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32383 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32386 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32388 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32389 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32391 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32393 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32394 (GRUB_MOD_INIT(memrw)): Update help line.
32396 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32398 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32399 Use grub_extcmd_t. All users updated.
32400 (options): New variable.
32401 (grub_cmd_read): Restructure for readability. Support "-v" option.
32402 (grub_cmd_write): Restructure for readability.
32404 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32406 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32408 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32410 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32411 with the actual contents of the correspondending make variable.
32412 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32413 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32414 specifying `*.lst' and `efiemu??.o'
32416 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32418 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32419 after function name.
32420 Noticed by Rene Engelhard <rene@debian.org>.
32422 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32424 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32425 (options): New variable.
32426 (iospace): Likewise.
32427 (grub_lspci_iter): List IO spaces if "-i" was given.
32428 (grub_cmd_lspci): Parse options.
32429 (GRUB_MOD_INIT(lspci)): Use extcmd.
32430 (GRUB_MOD_FINI(lspci)): Likewise.
32432 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32434 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32435 `function' keyword.
32436 Patch by Tony Mancill <tmancill@debian.org>.
32438 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32440 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32441 (grub_uhci_portstatus): Likewise.
32442 (grub_uhci_portstatus): Add necessary delay.
32443 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
32445 2009-12-21 Carles Pina i Estany <carles@pina.cat>
32447 * commands/acpi.c (options): Fix capitalizations and/or full stops.
32448 (GRUB_MOD_INIT): Likewise.
32449 * commands/boot.c (GRUB_MOD_INIT): Likewise.
32450 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
32451 * commands/echo.c (options): Fix capitalizations and/or full stops.
32452 * commands/efi/loadbios.c (enable_rom_area): Likewise.
32453 (enable_rom_area): Likewise.
32454 (GRUB_MOD_INIT): Likewise.
32455 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32456 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
32457 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32458 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
32459 * commands/hexdump.c (options): Likewise.
32460 * commands/i386/cpuid.c (options): Likewise.
32461 (GRUB_MOD_INIT): Likewise.
32462 * commands/i386/pc/drivemap.c (options): Likewise.
32463 (GRUB_MOD_INIT): Likewise.
32464 * commands/i386/pc/halt (options): Likewise.
32465 (GRUB_MOD_INIT): Likewise.
32466 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32467 * commands/i386/pc/pxecmd.c (options): Likewise.
32468 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
32469 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
32470 * commands/keystatus.c (options): Likewise.
32471 (GRUB_MOD_INIT): Likewise.
32472 * commands/loadenv.c (options): Likewise.
32473 * commands/ls.c (options): Likewise.
32474 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32475 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32476 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32477 * commands/parttool.c (helpmsg): Likewise.
32478 * commands/probe.c (options): Likewise.
32479 * commands/read.c (GRUB_MOD_INIT): Likewise.
32480 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
32481 * commands/search.c (options): Likewise.
32482 * commands/sleep.c (options): Likewise.
32483 * commands/test.c (GRUB_MOD_INIT): Likewise.
32484 * commands/true.c (GRUB_MOD_INIT): Likewise.
32485 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
32486 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
32487 * lib/arg.c (help_options): Likewise.
32488 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
32490 * po/POTFILES: Add `commands/loadenv.c'.
32492 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
32494 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
32495 instead of specifying them explicit.
32497 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32499 * NEWS: Add grub-probe support for GNU/Hurd.
32501 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32503 * NEWS: gettext was added after 1.97.
32505 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32507 * util/mkisofs/msdos_partition.h: New file (based on
32508 include/grub/msdos_partition.h).
32509 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
32510 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
32511 (ld_options, main): Recognize --protective-msdos-label.
32512 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
32513 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
32514 (padblock_write): If `use_protective_msdos_label' is set, patch a
32515 protective DOS-style label in the output image.
32517 * util/grub-mkrescue.in: Use --protective-msdos-label.
32519 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32521 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
32524 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32526 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
32528 (ld_options, main): Recognize `--embedded-boot'.
32529 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
32531 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
32532 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
32533 (padblock_write): Likewise. Rewrite to support embedded boot image.
32535 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
32536 for BIOS-based disk boot instead of only ElTorito.
32538 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32540 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
32541 build (not needed for bootstrap).
32543 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32545 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
32546 from i386-pc build (not needed for bootstrap).
32547 Rewrite a pair of strings.
32549 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32551 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
32553 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
32555 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
32557 2009-12-21 Andreas Born <futur.andy@googlemail.com>
32559 * kern/env.c (grub_env_context_open): Mark exported variable for
32562 2009-12-21 Andreas Born <futur.andy@googlemail.com>
32564 * kern/env.c (grub_env_export): Create nonexistent variables before
32567 2009-12-20 Carles Pina i Estany <carles@pina.cat>
32569 * include/grub/auth.h: Include `<grub/i18n.h>'.
32570 (GRUB_GET_PASSWORD): Gettextizze string.
32571 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
32573 (grub_utf8_to_ucs4_alloc): Fix indentation.
32574 (grub_print_ucs4): Likewise.
32575 (grub_getstringwidth): Likewise.
32576 (print_message_indented): New declaration.
32577 * normal/auth.c: Include `<grub/i18n.h>'.
32578 (grub_auth_check_authentication): Gettexttize string.
32579 * normal/cmdline.c: Include `<grub/i18n.h>'.
32580 (grub_cmdline_get): Gettextizze.
32581 * normal/color.c: Include `<grub/i18n.h>'.
32582 (grub_parse_color_name_pair): Gettexttize strings.
32583 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
32584 string (use `print_message_indented').
32585 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
32586 `include/grub/normal.h'.
32587 (print_message_indented): Renamed to ...
32588 (grub_print_message_indented): ... this. Remove `static' qualifer (now
32589 used in normal/main.c).
32590 (print_message): Use `grub_print_message_indented' instead of
32591 `print_message_indented'.
32592 (print_timeout): Likewise.
32593 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
32594 (grub_normal_print_device_info): Gettexttize strings.
32595 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
32597 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
32599 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
32600 of arguments. Return number of tokens and not arguments. All users
32603 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
32605 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
32606 non-MSDOS paritions.
32608 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
32610 * include/grub/types.h (UNUSED): Removed since it conflicts with
32611 NetBSD headers. All users changed to direct __attribute__ ((unused)).
32612 Reported by Grégoire Sutre.
32614 2009-12-19 Carles Pina i Estany <carles@pina.cat>
32616 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
32617 (grub_print_ucs4_alloc): Likewise.
32618 (grub_getstringwidth): Likewise.
32619 * normal/main.c (grub_normal_init_page): Gettextize version string.
32620 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
32621 (getstringwidth): Renamed to ...
32622 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
32623 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
32624 (grub_print_ucs4): Remove `static' qualifer (now used in
32626 * po/POTFILES: Add normal/main.c.
32628 2009-12-19 Carles Pina i Estany <carles@pina.cat>
32630 * normal/menu_text.c (STANDARD_MARGIN): New macro.
32631 (print_message_indented): Add `margin_left' and `margin_right'
32633 (print_message): Update `print_message_indented' calls. Adds '\n' to the
32635 (print_timeout): Use `print_message_indented' to print the message.
32636 Deletes `second_stage' parameter.
32637 (run_menu): Update `print_timeout' calls.
32639 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32641 Fix console palette on OpenFirmware.
32643 * term/ieee1275/ofconsole.c (MAX): Removed.
32644 (colors): Redone based on VGA palette.
32645 (grub_ofconsole_setcolor): Discard brightness bit since only 8
32646 colors are supported.
32647 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
32649 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32651 Fix potential EfiEmu double prepare.
32653 * efiemu/main.c (prepared): New variable
32654 (grub_efiemu_unload): Set prepare to '0'.
32655 (grub_efiemu_prepare): Return if already prepared. Set prepared.
32657 set_virtual_address_map support.
32659 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
32661 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
32663 (grub_efiemu_crc32): Likewise.
32664 (grub_efiemu_crc64): Likewise.
32665 (grub_efiemu_set_virtual_address_map): Likewise.
32666 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
32668 (grub_autoefi_set_virtual_address_map): Likewise.
32669 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
32670 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
32671 Restructure flow to accomodate it.
32672 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
32673 (grub_efiemu_crc): Recompute CRC32.
32674 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
32675 (efiemu_ptv_relocated): ... this. Made global. All users updated.
32676 * efiemu/symbols.c (relocated_handle): New variable.
32677 (grub_efiemu_free_syms): Free relocated_handle.
32678 (grub_efiemu_alloc_syms): Allocate relocated_handle.
32679 (grub_efiemu_write_sym_markers): New function.
32680 (grub_efiemu_set_virtual_address_map): Likewise.
32682 Newer XNU parameters.
32684 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
32685 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
32686 (grub_xnu_fill_devicetree): New prototype.
32687 (grub_xnu_heap_real_start): New variable.
32688 * loader/xnu.c (get_name_ptr): New function.
32689 (grub_xnu_load_driver): Fill namelen and name.
32691 64-bit xnu support.
32693 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
32694 and 'loader/macho64.c'.
32695 * conf/i386-pc.rmk: Likewise.
32696 * conf/x86_64-efi.rmk: Likewise.
32697 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
32698 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
32699 * include/grub/macho.h (grub_macho_segment64): New structure.
32700 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
32701 (grub_macho_size32): ... to this.
32702 (grub_macho32_get_entry_point): Renamed from ...
32703 (grub_macho_get_entry_point32): ... to this.
32704 (grub_macho_contains_macho64): New prototype.
32705 (grub_macho_size64): Likewise.
32706 (grub_macho_get_entry_point64): Likewise.
32707 (grub_macho32_load): Renamed from ...
32708 (grub_macho_load32): ... to this.
32709 (grub_macho32_filesize): Renamed from ...
32710 (grub_macho_filesize32): ... to this.
32711 (grub_macho32_readfile): Renamed from ...
32712 (grub_macho_readfile32): ... to this.
32713 (grub_macho_filesize64): New prototype.
32714 (grub_macho_readfile64): Likewise.
32715 (grub_macho_parse32): Likewise.
32716 (grub_macho_parse64): Likewise.
32717 * loader/macho.c: Split into ...
32718 * loader/machoXX.c: ... and this. Replace 32 with XX.
32719 * loader/macho32.c: New file.
32720 * loader/macho64.c: Likewise.
32721 * loader/xnu.c (grub_xnu_is_64bit): New variable.
32722 (grub_cmd_xnu_kernel): Make 32-bit only.
32723 (grub_cmd_xnu_kernel64): New function.
32724 (grub_xnu_load_driver): Support Mach-O 64.
32725 (grub_cmd_xnu_mkext): Likewise.
32726 * util/grub.d/30_os-prober.in (osx_entry): New function.
32727 Generate entries for 64-bit boot too.
32729 Eliminate ad-hoc tree format in XNU and EfiEmu.
32731 * efiemu/main.c (grub_efiemu_prepare): Update comment.
32732 * efiemu/pnvram.c: Rewritten to use environment variables.
32735 Inline utf16_to_utf8.
32737 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
32738 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
32740 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
32742 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
32743 * commands/usbtest.c (grub_usb_get_string): ... move here.
32744 (usb_print_str): Fix error handling.
32745 * include/grub/usb.h (grub_usb_get_string): Remove.
32747 UTF-8 to UTF-16 transformation.
32749 * conf/common.rmk (pkglib_MODULES): Add charset.mod
32750 (charset_mod_SOURCES): New variable.
32751 (charset_mod_CFLAGS): Likewise.
32752 (charset_mod_LDFLAGS): Likewise.
32753 * include/grub/utf.h: New file.
32754 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
32756 Support for device properties.
32758 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
32759 (grub_xnu_devprop_device_header): Likewise.
32760 (grub_xnu_devprop_device_descriptor): Likewise.
32761 (grub_xnu_devprop_add_device): New prototype.
32762 (grub_xnu_devprop_remove_device): Likewise.
32763 (grub_xnu_devprop_remove_property): Likewise.
32764 (grub_xnu_devprop_add_property_utf8): Likewise.
32765 (grub_xnu_devprop_add_property_utf16): Likewise.
32766 (grub_cpu_xnu_init): Likewise.
32767 (grub_cpu_xnu_fini): Likewise.
32768 (grub_cpu_xnu_unload): Likewise.
32769 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
32770 (property_descriptor): Likewise.
32771 (devices): New variable.
32772 (grub_xnu_devprop_remove_property): New function.
32773 (grub_xnu_devprop_add_device): Likewise.
32774 (grub_xnu_devprop_remove_device): Likewise.
32775 (grub_xnu_devprop_add_property): Likewise.
32776 (grub_xnu_devprop_add_property_utf8): Likewise.
32777 (grub_xnu_devprop_add_property_utf16): Likewise.
32778 (hextoval): Likewise.
32779 (grub_cpu_xnu_fill_devprop): Likewise.
32780 (grub_cmd_devprop_load): Likewise.
32781 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
32782 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
32783 (cmd_devprop_load): New variable.
32784 (grub_cpu_xnu_init): New function.
32785 (grub_cpu_xnu_fini): Likewise.
32786 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
32787 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
32788 (grub_cmd_xnu_devtree): Likewise.
32789 (hextoval): New function.
32790 (unescape): Likewise.
32791 (grub_xnu_fill_devicetree): Likewise.
32793 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
32794 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
32796 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32798 Workaround for broken ATI VBE.
32800 * video/i386/pc/vbe.c (last_set_mode): New variable.
32801 (grub_vbe_set_video_mode): Set 'last_set_mode'.
32802 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
32803 (grub_video_vbe_setup): Don't check for reserved flag.
32805 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
32807 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
32808 the `find' command.
32810 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
32812 UUID support for HFS.
32814 * fs/hfs.c (grub_hfs_uuid): New function.
32815 (grub_hfs_fs): New value .uuid.
32816 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
32818 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
32820 Fix a segfault with parsing unknown long options.
32822 * util/grub-mkrelpath.c (options): Zero terminate it.
32824 2009-12-13 Carles Pina i Estany <carles@pina.cat>
32826 * include/grub/misc.h (grub_puts): New declaration.
32827 (grub_puts_): Likewise.
32828 * kern/misc.c (grub_puts): New definition.
32829 (grub_puts_): Likewise.
32831 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
32833 * util/grub-probe.c (probe): Improve error message.
32835 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
32837 * loader/i386/multiboot_elfxx.c
32838 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
32841 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
32843 Relocator framework
32845 * loader/i386/xnu_helper.S: Removed. All users updated.
32846 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
32847 (relocator_mod_SOURCES): New variable.
32848 (relocator_mod_CFLAGS): Likewise.
32849 (relocator_mod_LDFLAGS): Likewise.
32850 (relocator_mod_ASFLAGS): Likewise.
32851 * conf/x86_64.rmk: Likewise.
32852 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
32853 (grub_multiboot_payload_entry_offset): Likewise.
32854 (grub_multiboot_forward_relocator): Likewise.
32855 (grub_multiboot_forward_relocator_end): Likewise.
32856 (grub_multiboot_backward_relocator): Likewise.
32857 (grub_multiboot_backward_relocator_end): Likewise.
32858 (grub_multiboot_payload_eip): New variable.
32859 (grub_multiboot_payload_orig): Likewise.
32860 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
32861 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
32862 * include/grub/i386/memory.h
32863 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
32864 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
32865 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
32866 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
32867 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
32868 * include/grub/i386/relocator.h: New file.
32869 * include/grub/x86_64/relocator.h: Likewise.
32870 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
32871 (XNU_RELOCATOR): New macro.
32872 (grub_xnu_launcher_start): Remove.
32873 (grub_xnu_launcher_end): Likewise.
32874 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
32875 (grub_xnu_heap_real_start): Remove.
32876 (grub_xnu_heap_start): Change to void *. All users updated.
32877 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
32878 * lib/i386/relocator.c: New file.
32879 * lib/i386/relocator_asm.S: Likewise.
32880 * lib/i386/relocator_backward.S: Likewise.
32881 * lib/mips/relocator.c: Likewise.
32882 * lib/mips/relocator_asm.S: Likewise.
32883 * lib/relocator.c: Likewise.
32884 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
32886 (playground): Likewise.
32887 (grub_multiboot_payload_orig): New variable.
32888 (grub_multiboot_payload_dest): Likewise.
32889 (grub_multiboot_payload_size): Likewise.
32890 (grub_multiboot_payload_eip): Likewise.
32891 (grub_multiboot_payload_esp): Likewise.
32892 (grub_multiboot_boot): Use grub_relocator32_boot.
32893 (grub_multiboot_unload): Free relocators.
32894 (grub_multiboot): Setup stack. Use relocators.
32895 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
32896 (grub_multiboot_load_elfXX): Use relocators.
32897 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
32898 (grub_multiboot_payload_size): Likewise.
32899 (grub_multiboot_payload_dest): Likewise.
32900 (grub_multiboot_payload_entry_offset): Likewise.
32901 (grub_multiboot_forward_relocator): Likewise.
32902 (grub_multiboot_backward_relocator): Likewise.
32903 (grub_multiboot_real_boot): Likewise.
32904 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
32905 (grub_xnu_entry_point): Likewise.
32906 (grub_xnu_arg1): Likewise.
32907 (grub_xnu_stack): Likewise.
32908 (grub_xnu_launch): Removed.
32909 (grub_xnu_boot_resume): New function.
32910 (grub_xnu_boot): Use relocators.
32911 * loader/i386/xnu_helper.S: Removed.
32912 * loader/xnu.c (grub_xnu_heap_start): New variable.
32913 (grub_xnu_heap_size): Likewise.
32914 (grub_xnu_heap_malloc): Use relocators.
32915 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
32917 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
32919 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
32922 2009-12-13 Carles Pina i Estany <carles@pina.cat>
32924 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
32925 GRUB_ERR_NONE before calling grub_env_set.
32927 2009-12-12 Robert Millan <rmh@aybabtu.com>
32929 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
32930 * genmk.rb (video): New variable.
32931 (CLEANFILES, VIDEOFILES): Add #{video}.
32932 (#{video}): New target rule.
32933 * genvideolist.sh: New file.
32934 * Makefile.in (pkglib_DATA): Add video.lst.
32935 (video.lst): New target rule.
32936 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
32938 * util/grub.d/30_os-prober.in: Replace `vbe' with
32939 ${GRUB_VIDEO_BACKEND}.
32941 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
32943 * THANKS: Add David Miller.
32945 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
32947 libpciaccess support.
32949 * Makefile.in (LIBPCIACCESS): New variable.
32950 (enable_grub_emu_pci): Likewise.
32951 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
32952 util/pci.c and commands/lspci.c.
32953 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
32954 * configure.ac (grub-emu-pci): New option.
32955 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
32956 (grub_pci_device_unmap_range): Likewise.
32957 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
32958 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
32959 (grub_pci_address_t) [!GRUB_UTIL]: New type.
32960 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
32961 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
32962 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
32963 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
32964 * include/grub/pciutils.h: New file.
32965 * util/pci.c: Likewise.
32967 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
32969 * util/misc.c: Don't include <errno.h> twice.
32971 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
32973 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
32974 name in an error message.
32975 (grub_biosdisk_rw): Likewise.
32977 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32979 Eliminate NTFS 4Gib barrier.
32981 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
32982 (read_run_data): Likewise.
32983 (grub_ntfs_read_run_list): Likewise.
32984 (grub_ntfs_read_block): Likewise.
32985 (grub_ntfs_iterate_dir): Likewise.
32986 (read_mft): Likewise.
32987 (read_data): Likewise.
32989 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
32990 to avoid 64-bit division
32991 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
32992 (grub_ntfs_rlst): Use grub_disk_addr_t.
32994 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32996 Eliminate grub-fstest 4Gib barrier.
32998 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
32999 (read_file): Fix error reporting.
33001 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33003 Eliminate hexdump 4Gib barrier.
33005 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33006 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33008 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33010 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33013 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33015 Remove miscellaneous files in distclean target.
33017 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33019 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33021 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33022 if they're already set. This resolves the conflict between my
33023 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33024 fixing the --grub-probe option again.
33025 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33026 change on 2009-10-06, so that we now once again source
33027 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33029 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33031 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33032 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33033 `util/devicemap.c'.
33035 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33037 * include/grub/misc.h (grub_printf_): New declaration.
33038 * kern/misc.c (grub_printf_): New definition.
33039 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33040 instead of `grub_printf' and `_'.
33041 * normal/menu_entry.c (store_completion): Likewise.
33043 (grub_menu_entry_run): Likewise.
33044 * normal/menu_text.c (grub_wait_after_message): Likewise.
33045 (notify_booting): Likewise.
33046 (notify_fallback): Likewise.
33047 (notify_execution_failure): Likewise.
33049 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33051 * configure.ac: Check for vasprintf.
33052 * util/misc.c (asprintf): Move allocation from here ...
33053 (vasprintf): ... to here. New function.
33054 (xasprintf): New function.
33055 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33057 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33058 * util/grub-mkfont.c (write_font): Likewise.
33059 * util/grub-probe.c (probe): Likewise.
33060 * util/hostdisk.c (make_device_name): Likewise.
33062 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33064 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33065 anything even prefixed with 'cdrom' as a cdrom.
33067 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33069 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33072 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33074 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33075 grub_gettext_msg_list.
33076 (grub_gettext_gettranslation_from_position): Return const char *
33078 (grub_gettext_translate): Add the translated strings into a list,
33079 returns from the list if existing there.
33080 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33081 (grub_gettext_delete_list): Delete the list.
33082 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33083 lang environment variable is changed.
33084 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33086 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33088 Rename kernel.mod to kernel.img.
33090 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33091 (kernel_mod_EXPORTS): Rename to ...
33092 (kernel_img_EXPORTS): ... this.
33093 (kernel_mod_SOURCES): Rename to ...
33094 (kernel_img_SOURCES): ... this.
33095 (kernel_mod_HEADERS): Rename to ...
33096 (kernel_img_HEADERS): ... this. All users updated.
33097 (kernel_mod_CFLAGS): Rename to ...
33098 (kernel_img_CFLAGS): ... this.
33099 (kernel_mod_ASFLAGS): Rename to ...
33100 (kernel_img_ASFLAGS): ... this.
33101 (kernel_mod_LDFLAGS): Rename to ...
33102 (kernel_img_LDFLAGS): ... this.
33103 * conf/x86_64-efi.rmk: Likewise.
33104 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33105 (read_kernel_image): ... this. All users updated.
33106 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33108 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33110 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33111 (print_spaces): New function.
33112 (grub_print_ucs4): New function.
33113 (getstringwidth): New function.
33114 (print_message_indented): New function.
33115 (print_message): Gettexttize strings using print_message_indented.
33116 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33118 (get_entry_number): Gettextize and uses dynamic terminal width.
33119 (notify_booting, notify_fallback, notify_execution_failure):
33121 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33124 (grub_menu_entry_run): Likewise.
33125 * PO/POTFILES: Add normal/menu_entry.c.
33127 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33129 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33131 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33133 * util/grub-install.in: Install gettext .mo files.
33134 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33136 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33138 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33141 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33143 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33144 non-firmware-dependant one in realmode.S takes precedence.
33146 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33148 * commands/halt.c: Replace misc arch-specific headers with
33150 * commands/reboot.c: Likewise.
33151 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33153 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33154 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33155 (kernel_img_SOURCES): ... to here.
33157 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33158 * include/grub/i386/pc/init.h: Likewise.
33159 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33160 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33162 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33164 * include/grub/i386/halt.h: Remove.
33165 * include/grub/i386/reboot.h: Likewise.
33167 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33169 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33171 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33172 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33173 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33175 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33176 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33177 (usage): Add missing comma in printf.
33179 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33181 Use the same reboot approach on i386 coreboot and qemu as we do on
33184 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33185 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33186 * kern/i386/reboot.c: Remove.
33187 * include/grub/i386/reboot.h (grub_reboot): Export function.
33188 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33189 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33190 0xf000:0xfff0 instead of 0xffff:0x0000.
33191 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33192 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33194 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33196 Fix $srcdir != $objdir build.
33198 * Makefile.in (po/%.po): Rewrite as ...
33199 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33201 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33203 Fix GNU/Hurd grub-install crash.
33204 * util/grub-probe.c (probe): Try to access `path' only when it is not
33207 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33209 Correct module naming.
33211 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33212 (GRUB_MOD_INIT(efi_uga)): ... to this
33213 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33214 (GRUB_MOD_FINI(efi_uga)): ... to this
33215 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33216 (GRUB_MOD_INIT(efi_gop)): ... to this
33217 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33218 (GRUB_MOD_FINI(efi_gop)): ... to this
33220 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33222 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33224 (usage): Translate `arg' strings using gettext().
33225 Thanks to Jordi Mallach for the suggestion.
33227 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33229 GOP support. Based on patch from Bean
33230 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33232 * video/efi_gop.c: New file.
33233 * include/grub/efi/graphics_output.h: Likewise.
33234 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33235 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33237 * conf/x86_64-efi.rmk: Likewise.
33239 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33241 Rename efi_fb to efi_uga.
33243 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33245 (efi_fb_mod_SOURCES): Rename this ...
33246 (efi_uga_mod_SOURCES): ... to this.
33247 (efi_fb_mod_CFLAGS): Rename this ...
33248 (efi_uga_mod_CFLAGS): ... to this.
33249 (efi_fb_mod_LDFLAGS): Rename this ...
33250 (efi_uga_mod_LDFLAGS): ... to this.
33251 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33253 (efi_fb_mod_SOURCES): Rename this ...
33254 (efi_uga_mod_SOURCES): ... to this.
33255 (efi_fb_mod_CFLAGS): Rename this ...
33256 (efi_uga_mod_CFLAGS): ... to this.
33257 (efi_fb_mod_LDFLAGS): Rename this ...
33258 (efi_uga_mod_LDFLAGS): ... to this.
33259 * video/efi_fb.c: Move this ...
33260 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33262 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33264 * po/README: New file. Explain our PO file workflow.
33266 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33268 * po/ChangeLog: Remove. Move relevant entries back to ...
33269 * ChangeLog: ... here.
33270 * po/ca.po: Remove (now handled by TLP).
33271 * po/id.po: Likewise.
33272 * po/zh_CN.po: Likewise.
33273 * Makefile.in (LINGUAS): Initialize in a way that supports
33276 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33278 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33279 reliing on po/LINGUAS.
33280 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33281 (po/%.po): ... this.
33283 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33285 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33286 (main): Use `program_name' instead of nonexistent `progname'.
33288 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33290 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33291 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33293 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33295 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33297 * conf/i386-efi.rmk: Likewise.
33298 * conf/i386-ieee1275.rmk: Likewise.
33299 * conf/powerpc-ieee1275.rmk: Likewise.
33300 * conf/sparc64-ieee1275.rmk: Likewise.
33301 * conf/x86_64-efi.rmk: Likewise.
33303 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33305 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33307 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33309 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33311 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33313 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33314 (grub_mkdevicemap_SOURCES): New variable.
33315 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33316 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33317 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33318 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33319 (grub_mkdevicemap_SOURCES): Remove.
33320 * conf/i386-efi.rmk: Likewise.
33321 * conf/i386-ieee1275.rmk: Likewise.
33322 * conf/i386-pc.rmk: Likewise.
33323 * conf/powerpc-ieee1275.rmk: Likewise.
33324 * conf/sparc64-ieee1275.rmk: Likewise.
33325 * conf/x86_64-efi.rmk: Likewise.
33326 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33327 (usage): Fix strings to use `program_name'.
33328 (main): Initialize gettext.
33329 * util/grub-editenv.c: Likewise.
33330 * util/grub-emu.c: Likewise.
33331 * util/grub-fstest.c: Likewise.
33332 * util/grub-mkdevicemap.c: Likewise.
33333 * util/grub-mkfont.c: Likewise.
33334 * util/grub-mkrelpath.c: Likewise.
33335 * util/grub-pe2elf.c: Likewise.
33336 * util/grub-probe.c: Likewise.
33337 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33338 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33339 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33341 * util/misc.c: Include `"progname.h"'.
33342 (progname): Remove variable.
33343 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33345 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33347 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33348 printf and print a newline after the menuentry header line.
33349 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33351 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33353 autoconf >= 2.60 support $(localedir).
33355 * INSTALL: Note that autoconf 2.60 is required.
33356 * configure.ac (AC_PREREQ): Bump to 2.60.
33357 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33358 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33360 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33362 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33365 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33367 * normal/main.c (grub_normal_read_line): Fix off-by-one
33370 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33372 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33373 "parser.grub" in grub_command_execute() call.
33375 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33377 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33378 * conf/i386-efi.rmk: Likewise.
33379 * conf/i386-ieee1275.rmk: Likewise.
33380 * conf/i386-pc.rmk: Likewise.
33381 * conf/powerpc-ieee1275.rmk: Likewise.
33382 * conf/sparc64-ieee1275.rmk: Likewise.
33383 * conf/x86_64-efi.rmk: Likewise.
33384 * gettext/gettex.c: Include <grub/i18n.h>.
33385 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33387 * include/grub/i18n.h: ... to here
33388 * include/grub/i18n.h: ... to here.
33389 * kern/misc.c: Include <grub/i18n.h>
33390 (grub_gettext_dummy): Move above user.
33392 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33394 * util/Makefile.in (install-local): Convert a `for' into a normal
33397 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33399 * autogen.sh: Add automake call.
33400 * config.guess: Remove.
33401 * config.sub: Likewise.
33402 * install-sh: Likewise.
33404 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33406 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33408 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33410 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33411 function to a normal shell `for'.
33413 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33415 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33417 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33419 * util/grub-mkrelpath.c: New file.
33420 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33421 (grub_mkrelpath_SOURCES): New variable.
33422 * include/grub/util/misc.h: New function prototype.
33423 * util/misc.c (make_system_path_relative_to_its_root): New function.
33425 * util/grub-mkconfig_lib.in (bindir): New variable.
33426 (grub_mkrelpath): Likewise.
33427 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33429 * util/probe.c (probe): Make the file path relative to its root.
33430 Change a info message to use the GRUB path. Enable again the
33431 check if we can read the file with GRUB facilities.
33433 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33436 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33438 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33441 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33443 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
33446 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33448 * util/getroot.c (grub_util_is_dmraid): New function.
33449 (grub_util_get_dev_abstraction): Treat dmraid and multipath
33450 devices as normal ones, not as LVM.
33452 2009-11-23 Carles Pina i Estany <carles@pina.cat>
33454 * conf/common.rmk: Add grub-gettext_lib target and updates
33455 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
33457 * gettext/gettext.c: New file. (Reads mo files).
33458 * include/grub/file.h (grub_file_pread): New prototype.
33459 * include/grub/i18n.h (_): New prototype.
33460 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
33462 * kern/misc.c (grub_gettext_dummy): New function.
33463 * normal/menu_text.c: Include <grub/i18n.h>.
33464 * normal/menu_text.c (print_timeout): Gettexttize string.
33465 * normal/menu_text.c (print_message): Gettexttize string.
33466 * po/POTFILES: Add `normal/menu_text.c'.
33467 * po/ca.po: Add new translations.
33468 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
33469 gettext module and defines locale_dir and lang in grub.cfg.
33470 * NEWS: Add gettext support.
33472 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33474 * util/hostdisk.c: Include `<grub/i18n.h>'.
33475 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
33476 (make_device_name): Rewrite using asprintf.
33477 (convert_system_partition_to_system_disk): Replace 0 with NULL.
33478 (find_system_device): If a device is not found, generate one just
33479 by reusing the OS path name.
33480 (read_device_map): Make it permissible for device.map not to exist.
33482 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33484 * script/sh/execute.c: Move from here ...
33485 * script/execute.c: ... to here. Update all users.
33486 * script/sh/function.c: Move from here ...
33487 * script/function.c: ... to here. Update all users.
33488 * script/sh/lexer.c: Move from here ...
33489 * script/lexer.c: ... to here. Update all users.
33490 * script/sh/main.c: Move from here ...
33491 * script/main.c: ... to here. Update all users.
33492 * script/sh/parser.y: Move from here ...
33493 * script/parser.y: ... to here. Update all users.
33494 * script/sh/script.c: Move from here ...
33495 * script/script.c: ... to here. Update all users.
33497 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33499 * configure.ac: Detect all `emu' platforms. Define
33500 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
33501 --enable-grub-emu logic. Disable include/grub/machine
33502 symlink on `emu' platforms.
33504 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
33505 * gensymlist.sh.in: Likewise.
33507 * include/grub/i386/coreboot/machine.h: Remove file.
33508 * include/grub/i386/efi/machine.h: Likewise.
33509 * include/grub/i386/ieee1275/machine.h: Likewise.
33510 * include/grub/i386/pc/machine.h: Likewise.
33511 * include/grub/i386/qemu/machine.h: Likewise.
33512 * include/grub/powerpc/ieee1275/machine.h: Likewise.
33513 * include/grub/sparc64/ieee1275/machine.h: Likewise.
33514 * include/grub/x86_64/efi/machine.h: Likewise.
33516 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
33517 * commands/halt.c: Likewise.
33518 * commands/reboot.c: Likewise.
33519 * include/grub/autoefi.h: Likewise.
33520 * include/grub/i386/at_keyboard.h: Likewise.
33521 * include/grub/i386/kernel.h: Likewise.
33522 * include/grub/i386/loader.h: Likewise.
33523 * include/grub/i386/pc/memory.h: Likewise.
33524 * kern/dl.c: Likewise.
33525 * kern/i386/coreboot/init.c: Likewise.
33526 * loader/i386/bsd.c: Likewise.
33527 * loader/i386/linux.c: Likewise.
33528 * loader/multiboot_loader.c: Likewise.
33529 * term/i386/pc/serial.c: Likewise.
33530 * term/usb_keyboard.c: Likewise.
33532 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
33533 `<grub/machine/machine.h>'
33534 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
33535 * util/misc.c: Remove `<grub/machine/machine.h>' and
33536 `<grub/machine/time.h>'.
33538 * Makefile.in (enable_grub_emu): Remove variable.
33539 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
33541 * conf/any-emu.rmk: New file.
33542 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
33543 (grub_emu_init.c): Move from here ...
33544 * conf/any-emu.rmk: ... to here.
33546 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
33547 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
33548 * conf/any-emu.rmk: ... to here.
33550 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33552 * include/grub/parser.h (grub_parser_register): Document need
33553 of `name' parameter.
33554 * normal/main.c (grub_normal_read_line): Simplify prompt string.
33555 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
33558 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33560 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
33562 * include/grub/i18n.h (N_): New macro.
33563 * util/mkisofs/mkisofs.h: Likewise.
33564 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
33566 (usage): Use gettext() to translate help strings when printing them.
33568 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33570 Based on patch from Bean
33571 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33573 * video/efi_fb.c: New file.
33574 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
33575 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33577 * conf/x86_64-efi.rmk: Likewise.
33579 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
33581 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
33582 * util/i386/pc/grub-setup.c: Likewise.
33584 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
33586 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
33588 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
33589 file_get_storage_info to implement grub_guess_root_device.
33591 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33593 * Makefile.in (target): Use make's builtin $(shell) function
33594 instead of calling directly $(SHELL) to create the locale directories,
33595 inside the $(foreach) function.
33597 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33599 * util/grub-mkrescue.in: Print an error and usage if output option
33600 has not been given.
33602 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33604 Patch from Loïc Minier <loic.minier@ubuntu.com>.
33605 * util/grub.d/30_os-prober.in: Cope with Linux entries where
33606 root and /boot are on different devices.
33608 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33610 Fix build for srcdir != objdir.
33612 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
33613 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
33615 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
33616 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
33617 reference for input.
33619 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33621 * util/grub-mkrescue.in: Use source directory direcly (without copiing
33622 or hardlinking it). Remove -J option, Joliet is not compatible with
33623 multiple source directories.
33625 2009-11-21 Carles Pina i Estany <carles@pina.cat>
33626 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33628 * util/grub-mkrescue.in: Recognize `--override-directory' option.
33629 (process_input_dir): New function. Process an arbitrary input
33631 Misc adjustments to support both "override mode" and system-wide mode.
33633 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
33635 * configure.ac (UNIFONT_BDF): Rename to ...
33636 (FONT_SOURCE): ... this. Update all users.
33638 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
33640 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
33641 to the list of unifont files to look for.
33643 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33645 Patch from Joe Auricchio <jauricchio@gmail.com>
33646 * commands/minicmd.c (grub_mini_cmd_clear): New function.
33647 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
33648 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
33650 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
33652 * Makefile.in (install-local): Add a missing backslash.
33654 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
33656 * include/grub/x86_64/io.h: New file.
33658 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33660 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
33661 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
33662 Include `"progname.h"'.
33663 (main): Initialize gettext.
33664 * util/i386/pc/grub-setup.c: Gettexttize.
33665 * util/i386/pc/grub-mkimage.c: Likewise.
33667 * Makefile.in (po/*.po): Redefine as ...
33668 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
33670 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
33672 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33674 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
33675 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
33676 (program_name): Remove.
33677 (main): Initialize gettext support.
33678 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
33679 Include `<libintl.h>'.
33682 * util/mkisofs/eltorito.c: Gettexttize.
33683 * util/mkisofs/joliet.c: Likewise.
33684 * util/mkisofs/mkisofs.c: Likewise.
33685 * util/mkisofs/multi.c: Likewise.
33686 * util/mkisofs/rock.c: Likewise.
33687 * util/mkisofs/tree.c: Likewise.
33688 * util/mkisofs/write.c: Likewise.
33690 * po/POTFILES: Update with new files.
33692 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33694 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
33695 * util/mkisofs/iso9660.h: Likewise.
33696 * util/mkisofs/joliet.c: Likewise.
33697 * util/mkisofs/mkisofs.c: Likewise.
33698 * util/mkisofs/mkisofs.h: Likewise.
33699 * util/mkisofs/rock.c: Likewise.
33700 * util/mkisofs/tree.c: Likewise.
33701 * util/mkisofs/write.c: Likewise.
33703 * util/mkisofs/eltorito.c (rcsid): Remove.
33704 * util/mkisofs/hash.c: Likewise.
33705 * util/mkisofs/joliet.c: Likewise.
33706 * util/mkisofs/name.c: Likewise.
33707 * util/mkisofs/rock.c: Likewise.
33708 * util/mkisofs/tree.c: Likewise.
33709 * util/mkisofs/write.c: Likewise.
33711 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33713 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
33714 instead of static allocation.
33715 * util/mkisofs/match.h: Likewise.
33717 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33719 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
33720 and `util/grub.d/10_linux.in'.
33721 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
33722 translatable Shell files.
33724 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33726 * Makefile.in ($(srcdir)/aclocal.m4): New target.
33728 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33730 * INSTALL: Document Automake is needed for bootstrap.
33731 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
33732 * util/grub.d/10_kfreebsd.in (bindir): New variable.
33733 Add gettext initialization.
33734 (kfreebsd_entry): Make menuentry output translatable.
33736 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33738 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
33739 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
33740 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
33741 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
33742 (LINGUAS): Auto-generate using `po/LINGUAS'.
33743 * po/LINGUAS: New file.
33745 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33747 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
33749 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
33750 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
33751 bindtextdomain() calls for gettext initialization.
33753 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33755 * gnulib/progname.c: New file (imported from Gnulib).
33756 * gnulib/progname.h: Likewise.
33757 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33758 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
33759 (usage): Replace `progname' with `program_name'.
33760 (main): Use set_program_name() for program name initialization.
33762 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33764 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
33766 * Makefile.in (CPPFLAGS): ... to here.
33768 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33770 * aclocal.m4: Move from here ...
33771 * acinclude.m4: ... to here.
33772 * autogen.sh: Add call to `aclocal'.
33773 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
33775 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33777 * Makefile.in (CLEANFILES): Add `po/*.mo'.
33778 (LINGUAS): New variable.
33779 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
33780 (install-local): Install MO files.
33781 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
33782 * include/grub/i18n.h: New file.
33783 * po/POTFILES: New file.
33784 * po/ca.po: New file.
33785 * util/grub.d/10_linux.in (bindir): New variable.
33786 Add gettext initialization.
33787 (linux_entry): Make menuentry output translatable.
33788 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
33789 (usage): Make --help output translatable.
33790 (main): Initialize gettext.
33792 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33794 * import_gcry.py: New file (written by Vladimir with minor
33796 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
33798 * INSTALL: Document that Python is required for bootstrap.
33800 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33802 Import ciphers from libgcrypt 1.4.4.
33804 * lib/libgcrypt/cipher/ChangeLog
33805 * lib/libgcrypt/cipher/ac.c
33806 * lib/libgcrypt/cipher/arcfour.c
33807 * lib/libgcrypt/cipher/bithelp.h
33808 * lib/libgcrypt/cipher/blowfish.c
33809 * lib/libgcrypt/cipher/camellia-glue.c
33810 * lib/libgcrypt/cipher/camellia.c
33811 * lib/libgcrypt/cipher/camellia.h
33812 * lib/libgcrypt/cipher/cast5.c
33813 * lib/libgcrypt/cipher/cipher.c
33814 * lib/libgcrypt/cipher/crc.c
33815 * lib/libgcrypt/cipher/des.c
33816 * lib/libgcrypt/cipher/dsa.c
33817 * lib/libgcrypt/cipher/ecc.c
33818 * lib/libgcrypt/cipher/elgamal.c
33819 * lib/libgcrypt/cipher/hash-common.c
33820 * lib/libgcrypt/cipher/hash-common.h
33821 * lib/libgcrypt/cipher/hmac-tests.c
33822 * lib/libgcrypt/cipher/md.c
33823 * lib/libgcrypt/cipher/md4.c
33824 * lib/libgcrypt/cipher/md5.c
33825 * lib/libgcrypt/cipher/primegen.c
33826 * lib/libgcrypt/cipher/pubkey.c
33827 * lib/libgcrypt/cipher/rfc2268.c
33828 * lib/libgcrypt/cipher/rijndael-tables.h
33829 * lib/libgcrypt/cipher/rijndael.c
33830 * lib/libgcrypt/cipher/rmd.h
33831 * lib/libgcrypt/cipher/rmd160.c
33832 * lib/libgcrypt/cipher/rsa.c
33833 * lib/libgcrypt/cipher/seed.c
33834 * lib/libgcrypt/cipher/serpent.c
33835 * lib/libgcrypt/cipher/sha1.c
33836 * lib/libgcrypt/cipher/sha256.c
33837 * lib/libgcrypt/cipher/sha512.c
33838 * lib/libgcrypt/cipher/tiger.c
33839 * lib/libgcrypt/cipher/twofish.c
33840 * lib/libgcrypt/cipher/whirlpool.c
33842 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33844 Fix build for systems without error().
33846 * gnulib/error.c: New file (imported from Gnulib).
33847 * gnulib/error.h: Likewise.
33848 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
33849 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
33850 (this variable is now used by error()).
33852 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
33854 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
33855 instead of relying that char is signed.
33857 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
33859 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
33860 blocksize different from specified.
33861 (grub_pxefs_read): Likewise.
33863 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
33865 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
33867 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
33868 (grub_ata_readwrite): Likewise. Update 2 format strings.
33869 (grub_atapi_read): Likewise.
33871 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
33872 * conf/i386.rmk (pkglib_MODULES): ... to here ...
33873 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
33874 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
33875 (ata_mod_LDFLAGS): Move from here ...
33876 * conf/i386.rmk: ... to here ...
33877 * conf/x86_64-efi.rmk: ... and here.
33878 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
33879 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
33881 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33883 Relicense multiboot.h, with RMS' blessing.
33885 * include/multiboot.h: Change to X11 license.
33887 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
33889 Support --version in grub-mkisofs.
33891 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
33892 (OPTION_VERSION): New macro.
33893 (ld_options): Recognize --version.
33894 (usage): Move `program_name' from here ...
33895 (program_name): ... to here. Add `static' qualifier.
33896 (main): Recognize `OPTION_VERSION'.
33898 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
33900 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
33901 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
33903 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
33905 Fix help2man generation for mkisofs.
33907 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
33908 (usage): Send output to stdout (rather than stderr).
33910 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
33912 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
33913 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
33914 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
33915 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
33916 (bin_SCRIPTS): Add `grub-mkfloppy'.
33917 (grub_mkfloppy_SOURCES): New variable.
33919 * util/grub-mkrescue.in: New file.
33920 * util/i386/pc/grub-mkfloppy.in: New file.
33922 * util/i386/coreboot/grub-mkrescue.in: Remove.
33923 * util/i386/pc/grub-mkrescue.in: Remove.
33925 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33927 * include/grub/multiboot.h (struct grub_multiboot_header): Move
33929 * include/multiboot.h (struct multiboot_header): ... to here. Update
33931 * include/grub/multiboot.h (struct grub_multiboot_info): Move
33933 * include/multiboot.h (struct multiboot_info): ... to here. Update
33935 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
33937 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
33939 * include/grub/multiboot.h (struct grub_mod_list): Move
33941 * include/multiboot.h (struct multiboot_mod_list): ... to here.
33944 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33946 * include/multiboot2.h (multiboot_word): Rename from this ...
33947 (multiboot2_word): ... to this. Update all users.
33948 (multiboot_header): Rename from this ...
33949 (multiboot2_header): ... to this. Update all users.
33950 (multiboot_tag_header): Rename from this ...
33951 (multiboot2_tag_header): ... to this. Update all users.
33952 (multiboot_tag_start): Rename from this ...
33953 (multiboot2_tag_start): ... to this. Update all users.
33954 (multiboot_tag_name): Rename from this ...
33955 (multiboot2_tag_name): ... to this. Update all users.
33956 (multiboot_tag_module): Rename from this ...
33957 (multiboot2_tag_module): ... to this. Update all users.
33958 (multiboot_tag_memory): Rename from this ...
33959 (multiboot2_tag_memory): ... to this. Update all users.
33960 (multiboot_tag_unused): Rename from this ...
33961 (multiboot2_tag_unused): ... to this. Update all users.
33962 (multiboot_tag_end): Rename from this ...
33963 (multiboot2_tag_end): ... to this. Update all users.
33965 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33967 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
33968 this platform we should support Multiboot1 first.
33970 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
33971 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
33972 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
33974 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
33976 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
33977 of write calls (converting them to fwrite() if they aren't already).
33978 (get_torito_desc): Likewise.
33979 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
33981 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
33983 * util/i386/pc/grub-install.in: Move from here ...
33984 * util/grub-install.in: ... to here. Update all users.
33986 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
33988 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
33990 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
33992 Support for El Torito without floppy emulation.
33994 * util/mkisofs/eltorito.c: Include `<errno.h>'.
33995 (init_boot_catalog): Improve error handling.
33996 (get_torito_desc): Don't use floppy emulation unless requested by
33997 user. Patch boot information table when requested via
33998 `-boot-info-table'.
33999 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34000 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34001 (use_boot_info_table): New variables.
34002 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34003 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34004 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34005 `--eltorito-emul-floppy'.
34006 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34007 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34008 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34009 (use_boot_info_table, get_731): New prototypes.
34010 * util/mkisofs/write.c (get_731): New function.
34012 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34014 Fix the generation of the man page.
34016 * util/pc/i386/grub-install.in: Source
34017 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34019 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34021 Large file support for grub-mkisofs.
34023 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34024 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34025 (session_start): Upgrade type to `uint64_t'. Update all users.
34026 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34027 (struct directory_entry): Upgrade type of `starting_block' and
34028 `size' to `uint64_t'. Update all users.
34029 (struct deferred): Remove unused structure.
34030 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34032 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34033 file is larger than `UINT32_MAX'.
34034 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34035 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34037 (struct deferred_write): Upgrade type of `extent' and `size' to
34038 `uint64_t'. Update all users.
34039 (last_extent_written): Upgrade type to `uint64_t'. Update all
34041 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34042 Update all users. Upgrade type of `remain' to `int64_t' and
34043 `use' to `size_t'. Use error() to handle fread() errors.
34044 (write_files): Rely on write_one_file() rather than calling
34045 xfwrite() directly.
34047 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34049 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34051 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34053 * util/mkisofs/fnmatch.c: Remove.
34054 * util/mkisofs/getopt1.c: Likewise.
34055 * util/mkisofs/getopt.c: Likewise.
34056 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34057 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34058 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34059 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34060 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34062 * configure.ac: Detect `mingw32msvc' host_os.
34063 Check for lstat(), getuid() and getgid().
34065 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34066 instances of `u_char' with `uint8_t'.
34068 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34069 [!HAVE_GETUID] (getuid): New function (stub).
34070 [!HAVE_GETGID] (getgid): Likewise.
34071 [!HAVE_LSTAT] (lstat): Likewise.
34072 [!S_IROTH] (S_IROTH): New macro (dummy).
34073 [!S_IRGRP] (S_IRGRP): Likewise.
34075 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34077 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34078 conditional expression).
34080 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34082 Import from Gnulib.
34084 * gnulib/fnmatch.c: New file.
34085 * gnulib/fnmatch.h: Likewise.
34086 * gnulib/fnmatch_loop.c: Likewise.
34087 * gnulib/getopt.c: Likewise.
34088 * gnulib/getopt.h: Likewise.
34089 * gnulib/getopt1.c: Likewise.
34090 * gnulib/getopt_int.h: Likewise.
34091 * gnulib/gettext.h: Likewise.
34093 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34095 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34096 * normal/handler.c (read_handler_list): Likewise.
34098 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34102 * kern/command.c (grub_register_command_prio): Use
34103 grub_zalloc() instead of explicitly zeroing data.
34104 * kern/list.c: Include `<grub/mm.h>'.
34105 (grub_named_list_find): Replace `0' with `NULL'.
34106 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34107 (fs_module_list): Change type to `grub_named_list_t'. Update all
34109 * normal/dyncmd.c (read_command_list): Add space between function
34110 call and parenthesis.
34111 * normal/handler.c (read_handler_list): Likewise.
34113 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34115 * normal/auth.c (punishment_delay): Moved from here ...
34116 (grub_auth_strcmp): ... to here (inside function).
34118 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34120 * include/grub/list.h (struct grub_named_list): Remove `const'
34121 qualifier from `name'.
34122 (struct grub_prio_list): Likewise.
34124 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34126 * normal/auth.c: Include `<grub/time.h>'.
34127 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34129 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34131 * normal/auth.c (punishment_delay): New variable.
34132 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34133 (grub_auth_check_authentication): Punish failed login attempts with
34134 an incremental (2^N) delay.
34136 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34138 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34139 path with $(srcdir).
34141 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34143 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34145 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34147 * util/i386/coreboot/grub-mkrescue.in: New file.
34148 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34151 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34152 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34153 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34155 * util/mkisofs/defaults.h: New file.
34156 * util/mkisofs/eltorito.c: Likewise.
34157 * util/mkisofs/exclude.h: Likewise.
34158 * util/mkisofs/fnmatch.c: Likewise.
34159 * util/mkisofs/getopt.c: Likewise.
34160 * util/mkisofs/getopt1.c: Likewise.
34161 * util/mkisofs/hash.c: Likewise.
34162 * util/mkisofs/include/fctldefs.h: Likewise.
34163 * util/mkisofs/include/mconfig.h: Likewise.
34164 * util/mkisofs/include/prototyp.h: Likewise.
34165 * util/mkisofs/include/statdefs.h: Likewise.
34166 * util/mkisofs/iso9660.h: Likewise.
34167 * util/mkisofs/joliet.c: Likewise.
34168 * util/mkisofs/match.c: Likewise.
34169 * util/mkisofs/match.h: Likewise.
34170 * util/mkisofs/mkisofs.c: Likewise.
34171 * util/mkisofs/mkisofs.h: Likewise.
34172 * util/mkisofs/multi.c: Likewise.
34173 * util/mkisofs/name.c: Likewise.
34174 * util/mkisofs/rock.c: Likewise.
34175 * util/mkisofs/tree.c: Likewise.
34176 * util/mkisofs/write.c: Likewise.
34178 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34180 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34183 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34185 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34186 `grub-mkimage' (and use $0 when possible).
34188 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34190 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34191 error message for excessively large memory map.
34193 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34195 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34198 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34200 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34201 message for coreboot users.
34203 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34205 Fix build with GNU gold.
34207 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34208 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34209 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34211 * aclocal.m4: Likewise.
34213 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34215 * configure.ac (AC_PREREQ): Bump to 2.59d.
34216 * INSTALL: Make it more clear when Autoconf and Ruby are
34217 needed and when to run `./autogen.sh'.
34219 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34221 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34224 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34226 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34228 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34230 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34231 giving it to GNU Mach.
34233 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34235 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34236 GNU partition number to get internal GRUB partition number.
34238 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34240 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34241 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34243 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34245 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34246 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34249 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34251 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34253 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34257 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34258 `-isystem=$(srcdir)/include'.
34260 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34262 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34263 checked (grub-install doesn't currently rely on it).
34265 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34269 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34270 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34271 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34272 * conf/i386-ieee1275.rmk: Likewise.
34273 * conf/i386-pc.rmk: Likewise.
34274 * conf/powerpc-ieee1275.rmk: Likewise.
34275 * conf/sparc64-ieee1275.rmk: Likewise.
34276 * conf/x86_64-efi.rmk: Likewise.
34278 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34280 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34282 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34284 * include/grub/misc.h: Stop checking for APPLE_CC.
34286 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34288 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34289 doesn't cause an infinite call loop.
34291 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34293 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34296 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34298 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34300 * Makefile.in: Likewise.
34302 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34304 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34306 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34308 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34310 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34312 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34314 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34316 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34318 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34320 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34322 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34323 in $(MAKEINFO) invocation. This makes it clear in output that
34324 errors are being ignored.
34326 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34328 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34330 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34331 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34332 * conf/i386-ieee1275.rmk: Likewise.
34333 * conf/i386-pc.rmk: Likewise.
34334 * conf/powerpc-ieee1275.rmk: Likewise.
34335 * conf/sparc64-ieee1275.rmk: Likewise.
34336 * conf/x86_64-efi.rmk: Likewise.
34338 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34340 * util/grub-editenv.c (main): If only a command is given, use
34341 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34342 (usage): FILENAME is now optional and has a default.
34344 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34346 Improve grub-mkconfig performance when there are several menu
34347 entries on a single filesystem.
34349 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34350 prepare_grub_to_access_device.
34351 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34352 * util/grub.d/30_os-prober.in: Likewise.
34354 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34356 * util/grub.d/10_freebsd.in: Remove.
34357 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34358 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34360 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34362 * docs/grub.cfg: Fix example usage of *BSD loaders.
34364 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34366 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34367 grub_util_error() call.
34369 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34371 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34372 `reserved_first_sector' member.
34373 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34374 `reserved_first_sector' to 1.
34375 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34376 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34377 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34378 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34379 filesystems which begin at first sector.
34380 (options): New option --skip-fs-probe.
34381 (main): Handle --skip-fs-probe and pass it to setup().
34383 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34385 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34386 (memset): Fix function prototype.
34388 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34389 2009-10-25 Vasily Averin <vvs@parallels.com>
34391 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34392 `dirent.direntlen == 0'.
34394 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34396 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34398 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34400 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34402 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34403 `__trampoline_setup' and `__ucmpdi2'.
34404 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34405 that libgcc provides.
34407 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34409 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34410 * include/grub/sparc64/libgcc.h (memset): Likewise.
34411 * include/grub/misc.h (memset, memcmp): New function prototypes.
34413 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34415 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34417 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34419 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34421 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34422 * docs/grub.cfg: Compensate for recent change in multiboot
34423 loader (since 2009-08-14 it won't pass filename to payload).
34424 * util/grub.d/10_hurd.in: Likewise.
34426 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
34428 * config.guess: Update to latest version from config git
34430 * config.sub: Likewise.
34432 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34434 Fix build on sparc64.
34436 * configure.ac: Perform checks for libgcc symbols before
34437 adding `-nostdlib' to LDFLAGS.
34439 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34441 Let user specify OpenBSD root device.
34443 * loader/i386/bsd.c (openbsd_root): New variable.
34444 (openbsd_opts): New option 'root'.
34445 (OPENBSD_ROOT_ARG): New macro.
34446 (grub_openbsd_boot): Use 'openbsd_root'.
34447 (grub_cmd_openbsd): Fill 'openbsd_root'.
34449 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34451 * NEWS: Misc adjustments.
34453 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34455 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
34457 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34459 * configure.ac: Bump version to 1.97.
34461 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
34463 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
34464 -mno-3dnow on x86 architectures. Some toolchains enable these
34465 features by default, but they rely on registers that aren't enabled
34466 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
34468 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
34470 Make entry text a bit more readable.
34472 * util/grub.d/10_linux.in: Add `with' before `Linux'.
34474 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34476 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
34478 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34480 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
34483 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34485 * configure.ac: Add missing dollar.
34487 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34489 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
34491 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
34492 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
34494 * include/grub/sparc64/libgcc.h: Likewise. Use
34495 preprocessor conditionals.
34497 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
34499 * conf/common.rmk (grub-dumpbios): Remove rule.
34500 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
34501 * util/grub-dumpbios.in: Remove file.
34503 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
34505 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
34506 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
34508 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
34509 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
34512 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
34513 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
34514 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
34515 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
34518 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
34520 * term/tparm.c: Switch to GPLv3.
34522 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
34524 * include/grub/i386/cpuid.h: Add header protection.
34526 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
34528 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
34530 * include/grub/i386/cpuid.h: New file.
34531 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
34532 (has_longmode): Rename to ...
34533 (grub_cpuid_has_longmode): ... this. Update all users. Remove
34534 `static' attribute.
34535 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
34536 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
34537 on a CPU that doesn't implement AMD64 instruction set.
34539 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
34541 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
34542 that version.texi is rebuilt on version number changes.
34544 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
34546 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
34549 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
34551 * util/i386/pc/grub-install.in: Source
34552 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
34553 that the --grub-probe option will work.
34554 * util/sparc64/ieee1275/grub-install.in: Likewise.
34556 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
34558 * configure.ac: Bump version to 1.97~beta4.
34560 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
34562 Resync grub-mkdevicemap in x86_64-efi.
34564 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
34565 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
34566 `util/devicemap.c'.
34568 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
34570 * util/grub-editenv.c (create_envblk_file): Write new block with a
34571 .new suffix and then rename it into place, to ensure atomic
34574 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
34576 Do not automatically install headers.
34578 * Makefile.in (include_DATA): Remove. Update all users.
34580 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
34582 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
34583 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
34585 * util/osdetect.lua: Remove.
34586 * script/lua/lauxlib.c: Likewise.
34587 * script/lua/ldebug.c: Likewise.
34588 * script/lua/grub_main.c: Likewise.
34589 * script/lua/lauxlib.h: Likewise.
34590 * script/lua/ldebug.h: Likewise.
34591 * script/lua/ltablib.c: Likewise.
34592 * script/lua/liolib.c: Likewise.
34593 * script/lua/lstrlib.c: Likewise.
34594 * script/lua/lualib.h: Likewise.
34595 * script/lua/ldo.c: Likewise.
34596 * script/lua/ldump.c: Likewise.
34597 * script/lua/ldo.h: Likewise.
34598 * script/lua/loslib.c: Likewise.
34599 * script/lua/lundump.c: Likewise.
34600 * script/lua/grub_lib.c: Likewise.
34601 * script/lua/ldblib.c: Likewise.
34602 * script/lua/lundump.h: Likewise.
34603 * script/lua/lmem.c: Likewise.
34604 * script/lua/grub_lib.h: Likewise.
34605 * script/lua/lmathlib.c: Likewise.
34606 * script/lua/lstate.c: Likewise.
34607 * script/lua/ltm.c: Likewise.
34608 * script/lua/lvm.c: Likewise.
34609 * script/lua/lmem.h: Likewise.
34610 * script/lua/lstate.h: Likewise.
34611 * script/lua/ltm.h: Likewise.
34612 * script/lua/ltable.c: Likewise.
34613 * script/lua/lvm.h: Likewise.
34614 * script/lua/llex.c: Likewise.
34615 * script/lua/lgc.c: Likewise.
34616 * script/lua/grub_lua.h: Likewise.
34617 * script/lua/loadlib.c: Likewise.
34618 * script/lua/lfunc.c: Likewise.
34619 * script/lua/lopcodes.c: Likewise.
34620 * script/lua/lparser.c: Likewise.
34621 * script/lua/ltable.h: Likewise.
34622 * script/lua/llex.h: Likewise.
34623 * script/lua/lgc.h: Likewise.
34624 * script/lua/lfunc.h: Likewise.
34625 * script/lua/lbaselib.c: Likewise.
34626 * script/lua/lopcodes.h: Likewise.
34627 * script/lua/lparser.h: Likewise.
34628 * script/lua/lzio.c: Likewise.
34629 * script/lua/linit.c: Likewise.
34630 * script/lua/lobject.c: Likewise.
34631 * script/lua/llimits.h: Likewise.
34632 * script/lua/lstring.c: Likewise.
34633 * script/lua/lzio.h: Likewise.
34634 * script/lua/lapi.c: Likewise.
34635 * script/lua/lcode.c: Likewise.
34636 * script/lua/lua.h: Likewise.
34637 * script/lua/lobject.h: Likewise.
34638 * script/lua/lstring.h: Likewise.
34639 * script/lua/lapi.h: Likewise.
34640 * script/lua/lcode.h: Likewise.
34641 * script/lua/luaconf.h: Likewise.
34643 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
34645 * docs/grub.texi (Command-line and menu entry commands): Document
34646 date and echo commands.
34648 2009-09-24 Pavel Roskin <proski@gnu.org>
34650 * include/grub/kernel.h (struct grub_module_header): Remove
34651 `grub_module_header_types'. Make `type' unsigned. Make `size'
34652 32-bit on all platforms.
34653 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
34654 8-bit field. Use grub_host_to_target32() for `size'.
34655 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
34656 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
34657 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
34659 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34661 Fix "lost keypress" bug in at_keyboard.
34663 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
34664 Checks for readyness of input buffer (without flushing it).
34665 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
34666 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
34668 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34670 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
34671 size check within GRUB_MACHINE_PCBIOS section.
34673 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34675 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
34677 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
34678 KEYBOARD_ISREADY check.
34679 (grub_at_keyboard_checkkey): Rename to ...
34680 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
34681 Remove gratuitous cast.
34683 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
34685 * configure.ac: Call AC_PROG_MKDIR_P.
34686 * Makefile.in (docs/stamp-vti): Create docs directory. Create
34687 version.texi in $(builddir) rather than $(srcdir).
34688 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
34689 to makeinfo's @include search path.
34691 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
34693 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
34695 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
34697 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
34700 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
34702 Build info documentation. Some code borrowed from Automake.
34704 * configure.ac: Check for makeinfo.
34705 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
34706 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
34708 (MOSTLYCLEANFILES): Add vti.tmp.
34709 (docs/version.texi, docs/stamp-vti): Update automatically.
34710 (docs/grub.info): Build info documentation. Use --force and ignore
34712 (all-local): Add $(INFOS).
34713 (install-local): Install info files.
34714 (uninstall): Uninstall info files.
34715 * docs/version.texi: Remove from revision control. This file is
34716 automatically generated on build now.
34717 * gendistlist.sh: Add `*.info'.
34719 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
34721 * kern/term.c: Fix indentation.
34723 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
34725 * util/hostdisk.c: Fix a comment.
34727 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
34729 Fix regression introduced in r2539.
34731 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
34734 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
34736 * util/grub.d/30_os-prober.in: Don't throw away stderr from
34737 os-prober. Under normal operation, it does not print anything to
34738 stderr; if it does, we need to debug it, and throwing away stderr
34739 makes that excessively difficult.
34741 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
34743 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
34745 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
34747 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
34748 AC_LANG_PROGRAM from autoconf.
34749 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
34750 prototypes (fixes warning).
34752 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
34753 `--disable-werror' was used.
34755 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
34757 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
34758 uninitialized `lastaddr'.
34760 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
34762 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
34764 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
34766 * commands/test.c (get_fileinfo): Return immediately if
34767 grub_fs_probe fails.
34769 2009-09-14 José Martínez <xosemp@gmail.com>
34771 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
34773 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
34775 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
34778 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
34780 * configure.ac: Remove --enable-grub-pe2elf. Only build
34781 grub-pe2elf when needed by the build system itself.
34782 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
34784 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34786 * configure.ac: Bump version to 1.97~beta3.
34787 * docs/version.texi: Likewise.
34789 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34791 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
34792 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
34794 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
34795 (grub_linux_setup_video): ... to here (with some adjustments).
34797 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34799 Fix memory corruption issue (spotted by Colin Watson).
34801 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
34802 causing returned size to be stored in an incorrect memory location.
34803 Fix use of uninitialized value when storing the returned size.
34805 2009-09-12 Yves Blusseau <blusseau@zetam.org>
34807 Change clean rules to properly remove files
34809 * genmk.rb: add new clean rules
34810 * Makefile.in (clean): add the new targets
34811 (mostlyclean): likewise
34813 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
34815 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
34817 * fs/ntfs.c (init_file): Understand 64-bit sizes for
34818 non-resident files.
34820 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
34822 * configure.ac: Don't look for help2man when cross-compiling. Fixes
34823 part of bug #27349.
34825 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
34827 * util/grub-mkconfig.in: Make the created config mode 400 and
34828 print a warning if it fails.
34830 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
34832 * util/grub.d/40_custom.in: Ask user to type custom entries below
34833 comment, rather than below 'exec tail' line.
34835 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
34837 * util/grub.d/40_custom.in: Make sure that the explanatory text is
34838 visible in grub.cfg.
34840 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
34842 * util/grub.d/40_custom.in: Make it a little clearer how to use this
34845 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
34847 * docs/grub.cfg: Add an example menu entry for memtest86+.
34849 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
34851 * config.guess: Update to latest version from config git.
34852 * config.sub: Likewise.
34854 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
34856 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
34857 unknown-command case. Fixes bug #27320.
34859 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
34861 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
34862 `help' if the command exists.
34864 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
34866 * INSTALL: Require GCC 4.1.3 or later.
34868 2009-09-06 Yves Blusseau <blusseau@zetam.org>
34870 * Makefile.in (RMKFILES): add i386-qemu.rmk
34871 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
34872 $(srcdir)/stamp-h.in
34874 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
34876 * util/grub-probe.c (probe): Comment out buggy codepath, which
34877 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
34878 should be re-enabled after 1.97.
34880 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
34882 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
34885 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
34887 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
34888 unnecessary calls to grub_error.
34890 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
34892 * NEWS: Mention `keystatus' and Unicode fonts.
34894 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
34896 * configure.ac: Bump version to 1.97~beta2.
34897 * docs/version.texi: Likewise.
34899 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
34901 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
34902 containing unwind information in some cases where it previously did
34903 not. Use -fno-dwarf2-cfi-asm if available to restore the old
34904 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
34907 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
34909 Embedding loadenv module into grub-emu
34911 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
34913 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
34914 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
34915 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
34916 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
34917 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
34918 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
34920 2009-09-03 Magnus Granberg <zorry@ume.nu>
34922 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
34923 include -fPIE in the default specs.
34924 * configure.ac: Check if pie_possible is yes and add -fno-PIE
34927 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
34929 * INSTALL: Note that GNU Bison 2.3 or later is required.
34931 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
34933 * kern/i386/pc/startup.S: Fix typo.
34935 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
34937 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
34940 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
34942 * docs/grub.texi (Naming convention): Describe one-based partition
34944 (Device syntax): Likewise.
34945 (File name syntax): Likewise.
34946 (Block list syntax): Likewise.
34947 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
34949 (File name syntax): Likewise.
34950 (Command-line and menu entry commands): Document acpi, blocklist,
34951 crc, export, insmod, keystatus, ls, set, and unset commands.
34953 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
34955 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
34956 to avoid implying that only one of --shift, --ctrl, or --alt may be
34959 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
34961 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
34962 rather than comparing against S_IFREG, which will almost never work.
34964 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
34966 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
34967 (write_blocklists): Likewise.
34969 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
34971 * script/lua/grub_lua.h (fputs): Supply a format string as the first
34972 argument to grub_printf.
34974 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
34976 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
34979 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
34981 * kern/file.c (grub_file_read): Spelling fix
34983 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
34985 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
34986 loading of headers in some cases.
34988 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
34990 * configure.ac: Bump version to 1.97~beta1.
34991 * docs/version.texi: Likewise.
34993 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
34995 * include/grub/i386/xnu.h: Add license header.
34996 include grub/err.h explicitly.
34998 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35000 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35001 to `ufs' in the vfs.root.mountfrom kernel parameter.
35003 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35005 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35007 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35008 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35010 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35011 `ARRAY_SIZE' macro.
35013 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35015 * kern/file.c (grub_file_read): Check offset.
35016 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35017 * fs/jfs.c (grub_jfs_read_file): Likewise.
35018 * fs/ntfs.c (grub_ntfs_read): Likewise.
35019 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35020 * fs/minix.c (grub_minix_read_file): Correct offset check.
35021 * fs/ufs.c (grub_ufs_read_file): Likewise.
35023 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35025 * term/i386/pc/console.c (bios_data_area): Cast
35026 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35028 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35030 1-bit optimised blitters.
35032 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35034 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35035 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35036 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35037 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35038 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35039 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35040 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35042 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35043 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35044 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35045 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35046 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35047 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35048 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35050 * video/video.c (grub_video_get_blit_format): Return
35051 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35053 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35055 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35056 the first argument to grub_printf.
35058 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35059 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35061 Add `getkeystatus' terminal method. Add a new `keystatus' command
35064 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35065 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35066 modifier key bitmasks.
35067 (struct grub_term_input): Add `getkeystatus' member.
35068 (grub_getkeystatus): Add prototype.
35069 * kern/term.c (grub_getkeystatus): New function.
35071 * include/grub/i386/pc/memory.h
35072 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35073 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35075 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35076 (grub_console_term_input): Set `getkeystatus' member.
35077 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35079 (grub_usb_keyboard_getreport): Likewise.
35080 (grub_usb_keyboard_checkkey): Likewise.
35081 (grub_usb_keyboard_getkeystatus): New function.
35082 (grub_usb_keyboard_term): Set `getkeystatus' member.
35084 * commands/keystatus.c: New file.
35085 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35086 (keystatus_mod_SOURCES): New variable.
35087 (keystatus_mod_CFLAGS): Likewise.
35088 (keystatus_mod_LDFLAGS): Likewise.
35089 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35090 commands/keystatus.c.
35091 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35092 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35093 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35094 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35095 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35096 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35098 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35100 Split befs.mod and afs.mod into *_be.mod and *.mod
35102 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35103 (grub_fstest_SOURCES): Likewise.
35104 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35105 (afs_be_mod_SOURCES): New variable.
35106 (afs_be_mod_CFLAGS): Likewise.
35107 (afs_be_mod_LDFLAGS): Likewise.
35108 (befs_be_mod_SOURCES): Likewise.
35109 (befs_be_mod_CFLAGS): Likewise.
35110 (befs_be_mod_LDFLAGS): Likewise.
35111 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35112 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35113 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35114 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35115 (grub_emu_SOURCES): Likewise.
35116 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35117 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35118 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35119 * fs/afs_be.c: New file.
35120 * fs/befs_be.c: New file.
35121 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35122 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35123 (U16): Replaced with ...
35124 (grub_afs_to_cpu16): ...this. All users updated.
35125 (U32): Replaced with ...
35126 (grub_afs_to_cpu32): ...this. All users updated.
35127 (U64): Replaced with ...
35128 (grub_afs_to_cpu64): ...this. All users updated.
35129 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35130 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35131 (grub_afs_validate_sblock): Check only one endianness.
35132 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35133 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35134 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35135 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35136 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35137 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35138 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35139 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35141 2009-08-26 Bean <bean123ch@gmail.com>
35143 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35145 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35146 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35147 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35149 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35151 NetBSD memory map support.
35153 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35154 (grub_netbsd_btinfo_mmap_header): New structure.
35155 (grub_netbsd_btinfo_mmap_entry): Likewise.
35156 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35158 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35160 Enable bsd.mod on coreboot.
35162 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35163 (bsd_mod_SOURCES): New variable.
35164 (bsd_mod_CFLAGS): Likewise.
35165 (bsd_mod_LDFLAGS): Likewise.
35166 (bsd_mod_ASFLAGS): Likewise.
35167 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35168 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35170 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35172 Cleanup NetBSD root support.
35174 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35175 grub_bsd_get_device.
35178 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35180 * util/grub.d/00_header.in: Move check for the video backend of
35181 gfxterm from here ...
35182 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35183 a suitable video backend.
35185 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35187 Fix breakage in grub-setup.
35189 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35190 "msdos_partition_map".
35192 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35194 Fix breakage in normal/auth.c.
35196 * normal/auth.c (grub_iswordseparator): New function.
35198 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35200 Authentication support.
35202 * commands/password.c: New file.
35203 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35204 (password_mod_SOURCES): New variable.
35205 (password_mod_CFLAGS): Likewise.
35206 (password_mod_LDFLAGS): Likewise.
35207 (normal_mod_SOURCES): Add normal/auth.c.
35208 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35210 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35211 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35212 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35213 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35214 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35215 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35216 * include/grub/auth.h: New file.
35217 * include/grub/err.h (grub_err_t): New enum value
35218 GRUB_ERR_ACCESS_DENIED.
35219 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35221 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35222 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35224 * normal/auth.c: New file.
35225 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35226 (grub_cmdline_run): Don't allow to go to command line without
35228 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35229 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35230 menuentry without superuser rights.
35231 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35232 user isn't a superuser.
35234 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35236 Save space by inlining misc.c functions.
35238 * kern/misc.c (grub_iswordseparator): Made static.
35239 * kern/misc.c (grub_strcat): Moved from here ...
35240 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35241 * kern/misc.c (grub_strncat): Moved from here ...
35242 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35243 * kern/misc.c (grub_strcasecmp): Moved from here ...
35244 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35245 * kern/misc.c (grub_strncasecmp): Moved from here ...
35246 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35247 * kern/misc.c (grub_isalpha): Moved from here ...
35248 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35249 * kern/misc.c (grub_isdigit): Moved from here ...
35250 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35251 * kern/misc.c (grub_isgraph): Moved from here ...
35252 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35253 * kern/misc.c (grub_tolower): Moved from here ...
35254 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35256 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35258 * script/sh/function.c (grub_script_function_find): Cut error message
35259 not to flood terminal.
35260 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35262 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35264 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35266 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35267 `report' grub_uint8_t *.
35268 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35269 Use a 50-millisecond timeout rather than just repeating
35270 grub_usb_keyboard_getreport 50 times.
35271 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35273 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35275 Rename *_partition_map to part_*
35277 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35278 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35279 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35280 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35282 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35284 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35285 * util/grub-probe.c (probe_partmap): Don't transform partition name
35286 to get module name.
35288 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35290 Fix OpenBSD and NetBSD support.
35292 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35293 memory address conflict.
35294 (OPENBSD_MMAP_ACPI): New definition.
35295 (OPENBSD_MMAP_NVS): Likewise.
35296 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35297 and OPENBSD_MMAP_NVS.
35298 Add memory map terminator
35299 Explicit cast when calling grub_unix_real_boot.
35300 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35302 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35304 Let user specify NetBSD root device.
35306 * loader/i386/bsd.c (netbsd_root): New variable.
35307 (netbsd_opts): New option 'root'.
35308 (NETBSD_ROOT_ARG): New macro.
35309 (grub_netbsd_boot): Use 'netbsd_root'.
35310 (grub_bsd_unload): Free 'netbsd_root'.
35311 (grub_cmd_netbsd): Fill 'netbsd_root'.
35313 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35315 Support for 64-bit NetBSD.
35317 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35318 point when booting non-FreeBSD.
35320 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35322 Support --no-smp and --no-acpi for NetBSD.
35324 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35325 (NETBSD_AB_NOACPI): Likewise.
35326 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35327 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35329 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35331 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35333 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35334 errors. Call grub_error when needed.
35336 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35338 * commands/search.c (search_fs): Try searching without autoload first.
35339 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35340 filesystem module explicitly for faster booting.
35342 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35344 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35346 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35348 * util/grub.d/30_os-prober.in: Disable os-prober if
35349 `GRUB_DISABLE_OS_PROBER' was set to true.
35351 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35353 * partmap/pc.c: Rename to ...
35354 * partmap/msdos.c: ... this. Update all users.
35355 (grub_pc_partition_map): Rename to ...
35356 (grub_msdos_partition_map): ... this. Update all users.
35358 * parttool/pcpart.c: Rename to ...
35359 * parttool/msdospart.c: ... this. Update all users.
35361 * include/grub/pc_partition.h: Rename to ...
35362 * include/grub/msdos_partition.h: ... this. Update all users.
35363 (grub_pc_partition_bsd_entry): Rename to ...
35364 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35365 (grub_pc_partition_disk_label): Rename to ...
35366 (grub_msdos_partition_disk_label): ... this. Update all users.
35367 (grub_pc_partition_entry): Rename to ...
35368 (grub_msdos_partition_entry): ... this. Update all users.
35369 (grub_pc_partition_mbr): Rename to ...
35370 (grub_msdos_partition_mbr): ... this. Update all users.
35371 (grub_pc_partition): Rename to ...
35372 (grub_msdos_partition): ... this. Update all users.
35373 (grub_pc_partition_is_empty): Rename to ...
35374 (grub_msdos_partition_is_empty): ... this. Update all users.
35375 (grub_pc_partition_is_extended): Rename to ...
35376 (grub_msdos_partition_is_extended): ... this. Update all users.
35377 (grub_pc_partition_is_bsd): Rename to ...
35378 (grub_msdos_partition_is_bsd): ... this. Update all users.
35380 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35381 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35382 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35383 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35384 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35385 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35386 (gpt_mod_LDFLAGS): Rename to ...
35387 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35388 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35389 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35390 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35391 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35392 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35393 (part_gpt_mod_LDFLAGS): ... this.
35394 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35395 `pcpart.mod' to `msdospart.mod'.
35396 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35398 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35399 (msdospart_mod_LDFLAGS): ... this.
35401 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35403 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35404 (openbsd_opts): Likewise.
35405 (netbsd_opts): Likewise.
35406 (freebsd_flags): Added 0 terminator.
35407 (openbsd_flags): Likewise.
35408 (netbsd_flags): Likewise.
35409 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35410 (grub_cmd_freebsd): Transformed into extended command.
35411 (grub_cmd_openbsd): Likewise.
35412 (grub_cmd_netbsd): Likewise.
35413 (cmd_freebsd): Changed type to grub_extcmd_t.
35414 (cmd_openbsd): Likewise.
35415 (cmd_netbsd): Likewise.
35416 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35417 grub_cmd_openbsd as extended commands.
35418 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35419 cmd_netbsd and cmd_openbsd
35421 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35423 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35425 2009-08-21 Pavel Roskin <proski@gnu.org>
35427 * Makefile.in (install-local): When checking if a file is in the
35428 build directory, use "test -e" to detect symlinks.
35430 * Makefile.in (install-local): Remove all files in
35431 $(DESTDIR)$(pkglibdir) before installing new files there.
35433 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35435 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35438 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35440 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35441 explicitly specified by the user.
35443 2009-08-18 Pavel Roskin <proski@gnu.org>
35445 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
35446 grub_uint8_t pointer for data.
35447 * include/grub/fbutil.h (struct grub_video_fbblit_info):
35449 * video/fb/fbutil.c: Remove unnecessary casts.
35451 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35455 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
35456 (grub_vbe_set_video_mode): Save active mode info
35457 only after setting the mode.
35458 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
35461 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35463 Rename variables for clarity.
35465 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
35466 (active_vbe_mode_info): ... this. All users updated.
35467 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
35469 (initial_mode): Rename to ...
35470 (initial_vbe_mode): ... this. All users updated.
35471 (mode_in_use): Rename to ..
35472 (vbe_mode_in_use): ... this. All users updated.
35473 (mode_list): Rename to ..
35474 (vbe_mode_list): ... this. All users updated.
35475 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
35476 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
35477 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
35478 'mode_list_size' to 'vbe_mode_list_size'.
35479 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
35480 'best_mode_info' to 'best_vbe_mode_info' and
35481 'best_mode' to 'best_vbe_mode'
35483 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35485 Remove duplicate grub_video_fb_get_video_ptr.
35487 * include/grub/fbutil.h (get_data_ptr): Rename to ...
35488 (grub_video_fb_get_video_ptr): ... this.
35489 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
35490 * video/fb/fbutil.c: Add comment about addressing.
35491 (get_data_ptr): Rename to ...
35492 (grub_video_fb_get_video_ptr): ... this. All users updated.
35493 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
35495 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35497 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
35498 grub_dprintf() that was just added.
35500 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35502 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
35503 (DEFAULT_VIDEO_MODE): Remove macros.
35504 (grub_linux_boot): Remove assumption that Linux has FB support,
35505 and use "text" as default video mode.
35507 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
35509 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
35511 * fs/fat.c (grub_fat_read_data): Likewise.
35513 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35515 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
35517 (grub_module): Likewise.
35519 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35521 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
35522 mbi->cmdline but free playground.
35524 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35526 Handle group offset on UFS1.
35528 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
35529 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
35531 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35533 Split ufs.mod into ufs1.mod and ufs2.mod.
35535 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
35536 (grub_fstest_SOURCES): Likewise.
35537 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
35538 (ufs_mod_SOURCES): Remove.
35539 (ufs_mod_CFLAGS): Likewise.
35540 (ufs_mod_LDFLAGS): Likewise.
35541 (ufs1_mod_SOURCES): New variable.
35542 (ufs1_mod_CFLAGS): Likewise.
35543 (ufs1_mod_LDFLAGS): Likewise.
35544 (ufs2_mod_SOURCES): New variable.
35545 (ufs2_mod_CFLAGS): Likewise.
35546 (ufs2_mod_LDFLAGS): Likewise.
35547 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
35548 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
35550 (grub_emu_SOURCES): Likewise.
35551 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35552 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35553 (grub_setup_SOURCES): Likewise.
35554 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35555 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
35556 (grub_setup_SOURCES): Likewise.
35557 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
35559 * fs/ufs2.c: New file.
35560 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
35562 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35566 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
35567 subsystem at the end.
35568 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
35569 (video_fb_mod_SOURCES): New variable.
35570 (video_fb_mod_CFLAGS): Likewise.
35571 (video_fb_mod_LDFLAGS): Likewise.
35572 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
35573 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
35574 * video/i386/pc/vbeblit.c: Moved from here ...
35575 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
35576 * video/i386/pc/vbefill.c: Moved from here ...
35577 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
35578 * video/i386/pc/vbeutil.c: Moved from here ...
35579 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
35580 * include/grub/i386/pc/vbeblit.h: Moved from here ...
35581 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
35582 * include/grub/i386/pc/vbefill.h: Moved from here ...
35583 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
35584 * include/grub/i386/pc/vbeutil.h: Moved from here ...
35585 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
35586 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
35587 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
35588 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
35589 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
35590 (grub_video_adapter): Added 'get_info_and_fini'.
35591 (grub_video_get_info_and_fini): New prototype.
35592 (grub_video_set_mode): make modestring const char *.
35593 * loader/i386/linux.c (grub_linux_setup_video): Use
35594 grub_video_get_info_and_fini.
35595 (grub_linux_boot): Move modesetting just before booting.
35596 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
35597 grub_video_get_info_and_fini.
35598 * video/i386/pc/vbe.c: Moved framebuffer part ...
35599 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
35600 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
35601 grub_video_fbstd_colors and grub_video_fb_set_palette.
35602 (grub_video_vbe_init): Clear 'framebuffer' variable and use
35603 grub_video_fb_init.
35604 (grub_video_vbe_fini): Use grub_video_fb_fini.
35605 (grub_video_vbe_setup): Use framebuffer.render_target instead of
35606 render_target and use grub_video_fb_set_active_render_target and
35607 grub_video_fb_set_palette.
35608 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
35609 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
35610 (grub_video_vbe_adapter): Use framebuffer.
35611 * video/video.c (grub_video_get_info_and_fini): New function.
35612 (grub_video_set_mode): Make modestring const char *.
35613 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
35614 values are already initialised.
35616 2009-08-14 Pavel Roskin <proski@gnu.org>
35618 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
35620 * boot/i386/pc/diskboot.S: Likewise.
35621 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
35622 sectors allow compilation on MacOSX.
35623 * conf/i386-pc.rmk: Enable unconditional compilation of
35626 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
35628 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
35629 * util/grub.d/00_header.in: Enter interruptible sleep if
35630 GRUB_HIDDEN_TIMEOUT is set.
35632 2009-08-13 Yves Blusseau <blusseau@zetam.org>
35634 * include/grub/symbol.h: Add the LOCAL macro.
35635 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
35636 starting with "L_".
35638 2009-08-13 Pavel Roskin <proski@gnu.org>
35640 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
35641 any modern compilers we support.
35643 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
35644 Use local labels starting with "L_" so that Apple assembler
35645 knows they are local.
35647 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
35649 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
35650 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
35651 (bsd_kernel_types): ... this enum.
35653 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
35654 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
35655 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
35657 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
35658 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
35659 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
35662 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
35664 * util/grub-dumpdevtree: Moved from here ...
35665 * util/i386/efi/grub-dumpdevtree: ... to here.
35666 (hexify): New function. Converts a string to its hex version.
35667 Generate hex versions of "efi" and "device-properties" by calling
35668 hexify() on the ASCII strings rather than by hardcoding numbers.
35670 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
35672 * fs/jfs.c: Update copyright year.
35674 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
35676 * util/grub.d/00_header.in: Fix a comment.
35677 * util/grub.d/10_linux.in: Likewise.
35678 * util/grub.d/10_windows.in: Likewise.
35679 * util/grub.d/10_hurd.in: Likewise.
35681 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
35683 * util/grub-mkconfig.in: Allow the user to specify the used font
35686 2009-08-08 Pavel Roskin <proski@gnu.org>
35688 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
35689 available, xfs.mod needs it now.
35691 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
35692 the "g" modifier in sed when the intention is to strip something
35693 once. This fixes comparison of kernels with multiple dashes.
35695 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
35696 on it. Add missing space before closing bracket. Fix
35697 misleading formatting.
35699 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35701 * docs/grub.texi: Major overhaul. Remove all sections that are
35702 specific to GRUB Legacy, or mostly composed of Legacy-specific
35705 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35707 * docs/version.texi: New file. Provides version information for
35710 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35712 * docs/grub.texi: Update CVS information to SVN.
35713 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
35715 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35717 * util/grub-mkconfig.in: Remove a wrong `fi'.
35719 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35721 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
35722 (grub_jfs_uuid): New function.
35723 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
35725 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35727 * util/grub-mkconfig_lib.in (font_path): Move the functionality
35729 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
35730 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
35732 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35734 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
35735 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
35738 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
35739 not just "vmlinu[zx]".
35740 Moved from here ...
35741 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
35744 * util/grub.d/10_linux.in (find_latest): Moved from here ...
35745 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
35748 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35750 * util/grub.d/10_freebsd.in: Use an absolute device path for
35751 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
35753 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
35755 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
35756 handling of multiple abstraction modules.
35758 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
35760 Fix a bug resulting in black screen when loading Linux using a
35763 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
35766 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
35767 (grub_vbe_bios_getset_dac_palette_width): New function.
35768 (grub_vbe_bios_get_dac_palette_width)
35769 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
35770 grub_vbe_bios_getset_dac_palette_width()).
35772 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
35773 check for return status.
35774 (grub_vbe_get_video_mode_info): When getting information for a packed
35775 mode (<= 8 bpp), obtain DAC palette width using
35776 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
35777 {red,green,blue}_mark_size.
35779 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
35781 * commands/search.c (options): Fix help output to match actual code.
35783 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
35785 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
35788 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
35790 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
35791 on XFS or ReiserFS.
35793 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
35795 Support Apple partition map with sector size different from 512 bytes.
35797 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
35798 (apple_partition_map_iterate): Respect 'aheader.blocksize'
35799 and 'apart.partmap_size'.
35801 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
35802 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
35806 * commands/i386/cpuid.c (options): New variable.
35807 (grub_cmd_cpuid): Return real error.
35808 (GRUB_MOD_INIT(cpuid)): Declare options.
35810 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
35812 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
35815 2009-07-31 Bean <bean123ch@gmail.com>
35817 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
35819 (grub_fshelp_node): Move inode field to the end.
35820 (grub_xfs_data): Remove inode field.
35821 (grub_xfs_inode_block): Calculate inode size using sblock.
35822 (grub_xfs_inode_offset): Likewise.
35823 (grub_xfs_read_inode): Calculate inode size using sblock.
35824 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
35825 (grub_xfs_iterate_dir): Calculate inode size using sblock.
35826 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
35827 to match inode size.
35828 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
35829 not accessible when data is null.
35830 (grub_xfs_open): Likewise.
35832 2009-07-31 Bean <bean123ch@gmail.com>
35834 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
35835 Don't change pv->disk if it's already set.
35837 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
35838 (grub_raid_register): ... here.
35839 (grub_raid_rescan): Removed.
35841 * include/grub/raid.h (grub_raid_rescan): Removed.
35843 * util/grub-fstest.c: Remove include file <grub/raid.h>.
35844 (fstest): Replace grub_raid_rescan with module fini function followed
35847 * util/grub-probe.c: Add include file <grub/raid.h>.
35848 (probe_raid_level): New function.
35849 (probe): Detect abstraction by walking the disk device, support two
35850 level of abstraction (LVM on RAID) when detecting partition map.
35852 2009-07-31 Pavel Roskin <proski@gnu.org>
35854 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
35855 to grub_zalloc(), it was erroneous.
35856 Reported by Bean <bean123ch@gmail.com>
35858 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
35860 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
35861 embedding zone, not only the first one.
35863 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
35865 * term/gfxterm.c (clear_char): New function.
35866 (grub_virtual_screen_setup): Use clear_char.
35867 (scroll_up): Likewise.
35868 (grub_virtual_screen_cls): Likewise.
35870 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
35872 * util/deviceiter.c (get_acceleraid_disk_name): New static
35874 (grub_util_iterate_devices): Handle Accelraid devices.
35875 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
35877 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
35879 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
35880 separator for the suggested gfxpayload string (';' collides with the
35881 parser and needs escaping).
35883 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
35885 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
35886 Clear direction flag before jumping to OS.
35887 (grub_multiboot2_real_boot): Likewise.
35889 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
35891 * util/i386/pc/grub-install: Fix parsing of --disk-module
35894 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
35896 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
35899 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
35901 * util/grub-mkconfig.in (package_version): New variable.
35902 Use it do display the version.
35904 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
35906 * kern/file.c (grub_file_open): Revert to previous check with
35909 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
35911 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
35912 from help line. It's out of sync with code.
35914 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
35916 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
35917 entries on failed boot.
35919 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
35921 * kern/file.c (grub_file_open): Fix an error check.
35923 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
35925 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
35926 partition map couldn't be identified.
35928 2009-07-23 Pavel Roskin <proski@gnu.org>
35930 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
35931 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
35932 case of little endian words becomes just an optimization.
35933 Respect const modifier.
35934 (md5_final): Use code that doesn't depend on endianness.
35936 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
35937 to avoid loss of upper bits if align is unsigned and shorter
35940 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
35942 UUID support for UFS
35944 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
35945 (grub_ufs_uuid): New function.
35946 (grub_ufs_fs): add .uuid
35948 2009-07-21 Pavel Roskin <proski@gnu.org>
35950 * kern/dl.c (grub_dl_check_header): Make static.
35952 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
35954 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
35955 add drivemap for Vista. It breaks Windows 7.
35957 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
35959 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
35962 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35966 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
35967 (grub_fstest_SOURCES): Likewise.
35968 (pkglib_MODULES): Add befs.mod.
35969 (befs_mod_SOURCES): New variable.
35970 (befs_mod_CFLAGS): Likewise.
35971 (befs_mod_LDFLAGS): Likewise.
35972 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35973 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35974 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35975 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35976 (grub_setup_SOURCES): Likewise.
35977 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35978 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35979 (grub_setup_SOURCES): Likewise.
35980 * fs/befs.c: New file.
35981 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
35982 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
35983 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
35984 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
35985 (B_KEY_INDEX_ALIGN): New declaration.
35986 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
35987 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
35988 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
35989 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
35990 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
35991 (grub_afs_mount) [MODE_BFS]: Likewise.
35992 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
35993 (grub_afs_fs): Use GRUB_AFS_FSNAME
35994 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
35995 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
35996 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
35997 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
35999 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36001 * util/getroot.c (find_root_device): Add support for MacOSX.
36002 * util/hostdisk.c: Likewise.
36004 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36006 * font/font.c (find_glyph): Check whether a font is present to avoid
36007 segmentation fault.
36009 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36011 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36013 2009-07-20 Pavel Roskin <proski@gnu.org>
36015 * configure.ac: Trim excessively wordy excuses.
36017 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36019 Add symlink, mtime and label support to AtheFS.
36021 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36022 (grub_afs_iterate_dir): Handle symlinks.
36023 (grub_afs_open): Use grub_afs_read_symlink.
36024 (grub_afs_dir): Likewise.
36026 (grub_afs_label): New function.
36027 (grub_afs_fs): Add grub_afs_label.
36028 (grub_afs_read_symlink): New function.
36030 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36032 Fix AtheFS support.
36034 * fs/afs.c: Fix comments style.
36035 (grub_afs_blockrun): Declare as packed.
36036 (grub_afs_datastream): Likewise.
36037 (grub_afs_bnode): Likewise.
36038 (grub_afs_btree): Likewise.
36039 (grub_afs_sblock): Likewise.
36040 Declare `name' as char.
36041 (grub_afs_inode): Declare as packed.
36042 Change void *vnode to grub_uint32_t unused.
36043 (grub_afs_iterate_dir): Check that key_size is positive.
36044 (grub_afs_mount): Don't read superblock twice.
36045 (grub_afs_dir): Don't free node in case of error,
36046 grub_fshelp_find_file already handles this.
36047 (grub_afs_open): Likewise.
36049 2009-07-19 Pavel Roskin <proski@gnu.org>
36051 * Makefile.in: Remove LIBLZO and enable_lzo.
36052 * conf/i386-pc.rmk: Remove lzo support.
36053 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36054 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36056 * kern/i386/pc/lzo1x.S: Remove.
36057 * kern/i386/pc/startup.S: Remove lzo support.
36058 * util/i386/pc/grub-mkimage.c: Likewise.
36060 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36062 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36063 * fs/xfs.c (grub_xfs_dir): Likewise.
36064 * fs/afs.c (grub_afs_dir): Likewise.
36065 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36066 (grub_iso9660_open): Likewise.
36067 * fs/jfs.c (grub_jfs_open): Likewise.
36068 * fs/ext2.c (grub_ext2_dir): Likewise.
36069 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36070 * script/sh/lexer.c (grub_script_yylex): Likewise.
36072 2009-07-16 Pavel Roskin <proski@gnu.org>
36074 * configure.ac: Never add "-c" to CFLAGS.
36076 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36078 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36079 grub_cv_cc_efiemu should be used.
36081 * configure.ac: Typo fixes.
36083 * kern/mm.c (grub_zalloc): New function.
36084 (grub_debug_zalloc): Likewise.
36085 * include/grub/mm.h: Declare grub_zalloc() and
36086 grub_debug_zalloc().
36087 * util/misc.c (grub_zalloc): New function.
36088 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36089 instead of grub_malloc(), remove unneeded initializations.
36090 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36091 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36092 * commands/parttool.c (grub_cmd_parttool): Likewise.
36093 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36094 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36095 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36096 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36097 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36098 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36099 (grub_cmd_efiemu_pnvram): Likewise.
36100 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36101 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36102 (grub_iso9660_iterate_dir): Likewise.
36103 * fs/jfs.c (grub_jfs_opendir): Likewise.
36104 * fs/ntfs.c (list_file): Likewise.
36105 (grub_ntfs_mount): Likewise.
36106 * kern/disk.c (grub_disk_open): Likewise.
36107 * kern/dl.c (grub_dl_load_core): Likewise.
36108 * kern/elf.c (grub_elf_file): Likewise.
36109 * kern/env.c (grub_env_context_open): Likewise.
36110 (grub_env_set): Likewise.
36111 (grub_env_set_data_slot): Likewise.
36112 * kern/file.c (grub_file_open): Likewise.
36113 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36114 * loader/i386/multiboot.c (grub_module): Likewise.
36115 * loader/xnu.c (grub_xnu_create_key): Likewise.
36116 (grub_xnu_create_value): Likewise.
36117 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36118 (read_config_file): Likewise.
36119 * normal/menu_entry.c (make_screen): Likewise.
36120 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36121 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36122 * script/sh/script.c (grub_script_parse): Likewise.
36123 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36124 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36125 * video/readers/png.c (grub_png_output_byte): Likewise.
36126 (grub_video_reader_png): Likewise.
36128 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36130 Enable all targets that can be built by default
36132 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36133 grub-mkfont and grub-fstest if they can be built
36135 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36137 Fix hang and segmentation fault in grub-emu-usb
36139 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36140 * util/usb.c (grub_libusb_devices): likewise
36141 (grub_libusb_init): rename to ...
36142 (GRUB_MOD_INIT (libusb)):...this
36143 (grub_libusb_fini): rename to ..
36144 (GRUB_MOD_FINI (libusb)):...this
36145 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36146 * include/grub/disk.h (grub_raid_init): removed, it's useless
36147 (grub_raid_fini): likewise
36148 (grub_lvm_init): likewise
36149 (grub_lvm_fini): likewise
36150 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36153 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36157 * Makefile.in (LIBUSB): new macro
36158 * genmk.rb (Utility/print_tail): new method
36159 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36160 (top level): call util.print_tail at the end.
36162 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36164 Make FreeBSD accept zpool.cache
36166 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36167 type is /boot/zfs/zpool.cache
36169 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36173 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36174 correct wrong typedef
36175 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36177 2009-07-15 Pavel Roskin <proski@gnu.org>
36179 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36180 * kern/disk.c (struct grub_disk_cache): Likewise.
36182 * commands/probe.c (options): Typo fix.
36184 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36185 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36187 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36189 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36190 the end of "Error" to make the message more readable.
36192 * boot/i386/pc/boot.S (kernel_segment): Remove.
36193 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36196 * boot/i386/pc/boot.S (boot_version): Remove.
36197 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36200 * include/grub/i386/pc/boot.h: Sort all offsets.
36201 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36202 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36203 * boot/i386/pc/boot.S: Assert location of every offset listed in
36204 include/grub/i386/pc/boot.h.
36206 2009-07-13 Pavel Roskin <proski@gnu.org>
36208 * include/grub/i386/coreboot/machine.h: Rename
36209 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36210 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36211 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36213 * kern/dl.c: Force native word size to suppress warnings when
36214 compiling grub-emu.
36216 * kern/device.c (grub_device_iterate): Change struct part_ent to
36217 hold the name, not a pointer to it. Use one grub_malloc() per
36218 partition, not two. Free partition_name if grub_malloc() fails.
36219 Set ents to NULL only before grub_partition_iterate() is called.
36221 2009-07-11 Bean <bean123ch@gmail.com>
36223 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36226 2009-07-10 Bean <bean123ch@gmail.com>
36227 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36229 * kern/ieee1275/openfw.c (grub_children_iterate)
36230 (grub_devalias_iterate): Fix size evaluation for property or path
36231 strings, which was broken since r2132.
36233 2009-07-07 Pavel Roskin <proski@gnu.org>
36235 * commands/search.c (search_file): Merge into ...
36236 (search_fs): ... this. Accept search type as argument.
36237 (grub_cmd_search): Pass search type to search_fs().
36239 * include/grub/util/console.h: New file.
36240 * util/console.c: Use it instead of grub/machine/console.h.
36241 * util/grub-emu.c: Likewise.
36243 * lib/arg.c (find_long_option): Remove.
36244 (find_long): Add `len' argument, make `s' const char *.
36245 (grub_arg_parse): Parse long options in place, not in a
36248 2009-07-06 Pavel Roskin <proski@gnu.org>
36250 * commands/search.c (search_fs): Fix potential NULL pointer
36253 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36256 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36258 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36261 2009-07-05 Pavel Roskin <proski@gnu.org>
36263 * include/grub/i386/linux.h (struct linux_kernel_params):
36264 Restore padding3, it's still needed.
36266 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36268 * util/osdetect.lua: Likewise.
36270 2009-07-05 Bean <bean123ch@gmail.com>
36272 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36274 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36275 (grub_lua_getenv): Likewise.
36276 (grub_lua_setenv): Likewise.
36277 (save_errno): New function.
36278 (push_result): Likewise.
36279 (grub_lua_enum_device): Likewise.
36280 (grub_lua_enum_file): Likewise.
36281 (grub_lua_file_open): Likewise.
36282 (grub_lua_file_close): Likewise.
36283 (grub_lua_file_seek): Likewise.
36284 (grub_lua_file_read): Likewise.
36285 (grub_lua_file_getline): Likewise.
36286 (grub_lua_file_getsize): Likewise.
36287 (grub_lua_file_getpos): Likewise.
36288 (grub_lua_file_eof): Likewise.
36289 (grub_lua_file_exist): Likewise.
36290 (grub_lua_add_menu): Likewise.
36292 * script/lua/grub_lua.h (isupper): New inline function.
36293 (islower): Likewise.
36294 (ispunct): Likewise.
36295 (isxdigit): Likewise.
36296 (strcspn): Change to normal function.
36297 (strpbkr): New function declaration.
36298 (memchr): Likewise.
36300 * script/lua/grub_main.c (scan_str): New function.
36301 (strcspn): Likewise.
36302 (strpbrk): Likewise.
36303 (memchr): Likewise.
36305 * script/lua/linit.c (lualibs): Enable the string library.
36307 * util/osdetect.lua: New file.
36309 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36311 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36312 `capabilities' member.
36314 2009-07-02 Pavel Roskin <proski@gnu.org>
36316 * genparttoollist.sh: Add missing newline at the end.
36318 2009-07-01 Pavel Roskin <proski@gnu.org>
36320 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36322 * util/hostdisk.c (open_device): Remove `const' from
36323 `sysctl_size', as sysctlbyname() can change it (in this case it
36324 doesn't actually happen).
36326 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36327 using signed long int constants.
36329 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36330 constant to avoid a warning on FreeBSD.
36332 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36335 * Makefile.in: Install include/grub/machine symlink.
36337 * Makefile.in: When installing symlinks, use "cp -fR", which
36338 works on FreeBSD and MacOSX.
36339 From Yves Blusseau <cl7m42e02@sneakemail.com>
36341 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36342 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36344 * util/misc.c: Move grub_reboot() and grub_halt() ...
36345 * util/grub-emu.c: ... here. Make main_env static.
36346 * include/grub/util/misc.h: Remove main_env.
36348 * kern/mm.c: Use correct format to print size_t.
36350 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36351 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36352 * kern/powerpc/dl.c: Likewise.
36353 * kern/sparc64/dl.c: Likewise.
36354 * kern/x86_64/dl.c: Likewise.
36356 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36358 Fix grub-emu build on sparc64-ieee1275.
36360 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36361 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36363 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36365 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36366 (grub_reboot, grub_halt): New functions.
36368 * util/i386/pc/misc.c: Delete. Update all users.
36369 * util/sparc64/ieee1275/misc.c: Likewise.
36370 * util/powerpc/ieee1275/misc.c: Likewise.
36372 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36374 * conf/i386.rmk (setjmp_mod_SOURCES)
36375 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36376 * conf/common.rmk (setjmp_mod_SOURCES)
36377 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36378 to use $(target_cpu).
36379 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36380 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36381 * conf/powerpc-ieee1275.rmk: Likewise.
36382 * conf/sparc64-ieee1275.rmk: Likewise.
36384 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36385 $(target_cpu) for kern/$(target_cpu)/dl.c.
36386 * conf/i386-efi.rmk: Likewise.
36387 * conf/i386-ieee1275.rmk: Likewise.
36388 * conf/x86_64-efi.rmk: Likewise.
36389 * conf/i386-coreboot.rmk: Likewise.
36390 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36391 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36392 kern/$(target_cpu)/cache.S.
36393 * conf/sparc64-ieee1275.rmk: Likewise.
36395 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36397 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36398 type to `grub_uint8_t', and adjust `padding9' accordingly.
36400 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36402 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36404 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36405 assembly in final jump, using register constraints.
36407 (grub_linux_boot): For text mode, initialize `have_vga' using
36408 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36410 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36411 right before the final jump.
36413 Set `video_mode' to 0x3.
36415 Document initialization of `video_page', `video_mode' and
36418 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36420 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36421 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
36422 and set GRUB_LINUX_FLAG_QUIET appropriately.
36424 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36426 Fix build on Debian / sparc.
36428 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36430 2009-06-28 Pavel Roskin <proski@gnu.org>
36432 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36435 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36437 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36439 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36442 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36446 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
36447 file can't be opened. grub_file_open() is already supposed to set
36448 grub_errno / grub_errmsg appropriately.
36449 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36451 2009-06-27 Pavel Roskin <proski@gnu.org>
36452 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36454 * include/grub/dl.h: Include grub/elf.h.
36455 (struct grub_dl): Add symtab field.
36456 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
36457 GRUB_MODULES_MACHINE_READONLY.
36458 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
36459 of the header for read-only modules.
36460 (grub_dl_unload): Free mod->symtab for read-only modules.
36461 * kern/i386/dl.c: Use mod->symtab.
36462 * kern/powerpc/dl.c: Likewise.
36463 * kern/sparc64/dl.c: Likewise.
36464 * kern/x86_64/dl.c: Likewise.
36466 * conf/i386-qemu.rmk: New file.
36467 * kern/i386/qemu/startup.S: Likewise.
36468 * kern/i386/qemu/mmap.c: Likewise.
36469 * boot/i386/qemu/boot.S: Likewise.
36470 * include/grub/i386/qemu/time.h: Likewise.
36471 * include/grub/i386/qemu/serial.h: Likewise.
36472 * include/grub/i386/qemu/kernel.h: Likewise.
36473 * include/grub/i386/qemu/console.h: Likewise.
36474 * include/grub/i386/qemu/boot.h: Likewise.
36475 * include/grub/i386/qemu/init.h: Likewise.
36476 * include/grub/i386/qemu/machine.h: Likewise.
36477 * include/grub/i386/qemu/loader.h: Likewise.
36478 * include/grub/i386/qemu/memory.h: Likewise.
36480 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
36481 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
36482 [qemu] (pkglib_IMAGES): Add `boot.img'.
36483 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
36484 [qemu] (boot_img_FORMAT): New variables.
36485 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
36486 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
36487 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
36488 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
36489 [qemu] (kernel_img_FORMAT): New variables.
36491 * configure.ac: Recognise `i386-qemu'.
36493 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
36494 (for no compression).
36495 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
36496 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
36497 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
36498 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
36501 2009-06-27 Pavel Roskin <proski@gnu.org>
36503 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
36505 * efiemu/prepare32.c: Likewise.
36506 * efiemu/prepare64.c: Likewise.
36508 2009-06-26 Pavel Roskin <proski@gnu.org>
36510 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
36511 * include/grub/elf.h: Define symbols without "32" or "64" based
36512 on GRUB_TARGET_WORDSIZE.
36513 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
36514 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
36516 * efiemu/loadcore64.c: Likewise.
36517 * loader/i386/bsd32.c: Likewise.
36518 * loader/i386/bsd64.c: Likewise.
36519 * kern/dl.c: Remove own ELF definitions.
36520 * util/i386/efi/grub-mkimage.c: Likewise.
36522 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
36524 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
36525 segment 0x0 unconditionally, because the reference generated by
36526 GAS is an absolute address.
36528 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36530 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
36531 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
36533 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36535 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
36536 indexes. Check for -f explicitly.
36537 (search_file): Improve error message.
36538 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
36540 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36542 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
36543 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
36545 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36547 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
36548 * conf/i386-ieee1275.rmk: Likewise.
36549 * conf/i386-coreboot.rmk: Likewise.
36551 * kern/i386/pc/startup.S (grub_stop): Remove function.
36552 * kern/i386/ieee1275/startup.S: Likewise.
36553 * kern/i386/coreboot/startup.S: Likewise.
36554 * kern/i386/misc.S (grub_stop): New function.
36556 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36558 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
36559 * kern/i386/realmode.S (real_to_prot): ... to here.
36561 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36563 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
36565 (kernel_elf_SOURCES): Rename to ...
36566 (kernel_img_SOURCES): ... this.
36567 (kernel_elf_HEADERS): Rename to ...
36568 (kernel_img_HEADERS): ... this. Update all users.
36569 (kernel_elf_ASFLAGS): Rename to ...
36570 (kernel_img_ASFLAGS): ... this.
36571 (kernel_elf_CFLAGS): Rename to ...
36572 (kernel_img_CFLAGS): ... this.
36573 (kernel_elf_LDFLAGS): Rename to ...
36574 (kernel_img_LDFLAGS): ... this.
36575 * conf/i386-coreboot.rmk: Likewise.
36576 * conf/powerpc-ieee1275.rmk: Likewise.
36578 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
36581 2009-06-21 Pavel Roskin <proski@gnu.org>
36583 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
36584 to match nested functions.
36585 * loader/sparc64/ieee1275/linux.c: Likewise.
36587 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
36589 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
36591 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
36592 all i386 platforms.
36594 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
36596 Fix asm file handling on ELF, and remove workarounds.
36598 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
36599 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
36600 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
36601 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
36603 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
36605 Load BSD ELF modules
36607 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
36608 and loader/i386/bsd64.c
36609 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
36610 (FREEBSD_MODTYPE_ELF_MODULE): New definition
36611 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
36612 (grub_freebsd_load_elfmodule32): New declaration
36613 (grub_freebsd_load_elfmoduleobj64): Likewise
36614 (grub_freebsd_load_elf_meta32): Likewise
36615 (grub_freebsd_load_elf_meta64): Likewise
36616 (grub_freebsd_add_meta): Likewise
36617 (grub_freebsd_add_meta_module): Likewise
36618 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
36619 (grub_freebsd_add_meta_module): Likewise and move module-specific
36620 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
36621 (grub_cmd_freebsd): Add elf-kernel specific parts
36622 based on grub_freebsd_add_meta_module
36623 (grub_cmd_freebsd_module): Add type parsing moved from
36624 grub_freebsd_add_meta_module
36625 (grub_cmd_freebsd_module_elf): New function
36626 (cmd_freebsd_module_elf): New variable
36627 (GRUB_MOD_INIT): Register freebsd_module_elf
36628 * loader/i386/bsd32.c: New file
36629 * loader/i386/bsd64.c: Likewise
36630 * loader/i386/bsdXX.c: Likewise
36631 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
36632 (grub_elf64_load): Likewise
36633 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
36635 (grub_elf64_load_hook_t): Likewise
36637 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
36639 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
36641 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
36642 don't write a menu entry for recovery mode.
36644 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
36646 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
36647 after it's no longer needed.
36649 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
36651 * include/grub/i386/loader.h (grub_linux_prot_size)
36652 (grub_linux_tmp_addr, grub_linux_real_addr)
36653 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
36654 GRUB_MACHINE_PCBIOS.
36655 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
36656 common grub_util_info() call to ...
36657 (generate_image): ... here.
36658 Fix use of uninitialized memory, comparison of signed with
36659 unsigned integers and memory leak.
36660 Remove bogus module address message.
36662 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
36664 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
36666 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
36668 2009-06-19 Pavel Roskin <proski@gnu.org>
36670 * configure.ac: Remove stray AC_MSG_CHECKING.
36672 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
36674 * disk/scsi.c (grub_scsi_open): use continue instead of big if
36676 2009-06-18 Pavel Roskin <proski@gnu.org>
36678 * conf/common.rmk: Add fs_file.mod.
36679 * disk/fs_file.c: New file.
36680 * include/grub/disk.h (enum grub_disk_dev_id): Add
36681 GRUB_DISK_DEVICE_FILE_ID.
36683 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36685 Fix build with Apple's toolchain. Part 2
36687 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
36690 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36692 Fix build with Apple's toolchain. Part 1
36694 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
36696 * configure.ac: remove a leftover AC_MSG_RESULT
36697 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
36700 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36704 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
36705 (decomp_block): initialize ch
36706 use grub_memcpy instead of memcpy
36708 2009-06-17 Pavel Roskin <proski@gnu.org>
36710 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
36711 version, use declarations needed to use vga_text as the startup
36714 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
36715 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
36717 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
36718 and grub_at_keyboard_fini(), it's done on module load and
36721 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
36723 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
36724 file can't be found.
36725 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36727 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
36729 Fix newline handling
36731 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
36732 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
36733 (grub_script_yylex): don't segfault on unterminated script
36734 newline terminates command and variable
36736 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
36738 avoid double grub_adjust_range call. Bug reported by David Simner
36740 * kern/disk.c (grub_disk_write): change to raw disk access before
36743 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
36745 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
36746 spaces, for the benefit of help2man.
36747 * util/i386/efi/grub-mkimage.c (usage): Likewise.
36749 2009-06-16 Pavel Roskin <proski@gnu.org>
36751 * kern/i386/halt.c: Include grub/machine/init.h.
36752 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
36754 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
36756 * util/grub.d/30_os-prober.in: Use ${root} in the generated
36757 drivemap menuentry.
36759 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
36761 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
36764 2009-06-16 Pavel Roskin <proski@gnu.org>
36766 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
36767 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
36768 save %dx, we only need %dl and we never change it.
36769 * boot/i386/pc/cdboot.S: Don't set the root drive.
36770 * boot/i386/pc/pxeboot.S: Likewise.
36771 * include/grub/i386/pc/boot.h: Remove
36772 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
36773 GRUB_BOOT_MACHINE_DRIVE_CHECK.
36774 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
36775 * kern/i386/pc/init.c (make_install_device): Remove references
36776 to grub_root_drive.
36777 * kern/i386/pc/startup.S: Likewise.
36778 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
36780 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
36784 * commands/xnu_uuid.c: new file
36785 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
36786 (xnu_uuid_mod_SOURCES): new variable
36787 (xnu_uuid_mod_CFLAGS): likewise
36788 (xnu_uuid_mod_LDFLAGS): likewise
36789 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
36790 * conf/i386-ieee1275.rmk: likewise
36791 * conf/i386-pc.rmk: likewise
36792 * conf/powerpc-ieee1275.rmk: likewise
36793 * conf/sparc64-ieee1275.rmk: likewise
36794 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
36796 2009-06-16 Pavel Roskin <proski@gnu.org>
36798 * configure.ac: Avoid '==' in test command, it's not portable.
36800 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
36804 * commands/probe.c: new file
36805 * conf/common.rmk (pkglib_MODULES): add probe.mod
36806 (probe_mod_SOURCES): new variable
36807 (probe_mod_CFLAGS): likewise
36808 (probe_mod_LDFLAGS): likewise
36809 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
36810 * conf/i386-ieee1275.rmk: likewise
36811 * conf/i386-pc.rmk: likewise
36812 * conf/powerpc-ieee1275.rmk: likewise
36813 * conf/sparc64-ieee1275.rmk: likewise
36815 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
36817 Fix handling of string like \"hello\" and "a
36820 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
36821 (grub_script_yylex): fix parsing of quoting, escaping and newline
36823 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
36825 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
36828 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
36830 * util/grub-mkconfig.in: Fix parsing of --output option.
36832 2009-06-12 Pavel Roskin <proski@gnu.org>
36834 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
36835 genmk.rb don't need to be generated or installed.
36837 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
36839 * commands/i386/pc/drivemap_int13h.S: add more comments
36841 2009-06-11 Pavel Roskin <proski@gnu.org>
36843 * Makefile.in (uninstall): Uninstall manuals.
36845 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
36846 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
36847 and update-grub_lib in two places.
36848 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
36850 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
36851 a compiler warning.
36853 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
36854 `entry_lo' to fix variable shadowing.
36856 2009-06-11 Christian Franke <franke@computer.org>
36858 * kern/misc.c (__enable_execute_stack): Add missing return type
36859 to prevent gcc warning.
36861 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
36863 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
36865 2009-06-11 Pavel Roskin <proski@gnu.org>
36867 * Makefile.in: Don't rely on any scripts being executable.
36868 Always use $(SHELL) to run shell scripts.
36870 * configure.ac: Always define ___main if using -nostdlib. This
36871 fixes tests on Cygwin.
36873 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
36877 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
36878 is in bytes and not in blocks
36880 2009-06-11 Pavel Roskin <proski@gnu.org>
36882 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
36885 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
36887 * util/grub.d/30_os-prober.in: Fix a comment. Source
36888 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
36889 to set the root device. Place drivemap command in the generated
36892 2009-06-11 Pavel Roskin <proski@gnu.org>
36894 * configure.ac: Remove host_m32. Issues with 64-bit utilities
36895 have long been resolved.
36897 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
36899 * util/grub.d/10_linux.in: Capitalise "Linux".
36901 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
36903 2009-06-11 Pavel Roskin <proski@gnu.org>
36905 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
36906 fix a gcc warning and ensure that the function won't ever exit.
36908 * kern/i386/ieee1275/init.c: Add missing prototype for
36909 grub_stop_floppy().
36911 * loader/ieee1275/multiboot2.c [__i386__]: Include
36912 grub/cpu/multiboot.h.
36914 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
36915 casts to short - they are not portable and cause warnings. Fix
36916 use of uninitialized values in input_buf. Use ARRAY_SIZE.
36918 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
36922 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
36924 (grub_get_root_biosnumber_saved): new variable
36925 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
36926 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
36927 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
36928 %dx after the call if necessary
36929 * conf/common.rmk (pkglib_MODULES): remove boot.mod
36930 (boot_mod_SOURCES): remove
36931 (boot_mod_CFLAGS): remove
36932 (boot_mod_LDFLAGS): remove
36933 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
36934 (boot_mod_SOURCES): new variable
36935 (boot_mod_CFLAGS): likewise
36936 (boot_mod_LDFLAGS): likewise
36937 * conf/i386-efi.rmk: likewise
36938 * conf/i386-ieee1275.rmk: likewise
36939 * conf/i386-pc.rmk: likewise
36940 * conf/powerpc-ieee1275.rmk: likewise
36941 * conf/sparc64-ieee1275.rmk: likewise
36942 * conf/x86_64-efi.rmk: likewise
36943 * include/grub/i386/pc/biosnum.h: new file
36944 * lib/i386/pc/biosnum.c: likewise
36945 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
36946 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
36947 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
36949 2009-06-10 Pavel Roskin <proski@gnu.org>
36951 * io/gzio.c (test_header): Don't reuse one buffer for all data.
36952 Use separate variables. Read only the file size at the end, but
36953 not the checksum that we don't use.
36955 * kern/file.c (grub_file_read): Use void pointer for the buffer.
36956 Adjust all callers.
36958 * kern/ieee1275/openfw.c: Remove libc includes.
36959 * kern/ieee1275/cmain.c: Likewise.
36960 * include/grub/ieee1275/ieee1275.h: Likewise.
36962 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
36965 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
36967 * Makefile.in: Remove all trailing whitespace.
36968 * conf/i386-pc.rmk: Likewise.
36969 * conf/powerpc-ieee1275.rmk: Likewise.
36970 * conf/sparc64-ieee1275.rmk: Likewise.
36971 * docs/grub.texi: Likewise.
36972 * docs/texinfo.tex: Likewise.
36973 * disk/fs_uuid.c: Likewise.
36974 * disk/lvm.c: Likewise.
36975 * disk/scsi.c: Likewise.
36976 * disk/ata.c: Likewise.
36977 * disk/ieee1275/ofdisk.c: Likewise.
36978 * disk/i386/pc/biosdisk.c: Likewise.
36979 * disk/host.c: Likewise.
36980 * disk/raid.c: Likewise.
36981 * disk/efi/efidisk.c: Likewise.
36982 * disk/usbms.c: Likewise.
36983 * disk/memdisk.c: Likewise.
36984 * disk/loopback.c: Likewise.
36985 * kern/powerpc/dl.c: Likewise.
36986 * kern/device.c: Likewise.
36987 * kern/dl.c: Likewise.
36988 * kern/sparc64/dl.c: Likewise.
36989 * kern/ieee1275/ieee1275.c: Likewise.
36990 * kern/term.c: Likewise.
36991 * kern/fs.c: Likewise.
36992 * kern/i386/dl.c: Likewise.
36993 * kern/i386/pc/startup.S: Likewise.
36994 * kern/i386/pc/init.c: Likewise.
36995 * kern/i386/pc/mmap.c: Likewise.
36996 * kern/i386/pc/lzo1x.S: Likewise.
36997 * kern/i386/ieee1275/init.c: Likewise.
36998 * kern/i386/realmode.S: Likewise.
36999 * kern/i386/tsc.c: Likewise.
37000 * kern/partition.c: Likewise.
37001 * kern/corecmd.c: Likewise.
37002 * kern/file.c: Likewise.
37003 * kern/efi/efi.c: Likewise.
37004 * kern/efi/init.c: Likewise.
37005 * kern/efi/mm.c: Likewise.
37006 * kern/main.c: Likewise.
37007 * kern/err.c: Likewise.
37008 * kern/env.c: Likewise.
37009 * kern/disk.c: Likewise.
37010 * kern/generic/millisleep.c: Likewise.
37011 * kern/generic/rtc_get_time_ms.c: Likewise.
37012 * kern/misc.c: Likewise.
37013 * kern/parser.c: Likewise.
37014 * genmk.rb: Likewise.
37015 * configure.ac: Likewise.
37016 * boot/i386/pc/diskboot.S: Likewise.
37017 * boot/i386/pc/pxeboot.S: Likewise.
37018 * boot/i386/pc/boot.S: Likewise.
37019 * boot/i386/pc/lnxboot.S: Likewise.
37020 * boot/i386/pc/cdboot.S: Likewise.
37021 * parttool/pcpart.c: Likewise.
37022 * video/readers/tga.c: Likewise.
37023 * video/video.c: Likewise.
37024 * video/bitmap.c: Likewise.
37025 * lib/envblk.c: Likewise.
37026 * lib/i386/setjmp.S: Likewise.
37027 * fs/xfs.c: Likewise.
37028 * fs/afs.c: Likewise.
37029 * fs/fat.c: Likewise.
37030 * fs/ntfs.c: Likewise.
37031 * fs/udf.c: Likewise.
37032 * fs/affs.c: Likewise.
37033 * fs/iso9660.c: Likewise.
37034 * fs/hfs.c: Likewise.
37035 * fs/fshelp.c: Likewise.
37036 * fs/ext2.c: Likewise.
37037 * fs/jfs.c: Likewise.
37038 * fs/reiserfs.c: Likewise.
37039 * fs/hfsplus.c: Likewise.
37040 * fs/minix.c: Likewise.
37041 * fs/cpio.c: Likewise.
37042 * fs/sfs.c: Likewise.
37043 * fs/ufs.c: Likewise.
37044 * efiemu/prepare.c: Likewise.
37045 * efiemu/loadcore_common.c: Likewise.
37046 * efiemu/runtime/efiemu.sh: Likewise.
37047 * efiemu/runtime/efiemu.S: Likewise.
37048 * efiemu/runtime/efiemu.c: Likewise.
37049 * efiemu/pnvram.c: Likewise.
37050 * efiemu/main.c: Likewise.
37051 * efiemu/i386/pc/cfgtables.c: Likewise.
37052 * efiemu/i386/loadcore64.c: Likewise.
37053 * efiemu/i386/loadcore32.c: Likewise.
37054 * efiemu/loadcore.c: Likewise.
37055 * efiemu/symbols.c: Likewise.
37056 * efiemu/mm.c: Likewise.
37057 * include/grub/autoefi.h: Likewise.
37058 * include/grub/datetime.h: Likewise.
37059 * include/grub/term.h: Likewise.
37060 * include/grub/hfs.h: Likewise.
37061 * include/grub/lvm.h: Likewise.
37062 * include/grub/i386/tsc.h: Likewise.
37063 * include/grub/i386/linux.h: Likewise.
37064 * include/grub/i386/xnu.h: Likewise.
37065 * include/grub/i386/efiemu.h: Likewise.
37066 * include/grub/i386/pc/biosdisk.h: Likewise.
37067 * include/grub/i386/pc/memory.h: Likewise.
37068 * include/grub/i386/pc/vbe.h: Likewise.
37069 * include/grub/parttool.h: Likewise.
37070 * include/grub/video.h: Likewise.
37071 * include/grub/memory.h: Likewise.
37072 * include/grub/fs.h: Likewise.
37073 * include/grub/partition.h: Likewise.
37074 * include/grub/xnu.h: Likewise.
37075 * include/grub/efi/api.h: Likewise.
37076 * include/grub/efi/pe32.h: Likewise.
37077 * include/grub/efi/memory.h: Likewise.
37078 * include/grub/multiboot.h: Likewise.
37079 * include/grub/usbdesc.h: Likewise.
37080 * include/grub/multiboot2.h: Likewise.
37081 * include/grub/acpi.h: Likewise.
37082 * include/grub/efiemu/efiemu.h: Likewise.
37083 * include/grub/disk.h: Likewise.
37084 * include/grub/ieee1275/ieee1275.h: Likewise.
37085 * include/grub/net.h: Likewise.
37086 * include/grub/machoload.h: Likewise.
37087 * include/grub/macho.h: Likewise.
37088 * include/multiboot.h: Likewise.
37089 * genmoddep.awk: Likewise.
37090 * normal/main.c: Likewise.
37091 * normal/menu_entry.c: Likewise.
37092 * normal/menu_viewer.c: Likewise.
37093 * normal/completion.c: Likewise.
37094 * normal/cmdline.c: Likewise.
37095 * normal/misc.c: Likewise.
37096 * normal/datetime.c: Likewise.
37097 * bus/usb/usbtrans.c: Likewise.
37098 * bus/usb/ohci.c: Likewise.
37099 * bus/usb/uhci.c: Likewise.
37100 * bus/usb/usb.c: Likewise.
37101 * mmap/efi/mmap.c: Likewise.
37102 * mmap/i386/pc/mmap_helper.S: Likewise.
37103 * mmap/i386/pc/mmap.c: Likewise.
37104 * mmap/i386/mmap.c: Likewise.
37105 * mmap/i386/uppermem.c: Likewise.
37106 * mmap/mmap.c: Likewise.
37107 * commands/acpi.c: Likewise.
37108 * commands/echo.c: Likewise.
37109 * commands/blocklist.c: Likewise.
37110 * commands/loadenv.c: Likewise.
37111 * commands/usbtest.c: Likewise.
37112 * commands/boot.c: Likewise.
37113 * commands/parttool.c: Likewise.
37114 * commands/search.c: Likewise.
37115 * commands/cat.c: Likewise.
37116 * commands/i386/pc/play.c: Likewise.
37117 * commands/i386/pc/drivemap.c: Likewise.
37118 * commands/i386/pc/vbeinfo.c: Likewise.
37119 * commands/i386/pc/acpi.c: Likewise.
37120 * commands/i386/pc/vbetest.c: Likewise.
37121 * commands/ls.c: Likewise.
37122 * commands/cmp.c: Likewise.
37123 * commands/test.c: Likewise.
37124 * commands/efi/acpi.c: Likewise.
37125 * commands/gptsync.c: Likewise.
37126 * commands/help.c: Likewise.
37127 * partmap/amiga.c: Likewise.
37128 * partmap/apple.c: Likewise.
37129 * partmap/acorn.c: Likewise.
37130 * partmap/pc.c: Likewise.
37131 * partmap/sun.c: Likewise.
37132 * partmap/gpt.c: Likewise.
37133 * script/sh/lexer.c: Likewise.
37134 * script/sh/function.c: Likewise.
37135 * font/font.c: Likewise.
37136 * font/font_cmd.c: Likewise.
37137 * loader/powerpc/ieee1275/linux.c: Likewise.
37138 * loader/efi/chainloader.c: Likewise.
37139 * loader/multiboot_loader.c: Likewise.
37140 * loader/macho.c: Likewise.
37141 * loader/i386/multiboot.c: Likewise.
37142 * loader/i386/linux.c: Likewise.
37143 * loader/i386/pc/linux.c: Likewise.
37144 * loader/i386/pc/multiboot2.c: Likewise.
37145 * loader/i386/pc/chainloader.c: Likewise.
37146 * loader/i386/pc/xnu.c: Likewise.
37147 * loader/i386/bsd_trampoline.S: Likewise.
37148 * loader/i386/efi/linux.c: Likewise.
37149 * loader/i386/multiboot_elfxx.c: Likewise.
37150 * loader/i386/bsd_helper.S: Likewise.
37151 * loader/i386/bsd.c: Likewise.
37152 * loader/i386/linux_trampoline.S: Likewise.
37153 * loader/i386/xnu_helper.S: Likewise.
37154 * loader/i386/xnu.c: Likewise.
37155 * loader/i386/bsd_pagetable.c: Likewise.
37156 * loader/i386/multiboot_helper.S: Likewise.
37157 * loader/xnu.c: Likewise.
37158 * loader/xnu_resume.c: Likewise.
37159 * io/gzio.c: Likewise.
37160 * term/efi/console.c: Likewise.
37161 * term/terminfo.c: Likewise.
37162 * term/ieee1275/ofconsole.c: Likewise.
37163 * term/i386/pc/serial.c: Likewise.
37164 * term/i386/pc/vesafb.c: Likewise.
37165 * term/i386/pc/vga.c: Likewise.
37166 * term/usb_keyboard.c: Likewise.
37167 * term/gfxterm.c: Likewise.
37168 * aclocal.m4: Likewise.
37169 * util/lvm.c: Likewise.
37170 * util/grub.d/30_os-prober.in: Likewise.
37171 * util/grub.d/10_hurd.in: Likewise.
37172 * util/console.c: Likewise.
37173 * util/grub-macho2img.c: Likewise.
37174 * util/grub-probe.c: Likewise.
37175 * util/hostfs.c: Likewise.
37176 * util/i386/pc/grub-mkimage.c: Likewise.
37177 * util/i386/pc/grub-setup.c: Likewise.
37178 * util/i386/efi/grub-mkimage.c: Likewise.
37179 * util/grub-mkconfig.in: Likewise.
37180 * util/raid.c: Likewise.
37181 * util/resolve.c: Likewise.
37182 * util/grub-mkdevicemap.c: Likewise.
37183 * util/grub-emu.c: Likewise.
37184 * util/getroot.c: Likewise.
37185 * util/hostdisk.c: Likewise.
37186 * util/usb.c: Likewise.
37187 * util/grub-editenv.c: Likewise.
37188 * util/misc.c: Likewise.
37190 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37192 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37193 `genparttoollist.sh'.
37194 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37195 Add `*.sh' to the list find searches for and change `mdate.sh'
37198 2009-06-10 Pavel Roskin <proski@gnu.org>
37200 * include/grub/multiboot2.h: Provide compatibility defines for
37202 * include/multiboot2.h: Include stdint.h only if needed, using
37204 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37206 * loader/ieee1275/multiboot2.c: Likewise.
37207 * loader/multiboot2.c: Likewise.
37208 * loader/multiboot_loader.c: Likewise.
37210 * configure.ac: Use -nostdlib when probing for the target. It
37211 should not be required to have libc for the target.
37213 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37214 they fail without libc headers for the target.
37215 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37217 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37218 preprocessor conditionals.
37220 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37221 build system doesn't need to be aware of the tar.c internals.
37223 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37225 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37227 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37229 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37230 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37232 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37234 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37235 aren't available if ata.mod gets used.
37237 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37239 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37240 initialising controller.
37241 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37243 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37245 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37246 to choose between ata and biosdisk module on i386-pc.
37248 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37250 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37251 Subclass and Programming Interface fields in terms of the 3 byte
37252 Class Code register.
37253 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37255 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37256 interface is OHCI. Add grub_dprintf for symmetry with
37258 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37259 interface is UHCI. Add interf variable for programming
37260 interface. Print interface with class/subclass.
37262 * bus/usb/ohci.c: Set interf with correct field.
37264 * bus/usb/uhci.c: Remove unneeded doubled lines.
37265 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37266 Remove whitespace inside comment.
37268 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37270 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37271 as fallback an equivalent option without depth.
37273 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37275 Not fail if unable to retrieve C/H/S on LBA disks
37277 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37278 if unable to retrieve C/H/S on LBA disks
37280 2009-06-08 Pavel Roskin <proski@gnu.org>
37282 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37285 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37287 * Makefile.in (uninstall): Remove all $lib_DATA files.
37289 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37291 Bugfix: install on partitionless device
37293 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37296 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37298 * Makefile.in (uninstall): Remove all $include_DATA files.
37300 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37302 * commands/true.c: New file. Implement the true and false commands.
37303 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37304 (true_mod_SOURCES): New variable.
37305 (true_mod_CFLAGS): Likewise.
37306 (true_mod_LDFLAGS): Likewise.
37308 2009-06-05 Colin D Bennett <colin@gibibit.com>
37310 Optimized font character lookup using binary search instead of linear
37311 search. Fonts now are required to have the character index ordered by
37314 * font/font.c (load_font_index): Verify that fonts have ordered
37316 (find_glyph): Use binary search instead of linear search to find a
37317 character in a font.
37319 2009-06-05 Michael Scherer <misc@mandriva.org>
37321 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37322 uses case sensitive btree.
37323 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37324 only for case insensitive filesystems.
37326 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37328 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37329 * conf/common.rmk (search_mod_CFLAGS): likewise
37331 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37333 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37334 compensate a compiler bug
37336 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37338 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37341 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37343 Definitions for creating asm symbols with Apple's CC
37345 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37346 [APPLE_CC] (VARIABLE): likewise
37348 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37350 Disable lnxboot.img when compiled
37353 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37354 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37355 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37356 [! APPLE_CC] (CODE_LENG): skip
37357 [! APPLE_CC] (setup_sects): likewise
37358 [! APPLE_CC]: skip filling
37360 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37362 Address in trampolines based on 32-bit registers when compiled
37365 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37367 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37369 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37371 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37373 * kern/misc.c [APPLE_CC] (memcpy): new function
37374 [APPLE_CC] (memmove): likewise
37375 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37376 (memcpy): define alias conditionally on !APPLE_CC
37379 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37380 APPLE_CC are defined
37381 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37382 (grub_assert_fail): make prototype conditional
37384 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37386 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37388 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37390 (CLEANFILES): add grub-macho2img
37391 (grub_macho2img_SOURCES): new variable
37392 * kern/i386/pc/startup.S (bss_start): new variable
37393 (bss_end): likewise
37394 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37395 * util/grub-macho2img.c: new file
37397 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37399 Use objconv when compiling with Apple's CC
37401 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37402 (efiemu64.o): likewise
37403 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37404 when compiling with Apple's CC
37405 (efiemu64_s.o): likewise
37406 * configure.ac: check for objconv when compiling with Apple's CC
37407 * genmk.rb: use objconv for modules when compiled with Apple's CC
37409 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37411 Define segment as well as section when compiling with
37414 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37415 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37416 (efiemu_convert_pointer): likewise
37417 (efiemu_set_virtual_address_map): likewise
37418 (efiemu_convert_pointer): likewise
37419 (efiemu_getcrc32): likewise
37420 (init_crc32_table): likewise
37421 (reflect): likewise
37422 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37423 (GRUB_MOD_DEP): likewise
37425 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37427 Allow a compilation without -mcmodel=large
37429 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37430 when compiled without -mcmodel=large
37431 (filter_memory_map): remove memory post 4 GiB when compiled
37432 without -mcmodel=large
37433 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
37434 TARGET_CFLAGS when -mcmodel=large isn't supported
37436 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37438 Remove nested functions in efiemu core
37440 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
37442 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37444 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
37446 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
37448 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
37450 (grub_cpu_is_tsc_supported): likewise
37451 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
37453 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37455 Absolute addressing through constant with Apple's cc
37457 * kern/i386/pc/startup.S: Define necessary constants
37458 and address through it when using ABS with Apple's CC
37459 * boot/i386/pc/diskboot.S: likewise
37460 * boot/i386/pc/boot.S: likewise
37461 * boot/i386/pc/lnxboot.S: likewise
37462 * boot/i386/pc/cdboot.S: likewise
37463 * mmap/i386/pc/mmap_helper.S: likewise
37464 * commands/i386/pc/drivemap_int13h.S: likewise
37466 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37468 Check if compiler is apple cc
37470 * Makefile.in (ASFLAGS): new variable
37471 (TARGET_ASFLAGS): likewise
37472 (TARGET_MODULE_FORMAT): likewise
37473 (TARGET_APPLE_CC): likewise
37474 (OBJCONV): likewise
37475 (TARGET_IMG_CFLAGS): likewise
37476 (TARGET_CPPFLAGS): add includedir
37477 * configure.ac: call grub_apple_cc and grub_apple_target_cc
37478 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
37479 Check for linker script only if compiler isn't Apple's CC
37480 (TARGET_MODULE_FORMAT): set
37481 (TARGET_APPLE_CC): likewise
37482 (TARGET_ASFLAGS): likewise
37483 (ASFLAGS): likewise
37484 Check for objcopy only if compiler isn't Apple's CC
37485 Check for BSS symbol only if compiler isn't Apple's CC
37486 * genmk.rb: adapt nm options if we use Apple's utils
37487 * aclocal.m4 (grub_apple_cc): new test
37488 (grub_apple_target_cc): likewise
37490 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37492 Simplify sed expressions and improve awk
37494 * Makefile.in (install-local): simplify sed expression
37495 * gencmdlist.sh: likewise
37496 * genmoddep.awk: avoid adding module as a dependency of itself
37498 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37500 Add missing start symbols
37502 * boot/i386/pc/boot.S: add start
37503 * boot/i386/pc/pxeboot.S: likewise
37505 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37507 Fix wrong assumptions with grub-mkimage on EFI
37509 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
37510 (relocate_addresses): consider both r_addend and value at offset
37511 (make_mods_section): zerofill modinfo and header
37512 (convert_elf): write prefix here
37514 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37516 Use .asciz instead of .string
37518 * i386/pc/diskboot.S: use .asciz instead of .string
37519 * i386/pc/boot.S: likewise
37520 * include/grub/dl.h (GRUB_MOD_DEP): likewise
37521 (GRUB_MOD_NAME): likewise
37523 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37527 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
37528 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
37529 (grub_video_setup): remove
37530 (grub_video_set_mode): new prototype
37531 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
37533 (linux_vesafb_res): compile only on PCBIOS
37534 (grub_linux_boot): support gfxpayload
37535 * loader/i386/pc/xnu.c (video_hook): new function
37536 (grub_xnu_set_video): support gfxpayload
37537 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
37538 (DEFAULT_VIDEO_HEIGHT): likewise
37539 (DEFAULT_VIDEO_FLAGS): likewise
37540 (DEFAULT_VIDEO_MODE): new definition
37541 (video_hook): new function
37542 (grub_gfxterm_init): use grub_video_set_mode
37543 * util/grub.d/30_os-prober.in: remove explicit modesetting before
37545 * video/video.c (grub_video_setup): removed
37546 (grub_video_set_mode): new function based on grub_gfxterm_init and
37549 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37551 Avoid calling biosdisk in drivemap
37553 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
37554 (revparse_biosdisk): likewise
37555 (list_mappings): derive name from id directly
37556 (grub_cmd_drivemap): use tryparse_diskstring
37558 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37562 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
37563 (grub_lexer_param): add tokenonhold
37564 (grub_script_create_cmdline): remove cmdline. All callers updated
37565 (grub_script_function_create): make functionname
37566 grub_script_arg. All callers updated
37567 (grub_script_execute_argument_to_string): new prototype
37568 * kern/parser.c (state_transitions): reorder
37569 (grub_parser_cmdline_state): fix a bug and make more compact
37570 * script/sh/execute.c (grub_script_execute_argument_to_string):
37572 (grub_script_execute_cmdline): use new format
37573 * script/sh/function.c (grub_script_function_create): make functionname
37574 grub_script_arg. All callers updated
37575 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
37576 (grub_script_yylex): remove
37577 (grub_script_yylex2): renamed to ...
37578 (grub_script_yylex): ...renamed
37579 parse the expressions like a${b}c
37580 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
37581 (GRUB_PARSER_TOKEN_VAR): remove
37582 (GRUB_PARSER_TOKEN_NAME): likewise
37583 ("if"): declare as typeless
37584 ("while"): likewise
37585 ("function"): likewise
37590 (argument): likewise
37591 (script): accept empty scripts and make exit on error
37592 (arguments): use GRUB_PARSER_TOKEN_ARG
37593 (function): likewise
37594 (command): move error handling to script
37595 (menuentry): move grub_script_lexer_ref before
37596 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
37597 argument. All callers updated
37599 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
37601 Prevent GRUB from probing floppies during boot.
37603 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
37604 * commands/search.c (options): Add --no-floppy.
37605 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
37606 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
37607 --no-floppy when searching for UUIDs.
37609 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
37611 Simplify the code duplication in commands/search.c.
37613 * commands/search.c (search_label, search_fs_uuid): Merge into ...
37614 (search_fs): ... this. Update all users.
37616 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
37618 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
37620 2009-05-28 Pavel Roskin <proski@gnu.org>
37622 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
37623 Remove the original symlink explicitly.
37625 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
37626 just one slash. That's how grub_fshelp_find_file() does it.
37628 2009-05-26 Pavel Roskin <proski@gnu.org>
37630 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
37633 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
37636 2009-05-25 Christian Franke <franke@computer.org>
37638 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
37640 (grub_atapi_identify): Add wait after drive select.
37641 (grub_ata_identify): Do more strict status register check before
37642 calling grub_atapi_identify (). Suppress error message if status
37643 register is 0x00 after command failure. Add status register
37644 check after PIO read to avoid bogus identify due to stuck DRQ.
37645 Thanks to Pavel Roskin for testing.
37646 (grub_device_initialize): Remove unsafe status register check.
37647 Thanks to 'phcoder' for problem report and patch.
37648 Prevent sign extension in debug message.
37650 2009-05-23 Colin D Bennett <colin@gibibit.com>
37652 Cleaned up `include/grub/normal.h'. Grouped prototypes by
37653 definition file, and functions defined in `normal/menu.c' have had
37654 their prototypes moved to `include/grub/menu.h' for consistency.
37656 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
37658 (grub_menu_get_entry): Likewise.
37659 (grub_menu_get_timeout): Likewise.
37660 (grub_menu_set_timeout): Likewise.
37661 (grub_menu_execute_entry): Likewise.
37662 (grub_menu_execute_with_fallback): Likewise.
37663 (grub_menu_entry_run): Likewise.
37665 * include/grub/normal.h: Re-ordered and grouped function
37666 prototypes by file that the function is defined in.
37667 (grub_menu_execute_callback): Removed; moved to menu.h.
37668 (grub_menu_get_entry): Likewise.
37669 (grub_menu_get_timeout): Likewise.
37670 (grub_menu_set_timeout): Likewise.
37671 (grub_menu_execute_entry): Likewise.
37672 (grub_menu_execute_with_fallback): Likewise.
37673 (grub_menu_entry_run): Likewise.
37674 (grub_menu_addentry): Renamed from this ...
37675 (grub_normal_add_menu_entry): ... to this.
37677 * normal/main.c (grub_menu_addentry): Renamed from this ...
37678 (grub_normal_add_menu_entry): ... to this.
37680 * script/sh/execute.c (grub_script_execute_menuentry): Update
37681 reference to renamed grub_menu_addentry function.
37683 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
37685 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
37687 2009-05-22 Pavel Roskin <proski@gnu.org>
37689 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
37690 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
37691 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
37692 compiling for the i386 targets, but not for the utilities.
37694 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
37696 (grub_root_drive): Likewise.
37697 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
37699 (grub_root_drive): Change size to byte.
37700 (grub_start_addr): Remove.
37701 (grub_end_addr): Likewise.
37702 (grub_apm_bios_info): Likewise.
37704 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
37706 * normal/i386: Remove.
37707 * normal/powerpc: Likewise.
37708 * normal/sparc64: Likewise.
37709 * normal/x86_64: Likewise.
37711 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
37713 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
37714 * loader/i386/linux_trampoline.S: Fix indentation
37715 * loader/i386/xnu_helper.S: Likewise
37717 2009-05-18 Colin D Bennett <colin@gibibit.com>
37719 Display error messages when parsing a Lua statement fails.
37720 Previously, executing a syntactically invalid statement like
37721 ")foo" or "bar;" would silently fail.
37723 * script/lua/grub_main.c (handle_lua_error): New function.
37724 (grub_lua_parse_line): Improved reporting of Lua parser and
37727 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
37729 Remove -Werror which causes build to fail on some systems
37731 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
37732 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
37733 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
37735 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
37737 trampoline for linux on 64-bit platform
37739 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
37740 loader/i386/efi/linux_trampoline.S
37741 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
37743 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
37745 * loader/i386/linux_trampoline.S: moved here
37746 * loader/i386/efi/linux.c (allocate_pages): reserve space for
37748 (jumpvector): removed
37749 (grub_linux_trampoline_start): new declaration
37750 (grub_linux_trampoline_end): likewise
37751 (grub_linux_boot): use trampoline when on 64-bit platform
37752 * loader/i386/linux.c: likewise
37754 2009-05-16 Pavel Roskin <proski@gnu.org>
37756 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
37757 const to avoid a warning.
37758 (grub_lua_setenv): Likewise.
37759 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
37760 lmsg to fix a warning.
37762 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
37764 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
37765 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37766 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
37767 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37768 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
37769 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37770 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
37771 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37773 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
37775 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
37777 2009-05-16 Bean <bean123ch@gmail.com>
37779 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
37780 (lua_mod_SOURCES): New variable.
37781 (lua_mod_CFLAGS): Likewise.
37782 (lua_mod_LDFLAGS): Likewise.
37784 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
37785 (setjmp_mod_SOURCES): New variable.
37786 (setjmp_mod_CFLAGS): Likewise.
37787 (setjmp_LDFLAGS): Likewise.
37789 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
37790 (setjmp_mod_SOURCES): New variable.
37791 (setjmp_mod_CFLAGS): Likewise.
37792 (setjmp_LDFLAGS): Likewise.
37794 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
37795 (setjmp_mod_SOURCES): New variable.
37796 (setjmp_mod_CFLAGS): Likewise.
37797 (setjmp_LDFLAGS): Likewise.
37799 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
37800 (setjmp_mod_SOURCES): New variable.
37801 (setjmp_mod_CFLAGS): Likewise.
37802 (setjmp_LDFLAGS): Likewise.
37804 * normal/i386/setjmp.S: Moved from here ...
37805 * lib/i386/setjmp.S: ... Moved here
37806 * normal/x86_64/setjmp.S: Moved from here ...
37807 * lib/x86_64/setjmp.S: ... Moved here
37808 * normal/powerpc/setjmp.S: Moved from here ...
37809 * lib/powerpc/setjmp.S: ... Moved here
37810 * normal/sparc64/setjmp.S: Moved from here ...
37811 * lib/sparc64/setjmp.S: ... Moved here
37813 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
37814 returns_twice in mingw.
37816 * script/lua/grub_lib.c: New file.
37817 * script/lua/grub_lib.h: Likewise.
37818 * script/lua/grub_lua.h: Likewise.
37819 * script/lua/grub_main.c: Likewise.
37820 * script/lua/lapi.c: Likewise.
37821 * script/lua/lapi.h: Likewise.
37822 * script/lua/lauxlib.c: Likewise.
37823 * script/lua/lauxlib.h: Likewise.
37824 * script/lua/lbaselib.c: Likewise.
37825 * script/lua/lcode.c: Likewise.
37826 * script/lua/lcode.h: Likewise.
37827 * script/lua/ldblib.c: Likewise.
37828 * script/lua/ldebug.c: Likewise.
37829 * script/lua/ldebug.h: Likewise.
37830 * script/lua/ldo.c: Likewise.
37831 * script/lua/ldo.h: Likewise.
37832 * script/lua/ldump.c: Likewise.
37833 * script/lua/lfunc.c: Likewise.
37834 * script/lua/lfunc.h: Likewise.
37835 * script/lua/lgc.c: Likewise.
37836 * script/lua/lgc.h: Likewise.
37837 * script/lua/linit.c: Likewise.
37838 * script/lua/liolib.c: Likewise.
37839 * script/lua/llex.c: Likewise.
37840 * script/lua/llex.h: Likewise.
37841 * script/lua/llimits.h: Likewise.
37842 * script/lua/lmathlib.c: Likewise.
37843 * script/lua/lmem.c: Likewise.
37844 * script/lua/lmem.h: Likewise.
37845 * script/lua/loadlib.c: Likewise.
37846 * script/lua/lobject.c: Likewise.
37847 * script/lua/lobject.h: Likewise.
37848 * script/lua/lopcodes.c: Likewise.
37849 * script/lua/lopcodes.h: Likewise.
37850 * script/lua/loslib.c: Likewise.
37851 * script/lua/lparser.c: Likewise.
37852 * script/lua/lparser.h: Likewise.
37853 * script/lua/lstate.c: Likewise.
37854 * script/lua/lstate.h: Likewise.
37855 * script/lua/lstring.c: Likewise.
37856 * script/lua/lstring.h: Likewise.
37857 * script/lua/lstrlib.c: Likewise.
37858 * script/lua/ltable.c: Likewise.
37859 * script/lua/ltable.h: Likewise.
37860 * script/lua/ltablib.c: Likewise.
37861 * script/lua/ltm.c: Likewise.
37862 * script/lua/ltm.h: Likewise.
37863 * script/lua/lua.h: Likewise.
37864 * script/lua/luaconf.h: Likewise.
37865 * script/lua/lualib.h: Likewise.
37866 * script/lua/lundump.c: Likewise.
37867 * script/lua/lundump.h: Likewise.
37868 * script/lua/lvm.c: Likewise.
37869 * script/lua/lvm.h: Likewise.
37870 * script/lua/lzio.c: Likewise.
37871 * script/lua/lzio.h: Likewise.
37873 2009-05-16 Bean <bean123ch@gmail.com>
37875 * include/grub/kernel.h (grub_module_header_types): Add type
37878 * kern/main.c (grub_load_config): New function.
37879 (grub_main): Call grub_load_config to read boot config.
37881 * grub-mkimage (generate_image): New parameter config_path.
37882 (options): New option --config.
37883 (main): Parse --config option, and pass it to generate_image.
37885 2009-05-14 Christian Franke <franke@computer.org>
37887 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
37888 This fixes build on Cygwin.
37890 2009-05-14 Pavel Roskin <proski@gnu.org>
37892 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
37893 jump. This saves two bytes, so the typical case of 2 swapped
37894 drives would fit 32 bytes.
37896 2009-05-13 Pavel Roskin <proski@gnu.org>
37898 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
37899 grub_uint32_t to avoid a warning.
37901 * loader/i386/linux.c (allocate_pages): When assigning
37902 real_mode_mem, cast through grub_size_t to fix a warning. The
37903 code already makes sure that the value would fit a pointer.
37904 (grub_linux_setup_video): Cast render_target->data to
37905 grub_size_t to fix a warning.
37907 2009-05-13 Javier Martín <lordhabbit@gmail.com>
37909 * commands/i386/pc/drivemap.c: New file - implement drivemap
37911 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
37912 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
37914 2009-05-13 Pavel Roskin <proski@gnu.org>
37916 * util/i386/pc/grub-setup.c (setup): Remove unused variable
37917 embedding_area_exists.
37919 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
37921 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
37922 it easier to understand / work with.
37923 Improve warning messages for cases where there's no embedding area,
37924 or when it is too small (or core.img too large).
37926 2009-05-13 Pavel Roskin <proski@gnu.org>
37928 * loader/i386/pc/multiboot2.c: Add necessary includes for
37929 grub_multiboot2_real_boot().
37931 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
37932 PX record is always little-endian. We only need the lower 2
37935 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
37936 facilitate code reuse.
37937 (grub_cpio_mount): Use "struct head", not a char buffer. This
37938 fixes a warning reported by gcc 4.4.
37940 * kernel/disk.c (grub_disk_read): Use void pointer for the
37942 (grub_disk_write): Use const void pointer for the buffer.
37943 Adjust all callers. Remove unnecessary casts.
37945 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
37947 * util/i386/pc/grub-install.in: Update copyright year.
37949 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
37953 * commands/gptsync.c: new file
37954 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
37955 (gptsync_mod_SOURCES): new variable
37956 (gptsync_mod_CFLAGS): likewise
37957 (gptsync_mod_LDFLAGS): likewise
37958 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
37960 (GRUB_PC_PARTITION_TYPE_HFS): likewise
37961 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
37962 * conf/i386-ieee1275.rmk: likewise
37963 * conf/i386-pc.rmk: likewise
37964 * conf/powerpc-ieee1275.rmk: likewise
37966 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
37970 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
37971 (grub_dl_ref): likewise
37973 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
37975 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
37976 split in two functions (one for msdos and one for gpt).
37978 2009-05-08 Pavel Roskin <proski@gnu.org>
37980 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
37983 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
37984 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
37985 Initialize them with -1. Add sanity check for bad1. Eliminate
37988 2009-05-08 David S. Miller <davem@davemloft.net>
37990 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
37992 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
37994 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
37997 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
37999 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38000 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38002 2009-05-05 David S. Miller <davem@davemloft.net>
38004 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38006 2009-05-05 Pavel Roskin <proski@gnu.org>
38008 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38009 of grub_dl_ref() and grub_dl_unref().
38010 * commands/parttool.c: Remove preprocessor conditionals around
38011 grub_dl_ref() and grub_dl_unref().
38012 * fs/affs.c: Likewise.
38013 * fs/afs.c: Likewise.
38014 * fs/cpio.c: Likewise.
38015 * fs/ext2.c: Likewise.
38016 * fs/fat.c: Likewise.
38017 * fs/hfs.c: Likewise.
38018 * fs/hfsplus.c: Likewise.
38019 * fs/iso9660.c: Likewise.
38020 * fs/jfs.c: Likewise.
38021 * fs/minix.c: Likewise.
38022 * fs/ntfs.c: Likewise.
38023 * fs/reiserfs.c: Likewise.
38024 * fs/sfs.c: Likewise.
38025 * fs/udf.c: Likewise.
38026 * fs/ufs.c: Likewise.
38027 * fs/xfs.c: Likewise.
38028 * include/grub/dl.h: Likewise.
38029 * loader/xnu.c: Likewise.
38031 2009-05-04 Pavel Roskin <proski@gnu.org>
38033 * commands/acpi.c: Remove unused variable my_mod.
38034 * partmap/amiga.c: Likewise.
38035 * partmap/apple.c: Likewise.
38036 * partmap/gpt.c: Likewise.
38037 * partmap/pc.c: Likewise.
38038 * partmap/sun.c: Likewise.
38039 * term/gfxterm.c: Likewise.
38040 * term/i386/pc/vesafb.c: Likewise.
38041 * term/i386/pc/vga.c: Likewise.
38043 2009-05-04 David S. Miller <davem@davemloft.net>
38045 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38046 pointer args to grub_ieee1275_get_property().
38048 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38050 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38051 devices, and do not traverse down under controller nodes.
38053 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38054 (grub_ofdisk_open): Use it to un-escape "," characters.
38055 * kern/disk.c (find_part_sep): New.
38056 (grub_disk_open): Use it to find the first non-escaped ','
38057 character in the disk name.
38058 * util/ieee1275/devicemap.c (escape_of_path): New.
38059 (grub_util_emit_devicemap_entry): Use it.
38060 * util/sparc64/ieee1275/grub-install.in: Update script to
38061 strip partition specifiers properly by not triggering on
38062 '\' escaped ',' characters.
38064 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38066 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38068 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38070 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38071 on documentation from Wikipedia).
38073 2009-05-04 Pavel Roskin <proski@gnu.org>
38075 * disk/ata.c: Spelling fixes.
38076 * disk/raid.c: Likewise.
38077 * disk/usbms.c: Likewise.
38078 * disk/dmraid_nvidia.c: Likewise.
38079 * kern/ieee1275/openfw.c: Likewise.
38080 * kern/ieee1275/init.c: Likewise.
38081 * kern/ieee1275/cmain.c: Likewise.
38082 * boot/i386/pc/cdboot.S: Likewise.
38083 * video/readers/png.c: Likewise.
38084 * video/i386/pc/vbe.c: Likewise.
38085 * fs/udf.c: Likewise.
38086 * fs/hfs.c: Likewise.
38087 * fs/reiserfs.c: Likewise.
38088 * efiemu/runtime/efiemu.c: Likewise.
38089 * efiemu/main.c: Likewise.
38090 * efiemu/mm.c: Likewise.
38091 * include/grub/elf.h: Likewise.
38092 * include/grub/xnu.h: Likewise.
38093 * include/grub/usbdesc.h: Likewise.
38094 * include/grub/usb.h: Likewise.
38095 * include/grub/script_sh.h: Likewise.
38096 * include/grub/lib/LzmaEnc.h: Likewise.
38097 * include/grub/efiemu/efiemu.h: Likewise.
38098 * include/grub/command.h: Likewise.
38099 * normal/menu.c: Likewise.
38100 * normal/main.c: Likewise.
38101 * normal/datetime.c: Likewise.
38102 * bus/usb/uhci.c: Likewise.
38103 * mmap/i386/uppermem.c: Likewise.
38104 * mmap/mmap.c: Likewise.
38105 * commands/acpi.c: Likewise.
38106 * commands/test.c: Likewise.
38107 * partmap/apple.c: Likewise.
38108 * font/font.c: Likewise.
38109 * loader/sparc64/ieee1275/linux.c: Likewise.
38110 * loader/macho.c: Likewise.
38111 * loader/i386/bsd_trampoline.S: Likewise.
38112 * loader/i386/bsd.c: Likewise.
38113 * loader/xnu.c: Likewise.
38114 * term/i386/pc/vesafb.c: Likewise.
38115 * term/usb_keyboard.c: Likewise.
38116 * util/resolve.c: Likewise.
38117 * util/getroot.c: Likewise.
38119 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38121 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38123 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38125 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38128 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38130 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38131 parameter only available on BIOS.
38133 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38135 Removed wrong semicolon in declaration
38137 * grub/misc.h (grub_dprintf): remove semicolon
38139 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38141 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38142 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38143 is done by grub_cmd_linux() now).
38144 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38145 restore video to text mode.
38146 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38147 indicates lack of "vga=" parameter. "vga=0" is mapped to
38148 `GRUB_LINUX_VID_MODE_NORMAL'.
38150 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38152 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38153 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38154 and `normal/script.c'. Add `kern/rescue_reader.c',
38155 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38156 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38157 `grub_script.tab.c'.
38159 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38160 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38161 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38162 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38163 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38165 * Makefile.in: Remove duplicated 2008 in Copyright line.
38167 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38169 * util/misc.c (grub_util_warn): New function. Emits a warning
38171 * include/grub/util/misc.h (grub_util_warn): New declaration.
38173 * util/i386/pc/grub-install.in: Understand --force and pass it down
38176 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38178 (setup): Improve error messages and add warnings when requested to
38179 install in odd layouts. Refuse to install using blocklists unless
38182 2009-05-04 martin f. krafft <madduck@madduck.net>
38184 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38186 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38188 Updated copyright year
38190 * fs/hfsplus.c: updated copyright year
38192 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38196 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38197 in the space previously used by unused3
38198 (grub_hfsplus_uuid): new function
38199 (grub_hfsplus_fs): added uuid field
38201 2009-05-03 Pavel Roskin <proski@gnu.org>
38203 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38204 suppress warnings. It's no longer needed.
38205 * disk/host.c: Likewise.
38206 * disk/ata_pthru.c: Likewise.
38207 * disk/loopback.c: Likewise.
38208 * hook/datehook.c: Likewise.
38209 * parttool/pcpart.c: Likewise.
38210 * fs/i386/pc/pxe.c: Likewise.
38211 * fs/ntfscomp.c: Likewise.
38212 * efiemu/main.c: Likewise.
38213 * mmap/mmap.c: Likewise.
38214 * commands/crc.c: Likewise.
38215 * commands/hexdump.c: Likewise.
38216 * commands/hdparm.c: Likewise.
38217 * commands/acpi.c: Likewise.
38218 * commands/echo.c: Likewise.
38219 * commands/minicmd.c: Likewise.
38220 * commands/blocklist.c: Likewise.
38221 * commands/memrw.c: Likewise.
38222 * commands/loadenv.c: Likewise.
38223 * commands/usbtest.c: Likewise.
38224 * commands/lsmmap.c: Likewise.
38225 * commands/boot.c: Likewise.
38226 * commands/parttool.c: Likewise.
38227 * commands/configfile.c: Likewise.
38228 * commands/search.c: Likewise.
38229 * commands/ieee1275/suspend.c: Likewise.
38230 * commands/cat.c: Likewise.
38231 * commands/i386/pc/pxecmd.c: Likewise.
38232 * commands/i386/pc/play.c: Likewise.
38233 * commands/i386/pc/halt.c: Likewise.
38234 * commands/i386/pc/vbeinfo.c: Likewise.
38235 * commands/i386/pc/vbetest.c: Likewise.
38236 * commands/lspci.c: Likewise.
38237 * commands/date.c: Likewise.
38238 * commands/handler.c: Likewise.
38239 * commands/ls.c: Likewise.
38240 * commands/test.c: Likewise.
38241 * commands/cmp.c: Likewise.
38242 * commands/efi/loadbios.c: Likewise.
38243 * commands/efi/fixvideo.c: Likewise.
38244 * commands/halt.c: Likewise.
38245 * commands/help.c: Likewise.
38246 * commands/reboot.c: Likewise.
38247 * hello/hello.c: Likewise.
38248 * script/sh/main.c: Likewise.
38249 * loader/xnu.c: Likewise.
38250 * term/terminfo.c: Likewise.
38251 * term/i386/pc/serial.c: Likewise.
38252 * term/usb_keyboard.c: Likewise.
38254 2009-05-03 David S. Miller <davem@davemloft.net>
38256 * normal/menu.c: Include grub/parser.h
38258 2009-05-03 Pavel Roskin <proski@gnu.org>
38260 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38262 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38263 Suggested by Javier Martín <lordhabbit@gmail.com>
38265 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38266 efiemu??.o doesn't exist.
38267 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38270 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38272 FreeBSD 64-bit support
38274 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38275 and loader/i386/bsd_trampoline.S
38276 (bsd_mod_ASFLAGS): new variable
38277 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38278 (FREEBSD_MODTYPE_KERNEL64): likewise
38279 (grub_bsd64_trampoline_start): likewise
38280 (grub_bsd64_trampoline_end): likewise
38281 (grub_bsd64_trampoline_selfjump): likewise
38282 (grub_bsd64_trampoline_gdt): likewise
38283 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38284 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38285 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38286 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38287 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38289 * loader/i386/bsd_pagetable.c: new file
38290 * loader/i386/bsd_trampoline.S: likewise
38291 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38292 (ALIGN_VAR): likewise
38293 (entry_hi): new variable
38294 (kern_end_mdofs): likewise
38295 (is_64bit): likewise
38296 (grub_freebsd_add_meta): use ALIGN_VAR
38297 (grub_e820_mmap): new declaration
38298 (grub_freebsd_add_mmap): new function
38299 (grub_freebsd_add_meta_module): support 64 bit kernels
38300 (grub_freebsd_list_modules): use ALIGN_VAR
38301 (gdt_descriptor): new declaration
38302 (grub_freebsd_boot): support 64 bit kernels
38303 (grub_bsd_elf64_hook): new function
38304 (grub_bsd_load_elf): support elf64
38306 2009-05-03 Bean <bean123ch@gmail.com>
38308 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38309 after we get the result of if statement.
38311 2009-05-03 Bean <bean123ch@gmail.com>
38313 * Makefile.in (enable_efiemu): New variable.
38315 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38317 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38319 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38320 path, add -mno-red-zone option.
38321 (efiemu64_s.o): Likewise.
38322 (efiemu64.o): Use macro $^ for source file.
38324 * configure.ac (--enable-efiemu): New option.
38326 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38330 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38331 (pkglib_MODULES): add xnu.mod
38332 (xnu_mod_SOURCES): new variable
38333 (xnu_mod_CFLAGS): likewise
38334 (xnu_mod_LDFLAGS): likewise
38335 (xnu_mod_ASFLAGS): likewise
38336 * conf/i386-pc.rmk: likewise
38337 * conf/x86_64-efi.rmk: likewise
38338 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38340 * include/grub/i386/macho.h: new file
38341 * include/grub/i386/xnu.h: likewise
38342 * include/grub/macho.h: likewise
38343 * include/grub/machoload.h: likewise
38344 * include/grub/x86_64/macho.h: likewise
38345 * include/grub/x86_64/xnu.h: likewise
38346 * include/grub/xnu.h: likewise
38347 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38348 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38349 * loader/i386/efi/xnu.c: new file
38350 * loader/i386/pc/xnu.c: likewise
38351 * loader/i386/xnu.c: likewise
38352 * loader/i386/xnu_helper.S: likewise
38353 * loader/macho.c: likewise
38354 * loader/xnu.c: likewise
38355 * loader/xnu_resume.c: likewise
38356 * util/grub-dumpdevtree: likewise
38357 * include/grub/i386/pit.h: include grub/err.h
38358 (grub_pit_wait): export
38359 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38361 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38365 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38366 _linux_efi, linux_efi.
38367 new files in grub-emu
38368 new targets efiemu32.o and efiemu64.o
38369 * loader/linux_normal_efiemu.c: likewise
38370 * loader/i386/efi/linux.c: added preliminary efiemu support
38371 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38373 * include/grub/autoefi.h: new file
38374 * include/grub/i386/efiemu.h: likewise
38375 * include/grub/i386/pc/efiemu.h: likewise
38376 * include/grub/efi/api.h: add LL suffix when necessary
38377 new definitions relating to tables
38378 * include/grub/efiemu/efiemu.h: new file
38379 * include/grub/efiemu/runtime.h: likewise
38380 * efiemu/prepare.c: likewise
38381 * efiemu/loadcore_common.c: likewise
38382 * efiemu/loadcore64.c: likewise
38383 * efiemu/runtime/efiemu.sh: likewise
38384 * efiemu/runtime/efiemu.S: likewise
38385 * efiemu/runtime/efiemu.c: likewise
38386 * efiemu/runtime/config.h: likewise
38387 * efiemu/prepare32.c: likewise
38388 * efiemu/main.c: likewise
38389 * efiemu/modules/pnvram.c: likewise
38390 * efiemu/modules/i386: likewise
38391 * efiemu/modules/i386/pc: likewise
38392 * efiemu/modules/acpi.c: likewise
38393 * efiemu/i386/pc/cfgtables.c: likewise
38394 * efiemu/i386/loadcore64.c: likewise
38395 * efiemu/i386/loadcore32.c: likewise
38396 * efiemu/prepare64.c: likewise
38397 * efiemu/loadcore.c: likewise
38398 * efiemu/symbols.c: likewise
38399 * efiemu/mm.c: likewise
38400 * efiemu/loadcore32.c: likewise
38402 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38406 * commands/acpi.c: new file
38407 * commands/i386/pc/acpi.c: likewise
38408 * commands/efi/acpi.c: likewise
38409 * include/grub/acpi.h: likewise
38410 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38411 (acpi_mod_SOURCES): new variable
38412 (acpi_mod_CFLAGS): likewise
38413 (acpi_mod_LDFLAGS): likewise
38414 * conf/i386-efi.rmk: likewise
38415 * conf/x86_64-efi.rmk: likewise
38417 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38419 Missing part from mmap patch
38421 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38422 (grub_mmap_unregister)
38423 (grub_mmap_free_and_unregister): use grub_mmap_register
38425 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38429 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38430 * loader/i386/linux.c (find_mmap_size): likewise
38431 (allocate_pages): likewise
38432 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38433 (grub_fill_multiboot_mmap): likewise
38434 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38435 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38436 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38437 (OPENBSD_MMAP_RESERVED): likewise
38438 * include/grub/i386/pc/memory.h: include grub/memory.h
38439 (grub_lower_mem): removed
38440 (grub_upper_mem): likewise
38441 (GRUB_MACHINE_MEMORY_ACPI): new definition
38442 (GRUB_MACHINE_MEMORY_NVS): likewise
38443 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
38444 (GRUB_MACHINE_MEMORY_HOLE): likewise
38445 (grub_machine_mmap_register): likewise
38446 (grub_machine_mmap_unregister): likewise
38447 (grub_machine_get_upper): likewise
38448 (grub_machine_get_lower): likewise
38449 (grub_machine_get_post64): likewise
38450 * include/grub/i386/efi/memory.h: new file
38451 * include/grub/x86_64/efi/memory.h: likewise
38452 * include/grub/efi/memory.h: likewise
38453 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
38454 (mmap_mod_SOURCES): new variable
38455 (mmap_mod_LDFLAGS): likewise
38456 (mmap_mod_ASFLAGS): likewise
38457 * conf/i386-coreboot.rmk: likewise
38458 * conf/i386-ieee1275.rmk: likewise
38459 * conf/i386-efi.rmk: likewise
38460 * conf/x86_64-efi.rmk: likewise
38461 * include/grub/types.h (UINT_TO_PTR): new macro
38462 (PTR_TO_UINT32): likewise
38463 (PTR_TO_UINT64): likewise
38464 * include/grub/memory.h: new file
38465 * mmap/i386/pc/mmap.c: likewise
38466 * mmap/i386/pc/mmap_helper.S: likewise
38467 * mmap/i386/uppermem.c: likewise
38468 * mmap/mmap.c: likewise
38469 * mmap/efi/mmap.c: likewise
38470 * kern/i386/coreboot/init.c (grub_machine_init): don't use
38472 * kern/i386/pc/init.c (grub_lower_mem): removed variable
38473 (grub_upper_mem): likewise
38474 (grub_machine_init): don't use grub_upper_mem,
38475 make grub_lower_mem local
38476 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
38477 grub_mmap_iterate and grub_mmap_get_upper
38478 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
38480 2009-05-02 Bean <bean123ch@gmail.com>
38482 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
38483 script/sh/parser.y.
38484 (pkglib_MODULES): Add normal.mod and sh.mod.
38485 (normal_SOURCES): New variable.
38486 (normal_mod_CFLAGS): Likewise.
38487 (normal_mod_LDFLAGS): Likewise.
38488 (sh_mod_SOURCES): Likewise.
38489 (sh_mod_CFLAGS): Likewise.
38490 (sh_mod_LDFLAGS): Likewise.
38492 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
38493 script/sh/lexer.c_DEPENDENCIES.
38494 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
38495 kern/rescue_reader.c and kern/rescue_parser.c.
38496 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
38497 (grub_emu_SOURCES): Change source files.
38498 (pkglib_MODULES): Remove normal.mod.
38499 (normal_SOURCES): Removed.
38500 (normal_mod_CFLAGS): Likewise.
38501 (normal_mod_LDFLAGS): Likewise.
38502 * conf/i386-coreboot.rmk: Likewise.
38503 * conf/i386-efi.rmk: Likewise.
38504 * conf/i386-ieee1276.rmk: Likewise.
38505 * conf/powerpc-ieee1275.rmk: Likewise.
38506 * conf/sparc64-ieee1275.rmk: Likewise.
38507 * conf/x86_64-efi.rmk: Likewise.
38509 * include/grub/command.h (grub_command_execute): New inline function.
38511 * include/grub/menu.h (grub_menu_entry): Removed commands field.
38513 * include/grub/normal.h: Remove <grub/setjmp.h>.
38514 (grub_fs_module_list): Moved to normal/autofs.c.
38515 (grub_exit_env): Removed.
38516 (grub_command_execute): Likewise.
38517 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
38519 (read_command_list): New function declaration.
38520 (read_fs_list): Likewise.
38522 * include/parser.h: Include <grub/reader.h>.
38523 (grub_parser_split_cmdline): Change type of getline parameter.
38524 (grub_parser): New structure.
38525 (grub_parser_class): New variable.
38526 (grub_parser_execute): New function declaration.
38527 (grub_register_rescue_parser): Likewise.
38528 (grub_parser_register): New inline function.
38529 (grub_parser_unregister): Likewise.
38530 (grub_parser_get_current): Likewise.
38531 (grub_parser_set_current): Likewise.
38533 * include/grub/reader.h: New file.
38534 * kern/reader.c: Likewise.
38535 * kern/rescue_parser.c: Likewise.
38536 * kern/rescue_reader.c: Likewise.
38537 * normal/autofs.c: Likewise.
38538 * normal/dyncmd.c: Likewise.
38540 * include/grub/rescue.h: Removed.
38541 * normal/command.h: Likewise.
38543 * include/grub/script.h: Moved to ...
38544 * include/grub/script_sh.h: ... Moved here.
38545 * normal/execute.c: Moved to ...
38546 * script/sh/execute.c: ... Moved here.
38547 * normal/function.c: Moved to ...
38548 * script/sh/function.c: ... Moved here.
38549 * normal/lexer.c: Moved to ...
38550 * script/sh/lexer.c: ... Moved here.
38551 * normal/parser.y: Moved to ...
38552 * script/sh/parser.y: ... Moved here.
38553 * normal/script.c: Moved to ...
38554 * script/sh/script.c: ... Moved here.
38556 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
38558 (grub_exit_env): Removed.
38559 (fs_module_list): Moved to normal/autofs.c.
38560 (grub_file_getline): Don't handle comment here.
38561 (free_menu): Skip removed field entry->commands.
38562 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
38564 (read_config_file): Removed nested parameter, change getline function.
38565 (grub_enter_normal_mode): Removed.
38566 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
38567 (read_command_list): Likewise.
38568 (autoload_fs_module): Moved to normal/autofs.c.
38569 (read_fs_list): Likewise.
38570 (reader_nested): New variable.
38571 (grub_normal_execute): Run parser.sh to switch to sh parser.
38572 (grub_cmd_rescue): Removed.
38573 (cmd_normal): Removed.
38574 (grub_cmd_normal): Unregister itself at the beginning. Don't register
38576 (grub_cmdline_run): New function.
38577 (grub_normal_reader_init): Likewise.
38578 (grub_normal_read_line): Likewise.
38579 (grub_env_write_pager): Likewise.
38580 (cmdline): New variable.
38581 (grub_normal_reader): Likewise.
38582 (GRUB_MOD_INIT): Register normal reader and set as current, register
38583 pager hook, register normal command with grub_register_command_prio,
38584 so that it won't show up in command.lst.
38585 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
38586 grub_fs_autoload_hook.
38588 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
38589 (grub_menu_execute_entry): Replace grub_script_execute with
38590 grub_parser_execute, change parameter to grub_command_execute.
38592 * normal/menu_text.c: Remove <grub/script.h>.
38594 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
38595 and <grub/parser.h>.
38596 (run): Change editor_getline to use new parser interface. Change
38597 parameter to grub_command_execute.
38599 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
38600 <grub/reader.h> and <grub/parser.h>.
38601 (grub_load_normal_mode): Execute normal command.
38602 (grub_main): Call grub_register_core_commands,
38603 grub_register_rescue_parser and grub_register_rescue_reader, use
38604 grub_reader_loop to enter input loop.
38606 * kern/parser.c (grub_parser_split_cmdline): Change type of
38608 (grub_parser_class): New variable.
38609 (grub_parser_execute): New function.
38611 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
38612 * loader/multiboot2.c: Likewise.
38613 * loader/sparc64/ieee1275/linux.c: Likewise.
38615 * util/grub-emu.c (read_command_list): New dummy function.
38617 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
38619 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
38620 count to 16 for CCISS and IDA.
38622 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
38624 * normal/menu_text.c (grub_wait_after_message): Print a newline
38625 after waiting for user input.
38627 * loader/i386/linux.c: Include `<grub/normal.h>'.
38628 (grub_cmd_linux): Improve the error message about `ask' mode, by
38629 waiting for user input so it's not missed (we can do this, since
38630 user requested interaction).
38632 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38634 Added missing lst to grub-mkrescue
38636 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
38637 and ${input_dir}/parttool.lst
38639 2009-04-30 David S. Miller <davem@davemloft.net>
38641 * util/hostdisk.c (device_is_wholedisk): New function.
38642 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
38643 zero only if device_is_wholedisk() returns true.
38645 * util/hostdisk.c (convert_system_partition_to_system_disk):
38646 Handle virtual disk devices named /dev/vdiskX as found on sparc
38649 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
38650 lettered partition specifier is found, convert to numbered.
38652 2009-04-29 David S. Miller <davem@davemloft.net>
38654 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
38655 * include/grub/sparc64/ieee1275/memory.h: Likewise.
38657 * normal/command.c: Add missing newline at end of file.
38659 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
38661 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
38662 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
38663 grub_ofdisk_read): Likewise, and deal similarly with the fact that
38664 ihandles have a 32-bit type but need to be stored in a "void *".
38666 2009-04-28 Pavel Roskin <proski@gnu.org>
38668 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
38669 not disk. Adjust all dependencies.
38670 (grub_fs_uuid_close): Use grub_device_close(), not
38673 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
38674 parent's partition, don't copy it by reference, as it gets freed
38677 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
38679 Preboot hooks support
38681 * commands/boot.c (struct grub_preboot_t): new declaration
38682 (preboots_head): new variable
38683 (preboots_tail): likewise
38684 (grub_loader_register_preboot_hook): new function
38685 (grub_loader_unregister_preboot_hook): likewise
38686 (grub_loader_set): launch preboot hooks
38687 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
38688 (grub_loader_register_preboot_hook): new declaration
38689 (grub_loader_unregister_preboot_hook): likewise
38691 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
38695 * disk/scsi.c (grub_scsi_open): added missing cast when
38696 calling grub_dprintf
38698 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
38700 Bug and warning fixes
38702 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
38704 * commands/test.c (test_parse): fixed bug with file tests and corrected
38705 declaration of find_file
38707 2009-04-26 Pavel Roskin <proski@gnu.org>
38709 * Makefile.in: Don't install empty manual pages if help2man is
38710 missing. Use help2man option for output, not shell redirection.
38712 2009-04-26 David S. Miller <davem@davemloft.net>
38714 * util/grub-mkdevicemap.c (make_device_map): Add missing
38715 NESTED_FUNC_ATTR to process_device().
38717 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
38721 * commands/test.c: rewritten to use bash-like test
38723 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
38725 Parttool autoloading and improvements
38727 * Makefile.in (pkglib_DATA): add parttool.lst
38728 (parttool.lst): new target
38729 * genmk.rb: generate parttool-*
38730 (CLEANFILES): add #{parttool}
38731 (PARTTOOLFILES): new variable
38732 * genparttoollist.sh: new file
38733 * parttool/pcpart.c (grub_pcpart_boot): more feedback
38734 (grub_pcpart_type): likewise
38735 * commands/parttool.c (helpmsg): new variable
38736 (grub_cmd_parttool): output help if not enough arguments are supplied
38738 (GRUB_MOD_INIT(parttool)): use helpmsg
38740 2009-04-24 David S. Miller <davem@davemloft.net>
38742 Avoiding opening same device multiple times in device iterator.
38744 * kern/device.c: (grub_device_iterate): Define struct part_ent,
38745 and use it to build a list of partitions in iterate_disk() and
38746 iterate_partition().
38748 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
38751 * disk/ieee1275/nand.c (grub_nand_iterate): Return
38752 grub_devalias_iterate() result instead of unconditional 0.
38753 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
38754 Also, capture hook return value, either directly or via
38755 grub_children_iterate(), and propagate to caller.
38756 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
38757 grub_children_iterate): Return value is now 'int' instead of
38759 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
38760 like a proper iterator, stopping when hooks return non-zero.
38761 (grub_devalias_iterate): Likewise.
38763 2009-04-23 David S. Miller <davem@davemloft.net>
38765 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
38767 2009-04-22 David S. Miller <davem@davemloft.net>
38769 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
38770 is larger than address_cells, use that value for address_cells too.
38772 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
38773 IEEE1275_MAX_PATH_LEN): Define.
38774 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
38775 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
38776 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
38777 'devtype'. Explicitly NULL terminate devalias expansion.
38779 * util/sparc64/ieee1275/misc.c: New file.
38780 * util/sparc64/ieee1275/grub-setup.c: New file.
38781 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
38782 * util/sparc64/ieee1275/grub-mkimage.c: New file.
38783 * util/sparc64/ieee1275/grub-install.in: New file.
38784 * util/ieee1275/ofpath.c: New file.
38785 * util/ieee1275/devicemap.c: New file.
38786 * util/devicemap.c: New file.
38787 * util/deviceiter.c: New file.
38788 * kern/sparc64/ieee1275/init.c: New file.
38789 * include/grub/util/ofpath.h: New file.
38790 * include/grub/util/deviceiter.h: New file.
38791 * util/grub-mkdevicemap.c: Include deviceiter.h.
38792 Implement using grub_util_emit_devicemap_entry and
38793 grub_util_iterate_devices.
38794 * conf/i386-corebook.rmk: Build util/deviceiter.c and
38795 util/devicemap.c into grub-mkdevicemap
38796 * conf/i386-efi.rmk: Likewise.
38797 * conf/i386-ieee1275.rmk: Likewise.
38798 * conf/i386-pc.rmk: Likewise.
38799 * conf/powerpc-ieee1275.rmk: Likewise.
38800 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
38801 images and installation utilities. Build kernel as image
38802 instead of as elf binary. Use common rules as much as possible.
38804 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
38806 Correct GPT definition
38808 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38811 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
38813 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
38815 2009-04-19 David S. Miller <davem@davemloft.net>
38817 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
38818 (grub_rescue_cmd_linux): Rename to...
38819 (grub_cmd_linux): and fix prototype.
38820 (grub_rescue_cmd_initrd): Rename to...
38821 (grub_cmd_initrd): and fix prototype.
38822 (cmd_linux, cmd_initrd): New.
38823 (GRUB_MOD_INIT(linux)): Use grub_register_command().
38824 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
38826 2009-04-17 Pavel Roskin <proski@gnu.org>
38828 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
38830 (grub_ohci_transfer): Likewise.
38832 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
38834 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
38835 return without a value. Fix inconsistent indentation.
38837 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
38838 match struct grub_fs.
38840 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
38841 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
38842 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38843 * commands/lspci.c (grub_lspci_iter): Likewise.
38845 2009-04-16 Bean <bean123ch@gmail.com>
38847 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
38850 2009-04-15 Pavel Roskin <proski@gnu.org>
38852 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
38853 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
38854 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
38857 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
38859 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
38860 that no multiple data or metadata areas are supported and `Unknown
38863 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
38865 Move loader out of the kernel
38867 * kern/loader.c: moved to ...
38868 * commands/boot.c: ... moved here
38869 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
38870 * commands/boot.c (grub_cmd_boot): moved here. All users updated
38871 * include/grub/kernel.h (grub_machine_fini): export
38872 * include/grub/loader.h (grub_loader_is_loaded): update declaration
38873 (grub_loader_set): likewise
38874 (grub_loader_unset): likewise
38875 (grub_loader_boot): likewise
38876 * conf/common.rmk: new module boot.mod
38877 (pkglib_MODULES): add boot.mod
38878 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
38879 (grub_emu_SOURCES): likewise
38880 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
38881 (grub_emu_SOURCES): likewise
38882 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
38883 (grub_emu_SOURCES): likewise
38884 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
38885 (grub_emu_SOURCES): likewise
38886 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
38887 (grub_emu_SOURCES): likewise
38888 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
38889 (grub_emu_SOURCES): likewise
38890 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
38891 (grub_emu_SOURCES): likewise
38893 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
38895 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
38897 * kern/misc.c (grub_itoa): Removed function
38898 (grub_ltoa): likewise
38899 (grub_vsprintf): use grub_lltoa
38901 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
38905 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
38906 * conf/i386-coreboot.rmk: likewise
38907 * conf/i386-ieee1275.rmk: likewise
38908 * conf/powerpc-ieee1275.rmk: likewise
38910 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
38912 * INSTALL: Add that `./autogen.sh' needs to be run before
38915 2009-04-14 Bean <bean123ch@gmail.com>
38917 * Makefile.in (pkglib_DATA): Add handler.lst.
38918 (handler.lst): New rule.
38920 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
38921 * conf/i386-coreboot.rmk: Likewise.
38922 * conf/i386-ieee1275.rmk: Likewise.
38923 * conf/i386-efi.rmk: Likewise.
38924 * conf/x86_64-efi.rmk: Likewise.
38925 * conf/powerpc-ieee1275.rmk: Likewise.
38926 * conf/sparc64-ieee1275.rmk: Likewise.
38928 * genhandlerlist.sh: New file.
38930 * genmk.rb: Add rules to generate handler.lst.
38932 * include/grub/normal.h (grub_file_getline): New function definition.
38933 (read_handler_list): Likewise.
38934 (free_handler_list): Likewise.
38936 * include/grub/term.h (grub_term_register_input): Add name parameter
38937 for auto generation of handler.lst.
38938 (grub_term_register_output): Likewise.
38940 * normal/handler.c: New file.
38942 * normal/main.c (get_line): Renamed to grub_file_getline.
38943 (read_config_file): Use the newly renamed grub_file_getline.
38944 (read_command_list): Likewise.
38945 (read_fs_list): Likewise.
38946 (grub_normal_execute): Call read_handler_list to parse handler.lst.
38947 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
38949 * term/efi/console.c (grub_console_init): Add name parameter for auto
38950 generation of handler.lst.
38951 * term/gfxterm.c: Likewise.
38952 * term/i386/pc/at_keyboard.c: Likewise.
38953 * term/i386/pc/console.c: Likewise.
38954 * term/i386/pc/serial.c: Likewise.
38955 * term/i386/pc/vesafb.c: Likewise.
38956 * term/i386/pc/vga.c: Likewise.
38957 * term/i386/pc/vga_text.c: Likewise.
38958 * term/ieee1275/ofconsole.c: Likewise.
38959 * term/usb_keyboard.c: Likewise.
38961 2009-04-14 Bean <bean123ch@gmail.com>
38963 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
38964 properly with null character.
38966 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
38968 * configure: Remove.
38969 * config.h.in: Likewise.
38970 * stamp-h.in: Likewise.
38971 * DISTLIST: Likewise.
38972 * conf/common.mk: Likewise.
38973 * conf/i386-coreboot.mk: Likewise.
38974 * conf/i386-efi.mk: Likewise.
38975 * conf/i386-ieee1275.mk: Likewise.
38976 * conf/i386.mk: Likewise.
38977 * conf/i386-pc.mk: Likewise.
38978 * conf/powerpc-ieee1275.mk: Likewise.
38979 * conf/sparc64-ieee1275.mk: Likewise.
38980 * conf/x86_64-efi.mk: Likewise.
38982 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
38985 2009-04-14 John Stanley <jpsinthemix@verizon.net>
38986 David S. Miller <davem@davemloft.net>
38988 * util/hostdisk.c (make_device_name): Fix buffer length
38991 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
38993 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
38994 <sys/param.h> and <sys/sysctl.h>.
38995 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
38996 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
38997 opening the device and reset them afterwards.
38999 2009-04-13 Pavel Roskin <proski@gnu.org>
39001 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39002 Reported by John Stanley <jpsinthemix@verizon.net>
39004 2009-04-13 Robert Millan <rmh@aybabtu.com>
39006 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39007 that name for menuentries when appropriate.
39009 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39011 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39013 2009-04-13 Robert Millan <rmh@aybabtu.com>
39015 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39016 to Linux, simply abort telling the user it's no longer supported.
39018 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39020 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39021 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39022 `freebsd_loadenv' only when devices.hints exist.
39024 2009-04-13 Pavel Roskin <proski@gnu.org>
39026 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39028 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39030 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39032 (grub_drive): Likewise.
39034 2009-04-13 David S. Miller <davem@davemloft.net>
39036 * kern/sparc64/ieee1275/ieee1275.c: New file.
39037 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39038 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39039 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39040 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39041 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39042 grub_ieee1275_alloc_physmem): Declare new exported functions.
39044 * include/grub/sparc64/ieee1275/loader.h: New file.
39045 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39046 * include/grub/sparc64/kernel.h: Likewise.
39047 * loader/sparc64/ieee1275/linux.c: Likewise.
39049 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39050 (grub_fstest_SOURCES): Likewise.
39052 * util/hostdisk.c (make_device_name): Do not make any assumptions
39053 about the length of drive names.
39055 * kern/dl.c (grub_dl_load_file): Close file immediately when
39056 we are done using it.
39058 2009-04-12 David S. Miller <davem@davemloft.net>
39060 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39061 values. Noticed by Pavel Roskin.
39063 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39066 * genmk.rb: Add more flexible image type specification, also
39067 pass --strip-unneeded to objcopy.
39068 * conf/i386-pc.rmk: Use *_FORMAT.
39069 * conf/i386-pc.mk: Rebuilt.
39071 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39072 (OFDISK_HASH_SZ): Define.
39073 (ofdisk_hash): New hash table.
39074 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39075 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39076 instead of device phandle which is not unique.
39078 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39079 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39080 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39081 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39082 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39083 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39084 GRUB_KERNEL_MACHINE_DATA_END): Define.
39085 (grub_kernel_image_size, grub_total_module_size): Declare.
39087 2009-04-12 Pavel Roskin <proski@gnu.org>
39089 * configure.ac: Change the logic when we check for target tools.
39090 Do it when the target is specified and it's different from the
39091 specified value of the host.
39093 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39095 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39096 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39097 GNU/kFreeBSD. Check if a device is a character device. Use
39098 DIOCGMEDIASIZE to get the size.
39099 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39100 support for GNU/kFreeBSD.
39101 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39102 is a character device instead of a block device. Add support for
39103 FreeBSD device names.
39105 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39106 is a character device instead of a block device.
39108 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39109 is a character device instead of a block device.
39111 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39113 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39114 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39115 FreeBSD. Check if a device is a character device. Use
39116 DIOCGMEDIASIZE to get the size.
39117 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39118 support for FreeBSD.
39119 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39120 is a character device instead of a block device. Add support for
39121 FreeBSD device names.
39123 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39124 a character device instead of a block device.
39125 (grub_util_check_char_device): New function.
39127 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39128 a character device instead of a block device.
39130 * include/grub/util/getroot.h (grub_util_check_char_device): New
39133 2009-04-11 David S. Miller <davem@davemloft.net>
39135 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39137 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39138 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39139 function, if present.
39140 (__bswapdi2): Likewise.
39142 * include/grub/sparc64/ieee1275/boot.h: New file.
39143 * boot/sparc64/ieee1275/boot.S: Likewise.
39144 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39146 * kern/misc.c (grub_ltoa): New function.
39147 (grub_vsprintf): Use it to format 'long' integers.
39149 2009-04-10 David S. Miller <davem@davemloft.net>
39151 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39152 slots are of type grub_ieee1275_cell_t.
39153 (grub_nand_read): Likewise.
39154 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39155 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39156 macros are used to compare values in arg/ret block of the call.
39157 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39158 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39159 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39160 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39161 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39162 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39163 grub_ieee1275_close, grub_ieee1275_set_property,
39164 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39165 grub_ieee1275_cell_t.
39166 * kern/ieee1275/openfw.c (grub_map): Likewise.
39167 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39168 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39170 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39171 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39172 (grub_devalias_iterate): Likewise.
39174 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39178 * fs/ufs.c (INODE_NBLOCKS): new definition
39179 (struct grub_ufs_dirent): added fields for non-BSD dirents
39180 (grub_ufs_get_file_block): fixed double indirect handling
39181 (grub_ufs_lookup_symlink): use more robust way to determine whether
39183 (grub_ufs_find_file): support for non-BSD dirents
39184 (grub_ufs_dir): support for non-BSD dirents
39186 2009-04-10 Bean <bean123ch@gnail.com>
39188 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39189 attribute, otherwise the size would be wrong for i386 platform.
39191 * include/grub/pci.h (grub_pci_read_word): New inline function.
39192 (grub_pci_read_byte): Likewise.
39193 (grub_pci_write): Likewise.
39194 (grub_pci_write_word): Likewise.
39195 (grub_pci_write_byte): Likewise.
39197 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39199 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39200 (find_framebuf): Scan pci to locate the frame buffer address.
39202 * commands/efi/fixvideo.c: New file.
39204 * commands/efi/loadbios.c: Likewise.
39206 * commands/memrw.c: Likewise.
39208 * util/grub-dumpbios.in: Likewise.
39210 * conf/common.rmk (grub-dumpbios): New utility.
39211 (pkglib_MODULES): New module memrw.mod.
39212 (memrw_mod_SOURCE): New macro.
39213 (memrw_mod_CFLAGS): Likewise.
39214 (memrw_mod_LDFLAGS): Likewise.
39216 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39218 (loadbios_mod_SOURCE): New macro.
39219 (loadbios_mod_CFLAGS): Likewise.
39220 (loadbios_mod_LDFLAGS): Likewise.
39221 (fixvideo_mod_SOURCE): Likewise.
39222 (fixvideo_mod_CFLAGS): Likewise.
39223 (fixvideo_mod_LDFLAGS): Likewise.
39225 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39227 (loadbios_mod_SOURCE): New macro.
39228 (loadbios_mod_CFLAGS): Likewise.
39229 (loadbios_mod_LDFLAGS): Likewise.
39230 (fixvideo_mod_SOURCE): Likewise.
39231 (fixvideo_mod_CFLAGS): Likewise.
39232 (fixvideo_mod_LDFLAGS): Likewise.
39234 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39236 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39238 2009-04-07 David S. Miller <davem@davemloft.net>
39240 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39241 support for R_SPARC_OLO10 relocations. Fix compile warning for
39242 R_SPARC_WDISP30 case.
39243 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39245 2009-04-06 Pavel Roskin <proski@gnu.org>
39247 * include/grub/misc.h (ARRAY_SIZE): New macro.
39248 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39250 * loader/i386/linux.c (allocate_pages): Use free_pages().
39251 (grub_linux_unload): Don't use free_pages().
39252 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39253 wrong index. Treat all other modes as text modes.
39254 (grub_cmd_linux): Initialize vid_mode unconditionally to
39255 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39257 * commands/help.c (print_command_help): Use cmd->prio, not
39258 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39260 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39264 * parttool/pcpart.c: new file
39265 * commands/parttool.c: likewise
39266 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39267 (parttool_mod_SOURCES): new variable
39268 (parttool_mod_CFLAGS): likewise
39269 (parttool_mod_LDFLAGS): likewise
39270 (pcpart_mod_SOURCES): likewise
39271 (pcpart_mod_CFLAGS): likewise
39272 (pcpart_mod_LDFLAGS): likewise
39273 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39274 and parttool/pcpart.c
39275 * conf/i386-efi.rmk: likewise
39276 * conf/i386-ieee1275.rmk: likewise
39277 * conf/i386-pc.rmk: likewise
39278 * conf/powerpc-ieee1275.rmk: likewise
39279 * conf/sparc64-ieee1275.rmk: likewise
39280 * conf/x86_64-ieee1275.rmk: likewise
39282 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39284 Support for mtime and further expandability of dir command
39286 * include/grub/lib/datetime.h: moved to ...
39287 * include/grub/datetime.h: ... moved here and added
39288 declaration of grub_unixtime2datetime. All users updated
39289 * include/grub/fs.h: new syntax for dir and mtime functions in
39291 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39292 and GRUB_FSHELP_FLAGS_MASK
39293 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39294 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39295 (grub_ext2_mtime): new function
39296 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39297 (grub_hfsplus_mtime): new function
39298 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39299 (GRUB_UFS_ATTR_FILE): likewise
39300 (GRUB_UFS_ATTR_LNK): likewise
39301 (struct grub_ufs_sblock): new fields mtime
39302 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39304 (grub_ufs_dir): mtime support
39305 (grub_ufs_mtime): new function
39306 * fs/affs.c (grub_affs_dir): use new dir syntax
39307 * fs/afs.c (grub_afs_dir): likewise
39308 * fs/cpio.c (grub_cpio_dir): likewise
39309 * fs/fat.c (grub_fat_find_dir): likewise
39310 * fs/hfs.c (grub_hfs_dir): likewise
39311 * fs/iso9660.c (grub_iso9660_dir): likewise
39312 * fs/jfs.c (grub_jfs_dir): likewise
39313 * fs/minix.c (grub_minix_dir): likewise
39314 * fs/ntfs.c (grub_ntfs_dir): likewise
39315 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39316 * fs/sfs.c (grub_sfs_dir): likewise
39317 * fs/xfs.c (grub_xfs_dir): likewise
39318 * util/hostfs.c (grub_hostfs_dir): likewise
39319 * lib/datetime.c: moved to ...
39320 * normal/datetime.c: ... moved here
39321 (grub_unixtime2datetime): new function
39322 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39323 * normal/completion.c (iterate_dir): use new dir syntax
39324 * normal/misc.c (grub_normal_print_device_info): tell the
39325 last modification time of a volume
39326 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39327 * conf/common.rmk: added lib/datetime.c to ls.mod
39328 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39329 (normal_mod_SOURCES): likewise
39330 (datetime_mod_SOURCES): Removed lib/datetime.c
39331 * conf/i386-efi.rmk: likewise
39332 * conf/i386-ieee1275.rmk: likewise
39333 * conf/i386-pc.rmk: likewise
39334 * conf/powerpc-ieee1275.rmk: likewise
39335 * conf/sparc64-ieee1275.rmk: likewise
39336 * conf/x86_64-efi.rmk: likewise
39338 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39340 Trim trailing spaces in FAT label and support mtools-like labels
39342 * fs/fat.c (grub_fat_iterate_dir): New function based
39343 on grub_fat_find_dir
39344 (grub_fat_find_dir): use grub_fat_iterate_dir
39345 (grub_fat_label): likewise
39347 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39349 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39351 remove extraneous kernel_elf_HEADERS
39353 2009-04-04 Bean <bean123ch@gnail.com>
39355 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39357 * util/misc.c: Likewise.
39359 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39361 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39362 instead of grub_printf.
39364 2009-04-03 Robert Millan <rmh@aybabtu.com>
39366 * loader/i386/linux.c (grub_linux_setup_video): Fill
39367 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39368 values from `mode info' structure instead of hardcoded
39371 2009-04-01 Pavel Roskin <proski@gnu.org>
39373 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39375 * genmk.rb: Likewise.
39376 * configure.ac: Likewise.
39378 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39380 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39381 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39383 2009-04-01 David S. Miller <davem@davemloft.net>
39385 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39386 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39387 (grub_setjmp): Mark with 'returns_twice' attribute.
39388 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39389 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39390 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39392 2009-04-01 Robert Millan <rmh@aybabtu.com>
39394 Reapply fix from 2008-07-28 which was accidentally reverted; also
39395 perform the same fix to a similar check in same function.
39397 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39398 with the same number are found, just use issue a warning with
39399 grub_dprintf(), as this error has been reported to be non-fatal.
39401 2009-03-31 Pavel Roskin <proski@gnu.org>
39403 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39404 for cross-compilation.
39406 2009-03-30 Robert Millan <rmh@aybabtu.com>
39408 Fix i386-ieee1275 build.
39410 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39411 Remove declaration.
39413 2009-03-30 Pavel Roskin <proski@gnu.org>
39415 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39416 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39417 zero-terminated, rely only on the strlen value. Fix comparison
39418 of strings differing in length.
39420 2009-03-30 Robert Millan <rmh@aybabtu.com>
39422 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39423 checking for abi version. Improve error messages on BIOS to notify
39424 user about `linux16' command.
39426 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39430 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39431 in case of collision
39432 * disk/scsi.c (grub_scsi_open): free scsi in case of error
39434 2009-03-29 Robert Millan <rmh@aybabtu.com>
39436 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39437 set `vid_mode' accordingly.
39438 (grub_linux_boot): Process `vid_mode' and set video mode.
39440 2009-03-29 Robert Millan <rmh@aybabtu.com>
39442 * util/grub.d/10_linux.in (linux_entry): New function.
39443 Factorize generation of Linux boot entries.
39445 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
39447 Make the format of Environment Block plain text. The boot loader
39448 part is not tested well yet.
39450 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
39452 (envblk): Likewise.
39453 (usage): Remove "info" and "clear". Add "unset". Update the
39454 description of "set", as this does not delete variables any
39456 (create_envblk_file): Complete rewrite.
39457 (open_envblk_file): Likewise.
39458 (cmd_info): Removed.
39459 (cmd_list): Likewise.
39460 (cmd_set): Likewise.
39461 (cmd_clear): Likewise.
39462 (list_variables): New function.
39463 (write_envblk): Likewise.
39464 (set_variables): Likewise.
39465 (unset_variables): Likewise.
39466 (main): Complete rewrite.
39468 * commands/loadenv.c (buffer): Removed.
39469 (envblk): Likewise.
39470 (open_envblk_file): New function.
39471 (read_envblk_file): Complete rewrite.
39472 (grub_cmd_load_env): Likewise.
39473 (grub_cmd_list_env): Likewise.
39474 (struct blocklist): New struct.
39475 (free_blocklists): New function.
39476 (check_blocklists): Likewise.
39477 (write_blocklists): Likewise.
39478 (grub_cmd_save_env): Complete rewrite.
39480 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
39481 a plain text signature.
39482 (GRUB_ENVBLK_MAXLEN): Removed.
39483 (struct grub_envblk): Complete rewrite.
39484 (grub_envblk_find): Removed.
39485 (grub_envblk_insert): Likewise.
39486 (grub_envblk_open): New prototype.
39487 (grub_envblk_set): Likewise.
39488 (grub_envblk_delete): Put const to VALUE.
39489 (grub_envblk_iterate): Put const to NAME and VALUE.
39490 (grub_envblk_close): New prototype.
39491 (grub_envblk_buffer): New inline function.
39492 (grub_envblk_size): Likewise.
39494 * lib/envblk.c: Include grub/mm.h.
39495 (grub_env_find): Removed.
39496 (grub_envblk_open): New function.
39497 (grub_envblk_close): Likewise.
39498 (escaped_value_len): Likewise.
39499 (find_next_line): Likewise.
39500 (grub_envblk_insert): Removed.
39501 (grub_envblk_set): New function.
39502 (grub_envblk_delete): Complete rewrite.
39503 (grub_envblk_iterate): Likewise.
39505 2009-03-28 Robert Millan <rmh@aybabtu.com>
39507 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
39508 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
39509 variables. Use 16-bit loader.
39510 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
39512 * kern/i386/loader.S (grub_linux_boot): Rename to ...
39513 (grub_linux16_boot): ... this. Update all users.
39514 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
39515 (grub_linux_boot): ... this. Update all users.
39517 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
39518 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
39519 commands to `linux16' and `initrd16'.
39520 (GRUB_MOD_FINI(linux)): Rename to ...
39521 (GRUB_MOD_FINI(linux16)): ... this.
39523 2009-03-24 Pavel Roskin <proski@gnu.org>
39525 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
39526 not just for compilation.
39528 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
39530 Move multiboot helper out of kernel
39532 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
39533 `loader/i386/multiboot_helper.S'.
39534 * conf/i386-coreboot.rmk: Likewise
39535 * conf/i386-ieee1275.rmk: Likewise
39537 * kern/i386/loader.S: Move multiboot helpers from here...
39538 * loader/i386/multiboot_helper.S: ...moved here
39539 * include/grub/i386/loader.h: Move declarations of multiboot
39540 helpers from here...
39541 * include/grub/i386/multiboot.h: ...moved here
39542 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
39544 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39546 * kern/env.c (grub_env_context_open): Added an argument to specify
39547 whether a new context inherits exported variables from current
39548 one. This is useful when making a sandbox to interpret a config
39550 All callers updated.
39552 * include/grub/env.h (grub_env_context_open): Updated the prototype.
39554 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39556 * kern/env.c (grub_env_context_close): Fix memory leaks.
39558 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39560 * normal/main.c (grub_normal_execute): Added an argument
39561 BATCH to specify if an interactive interface should be provided
39562 after reading a config file.
39563 All callers updated.
39564 (read_command_list): Prevent being executed twice.
39565 (read_fs_list): Likewise.
39567 * include/grub/normal.h (grub_normal_execute): Updated the
39570 2009-03-22 Pavel Roskin <proski@gno.org>
39572 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
39574 * kern/i386/pc/startup.S: Likewise.
39575 * kern/i386/efi/startup.S: Likewise.
39576 * kern/i386/ieee1275/startup.S: Likewise.
39577 * kern/i386/coreboot/startup.S: Likewise.
39578 * kern/x86_64/efi/startup.S: Likewise.
39580 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
39581 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
39582 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
39584 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
39586 Bugfixes in multiboot for bugs uncovered by solaris kernel.
39588 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
39590 Use vaddr of correct segment for entry_point.
39592 2009-03-21 Bean <bean123ch@gmail.com>
39594 * commands/blocklist.c: Add include file <grub/command.h>, remove
39595 <grub/normal.h> and <grub/arg.h>.
39596 (grub_cmd_blocklist): Use the new command interface.
39597 (GRUB_MOD_INIT): Likewise.
39598 (GRUB_MOD_FINI): Likewise.
39599 * commands/boot.c: Likewise.
39600 * commands/cat.c: Likewise.
39601 * commands/cmp.c: Likewise.
39602 * commands/configfile.c: Likewise.
39603 * commands/crc.c: Likewise.
39604 * commands/echo.c: Likewise.
39605 * commands/halt.c: Likewise.
39606 * commands/handler.c: Likewise.
39607 * commands/hdparm.c: Likewise.
39608 * commands/help.c: Likewise.
39609 * commands/hexdump.c: Likewise.
39610 * commands/loadenv.c: Likewise.
39611 * commands/ls.c: Likewise.
39612 * commands/lsmmap.c: Likewise.
39613 * commands/lspci.c: Likewise.
39614 * commands/loadenv.c: Likewise.
39615 * commands/read.c: Likewise.
39616 * commands/reboot.c: Likewise.
39617 * commands/search.c: Likewise.
39618 * commands/sleep.c: Likewise.
39619 * commands/test.c: Likewise.
39620 * commands/usbtest.c: Likewise.
39621 * commands/videotest.c: Likewise.
39622 * commands/i386/cpuid.c: Likewise.
39623 * commands/i386/pc/halt.c: Likewise.
39624 * commands/i386/pc/play.c: Likewise.
39625 * commands/i386/pc/pxecmd.c: Likewise.
39626 * commands/i386/pc/vbeinfo.c: Likewise.
39627 * commands/i386/pc/vbetest.c: Likewise.
39628 * commands/ieee1275/suspend.c: Likewise.
39629 * disk/loopback.c: Likewise.
39630 * font/font_cmd.c: Likewise.
39631 * hello/hello.c: Likewise.
39632 * loader/efi/appleloader.c: Likewise.
39633 * loader/efi/chainloader.c: Likewise.
39634 * loader/i386/bsd.c: Likewise.
39635 * loader/i386/efi/linux.c: Likewise.
39636 * loader/i386/ieee1275/linux.c: Likewise.
39637 * loader/i386/linux.c: Likewise.
39638 * loader/i386/pc/chainloader.c: Likewise.
39639 * loader/i386/pc/linux.c: Likewise.
39640 * loader/powerpc/ieee1275/linux.c: Likewise.
39641 * loader/multiboot_loader.c: Likewise.
39642 * term/gfxterm.c: Likewise.
39643 * term/i386/pc/serial.c: Likewise.
39644 * term/terminfo.c: Likewise.
39646 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
39647 * term/i386/pc/vga.c: Likewise.
39648 * video/readers/jpeg.c: Likewise.
39649 * video/readers/png.c: Likewise.
39650 * video/readers/tga.c: Likewise.
39652 * util/grub-fstest (cmd_loopback): Removed.
39653 (cmd_blocklist): Likewise.
39654 (cmd_ls): Likewise.
39655 (grub_register_command): Likewise.
39656 (grub_unregister_command): Likewise.
39657 (execute_command): Use grub_command_find to locate command and execute
39660 * include/grub/efi/chainloader.h: Removed.
39661 * loader/efi/chainloader_normal.c: Likewise.
39662 * loader/i386/bsd_normal.c: Likewise.
39663 * loader/i386/pc/chainloader_normal.c: Likewise.
39664 * loader/i386/pc/multiboot_normal.c: Likewise.
39665 * loader/linux_normal.c: Likewise.
39666 * loader/multiboot_loader_normal.c: Likewise.
39667 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39669 * gencmdlist.sh: Scan new registration command grub_register_extcmd
39670 and grub_register_command_p1.
39672 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
39673 kern/command.c, lib/arg.c and commands/extcmd.c.
39674 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
39675 (minicmd_mod_SOURCES): New variable.
39676 (minicmd_mod_CFLAGS): Likewise.
39677 (minicmd_mod_LDFLAGS): Likewise.
39678 (extcmd_mod_SOURCES): Likewise.
39679 (extcmd_mod_CFLAGS): Likewise.
39680 (extcmd_mod_LDFLAGS): Likewise.
39681 (boot_mod_SOURCES): Removed.
39682 (boot_mod_CFLAGS): Likewise.
39683 (boot_mod_LDFLAGS): Likewise.
39685 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
39687 (kernel_img_HEADERS): Add command.h.
39688 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
39689 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
39691 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
39692 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
39693 remove the corresponding normal mode command.
39694 (normal_mod_SOURCES): Remove normal/arg.c.
39695 * conf/i386-coreboot.rmk: Likewise.
39696 * conf/i386-efi.rmk: Likewise.
39697 * conf/i386-ieee1275.rmk: Likewise.
39698 * conf/powerpc-ieee1275.rmk: Likewise.
39699 * conf/x86_64-efi.rmk: Likewise.
39701 * include/grub/arg.h: Move from here ...
39702 * include/grub/lib/arg.h: ... to here.
39704 * normal/arg.c: Move from here ...
39705 * lib/arg.c: ... to here.
39707 * commands/extcmd.c: New file.
39708 * commands/minicmd.c: Likewise.
39709 * include/grub/command.h: Likewise.
39710 * include/grub/extcmd.h: Likewise.
39711 * kern/command.c: Likewise.
39712 * kern/corecmd.c: Likewise.
39714 * kern/list.c (grub_list_iterate): Return int instead of void.
39715 (grub_list_insert): New function.
39716 (grub_prio_list_insert): Likewise.
39718 * kern/rescue.c (grub_rescue_command): Removed.
39719 (grub_rescue_command_list): Likewise.
39720 (grub_rescue_register_command): Likewise.
39721 (grub_rescue_unregister_command): Likewise.
39722 (grub_rescue_cmd_boot): Move to minicmd.c
39723 (grub_rescue_cmd_help): Likewise.
39724 (grub_rescue_cmd_info): Likewise.
39725 (grub_rescue_cmd_boot): Likewise.
39726 (grub_rescue_cmd_testload): Likewise.
39727 (grub_rescue_cmd_dump): Likewise.
39728 (grub_rescue_cmd_rmmod): Likewise.
39729 (grub_rescue_cmd_lsmod): Likewise.
39730 (grub_rescue_cmd_exit): Likewise.
39731 (grub_rescue_print_devices): Moved to corecmd.c.
39732 (grub_rescue_print_files): Likewise.
39733 (grub_rescue_cmd_ls): Likewise.
39734 (grub_rescue_cmd_insmod): Likewise.
39735 (grub_rescue_cmd_set): Likewise.
39736 (grub_rescue_cmd_unset): Likewise.
39737 (attempt_normal_mode): Use grub_command_find to get normal module.
39738 (grub_enter_rescue_mode): Use grub_register_core_commands to register
39739 commands, remove grub_rescue_register_command calls.
39741 * normal/command.c (grub_register_command): Removed.
39742 (grub_unregister_command): Likewise.
39743 (grub_command_find): Likewise.
39744 (grub_iterate_commands): Likewise.
39745 (rescue_command): Likewise.
39746 (export_command): Moved to corecmd.c.
39747 (set_command): Removed.
39748 (unset_command): Likewise.
39749 (insmod_command): Likewise.
39750 (rmmod_command): Likewise.
39751 (lsmod_command): Likewise.
39752 (grub_command_init): Likewise.
39754 * normal/completion.c (iterate_command): Use cmd->prio to check for
39756 (complete_arguments): Use grub_extcmd_t structure to find options.
39757 (grub_normal_do_completion): Change function grub_iterate_commands to
39758 grub_command_iterate.
39760 * normal/execute.c (grub_script_execute_cmd): No need to parse
39763 * normal/main.c (grub_dyncmd_dispatcher): New function.
39764 (read_command_list): Register unload commands as dyncmd.
39765 (grub_cmd_normal): Use new command interface, register rescue,
39766 unregister normal at entry, register normal, unregister rescue at exit.
39768 * include/grub/list.h (grub_list_test_t): New type.
39769 (grub_list_iterate): Return int instead of void.
39770 (grub_list_insert): New function.
39771 (GRUB_AS_NAMED_LIST_P): New macro.
39772 (GRUB_AS_PRIO_LIST): Likewise.
39773 (GRUB_AS_PRIO_LIST_P): Likewise.
39774 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
39775 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
39776 (grub_prio_list): New structure.
39777 (grub_prio_list_insert): New function.
39778 (grub_prio_list_remove): New inline function.
39780 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
39781 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
39782 (GRUB_COMMAND_FLAG_MENU): Likewise.
39783 (GRUB_COMMAND_FLAG_BOTH): Likewise.
39784 (GRUB_COMMAND_FLAG_TITLE): Likewise.
39785 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
39786 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
39787 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
39788 (grub_command): Likewise.
39789 (grub_register_command): Likewise.
39790 (grub_command_find): Likewise.
39791 (grub_iterate_commands): Likewise.
39792 (grub_command_init): Likewise.
39793 (grub_arg_parse): Likewise.
39794 (grub_arg_show_help): Likewise.
39796 * include/grub/rescue.h (grub_rescue_register_command): Removed.
39797 (grub_rescue_unregister_command): Likewise.
39799 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
39800 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
39801 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
39803 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
39804 grub_rescue_cmd_initrd.
39805 * include/grub/i386/loader.h: Likewise.
39806 * include/grub/x86_64/loader.h: Likewise.
39808 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
39810 2009-03-21 Bean <bean123ch@gmail.com>
39812 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
39813 instead of stat in mingw environment.
39815 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
39817 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
39819 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
39822 2009-03-21 Bean <bean123ch@gmail.com>
39824 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
39825 out of range error.
39827 2009-03-18 Michel Dänzer <michel@daenzer.net>
39829 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
39830 checking inode flags for EXT4_EXTENTS_FLAG.
39832 2009-03-18 Robert Millan <rmh@aybabtu.com>
39834 * loader/i386/linux.c: Include `<grub/video.h>' and
39835 `<grub/i386/pc/vbe.h>'..
39836 (grub_linux_setup_video): New function. Loosely based on the EFI one.
39837 (grub_linux32_boot): Attempt to configure video settings with
39838 grub_linux_setup_video().
39839 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
39840 to avoid grub_console_fini() which would step out of graphical mode
39843 2009-03-14 Robert Millan <rmh@aybabtu.com>
39845 Fix build on powerpc.
39846 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
39848 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
39850 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
39851 background image command.
39853 2009-03-12 Colin D Bennett <colin@gibibit.com>
39855 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
39856 (grub_gfxterm_putchar): Extract pairs of identical calls to
39857 draw_cursor out of conditional blocks.
39859 2009-03-11 Pavel Roskin <proski@gnu.org>
39861 * fs/hfs.c (grub_hfs_strncasecmp): New function.
39862 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
39864 2009-03-11 Robert Millan <rmh@aybabtu.com>
39866 * loader/i386/multiboot_elfxx.c
39867 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
39869 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
39871 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
39874 2009-03-11 Robert Millan <rmh@aybabtu.com>
39876 * loader/i386/multiboot.c (code_size): New variable.
39877 (grub_multiboot): Define offsets by adding to `code_size' rather
39878 than subtracting from `grub_multiboot_payload_size'. Provide
39879 4-byte alignment to MBI and others by increasing
39880 `boot_loader_name_length' appropriately.
39882 * loader/i386/multiboot_elfxx.c
39883 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
39885 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
39887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
39890 2009-03-08 Robert Millan <rmh@aybabtu.com>
39892 Make loader/i386/linux.c usable on i386-pc again.
39894 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
39896 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
39899 2009-03-07 Bean <bean123ch@gmail.com>
39901 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
39904 2009-03-06 Robert Millan <rmh@aybabtu.com>
39906 Fix display issue on terminals with screen size other than 80x25
39907 (e.g. gfxterm with resolution higher than 640x480).
39909 * normal/main.c (grub_normal_init_page): Display title text in a
39910 position relative to the center of the terminal instead of relying
39911 on a hardcoded offset.
39913 2009-03-04 Robert Millan <rmh@aybabtu.com>
39915 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
39918 * Makefile.in (host_kernel): New variable.
39919 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
39920 scripts instead of just the windows one.
39921 * configure.ac: Initialize and AC_SUBST `host_kernel'.
39923 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
39925 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
39927 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39928 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39929 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39930 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39931 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39932 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39934 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
39936 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
39937 or if there's no space for the disk label and print the partition number on a
39940 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
39942 * util/misc.c: Include <time.h>.
39943 (grub_millisleep): New function.
39945 2009-03-04 Bean <bean123ch@gmail.com>
39947 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
39948 another option -mno-red-zone.
39950 * commands/handler.c: Change module description.
39952 * kern/handler.c: Add missing space at the end of description line.
39954 * kern/list.c: Likewise.
39956 2009-03-03 Robert Millan <rmh@aybabtu.com>
39958 Move more components to the relocation area, and fix mbi pointer
39959 handling to use the destination rather than the origin (thanks to
39960 Vladimir Serbinenko for spotting).
39962 * loader/i386/multiboot.c (mbi_dest): New variable.
39963 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
39964 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
39967 2009-03-01 Bean <bean123ch@gmail.com>
39969 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
39970 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
39971 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
39972 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
39974 * loader/i386/efi/linux.c (acpi_guid): New variable.
39975 (acpi_guid): Likewise.
39976 (EBDA_SEG_ADDR): New constant.
39977 (LOW_MEM_ADDR): Likewise.
39978 (FAKE_EBDA_SEG): Likewise.
39979 (fake_bios_data): New function.
39980 (grub_linux_boot): Call fake_bios_data.
39982 2009-03-01 Bean <bean123ch@gmail.com>
39984 * commands/terminal.c: Removed.
39986 * commands/handler.c: New file.
39988 * include/grub/list.h: Likewise.
39990 * include/grub/handler.h: Likewise.
39992 * kern/list.c: Likewise.
39994 * kern/handler.c: Likewise.
39996 * kern/term.h: Include header file <grub/handler.h>.
39997 (grub_term_input): Move next field to the beginning.
39998 (grub_term_output): Likewise.
39999 (grub_term_input_class): New variable.
40000 (grub_term_output_class): Likewise.
40001 (grub_term_register_input): Changed to inline function.
40002 (grub_term_register_output): Likewise.
40003 (grub_term_unregister_input): Likewise.
40004 (grub_term_unregister_output): Likewise.
40005 (grub_term_set_current_input): Likewise.
40006 (grub_term_set_current_output): Likewise.
40007 (grub_term_get_current_input): Likewise.
40008 (grub_term_get_current_output): Likewise.
40009 (grub_term_iterate_input): Removed.
40010 (grub_term_iterate_output): Likewise.
40012 * kern/term.c (grub_term_list_input): Removed.
40013 (grub_term_list_output): Likewise.
40014 (grub_term_input_class): New variable.
40015 (grub_term_output_class): Likewise.
40016 (grub_cur_term_input): Change variable as macro.
40017 (grub_cur_term_output): Likewise.
40018 (grub_term_register_input): Removed.
40019 (grub_term_register_output): Likewise.
40020 (grub_term_unregister_input): Likewise.
40021 (grub_term_unregister_output): Likewise.
40022 (grub_term_set_current_input): Likewise.
40023 (grub_term_set_current_output): Likewise.
40024 (grub_term_iterate_input): Likewise.
40025 (grub_term_iterate_output): Likewise.
40026 (grub_term_get_current_input): Likewise.
40027 (grub_term_get_current_output): Likewise.
40029 * util/grub-editenv.c: Include header file <grub/handler.h>.
40030 (grub_term_get_current_input): Removed.
40031 (grub_term_get_current_output): Likewise.
40032 (grub_term_input_class): New variable.
40033 (grub_term_output_class): Likewise.
40035 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40036 (grub_term_get_current_output): Likewise.
40037 (grub_term_input_class): New variable.
40038 (grub_term_output_class): Likewise.
40040 * util/grub-probe.c (grub_term_get_current_input): Removed.
40041 (grub_term_get_current_output): Likewise.
40042 (grub_term_input_class): New variable.
40043 (grub_term_output_class): Likewise.
40045 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40046 (grub_term_get_current_output): Likewise.
40047 (grub_term_input_class): New variable.
40048 (grub_term_output_class): Likewise.
40050 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40051 (terminal_mod_SOURCES): Likewise.
40052 (terminal_mod_CFLAGS): Likewise.
40053 (terminal_mod_LDFLAGS): Likewise.
40055 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40057 (kernel_img_SOURCES): Add list.c and handler.c.
40058 (kernel_img_HEADERS): Add list.h and handler.h.
40060 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40062 (kernel_mod_SOURCES): Add list.c and handler.c.
40063 (kernel_mod_HEADERS): Add list.h and handler.h.
40065 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40067 (kernel_elf_SOURCES): Add list.c and handler.c.
40068 (kernel_elf_HEADERS): Add list.h and handler.h.
40070 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40072 (kernel_elf_SOURCES): Add list.c and handler.c.
40073 (kernel_elf_HEADERS): Add list.h and handler.h.
40075 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40077 (kernel_mod_SOURCES): Add list.c and handler.c.
40078 (kernel_mod_HEADERS): Add list.h and handler.h.
40080 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40082 (kernel_elf_SOURCES): Add list.c and handler.c.
40083 (kernel_elf_HEADERS): Add list.h and handler.h.
40085 2009-02-27 Robert Millan <rmh@aybabtu.com>
40087 Factorize elf32 / elf64 code in Multiboot loader. This will
40088 prevent it from getting out of sync again.
40090 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40091 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40092 grub_multiboot_load_elf64): Move from here ...
40093 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40094 grub_multiboot_load_elf): ... to here (new file).
40096 2009-02-27 Robert Millan <rmh@aybabtu.com>
40098 * util/grub.d/10_linux.in: Rename "single-user mode" to
40101 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40103 Don't leak in SCSI code.
40104 * disk/scsi.c (grub_scsi_close): free `scsi'.
40106 2009-02-27 Robert Millan <rmh@aybabtu.com>
40108 * loader/i386/pc/multiboot.c: Move from here ...
40109 * loader/i386/multiboot.c: ... to here. Update all users.
40111 2009-02-27 Robert Millan <rmh@aybabtu.com>
40113 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40114 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40116 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40118 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40121 2009-02-27 Robert Millan <rmh@aybabtu.com>
40123 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40124 `0x' qualifier as 0 when base is specified as parameter).
40126 2009-02-24 Bean <bean123ch@gmail.com>
40128 * configure.ac: Check for -mcmodel=large in x86_64 target.
40130 * include/grub/efi/api.h (efi_call_10): New macro.
40131 (efi_wrap_10): New function.
40133 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40134 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40135 (GRUB_PE32_REL_BASED_LOW): Likewise.
40136 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40137 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40138 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40139 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40140 (GRUB_PE32_REL_BASED_REL): Likewise.
40141 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40142 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40143 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40145 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40148 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40149 (efi_wrap_10): New function.
40151 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40153 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40154 MB/MBP model (NV chipset).
40155 (devdata_devs): Add devpath_5 to the list.
40157 * load/i386/efi/linux.c (video_base): Remove variable.
40158 (RGB_MASK): New macro.
40159 (RGB_MAGIC): Likewise.
40160 (LINE_MIN): Likewise.
40161 (LINE_MAX): Likewise.
40162 (FBTEST_STEP): Likewise.
40163 (FBTEST_COUNT): Likewise.
40164 (fb_list): New variable.
40165 (grub_find_video_card): Remove function.
40166 (find_framebuf): New function.
40167 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40170 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40171 problem for x86_64.
40173 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40175 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40177 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40180 2009-02-22 Robert Millan <rmh@aybabtu.com>
40182 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40183 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40184 in our relocation, instead of using it directly from heap. Also
40185 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40187 2009-02-21 Robert Millan <rmh@aybabtu.com>
40189 Implement USB keyboard support (based on patch by Marco Gerards)
40191 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40192 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40193 (usb_keyboard_mod_LDFLAGS): New variables.
40195 * term/usb_keyboard.c: New file.
40197 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40199 Corrected wrong declaration
40201 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40203 2009-02-14 Christian Franke <franke@computer.org>
40205 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40206 (grub_lspci_iter): Print class code and programming interface byte.
40208 2009-02-14 Christian Franke <franke@computer.org>
40210 * gendistlist.sh: Ignore `.svn' directories.
40212 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40214 * fs/fat.c: Add 2009 to Copyright line.
40216 2009-02-14 Christian Franke <franke@computer.org>
40218 * commands/hdparm.c: New file. Provides `hdparm' command
40219 which sends ATA commands via grub_disk_ata_pass_through ().
40221 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40223 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40224 and <grub/cpu/io.h> to include/grub/ata.h.
40225 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40226 (GRUB_CDROM_SECTOR_SIZE): Remove.
40227 (GRUB_ATA_*): Move to include/grub/ata.h.
40228 (GRUB_ATAPI_*): Likewise.
40229 (enum grub_ata_commands): Likewise.
40230 (enum grub_ata_timeout_milliseconds): Likewise.
40231 (struct grub_ata_device): Likewise.
40232 (grub_ata_regset): Likewise.
40233 (grub_ata_regget): Likewise.
40234 (grub_ata_regset2): Likewise.
40235 (grub_ata_regget2): Likewise.
40236 (grub_ata_check_ready): Likewise.
40237 (grub_ata_wait_not_busy): Remove static, exported in
40238 include/grub/ata.h.
40239 (grub_ata_wait_drq): Likewise.
40240 (grub_ata_pio_read): Likewise.
40242 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40243 function for hdparm.mod.
40245 * include/grub/ata.h: New file, contains declarations from
40247 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40249 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40250 (grub_disk_ata_pass_through): New exported variable.
40252 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40254 2009-02-13 Colin D Bennett <colin@gibibit.com>
40256 Support multiple fallback entries, and provide an API to support
40257 executing default+fallback menu entries. Renamed the `terminal' menu
40260 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40261 variable declaration.
40262 (grub_menu_execute_callback): New structure declaration.
40263 (grub_menu_execute_callback_t): New typedef.
40264 (grub_menu_execute_with_fallback): New function declaration.
40265 (grub_menu_get_entry): Likewise.
40266 (grub_menu_get_timeout): Likewise.
40267 (grub_menu_set_timeout): Likewise.
40269 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40271 * normal/menu.c (grub_wait_after_message): Moved to
40272 `normal/menu_text.c'.
40273 (draw_border): Likewise.
40274 (print_message): Likewise.
40275 (print_entry): Likewise.
40276 (print_entries): Likewise.
40277 (grub_menu_init_page): Likewise.
40278 (get_entry_number): Likewise.
40279 (print_timeout): Likewise.
40280 (run_menu): Likewise.
40281 (grub_menu_execute_entry): Likewise.
40282 (show_text_menu): Likewise.
40283 (get_and_remove_first_entry_number): New function.
40284 (grub_menu_execute_with_fallback): Likewise.
40285 (get_entry): Renamed to ...
40286 (grub_menu_get_entry): .. this and made it global.
40287 (get_timeout): Renamed to ...
40288 (grub_menu_get_timeout): ... this and made it global.
40289 (set_timeout): Renamed to ...
40290 (grub_menu_set_timeout): ... this and made it global.
40291 (grub_normal_terminal_menu_viewer): Renamed to ...
40292 (grub_normal_text_menu_viewer): ... this.
40294 * normal/menu_text.c: New file. Extracted text-menu-specific code
40295 from normal/menu.c.
40297 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40298 (normal_mod_SOURCES): Likewise.
40300 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40301 (normal_mod_SOURCES): Likewise.
40303 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40304 (normal_mod_SOURCES): Likewise.
40306 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40307 (normal_mod_SOURCES): Likewise.
40309 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40310 (normal_mod_SOURCES): Likewise.
40312 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40313 (normal_mod_SOURCES): Likewise.
40315 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40316 (normal_mod_SOURCES): Likewise.
40318 2009-02-11 Robert Millan <rmh@aybabtu.com>
40320 * util/grub.d/00_header.in: Update old reference to `font' command.
40322 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40324 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40326 Based on patch from Javier Martín.
40328 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40330 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40331 to avoid false positives with FAT.
40332 (grub_fstest_SOURCES): Likewise.
40333 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40334 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40335 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40336 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40337 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40338 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40340 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40342 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40343 bpb.version_specific.fat12_or_fat16.fstype and
40344 bpb.version_specific.fat32.fstype.
40346 2009-02-08 Robert Millan <rmh@aybabtu.com>
40348 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40350 2009-02-08 Robert Millan <rmh@aybabtu.com>
40352 * Makefile.in (host_os, host_cpu): New variables.
40353 (target_os): Remove. Update all users.
40355 2009-02-08 Marco Gerards <marco@gnu.org>
40357 * Makefile.in (enable_grub_emu_usb): New variable.
40358 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40359 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40360 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40361 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40362 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40363 `usbtest.mod' and `usbms.mod'.
40364 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40365 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40366 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40367 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40368 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40371 * disk/usbms.c: New file.
40373 * include/grub/usb.h: Likewise.
40375 * include/grub/usbtrans.h: Likewise.
40377 * include/grub/usbdesc.h: Likewise.
40379 * bus/usb/usbtrans.c: Likewise.
40381 * bus/usb/ohci.c: Likewise.
40383 * bus/usb/uhci.c: Likewise.
40385 * bus/usb/usbhub.c: Likewise.
40387 * bus/usb/usb.c: Likewise.
40389 * commands/usbtest.c: Likewise.
40391 * util/usb.c: Likewise.
40393 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40395 * configure.ac: Test for libusb presence.
40397 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40399 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40401 * kern/mm.c: Add more comments.
40403 2009-02-08 Robert Millan <rmh@aybabtu.com>
40405 Patch from Javier Martín.
40406 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40407 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40409 2009-02-08 Robert Millan <rmh@aybabtu.com>
40411 * fs/cpio.c: Split tar functionality to ...
40412 * fs/tar.c: ... here (new file). Update all users.
40414 2009-02-07 Robert Millan <rmh@aybabtu.com>
40416 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40417 backward-incompatible features.
40419 Based on patch from Javier Martín, with some adjustments.
40421 2009-02-07 Michael Scherer <misc@mandriva.org>
40423 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40425 2009-02-07 Robert Millan <rmh@aybabtu.com>
40427 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40428 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40429 after the RAID stuff.
40431 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40433 Fixes problem when running vbetest command as reported by
40434 Vladimir Serbinenko <phcoder@gmail.com>.
40436 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40438 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
40440 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40441 /dev/md/NpN style mdraid devices.
40443 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40445 * util/unifont2pff.rb: Remove.
40447 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40449 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
40452 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40454 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
40455 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40456 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40457 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40458 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40459 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40460 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40462 2009-02-02 Christian Franke <franke@computer.org>
40464 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
40466 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
40468 * INSTALL: Note that we now require at least autoconf 2.59 and
40469 that LZO is optional.
40471 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40473 Base on patch on bug #24154 created by Tomas Tintera
40474 <trosos@seznam.cz>.
40476 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
40478 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40480 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
40481 <bero@arklinux.org>.
40483 * normal/parser.y (script_init): Add missing semicolon.
40485 2009-01-31 Colin D Bennett <colin@gibibit.com>
40487 * normal/main.c: Add include to grub/menu_viewer.h.
40488 (free_menu_entry_classes): Added.
40489 (grub_normal_menu_addentry): Added class property handling.
40490 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
40491 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
40493 * normal/menu_viewer.c: New file.
40495 * normal/menu.c (run_menu_entry): Renamed to ...
40496 (grub_menu_execute_entry): ... this and made it as global.
40497 (grub_menu_run): Renamed to ...
40498 (show_text_menu): ... this and made it local.
40499 (show_text_menu): Adapt to new function names.
40500 (grub_normal_terminal_menu_viewer): New global variable.
40502 * include/grub/menu.h: New file.
40504 * include/grub/menu_viewer.h: New file.
40506 * include/grub/normal.h: Added include to grub/menu.h.
40507 (grub_menu_entry): Moved to include/grub/menu.h.
40508 (grub_menu_entry_t): Likewise.
40509 (grub_menu): Likewise.
40510 (grub_menu_t): Likewise.
40511 (grub_normal_terminal_menu_viewer): Added.
40512 (grub_menu_execute_entry): Likewise.
40513 (grub_menu_run): Removed.
40515 * DISTLIST: Added include/grub/menu.h.
40516 Added include/grub/menu_viewer.h.
40517 Added normal/menu_viewer.c.
40519 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
40521 * normal/execute.c (grub_script_execute_menuentry): Changed to use
40522 arglist for menutitle arguments.
40524 * normal/main.c (grub_normal_menu_addentry): Likewise.
40526 * normal/parser.y (menuentry): Likewise.
40528 * normal/script.c (grub_script_create_cmdmenu): Likewise.
40530 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
40531 (grub_script_create_cmdmenu): Likewise.
40533 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
40535 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
40538 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
40540 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
40542 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
40544 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40546 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40548 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40550 2009-01-30 Christian Franke <franke@computer.org>
40552 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
40553 in option help text.
40555 2009-01-27 Pavel Roskin <proski@gnu.org>
40557 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
40559 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
40561 * commands/lsmmap.c: Add include to grub/machine/memory.h.
40563 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
40565 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
40566 unregister function.
40568 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
40570 * disk/scsi.c (grub_scsi_read): Fix sign problem.
40572 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
40574 * util/grub-mkfont.c (usage): Fix typo.
40576 * util/elf/grub-mkimage.c (load_modules): Fix warning.
40578 2009-01-26 Daniel Mierswa <impulze@impulze.org>
40580 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
40582 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
40584 * kern/misc.c (grub_strcasecmp): New function.
40585 (grub_strcasecmp): Use grub_size_t instead of int for length.
40587 * include/grub/misc.h: Update function prototypes.
40589 2009-01-26 Robert Millan <rmh@aybabtu.com>
40591 * configure.ac: Fix cross-compilation check.
40593 2009-01-22 Christian Franke <franke@computer.org>
40595 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
40596 (precision) digit string. Allow `.format2' without `format1' (width).
40597 Limit input chars for `%s' output to `format2' if specified. This is
40598 compatible with standard printf ().
40600 2009-01-22 Christian Franke <franke@computer.org>
40602 * disk/ata.c (grub_ata_wait_status): Replace by ...
40603 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
40604 other status bits may be invalid while BSY is asserted.
40605 (grub_ata_check_ready): New function.
40606 (grub_ata_cmd): Removed.
40607 (grub_ata_wait_drq): New function.
40608 (grub_ata_strncpy): Remove inline.
40609 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
40610 and error check now done by grub_ata_wait_drq ().
40611 (grub_ata_pio_write): Likewise.
40612 (grub_atapi_identify): Set DEV before check for !BSY. Use
40613 grub_ata_wait_drq () to wait for data.
40614 (grub_ata_device_initialize): Add status register check to
40615 detect missing SATA slave devices. Add debug messages.
40616 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
40617 (grub_atapi_packet): Set DEV before check for !BSY. Replace
40618 transfer loop by grub_ata_pio_write ().
40619 (grub_ata_identify): Set DEV before check for !BSY. Use
40620 grub_ata_wait_drq () to wait for data.
40621 (grub_ata_setaddress): Set DEV before check for !BSY.
40622 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
40623 read/write in one loop. Fix invalid command on write. Fix incomplete
40624 command on (size % batch) == 0. Add missing error check after write of
40625 last block. Add debug messages.
40626 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
40628 2009-01-19 Christian Franke <franke@computer.org>
40630 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
40631 (GRUB_ATAPI_IREASON_*): Likewise.
40632 (grub_ata_pio_write): Fix timeout error return.
40633 (grub_atapi_identify): Add grub_ata_wait () after cmd.
40634 (grub_atapi_wait_drq): New function.
40635 (grub_atapi_packet): New parameter `size'.
40636 Use grub_atapi_wait_drq () and direct write instead of
40637 grub_ata_pio_write ().
40638 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
40639 reads the number of bytes requested by the device for each DRQ
40641 (grub_atapi_write): Remove old implementation, return not
40642 implemented instead.
40644 2009-01-19 Christian Franke <franke@computer.org>
40646 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
40647 of 512 to calculate data size.
40648 (grub_scsi_read12): Likewise.
40649 (grub_scsi_write10): Likewise.
40650 (grub_scsi_write12): Likewise.
40651 (grub_scsi_read): Adjust size according to blocksize.
40652 Add checks for invalid blocksize and unaligned transfer.
40654 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
40656 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
40658 * term/gfxterm.c (write_char): Fix background rendering for wide
40661 2009-01-19 Robert Millan <rmh@aybabtu.com>
40663 * config.guess: Update to latest version from config git.
40664 * config.sub: Likewise.
40666 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
40668 * Makefile.in: Change font compilation to use new grub-mkfont instead
40671 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
40672 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
40673 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40674 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40675 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
40676 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
40677 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
40678 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
40679 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
40681 2009-01-16 Christian Franke <franke@computer.org>
40683 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
40684 (enum grub_ata_timeout_milliseconds): New enum.
40685 (grub_ata_wait_status): Add parameter milliseconds.
40686 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
40687 recovery from timed-out commands.
40688 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
40689 return grub_errno instead of REG_ERROR.
40690 (grub_ata_pio_write): Add parameter milliseconds.
40691 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
40692 Pass milliseconds to grub_ata_wait_status () and
40693 grub_ata_pio_read ().
40694 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
40695 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
40696 grub_ata_wait_status (). Fix IDENTIFY timeout check.
40697 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
40698 It is not suitable for device detection, because DEV bit is ignored,
40699 the command may run too long, and not all devices set the signature
40701 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
40702 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
40703 Fix device selection, DEV bit must be set first to address the registers
40704 of the correct device.
40705 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
40706 grub_ata_pio_read/write ().
40707 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
40708 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
40710 2009-01-13 Carles Pina i Estany <carles@pina.cat>
40712 * util/grub-editenv.c (main): Use fseeko(), not fseek().
40714 2009-01-13 Bean <bean123ch@gmail.com>
40716 * util/grub-mkfont.c (write_font): forget to remove some debug code.
40718 2009-01-13 Bean <bean123ch@gmail.com>
40720 * Makefile.in: (enable_grub_mkfont): New variable.
40721 (freetype_cflags): Likewise.
40722 (freetype_libs): Likewise.
40724 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
40725 (grub_mkfont_SOURCES): New variable.
40726 (grub_mkfont_CFLAGS): Likewise.
40727 (grub_mkfont_LDFLAGS): Likewise.
40729 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
40730 library if `--enable-grub-mkfont' is requested.
40731 (enable_grub_mkfont): New variable.
40732 (freetype_cflags): Likewise.
40733 (freetype_libs): Likewise.
40735 * util/grub-mkfont.c: New file.
40737 2009-01-12 Christian Franke <franke@computer.org>
40739 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
40740 mode check. Fix setting of compat_use[].
40742 2009-01-10 Robert Millan <rmh@aybabtu.com>
40744 Update a few copyright years which we forgot to do in 2008 (only for
40745 files whose changes made in 2008 were copyright-significant)
40747 * Makefile.in: Add 2008 to Copyright line.
40748 * disk/ieee1275/ofdisk.c: Likewise.
40749 * disk/efi/efidisk.c: Likewise.
40750 * kern/dl.c: Likewise.
40751 * kern/sparc64/ieee1275/init.c: Likewise.
40752 * kern/mm.c: Likewise.
40753 * kern/efi/mm.c: Likewise.
40754 * boot/i386/pc/boot.S: Likewise.
40755 * genfslist.sh: Likewise.
40756 * fs/iso9660.c: Likewise.
40757 * fs/hfs.c: Likewise.
40758 * fs/jfs.c: Likewise.
40759 * fs/minix.c: Likewise.
40760 * fs/ufs.c: Likewise.
40761 * gensymlist.sh.in: Likewise.
40762 * genkernsyms.sh.in: Likewise.
40763 * include/grub/misc.h: Likewise.
40764 * include/grub/types.h: Likewise.
40765 * include/grub/symbol.h: Likewise.
40766 * include/grub/elf.h: Likewise.
40767 * include/grub/kernel.h: Likewise.
40768 * include/grub/disk.h: Likewise.
40769 * include/grub/dl.h: Likewise.
40770 * include/grub/i386/linux.h: Likewise.
40771 * include/grub/i386/pc/biosdisk.h: Likewise.
40772 * include/grub/efi/api.h: Likewise.
40773 * include/grub/efi/pe32.h: Likewise.
40774 * include/grub/util/misc.h: Likewise.
40775 * normal/execute.c: Likewise.
40776 * normal/arg.c: Likewise.
40777 * normal/completion.c: Likewise.
40778 * normal/lexer.c: Likewise.
40779 * normal/parser.y: Likewise.
40780 * normal/misc.c: Likewise.
40781 * commands/i386/pc/vbeinfo.c: Likewise.
40782 * commands/hexdump.c: Likewise.
40783 * commands/terminal.c: Likewise.
40784 * commands/ls.c: Likewise.
40785 * commands/help.c: Likewise.
40786 * partmap/pc.c: Likewise.
40787 * loader/efi/chainloader.c: Likewise.
40788 * loader/multiboot_loader.c: Likewise.
40789 * loader/i386/pc/multiboot2.c: Likewise.
40790 * term/efi/console.c: Likewise.
40791 * term/i386/pc/serial.c: Likewise.
40792 * util/lvm.c: Likewise.
40793 * util/console.c: Likewise.
40794 * util/i386/efi/grub-mkimage.c: Likewise.
40795 * util/raid.c: Likewise.
40797 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
40799 * commands/videotest.c: Removed include to grub/machine/memory.h.
40801 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
40802 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
40803 (video_mod_SOURCES): Removed.
40804 (video_mod_CFLAGS): Likewise.
40805 (video_mod_LDFLAGS): Likewise.
40806 (gfxterm_mod_SOURCES): Likewise.
40807 (gfxterm_mod_CFLAGS): Likewise.
40808 (gfxterm_mod_LDFLAGS): Likewise.
40809 (videotest_mod_SOURCES): Likewise.
40810 (videotest_mod_CFLAGS): Likewise.
40811 (videotest_mod_LDFLAGS): Likewise.
40812 (bitmap_mod_SOURCES): Likewise.
40813 (bitmap_mod_CFLAGS): Likewise.
40814 (bitmap_mod_LDFLAGS): Likewise.
40815 (tga_mod_SOURCES): Likewise.
40816 (tga_mod_CFLAGS): Likewise.
40817 (tga_mod_LDFLAGS): Likewise.
40818 (jpeg_mod_SOURCES): Likewise.
40819 (jpeg_mod_CFLAGS): Likewise.
40820 (jpeg_mod_LDFLAGS): Likewise.
40821 (png_mod_SOURCES): Likewise.
40822 (png_mod_CFLAGS): Likewise.
40823 (png_mod_LDFLAGS): Likewise.
40825 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
40826 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
40827 (video_mod_SOURCES): Added.
40828 (video_mod_CFLAGS): Likewise.
40829 (video_mod_LDFLAGS): Likewise.
40830 (videotest_mod_SOURCES): Likewise.
40831 (videotest_mod_CFLAGS): Likewise.
40832 (videotest_mod_LDFLAGS): Likewise.
40833 (bitmap_mod_SOURCES): Likewise.
40834 (bitmap_mod_CFLAGS): Likewise.
40835 (bitmap_mod_LDFLAGS): Likewise.
40836 (tga_mod_SOURCES): Likewise.
40837 (tga_mod_CFLAGS): Likewise.
40838 (tga_mod_LDFLAGS): Likewise.
40839 (jpeg_mod_SOURCES): Likewise.
40840 (jpeg_mod_CFLAGS): Likewise.
40841 (jpeg_mod_LDFLAGS): Likewise.
40842 (png_mod_SOURCES): Likewise.
40843 (png_mod_CFLAGS): Likewise.
40844 (png_mod_LDFLAGS): Likewise.
40845 (gfxterm_mod_SOURCES): Likewise.
40846 (gfxterm_mod_CFLAGS): Likewise.
40847 (gfxterm_mod_LDFLAGS): Likewise.
40849 * term/gfxterm.c: Removed include to grub/machine/memory.h,
40850 grub/machine/console.h.
40852 2009-01-04 Jerone Young <jerone@gmail.com>
40854 Make on screen instructions clearer
40856 Based on patch created by Jidanni <jidanni@jidanni.org>
40858 * normal/menu.c: print clearer instructions on the screen
40860 2009-01-02 Colin D Bennett <colin@gibibit.com>
40864 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
40865 build system and fixed gfxterm.c to work with different sized fonts.
40867 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
40869 * configure: Re-generated.
40871 * DISTLIST: Removed font/manager.c.
40873 Added font/font_cmd.c.
40875 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
40878 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
40880 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
40882 * kern/term.c: Changed users of grub_utf8_to_ucs4.
40884 * normal/menu.c: Likewise.
40886 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
40887 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
40889 * include/grub/font.h: Replaced with new file.
40891 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
40892 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
40893 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
40894 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
40895 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
40896 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
40897 fg_red, fg_green, fg_blue, fg_alpha.
40898 (grub_video_adapter): Removed blit_glyph.
40899 (grub_video_blit_glyph): Removed.
40901 * font/manager.c: Removed file.
40903 * font/font.c: New file.
40905 * font/font_cmd.c: Likewise.
40907 * video/video.c (grub_video_blit_glyph): Removed.
40909 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
40910 (grub_video_vbe_map_rgba): Likewise.
40911 (grub_video_vbe_unmap_color_int): Likewise.
40912 (grub_video_vbe_blit_glyph): Removed.
40913 (grub_video_vbe_adapter): Removed blit_glyph.
40915 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
40916 (get_pixel): Likewise.
40917 (set_pixel): Likewise.
40919 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
40921 * term/gfxterm.c: Adapted to new font engine.
40923 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
40925 * term/i386/pc/vga.c: Likewise.
40927 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
40929 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
40931 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40933 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40935 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
40937 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
40939 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
40941 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
40943 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
40945 * util/grub.d/00_header.in: Changed to use new loadfont command.
40947 * util/grub-mkconfig_lib.in: Changed font extension.
40949 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
40951 * util/getroot.c (grub_util_get_grub_dev): Add support for
40952 /dev/md/dNNpNN style partitionable mdraid devices.
40954 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
40956 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
40957 at a time limit of the PXE TFTP API correctly.
40958 (grub_pxefs_close): Likewise.
40960 2008-11-29 Robert Millan <rmh@aybabtu.com>
40962 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
40963 grub_ata_device_initialize() calls.
40965 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
40967 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
40969 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
40971 2008-11-28 Robert Millan <rmh@aybabtu.com>
40973 Fix build on powerpc-ieee1275. Based on patch created by
40974 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
40975 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
40976 `kern/ieee1275/mmap.c'.
40977 * include/grub/powerpc/ieee1275/memory.h: New file.
40979 Provide grub-install on coreboot.
40980 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
40981 (grub_install_SOURCES): New variable.
40982 * util/i386/pc/grub-install.in: Add a few condition checks to make it
40983 usable on coreboot.
40985 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
40987 * util/grub-fstest.c (grub_term_get_current_input): Change return type
40988 to `grub_term_input_t'.
40989 (grub_term_get_current_output): Change return type to
40990 `grub_term_output_t'.
40992 2008-11-22 Robert Millan <rmh@aybabtu.com>
40994 Fix breakage on coreboot due to declaration mismatch.
40995 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
40996 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
40997 grub_vga_text_cls().
40999 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41000 comments. Avoid copying one more byte than necessary (just in case).
41002 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41003 to 0x200000 (avoids trouble with some OFW implementations, and matches
41004 with the one in Yaboot).
41005 Reported by Manoel Abranches
41007 2008-11-20 Robert Millan <rmh@aybabtu.com>
41009 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41010 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41012 * util/grub-mkconfig_lib.in (grub_warn): New function.
41013 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41014 warnings, to obtain consistent formatting.
41015 * util/grub.d/00_header.in: Likewise.
41016 * util/update-grub_lib.in: Likewise.
41018 * loader/i386/linux.c (allocate_pages): Fix a warning.
41019 Move comment text to `#error' stanza.
41021 Harmonize ieee1275's grub_available_iterate() with the generic
41022 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41023 build problem on i386-ieee1275):
41024 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41025 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41026 parameter `type'. Update all users of this function.
41027 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41028 `kern/ieee1275/mmap.c'.
41029 * kern/ieee1275/init.c
41030 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41032 (grub_machine_mmap_iterate): ... this.
41033 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41034 return type to `grub_err_t'. Update all implementations of this
41035 function prototype.
41036 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41039 Add `lsmmap' command (lists firmware-provided memory map):
41040 * commands/lsmmap.c: New file.
41041 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41042 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41044 * conf/powerpc-ieee1275.rmk: Likewise.
41045 * conf/i386-coreboot.rmk: Likewise.
41046 * conf/i386-ieee1275.rmk: Likewise.
41048 2008-11-19 Robert Millan <rmh@aybabtu.com>
41050 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41051 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41052 constraints to initrd allocation (based on code from
41053 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41054 for Linux to find it.
41056 2008-11-14 Robert Millan <rmh@aybabtu.com>
41058 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41059 order to cope with duplicate slashes.
41061 2008-11-14 Robert Millan <rmh@aybabtu.com>
41063 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41064 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41065 don't want to mess with lower memory, because it is used in the Linux
41068 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41069 an appropriate place in lower memory, between 0x10000 and 0x90000,
41070 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41071 is in our heap (probably as a result of it being corrupted during
41072 decompression). Add #error instance with comment to explain why this
41073 loader isn't currently usable on PC/BIOS.
41075 2008-11-14 Robert Millan <rmh@aybabtu.com>
41077 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41078 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41080 2008-11-12 Robert Millan <rmh@aybabtu.com>
41082 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41084 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41085 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41087 * include/grub/i386/pc/memory.h: ... to here.
41089 2008-11-12 Robert Millan <rmh@aybabtu.com>
41091 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41094 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41095 (grub_console_cur_color, grub_console_real_putchar)
41096 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41097 (grub_console_setcolorstate, grub_console_setcolor)
41098 (grub_console_getcolor): Move from here ...
41099 * include/grub/i386/vga_common.h: ... to here (new file).
41101 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41102 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41103 `<grub/i386/io.h>'.
41104 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41105 `<grub/i386/vga_common.h>'.
41107 2008-11-12 Robert Millan <rmh@aybabtu.com>
41109 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41110 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41111 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41113 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41114 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41116 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41117 grub_console_init() with call to grub_vga_text_init().
41118 (grub_machine_fini): Replace call to
41119 grub_console_fini() with call to grub_vga_text_fini() and
41120 grub_at_keyboard_fini().
41122 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41123 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41124 (grub_console_setcolorstate, grub_console_setcolor)
41125 (grub_console_getcolor): New function prototypes.
41127 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41128 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41129 (grub_vga_text_setcursor): Static-ize.
41130 (grub_vga_text_term): New structure.
41131 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41133 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41134 (grub_console_cur_color, grub_console_standard_color)
41135 (grub_console_normal_color, grub_console_highlight_color)
41136 (map_char, grub_console_putchar, grub_console_getcharwidth)
41137 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41138 (grub_console_getcolor): Move from here ...
41139 * term/i386/vga_common.c: ... to here (same function names).
41141 2008-11-12 Robert Millan <rmh@aybabtu.com>
41143 Use newly-added Multiboot support in coreboot.
41145 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41146 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41148 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41149 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41150 (codestart): Store the MBI in `startup_multiboot_info' when we're
41151 being loaded using Multiboot.
41153 * kern/i386/coreboot/init.c (grub_machine_init): Move
41154 grub_at_keyboard_init() call to beginning of function (useful for
41155 debugging). Call grub_machine_mmap_init() before attempting to use
41156 grub_machine_mmap_iterate().
41157 (grub_lower_mem, grub_upper_mem): Move from here ...
41158 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41161 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41162 function prototype.
41164 2008-11-12 Robert Millan <rmh@aybabtu.com>
41166 Fix a regression introduced by the at_keyboard.mod split. Because
41167 some terminals are default on some platforms and non-default on
41168 others, the first terminal being registered determines which is
41169 going to be default.
41171 * kern/term.c (grub_term_register_input): If this is the first
41172 terminal being registered, set it as the current one.
41173 (grub_term_register_output): Likewise.
41175 * term/efi/console.c (grub_console_init): Do not call
41176 grub_term_set_current_output() or grub_term_set_current_input().
41177 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41178 * term/i386/pc/console.c (grub_console_init): Likewise.
41179 (grub_console_fini): Do not call grub_term_set_current_input()
41180 (but leave grub_term_set_current_output() to restore text mode).
41182 2008-11-10 Robert Millan <rmh@aybabtu.com>
41184 * util/grub.d/00_header.in: Add backward compatibility check for
41185 versions of terminal.mod that don't understand `terminal_input' or
41188 2008-11-09 Robert Millan <rmh@aybabtu.com>
41190 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41191 `terminal_input' / `terminal_output', not `terminal'.
41193 2008-11-08 Robert Millan <rmh@aybabtu.com>
41195 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41196 (DISTCLEANFILES): Add `build_env.mk'.
41198 2008-11-08 Robert Millan <rmh@aybabtu.com>
41200 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41201 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41202 members. Update all users.
41203 * util/console.c (grub_ncurses_term): Split in ...
41204 (grub_ncurses_term_input): ... this, and ...
41205 (grub_ncurses_term_output): ... this. Update all users.
41206 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41208 2008-11-08 Robert Millan <rmh@aybabtu.com>
41210 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41211 (PKGDATA): Add $(pkgdata_SRCDIR).
41212 (pkglib_BUILDDIR): New variable.
41213 (pkgdata_SRCDIR): New variable.
41214 (build_env.mk): New target.
41215 (include_DATA): New variable.
41216 (install-local): Install $(include_DATA) files in $(includedir).
41218 2008-11-07 Pavel Roskin <proski@gnu.org>
41220 * gendistlist.sh: Use C locale for sorting to ensure consistent
41221 output on all systems.
41223 * util/grub.d/00_header.in: Remove incorrect space before
41226 2008-11-07 Robert Millan <rmh@aybabtu.com>
41228 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41230 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41231 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41232 (based on find_multi_boot1_header).
41233 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41234 using find_multi_boot2_header(), and abort if neither Multiboot or
41235 Multiboot headers were found.
41237 2008-11-07 Robert Millan <rmh@aybabtu.com>
41239 Modularize at_keyboard.mod:
41241 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41242 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41243 (at_keyboard_mod_LDFLAGS): New variables.
41245 Actual terminal split:
41247 * include/grub/term.h (struct grub_term): Split in ...
41248 (struct grub_term_input): ... this, and ...
41249 (struct grub_term_output): ... this. Update all users.
41250 (grub_term_set_current): Split in ...
41251 (grub_term_set_current_input): ... this, and ...
41252 (grub_term_set_current_output): ... this.
41253 (grub_term_get_current): Split in ...
41254 (grub_term_get_current_input): ... this, and ...
41255 (grub_term_get_current_output): ... this.
41256 (grub_term_register): Split in ...
41257 (grub_term_register_input): ... this, and ...
41258 (grub_term_register_output): ... this.
41259 (grub_term_unregister): Split in ...
41260 (grub_term_unregister_input): ... this, and ...
41261 (grub_term_unregister_output): ... this.
41262 (grub_term_iterate): Split in ...
41263 (grub_term_iterate_input): ... this, and ...
41264 (grub_term_iterate_output): ... this.
41266 * kern/term.c (grub_term_list): Split in ...
41267 (grub_term_list_input): ... this, and ...
41268 (grub_term_list_output): ... this. Update all users.
41269 (grub_cur_term): Split in ...
41270 (grub_cur_term_input): ... this, and ...
41271 (grub_cur_term_output): ... this. Update all users.
41272 (grub_term_set_current): Split in ...
41273 (grub_term_set_current_input): ... this, and ...
41274 (grub_term_set_current_output): ... this.
41275 (grub_term_get_current): Split in ...
41276 (grub_term_get_current_input): ... this, and ...
41277 (grub_term_get_current_output): ... this.
41278 (grub_term_register): Split in ...
41279 (grub_term_register_input): ... this, and ...
41280 (grub_term_register_output): ... this.
41281 (grub_term_unregister): Split in ...
41282 (grub_term_unregister_input): ... this, and ...
41283 (grub_term_unregister_output): ... this.
41284 (grub_term_iterate): Split in ...
41285 (grub_term_iterate_input): ... this, and ...
41286 (grub_term_iterate_output): ... this.
41288 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41289 a check for input and one for output (and only attempt to get keys
41290 from user when input works).
41292 * util/grub-probe.c (grub_term_get_current): Split in ...
41293 (grub_term_get_current_input): ... this, and ...
41294 (grub_term_get_current_output): ... this.
41295 * util/grub-fstest.c: Likewise.
41296 * util/i386/pc/grub-setup.c: Likewise.
41297 * util/grub-editenv.c: Likewise.
41299 Portability adjustments:
41301 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41302 `term/i386/pc/at_keyboard.c'.
41303 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41304 grub_keyboard_controller_init() (now handled by terminal .init).
41305 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41306 grub_at_keyboard_init().
41307 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41308 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41309 at_keyboard.mod via input terminal interface).
41310 * include/grub/i386/coreboot/console.h: Convert into a stub for
41311 `<grub/i386/pc/console.h>'.
41313 Migrate full terminals to new API:
41315 * term/efi/console.c (grub_console_term): Split into ...
41316 (grub_console_term_input): ... this, and ...
41317 (grub_console_term_output): ... this. Update all users.
41318 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41319 (grub_ofconsole_init): Split into ...
41320 (grub_ofconsole_init_input): ... this, and ...
41321 (grub_ofconsole_init_output): ... this.
41322 (grub_ofconsole_term): Split into ...
41323 (grub_ofconsole_term_input): ... this, and ...
41324 (grub_ofconsole_term_output): ... this. Update all users.
41325 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41326 (grub_serial_term_input): ... this, and ...
41327 (grub_serial_term_output): ... this. Update all users.
41328 * term/i386/pc/console.c (grub_console_term): Split into ...
41329 (grub_console_term_input): ... this, and ...
41330 (grub_console_term_output): ... this. Update all users.
41331 (grub_console_term_input): Only enable it on PC/BIOS platform.
41332 (grub_console_init): Remove grub_keyboard_controller_init() call.
41334 Migrate input terminals to new API:
41336 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41337 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41338 i386-specific anyway).
41339 (grub_console_checkkey): Rename to ...
41340 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41342 (grub_keyboard_controller_orig): New variable.
41343 (grub_console_getkey): Rename to ...
41344 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41346 (grub_keyboard_controller_init): Static-ize. Save original
41347 controller value so that it can be restored ...
41348 (grub_keyboard_controller_fini): ... here (new function).
41349 (grub_at_keyboard_term): New structure.
41350 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41353 Migrate output terminals to new API:
41355 * term/i386/pc/vga.c (grub_vga_term): Change type to
41356 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41357 members. Update all users.
41358 * term/gfxterm.c (grub_video_term): Change type to
41359 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41360 members. Update all users.
41361 * include/grub/i386/pc/console.h (grub_console_checkkey)
41362 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41365 Migrate `terminal' command and userland tools to new API:
41367 * commands/terminal.c (grub_cmd_terminal): Split into ...
41368 (grub_cmd_terminal_input): ... this, and ...
41369 (grub_cmd_terminal_output): ... this.
41370 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41371 `terminal_input' and `terminal_output'.
41372 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41373 `terminal_input' / `terminal_output' API.
41374 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41375 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41376 provided ${GRUB_TERMINAL}, convert it).
41378 2008-11-04 Robert Millan <rmh@aybabtu.com>
41380 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41382 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41384 2008-11-03 Bean <bean123ch@gmail.com>
41386 * kern/elf.c (grub_elf32_load): Revert to previous code.
41387 (grub_elf64_load): Likewise.
41389 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41391 2008-11-01 Robert Millan <rmh@aybabtu.com>
41393 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41394 (TARGET_CPPFLAGS): Likewise.
41395 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41397 2008-11-01 Carles Pina i Estany <carles@pina.cat>
41399 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41401 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41403 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41404 addition of objects until the code is not going to be able to fail.
41406 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41408 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41409 (add a missing NULL check, and correct them by moving the pointer
41410 operations after the actual check).
41412 2008-10-29 Robert Millan <rmh@aybabtu.com>
41414 * util/i386/pc/grub-install.in: Handle empty string as output from
41415 make_system_path_relative_to_its_root().
41417 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41419 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41420 circular metadata worst case scenario. If the metadata is circular
41421 then copy the wrap in place.
41422 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41423 project lib/format_text/layout.h
41424 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41426 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41428 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
41430 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41432 * util/update-grub_lib.in: Mention filename in warning message.
41434 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41436 * NEWS: Update for rename of update-grub to grub-mkconfig.
41438 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41440 * util/update-grub_lib.in: Copy to ...
41441 * util/grub-mkconfig_lib.in: ... this. Update all users.
41442 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
41443 * util/update-grub.in: Rename to ...
41444 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
41445 option. Add `--output' option to allow users to specify the generated
41446 configuration file. Default to stdout.
41447 (update_grub_dir): Rename to ...
41448 (grub_mkconfig_dir): ... this.
41449 (grub_cfg): Default to an empty string.
41450 * conf/common.rmk (update-grub): Rename to ...
41451 (grub-mkconfig): ... this.
41452 (update-grub_lib): Copy to ...
41453 (grub-mkconfig_lib): ... this.
41454 (update-grub_SCRIPTS): Copy to ...
41455 (grub-mkconfig_SCRIPTS): ... this. Update all users.
41456 (update-grub_DATA): Rename to ...
41457 (grub-mkconfig_DATA): ... this.
41459 2008-09-28 Robert Millan <rmh@aybabtu.com>
41461 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
41462 to `modified'. Add the real `created' field.
41463 (grub_iso9660_uuid): Use `modified' rather than `created' for
41464 constructing the UUID.
41466 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
41468 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
41469 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
41471 2008-09-28 Bean <bean123ch@gmail.com>
41473 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
41474 Thanks to Christian Franke for finding this bug.
41476 2008-09-25 Robert Millan <rmh@aybabtu.com>
41478 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
41479 instances of grub_util_get_disk_name() (see previous commit).
41481 2008-09-25 Robert Millan <rmh@aybabtu.com>
41483 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
41484 `util/i386/get_disk_name.c'.
41485 * conf/i386-efi.rmk: Likewise.
41486 * conf/x86_64-efi.rmk: Likewise.
41487 * conf/i386-coreboot.rmk: Likewise.
41488 * conf/i386-ieee1275.rmk: Likewise.
41489 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
41490 `util/ieee1275/get_disk_name.c'.
41491 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
41492 * util/ieee1275/get_disk_name.c: Remove file.
41493 * util/i386/get_disk_name.c: Remove file.
41494 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
41495 "hd%d" for device.map entries, rather than using
41496 grub_util_get_disk_name().
41498 2008-09-24 Carles Pina i Estany <carles@pina.cat>
41500 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
41502 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
41504 2008-09-24 Carles Pina i Estany <carles@pina.cat>
41506 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
41508 (GRUB_TERM_PPAGE): Changed to 0x4900.
41510 2008-09-24 Robert Millan <rmh@aybabtu.com>
41512 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
41513 macros (they were i386-pc specific).
41514 * include/grub/sparc64/ieee1275/console.h: Likewise.
41515 * include/grub/efi/console.h: Likewise.
41517 2008-09-22 Bean <bean123ch@gmail.com>
41519 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
41520 resident and in attribute list.
41522 * include/grub/ntfs.h (BMP_LEN): Removed.
41524 2008-09-22 Bean <bean123ch@gmail.com>
41526 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
41527 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
41529 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
41530 error occurs, as grub_disk_open will call grub_disk_close, which will
41531 call p->close (scsi).
41533 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
41535 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
41536 (AC_PREREQ): Bumped to 2.59.
41537 (AC_TRY_COMPILE): Replace obsolete macro with ...
41538 (AC_COMPILE_IFELSE): ... this.
41539 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
41540 (AC_LINK_IFELSE): ... this.
41542 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
41544 * autogen.sh: Add a call to `gendistlist.sh'.
41546 2008-09-19 Christian Franke <franke@computer.org>
41548 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
41549 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
41550 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
41551 Export __enable_execute_stack() to modules.
41552 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
41555 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
41557 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
41560 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
41562 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
41563 #include <grub/util/hostdisk.h>.
41565 2008-09-08 Robert Millan <rmh@aybabtu.com>
41567 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
41568 segments when their filesz is zero (grub_file_read() interprets
41569 zero-size as "read until EOF", which results in memory corruption).
41570 Use `lowest_segment' rather than 0 for calculating the current
41571 segment load address.
41573 2008-09-08 Robert Millan <rmh@aybabtu.com>
41575 * util/hostdisk.c (open_device): Replace a grub_util_info() call
41576 with grub_dprintf("hostdisk", ...), as it was so verbose that it
41577 clobbered useful information.
41579 2008-09-08 Robert Millan <rmh@aybabtu.com>
41581 * include/grub/util/biosdisk.h: Move to ...
41582 * include/grub/util/hostdisk.h: ... here. Update all users.
41583 * util/biosdisk.c: Move to ...
41584 * util/hostdisk.c: ... here. Update all users.
41586 2008-09-07 Robert Millan <rmh@aybabtu.com>
41588 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
41590 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
41591 and length can be stored directly in the `mbi->mmap_addr' and
41592 `mbi->mmap_length' struct fields.
41594 2008-09-07 Robert Millan <rmh@aybabtu.com>
41596 * conf/i386.rmk: New file. Provides declaration for building
41598 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
41599 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
41601 Include `conf/i386.mk'.
41602 * conf/i386-efi.rmk: Likewise.
41603 * conf/x86_64-efi.rmk: Likewise.
41604 * conf/i386-coreboot.rmk: Likewise.
41605 * conf/i386-ieee1275.rmk: Likewise.
41607 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
41609 Based on patch created by Colin D Bennett <colin@gibibit.com>.
41610 Adds optimization support for BGR based modes.
41612 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
41613 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
41614 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41615 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41616 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41617 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41618 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41619 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41620 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41621 (grub_video_i386_vbeblit_index_index): Likewise.
41622 (grub_video_i386_vbeblit_replace_directN): Added.
41623 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
41624 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
41625 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
41626 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
41627 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
41628 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
41629 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
41630 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
41631 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
41632 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
41633 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
41634 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
41635 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
41637 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
41638 (grub_video_i386_vbefill_R8G8B8): Likewise.
41639 (grub_video_i386_vbefill_index): Likewise.
41640 (grub_video_i386_vbefill_direct32): Added.
41641 (grub_video_i386_vbefill_direct24): Likewise.
41642 (grub_video_i386_vbefill_direct16): Likewise.
41643 (grub_video_i386_vbefill_direct8): Likewise.
41645 * include/grub/video.h (grub_video_blit_format): Removed
41646 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
41647 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
41648 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
41649 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
41650 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
41652 * video/video.c (grub_video_get_blit_format): Updated to use new
41653 blit formats. Added handling for 16 bit color modes.
41655 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
41657 (common_blitter): Updated to use new blitters.
41659 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
41661 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
41662 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41663 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41664 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41665 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41666 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41667 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41668 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41669 (grub_video_i386_vbeblit_index_index): Likewise.
41670 (grub_video_i386_vbeblit_replace_directN): Added.
41671 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
41672 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
41673 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
41674 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
41675 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
41676 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
41677 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
41678 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
41679 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
41680 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
41681 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
41682 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
41683 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
41685 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
41686 (grub_video_i386_vbefill_R8G8B8): Likewise.
41687 (grub_video_i386_vbefill_index): Likewise.
41688 (grub_video_i386_vbefill_direct32): Added.
41689 (grub_video_i386_vbefill_direct24): Likewise.
41690 (grub_video_i386_vbefill_direct16): Likewise.
41691 (grub_video_i386_vbefill_direct8): Likewise.
41693 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
41696 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
41699 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
41702 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
41705 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
41707 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
41710 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
41712 * fs/iso9660.c (grub_iso9660_date): New structure.
41713 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
41714 (grub_iso9660_uuid): New function.
41716 2008-09-05 Bean <bean123ch@gmail.com>
41718 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
41720 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
41721 insensitive bit for names in Win32 and Win32 & DOS namespace.
41723 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
41725 * include/grub/types.h (LONG_MAX): Likewise.
41727 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
41729 * util/getroot.c: Include <config.h>.
41730 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
41731 add support for /dev/md/N devices and handle LVM double dash escaping.
41733 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
41735 * config.guess: Update to latest version from config git.
41736 * config.sub: Likewise.
41738 2008-09-03 Robert Millan <rmh@aybabtu.com>
41740 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
41741 `disk->total_sectors'.
41743 2008-09-01 Colin D Bennett <colin@gibibit.com>
41745 * include/grub/normal.h: Fixed incorrect comment for
41746 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
41748 2008-09-01 Colin D Bennett <colin@gibibit.com>
41750 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
41751 values with defines.
41753 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
41754 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
41755 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
41756 (GRUB_VBE_MODEATTR_COLOR): Likewise.
41757 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
41758 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
41759 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
41760 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
41761 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
41762 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
41763 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
41764 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
41765 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
41766 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
41767 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
41768 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
41769 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
41770 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
41771 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
41773 2008-08-31 Robert Millan <rmh@aybabtu.com>
41775 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
41777 (grub_multiboot): Fix a few warnings.
41779 2008-08-31 Robert Millan <rmh@aybabtu.com>
41781 * loader/i386/pc/multiboot.c: Update comment not to say that
41782 boot_device support is unimplemented.
41784 2008-08-31 Robert Millan <rmh@aybabtu.com>
41786 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
41787 or memory map support are unimplemented.
41789 2008-08-31 Colin D Bennett <colin@gibibit.com>
41791 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
41793 2008-08-31 Colin D Bennett <colin@gibibit.com>
41795 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
41796 total video memory in 'vbeinfo' output; show color format details for
41799 2008-08-30 Pavel Roskin <proski@gnu.org>
41801 * util/genmoddep.c: Remove for real this time.
41802 * DISTLIST: Remove util/genmoddep.c.
41804 2008-08-30 Robert Millan <rmh@aybabtu.com>
41806 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
41807 as required by Multiboot spec (it was already 4-byte aligned, but
41810 2008-08-29 Pavel Roskin <proski@gnu.org>
41812 * kern/powerpc/ieee1275/crt0.S: Rename to ...
41813 * kern/powerpc/ieee1275/startup.S: ... this.
41814 * conf/powerpc-ieee1275.rmk: Adjust for the above.
41815 * DISTLIST: Likewise.
41817 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
41818 grub/cpu/kernel.h. Add start label for consistency with other
41819 platforms. Add grub_prefix immediately after start. Add jump
41820 to the code after grub_prefix.
41821 * include/grub/powerpc/kernel.h: Provide valid values for
41822 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
41824 2008-08-29 Bean <bean123ch@gmail.com>
41826 * configure.ac: Change host_os to cygwin for mingw.
41827 (asprintf): New check for function.
41829 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
41830 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
41832 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
41833 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
41834 sync, sleep and grub_util_get_disk_size for mingw.
41836 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
41837 to get size in mingw.
41838 (open_device): Use flag O_BINARY if it's defined.
41839 (find_root_device): Add dummy code for mingw.
41841 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
41842 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
41843 (get_scsi_disk_name): Return 0 for mingw.
41845 * util/hostfs.c: #include <grub/util/misc.h>.
41846 (grub_hostfs_open): Use "rb" flag to open file, use
41847 grub_util_get_disk_size to get disk size for mingw.
41849 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
41850 (asprintf): New function if HAVE_ASPRINTF is not set.
41851 (sync): New function for mingw.
41853 (grub_util_get_disk_size): Likewise.
41855 2008-08-28 Pavel Roskin <proski@gnu.org>
41857 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41860 2008-08-28 Robert Millan <rmh@aybabtu.com>
41862 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
41864 2008-08-28 Robert Millan <rmh@aybabtu.com>
41866 Change find_grub_drive() syntax so it doesn't prevent it from
41867 detecting NULL names as errors.
41869 * util/biosdisk.c (find_grub_drive): Move free slot search code
41871 (find_free_slot): ... to here.
41872 (read_device_map): Use find_free_slot() to search for free slots.
41874 2008-08-27 Marco Gerards <marco@gnu.org>
41876 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
41877 (scsi_mod_SOURCES): New variable.
41878 (scsi_mod_CFLAGS): Likewise
41879 (scsi_mod_LDFLAGS): Likewise.
41881 * disk/scsi.c: New file.
41883 * include/grub/scsi.h: Likewise.
41885 * include/grub/scsicmd.h: Likewise.
41887 * disk/ata.c: Include <grub/scsi.h>.
41888 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
41890 (grub_ata_iterate): Skip ATAPI devices.
41891 (grub_ata_open): Only handle ATAPI devices.
41892 (struct grub_atapi_read): Removed.
41893 (grub_atapi_readsector): Likewise.
41894 (grub_ata_read): No longer handle ATAPI devices.
41895 (grub_ata_write): Likewise.
41896 (grub_atapi_iterate): New function.
41897 (grub_atapi_read): Likewise.
41898 (grub_atapi_write): Likewise.
41899 (grub_atapi_open): Likewise.
41900 (grub_atapi_close): Likewise.
41901 (grub_atapi_dev): New variable.
41902 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
41903 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
41905 * include/grub/disk.h (enum grub_disk_dev_id): Add
41906 `GRUB_DISK_DEVICE_SCSI_ID'.
41908 2008-08-26 Robert Millan <rmh@aybabtu.com>
41910 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
41911 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
41914 2008-08-23 Bean <bean123ch@gmail.com>
41916 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
41917 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
41918 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
41919 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
41921 (raid5rec_mod_SOURCES): New macro.
41922 (raid5rec_mod_CFLAGS): Likewise.
41923 (raid5rec_mod_LDFLAGS): Likewise.
41924 (raid6rec_mod_SOURCES): Likewise.
41925 (raid6rec_mod_CFLAGS): Likewise.
41926 (raid6rec_mod_LDFLAGS): Likewise.
41927 (mdraid_mod_SOURCES): Likewise.
41928 (mdraid_mod_CFLAGS): Likewise.
41929 (mdraid_mod_LDFLAGS): Likewise.
41930 (dm_nv_mod_SOURCES): Likewise.
41931 (dm_nv_mod_CFLAGS): Likewise.
41932 (dm_nv_mod_LDFLAGS): Likewise.
41934 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
41935 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
41936 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
41938 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
41939 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
41941 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41943 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41945 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41947 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41949 * disk/raid5_recover.c: New file.
41951 * disk/raid6_recover.c: Likewise.
41953 * disk/mdraid_linux.c: Likewise.
41955 * disk/dmraid_nvidia.c: Likewise.
41957 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
41960 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
41961 calculate the size of raid device.
41962 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
41963 different layout of raid5.
41964 (grub_raid_scan_device): Remove code specific to mdraid.
41965 (grub_raid_list): New variable.
41966 (free_array): New function.
41967 (grub_raid_register): Likewise.
41968 (grub_raid_unregister): Likewise.
41969 (grub_raid_rescan): Likewise.
41970 (GRUB_MOD_INIT): Don't iterate device here.
41971 (GRUB_MOD_FINI): Use free_array to release resource.
41973 * include/grub/raid.h: Remove macro and structure specific to mdraid.
41974 (grub_raid5_recover_func_t): New function variable type.
41975 (grub_raid6_recover_func_t): Likewise.
41976 (grub_raid5_recover_func): New variable.
41977 (grub_raid6_recover_func): Likewise.
41978 (grub_raid_register): New function.
41979 (grub_raid_unregister): Likewise.
41980 (grub_raid_rescan): Likewise.
41981 (grub_raid_block_xor): Likewise.
41983 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
41984 (CMD_CRC): New macro.
41986 (read_file): Handle device as well as file.
41987 (cmd_crc): New function.
41988 (fstest): Handle multiple disks.
41989 (options): Remove part, raw and long, add root and diskcount.
41990 (usage): Add crc, remove -p, -r, -l, add -r and -c.
41991 (main): Find the first non option entry and ignore subsequent options,
41992 add handling for the new options, support multiple disks.
41994 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
41996 2008-08-23 Bean <bean123ch@gmail.com>
41998 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42000 * genfslist.sh: Ignore kernel.mod.
42002 * genpartmaplist.sh: Likewise.
42004 2008-08-23 Robert Millan <rmh@aybabtu.com>
42006 * util/getroot.c (find_root_device): Skip anything that starts with
42007 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42009 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42011 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42012 * util/grub.d/00_header.in: Allow the administrator to change default
42013 gfxmode via ${GRUB_GFXMODE}.
42015 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42017 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42019 2008-08-21 Robert Millan <rmh@aybabtu.com>
42021 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42023 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42024 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42026 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42028 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42029 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42031 2008-08-19 Robert Millan <rmh@aybabtu.com>
42033 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42034 (struct grub_virtual_screen): Remove `cursor_color'.
42035 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42037 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42039 2008-08-18 Robert Millan <rmh@aybabtu.com>
42041 Unify (identical) linux_normal.c files.
42042 * loader/i386/efi/linux_normal.c: Move from here ...
42043 * loader/linux_normal.c: ... to here. Update all users.
42044 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42045 * loader/i386/ieee1275/linux_normal.c: Likewise.
42047 2008-08-18 Robert Millan <rmh@aybabtu.com>
42049 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42050 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42051 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42052 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42053 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42055 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42056 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42057 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42058 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42059 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42060 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42061 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42062 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42063 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42064 portably using grub_getxy().
42065 Replace `-EFI' with `-bzImage' in boot message.
42067 2008-08-17 Robert Millan <rmh@aybabtu.com>
42069 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42071 2008-08-17 Robert Millan <rmh@aybabtu.com>
42073 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42075 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42076 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42077 (grub_machine_mmap_iterate): New function declaration.
42078 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42080 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42083 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42084 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42085 Move e820 parsing from here ...
42086 * kern/i386/pc/mmap.c: New file.
42087 (grub_machine_mmap_iterate): ... to here.
42089 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42090 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42091 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42092 (grub_available_iterate): Redeclare to return `void', and redeclare
42093 its hook to use grub_uint64_t as addr and size parameters, and rename
42095 (grub_machine_mmap_iterate): ... this. Update all users.
42097 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42098 to make it more readable. Rename to ...
42099 (grub_machine_mmap_iterate): ... this.
42101 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42102 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42103 (grub_multiboot): Allocate an extra region after the payload, and fill
42104 it with a Multiboot memory map. Adjust a.out loader to calculate size
42105 with the extra space.
42106 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42107 with the extra space.
42109 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42111 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42113 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42115 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42116 mdate-sh to the list `find' searches for.
42117 * DISTLIST: Regenerated.
42119 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42121 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42122 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42123 genmoddep.awk, gensymlist.sh.in.
42124 (DISTDIRS): Add bus, docs, hook, lib.
42125 * DISTLIST: Regenerated.
42126 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42128 2008-08-16 Robert Millan <rmh@aybabtu.com>
42130 * disk/raid.c (grub_raid_init): Handle/report errors set by
42131 grub_device_iterate().
42132 * disk/lvm.c (grub_lvm_init): Likewise.
42134 2008-08-15 Bean <bean123ch@gmail.com>
42136 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42138 (datetime_mod_SOURCES): New macro.
42139 (datetime_mod_CFLAGS): Likewise.
42140 (datetime_mod_LDFLAGS): Likewise.
42141 (date_mod_SOURCES): Likewise.
42142 (date_mod_CFLAGS): Likewise.
42143 (date_mod_LDFLAGS): Likewise.
42144 (datehook_mod_SOURCES): Likewise.
42145 (datehook_mod_CFLAGS): Likewise.
42146 (datehook_mod_LDFLAGS): Likewise.
42148 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42150 (datetime_mod_SOURCES): New macro.
42151 (datetime_mod_CFLAGS): Likewise.
42152 (datetime_mod_LDFLAGS): Likewise.
42153 (date_mod_SOURCES): Likewise.
42154 (date_mod_CFLAGS): Likewise.
42155 (date_mod_LDFLAGS): Likewise.
42156 (datehook_mod_SOURCES): Likewise.
42157 (datehook_mod_CFLAGS): Likewise.
42158 (datehook_mod_LDFLAGS): Likewise.
42160 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42162 (datetime_mod_SOURCES): New macro.
42163 (datetime_mod_CFLAGS): Likewise.
42164 (datetime_mod_LDFLAGS): Likewise.
42165 (date_mod_SOURCES): Likewise.
42166 (date_mod_CFLAGS): Likewise.
42167 (date_mod_LDFLAGS): Likewise.
42168 (datehook_mod_SOURCES): Likewise.
42169 (datehook_mod_CFLAGS): Likewise.
42170 (datehook_mod_LDFLAGS): Likewise.
42172 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42174 (datetime_mod_SOURCES): New macro.
42175 (datetime_mod_CFLAGS): Likewise.
42176 (datetime_mod_LDFLAGS): Likewise.
42177 (date_mod_SOURCES): Likewise.
42178 (date_mod_CFLAGS): Likewise.
42179 (date_mod_LDFLAGS): Likewise.
42180 (datehook_mod_SOURCES): Likewise.
42181 (datehook_mod_CFLAGS): Likewise.
42182 (datehook_mod_LDFLAGS): Likewise.
42184 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42186 (datetime_mod_SOURCES): New macro.
42187 (datetime_mod_CFLAGS): Likewise.
42188 (datetime_mod_LDFLAGS): Likewise.
42189 (date_mod_SOURCES): Likewise.
42190 (date_mod_CFLAGS): Likewise.
42191 (date_mod_LDFLAGS): Likewise.
42192 (datehook_mod_SOURCES): Likewise.
42193 (datehook_mod_CFLAGS): Likewise.
42194 (datehook_mod_LDFLAGS): Likewise.
42196 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42198 * commands/date.c: New file.
42200 * hook/datehook.c: Likewise.
42202 * include/grub/lib/datetime.h: Likewise.
42204 * include/grub/i386/cmos.h: Likewise.
42206 * lib/datetime.c: Likewise.
42208 * lib/i386/datetime.c: Likewise.
42210 * lib/efi/datetime.c: Likewise.
42212 2008-08-14 Robert Millan <rmh@aybabtu.com>
42214 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42215 (grub_mkelfimage_SOURCES): New variable.
42216 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42218 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42219 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42220 * conf/powerpc-ieee1275.rmk: Likewise.
42221 * conf/i386-ieee1275.rmk: Likewise.
42223 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42224 * kern/i386/coreboot/init.c: Likewise.
42226 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42227 with `<grub/cpu/kernel.h>'.
42228 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42230 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42231 * kern/i386/coreboot/startup.S: Likewise.
42233 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42234 (GRUB_MOD_GAP): Remove.
42235 * include/grub/powerpc/kernel.h: New file.
42236 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42237 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42238 * include/grub/i386/kernel.h: New file.
42239 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42240 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42241 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42243 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42245 Use --directory when invoking grub_mkimage.
42247 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42248 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42249 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42250 and GRUB_KERNEL_CPU_PREFIX.
42252 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42254 * include/grub/err.h (grub_err_printf): New function prototype.
42255 * util/misc.c (grub_err_printf): New function.
42256 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42258 * kern/err.c (grub_print_error): Use grub_err_printf.
42260 2008-08-13 Robert Millan <rmh@aybabtu.com>
42262 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42264 2008-08-13 Robert Millan <rmh@aybabtu.com>
42266 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42269 2008-08-12 Robert Millan <rmh@aybabtu.com>
42271 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42272 of the relocation code from here ...
42273 (grub_multiboot): ... to here.
42274 (forward_relocator, backward_relocator): Move from here ...
42275 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42276 (grub_multiboot_backward_relocator): ... to here.
42277 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42278 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42279 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42280 (grub_multiboot_forward_relocator_end)
42281 (grub_multiboot_backward_relocator)
42282 (grub_multiboot_backward_relocator_end): New variables.
42284 2008-08-12 Bean <bean123ch@gmail.com>
42286 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42288 2008-08-11 Robert Millan <rmh@aybabtu.com>
42290 * kern/i386/linuxbios/startup.S: Move from here ...
42291 * kern/i386/coreboot/startup.S: ... to here.
42293 * kern/i386/linuxbios/init.c: Move from here ...
42294 * kern/i386/coreboot/init.c: ... to here.
42296 * kern/i386/linuxbios/table.c: Move from here ...
42297 * kern/i386/coreboot/mmap.c: ... to here.
42299 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42301 2008-08-11 Robert Millan <rmh@aybabtu.com>
42303 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42304 errors. Leave it to the upper layer to handle them.
42306 2008-08-09 Christian Franke <franke@computer.org>
42308 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42309 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42310 Install `grub.d/10_windows' only on Cygwin.
42311 * configure.ac: Add subst of `target_os'.
42312 Check `target_os' also before setting TARGET_OBJ2ELF.
42313 Add `--enable-grub-pe2elf'.
42315 2008-08-08 Robert Millan <rmh@aybabtu.com>
42317 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42318 (grub_last_time): Change type to grub_uint64_t.
42319 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42320 (grub_disk_close): Likewise.
42322 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42323 (run_menu): Migrate code from to using grub_get_time_ms().
42325 * util/misc.c (grub_get_time_ms): New function.
42327 2008-08-08 Marco Gerards <marco@gnu.org>
42329 * disk/ata.c (grub_ata_regget): Change return type to
42331 (grub_ata_regget2): Likewise.
42332 (grub_ata_wait_status): New function.
42333 (grub_ata_wait_busy): Removed function, updated all users to use
42334 `grub_ata_wait_status'.
42335 (grub_ata_wait_drq): Likewise.
42336 (grub_ata_cmd): New function.
42337 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42339 (grub_ata_pio_write): Add error handling.
42340 (grub_atapi_identify): Likewise.
42341 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42343 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42344 handling. Actually use the detected registers. Reorder the
42345 detection logic such that it is easier to read.
42346 (grub_ata_pciinit): Do not assign the same ID to each controller.
42347 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42349 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42351 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42353 2008-08-08 Marco Gerards <marco@gnu.org>
42357 2008-08-07 Bean <bean123ch@gmail.com>
42359 * include/grub/x86_64/pci.h: New file.
42361 2008-08-07 Christian Franke <franke@computer.org>
42363 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42364 (TIMER2_GATE): Likewise.
42365 (grub_pit_wait): Add enable/disable of the timer2 gate
42366 bit of port 0x61. This fixes a possible infinite loop.
42368 2008-08-07 Bean <bean123ch@gmail.com>
42370 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42371 kern/i386/tsc.c and kern/i386/pit.c.
42373 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42376 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42379 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42381 2008-08-07 Bean <bean123ch@gmail.com>
42383 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42385 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42387 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42388 multiple inclusion. Add #include <grub/types.h>.
42390 2008-08-06 Christian Franke <franke@computer.org>
42392 * conf/common.rmk: Build and install `10_windows'.
42393 * util/grub.d/10_windows.in: New script.
42395 2008-08-06 Pavel Roskin <proski@gnu.org>
42397 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42399 2008-08-06 Robert Millan <rmh@aybabtu.com>
42401 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42402 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42404 2008-08-06 Bean <bean123ch@gmail.com>
42406 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42407 (grub_pxefs_fs_int): Remove dummy definition.
42408 (grub_pxefs_open): Use data->block_size to store the current block
42410 (grub_pxefs_read): Use block size stored in data->block_size. As the
42411 value of grub_pxe_blksize can be changed after the file is opened.
42413 2008-08-06 Bean <bean123ch@gmail.com>
42415 * fs/i386/pc/pxe.c (curr_file): new variable.
42416 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42417 require the dummy internal file system anymore.
42418 (grub_pxefs_read): Removed.
42419 (grub_pxefs_close): Likewise.
42420 (grub_pxefs_fs_int): Likewise.
42421 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42422 connection when we switch file.
42423 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42425 2008-08-06 Robert Millan <rmh@aybabtu.com>
42427 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42429 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42430 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42432 * kern/i386/halt.c: New file.
42433 * kern/i386/reboot.c: Likewise.
42434 * include/grub/i386/reboot.h: Likewise.
42435 * include/grub/i386/halt.h: Likewise.
42437 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42438 Include `<grub/cpu/halt.h>'.
42439 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42440 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42442 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42443 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
42444 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
42445 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
42446 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
42447 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
42449 * include/grub/i386/at_keyboard.h: ... to here.
42451 2008-08-05 Robert Millan <rmh@aybabtu.com>
42453 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
42454 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
42455 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
42456 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42457 `kern/generic/millisleep.c'.
42459 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
42460 instead of grub_get_rtc().
42461 (grub_tsc_init): Initialize `tsc_boot_time'.
42463 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
42464 (grub_machine_init): Use grub_tsc_init() rather than
42465 installing an RTC-based handler via grub_install_get_time_ms().
42467 * kern/i386/pit.c: New file.
42468 * include/grub/i386/pit.h: Likewise.
42470 2008-08-05 Bean <bean123ch@gmail.com>
42472 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
42474 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
42475 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
42476 (pxe_mod_SOURCES): New macro.
42477 (pxe_mod_CFLAGS): Likewise.
42478 (pxe_mod_LDFLAGS): Likewise.
42479 (pxecmd_mod_SOURCES): Likewise.
42480 (pxecmd_mod_CFLAGS): Likewise.
42481 (pxecmd_mod_LDFLAGS): Likewise.
42483 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
42484 (grub_pxe_call): Likewise.
42486 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
42488 * commands/i386/pc/pxecmd.c: New file.
42490 * fs/i386/pc/pxe.c: Likewise.
42492 * include/grub/i386/pc/pxe.h: Likewise.
42494 2008-08-05 Bean <bean123ch@gmail.com>
42496 * util/console.c (grub_console_cur_color): New variable.
42497 (grub_console_standard_color): Likewise.
42498 (grub_console_normal_color): Likewise.
42499 (grub_console_highlight_color): Likewise.
42500 (color_map): Likewise.
42501 (use_color): Likewise.
42502 (NUM_COLORS): New macro.
42503 (grub_ncurses_setcolorstate): Handle color properly.
42504 (grub_ncurses_setcolor): Don't change color here, just remember the
42505 settings, color will be set in grub_ncurses_setcolorstate.
42506 (grub_ncurses_getcolor): New function.
42507 (grub_ncurses_init): Initialize color pairs.
42508 (grub_ncurses_term): New member grub_ncurses_getcolor.
42510 2008-08-05 Colin D Bennett <colin@gibibit.com>
42512 High resolution timer support. Implemented for x86 CPUs using TSC.
42513 Extracted generic grub_millisleep() so it's linked in only as needed.
42514 This requires a Pentium compatible CPU; if the RDTSC instruction is
42515 not supported, then it falls back on the generic grub_get_time_ms()
42516 implementation that uses the machine's RTC.
42518 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
42519 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42520 `kern/generic/millisleep.c'.
42522 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
42523 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
42525 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
42526 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
42528 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
42530 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42531 `kern/generic/millisleep.c'.
42533 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
42535 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
42537 * kern/generic/rtc_get_time_ms.c: New file.
42539 * kern/generic/millisleep.c: New file.
42541 * kern/misc.c: Don't include
42542 <kern/time.h> anymore.
42543 (grub_millisleep_generic): Removed.
42545 * commands/sleep.c (grub_interruptible_millisleep): Uses
42546 grub_get_time_ms() instead of grub_get_rtc().
42548 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
42550 (grub_cpu_is_cpuid_supported): New inline function.
42551 (grub_cpu_is_tsc_supported): New inline function.
42552 (grub_tsc_init): New function prototype.
42553 (grub_tsc_get_time_ms): New function prototype.
42555 * kern/i386/tsc.c (grub_get_time_ms): New file.
42557 * include/grub/time.h: Include <grub/types.h.
42558 (grub_millisleep_generic): Removed.
42559 (grub_get_time_ms): New prototype.
42560 (grub_install_get_time_ms): New prototype.
42561 (grub_rtc_get_time_ms): New prototype.
42563 * kern/time.c (grub_get_time_ms): New function.
42564 (grub_install_get_time_ms): New function.
42566 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
42567 <grub/time.h> anymore.
42568 (grub_millisleep): Removed.
42569 (grub_machine_init): Call grub_tsc_init.
42571 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
42572 get_time_ms() implementation.
42574 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
42575 (ieee1275_get_time_ms): New function.
42576 (grub_machine_init): Install get_time_ms() implementation.
42578 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
42579 (grub_machine_init): Call grub_tsc_init().
42580 (grub_millisleep): Removed.
42582 * kern/ieee1275/init.c (grub_millisleep): Removed.
42583 (grub_machine_init): Install ieee1275_get_time_ms()
42585 (ieee1275_get_time_ms): New function.
42586 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
42589 2008-08-05 Marco Gerards <marco@gnu.org>
42591 * disk/ata.c: Include <grub/pci.h>.
42592 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
42593 (grub_ata_initialize): Rewritten.
42594 (grub_ata_device_initialize): New function.
42596 2008-08-04 Pavel Roskin <proski@gnu.org>
42598 * kern/main.c: Include grub/mm.h.
42600 2008-08-04 Robert Millan <rmh@aybabtu.com>
42602 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
42603 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
42604 corruption problem).
42606 2008-08-04 Robert Millan <rmh@aybabtu.com>
42608 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
42609 warnings introduced in my last commit.
42611 2008-08-03 Robert Millan <rmh@aybabtu.com>
42613 Make PCI available on all i386 architectures.
42615 * include/grub/i386/pc/pci.h: Move from here ...
42616 * include/grub/i386/pci.h: ... to here.
42618 * include/grub/i386/pc/pci.h: Remove.
42619 * include/grub/i386/efi/pci.h: Remove.
42620 * include/grub/x86_64/efi/pci.h: Remove.
42622 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
42623 `<grub/cpu/pci.h>'.
42625 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
42626 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
42627 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
42629 * conf/i386-ieee1275.rmk: Likewise.
42631 2008-08-03 Robert Millan <rmh@aybabtu.com>
42633 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
42634 (grub_console_setcursor): Make it possible to set cursor off.
42636 2008-08-03 Robert Millan <rmh@aybabtu.com>
42638 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
42639 of modules instead of assuming which platform provides what.
42640 * util/update-grub.in: Likewise.
42642 2008-08-03 Robert Millan <rmh@aybabtu.com>
42644 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
42645 instead of `grub_install_dos_part' to determine whether a drive needs
42646 to be prepended to prefix (`grub_install_dos_part' is not reliable,
42647 because it can be overridden when loading GRUB via Multiboot).
42649 2008-08-02 Robert Millan <rmh@aybabtu.com>
42651 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
42653 2008-08-02 Robert Millan <rmh@aybabtu.com>
42655 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
42656 of informational grub_dprintf() calls.
42658 2008-08-02 Robert Millan <rmh@aybabtu.com>
42660 * disk/memdisk.c (memdisk_size): Don't initialize.
42661 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
42663 * include/grub/i386/pc/kernel.h
42664 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
42665 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
42666 (grub_memdisk_image_size, grub_arch_memdisk_addr)
42667 (grub_arch_memdisk_size): Remove.
42669 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
42670 field (was only used to transfer a constant). Add `type' field to
42671 support multiple module types.
42672 (grub_module_iterate): New function.
42674 * kern/device.c (grub_device_open): Do not hide error messages
42675 when grub_disk_open() fails. Use grub_print_error() instead.
42677 * kern/i386/pc/init.c (grub_arch_modules_addr)
42678 (grub_arch_memdisk_size): Remove functions.
42679 (grub_arch_modules_addr): Return the module address in high memory
42680 (now that it isn't copied anymore).
42682 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
42683 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
42684 decompression routine (grub_total_module_size already includes that
42685 now). Don't copy modules back to low memory.
42687 * kern/main.c: Include `<grub/mm.h>'.
42688 (grub_load_modules): Split out (and use) ...
42689 (grub_module_iterate): ... this function, which iterates through
42690 module objects and runs a hook.
42691 Comment out grub_mm_init_region() call, as it would cause non-ELF
42692 modules to be overwritten.
42694 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
42695 the memdisk image in its own region, make it part of the module list.
42696 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
42697 (main): Parse --memdisk|-m option, and pass user-provided path as
42698 parameter to generate_image().
42699 (add_segments): Pass `memdisk_path' down to load_modules().
42700 (load_modules): Embed memdisk image in module section when requested.
42701 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
42702 `header.type' instead of `header.offset'.
42704 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
42705 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
42706 (memdisk_mod_LDFLAGS): New variables.
42707 * conf/i386-coreboot.rmk: Likewise.
42708 * conf/i386-ieee1275.rmk: Likewise.
42710 2008-08-02 Robert Millan <rmh@aybabtu.com>
42712 * loader/i386/pc/multiboot.c (playground, forward_relocator)
42713 (backward_relocator): New variables. Used to allocate and relocate
42714 the payload, respectively.
42715 (grub_multiboot_load_elf32): Load into heap instead of requested
42716 address, install the appropriate relocator code in each bound of
42717 the payload, and set the entry point such that
42718 grub_multiboot_real_boot() will jump to one of them.
42720 * kern/i386/loader.S (grub_multiboot_payload_size)
42721 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
42722 (grub_multiboot_payload_entry_offset): New variables.
42723 (grub_multiboot_real_boot): Set cpu context to what the relocator
42724 expects, and jump to the relocator instead of the payload.
42726 * include/grub/i386/loader.h (grub_multiboot_payload_size)
42727 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
42728 (grub_multiboot_payload_entry_offset): Export.
42730 2008-08-01 Bean <bean123ch@gmail.com>
42732 * normal/menu_entry.c (editor_getline): Don't return the original
42733 string as result, as it will be released by lexer once it has done
42736 2008-08-01 Robert Millan <rmh@aybabtu.com>
42738 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
42739 within menuentries, not before them.
42740 util/grub.d/10_hurd.in: Likewise.
42742 2008-08-01 Bean <bean123ch@gmail.com>
42744 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
42745 (bufio_mod_SOURCES): New macro.
42746 (bufio_mod_CFLAGS): Likewise.
42747 (bufio_mod_LDFLAGS): Likewise.
42749 * include/grub/bufio.h: New file.
42751 * io/bufio.c: Likewise.
42753 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
42754 (grub_video_reader_png): Use grub_buffile_open to open file.
42756 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
42757 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
42759 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
42760 (grub_video_reader_tga): Use grub_buffile_open to open file.
42762 * font/manager.c: Include <grub/bufio.h>.
42763 (add_font): Use grub_buffile_open to open file.
42765 2008-07-31 Robert Millan <rmh@aybabtu.com>
42767 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
42768 ELF segments, use a macro for arbitrarily accessing any of them instead
42769 of preparing a pointer that allows access to one at a time.
42770 (grub_multiboot_load_elf64): Likewise.
42772 2008-07-31 Bean <bean123ch@gmail.com>
42774 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
42775 GRUB_KERNEL_MACHINE_DATA_END.
42777 2008-07-30 Robert Millan <rmh@aybabtu.com>
42779 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
42780 Increase from 0x50 to 0x60.
42781 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
42782 use UUIDs to identify the root drive for them. If that's not
42784 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
42785 check, for cross-disk installs.
42787 2008-07-30 Robert Millan <rmh@aybabtu.com>
42789 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
42790 is non-empty, use it to set the `prefix' environment variable instead
42791 of the usual approach.
42792 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
42793 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
42794 environment variable instead of dummy make_install_device().
42796 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
42797 (start): Insert a data section, with `grub_prefix' variable.
42798 * kern/i386/linuxbios/startup.S: Likewise.
42800 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
42801 New variable reference.
42802 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
42803 New macro. Defines offset of `grub_prefix' within startup.S (relative
42805 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
42806 section within startup.S (relative to `start').
42807 * include/grub/i386/coreboot/kernel.h: Likewise.
42809 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
42810 Overwrite grub_prefix with its contents, at the beginning of the
42812 (main): Understand -p|--prefix.
42814 2008-07-30 Robert Millan <rmh@aybabtu.com>
42816 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
42818 2008-07-30 Robert Millan <rmh@aybabtu.com>
42820 * term/i386/pc/vga_text.c (grub_console_cls): Use
42821 grub_console_gotoxy() to go back to beginning of the screen.
42822 Found by Patrick Georgi <patrick.georgi@coresystems.de>
42824 2008-07-29 Christian Franke <franke@computer.org>
42826 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
42827 Add conversion of emulated mount points on Cygwin.
42829 2008-07-29 Christian Franke <franke@computer.org>
42831 * util/update-grub.in: Add a check for admin
42833 Remove old `grub.cfg.new' before creation.
42834 Add `-f' to `mv' to handle the different filesystem
42835 semantics of Windows.
42837 2008-07-29 Bean <bean123ch@gmail.com>
42839 * normal/main.c (get_line): Fix buffer overflow bug.
42841 2008-07-28 Robert Millan <rmh@aybabtu.com>
42843 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
42844 (struct grub_apple_header): New struct. Describes the layout of
42845 the partmap header.
42846 (apple_partition_map_iterate): Check the header magic as well as the
42847 partition magic (which was already being checked).
42849 2008-07-28 Pavel Roskin <proski@gnu.org>
42851 * genmk.rb: Add a warning to the beginning of the output that
42852 it's a generated file and should not be edited.
42854 2008-07-28 Robert Millan <rmh@aybabtu.com>
42856 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
42857 with the same number are found, just use issue a warning with
42858 grub_dprintf(), as this error has been reported to be non-fatal.
42860 2008-07-27 Robert Millan <rmh@aybabtu.com>
42862 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
42865 2008-07-27 Bean <bean123ch@gmail.com>
42867 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
42868 (grub_fat_find_dir): Ignore case when comparing filename.
42870 2008-07-27 Bean <bean123ch@gmail.com>
42872 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
42873 smallino, as it's more descriptive, and i8count can be confused with
42874 the other field count.
42875 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
42878 2008-07-27 Bean <bean123ch@gmail.com>
42880 * commands/crc.c: New file.
42882 * lib/crc.c: Likewise.
42884 * include/grub/lib/crc.h: Likewise.
42886 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
42888 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
42889 (hexdump): Move this function to ...
42891 * lib/hexdump.c: ... here.
42893 * include/grub/hexdump.h: Renamed to ...
42895 * include/grub/lib/hexdump.h: ... this.
42897 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
42899 * util/grub-editenv.c: Likewise.
42901 * include/envblk.h: Renamed to ...
42903 * include/lib/envblk.h: ... this.
42905 * util/envblk.c: Renamed to ...
42907 * lib/envblk.c: ... this.
42909 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
42911 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
42912 (pkglib_MODULES): Add crc.mod.
42913 (hexdump_mod_SOURCES): Add lib/hexdump.c.
42914 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
42915 (crc_mod_SOURCES): New macro.
42916 (crc_mod_CFLAGS): Likewise.
42917 (crc_mod_LDFLAGS): Likewise.
42919 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
42921 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42923 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42925 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42927 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42929 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
42931 * commands/help.c: Include <grub/term.h>.
42932 (TERM_WIDTH): Removed. Updated all users.
42934 2008-07-27 Pavel Roskin <proski@gnu.org>
42936 * util/getroot.c (find_root_device): Rephrase a comment to avoid
42937 spurious warnings about a comment within a comment.
42939 2008-07-25 Robert Millan <rmh@aybabtu.com>
42941 * util/getroot.c (find_root_device): Skip devices that match
42942 /dev/dm-[0-9]. This lets the real device be found for any type of
42943 abstraction (LVM, EVMS, RAID..).
42944 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
42945 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
42946 device is found first, find_root_device() will now skip it.
42948 2008-07-24 Pavel Roskin <proski@gnu.org>
42950 * include/grub/types.h: Use __builtin_bswap32() and
42951 __builtin_bswap64() with gcc 4.3 and newer.
42953 2008-07-24 Christian Franke <franke@computer.org>
42955 * util/i386/pc/grub-install.in: If `--debug' is specified,
42956 pass `--verbose' to grub-setup.
42957 Abort script if make_system_path_relative_to_its_root() fails.
42959 2008-07-24 Bean <bean123ch@gmail.com>
42961 * configure.ac: Fixed a bug caused by the previous cygwin patch,
42962 variable `target_platform' should be `platform'.
42964 2008-07-24 Bean <bean123ch@gmail.com>
42966 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42967 (grub_png_init_fixed_block): New function.
42968 (grub_png_decode_image_data): Handle fixed huffman code compression.
42970 2008-07-24 Bean <bean123ch@gmail.com>
42972 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
42973 (grub_pe2elf_SOURCES): New macro.
42974 (CLEANFILES): Add grub-pe2elf.
42976 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
42977 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
42978 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
42979 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
42980 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
42981 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
42982 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
42983 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
42984 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
42985 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
42986 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
42987 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
42988 (GRUB_PE32_DT_FUNCTION): Likewise.
42989 (GRUB_PE32_REL_I386_DIR32): Likewise.
42990 (GRUB_PE32_REL_I386_REL32): Likewise.
42991 (grub_pe32_symbol): New structure.
42992 (grub_pe32_reloc): Likewise.
42994 * util/grub-pe2elf.c: New file.
42996 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
42997 start symbol in non pc platform.
42999 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43001 The following patches are from Christian Franke.
43003 * include/grub/dl.h: Remove .previous, gas supports this only
43006 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43007 Remove .type, gas supports this only for ELF format.
43009 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43010 nullbytes in symbol table. This fixes an infinite loop if table is
43013 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43014 TARGET_IMG_LDFLAGS and EXEEXT.
43016 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43017 TARGET_IMG_LDFLAGS_AC.
43018 (grub_CHECK_STACK_ARG_PROBE): New function.
43020 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43022 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43024 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43025 to set TARGET_IMG_LD* accordingly.
43026 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43027 Add call to grub_CHECK_STACK_ARG_PROBE.
43028 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43030 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43032 * genmk.rb: Add EXEEXT to CLEANFILES.
43034 2008-07-23 Robert Millan <rmh@aybabtu.com>
43036 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43037 define the codes for arrows and lines used for the menu).
43038 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43041 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43042 fonts, because the latter are too slow.
43044 2008-07-21 Bean <bean123ch@gmail.com>
43046 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43047 a20. Run keyboard test last, as it will cause macbook to halt.
43049 2008-07-18 Pavel Roskin <proski@gnu.org>
43051 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43052 load foreign architecture modules correctly anyway. Keep
43053 support for loading host architecture modules, whether we
43054 compile them or not.
43056 2008-07-17 Pavel Roskin <proski@gnu.org>
43058 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43059 change target_cpu. The compiler default can mismatch target_cpu
43062 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43063 * kern/efi/efi.c: Likewise.
43065 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43066 target compiler is functional.
43067 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43070 * configure.ac: Default to efi platform for x86_64-apple. Allow
43071 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43072 adjustments from the rest, only do them if target is not
43073 explicitly given. Merge other adjustments with the final sanity
43074 check. Remove an extraneous check for supported CPU. Be
43075 specific which CPU and which platform is not supported.
43077 * configure.ac: Default to pc platform for x86_64.
43079 2008-07-17 Robert Millan <rmh@aybabtu.com>
43081 Partial LinuxBIOS -> Coreboot rename.
43083 * conf/i386-linuxbios.rmk: Renamed to ...
43084 * conf/i386-coreboot.rmk: ... this.
43085 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43086 * configure.ac: Accept "coreboot" as input platform (but maintain
43087 compatibility with "linuxbios").
43088 * include/grub/i386/linuxbios: Renamed to ...
43089 * include/grub/i386/coreboot: ... this.
43091 2008-07-17 Bean <bean123ch@gmail.com>
43093 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43094 (appleldr_mod_SOURCE): New variable.
43095 (appleldr_mod_CFLAGS): Likewise.
43096 (appleldr_mod_LDFLAGS): Likewise.
43097 (pci_mod_SOURCES): Likewise.
43098 (pci_mod_CFLAGS): Likewise.
43099 (pci_mod_LDFLAGS): Likewise.
43100 (lspci_mod_SOURCES): Likewise.
43101 (lspci_mod_CFLAGS): Likewise.
43102 (lspci_mod_LDFLAGS): Likewise.
43104 * conf/x86_64-efi.rmk: New file.
43106 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43108 (grub_efidisk_write): Likewise.
43110 * include/efi/api.h (efi_call_0): New macro.
43111 (efi_call_1): Likewise.
43112 (efi_call_2): Likewise.
43113 (efi_call_3): Likewise.
43114 (efi_call_4): Likewise.
43115 (efi_call_5): Likewise.
43116 (efi_call_6): Likewise.
43118 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43119 grub_rescue_cmd_chainloader.
43121 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43122 (grub_pe32_optional_header): Change some fields based on i386 or
43124 (GRUB_PE32_PE32_MAGIC): Likewise.
43126 * include/grub/efi/uga_draw.h: New file.
43128 * include/grub/elf.h (STN_ABS): New constant.
43129 (R_X86_64_NONE): Relocation constant for x86_64.
43130 (R_X86_64_64): Likewise.
43131 (R_X86_64_PC32): Likewise.
43132 (R_X86_64_GOT32): Likewise.
43133 (R_X86_64_PLT32): Likewise.
43134 (R_X86_64_COPY): Likewise.
43135 (R_X86_64_GLOB_DAT): Likewise.
43136 (R_X86_64_JUMP_SLOT): Likewise.
43137 (R_X86_64_RELATIVE): Likewise.
43138 (R_X86_64_GOTPCREL): Likewise.
43139 (R_X86_64_32): Likewise.
43140 (R_X86_64_32S): Likewise.
43141 (R_X86_64_16): Likewise.
43142 (R_X86_64_PC16): Likewise.
43143 (R_X86_64_8): Likewise.
43144 (R_X86_64_PC8): Likewise.
43146 * include/grub/i386/efi/pci.h: New file.
43148 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43149 Change it value based on platform.
43150 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43151 (GRUB_E820_RAM): Likewise.
43152 (GRUB_E820_RESERVED): Likewise.
43153 (GRUB_E820_ACPI): Likewise.
43154 (GRUB_E820_NVS): Likewise.
43155 (GRUB_E820_EXEC_CODE): Likewise.
43156 (GRUB_E820_MAX_ENTRY): Likewise.
43157 (grub_e820_mmap): New structure.
43158 (linux_kernel_header): Change the efi field according to different
43159 kernel version, also field from linux_kernel_header.
43161 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43163 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43164 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43165 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43166 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43167 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43168 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43169 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43170 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43171 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43172 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43174 * include/grub/x86_64/efi/kernel.h: New file.
43176 * include/grub/x86_64/efi/loader.h: Likewise.
43178 * include/grub/x86_64/efi/machine.h: Likewise.
43180 * include/grub/x86_64/efi/pci.h: Likewise.
43182 * include/grub/x86_64/efi/time.h: Likewise.
43184 * include/grub/x86_64/linux.h: Likewise.
43186 * include/grub/x86_64/setjmp.h: Likewise.
43188 * include/grub/x86_64/time.h: Likewise.
43190 * include/grub/x86_64/types.h: Likewise.
43192 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43193 GRUB_TARGET_SIZEOF_VOID_P.
43195 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43196 (grub_efi_locate_handle): Likewise.
43197 (grub_efi_open_protocol): Likewise.
43198 (grub_efi_set_text_mode): Likewise.
43199 (grub_efi_stall): Likewise.
43200 (grub_exit): Likewise.
43201 (grub_reboot): Likewise.
43202 (grub_halt): Likewise.
43203 (grub_efi_exit_boot_services): Likewise.
43204 (grub_get_rtc): Likewise.
43206 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43207 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43208 (grub_efi_allocate_pages): Wrap efi calls.
43209 (grub_efi_free_pages): Wrap efi calls.
43210 (grub_efi_get_memory_map): Wrap efi calls.
43212 * kern/x86_64/dl.c: New file.
43214 * kern/x86_64/efi/callwrap.S: Likewise.
43216 * kern/x86_64/efi/startup.S: Likewise.
43218 * loader/efi/appleloader.c: Likewise.
43220 * loader/efi/chainloader.c (cmdline): New variable.
43221 (grub_chainloader_unload): Wrap efi calls.
43222 (grub_chainloader_boot): Likewise.
43223 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43226 * loader/efi/chainloader_normal.c (chainloader_command):
43227 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43230 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43232 (grub_e820_add_region): New function.
43233 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43235 (grub_find_video_card): New function.
43236 (grub_linux_setup_video): New function.
43237 (grub_rescue_cmd_linux): Probe for video information.
43239 * normal/x86_64/setjmp.S: New file.
43241 * term/efi/console.c (map_char): New function.
43242 (grub_console_putchar): Map unicode char.
43243 (grub_console_checkkey): Wrap efi calls.
43244 (grub_console_getkey): Likewise.
43245 (grub_console_getwh): Likewise.
43246 (grub_console_gotoxy): Likewise.
43247 (grub_console_cls): Likewise.
43248 (grub_console_setcolorstate): Likewise.
43249 (grub_console_setcursor): Likewise.
43251 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43253 2008-07-16 Pavel Roskin <proski@gnu.org>
43255 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43258 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43259 pointer, not an integer. This fixes a warning and prevents
43260 precision loss on 64-bit systems.
43261 (relocate_addresses): Remove unneeded cast.
43263 2008-07-15 Pavel Roskin <proski@gnu.org>
43265 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43267 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43269 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43270 Fix comparison between signed and unsigned.
43272 * include/grub/i386/ieee1275/console.h: Declare
43273 grub_console_init() and grub_console_fini().
43275 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43276 It's empty and unused.
43278 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43279 beginning to avoid warnings with some compilers.
43281 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43282 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43284 2008-07-14 Pavel Roskin <proski@gnu.org>
43286 * kern/env.c (grub_register_variable_hook): Don't copy empty
43287 string, it leaks memory. Pass "" to grub_env_set(), it should
43288 handle constant strings.
43290 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43291 * commands/cmp.c (grub_cmd_cmp): Likewise.
43292 * kern/dl.c (grub_dl_flush_cache): Likewise.
43293 (grub_dl_load_core): Likewise.
43294 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43295 (grub_elf64_load_phdrs): Likewise.
43297 2008-07-13 Pavel Roskin <proski@gnu.org>
43299 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43300 between signed and unsigned.
43301 (LzmaEnc_Finish): Fix warning about an unused parameter.
43303 2008-07-13 Bean <bean123ch@gmail.com>
43305 * Makefile.in (enable_lzo): New rule.
43307 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43309 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43311 * boot/i386/pc/lnxboot.S: #include <config.h>.
43313 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43314 its value according to the compression algorithm used, lzo or lzma.
43316 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43317 compression algorithm according to configure macro.
43319 * kern/i386/pc/startup.S (codestart): Likewise.
43321 * kern/i386/pc/lzma_decode.S: New file.
43323 * include/grub/lib/LzFind.h: Likewise.
43325 * include/grub/lib/LzHash.h: Likewise.
43327 * include/grub/lib/LzmaDec.h: Likewise.
43329 * include/grub/lib/LzmaEnc.h: Likewise.
43331 * include/grub/lib/LzmaTypes.h: Likewise.
43333 * lib/LzFind.c: Likewise.
43335 * lib/LzmaDec.c: Likewise.
43337 * lib/LzmaEnc.c: Likewise.
43339 2008-07-13 Bean <bean123ch@gmail.com>
43341 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43342 (grub_ext4_extent_header): New structure.
43343 (grub_ext4_extent): Likewise.
43344 (grub_ext4_extent_idx): Likewise.
43345 (grub_ext4_find_leaf): New function.
43346 (grub_ext2_read_block): Handle extents.
43348 2008-07-12 Robert Millan <rmh@aybabtu.com>
43350 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43352 2008-07-11 Robert Millan <rmh@aybabtu.com>
43354 * util/grub.d/40_custom.in: New file. Example on how to add custom
43355 entries to /etc/grub.d.
43356 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43357 40_custom (implicitly, by merging all the grub.d rules).
43359 2008-07-11 Pavel Roskin <proski@gnu.org>
43361 * commands/read.c (grub_getline): Fix invalid memory access.
43362 Don't add newline to the variable value.
43364 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43365 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43366 (serial_hw_get_port): Check validity of the port number.
43367 (grub_cmd_serial): Check return value of serial_hw_get_port().
43369 2008-07-07 Pavel Roskin <proski@gnu.org>
43371 * boot/i386/pc/diskboot.S (notification_string): Replace
43372 "Loading kernel" with just "loading". This is shorter, less
43373 confusing and saves a few bytes for possible future changes.
43375 2008-07-05 Pavel Roskin <proski@gnu.org>
43377 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43378 size for ATAPI devices, they are undefined. Output sector
43379 number in decimal form.
43381 * disk/ata.c: Use named constants for status bits.
43383 2008-07-04 Pavel Roskin <proski@gnu.org>
43385 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43386 grub_addr_t before casting it to the void pointer to fix a
43387 warning. Non-addressable regions are discarded earlier.
43388 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43389 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43390 (check_signature): Don't shadow table_header.
43391 (grub_linuxbios_table_iterate): Cast numeric constants to
43392 grub_linuxbios_table_header_t.
43393 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43396 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43399 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43400 pointer, which can cause warnings. Support 64-bit addresses.
43402 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43403 of sizeof(long). This fixes PowerPC image generation on x86_64.
43405 2008-07-04 Robert Millan <rmh@aybabtu.com>
43407 This fixes a performance issue when pc & gpt partmap iterators
43408 didn't abort iteration even after our hook found what it was
43409 looking for (often causing expensive probes of non-existent drives).
43411 Some callers relied on previous buggy behaviour, since they would
43412 raise an error when their own hooks caused early abortion of its
43415 * kern/device.c (grub_device_open): Improve error message.
43416 * disk/lvm.c (grub_lvm_open): Likewise.
43417 * disk/raid.c (grub_raid_open): Likewise.
43419 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43420 when hook requests it, independently of grub_errno.
43421 (pc_partition_map_probe): Do not fail when find_func() caused
43422 early abortion of pc_partition_map_iterate().
43424 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43425 when hook requests it, independently of grub_errno.
43426 (gpt_partition_map_probe): Do not fail when find_func() caused
43427 early abortion of gpt_partition_map_iterate().
43429 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43430 when hook requests it, independently of grub_errno. Do not fail when
43431 part_map_iterate_hook() caused early abortion of p->iterate().
43433 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43434 when grub_partition_iterate() returned with non-zero.
43436 2008-07-03 Pavel Roskin <proski@gnu.org>
43438 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43439 like we do in grub_ata_pio_read().
43440 (grub_ata_readwrite): Always write individual sectors. Fix the
43441 sector count for the remainder.
43442 (grub_ata_write): Enable writing to ATA devices. Correctly
43443 report error for ATAPI devices.
43445 2008-07-02 Pavel Roskin <proski@gnu.org>
43447 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
43450 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
43451 for every read sector, we already increment it for the whole
43452 batch. This fixes reading more than 256 sectors at once.
43454 * util/grub-editenv.c (cmd_info): Cast argument to long
43455 explicitly. ptrdiff_t reduces to int on i386.
43457 * util/grub-editenv.c (main): Be specific which parameter is
43460 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
43461 (memdisk): Make memdisk_orig_addr a pointer.
43463 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
43464 for file offsets, use grub_off_t instead. Fix printf format
43467 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
43468 there. Real unexpected warnings should not drown in the noise
43469 about known problems.
43471 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
43472 grub_disk_addr_t for memory addresses.
43474 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
43475 explicitly to fix a warning.
43477 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
43479 * Makefile.in (MODULE_LDFLAGS): New variable.
43480 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
43481 the linker accepts --build-id=none.
43482 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
43484 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
43486 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
43487 those in Linux XFS code. Provide a way to access 64-bit parent
43489 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
43490 the end of struct grub_xfs_dir_header.
43492 2008-07-02 Bean <bean123ch@gmail.com>
43494 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
43495 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43496 and GRUB_IEEE1275_FLAG_NO_ANSI.
43498 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
43499 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43500 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
43502 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
43503 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
43505 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
43506 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
43508 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
43509 esc sequence on non ANSI terminal.
43510 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
43512 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
43515 2008-07-02 Bean <bean123ch@gmail.com>
43517 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
43518 (grub_editenv_SOURCES): New variable.
43519 (pkglib_MODULES): Add loadenv.mod.
43520 (loadenv_mod_SOURCES): New variable.
43521 (loadenv_mod_CFLAGS): Likewise.
43522 (loadenv_mod_LDFLAGS): Likewise.
43524 * include/grub/envblk.h: New file.
43526 * util/envblk.c: New file.
43528 * util/grub-editenv.c: New file.
43530 * commands/loadenv.c: New file.
43532 2008-07-01 Pavel Roskin <proski@gnu.org>
43534 * include/multiboot2.h (struct multiboot_tag_module): Use char,
43535 not unsigned char. This fixes warnings and is consistent with
43538 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
43540 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
43542 * term/tparm.c (analyze): Always set *popcount.
43544 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
43545 cast to fix a warning.
43547 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
43548 cast to suppress a warning.
43550 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
43551 grub_fshelp_read_file() expects.
43553 * fs/fat.c: Fix UUID calculation on big-endian systems. We
43554 write uuid as a 32-bit value in CPU byte order, so declare and
43557 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
43558 long if the format specifier expects it.
43559 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
43560 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43561 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
43562 long to fix a warning.
43563 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
43564 grub_dprintf() arguments to fix warnings.
43566 2008-06-30 Pavel Roskin <proski@gnu.org>
43568 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
43569 install_bsd_part immediately before core.img is embedded or
43570 modified on disk. This fixes core.img verification if core.img
43571 cannot be embedded.
43573 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
43574 core_path to calculate the blocklist.
43575 Patch from Javier Martín <lordhabbit@gmail.com>
43577 2008-06-29 Robert Millan <rmh@aybabtu.com>
43579 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
43580 block to disk block.
43581 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
43582 Patch from Niels Böhm <bitbucket@arcor.de>
43584 2008-06-29 Robert Millan <rmh@aybabtu.com>
43586 * util/update-grub_lib.in (font_path): Search for fonts in
43587 /boot/grub first, which is more likely to be readable (we aren't
43588 deciding where fonts live, just looking for them).
43590 2008-06-26 Pavel Roskin <proski@gnu.org>
43592 * util/biosdisk.c (read_device_map): Don't leave dead map
43593 entries for devices failing stat() check.
43595 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
43596 core_path_dev for the core.img path on the target device.
43598 2008-06-26 Robert Millan <rmh@aybabtu.com>
43600 * disk/fs_uuid.c: New file.
43601 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
43602 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
43603 (fs_uuid_mod_LDFLAGS): New variables.
43604 * include/grub/disk.h (grub_disk_dev_id): Add
43605 `GRUB_DISK_DEVICE_UUID_ID'.
43606 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
43607 implement iterate().
43609 2008-06-26 Robert Millan <rmh@aybabtu.com>
43611 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
43612 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
43613 Linux image includes no initrd.
43615 2008-06-21 Javier Martín <lordhabbit@gmail.com>
43617 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
43618 call to resolve the core image location that effectively appended the
43621 2008-06-21 Robert Millan <rmh@aybabtu.com>
43623 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
43626 * util/grub.d/10_hurd.in: ... to here ...
43627 * util/grub.d/10_linux.in: ... and here.
43629 2008-06-19 Robert Millan <rmh@aybabtu.com>
43631 * kern/main.c (grub_main): Export `prefix' variable immediately
43632 after it has been set by grub_machine_set_prefix().
43634 2008-06-19 Robert Millan <rmh@aybabtu.com>
43636 * commands/search.c (search_label, search_fs_uuid, search_file): Print
43637 search result when not saving to variable, not the other way around.
43638 When saving to variable, abort iteration as soon as a match is found.
43640 2008-06-19 Robert Millan <rmh@aybabtu.com>
43642 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
43643 check for partition that provides /boot/grub. Its logic is flawed,
43644 as it prevents prepare_grub_to_access_device() from being called
43647 2008-06-19 Robert Millan <rmh@aybabtu.com>
43649 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
43650 "insmod" command directly when abstraction modules are needed,
43651 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
43652 since it had already been processed).
43654 2008-06-19 Pavel Roskin <proski@gnu.org>
43656 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
43657 changed. This is needed in case GRUB_LIBDIR changes.
43658 * conf/i386-ieee1275.rmk: Likewise.
43659 * conf/i386-linuxbios.rmk: Likewise.
43660 * conf/i386-pc.rmk: Likewise.
43661 * conf/powerpc-ieee1275.rmk: Likewise.
43663 2008-06-18 Pavel Roskin <proski@gnu.org>
43665 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
43666 kernel_elf_symlist.c to symlist.c for consistency with other
43667 architectures. Update all users.
43668 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43670 2008-06-18 Robert Millan <rmh@aybabtu.com>
43672 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
43675 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
43676 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
43677 a RAID device, run setup() for all members independently on whether
43678 LVM abstraction is being used.
43679 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
43680 If grub-mkimage has set `*install_dos_part == -2', don't override this
43682 Perform *install_dos_part adjustments independently on whether
43683 we're embedding or not.
43684 Clarify error message when image is too big for embedding.
43685 Remove duplicate *install_dos_part stanza.
43687 2008-06-17 Robert Millan <rmh@aybabtu.com>
43689 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
43690 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
43692 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
43693 values in grub_ofconsole_normal_color and
43694 grub_ofconsole_highlight_color (they're not directly related to
43695 background and foreground).
43696 (grub_ofconsole_setcolorstate): Extract background and foreground
43697 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
43699 2008-06-17 Robert Millan <rmh@aybabtu.com>
43701 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
43702 /boot/grub for the check in last commit, not /boot (they could be
43703 different partitions).
43705 2008-06-16 Robert Millan <rmh@aybabtu.com>
43707 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
43708 asked to setup access for the same partition that provides /boot,
43709 don't bother using UUIDs since our root already has the value we
43712 2008-06-16 Robert Millan <rmh@aybabtu.com>
43714 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
43716 Patch from Sven Mueller <sven@debian.org>.
43718 2008-06-16 Robert Millan <rmh@aybabtu.com>
43720 * util/update-grub.in: Check for $EUID instead of $UID.
43721 Reported by Vincent Zweije.
43723 2008-06-16 Bean <bean123ch@gmail.com>
43725 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
43726 (grub_ext2_read_block): Likewise.
43727 (grub_ext2_read_inode): Likewise.
43728 (grub_ext2_mount): Likewise.
43729 (grub_ext2_close): Likewise.
43730 (grub_ext3_get_journal): Removed.
43732 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
43733 (grub_reiserfs_read_symlink): Likewise.
43734 (grub_reiserfs_mount): Likewise.
43735 (grub_reiserfs_open): Likewise.
43736 (grub_reiserfs_read): Likewise.
43737 (grub_reiserfs_close): Likewise.
43738 (grub_reiserfs_get_journal): Removed.
43740 * fs/fshelp.c (grub_fshelp_read): Removed.
43741 (grub_fshelp_map_block): Likewise.
43743 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
43744 (grub_fshelp_journal): Likewise.
43745 (grub_fshelp_read): Likewise.
43746 (grub_fshelp_map_block): Likewise.
43748 2008-06-16 Pavel Roskin <proski@gnu.org>
43750 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
43751 floating point anymore.
43752 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
43754 2008-06-15 Pavel Roskin <proski@gnu.org>
43756 * commands/ls.c (grub_ls_list_files): Use integer calculations
43757 for human readable format, avoid floating point use.
43758 * kern/misc.c (grub_ftoa): Remove.
43759 (grub_vsprintf): Remove floating point support.
43761 2008-06-15 Robert Millan <rmh@aybabtu.com>
43763 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
43765 Reported by Max Vozeler.
43767 2008-06-15 Robert Millan <rmh@aybabtu.com>
43769 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
43770 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
43772 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
43773 the beginning of the prefix.
43775 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
43776 It is assumed that if we have a memdisk, grub-mkimage has set
43777 grub_prefix to include the "(memdisk)" drive in it.
43779 2008-06-15 Robert Millan <rmh@aybabtu.com>
43781 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
43782 Initialize keyboard controller after registering the terminal, so that
43783 grub_printf() can be called from grub_keyboard_controller_init().
43785 2008-06-15 Robert Millan <rmh@aybabtu.com>
43787 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
43788 extent-btree which is written as big endian on disk.
43789 Reported by Alain Greppin <al@chilibi.org>.
43791 2008-06-14 Robert Millan <rmh@aybabtu.com>
43793 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
43794 * util/i386/pc/grub-install.in (modules): Likewise.
43796 2008-06-13 Pavel Roskin <proski@gnu.org>
43798 * commands/ls.c (grub_ls_list_files): Fix format warnings.
43800 2008-06-13 Bean <bean123ch@gmail.com>
43802 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
43804 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
43806 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
43807 to indicate sparse block.
43809 2008-06-12 Pavel Roskin <proski@gnu.org>
43811 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
43812 number, grub_fshelp_read() does it for us.
43814 * fs/fshelp.c (grub_fshelp_read): New function. Implement
43815 linear disk read with journal translation.
43816 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
43817 * include/grub/fshelp.h: Declare grub_fshelp_read().
43819 2008-06-09 Pavel Roskin <proski@gnu.org>
43821 * fs/minix.c (grub_minix_mount): Handle error reading
43824 2008-06-08 Robert Millan <rmh@aybabtu.com>
43826 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
43827 don't append the RAID prefix afterwards.
43828 Reported by Clint Adams.
43830 2008-06-08 Robert Millan <rmh@aybabtu.com>
43832 Based on description from Pavel:
43833 * kern/disk.c (grub_disk_check_range): Rename to ...
43834 (grub_disk_adjust_range): ... this. Add a comment explaining the
43835 tasks performed by this function.
43837 2008-06-08 Robert Millan <rmh@aybabtu.com>
43839 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
43840 `num_serial' (for consistency with other variables).
43841 (struct grub_ntfs_data): Add `uuid' member.
43842 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
43843 (grub_ntfs_uuid): New function.
43844 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
43846 2008-06-07 Pavel Roskin <proski@gnu.org>
43848 * util/biosdisk.c (open_device): Revert last change to the
43849 function, it broke installation. The sector needs to be
43850 different dependent on which device is opened.
43852 2008-06-06 Robert Millan <rmh@aybabtu.com>
43854 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
43855 rest of GRUB, and breakage doesn't happen if its value were modified.
43857 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
43858 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
43859 a constant (same value).
43860 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
43861 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
43863 2008-06-06 Robert Millan <rmh@aybabtu.com>
43865 * util/biosdisk.c (open_device): Do not modify sector offset when
43866 accessing a partition. kern/disk.c already handles this for us.
43868 2008-06-06 Robert Millan <rmh@aybabtu.com>
43870 * util/grub-emu.c (grub_machine_init): Move code in this function from
43872 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
43873 segfault in case grub_printf() is called).
43875 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
43876 grub_probe. Update all users not to explicitly add it again.
43877 (grub_device): New variable; contains corresponding device for grubdir.
43878 (fs_module, partmap_module, devabstraction_module): Pass
43879 `--device ${grub_device}' to grub_probe to avoid traversing /dev
43882 2008-06-05 Robert Millan <rmh@aybabtu.com>
43884 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
43885 is found, print it (same layout as with labels).
43887 2008-06-04 Robert Millan <rmh@aybabtu.com>
43889 * util/biosdisk.c (get_drive): Rename to ...
43890 (find_grub_drive): ... this. Update all users.
43892 (get_os_disk): Rename to ...
43893 (convert_system_partition_to_system_disk): ... this. Update all users.
43895 (find_drive): Rename to ...
43896 (find_system_device): ... this. Update all users.
43898 2008-06-04 Robert Millan <rmh@aybabtu.com>
43900 * util/biosdisk.c (get_os_disk): Handle IDA devices.
43901 * util/grub-mkdevicemap.c (get_mmc_disk_name)
43902 (make_device_map): Likewise.
43904 2008-06-01 Robert Millan <rmh@aybabtu.com>
43906 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
43907 before dereferencing it.
43909 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
43910 union with fat12/fat16-specific ones. Add some new fields, including
43911 `num_serial' for both versions.
43912 (struct grub_fat_data): Add `uuid' member.
43913 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
43914 names. Initialize `data->uuid' using `num_serial'.
43915 (grub_fat_uuid): New function.
43916 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
43918 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
43919 (grub_reiserfs_uuid): New function.
43920 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
43923 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
43924 (grub_xfs_uuid): New function.
43925 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
43927 2008-06-01 Robert Millan <rmh@aybabtu.com>
43929 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
43930 code that is backward compatible with pre-uuid search command.
43932 2008-05-31 Robert Millan <rmh@aybabtu.com>
43934 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
43935 floppies after everything else, to ensure floppy drive isn't accessed
43936 unnecessarily (patch from Bean).
43938 2008-05-31 Robert Millan <rmh@aybabtu.com>
43940 * commands/search.c (search_label, search_fs_uuid, search_file): Do
43941 not print device names when we were asked to set a variable.
43943 2008-05-31 Robert Millan <rmh@aybabtu.com>
43945 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
43946 using "cursor-on" and "cursor-off" commands (understood at least by
43947 the Open Firmware flavour on OLPC).
43949 2008-05-31 Michael Gorven <michael@gorven.za.net>
43951 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
43952 on and off sequences.
43954 2008-05-31 Robert Millan <rmh@aybabtu.com>
43956 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
43957 * util/update-grub.in: Likewise.
43959 2008-05-30 Pavel Roskin <proski@gnu.org>
43961 * util/biosdisk.c (linux_find_partition): Simplify logic and
43962 make the code more universal. Keep special processing for
43963 devfs, but use a simple rule for all other devices. If the
43964 device ends with a number, append 'p' and the partition number.
43965 Otherwise, append only the partition number.
43967 2008-05-30 Robert Millan <rmh@aybabtu.com>
43969 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
43970 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
43971 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
43972 the `root' parameter to Linux.
43974 2008-05-30 Robert Millan <rmh@aybabtu.com>
43976 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
43977 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
43978 --fs_uuid with --fs-uuid.
43979 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
43980 all filesystems support them).
43982 2008-05-30 Robert Millan <rmh@aybabtu.com>
43984 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
43985 grub_printf() flags, since we're printing in units of 2 bytes.
43987 2008-05-30 Robert Millan <rmh@aybabtu.com>
43989 * util/grub.d/00_header.in: Remove obsolete comment referencing
43990 convert_system_path_to_grub_path().
43991 * util/update-grub.in: Likewise.
43992 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
43993 (convert_system_path_to_grub_path): Add a warning message explaining
43994 that this function is deprecated. Rely on is_path_readable_by_grub()
43995 for the readability checks.
43996 (font_path): Use is_path_readable_by_grub() for the readability
43997 check rather than convert_system_path_to_grub_path().
43999 2008-05-30 Robert Millan <rmh@aybabtu.com>
44001 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44002 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44003 converting it first.
44004 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44005 grub.cfg for access to font file, and afterwards call it again to set
44008 2008-05-30 Robert Millan <rmh@aybabtu.com>
44010 * commands/search.c (options): Add --fs_uuid option.
44011 (search_fs_uuid): New function.
44012 (grub_cmd_search): Fix --set argument passing.
44013 Use search_fs_uuid() when requested via --fs_uuid.
44014 (grub_search_init): Update help message.
44015 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44016 and redeclare it as an array of 16-bit words.
44017 (grub_ext2_uuid): New function.
44018 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44019 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44020 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44021 (GRUB_DEVICE_BOOT_UUID): New variables.
44022 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44023 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44025 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44026 just assume `root' variable has the right value.
44027 * util/grub.d/10_linux.in: Likewise.
44028 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44030 (main): Recognise `-t fs_uuid' argument.
44032 2008-05-30 Robert Millan <rmh@aybabtu.com>
44034 * util/biosdisk.c (map): Redefine structure to hold information
44035 about GRUB drive name.
44036 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44038 (call_hook): Remove.
44039 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44040 member. Assume drive has partitions.
44041 (grub_util_biosdisk_open): Access device names via `.device' struct
44043 (open_device): Likewise.
44044 (find_drive): Likewise.
44045 (read_device_map): Adjust map[] usage to match the new struct
44046 definition. Don't check for duplicates (still possible, but not cheap
44048 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44049 (make_device_name): Remove assumption of BIOS-like drive names.
44051 2008-05-30 Pavel Roskin <proski@gnu.org>
44053 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44054 compiling execute.c doesn't need grub_script.tab.h anymore.
44055 (normal/command.c_DEPENDENCIES): Likewise.
44056 (normal/function.c_DEPENDENCIES): Likewise.
44057 * conf/i386-ieee1275.rmk: Likewise.
44058 * conf/i386-linuxbios.rmk: Likewise.
44059 * conf/i386-pc.rmk: Likewise.
44060 * conf/powerpc-ieee1275.rmk: Likewise.
44061 * conf/sparc64-ieee1275.rmk: Likewise.
44063 2008-05-29 Pavel Roskin <proski@gnu.org>
44065 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44066 when scanning metadata for volume group name.
44068 * include/grub/script.h: Don't include grub_script.tab.h. It's
44069 a generated file, which may only be included from the files with
44070 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44071 use union YYSTYPE, as the later allows forward declaration.
44072 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44074 2008-05-29 Robert Millan <rmh@aybabtu.com>
44076 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44077 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44078 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44079 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44082 2008-05-29 Robert Millan <rmh@aybabtu.com>
44084 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44085 control key combinations.
44087 2008-05-29 Robert Millan <rmh@aybabtu.com>
44089 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44090 * util/ieee1275/grub-install.in: ... to here.
44091 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44092 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44093 (grub_install_SOURCES): Likewise.
44095 2008-05-29 Robert Millan <rmh@aybabtu.com>
44097 * fs/affs.c: Update copyright year.
44098 * fs/ext2.c: Likewise.
44099 * fs/fshelp.c: Likewise.
44100 * fs/hfsplus.c: Likewise.
44101 * fs/ntfs.c: Likewise.
44102 * fs/xfs.c: Likewise.
44103 * include/grub/fshelp.h: Likewise.
44104 * util/grub-mkdevicemap.c: Likewise.
44106 2008-05-28 Robert Millan <rmh@aybabtu.com>
44108 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44109 might need to be fatfs to support some firmware implementations
44112 2008-05-28 Robert Millan <rmh@aybabtu.com>
44114 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44116 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44117 (make_device_map): Likewise.
44119 2008-05-20 Bean <bean123ch@gmail.com>
44121 * fs/fshelp.c (grub_fshelp_map_block): New function.
44122 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44123 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44125 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44126 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44127 (grub_fshelp_journal): New structure.
44128 (grub_fshelp_map_block): New function prototype.
44129 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44130 (grub_fshelp_map_block): Likewise.
44132 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44133 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44134 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44135 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44136 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44137 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44138 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44139 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44140 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44141 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44142 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44143 (grub_ext2_sblock): New members for journal support.
44144 (grub_ext3_journal_header): New structure.
44145 (grub_ext3_journal_revoke_header): Likewise.
44146 (grub_ext3_journal_block_tag): Likewise.
44147 (grub_ext3_journal_sblock): Likewise.
44148 (grub_fshelp_node): New members logfile and journal.
44149 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44150 grub_fshelp_map_block to get real block number.
44151 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44153 (grub_ext2_read_inode): Likewise.
44154 (grub_ext3_get_journal): New function.
44155 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44156 (grub_ext2_close): Release memory used by journal.
44158 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44159 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44160 (grub_reiserfs_transaction_header): Renamed to
44161 grub_reiserfs_description_block, replace field data with real_blocks.
44162 (grub_reiserfs_commit_block): New structure.
44163 (grub_reiserfs_data): New member journal.
44164 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44166 (grub_reiserfs_read_symlink): Likewise.
44167 (grub_reiserfs_iterate_dir): Likewise.
44168 (grub_reiserfs_open): Likewise.
44169 (grub_reiserfs_read): Likewise.
44170 (grub_reiserfs_get_journal): New function.
44171 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44172 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44173 using grub_reiserfs_get_journal.
44174 (grub_reiserfs_close): Release memory used by journal.
44176 * fs/affs.c (grub_affs_read_block): Change block type to
44177 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44179 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44181 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44183 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44185 * fs/udf.c (grub_udf_read_block): Change block type to
44186 grub_disk_addr_t. Use type cast to avoid warning.
44188 * fs/xfs.c (grub_xfs_read_block): Likewise.
44190 2008-05-16 Christian Franke <franke@computer.org>
44192 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44193 to ensure that break with ESC will always work.
44194 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44195 Remove ESC from keyboard queue.
44197 2008-05-16 Christian Franke <franke@computer.org>
44199 * util/biosdisk.c: [__CYGWIN__] Add includes.
44200 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44201 (get_os_disk): Move variable declarations to OS specific
44202 parts to avoid warning.
44203 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44204 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44205 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44207 * util/getroot.c: [__CYGWIN__] Add includes.
44208 (strip_extra_slashes): Fix "/" case.
44209 [__CYGWIN__] (get_win32_path): New function.
44210 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44211 [__CYGWIN__] (find_root_device): Disable.
44212 [__CYGWIN__] (get_bootsec_serial): New function.
44213 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44214 [__linux__] (grub_guess_root_device): Add early returns to simplify
44216 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44217 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44218 check for Linux only.
44220 2008-05-15 Bean <bean123ch@gmail.com>
44222 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44223 keyboard hang problem in apple's intel mac.
44225 2008-05-09 Robert Millan <rmh@aybabtu.com>
44227 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44229 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44230 (make_device_map): Likewise.
44231 Reported by Aurelien Jarno <aurel32@debian.org>
44233 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44235 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44236 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44237 (make_device_map): Output entries for xvd type disks.
44239 2008-05-07 Robert Millan <rmh@aybabtu.com>
44241 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44243 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44244 (make_device_map): Likewise.
44245 Reported by Roland Dreier <rdreier@cisco.com>
44247 2008-05-07 Robert Millan <rmh@aybabtu.com>
44249 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44250 grub_strstr() call. Correct a few mistakes in failure path handling.
44252 2008-05-06 Robert Millan <rmh@aybabtu.com>
44254 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44255 Do not print a trailing slash (therefore, the root directory is an
44257 (convert_system_path_to_grub_path): Do not remove trailing slash
44258 from make_system_path_relative_to_its_root() output.
44260 * util/i386/pc/grub-install.in: Add trailing slash to output from
44261 make_system_path_relative_to_its_root().
44263 2008-05-06 Robert Millan <rmh@aybabtu.com>
44265 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44266 ensures that output lines aren't intermangled with those sent to
44267 stderr (via grub_util_info()).
44268 * util/grub-probe.c (grub_refresh): Likewise.
44269 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44271 2008-05-05 Christian Franke <franke@computer.org>
44273 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44274 Add Cygwin device names.
44275 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44276 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44277 (check_device): Return error instead of success on empty name.
44278 (make_device_map): Move label inside linux specific code to
44279 prevent compiler warning.
44281 2008-04-30 Robert Millan <rmh@aybabtu.com>
44283 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44284 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44286 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44288 2008-04-29 Robert Millan <rmh@aybabtu.com>
44290 * docs/grub.cfg: New file (example GRUB configuration).
44292 2008-04-26 Robert Millan <rmh@aybabtu.com>
44294 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44295 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44296 and `disk/ieee1275/nand.c'.
44298 2008-04-25 Bean <bean123ch@gmail.com>
44300 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44303 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44304 change the buffer size to 4096 for cdrom device.
44306 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44308 (_linux_mod_SOURCES): New variable.
44309 (_linux_mod_CFLAGS): Likewise.
44310 (_linux_mod_LDFLAGS): Likewise.
44311 (linux_mod_SOURCES): Likewise.
44312 (linux_mod_CFLAGS): Likewise.
44313 (linux_mod_LDFLAGS): Likewise.
44314 (nand_mod_SOURCES): Likewise.
44315 (nand_mod_CFLAGS): Likewise.
44316 (nand_mod_LDFLAGS): Likewise.
44318 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44319 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44320 type property. (nand device in olpc don't have this property)
44322 * include/grub/disk.h (grub_disk_dev_id): New macro
44323 GRUB_DISK_DEVICE_NAND_ID.
44325 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44326 function prototype.
44327 (grub_rescue_cmd_initrd): Likewise.
44329 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44330 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44331 ofw_cif_handler and ofw_idt, adjust padding number.
44333 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44334 GRUB_MACHINE_IEEE1275 is defined.
44336 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44337 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44339 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44340 on nested function heap_init.
44341 (grub_upper_mem): New variable for i386-ieee1275.
44342 (grub_get_extended_memory): New function for i386-ieee1275.
44343 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44345 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44346 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44349 * loader/i386/ieee1275/linux.c: New file.
44351 * loader/i386/ieee1275/linux_normal.c: New file.
44353 * disk/ieee1275/nand.c: New file.
44355 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44357 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44359 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44361 2008-04-18 Robert Millan <rmh@aybabtu.com>
44363 Restructures early code path on ieee1275 to unify grub_main() as
44364 the first C function that is executed in every platform.
44366 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44367 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44369 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44370 * kern/ieee1275/cmain.c (cmain): Rename to ...
44371 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44372 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44375 2008-04-18 Robert Millan <rmh@aybabtu.com>
44377 * util/update-grub.in: Fix syntax error when setting
44378 `GRUB_PRELOAD_MODULES'.
44379 Reported by Stephane Chazelas <stephane@artesyncp.com>
44381 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44383 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44384 section into account, newer toolchains generate unique build ids
44385 * configure.ac: remove the test for --build-id=none acceptance,
44386 we want build ids to be preserved
44387 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44388 far from other sections don't cause the raw binary images grow
44391 2008-04-15 Robert Millan <rmh@aybabtu.com>
44393 * disk/lvm.c: Update copyright year.
44394 * kern/misc.c: Likewise.
44396 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44398 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
44399 there is no memory left for physical volume name.
44401 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44403 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44404 volume name mapping to support bigger than 9 character names properly.
44406 2008-04-13 Robert Millan <rmh@aybabtu.com>
44408 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44409 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44411 2008-04-13 Christian Franke <franke@computer.org>
44413 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44414 to create a floppy emulation boot CD when non emulation mode
44416 Enable Joliet CD filesystem extension.
44418 2008-04-13 Robert Millan <rmh@aybabtu.com>
44420 * kern/misc.c (grub_strncat): Fix off-by-one error.
44421 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44423 * kern/env.c (grub_env_context_close): Clear current context, not
44425 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44427 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44429 2008-04-13 Robert Millan <rmh@aybabtu.com>
44431 Improve robustness when handling LVM.
44433 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
44434 (and leave `*p' unmodified).
44435 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44437 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44438 iterating through it.
44439 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44441 (grub_lvm_scan_device): Check the return value (and fail gracefully
44442 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44443 Don't assume `vg->pvs != NULL' when iterating through it.
44445 2008-04-13 Robert Millan <rmh@aybabtu.com>
44447 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
44448 * genmk.rb (partmap): New variable.
44449 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
44450 (#{partmap}): New target rule.
44451 * genpartmaplist.sh: New file.
44452 * Makefile.in (pkglib_DATA): Add partmap.lst.
44453 (partmap.lst): New target rule.
44454 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
44455 modules (including all partition maps), instead of preloading them.
44457 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
44459 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
44460 `linux-boot-prober' (if installed) to detect other operating
44461 systems which are installed on the computer and add them to
44463 * conf/common.rmk: Build and install 30_os-prober.
44465 2008-04-12 Robert Millan <rmh@aybabtu.com>
44467 * kern/powerpc/ieee1275/init.c: Move from here ...
44468 * kern/ieee1275/init.c: ... to here. Update all users.
44470 * kern/powerpc/ieee1275/cmain.c: Move from here ...
44471 * kern/ieee1275/cmain.c: ... to here. Update all users.
44473 * kern/powerpc/ieee1275/openfw.c: Move from here ...
44474 * kern/ieee1275/openfw.c: ... to here. Update all users.
44476 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
44477 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
44479 2008-04-10 Pavel Roskin <proski@gnu.org>
44481 * configure.ac: Always use "_cv_" in cache variables for
44482 compatibility with Autoconf 2.62.
44484 2008-04-07 Robert Millan <rmh@aybabtu.com>
44486 Revert grub/machine/init.h addition by Pavel (since it breaks on
44487 i386-ieee1275 and others):
44488 * util/i386/pc/misc.c: Remove grub/machine/init.h.
44489 * util/powerpc/ieee1275/misc.c: Likewise.
44491 2008-04-07 Robert Millan <rmh@aybabtu.com>
44493 * util/grub-probe.c (probe): Improve error message.
44495 2008-04-07 Robert Millan <rmh@aybabtu.com>
44497 * util/biosdisk.c (read_device_map): Skip devices that don't exist
44498 (this prevents the presence of a bogus entry from ruining the whole
44501 2008-04-06 Pavel Roskin <proski@gnu.org>
44503 * util/biosdisk.c: Include grub/util/biosdisk.h.
44504 * util/grub-fstest.c (execute_command): Make static.
44505 * util/grub-mkdevicemap.c (check_device): Likewise.
44506 * util/i386/pc/misc.c: Include grub/machine/init.h.
44507 * util/powerpc/ieee1275/misc.c: Likewise.
44508 * util/lvm.c: Include grub/util/lvm.h.
44509 * util/misc.c: Include grub/kernel.h, grub/misc.h and
44511 * util/raid.c: Include grub/util/raid.h.
44512 (grub_util_getdiskname): Make static.
44514 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
44515 grub_hostfs_fini(), as they are called from grub_init_all() and
44516 grub_fini_all() respectively. This fixes an infinite loop in
44517 grub-fstest due to double registration of hostfs.
44518 Reported by Christian Franke <Christian.Franke@t-online.de>
44520 2008-04-05 Pavel Roskin <proski@gnu.org>
44522 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
44523 all 8 functions. Otherwise, probe function 0 only.
44525 2008-04-04 Pavel Roskin <proski@gnu.org>
44527 * commands/lspci.c (grub_lspci_iter): Print the bus number
44530 * commands/lspci.c (grub_pci_classes): Fix typos.
44531 (grub_lspci_iter): Don't print func twice. Print vendor ID
44532 before device ID, as it's normally done.
44534 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
44535 Fix signedness warnings.
44536 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
44538 * util/ieee1275/get_disk_name.c: Include config.h so that
44539 _GNU_SOURCE is defined and getline() is declared. Mark an
44540 unused argument as such. Fix a signedness warning.
44542 2008-04-02 Pavel Roskin <proski@gnu.org>
44544 * genkernsyms.sh.in: Use more robust assignments for CC and
44545 srcdir. Quote srcdir.
44546 * gensymlist.sh.in: Likewise. Assert at the compile time that
44547 the symbol table is not empty.
44549 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
44550 * fs/cpio.c (grub_cpio_read): Likewise.
44552 2008-04-01 Pavel Roskin <proski@gnu.org>
44554 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
44555 * disk/host.c (grub_host_open): Likewise.
44556 * disk/loopback.c (grub_loopback_open): Likewise.
44557 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
44558 disk->id as in disk/host.c, not a multi-character constant.
44560 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
44561 later is obsolete, potentially dangerous and sets a bad example.
44562 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
44563 * util/misc.c (grub_util_get_image_size): Likewise.
44565 * disk/loopback.c (options): Improve help for "--partitions".
44567 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
44568 options to align them with the short options, e.g. "echo -e".
44570 2008-03-31 Bean <bean123ch@gmail.com>
44572 * video/reader/png.c (grub_png_data): New member is_16bit and
44574 (grub_png_decode_image_header): Detect 16 bit png image.
44575 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
44576 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
44577 (grub_video_reader_png): Release memory occupied by image_data.
44579 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
44581 (grub_nfs_mount): Skip the test for sector per cluster.
44583 * include/grub/ntfs.h (MAX_SPC): Removed.
44585 2008-03-31 Bean <bean123ch@gmail.com>
44587 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
44588 (grub_probe_SOURCES): Add fs/afs.c.
44589 (grub_fstest_SOURCES): Likewise.
44590 (afs_mod_SOURCES): New variable.
44591 (afs_mod_CFLAGS): Likewise.
44592 (afs_mod_LDFLAGS): Likewise.
44594 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
44595 (grub_emu_SOURCES): Likewise.
44597 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44599 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44601 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44603 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44605 * fs/afs.c: New file.
44607 2008-03-30 Pavel Roskin <proski@gnu.org>
44609 * disk/host.c: Include grub/misc.h to fix a warning.
44610 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
44611 warnings about implicit declarations.
44613 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
44615 * include/grub/i386/loader.h: Change declaration of
44616 grub_linux_boot() to match what grub_loader_set() expects.
44617 * util/getroot.c (grub_guess_root_device): Return const char* to
44619 * util/grub-probe.c (probe): Fix a warning about uninitialized
44620 abstraction_name variable.
44621 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
44622 second argument as unused to fix a warning.
44624 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
44625 missing grub_error() call.
44627 * util/update-grub_lib.in: Define datarootdir, since Autoconf
44628 2.60 and newer uses it to define datadir.
44630 * commands/sleep.c: Fix warning about implicit declaration.
44631 * disk/memdisk.c: Likewise.
44632 * loader/aout.c: Likewise.
44633 * loader/i386/bsd_normal.c: Likewise.
44634 * util/grub-probe.c: Likewise.
44636 * commands/i386/cpuid.c (has_longmode): Make static.
44637 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
44638 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
44640 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
44641 GDT. This is more robust, as %ds can change.
44642 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
44643 calling real_to_prot().
44644 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
44646 2008-03-28 Pavel Roskin <proski@gnu.org>
44648 * kern/i386/pc/startup.S: Assert that uncompressed functions
44649 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
44650 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
44651 code, as they push parts of the code (error handlers) beyond
44652 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
44653 code as correctness and size.
44655 2008-03-28 Pavel Roskin <proski@gnu.org>
44657 * kern/i386/pc/startup.S
44658 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
44659 data block address to the real mode, keep offset minimal. This
44660 works around a bug in AWARD BIOS on old Athlon systems, which
44661 makes CD detection hang.
44663 2008-03-26 Pavel Roskin <proski@gnu.org>
44665 * normal/color.c (grub_parse_color_name_pair): Make `name' a
44667 * include/grub/normal.h: Add grub_parse_color_name_pair()
44670 2008-03-24 Bean <bean123ch@gmail.com>
44672 * disk/i386/pc/biosdisk.c (cd_start): Removed.
44673 (cd_count): Removed.
44674 (cd_drive): New variable.
44675 (grub_biosdisk_get_drive): Don't check for (cdN) device.
44676 (grub_biosdisk_call_hook): Likewise.
44677 (grub_biosdisk_iterate): Change cdrom detection method.
44678 (grub_biosdisk_open): Replace cd_start with cd_drive.
44679 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
44680 detect cdrom device.
44682 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
44684 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
44685 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
44686 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
44687 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
44688 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
44689 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
44690 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
44691 (grub_biosdisk_cdrp): New structure.
44692 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
44694 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
44696 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
44699 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
44702 2008-03-20 Robert Millan <rmh@aybabtu.com>
44704 Remove 2 TiB limit in ata.mod.
44705 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
44706 (grub_ata_dumpinfo): Print sector count with 0x%llx.
44707 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
44708 grub_uint64_t instead of grub_uint32_t.
44710 2008-03-05 Bean <bean123ch@gmail.com>
44712 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
44713 (grub_multiboot): Set boot device.
44715 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
44717 2008-03-02 Bean <bean123ch@gmail.com>
44719 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
44722 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
44724 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
44727 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
44730 * docs/fdl.texi: New file.
44732 * docs/mdate-sh: New file. Copied from gnulib.
44733 * docs/texinfo.tex: Likewise.
44735 * config.guess: Updated from gnulib.
44736 * install-sh: Likewise.
44738 2008-02-28 Robert Millan <rmh@aybabtu.com>
44740 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
44741 (aout_mod_SOURCES): New variable.
44742 (aout_mod_CFLAGS): Likewise.
44743 (aout_mod_LDFLAGS): Likewise.
44745 * conf/i386-ieee1275.rmk: Likewise.
44747 2008-02-28 Robert Millan <rmh@aybabtu.com>
44749 * util/update-grub.in: Reorganise terminal validity check. Accept
44750 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
44751 Based on suggestion by Franklin PIAT.
44753 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
44755 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
44757 * util/getroot.c (grub_util_check_block_device): New function that
44758 returns the given argument if it is a block device and returns NULL else.
44759 * util/grub-probe.c (argument_is_device): New variable.
44760 (probe): Promote device_name from a variable to an argument. Receive
44761 device_name from grub_util_check_block_device() if path is NULL and from
44762 grub_guess_root_device() else. Do not free() device_name anymore.
44763 (options): Introduce new parameter '-d, --device'.
44764 (main): Add description of the new parameter to the help screen.
44765 Rename path variable to argument. Set argument_is_device if the '-d'
44766 option is given. Pass argument to probe() depending on
44767 argument_is_device.
44769 2008-02-24 Bean <bean123ch@gmail.com>
44771 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
44772 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
44773 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
44774 (GRUB_ISO9660_VOLDESC_PART): Likewise.
44775 (GRUB_ISO9660_VOLDESC_END): Likewise.
44776 (grub_iso9660_primary_voldesc): New member escape.
44777 (grub_iso9660_data): New member joliet.
44778 (grub_iso9660_convert_string): New function.
44779 (grub_iso9660_mount): Detect joliet extension.
44780 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
44781 (grub_iso9660_iso9660_label): Likewise.
44783 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
44784 (grub_setup_SOURCES): Add fs/udf.c.
44785 (grub_fstest_SOURCES): Likewise.
44786 (udf_mod_SOURCES): New variable.
44787 (udf_mod_CFLAGS): Likewise.
44788 (udf_mod_LDFLAGS): Likewise.
44790 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
44791 (grub_emu_SOURCES): Likewise.
44793 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44795 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44797 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44799 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44801 * fs/udf.c: New file.
44803 2008-02-24 Robert Millan <rmh@aybabtu.com>
44805 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
44806 (normal/lexer.c_DEPENDENCIES): New variables.
44807 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44808 (normal/lexer.c_DEPENDENCIES): Likewise.
44809 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
44810 (normal/lexer.c_DEPENDENCIES): Likewise.
44811 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
44812 (normal/lexer.c_DEPENDENCIES): Likewise.
44813 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44814 (normal/lexer.c_DEPENDENCIES): Likewise.
44815 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44816 (normal/lexer.c_DEPENDENCIES): Likewise.
44818 2008-02-23 Robert Millan <rmh@aybabtu.com>
44820 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
44821 since they were intended to be in hex. This didn't break previously
44822 because of a bug in gpt_partition_map_iterate() (see below).
44824 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
44825 when checking the validity of GPT header.
44826 Remove `partno', since it always provides the same information as `i'.
44828 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
44830 * include/grub/efi/time.h: Fix a wrong comment.
44832 2008-02-19 Pavel Roskin <proski@gnu.org>
44834 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
44837 2008-02-19 Bean <bean123ch@gmail.com>
44839 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
44840 (aout_mod_SOURCES): New variable.
44841 (aout_mod_CFLAGS): Likewise.
44842 (aout_mod_LDFLAGS): Likewise.
44843 (_bsd_mod_SOURCES): New variable.
44844 (_bsd_mod_CFLAGS): Likewise.
44845 (_bsd_mod_LDFLAGS): Likewise.
44846 (bsd_mod_SOURCES): New variable.
44847 (bsd_mod_CFLAGS): Likewise.
44848 (bsd_mod_LDFLAGS): Likewise.
44850 * include/grub/aout.h: New file.
44852 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
44854 * include/grub/i386/bsd.h: New file.
44856 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
44859 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
44860 function is called, so that it's possible to change it inside the hook.
44861 (grub_elf64_load): Likewise.
44862 (grub_elf_file): Don't close the file if elf header is not found.
44863 (grub_elf_close): Close the file if grub_elf_file fails (The new
44864 grub_elf_file won't close it).
44865 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
44866 (grub_elf64_size): Likewise.
44868 * kern/i386/loader.S (grub_unix_real_boot): New function.
44870 * loader/aout.c: New file.
44872 * loader/i386/bsd.c: New file.
44874 * loader/i386/bsd_normal.c: New file.
44876 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
44878 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
44879 can test other formats.
44881 2008-02-19 Robert Millan <rmh@aybabtu.com>
44883 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
44884 (grub_gpt_partition_type_empty): Redefine with macro from
44885 `<grub/gpt_partition.h>'.
44886 (gpt_partition_map_iterate): Adjust partition type comparison.
44888 Export `entry' as partmap-specific `part.data' struct.
44889 (grub_gpt_header, grub_gpt_partentry): Move from here ...
44891 * include/grub/gpt_partition.h (grub_gpt_header)
44892 (grub_gpt_partentry): ... to here (new file).
44894 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
44896 (grub_gpt_partition_type_bios_boot): New const variable, defined
44897 with macro from `<grub/gpt_partition.h>'.
44899 (setup): Replace `first_start' with `embed_region', which keeps
44900 track of the embed region (and is partmap-agnostic).
44902 Replace find_first_partition_start() with find_usable_region(),
44903 which finds a usable region for embedding using partmap-specific
44904 knowledge (supports PC/MSDOS and GPT).
44906 Fix all assumptions that the embed region start at sector 1, using
44907 `embed_region.start' from now on. Similarly, use `embed_region.end'
44908 rather than `first_start' to calculate available size.
44910 In grub_util_info() message, replace "into after the MBR" with an
44911 indication of the specific sector our embed region starts at.
44913 2008-02-19 Robert Millan <rmh@aybabtu.com>
44915 * DISTLIST: Replace `commands/ieee1275/halt.c' and
44916 `commands/ieee1275/reboot.c' with `commands/halt.c' and
44917 `commands/reboot.c'.
44918 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
44919 (halt_mod_SOURCES): Likewise.
44920 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
44921 (halt_mod_SOURCES): Likewise.
44923 2008-02-17 Christian Franke <franke@computer.org>
44925 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
44927 2008-02-17 Robert Millan <rmh@aybabtu.com>
44929 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
44930 set `first_start' to 0 for non-PC/MSDOS partition maps.
44932 2008-02-16 Robert Millan <rmh@aybabtu.com>
44934 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
44935 do not assume partition map is PC/MSDOS before performing checks that
44936 are specific to that layout.
44938 2008-02-13 Robert Millan <rmh@aybabtu.com>
44940 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
44941 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
44942 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
44944 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
44946 * configure.ac: Only a cosmetic change on the handling of
44947 -fno-stack-protector.
44949 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
44951 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
44952 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
44954 (grub_install_SOURCES): Add halt.mod and reboot.mod.
44955 (halt_mod_SOURCES): New variable.
44956 (halt_mod_CFLAGS): Likewise.
44957 (halt_mod_LDFLAGS): Likewise.
44958 (reboot_mod_SOURCES): Likewise.
44959 (reboot_mod_CFLAGS): Likewise.
44960 (reboot_mod_LDFLAGS): Likewise.
44962 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
44963 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
44965 (halt_mod_SOURCES): Likewise.
44966 (reboot_mod_SOURCES): Likewise.
44968 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
44969 commands/i386/pc/reboot.c by commands/reboot.c.
44970 (reboot_mod_SOURCES): Likewise.
44972 * commands/i386/pc/reboot.c: merge this file ...
44974 * commands/ieee1275/reboot.c: ... and this file ...
44976 * commands/reboot.c: ... to this file.
44977 Add some precompiler directive to include the correct header for
44980 * commands/ieee1275/halt.c: move this file ...
44982 * commands/halt.c: ... to here.
44983 Add some precompiler directive to include the correct header for
44986 * include/grub/efi/efi.h (grub_reboot): New function declaration.
44987 (grub_halt): Likewise.
44989 * kern/efi/efi.c (grub_reboot): New function.
44990 (grub_halt): Likewise.
44992 2008-02-12 Robert Millan <rmh@aybabtu.com>
44994 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
44995 /dev (like it is done for /dev/mapper). This doesn't provide support
44996 for EVMS, but at least it is now easy to identify the problem when it
44999 2008-02-11 Robert Millan <rmh@aybabtu.com>
45001 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45002 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45003 comparing it with -1, not 0.
45005 2008-02-10 Robert Millan <rmh@aybabtu.com>
45007 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45009 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45010 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45012 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45013 `disk/lvm.c' to the end of the list.
45014 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45015 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45017 2008-02-10 Robert Millan <rmh@aybabtu.com>
45019 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45020 grub_print_error() instead. This will let user know why we're entering
45022 Based on suggestions from Sam Morris.
45024 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45026 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45027 on remaining N args, instead of "--" arg N times.
45029 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45031 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45032 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45033 pattern for unknown glyphs.
45035 2008-02-09 Robert Millan <rmh@aybabtu.com>
45037 * configure.ac: Probe for `help2man'.
45038 * Makefile.in (builddir): New variable.
45039 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45040 or otherwise add a few flags/options to it.
45041 (install-local): For every executable utility or script that is
45042 installed, invoke $(HELP2MAN) to install a manpage based on --help
45045 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45046 that it doesn't prevent --help from working in build tree.
45048 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45049 with `bug-grub@gnu.org'.
45050 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45051 * util/update-grub.in (usage): New function.
45052 Implement proper argument check, with support for --help and --version
45053 (as well as existing -y).
45055 2008-02-09 Christian Franke <franke@computer.org>
45057 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45058 avoid overwriting previous output.
45059 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45061 2008-02-09 Robert Millan <rmh@aybabtu.com>
45063 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45066 2008-02-09 Robert Millan <rmh@aybabtu.com>
45068 * commands/sleep.c: New file.
45069 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45070 (sleep_mod_SOURCES): New variable.
45071 (sleep_mod_CFLAGS): Likewise.
45072 (sleep_mod_LDFLAGS): Likewise.
45074 2008-02-09 Robert Millan <rmh@aybabtu.com>
45076 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45077 situations in which we can deduce the RAID size and the superblock
45080 2008-02-09 Robert Millan <rmh@aybabtu.com>
45082 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45083 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45084 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45086 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45087 and return a grub_diskmemberlist_t composed of physical array members.
45088 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45090 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45092 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45093 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45094 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45096 * util/grub-probe.c (probe): Move partmap probing code from here ...
45097 (probe_partmap): ... to here.
45098 (probe): Use probe_partmap() once for the disk we're probing, and
45099 additionally, when such disk contains a memberlist() struct member,
45100 once for each disk that is contained in the structure returned by
45103 2008-02-09 Robert Millan <rmh@aybabtu.com>
45105 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45106 environment variable to 'all' in order to obtain debug output from
45108 * util/i386/pc/grub-setup.c (main): Likewise.
45110 2008-02-08 Robert Millan <rmh@aybabtu.com>
45112 * disk/raid.c (grub_raid_scan_device): Check for
45113 `array->device[sb.this_disk.number]' rather than for
45114 `array->device[sb.this_disk.number]->name', since the latter is not
45115 guaranteed to be accessible.
45117 2008-02-08 Robert Millan <rmh@aybabtu.com>
45119 * disk/raid.c: Update copyright.
45120 * fs/cpio.c: Likewise.
45121 * include/grub/raid.h: Likewise.
45122 * loader/i386/pc/multiboot.c: Likewise.
45123 * util/hostfs.c: Likewise.
45125 2008-02-08 Robert Millan <rmh@aybabtu.com>
45127 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45128 to a grub_disk_t array.
45129 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45131 (grub_raid_scan_device): Replace `device[x].name' accesses with
45132 `device[x]->name'. Simplify initialization of `array->device[x]'.
45134 2008-02-08 Robert Millan <rmh@aybabtu.com>
45136 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45137 grub_dprintf() calls.
45138 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45141 2008-02-07 Christian Franke <franke@computer.org>
45143 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45144 instead of fseek and ftell to support large files.
45145 (grub_hostfs_read): Likewise.
45147 2008-02-07 Robert Millan <rmh@aybabtu.com>
45149 Patch from Jeroen Dekkers.
45150 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45151 failure, since successfully reading all array members might not be
45154 2008-02-06 Robert Millan <rmh@aybabtu.com>
45156 * util/grub-probe.c (probe): Simplify partmap probing (with the
45157 assumption that the first word up to the underscore equals to
45160 2008-02-06 Christian Franke <franke@computer.org>
45162 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45163 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45164 last block of a cpio or tar stream.
45165 Check for "TRAILER!!!" instead of any empty data
45166 block to detect last block of a cpio stream.
45167 (grub_cpio_dir): Fix constness of variable np.
45168 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45169 cpio or tar trailer is detected. This fixes a crash
45170 on open of a non existing file.
45172 2008-02-05 Bean <bean123ch@gmail.com>
45174 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45176 (grub_multiboot_load_elf64): Likewise.
45177 (grub_multiboot): Initialize mbi structure.
45179 * util/grub-fstest.c: Don't include unused header file script.h.
45181 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45183 (grub_fstest_SOURCES): Likewise.
45185 2008-02-05 Robert Millan <rmh@aybabtu.com>
45187 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45188 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45189 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45190 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45192 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45193 (translation_table): Replace hardcoded values with macros
45194 provided by `<grub/term.h>'.
45196 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45197 (keyboard_map): Correct/add a few values, with macros provided
45198 by `<grub/term.h>'.
45199 (keyboard_map_shift): Zero values that don't differ from their
45200 `keyboard_map' equivalents.
45201 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45202 Discard the second scan code that is always sent by Caps lock.
45203 Only use `keyboard_map_shift' when it provides a non-zero value,
45204 otherwise fallback to `keyboard_map'.
45206 2008-02-04 Bean <bean123ch@gmail.com>
45208 * Makefile.in (enable_grub_fstest): New variable.
45210 * conf/common.rmk (grub_fstest_init.lst): New rule.
45211 (grub_fstest_init.h): Likewise.
45212 (grub_fstest_init.c): Likewise.
45213 (util/grub-fstest.c_DEPENDENCIES): New variable.
45214 (grub_fstest_SOURCES): Likewise.
45216 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45218 * util/grub-fstest.c: New file.
45220 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45222 Make grub-setup handle a separate root device.
45224 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45225 so that the root device can be compared with the destination
45227 When embedding the core image, if the root and destination devices
45228 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45230 When not embedding, set ROOT_DRIVE to 0xFF.
45232 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45234 Add support for having a grub directory in a different drive. This
45235 is still only the data handling part.
45237 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45238 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45239 (grub_root_drive): New variable.
45241 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45242 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45243 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45246 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45248 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45250 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45252 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45253 is bogus, because PXE booting does not specify any drive
45256 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45257 am not sure if this is really correct.
45259 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45260 is always identical to the boot drive when booting from a CD.
45262 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45264 (root_drive): New variable.
45265 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45266 (setup_sectors): Push %dx right after popping it, because %dh will
45268 (copy_buffer): Restore %dx.
45270 2008-02-03 Robert Millan <rmh@aybabtu.com>
45272 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45273 use `cdboot.img' for cdrom images.
45275 2008-02-03 Robert Millan <rmh@aybabtu.com>
45277 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45278 only setup gfxterm when `font' command has succeeded.
45280 2008-02-03 Robert Millan <rmh@aybabtu.com>
45282 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45283 (grub_rescue_cmd_multiboot_loader)
45284 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45286 2008-02-03 Pavel Roskin <proski@gnu.org>
45288 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45289 %edx and %esi from stack only after grub_gate_a20() is called.
45290 grub_gate_a20() clobbers %edx.
45292 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45294 * configure.ac (AC_INIT): Bumped to 1.96.
45296 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45297 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45298 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45299 video/readers/png.c.
45301 2008-02-03 Bean <bean123ch@gmail.com>
45303 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45304 (cdboot_img_SOURCES): New variable.
45305 (cdboot_img_ASFLAGS): New variable.
45306 (cdboot_img_LDFLAGS): New variable.
45308 * boot/i386/pc/cdboot.S: New file.
45310 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45311 (cd_count): Likewise.
45312 (grub_biosdisk_get_drive): Add support for cd device.
45313 (grub_biosdisk_call_hook): Likewise.
45314 (grub_biosdisk_iterate): Likewise.
45315 (grub_biosdisk_open): Likewise.
45316 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45317 (grub_biosdisk_rw): Support reading from cd device.
45318 (GRUB_MOD_INIT): Iterate cd devices.
45320 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45321 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45322 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45324 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45326 2008-02-02 Robert Millan <rmh@aybabtu.com>
45328 * commands/read.c: New file.
45329 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45330 (read_mod_SOURCES): New variable.
45331 (read_mod_CFLAGS): Likewise.
45332 (read_mod_LDFLAGS): Likewise.
45334 2008-02-02 Robert Millan <rmh@aybabtu.com>
45336 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45337 determining whether menu has to be displayed.
45339 2008-02-02 Marco Gerards <marco@gnu.org>
45341 * bus/pci.c: New file.
45343 * include/grub/pci.h: Likewise.
45345 * include/grub/i386/pc/pci.h: Likewise.
45347 * commands/lspci.c: Likewise.
45349 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45351 (pci_mod_SOURCES): New variable.
45352 (pci_mod_CFLAGS): Likewise.
45353 (pci_mod_LDFLAGS): Likewise.
45354 (lspci_mod_SOURCES): Likewise.
45355 (lspci_mod_CFLAGS): Likewise.
45356 (lspci_mod_LDFLAGS): Likewise.
45358 2008-02-02 Bean <bean123ch@gmail.com>
45360 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45361 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45363 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45364 (grub_xfs_btree_node): New structure.
45365 (grub_xfs_btree_root): New structure.
45366 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45367 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45368 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45369 (GRUB_XFS_EXTENT_SIZE): Likewise.
45370 (grub_xfs_read_block): Support btree format type.
45371 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45372 Use directory block as basic unit.
45374 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45376 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45377 __attribute__ ((__regparm__ (1))).
45379 2008-02-01 Robert Millan <rmh@aybabtu.com>
45381 Correct a mistake in previous commit.
45383 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45385 (normal/command.c_DEPENDENCIES): New variable.
45387 2008-02-01 Robert Millan <rmh@aybabtu.com>
45389 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45391 (normal/command.c_DEPENDENCIES): New variable.
45392 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45393 * conf/i386-ieee1275.rmk: Likewise.
45394 * conf/i386-linuxbios.rmk: Likewise.
45395 * conf/i386-pc.rmk: Likewise.
45396 * conf/sparc64-ieee1275.rmk: Likewise.
45397 * conf/powerpc-ieee1275.rmk: Likewise.
45398 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45400 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45402 2008-02-01 Robert Millan <rmh@aybabtu.com>
45404 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45405 call at beginning of function.
45407 2008-01-31 Pavel Roskin <proski@gnu.org>
45409 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
45410 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45411 (grub_mkrescue_SOURCES): Likewise.
45412 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45414 2008-01-30 Robert Millan <rmh@aybabtu.com>
45416 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45417 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45418 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45419 (grub_probe_SOURCES): ... to here.
45421 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45422 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45423 * conf/i386-ieee1275.rmk: Likewise.
45424 * conf/i386-linuxbios.rmk: Likewise.
45425 * conf/powerpc-ieee1275.rmk: Likewise.
45427 2008-01-30 Tristan Gingold <gingold@free.fr>
45429 * kern/rescue.c: Silently accept empty lines.
45431 2008-01-29 Bean <bean123ch@gmail.com>
45433 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45434 (real_code_2): Code cleanup and change comment style.
45435 (move_memory): Avoid using 32-bit address mode.
45437 2008-01-29 Bean <bean123ch@gmail.com>
45439 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45440 (png_mod_SOURCES): New variable.
45441 (png_mod_CFLAGS): Likewise.
45442 (png_mod_LDFLAGS): Likewise.
45444 * video/readers/png.c: New file.
45446 2008-01-28 Robert Millan <rmh@aybabtu.com>
45448 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
45449 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
45450 `ifndef GRUB_MOD_GAP' hack.
45451 * util/elf/grub-mkimage.c (add_segments): Likewise.
45453 2008-01-27 Robert Millan <rmh@aybabtu.com>
45455 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
45456 `GRUB_MOD_GAP' for platforms in which it's not defined.
45457 * util/elf/grub-mkimage.c (add_segments): Likewise.
45459 2008-01-27 Robert Millan <rmh@aybabtu.com>
45461 Get grub-emu to build again (including parallel builds).
45463 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
45465 (util/grub-emu.c_DEPENDENCIES): ... this, ...
45466 (normal/execute.c_DEPENDENCIES): ... this, ...
45467 (grub-emu_DEPENDENCIES): ... and this.
45469 * conf/i386-efi.rmk: Likewise.
45470 * conf/i386-linuxbios.rmk: Likewise.
45471 * conf/i386-ieee1275.rmk: Likewise.
45472 * conf/powerpc-ieee1275.rmk: Likewise.
45473 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
45475 2008-01-27 Robert Millan <rmh@aybabtu.com>
45477 * NEWS: Add a few items.
45479 2008-01-27 Robert Millan <rmh@aybabtu.com>
45481 Fix parallel builds with grub-emu. Based on earlier commit for
45482 grub-probe and grub-setup.
45484 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45485 (util/grub-emu.c_DEPENDENCIES): ... this.
45486 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45487 (util/grub-emu.c_DEPENDENCIES): ... this.
45488 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45489 (util/grub-emu.c_DEPENDENCIES): ... this.
45490 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45491 (util/grub-emu.c_DEPENDENCIES): ... this.
45492 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45493 (util/grub-emu.c_DEPENDENCIES): ... this.
45495 2008-01-27 Pavel Roskin <proski@gnu.org>
45497 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
45498 to create a gap between _end and the modules added to the image
45499 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
45500 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
45501 * util/elf/grub-mkimage.c (add_segments): Likewise.
45503 2008-01-26 Pavel Roskin <proski@gnu.org>
45505 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
45506 just return an error.
45508 2008-01-26 Bean <bean123ch@gmail.com>
45510 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
45511 (grub_reiserfs_get_item): Save offset of the next item.
45512 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
45514 2008-01-25 Robert Millan <rmh@aybabtu.com>
45516 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
45517 make all filesystem sources appear together (possibly fixing omissions
45519 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45520 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45521 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45522 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45524 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
45526 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
45527 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
45528 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
45529 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
45531 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
45532 (probe): Add a sanity check to make sure of our ability to read
45533 requested files when probing for filesystem type.
45535 * genmk.rb: Update copyright year (2007).
45537 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
45538 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
45539 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
45540 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
45541 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
45542 : Remove function prototypes.
45544 2008-01-25 Robert Millan <rmh@aybabtu.com>
45546 Revert my previous commits (based on wrong assumption of how grub_errno
45549 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
45550 * kern/file.c (grub_file_open): Likewise.
45552 2008-01-24 Pavel Roskin <proski@gnu.org>
45554 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
45555 that hang if GRUB tries to setup colors.
45556 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
45557 colors for firmwares that don't support it.
45558 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
45559 Recognize Open Hack'Ware, set flags to work around its
45562 2008-01-24 Robert Millan <rmh@aybabtu.com>
45564 * kern/file.c (grub_file_open): Do not account previous failures of
45565 unrelated functions when grub_errno is checked for.
45566 Reported by Oleg Strikov.
45568 2008-01-24 Bean <bean123ch@gmail.com>
45570 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
45571 (grub_ufs_sblock): New member volume name.
45572 (grub_ufs_find_file): Fix string copy bug.
45573 (grub_ufs_label): Implement this function properly.
45575 * fs/hfs.c (grub_hfs_cnid_type): New enum.
45576 (grub_hfs_iterate_records): Use the correct file number for extents
45577 and catalog file. Fix problem in next index calculation.
45578 (grub_hfs_find_node): Replace recursive function call with loop.
45579 (grub_hfs_iterate_dir): Replace recursive function call with loop.
45581 2008-01-23 Robert Millan <rmh@aybabtu.com>
45583 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
45584 `<grub/symbol.h>' and `<grub/multiboot.h>'.
45585 (grub_multiboot2_real_boot): New function prototype.
45587 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
45588 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
45590 * kern/i386/ieee1275/init.c (grub_os_area_addr)
45591 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
45593 2008-01-23 Robert Millan <rmh@aybabtu.com>
45595 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
45596 #ifdef'ed out grub_printf().
45598 2008-01-23 Robert Millan <rmh@aybabtu.com>
45600 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
45601 grub_dprintf calls, since they make "debug=all" mode unusable.
45602 (grub_console_checkkey): Likewise.
45604 2008-01-23 Robert Millan <rmh@aybabtu.com>
45606 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
45607 `term/i386/pc/at_keyboard.c'.
45608 (pkglib_MODULES): Add `serial.mod'.
45609 (serial_mod_SOURCES): New variable.
45610 (serial_mod_CFLAGS): Likewise.
45611 (serial_mod_LDFLAGS): Likewise.
45613 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
45614 `<grub/powerpc/ieee1275/console.h>'.
45615 (grub_keyboard_controller_init): New function prototype.
45616 (grub_console_checkkey): Likewise.
45617 (grub_console_getkey): Likewise.
45619 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
45622 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
45623 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
45625 2008-01-23 Robert Millan <rmh@aybabtu.com>
45627 * kern/i386/pc/init.c (make_install_device): When memdisk image is
45628 present, "(memdisk)/boot/grub" becomes the default prefix.
45630 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
45631 a memdisk tarball with all the modules. Add --overlay=DIR option that
45632 allows users to overlay additional files into the image.
45634 2008-01-23 Robert Millan <rmh@aybabtu.com>
45636 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
45637 and `machine/memory.h'.
45638 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
45639 (_multiboot_mod_SOURCES): New variable.
45640 (_multiboot_mod_CFLAGS): Likewise.
45641 (_multiboot_mod_LDFLAGS): Likewise.
45642 (multiboot_mod_SOURCES): Likewise.
45643 (multiboot_mod_CFLAGS): Likewise.
45644 (multiboot_mod_LDFLAGS): Likewise.
45646 * include/grub/i386/ieee1275/loader.h: New file.
45648 * include/grub/i386/ieee1275/machine.h: Likewise.
45650 * include/grub/i386/ieee1275/memory.h: Likewise.
45652 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
45653 variable declaration.
45654 (grub_os_area_size): Likewise.
45656 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
45657 (grub_lower_mem, grub_upper_mem): New variables.
45658 (grub_stop_floppy): New function (just to make
45659 grub_multiboot2_real_boot() happy).
45661 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
45662 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
45663 (grub_stop): New function.
45664 Include `"../realmode.S"' and `"../loader.S"'.
45666 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
45667 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
45669 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
45670 rely on grub_multiboot2_real_boot() for final boot.
45672 2008-01-22 Robert Millan <rmh@aybabtu.com>
45674 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
45675 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
45676 device that doesn't look like an SD card.
45677 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
45678 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
45679 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
45680 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
45683 2008-01-22 Robert Millan <rmh@aybabtu.com>
45685 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
45686 avoid claiming over our own code.
45688 2008-01-22 Bean <bean123ch@gmail.com>
45690 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
45691 (jpeg_mod_SOURCES): New variable.
45692 (jpeg_mod_CFLAGS): Likewise.
45693 (jpeg_mod_LDFLAGS): Likewise.
45695 * video/readers/jpeg.c : New file.
45697 2008-01-22 Bean <bean123ch@gmail.com>
45699 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
45700 there are no more items.
45702 2008-01-21 Robert Millan <rmh@aybabtu.com>
45704 * kern/mm.c (grub_mm_init_region): Improve debug message.
45706 2008-01-21 Robert Millan <rmh@aybabtu.com>
45708 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
45709 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
45711 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
45713 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
45714 Indicates start of upper memory.
45715 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
45716 (generate_image): Abort when image size is big enough to corrupt
45719 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
45720 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
45721 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
45722 instead of hardcoding 0xA0000.
45723 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
45724 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
45725 instead of hardcoding 0xA0000.
45727 2008-01-21 Robert Millan <rmh@aybabtu.com>
45729 * disk/memdisk.c (memdisk_size): New variable.
45730 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
45732 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
45733 image to dynamic memory.
45734 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
45735 `memdisk_size'. Free memdisk block.
45737 2008-01-21 Robert Millan <rmh@aybabtu.com>
45739 Fix detection of very small filesystems (like tar).
45741 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
45742 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
45743 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
45744 a problem with this disk).
45746 2008-01-21 Robert Millan <rmh@aybabtu.com>
45748 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
45749 on grub_biosdisk_rw_standard() error.
45751 2008-01-21 Robert Millan <rmh@aybabtu.com>
45753 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
45755 * kern/elf.c: Likewise.
45756 * kern/ieee1275/ieee1275.c: Likewise.
45757 * kern/powerpc/ieee1275/openfw.c: Likewise.
45758 * term/ieee1275/ofconsole.c: Likewise.
45760 2008-01-21 Robert Millan <rmh@aybabtu.com>
45762 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
45764 * include/grub/kernel.h (grub_arch_memdisk_addr)
45765 (grub_arch_memdisk_size): Moved from here ...
45767 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
45768 (grub_arch_memdisk_size): ... to here.
45770 2008-01-21 Robert Millan <rmh@aybabtu.com>
45772 Mostly based on bugfix from Bean.
45774 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
45775 attribute with hook() parameter.
45776 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
45778 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
45779 attribute with hook() parameter.
45780 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
45783 2008-01-21 Robert Millan <rmh@aybabtu.com>
45785 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
45786 (pkglib_MODULES): Add `memdisk.mod'.
45787 (memdisk_mod_SOURCES): New variable.
45788 (memdisk_mod_CFLAGS): Likewise.
45789 (memdisk_mod_LDFLAGS): Likewise.
45791 * disk/memdisk.c: New file.
45793 * include/grub/disk.h (grub_disk_dev_id): Add
45794 `GRUB_DISK_DEVICE_MEMDISK_ID'.
45796 * include/grub/i386/pc/kernel.h
45797 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
45798 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
45799 (grub_kernel_image_size): New variable declaration.
45800 (grub_total_module_size): Likewise.
45801 (grub_memdisk_image_size): Likewise.
45803 * include/grub/i386/pc/memory.h
45804 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
45806 * include/grub/kernel.h: Include `<grub/symbol.h>'.
45807 (grub_arch_memdisk_addr): New variable declaration.
45808 (grub_arch_memdisk_size): Likewise.
45810 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
45811 (grub_arch_memdisk_size): Likewise.
45813 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
45814 (codestart): Replace hardcoded `0x100000' with
45815 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
45817 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
45818 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
45819 not NULL, append the contents of the file it refers to, at the end of
45820 the compressed kernel image. Initialize `grub_memdisk_image_size'
45821 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
45822 (options): Add "memdisk"|'m' option.
45823 (main): Parse --memdisk|-m option, and pass user-provided path as
45824 parameter to generate_image().
45826 2008-01-20 Robert Millan <rmh@aybabtu.com>
45828 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
45829 grub_dprintf() calls from here ...
45830 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
45832 2008-01-20 Robert Millan <rmh@aybabtu.com>
45834 Fix detection of "real mode" when /options/real-mode? doesn't exist.
45836 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
45838 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
45839 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
45840 `GRUB_IEEE1275_FLAG_REAL_MODE'.
45841 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
45843 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
45844 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
45846 2008-01-19 Robert Millan <rmh@aybabtu.com>
45848 Get rid of confusing function (superseded by
45849 `grub_ieee1275_get_integer_property')
45850 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
45852 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
45854 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
45855 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
45856 in native endianness from grub_ieee1275_get_integer_property().
45858 2008-01-19 Robert Millan <rmh@aybabtu.com>
45860 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
45861 command after "shut-down", since implementations differ on which
45862 the command for halt is.
45864 2008-01-19 Robert Millan <rmh@aybabtu.com>
45866 * include/grub/i386/linuxbios/console.h: Add header protection.
45867 (grub_keyboard_controller_init): New function prototype.
45868 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
45869 (KEYBOARD_COMMAND_READ): Likewise.
45870 (KEYBOARD_COMMAND_WRITE): Likewise.
45871 (KEYBOARD_SCANCODE_SET1): Likewise.
45872 (grub_keyboard_controller_write): New function.
45873 (grub_keyboard_controller_read): Likewise.
45874 (grub_keyboard_controller_init): Likewise.
45876 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
45877 (grub_console_init): On coreboot/LinuxBIOS, call
45878 grub_keyboard_controller_init().
45880 2008-01-19 Robert Millan <rmh@aybabtu.com>
45882 PowerPC changes provided by Pavel Roskin.
45884 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
45885 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
45886 don't rely on cmain() doing it.
45887 * kern/i386/ieee1275/startup.S (_start): Store %eax in
45888 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
45890 2008-01-16 Robert Millan <rmh@aybabtu.com>
45892 * include/grub/i386/linuxbios/memory.h
45893 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
45894 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
45895 receive `table_header' as argument. Instead, probe for it in the
45896 known memory ranges where it can be present.
45897 (grub_available_iterate): Do not pass a fixed `table_header' address
45898 to grub_linuxbios_table_iterate().
45900 2008-01-15 Robert Millan <rmh@aybabtu.com>
45902 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
45903 * conf/i386-ieee1275.rmk: New file.
45904 * include/grub/i386/ieee1275/console.h: Likewise.
45905 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
45906 * include/grub/i386/ieee1275/kernel.h: Likewise.
45907 * include/grub/i386/ieee1275/time.h: Likewise.
45908 * kern/i386/ieee1275/init.c: Likewise.
45909 * kern/i386/ieee1275/startup.S: Likewise.
45911 2008-01-15 Robert Millan <rmh@aybabtu.com>
45913 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
45914 when pointers are 32-bit (but still do set it to one when they are
45917 2008-01-15 Robert Millan <rmh@aybabtu.com>
45919 * include/grub/ieee1275/ieee1275.h
45920 (grub_ieee1275_get_integer_property): New function prototype.
45922 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
45923 (grub_ieee1275_get_integer_property): New function. Wraps around
45924 grub_ieee1275_get_property() to handle endianness.
45926 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
45927 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
45929 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
45930 (grub_map): Likewise.
45931 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
45933 2008-01-15 Bean <bean123ch@gmail.com>
45935 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
45936 (grub_script_execute_cmdline): Reset grub_errno.
45938 * normal/main.c (read_config_file): Reset grub_errno.
45940 * normal/parse.y (script_init): New.
45941 (script): Move function and menuentry here.
45943 (command): Add delimiter at the end of command.
45944 (commands): Adjust to match the new command.
45945 (commandblock): Remove grub_script_lexer_record_start.
45946 (menuentry): Add grub_script_lexer_record_start, use the new commands.
45947 (if): Use the new commands.
45949 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
45951 2008-01-15 Robert Millan <rmh@aybabtu.com>
45953 * normal/menu.c (run_menu): Move timeout message from here ...
45954 (print_timeout): ... to here.
45955 (run_menu): Use print_timeout() once during initial draw to print
45956 the whole message, and again in every clock tick to update only
45957 the number of seconds.
45959 2008-01-15 Robert Millan <rmh@aybabtu.com>
45961 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
45962 actual size of `available' from grub_ieee1275_get_property(), and
45963 restrict parsing to that bound.
45965 2008-01-15 Christian Franke <franke@computer.org>
45967 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
45968 (argp_program_version): Remove variable.
45969 (argp_program_bug_address): Likewise.
45970 (options): Convert from struct argp_option to struct option.
45971 (struct arguments): Remove.
45972 (parse_opt): Remove.
45973 (usage): New function.
45974 (main): Replace struct args members by simple variables.
45975 Replace argp_parse() by getopt_long().
45976 Add switch to evaluate options.
45977 Add missing "(...)" around root_dev in prefix string.
45979 2008-01-14 Robert Millan <rmh@aybabtu.com>
45981 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
45982 for grub_ieee1275_exit(), in order to improve portability.
45984 2008-01-14 Robert Millan <rmh@aybabtu.com>
45986 * util/grub.d/10_linux.in (prefix): Define.
45987 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
45989 2008-01-13 Pavel Roskin <proski@gnu.org>
45991 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
45992 grub_errno if no errors have been detected.
45994 2008-01-12 Robert Millan <rmh@aybabtu.com>
45996 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
45997 (grub_util_get_dev_abstraction): New function prototype.
45999 * util/getroot.c: Include `<grub/util/getroot.h>'
46000 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46001 (grub_util_get_dev_abstraction): ... here (new function).
46003 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46004 `PRINT_ABSTRACTION'.
46005 (probe): Probe for abstraction type when requested.
46006 (main): Understand `--target=abstraction'.
46008 * util/i386/efi/grub-install.in: Add abstraction module to core
46009 image when it is found to be necessary.
46010 * util/i386/pc/grub-install.in: Likewise.
46011 * util/powerpc/ieee1275/grub-install.in: Likewise.
46013 * util/update-grub_lib.in (font_path): Return system path without
46014 converting to GRUB path.
46015 * util/update-grub.in: Convert system path returned by font_path()
46016 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46017 abstraction module is needed for loading fonts (if any). Export
46018 that as `GRUB_PRELOAD_MODULES'.
46019 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46022 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46024 Remove some unused code from reiserfs.
46026 * fs/reiserfs.c (struct grub_reiserfs_key)
46027 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46028 (struct grub_reiserfs_node_body): Removed.
46029 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46031 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46033 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46035 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46037 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46039 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46041 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46042 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46043 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46045 2008-01-10 Robert Millan <rmh@aybabtu.com>
46047 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46048 Determines if a file is garbage left by packaging systems, etc.
46049 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46050 for processing /etc/grub.d scripts.
46051 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46052 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46053 as a condition for processing Linux images.
46055 2008-01-10 Pavel Roskin <proski@gnu.org>
46057 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46058 to compile reiserfs.c on PowerPC.
46060 2008-01-10 Robert Millan <rmh@aybabtu.com>
46062 * kern/device.c (grub_device_iterate): Do not abort device iteration
46063 when one of the devices cannot be opened.
46064 * kern/disk.c (grub_disk_open): Do not account previous failures of
46065 unrelated functions when grub_errno is checked for.
46067 2008-01-08 Robert Millan <rmh@aybabtu.com>
46069 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46070 `! grub_linux_is_bzimage', change order of address comparison to make
46071 it more intuitive, and improve "too big zImage" error message.
46073 2008-01-08 Robert Millan <rmh@aybabtu.com>
46075 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46076 `$(update-grub_DATA)'.
46077 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46080 2008-01-07 Robert Millan <rmh@aybabtu.com>
46082 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46083 which instruction is modified by grub-setup during installation
46084 (since it wasn't obvious by only looking at this file).
46086 2008-01-07 Robert Millan <rmh@aybabtu.com>
46088 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46089 listing actual TODO items.
46091 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46093 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46095 (grub_reiserfs_get_key_offset): Likewise.
46096 (grub_reiserfs_set_key_offset): Likewise.
46097 (grub_reiserfs_set_key_type): Likewise.
46098 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46100 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46101 better to remove the bitfield version completely.
46103 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46105 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46106 allocated from the heap, due to the fshelp implementation.
46107 (grub_reiserfs_dir): Free NODE, due to the same reason.
46109 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46111 Mostly from Vincent Pelletier:
46113 * fs/reiserfs.c: New file.
46115 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46116 (reiserfs_mod_SOURCES): New variable.
46117 (reiserfs_mod_CFLAGS): Likewise.
46118 (reiserfs_mod_LDFLAGS): Likewise.
46120 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46121 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46122 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46125 2008-01-06 Robert Millan <rmh@aybabtu.com>
46127 * normal/color.c: Remove `<grub/env.h>'.
46129 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46131 * include/grub/normal.h: Include <grub/env.h>.
46133 2008-01-05 Robert Millan <rmh@aybabtu.com>
46135 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46136 usage example with `(hd0,1)'.
46137 Reported by Samuel Thibault.
46139 2008-01-05 Robert Millan <rmh@aybabtu.com>
46141 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46142 (grub_linux_boot_zimage): Rename to ...
46143 (grub_linux_boot): ... this.
46144 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46145 (grub_linux_boot_zimage): Conditionalize zImage copy.
46147 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46148 (grub_linux_boot_bzimage): Remove prototype.
46149 (grub_linux_boot_zimage): Rename to ...
46150 (grub_linux_boot): ... this.
46152 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46153 (grub_linux_boot): Remove function.
46155 2008-01-05 Robert Millan <rmh@aybabtu.com>
46157 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46158 (grub_env_write_color_highlight): Likewise.
46159 (grub_wait_after_message): Likewise.
46161 * normal/color.c: New file.
46163 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46164 (normal_mod_DEPENDENCIES): Likewise.
46166 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46167 (normal_mod_DEPENDENCIES): Likewise.
46169 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46170 (normal_mod_DEPENDENCIES): Likewise.
46172 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46173 (normal_mod_DEPENDENCIES): Likewise.
46175 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46176 for waiting after a message is printed.
46177 * normal/main.c (read_config_file): Likewise.
46178 (grub_normal_init): Register grub_env_write_color_normal() and
46179 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46180 `color_highlight' variables as global.
46182 * normal/menu.c (grub_wait_after_message): New function.
46183 (grub_color_menu_normal): New variable. Replaces ...
46184 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46185 (grub_color_menu_highlight): New variable. Replaces ...
46186 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46187 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46188 `GRUB_TERM_COLOR_STANDARD'.
46189 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46190 `normal_code' and `highlight_code' to `old_color_normal' and
46191 `old_color_highlight', respectively.
46192 (grub_menu_init_page): Update colors when drawing the menu, based on
46193 `menu_color_normal' and `menu_color_highlight' variables.
46194 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46195 a message is printed.
46197 2008-01-05 Robert Millan <rmh@aybabtu.com>
46199 * kern/env.c (grub_env_context_open): Propagate hooks for global
46200 variables to new context.
46202 * kern/main.c (grub_set_root_dev): Export `root' variable.
46204 2008-01-05 Robert Millan <rmh@aybabtu.com>
46206 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46207 discs unconditionally, since udev and others have options to provide
46210 2008-01-05 Robert Millan <rmh@aybabtu.com>
46212 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46214 2008-01-04 Christian Franke <franke@computer.org>
46216 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46219 2008-01-03 Pavel Roskin <proski@gnu.org>
46221 * kern/i386/linuxbios/init.c: Put "void" to all function
46222 declarations with no arguments.
46223 * kern/powerpc/ieee1275/init.c: Likewise.
46224 * term/i386/pc/at_keyboard.c: Likewise.
46225 * term/i386/pc/vga_text.c: Likewise.
46226 * util/grub-mkdevicemap.c: Likewise.
46228 2008-01-02 Robert Millan <rmh@aybabtu.com>
46230 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46231 message when loaded image is out of bounds.
46232 (grub_multiboot_load_elf64): Likewise.
46234 2008-01-02 Pavel Roskin <proski@gnu.org>
46236 * util/grub.d/10_linux.in: Try version without ".old" when
46237 looking for initrd. It's better to use initrd from the newer
46238 kernel of the same version than no initrd at all.
46240 2008-01-01 Robert Millan <rmh@aybabtu.com>
46242 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46244 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46246 * include/grub/video.h: Added grub_video_unmap_color and
46247 grub_video_get_active_render_target.
46248 (grub_video_adapter): Added unmap_color and get_active_render_target.
46250 * video/video.c: Added grub_video_unmap_color and
46251 grub_video_get_active_render_target.
46252 (grub_video_get_info): Changed method to accept NULL pointer as an
46253 argument to allow detection of active video adapter.
46255 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46256 grub_video_vbe_unmap_color_int.
46257 Added grub_video_vbe_unmap_color and
46258 grub_video_vbe_get_active_render_target.
46259 (grub_video_vbe_adapter): Added unmap_color and
46260 get_active_render_target.
46262 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46263 with grub_video_vbe_unmap_color_int.
46265 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46266 (DEFAULT_NORMAL_COLOR): Likewise.
46267 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46268 (DEFAULT_FG_COLOR): Removed.
46269 (DEFAULT_BG_COLOR): Likewise.
46270 (DEFAULT_CURSOR_COLOR): Changed value.
46271 (grub_virtual_screen): Added standard_color_setting,
46272 normal_color_setting, highlight_color_setting and term_color.
46273 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46274 (bitmap_width): Added.
46275 (bitmap_height): Likewise.
46276 (bitmap): Likewise.
46277 (set_term_color): Likewise.
46278 (grub_virtual_screen_setup): Changed to use new terminal coloring
46280 (grub_gfxterm_init): Added init for bitmap.
46281 (grub_gfxterm_fini): Added destroy for bitmap.
46282 (redraw_screen_rect): Updated to use background bitmap and new
46284 (scroll_up): Added optimization for case when there is no bitmap.
46285 (grub_gfxterm_cls): Fixed to use correct background color.
46286 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46288 (grub_virtual_screen_setcolor): Likewise.
46289 (grub_virtual_screen_getcolor): Added.
46290 (grub_gfxterm_background_image_cmd): Likewise.
46291 (grub_video_term): Added setcolor and getcolor.
46292 (MOD_INIT): Added registration of background_image command.
46293 (MOD_TERM): Added unregistration for background_image command.
46295 2007-12-30 Pavel Roskin <proski@gnu.org>
46297 * loader/multiboot_loader.c: Fix multiboot command
46298 unregistration. Fix all typos in the word "multiboot".
46300 2007-12-29 Pavel Roskin <proski@gnu.org>
46302 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46303 support for initrd names used in Fedora.
46305 2007-12-26 Bean <bean123ch@gmail.com>
46307 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46308 (cpio_mod_SOURCES): New variable.
46309 (cpio_mod_CFLAGS): Likewise.
46310 (cpio_mod_LDFLAGS): Likewise.
46312 * fs/cpio.c: New file.
46314 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46316 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46318 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46320 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46322 2007-12-25 Robert Millan <rmh@aybabtu.com>
46324 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46325 (grub_getcolor): New function.
46327 * kern/term.c (grub_getcolor): New function.
46328 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46329 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46330 (print_entry): Set normal and highlight colors to
46331 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46332 respectively, before printing and restore them to old
46334 (grub_menu_init_page): Likewise. Fill an additional colored space
46335 that would otherwise be left blank.
46337 * term/efi/console.c (grub_console_getcolor): New function.
46338 (struct grub_console_term.getcolor): New variable.
46339 * term/i386/pc/console.c (grub_console_getcolor): New function.
46340 (struct grub_console_term.getcolor): New variable.
46341 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46342 (struct grub_console_term.getcolor): New variable.
46344 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46345 (struct grub_console_term.setcolor): Remove variable.
46346 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46347 (struct grub_console_term.setcolor): Remove variable.
46348 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46349 (struct grub_console_term.setcolor): Remove variable.
46350 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46351 (struct grub_console_term.setcolor): Remove variable.
46353 2007-12-25 Robert Millan <rmh@aybabtu.com>
46355 * configure.ac: Search for possible unifont.hex locations, and
46356 define UNIFONT_HEX if found.
46358 * Makefile.in (UNIFONT_HEX): Define variable.
46359 (DATA): Rename to ...
46360 (PKGLIB): ... this. Update all users.
46361 (PKGDATA): New variable.
46362 (pkgdata_IMAGES): Rename to ...
46363 (pkglib_IMAGES): ... this. Update all users.
46364 (pkgdata_MODULES): Rename to ...
46365 (pkglib_MODULES): ... this. Update all users.
46366 (pkgdata_PROGRAMS): Rename to ...
46367 (pkglib_PROGRAMS): ... this. Update all users.
46368 (pkgdata_DATA): Rename to ...
46369 (pkglib_DATA): ... this. Update all users.
46370 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46371 (unicode.pff, ascii.pff): New rules.
46372 (all-local): Add `$(PKGDATA)' dependency.
46373 (install-local): Process `$(PKGDATA)'.
46375 * util/update-grub_lib.in (font_path): Search for *.pff files in
46376 a few more locations, including `${pkgdata}'.
46378 2007-12-23 Robert Millan <rmh@aybabtu.com>
46380 Patch from Bean <bean123ch@gmail.com>:
46381 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46384 2007-12-21 Bean <bean123ch@gmail.com>
46386 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46387 (ntfscomp_mod_SOURCES): New variable.
46388 (ntfscomp_mod_CFLAGS): Likewise.
46389 (ntfscomp_mod_LDFLAGS): Likewise.
46391 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46392 (grub_probe_SOURCES): Likewise.
46393 (grub_emu_SOURCES): Likewise.
46395 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46396 (grub_emu_SOURCES): Likewise.
46398 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46399 (grub_emu_SOURCES): Likewise.
46401 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46402 (grub_emu_SOURCES): Likewise.
46404 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46405 (read_run_list): Renamed to grub_ntfs_read_run_list.
46406 (decomp_nextvcn): Moved to ntfscomp.c.
46407 (decomp_getch): Likewise.
46408 (decomp_get16): Likewise.
46409 (decomp_block): Likewise.
46410 (read_block): Likewise.
46411 (read_data): Partially moved to ntfscomp.c.
46412 (fixup): Change unsigned to grub_uint16_t.
46413 (read_mft): Change unsigned long to grub_uint32_t.
46414 (read_attr): Likewise.
46415 (read_data): Likewise.
46416 (read_run_data): Likewise.
46417 (read_run_list): Likewise.
46418 (read_mft): Likewise.
46420 * fs/ntfscomp.c: New file.
46422 * include/grub/ntfs.h: New file.
46424 2007-12-16 Robert Millan <rmh@aybabtu.com>
46426 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46427 IDE disk check, since Linux is known to support 20 IDE disks.
46428 Reported by Colin Watson.
46430 2007-12-15 Bean <bean123ch@gmail.com>
46432 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46433 (lnxboot_img_SOURCES): New variable.
46434 (lnxboot_img_ASFLAGS): Likewise.
46435 (lnxboot_img_LDFLAGS): Likewise.
46437 * boot/i386/pc/lnxboot.S: New file.
46439 2007-11-24 Pavel Roskin <proski@gnu.org>
46441 * configure.ac: Test if '--build-id=none' is supported by the
46442 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46443 objcopy to generate incorrect binary files (binutils
46444 2.17.50.0.18-1 as shipped by Fedora 8).
46445 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
46446 linking, so that build ID doesn't break the test.
46448 2007-11-24 Pavel Roskin <proski@gnu.org>
46450 * include/grub/i386/time.h: use "void" in the argument list
46451 of grub_cpu_idle().
46452 * include/grub/powerpc/time.h: Likewise.
46453 * include/grub/sparc64/time.h: Likewise.
46455 2007-11-18 Christian Franke <franke@computer.org>
46457 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
46458 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
46459 This fixes the problem that function keys did not work in grub-emu.
46461 2007-11-18 Christian Franke <franke@computer.org>
46463 * disk/host.c (grub_host_open): Remove attribute unused from
46464 name parameter. Add check for "host". This fixes the problem
46465 that grub-emu does not find partitions.
46467 2007-11-18 Christian Franke <franke@computer.org>
46469 * util/hostfs.c (is_dir): New function.
46470 (grub_hostfs_dir): Handle missing dirent.d_type case.
46471 (grub_hostfs_read): Add missing fseek().
46472 (grub_hostfs_label): Clear label pointer. This fixes a crash
46473 of grub-emu on "ls (host)".
46475 2007-11-18 Christian Franke <franke@computer.org>
46477 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
46478 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
46479 to 64 bit boundary by default.
46481 2007-11-18 Bean <bean123ch@gmail.com>
46483 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
46484 (hexdump_mod_SOURCES): New variable.
46485 (hexdump_mod_CFLAGS): Likewise.
46486 (hexdump_mod_LDFLAGS): Likewise.
46488 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46490 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46492 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46494 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46496 * include/grub/hexdump.h: New file.
46498 * commands/hexdump.c: New file.
46500 2007-11-10 Robert Millan <rmh@aybabtu.com>
46502 * commands/i386/pc/play.c (beep_off): Switch order of arguments
46503 in grub_outb() calls.
46504 (beep_on): Likewise.
46506 2007-11-10 Christian Franke <franke@computer.org>
46508 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
46509 (grub_menu_run): Likewise.
46511 2007-11-10 Robert Millan <rmh@aybabtu.com>
46513 * include/grub/i386/efi/machine.h: New file.
46514 * include/grub/i386/linuxbios/machine.h: Likewise.
46515 * include/grub/i386/pc/machine.h: Likewise.
46516 * include/grub/powerpc/ieee1275/machine.h: Likewise.
46517 * include/grub/sparc64/ieee1275/machine.h: Likewise.
46519 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
46520 (serial_hw_io_addr): New variable.
46521 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
46522 instead of `(unsigned short *) 0x400'.
46524 2007-11-10 Bean <bean123ch@gmail.com>
46526 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
46528 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
46530 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
46531 (vga_mod_SOURCES): Added.
46532 (vga_mod_CFLAGS): Likewise.
46533 (vga_mod_LDFLAGS): Likewise.
46535 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
46537 (set_map_mask): Likewise.
46538 (set_read_map): Likewise.
46539 (set_read_address): Likewise.
46540 (vga_font): Removed variable.
46541 (get_vga_glyph): Removed function.
46542 (invalidate_char): Likewise.
46543 (write_char): Changed to use grub_font_get_glyph() for font
46545 (grub_vga_putchar): Likewise.
46546 (grub_vga_getcharwidth): Likewise.
46548 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
46550 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
46552 (pxeboot_img_LDFLAGS): Likewise.
46553 (diskboot_img_LDFLAGS): Likewise.
46554 (kernel_img_LDFLAGS): Likewise.
46556 2007-11-06 Robert Millan <rmh@aybabtu.com>
46558 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
46559 in grub_outb() calls.
46560 (serial_hw_init): Likewise.
46562 2007-11-05 Robert Millan <rmh@aybabtu.com>
46564 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
46565 spaces. Skip non-regular files.
46567 2007-11-05 Robert Millan <rmh@aybabtu.com>
46569 * kern/disk.c (grub_disk_firmware_fini)
46570 (grub_disk_firmware_is_tainted): New variables.
46572 * include/grub/disk.h (grub_disk_firmware_fini)
46573 (grub_disk_firmware_is_tainted): Likewise.
46575 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
46576 (grub_disk_biosdisk_fini): ... to here.
46577 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
46578 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
46579 is set. Register grub_disk_biosdisk_fini() in
46580 `grub_disk_firmware_fini'.
46582 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
46583 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
46584 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
46585 to finish existing firmware disk interface.
46587 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
46588 (ata_mod_SOURCES): New variable.
46589 (ata_mod_CFLAGS): Likewise.
46590 (ata_mod_LDFLAGS): Likewise.
46592 2007-11-05 Robert Millan <rmh@aybabtu.com>
46594 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
46595 (grub_ata_wait): Reimplement using grub_millisleep().
46597 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
46598 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
46600 2007-11-03 Marco Gerards <marco@gnu.org>
46602 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
46603 (CRTC_ADDR_PORT): New macro.
46604 (CRTC_DATA_PORT): Likewise.
46605 (CRTC_CURSOR): Likewise.
46606 (CRTC_CURSOR_ADDR_HIGH): Likewise.
46607 (CRTC_CURSOR_ADDR_LOW): Likewise.
46608 (update_cursor): New function.
46609 (grub_console_real_putchar): Call `update_cursor'.
46610 (grub_console_gotoxy): Likewise.
46611 (grub_console_cls): Set the default color when clearing the
46613 (grub_console_setcursor): Implemented.
46615 2007-11-03 Marco Gerards <marco@gnu.org>
46617 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
46619 (grub_ata_pio_write): Likewise.
46621 (grub_atapi_identify): Wait after issuing an ATA command.
46622 (grub_atapi_packet): Likewise.
46623 (grub_ata_identify): Likewise.
46624 (grub_ata_readwrite): Likewise.
46626 2007-11-03 Marco Gerards <marco@gnu.org>
46628 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
46629 (grub_ata_pio_write): Likewise.
46630 (grub_ata_readwrite): Use `grub_error', instead of
46631 returning `grub_errno'.
46633 2007-11-03 Marco Gerards <marco@gnu.org>
46635 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
46636 grub_ata_pio_write once for every single sector, instead of for
46639 2007-10-31 Robert Millan <rmh@aybabtu.com>
46641 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
46643 * conf/i386-linuxbios.rmk: New file.
46645 * kern/i386/pc/hardware.c: Likewise.
46646 * term/i386/pc/at_keyboard.c: Likewise.
46647 * term/i386/pc/vga_text.c: Likewise.
46649 * include/grub/i386/linuxbios/boot.h: Likewise.
46650 * include/grub/i386/linuxbios/console.h: Likewise.
46651 * include/grub/i386/linuxbios/init.h: Likewise.
46652 * include/grub/i386/linuxbios/kernel.h: Likewise.
46653 * include/grub/i386/linuxbios/loader.h: Likewise.
46654 * include/grub/i386/linuxbios/memory.h: Likewise.
46655 * include/grub/i386/linuxbios/serial.h: Likewise.
46656 * include/grub/i386/linuxbios/time.h: Likewise.
46658 * kern/i386/linuxbios/init.c: Likewise.
46659 * kern/i386/linuxbios/startup.S: Likewise.
46660 * kern/i386/linuxbios/table.c: Likewise.
46662 2007-10-31 Marco Gerards <marco@gnu.org>
46664 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
46665 (ata_mod_SOURCES): New variable.
46666 (ata_mod_CFLAGS): Likewise.
46667 (ata_mod_LDFLAGS): Likewise.
46669 * disk/ata.c: New file.
46671 * include/grub/disk.h (grub_disk_dev_id): Add
46672 `GRUB_DISK_DEV_ATA_ID'.
46674 2007-10-31 Robert Millan <rmh@aybabtu.com>
46676 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
46677 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
46679 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
46680 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
46682 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
46685 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
46687 2007-10-27 Robert Millan <rmh@aybabtu.com>
46689 * include/grub/types.h (ULONG_MAX): Define macro.
46691 2007-10-22 Robert Millan <rmh@aybabtu.com>
46693 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
46695 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
46697 2007-10-22 Robert Millan <rmh@aybabtu.com>
46699 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
46700 (pkgdata_MODULES): Add `biosdisk.mod'.
46701 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
46704 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
46705 (grub_biosdisk_init): Replace with ...
46706 (GRUB_MOD_INIT(biosdisk)): ... this.
46707 (grub_biosdisk_fini): Replace with ...
46708 (GRUB_MOD_FINI(biosdisk)): ... this.
46710 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
46711 (grub_machine_init): Remove call to grub_biosdisk_init().
46712 (grub_machine_fini): Remove call to grub_machine_fini().
46714 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
46716 2007-10-22 Robert Millan <rmh@aybabtu.com>
46718 * include/grub/time.h: New file.
46719 * include/grub/i386/time.h: Likewise.
46720 * include/grub/powerpc/time.h: Likewise.
46721 * include/grub/sparc64/time.h: Likewise.
46723 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
46725 (KERNEL_MACHINE_TIME_HEADER): ... this.
46726 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
46728 (KERNEL_MACHINE_TIME_HEADER): ... this.
46729 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
46731 (KERNEL_MACHINE_TIME_HEADER): ... this.
46733 * kern/i386/efi/init.c: Include `<grub/time.h>'.
46734 (grub_millisleep): New function.
46735 * kern/i386/pc/init.c: Include `<grub/time.h>'.
46736 (grub_millisleep): New function.
46737 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
46738 Remove `grub/machine/time.h' include.
46739 (grub_millisleep): New function.
46740 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
46741 Remove `grub/machine/time.h' include.
46742 (grub_millisleep): New function.
46744 * include/grub/misc.h (grub_div_roundup): New function.
46746 * kern/misc.c: Include `<grub/time.h>'.
46747 (grub_millisleep_generic): New function.
46749 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
46751 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
46753 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
46754 `machine/time.h'. Add `time.h'.
46755 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
46757 2007-10-21 Robert Millan <rmh@aybabtu.com>
46759 * include/grub/misc.h (grub_max): New function.
46761 2007-10-21 Robert Millan <rmh@aybabtu.com>
46763 * util/misc.c (grub_util_info): Call fflush() before returning.
46765 2007-10-20 Robert Millan <rmh@aybabtu.com>
46767 * genmk.rb (Image): Copy `extra_flags' from here ...
46768 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
46770 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
46771 to `argc' and `args' arguments.
46773 2007-10-17 Robert Millan <rmh@aybabtu.com>
46775 * kern/i386/loader.S: New file.
46777 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
46778 * kern/i386/loader.S (grub_linux_prot_size)... to here.
46779 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
46780 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
46781 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
46782 * kern/i386/loader.S (grub_linux_real_addr)... to here.
46783 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
46784 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
46785 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
46786 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
46787 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
46788 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
46789 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
46790 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
46792 * kern/i386/realmode.S: New file.
46794 * kern/i386/pc/startup.S (protstack): Moved from here ...
46795 * kern/i386/realmode.S (protstack)... to here.
46796 * kern/i386/pc/startup.S (gdt): Moved from here ...
46797 * kern/i386/realmode.S (gdt)... to here.
46798 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
46799 * kern/i386/realmode.S (prot_to_real)... to here.
46801 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
46802 `kern/i386/realmode.S'.
46804 2007-10-17 Robert Millan <rmh@aybabtu.com>
46806 * include/grub/i386/loader.h: New file.
46808 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
46809 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
46810 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
46811 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
46812 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
46813 * include/grub/i386/loader.h (grub_linux_prot_size)
46814 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
46815 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
46816 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
46817 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
46819 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
46821 2007-10-15 Robert Millan <rmh@aybabtu.com>
46823 * normal/misc.c (grub_normal_print_device_info): Do not probe for
46824 filesystem when dev->disk is unset.
46825 Do probe for filesystem even when dev->disk->has_partitions is set.
46826 In case a filesystem is found, always report it.
46827 In case it isn't, if dev->disk->has_partitions is set, report that
46828 a partition table was found instead of reporting that no filesystem
46829 could be identified.
46831 2007-10-12 Robert Millan <rmh@aybabtu.com>
46833 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
46834 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
46836 * include/grub/types.h (grub_host_to_target16): New macro.
46837 (grub_host_to_target32): Likewise.
46838 (grub_host_to_target64): Likewise.
46839 (grub_target_to_host16): Likewise.
46840 (grub_target_to_host32): Likewise.
46841 (grub_target_to_host64): Likewise.
46843 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
46844 Renamed from to ...
46845 (GRUB_MOD_ALIGN): ...this. Update all users.
46847 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
46848 grub_host_to_target32.
46849 Replace grub_be_to_cpu32 with grub_target_to_host32.
46850 (load_modules): Likewise.
46851 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
46852 Replace grub_be_to_cpu32 with grub_target_to_host32.
46853 Replace grub_cpu_to_be16 with grub_host_to_target16.
46854 Replace grub_cpu_to_be32 grub_host_to_target32.
46856 2007-10-12 Robert Millan <rmh@aybabtu.com>
46858 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
46859 * util/elf/grub-mkimage.c: ... here.
46861 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
46862 `util/powerpc/ieee1275/grub-mkimage.c'.
46864 2007-10-07 Robert Millan <rmh@aybabtu.com>
46866 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
46867 and make it easier to figure out.
46868 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
46869 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
46870 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
46871 leave us with less than HEAP_MIN_SIZE total heap.
46872 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
46874 2007-10-03 Robert Millan <rmh@aybabtu.com>
46876 * include/grub/i386/io.h: New file.
46877 * commands/i386/pc/play.c (inb): Removed.
46879 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46881 * term/i386/pc/serial.c (inb): Removed.
46883 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46885 * term/i386/pc/vga.c (inb): Removed.
46887 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46890 2007-10-02 Robert Millan <rmh@aybabtu.com>
46892 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
46893 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46894 Reported by Marcin Kurek.
46896 2007-09-07 Robert Millan <rmh@aybabtu.com>
46898 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
46899 SmartFirmware version updates (as released by Sven Luther), and avoid
46900 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
46901 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
46904 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46906 From Hitoshi Ozeki:
46907 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
46908 when merging two regions.
46910 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46912 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
46913 * normal/completion.c (grub_normal_do_completion): Likewise.
46914 Reported by Hitoshi Ozeki.
46916 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46918 Do not use devices at boot in chainloading.
46920 * loader/i386/pc/chainloader.c (boot_drive): New variable.
46921 (boot_part_addr): Likewise.
46922 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
46923 with BOOT_DRIVE and BOOT_PART_ADDR.
46924 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
46925 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
46927 2007-08-29 Robert Millan <rmh@aybabtu.com>
46929 Patch from Simon Peter <dn.tlp@gmx.net>:
46930 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
46931 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
46932 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
46933 util/i386/pc/grub-setup.c_DEPENDENCIES.
46934 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
46935 util/grub-probe.c_DEPENDENCIES.
46936 * conf/powerpc-ieee1275.rmk: Likewise.
46938 2007-08-28 Robert Millan <rmh@aybabtu.com>
46940 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
46941 to tell grub-mkdevicemap how to name devices.
46942 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
46945 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
46946 util/i386/get_disk_name.c.
46947 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
46948 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
46949 util/ieee1275/get_disk_name.c.
46951 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
46953 * DISTLIST: Add util/i386/get_disk_name.c and
46954 util/ieee1275/get_disk_name.c.
46956 * util/grub-mkdevicemap.c: Replace device naming logic with
46957 grub_util_get_disk_name() calls.
46959 2007-08-20 Robert Millan <rmh@aybabtu.com>
46961 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
46962 (so that it works for both plural and singular quantities).
46964 2007-08-05 Robert Millan <rmh@aybabtu.com>
46966 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
46967 so that [xz] isn't taken into account when determining order.
46969 2007-08-02 Marco Gerards <marco@gnu.org>
46971 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
46972 `include/multiboot2.h', `include/grub/elfload.h',
46973 `include/multiboot.h', `include/grub/multiboot.h',
46974 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
46975 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
46976 `kern/elf.c', `loader/multiboot_loader.c',
46977 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
46978 `loader/i386/pc/multiboot2.c',
46979 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
46980 `util/i386/pc/grub-mkrescue.in'. Remove
46981 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
46982 `include/grub/i386/pc/util/biosdisk.h' and
46983 `include/grub/powerpc/ieee1275/multiboot.h'.
46985 2007-08-02 Bean <bean123ch@gmail.com>
46987 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
46988 (ntfs_mod_SOURCES): New variable.
46989 (ntfs_mod_CFLAGS): Likewise.
46990 (ntfs_mod_LDFLAGS): Likewise.
46992 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
46993 (grub_probe_SOURCES): Likewise.
46994 (grub_emu_SOURCES): Likewise.
46996 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
46997 (grub_emu_SOURCES): Likewise.
46999 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47000 (grub_emu_SOURCES): Likewise.
47002 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47004 * fs/ntfs.c: New file.
47006 2007-08-02 Bean <bean123ch@gmail.com>
47008 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47010 * file.h (grub_file): Likewise.
47012 * fshelp.h (grub_fshelp_read_file): Likewise.
47014 * util/i386/pc/grub-setup.c (setup): Likewise.
47015 (save_first_sector): Likewise.
47016 (save_blocklists): Likewise.
47018 * fs/affs.c (grub_affs_read_file): Likewise.
47020 * fs/ext2.c (grub_ext2_read_file): Likewise.
47022 * fs/fat.c (grub_fat_read_data): Likewise.
47024 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47026 * fs/hfs.c (grub_hfs_read_file): Likewise.
47028 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47030 * fs/jfs.c (grub_jfs_read_file): Likewise.
47032 * fs/minix.c (grub_minix_read_file): Likewise.
47034 * fs/sfs.c (grub_sfs_read_file): Likewise.
47036 * fs/ufs.c (grub_ufs_read_file): Likewise.
47038 * fs/xfs.c (grub_xfs_read_file): Likewise.
47040 * command/blocklist.c (read_blocklist): Likewise.
47041 (print_blocklist): Likewise.
47043 2007-08-02 Marco Gerards <marco@gnu.org>
47045 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47048 * disk/host.c: New file.
47050 * util/hostfs.c: Likewise.
47052 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47053 return `GRUB_ERR_BAD_FS'.
47054 * fs/sfs.c (grub_sfs_mount): Likewise.
47055 * fs/xfs.c (grub_xfs_mount): Likewise.
47057 * include/grub/disk.h (enum grub_disk_dev_id): Add
47058 `GRUB_DISK_DEVICE_HOST_ID'.
47060 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47062 2007-07-24 Jerone Young <jerone@gmail.com>
47064 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47065 modules for compilation.
47066 * conf/powerpc-ieee1275.rmk: Likewise.
47068 * include/multiboot.h: Move multiboot definitions to one file. Rename
47069 many definitions to not get grub specific.
47070 * include/multiboot2.h: Create header with multiboot 2 definitions.
47071 * include/grub/multiboot.h: Header for grub specific function
47072 prototypes and definitions.
47073 * include/grub/multiboot2.h: Likewise.
47074 * include/grub/multiboot_loader.h: Likewise.
47075 * include/grub/i386/pc/multiboot.h: Removed.
47076 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47078 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47079 and 2 to allow for one multiboot and module commands.
47080 * loader/multiboot2.c: Add multiboot2 functionality.
47081 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47082 and definition names.
47083 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47085 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47086 ieee1275 specific multiboot2 code.
47088 * kern/i386/pc/startup.S: Change headers and definition names for
47089 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47091 2007-07-22 Robert Millan <rmh@aybabtu.com>
47093 * geninitheader.sh: Process file specified in first parameter rather
47094 than hardcoding grub_modules_init.lst.
47095 * geninit.sh: Likewise. Also, construct header name dynamically rather
47096 than hardcoding grub_modules_init.h.
47098 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47099 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47100 grub_probe_init.[ch] and grub_setup_init.[ch].
47102 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47103 grub_modules_init.h with grub_emu_init.h.
47104 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47105 grub_probe_init.[ch] files.
47106 * conf/i386-efi.rmk: Likewise.
47107 * conf/i386-pc.rmk: Likewise.
47108 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47109 grub_setup_init.[ch] files.
47111 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47112 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47113 to initialize modules rather than a list of hardcoded functions.
47114 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47115 grub_init_all() to initialize modules rather than a list of hardcoded
47118 2007-07-22 Robert Millan <rmh@aybabtu.com>
47120 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47121 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47123 2007-07-22 Robert Millan <rmh@aybabtu.com>
47125 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47126 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47127 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47128 flag when running on SmartFirmware.
47129 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47130 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47133 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47134 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47135 rather than decreasing it.
47137 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47138 there's not enough space to do it, fail in the same way as when it
47139 can't be done because there are no partitions.
47141 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47142 when nvsetenv failed.
47144 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47146 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47147 because this rule is automatically generated.
47148 (grub-mkrescue): Removed for the same reason as above.
47150 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47152 Migrate to GNU General Public License Version 3.
47154 * COPYING: Replaced with the plain text version of GPLv3.
47156 * config.guess: Updated from gnulib.
47157 * config.sub: Likewise.
47159 * geninit.sh: Output a GPLv3 copyright notice.
47160 * geninitheader.sh: Likewise.
47161 * genmodsrc.sh: Likewise.
47162 * gensymlist.sh.in: Likewise.
47164 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47165 * boot/i386/pc/diskboot.S: Likewise.
47166 * boot/i386/pc/pxeboot.S: Likewise.
47167 * commands/blocklist.c: Likewise.
47168 * commands/boot.c: Likewise.
47169 * commands/cat.c: Likewise.
47170 * commands/cmp.c: Likewise.
47171 * commands/configfile.c: Likewise.
47172 * commands/echo.c: Likewise.
47173 * commands/help.c: Likewise.
47174 * commands/ls.c: Likewise.
47175 * commands/search.c: Likewise.
47176 * commands/terminal.c: Likewise.
47177 * commands/test.c: Likewise.
47178 * commands/videotest.c: Likewise.
47179 * commands/i386/cpuid.c: Likewise.
47180 * commands/i386/pc/halt.c: Likewise.
47181 * commands/i386/pc/play.c: Likewise.
47182 * commands/i386/pc/reboot.c: Likewise.
47183 * commands/i386/pc/vbeinfo.c: Likewise.
47184 * commands/i386/pc/vbetest.c: Likewise.
47185 * commands/ieee1275/halt.c: Likewise.
47186 * commands/ieee1275/reboot.c: Likewise.
47187 * commands/ieee1275/suspend.c: Likewise.
47188 * disk/loopback.c: Likewise.
47189 * disk/lvm.c: Likewise.
47190 * disk/raid.c: Likewise.
47191 * disk/efi/efidisk.c: Likewise.
47192 * disk/i386/pc/biosdisk.c: Likewise.
47193 * disk/ieee1275/ofdisk.c: Likewise.
47194 * font/manager.c: Likewise.
47195 * fs/affs.c: Likewise.
47196 * fs/ext2.c: Likewise.
47197 * fs/fat.c: Likewise.
47198 * fs/fshelp.c: Likewise.
47199 * fs/hfs.c: Likewise.
47200 * fs/hfsplus.c: Likewise.
47201 * fs/iso9660.c: Likewise.
47202 * fs/jfs.c: Likewise.
47203 * fs/minix.c: Likewise.
47204 * fs/sfs.c: Likewise.
47205 * fs/ufs.c: Likewise.
47206 * fs/xfs.c: Likewise.
47207 * hello/hello.c: Likewise.
47208 * include/grub/acorn_filecore.h: Likewise.
47209 * include/grub/arg.h: Likewise.
47210 * include/grub/bitmap.h: Likewise.
47211 * include/grub/boot.h: Likewise.
47212 * include/grub/cache.h: Likewise.
47213 * include/grub/device.h: Likewise.
47214 * include/grub/disk.h: Likewise.
47215 * include/grub/dl.h: Likewise.
47216 * include/grub/elfload.h: Likewise.
47217 * include/grub/env.h: Likewise.
47218 * include/grub/err.h: Likewise.
47219 * include/grub/file.h: Likewise.
47220 * include/grub/font.h: Likewise.
47221 * include/grub/fs.h: Likewise.
47222 * include/grub/fshelp.h: Likewise.
47223 * include/grub/gzio.h: Likewise.
47224 * include/grub/hfs.h: Likewise.
47225 * include/grub/kernel.h: Likewise.
47226 * include/grub/loader.h: Likewise.
47227 * include/grub/lvm.h: Likewise.
47228 * include/grub/misc.h: Likewise.
47229 * include/grub/mm.h: Likewise.
47230 * include/grub/net.h: Likewise.
47231 * include/grub/normal.h: Likewise.
47232 * include/grub/parser.h: Likewise.
47233 * include/grub/partition.h: Likewise.
47234 * include/grub/pc_partition.h: Likewise.
47235 * include/grub/raid.h: Likewise.
47236 * include/grub/rescue.h: Likewise.
47237 * include/grub/script.h: Likewise.
47238 * include/grub/setjmp.h: Likewise.
47239 * include/grub/symbol.h: Likewise.
47240 * include/grub/term.h: Likewise.
47241 * include/grub/terminfo.h: Likewise.
47242 * include/grub/tparm.h: Likewise.
47243 * include/grub/types.h: Likewise.
47244 * include/grub/video.h: Likewise.
47245 * include/grub/efi/api.h: Likewise.
47246 * include/grub/efi/chainloader.h: Likewise.
47247 * include/grub/efi/console.h: Likewise.
47248 * include/grub/efi/console_control.h: Likewise.
47249 * include/grub/efi/disk.h: Likewise.
47250 * include/grub/efi/efi.h: Likewise.
47251 * include/grub/efi/pe32.h: Likewise.
47252 * include/grub/efi/time.h: Likewise.
47253 * include/grub/i386/linux.h: Likewise.
47254 * include/grub/i386/setjmp.h: Likewise.
47255 * include/grub/i386/types.h: Likewise.
47256 * include/grub/i386/efi/kernel.h: Likewise.
47257 * include/grub/i386/efi/loader.h: Likewise.
47258 * include/grub/i386/efi/time.h: Likewise.
47259 * include/grub/i386/pc/biosdisk.h: Likewise.
47260 * include/grub/i386/pc/boot.h: Likewise.
47261 * include/grub/i386/pc/chainloader.h: Likewise.
47262 * include/grub/i386/pc/console.h: Likewise.
47263 * include/grub/i386/pc/init.h: Likewise.
47264 * include/grub/i386/pc/kernel.h: Likewise.
47265 * include/grub/i386/pc/loader.h: Likewise.
47266 * include/grub/i386/pc/memory.h: Likewise.
47267 * include/grub/i386/pc/multiboot.h: Likewise.
47268 * include/grub/i386/pc/serial.h: Likewise.
47269 * include/grub/i386/pc/time.h: Likewise.
47270 * include/grub/i386/pc/vbe.h: Likewise.
47271 * include/grub/i386/pc/vbeblit.h: Likewise.
47272 * include/grub/i386/pc/vbefill.h: Likewise.
47273 * include/grub/i386/pc/vbeutil.h: Likewise.
47274 * include/grub/i386/pc/vga.h: Likewise.
47275 * include/grub/ieee1275/ieee1275.h: Likewise.
47276 * include/grub/ieee1275/ofdisk.h: Likewise.
47277 * include/grub/powerpc/libgcc.h: Likewise.
47278 * include/grub/powerpc/setjmp.h: Likewise.
47279 * include/grub/powerpc/types.h: Likewise.
47280 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47281 * include/grub/powerpc/ieee1275/console.h: Likewise.
47282 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47283 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47284 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47285 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47286 * include/grub/powerpc/ieee1275/time.h: Likewise.
47287 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47288 * include/grub/sparc64/libgcc.h: Likewise.
47289 * include/grub/sparc64/setjmp.h: Likewise.
47290 * include/grub/sparc64/types.h: Likewise.
47291 * include/grub/sparc64/ieee1275/console.h: Likewise.
47292 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47293 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47294 * include/grub/sparc64/ieee1275/time.h: Likewise.
47295 * include/grub/util/biosdisk.h: Likewise.
47296 * include/grub/util/getroot.h: Likewise.
47297 * include/grub/util/lvm.h: Likewise.
47298 * include/grub/util/misc.h: Likewise.
47299 * include/grub/util/raid.h: Likewise.
47300 * include/grub/util/resolve.h: Likewise.
47301 * io/gzio.c: Likewise.
47302 * kern/device.c: Likewise.
47303 * kern/disk.c: Likewise.
47304 * kern/dl.c: Likewise.
47305 * kern/elf.c: Likewise.
47306 * kern/env.c: Likewise.
47307 * kern/err.c: Likewise.
47308 * kern/file.c: Likewise.
47309 * kern/fs.c: Likewise.
47310 * kern/loader.c: Likewise.
47311 * kern/main.c: Likewise.
47312 * kern/misc.c: Likewise.
47313 * kern/mm.c: Likewise.
47314 * kern/parser.c: Likewise.
47315 * kern/partition.c: Likewise.
47316 * kern/rescue.c: Likewise.
47317 * kern/term.c: Likewise.
47318 * kern/efi/efi.c: Likewise.
47319 * kern/efi/init.c: Likewise.
47320 * kern/efi/mm.c: Likewise.
47321 * kern/i386/dl.c: Likewise.
47322 * kern/i386/efi/init.c: Likewise.
47323 * kern/i386/efi/startup.S: Likewise.
47324 * kern/i386/pc/init.c: Likewise.
47325 * kern/i386/pc/lzo1x.S: Likewise.
47326 * kern/i386/pc/startup.S: Likewise.
47327 * kern/ieee1275/ieee1275.c: Likewise.
47328 * kern/powerpc/cache.S: Likewise.
47329 * kern/powerpc/dl.c: Likewise.
47330 * kern/powerpc/ieee1275/cmain.c: Likewise.
47331 * kern/powerpc/ieee1275/crt0.S: Likewise.
47332 * kern/powerpc/ieee1275/init.c: Likewise.
47333 * kern/powerpc/ieee1275/openfw.c: Likewise.
47334 * kern/sparc64/cache.S: Likewise.
47335 * kern/sparc64/dl.c: Likewise.
47336 * kern/sparc64/ieee1275/init.c: Likewise.
47337 * kern/sparc64/ieee1275/openfw.c: Likewise.
47338 * loader/efi/chainloader.c: Likewise.
47339 * loader/efi/chainloader_normal.c: Likewise.
47340 * loader/i386/efi/linux.c: Likewise.
47341 * loader/i386/efi/linux_normal.c: Likewise.
47342 * loader/i386/pc/chainloader.c: Likewise.
47343 * loader/i386/pc/chainloader_normal.c: Likewise.
47344 * loader/i386/pc/linux.c: Likewise.
47345 * loader/i386/pc/linux_normal.c: Likewise.
47346 * loader/i386/pc/multiboot.c: Likewise.
47347 * loader/i386/pc/multiboot_normal.c: Likewise.
47348 * loader/powerpc/ieee1275/linux.c: Likewise.
47349 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47350 * normal/arg.c: Likewise.
47351 * normal/cmdline.c: Likewise.
47352 * normal/command.c: Likewise.
47353 * normal/completion.c: Likewise.
47354 * normal/execute.c: Likewise.
47355 * normal/function.c: Likewise.
47356 * normal/lexer.c: Likewise.
47357 * normal/main.c: Likewise.
47358 * normal/menu.c: Likewise.
47359 * normal/menu_entry.c: Likewise.
47360 * normal/misc.c: Likewise.
47361 * normal/parser.y: Likewise.
47362 * normal/script.c: Likewise.
47363 * normal/i386/setjmp.S: Likewise.
47364 * normal/powerpc/setjmp.S: Likewise.
47365 * normal/sparc64/setjmp.S: Likewise.
47366 * partmap/acorn.c: Likewise.
47367 * partmap/amiga.c: Likewise.
47368 * partmap/apple.c: Likewise.
47369 * partmap/gpt.c: Likewise.
47370 * partmap/pc.c: Likewise.
47371 * partmap/sun.c: Likewise.
47372 * term/gfxterm.c: Likewise.
47373 * term/terminfo.c: Likewise.
47374 * term/efi/console.c: Likewise.
47375 * term/i386/pc/console.c: Likewise.
47376 * term/i386/pc/serial.c: Likewise.
47377 * term/i386/pc/vesafb.c: Likewise.
47378 * term/i386/pc/vga.c: Likewise.
47379 * term/ieee1275/ofconsole.c: Likewise.
47380 * util/biosdisk.c: Likewise.
47381 * util/console.c: Likewise.
47382 * util/genmoddep.c: Likewise.
47383 * util/getroot.c: Likewise.
47384 * util/grub-emu.c: Likewise.
47385 * util/grub-mkdevicemap.c: Likewise.
47386 * util/grub-probe.c: Likewise.
47387 * util/lvm.c: Likewise.
47388 * util/misc.c: Likewise.
47389 * util/raid.c: Likewise.
47390 * util/resolve.c: Likewise.
47391 * util/update-grub.in: Likewise.
47392 * util/update-grub_lib.in: Likewise.
47393 * util/grub.d/00_header.in: Likewise.
47394 * util/grub.d/10_hurd.in: Likewise.
47395 * util/grub.d/10_linux.in: Likewise.
47396 * util/i386/efi/grub-install.in: Likewise.
47397 * util/i386/efi/grub-mkimage.c: Likewise.
47398 * util/i386/pc/grub-install.in: Likewise.
47399 * util/i386/pc/grub-mkimage.c: Likewise.
47400 * util/i386/pc/grub-mkrescue.in: Likewise.
47401 * util/i386/pc/grub-setup.c: Likewise.
47402 * util/i386/pc/misc.c: Likewise.
47403 * util/powerpc/ieee1275/grub-install.in: Likewise.
47404 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47405 * util/powerpc/ieee1275/misc.c: Likewise.
47406 * video/bitmap.c: Likewise.
47407 * video/video.c: Likewise.
47408 * video/i386/pc/vbe.c: Likewise.
47409 * video/i386/pc/vbeblit.c: Likewise.
47410 * video/i386/pc/vbefill.c: Likewise.
47411 * video/i386/pc/vbeutil.c: Likewise.
47412 * video/readers/tga.c: Likewise.
47414 2007-07-02 Robert Millan <rmh@aybabtu.com>
47416 * conf/i386-efi.rmk: Replace obsolete reference to
47417 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47418 with util/getroot.c.
47419 * conf/powerpc-ieee1275.rmk: Likewise.
47420 * conf/sparc64-ieee1275.rmk: Likewise.
47422 * util/grub-emu.c (main): Fix unchecked pointer handling.
47424 2007-07-02 Robert Millan <rmh@aybabtu.com>
47426 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47427 invocation to fail, in order to support partition-less media.
47429 * util/i386/pc/grub-install.in: Likewise.
47431 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47432 which fs or partmap modules are needed (akin to its sister scripts).
47434 Also use grub-probe to get rid of unportable /proc/mounts check.
47436 Print the same informational message that the other scripts do, before
47439 2007-06-23 Robert Millan <rmh@aybabtu.com>
47441 * util/update-grub_lib.in (font_path): New function. Determine whether
47442 a font file can be found and, if so, echo the GRUB path to it.
47444 * util/update-grub.in: Handle multiple terminals depending on user
47445 input, platform availability and font file presence. Propagate
47446 variables of our findings to /etc/grub.d/ children.
47448 * util/grub.d/00_header.in: Handle multiple terminals, based on
47449 environment setup by update-grub.
47451 2007-06-23 Robert Millan <rmh@aybabtu.com>
47453 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
47455 2007-06-21 Robert Millan <rmh@aybabtu.com>
47457 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
47458 indicate end of data section in kernel image.
47459 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
47460 GRUB_KERNEL_MACHINE_DATA_END.
47462 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
47464 * kern/i386/efi/startup.S: Likewise.
47466 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
47467 during image generation. Implement --prefix option to override this
47469 * util/i386/efi/grub-mkimage.c: Likewise.
47471 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
47472 code to make path relative to its root into a separate function.
47474 * util/i386/pc/grub-install.in: Use newly provided
47475 make_system_path_relative_to_its_root() to convert ${grubdir}, then
47476 pass the result to grub-install --prefix.
47478 2007-06-13 Robert Millan <rmh@aybabtu.com>
47480 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
47481 DEFAULT_DEVICE_MAP.
47482 * util/grub-emu.c: Use above definitions from misc.h instead of
47484 * util/grub-mkdevicemap.c: Likewise.
47485 * util/i386/pc/grub-setup.c: Likewise.
47486 * util/grub-probe.c: Likewise.
47487 (probe): Abort with grub_util_error() when either
47488 grub_guess_root_device or grub_util_get_grub_dev fails.
47490 2007-06-12 Robert Millan <rmh@aybabtu.com>
47492 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
47493 "pager" assignment.
47494 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
47496 * util/grub-probe.c (probe): Likewise for "drive_name".
47498 2007-06-11 Robert Millan <rmh@aybabtu.com>
47500 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
47501 not just the cdrom one.
47503 2007-06-11 Robert Millan <rmh@aybabtu.com>
47505 * util/i386/pc/grub-mkrescue.in: Add "set -e".
47506 Add --pkglibdir=DIR option to override pkglibdir.
47507 Mention --image-type=TYPE in help output.
47508 Fix --grub-mkimage (it was a no-op).
47509 Abort gracefully when no parameter is given.
47511 2007-06-11 Robert Millan <rmh@aybabtu.com>
47513 * util/i386/pc/grub-mkrescue.in: New file.
47514 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
47515 * Makefile.in: Handle bin_SCRIPTS.
47517 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
47519 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
47520 list of video modes.
47522 2007-06-06 Robert Millan <rmh@aybabtu.com>
47524 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
47525 file doesn't exist, or if it is in a filesystem grub can't read.
47527 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
47528 not abort if GRUB_DRIVE could not be defined. Rearrange generated
47529 header comment to fit in 80 columns when the variables are resolved.
47531 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
47532 could be identified by update-grub. Remove redundant check for
47533 unifont.pff existence (since convert_system_path_to_grub_path now
47536 2007-06-04 Robert Millan <rmh@aybabtu.com>
47538 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
47540 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
47542 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
47544 2007-06-04 Robert Millan <rmh@aybabtu.com>
47546 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
47548 * include/grub/partition.h: Declare grub_apple_partition_map_init and
47549 grub_apple_partition_map_fini.
47552 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
47553 to access >2 TiB disks).
47555 Print disk->total_sectors with %llu instead of %lu, since this
47556 variable is always 64-bit (prevents wrong disk size from being displayed
47557 on either >2 TiB disk or big-endian CPU).
47559 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
47560 into a generic case that supports all (sane) partition maps.
47562 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
47565 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
47566 and grub_apple_partition_map_fini() after that.
47568 2007-06-01 Robert Millan <rmh@aybabtu.com>
47570 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
47572 * util/grub.d/00_header.in: Only enable gfxterm when
47573 convert_system_path_to_grub_path() succeeds.
47575 2007-05-20 Robert Millan <rmh@aybabtu.com>
47577 * util/update-grub_lib.in: New file.
47578 * DISTLIST: Add update-grub_lib.in.
47579 * conf/common.rmk: Generate update-grub_lib and install it in
47581 * Makefile.in: Add install routine for $(lib_DATA).
47583 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
47584 function provided by update-grub_lib to support arbitrary paths of
47586 * util/update-grub.in: Use convert_system_path_to_grub_path() to
47587 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
47589 2007-05-19 Robert Millan <rmh@aybabtu.com>
47591 * commands/i386/cpuid.c: New module.
47592 * DISTLIST: Add it.
47593 * conf/i386-efi.rmk: Enable cpuid.mod.
47594 * conf/i386-pc.rmk: Likewise.
47596 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
47598 * kern/disk.c (grub_disk_read): Check return value of
47601 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
47603 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
47605 * disk/raid.c (grub_raid_open): Likewise.
47607 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
47609 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
47610 stack instead of on the heap.
47612 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
47613 before doing a read on it.
47615 * configure.ac: Only use -fno-stack-protector for the target
47618 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
47620 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
47621 __attribute_ ((unused)) to mode_type argument.
47623 * util/getroot.c (grub_guess_root_device): Fix #endif.
47625 * kern/misc.c (memcmp): Fix prototype.
47627 * include/grub/partition.h [GRUB_UTIL]
47628 (grub_gpt_partition_map_init): Add prototype.
47629 (grub_gpt_partition_map_fini): Likewise.
47631 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
47632 at the right place.
47634 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
47635 (grub_fat_read_data): Likewise.
47636 (grub_fat_find_dir): Likewise.
47638 * font/manager.c (find_glyph): Make table a const.
47639 (grub_font_get_glyph): Remove bitmap from if statement.
47641 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
47643 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
47644 code, first search for device in /dev/mapper, then in /dev.
47645 (grub_util_get_grub_dev): New function.
47646 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
47648 * util/grub-probe.c (probe): Remove check for RAID, call
47649 grub_util_get_grub_dev() instead of
47650 grub_util_biosdisk_get_grub_dev().
47651 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
47652 grub_util_biosdisk_get_grub_dev().
47653 * util/i386/pc/grub-setup.c (main): Likewise.
47655 2007-05-16 Robert Millan <rmh@aybabtu.com>
47657 * DISTLIST: Update for the latest changes.
47658 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
47659 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
47660 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
47661 grub/util/biosdisk.h.
47662 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
47663 grub/util/biosdisk.h.
47665 2007-05-16 Robert Millan <rmh@aybabtu.com>
47667 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
47669 2007-05-16 Robert Millan <rmh@aybabtu.com>
47671 * util/i386/efi/grub-install.in: New.
47672 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
47673 newly added grub-install.
47674 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
47676 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
47677 grub/util/biosdisk.h.
47678 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
47679 grub/util/biosdisk.h.
47681 2007-05-16 Robert Millan <rmh@aybabtu.com>
47683 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
47684 * include/grub/util/biosdisk.h: ... here.
47685 * util/i386/pc/biosdisk.c: Moved to ...
47686 * util/biosdisk.c: ... here.
47687 * util/i386/pc/getroot.c: Moved to ...
47688 * util/getroot.c: ... here.
47689 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
47690 * util/grub-mkdevicemap.c: ... here.
47691 * util/i386/pc/grub-probe.c: Moved to ...
47692 * util/grub-probe.c: ... here.
47694 2007-05-15 Robert Millan <rmh@aybabtu.com>
47696 * util/update-grub.in: Remove duplicated line in grub.cfg header
47699 2007-05-13 Robert Millan <rmh@aybabtu.com>
47701 * util/update-grub.in: Fix a few assumptions about the devices holding
47702 /, /boot and /boot/grub being the same.
47703 * util/grub.d/00_header.in: Likewise.
47704 * util/grub.d/10_hurd.in: Likewise.
47705 * util/grub.d/10_linux.in: Likewise.
47707 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
47708 patterns. Use that to define the `.old' suffix as older than `'.
47710 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
47712 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
47713 the grub.cfg header message.
47715 2007-05-11 Robert Millan <rmh@aybabtu.com>
47717 * util/update-grub.in: Create device.map if it doesn't already exist,
47718 before attempting to run grub-probe.
47719 Check for grub-probe and grub-mkdevicemap with the same code
47720 grub-install is using.
47723 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
47725 * Makefile.in: Add the datarootdir autoconf variable.
47727 2007-05-09 Robert Millan <rmh@aybabtu.com>
47729 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
47730 fail gracefully if dev->disk->partition == NULL.
47732 2007-05-07 Robert Millan <rmh@aybabtu.com>
47734 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
47735 determine partition map module.
47736 * util/i386/pc/grub-install.in: Use this feature to decide which
47737 partition module to load, instead of hardcoding pc and gpt.
47739 2007-05-07 Robert Millan <rmh@aybabtu.com>
47741 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
47742 source directory differs from build directory.
47744 2007-05-05 Robert Millan <rmh@aybabtu.com>
47746 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
47749 2007-05-05 Robert Millan <rmh@aybabtu.com>
47751 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
47753 2007-05-05 Robert Millan <rmh@aybabtu.com>
47755 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
47756 command-line arguments via ${GRUB_CMDLINE_LINUX}.
47758 2007-05-05 Robert Millan <rmh@aybabtu.com>
47760 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
47761 (grub_probe_SOURCES): Likewise.
47762 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
47763 GPT and initialize dos_part and bsd_part accordingly.
47764 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
47766 (main): Activate gpt module for use during partition identification,
47767 and deactivate it afterwards.
47768 * util/i386/pc/grub-install.in: Add gpt module to core.img.
47769 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
47770 partition identification, and deactivate it afterwards.
47772 2007-05-05 Robert Millan <rmh@aybabtu.com>
47774 * term/i386/pc/console.c (grub_console_fini): Call
47775 grub_term_set_current() before grub_term_unregister().
47777 2007-05-04 Robert Millan <rmh@aybabtu.com>
47779 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
47780 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
47781 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
47782 and update-grub_DATA.
47783 * conf/common.rmk: Build and install update-grub components.
47784 * conf/common.mk: Regenerate.
47785 * util/update-grub.in: New. Core of update-grub.
47786 * util/grub.d/00_header.in: New. Generates grub.cfg header.
47787 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
47788 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
47789 * util/grub.d/README: New. Document grub.d directory layout.
47791 2007-05-01 Robert Millan <rmh@aybabtu.com>
47793 * util/grub-emu.c: Move initialization functions
47794 grub_util_biosdisk_init() and grub_init_all() before
47795 grub_util_biosdisk_get_grub_dev(), which relies on them.
47797 2007-04-19 Robert Millan <rmh@aybabtu.com>
47799 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
47802 2007-04-18 Jerone Young <jerone@gmail.com>
47804 * kernel/elf.c: Add missing parenthesis for conditional statement
47807 2007-04-10 Jerone Young <jerone@gmail.com>
47809 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
47810 continue on and look for device node with real device name.
47812 2007-04-10 Jerone Young <jerone@gmail.com>
47814 * configure.ac: Add argument for autoconf to use transformation
47816 * Makefile.in: Add autoconf package transformation code.
47817 * util/i386/pc/grub-install.in: Likewise.
47818 * util/powerpc/ieee1275/grub-install.in: Likewise.
47820 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
47822 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
47823 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
47824 (EXT2_REVISION): Likewise.
47825 (EXT2_INODE_SIZE): Likewise.
47826 (struct grub_ext2_block_group): Added a missing member
47828 (grub_ext2_read_inode): Divide by the inode size in a superblock
47829 instead of 128 to obtain INODES_PER_BLOCK.
47830 Use the macro EXT2_INODE_SIZE instead of directly using
47831 SBLOCK->INODE_SIZE.
47833 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
47835 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
47836 superblock instead of the structure size to compute an
47837 offset. This fixes the problem that GRUB could not read a
47838 filesystem when inode size is different from 128-byte.
47840 2007-03-05 Marco Gerards <marco@gnu.org>
47842 * normal/main.c (read_config_file): When "menu" is not set, create
47843 an initial context.
47845 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
47847 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
47848 (HEAP_LIMIT): New macro.
47849 (grub_claim_heap): Claim memory up to `heaplimit'.
47851 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
47853 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
47854 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
47855 (_start): Likewise.
47856 (grub_arch_modules_addr): Return address after `_end'.
47857 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
47858 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
47859 (add_segments): Calculate `_end' from phdr size and location.
47860 (ALIGN_UP): Moved to ...
47861 * include/grub/misc.h: here.
47862 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47864 (GRUB_IEEE1275_MODULE_BASE): Removed.
47866 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47868 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
47871 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47873 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
47875 (grub_elf64_load_hook_t): Likewise.
47876 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
47879 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47881 * kern/mm.c: Update copyright.
47882 (grub_mm_debug): Correct syntax error.
47883 (grub_mm_dump_free): New function.
47884 (grub_debug_free): Call `grub_free'.
47885 * include/grub/mm.h: Update copyright.
47886 (grub_mm_dump_free): Add declaration.
47888 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
47890 * include/grub/ieee1275/ieee1275.h: Update copyright.
47891 * kern/powerpc/ieee1275/init.c: Likewise.
47892 * kern/powerpc/ieee1275/openfw.c: Likewise.
47894 * loader/powerpc/ieee1275/linux.c: Likewise.
47895 * include/grub/elfload.h: Likewise.
47896 * kern/elf.c: Likewise.
47897 (grub_elf32_load): Pass `base' and `size' parameters. Update all
47899 (grub_elf64_load): Likewise.
47900 (grub_elf32_load_segment): Move to a nested function.
47901 (grub_elf64_load_segment): Likewise.
47903 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
47905 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
47907 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
47908 (grub_heap_len): Likewise.
47909 (HEAP_SIZE): New macro.
47910 (grub_claim_heap): New function.
47911 (grub_machine_init): Don't claim heap directly. Call
47913 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
47914 (grub_available_iterate): New function.
47916 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
47918 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
47919 * configure.ac: Use it for testing the HOST and TARGET compilers.
47921 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
47923 * Makefile.in (enable_grub_emu): New variable.
47924 * configure.ac (--enable-grub-emu): New option.
47925 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
47926 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
47927 * conf/i386-pc.rmk: Likewise.
47928 * conf/powerpc-ieee1275.rmk: Likewise.
47929 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
47931 2006-12-12 Marco Gerards <marco@gnu.org>
47933 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
47935 * kern/env.c (grub_env_unset): Don't free the member `value' when
47936 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
47939 * normal/main.c (current_menu): Removed.
47940 (free_menu): Unset the `menu' environment variable.
47941 (grub_normal_menu_addentry): Make use of the environment variable
47942 `menu', instead of using the global `current_menu'. Allocate
47943 memory for the sourcecode of this entry.
47944 (read_config_file): New argument `nested', changed all callers.
47945 Only in the case of a new context, initialize a new menu. Set the
47946 `menu' environment variable.
47947 (grub_normal_execute): Don't set and unset the environment
47948 variable `menu' here anymore. Only free the menu when leaving the
47951 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
47954 2006-12-11 Marco Gerards <marco@gnu.org>
47956 * normal/menu_entry.c (run): Fix off by one bug so the last line
47957 is executed. Move the loader check to outside the loop.
47959 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
47961 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
47963 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
47965 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
47966 the number of sectors. Reported by Andrey Shuvikov
47967 <mr_hyro@yahoo.com>.
47969 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
47971 * kern/disk.c (grub_disk_read): When there is a read error, always
47972 try to read only the necessary data.
47974 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
47976 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
47978 [GRUB_UTIL] (grub_raid_fini): Likewise.
47979 [GRUB_UTIL] (grub_lvm_init): Likewise.
47980 [GRUB_UTIL] (grub_lvm_fini): Likewise.
47981 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
47982 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
47983 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
47984 and grub_raid_fini().
47986 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47988 * include/grub/types.h (__unused): Rename to UNUSED.
47989 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
47990 (grub_elf64_size): Likewise.
47992 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
47994 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
47995 grub_error_push and grub_error_pop in the error-handling path.
47996 (grub_elf32_load_segment): Only call grub_file_read with non-zero
47999 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48001 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48002 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48003 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48004 (kernel_elf_SOURCES): Likewise.
48005 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48006 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48007 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48008 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48009 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48010 (elf_mod_SOURCES): New variable.
48011 (elf_mod_CFLAGS): Likewise.
48012 (elf_mod_LDFLAGS): Likewise.
48013 * include/grub/types.h (__unused): New macro.
48014 * include/grub/elfload.h: New file.
48015 * kern/elf.c: Likewise.
48016 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48017 (ELF32_LOADMASK): New macro.
48018 (ELF64_LOADMASK): Likewise.
48019 (vmlinux): Removed.
48020 (grub_linux_load32): New function.
48021 (grub_linux_load64): Likewise.
48022 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48023 Use grub_elf_t instead of grub_file_t.
48025 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48027 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48028 `catch_result' to struct set_color_args.
48030 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48032 * normal/menu.c: Include grub/script.h.
48033 * normal/menu_entry.c: Likewise.
48034 * include/grub/normal.h: Do not include grub/script.h.
48036 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48038 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48040 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48042 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48044 (grub_disk_close): Print debug messages when closing a disk.
48045 (grub_disk_read): Print debug messages when disk read fails.
48046 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48048 * kern/partition.c: Include misc.h.
48049 (grub_partition_iterate): Print debug messages when detecting
48052 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48054 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48056 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48058 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48060 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48061 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48063 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48065 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48066 instead of sizeof(lv). Patch by Michael Guntsche.
48068 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48070 * disk/lvm.c: Rename VGS to VG_LIST.
48071 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48072 (grub_lvm_open): Likewise.
48073 Thanks to Michael Guntsche for finding this bug.
48075 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48077 * configure.ac (AC_INIT): Bumped to 1.95.
48079 2006-10-14 Robert Millan <rmh@aybabtu.com>
48081 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48082 with "/dev/.static/dev/md".
48084 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48086 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48087 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48088 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48089 DRIVE_NAME are always freed.
48091 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48092 DOS_PART, as a DOS partition is counted from one instead of zero
48093 now. Reported by Robert Millan.
48095 2006-10-14 Robert Millan <rmh@aybabtu.com>
48097 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48098 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48099 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48100 string returned by grub_guess_root_device.
48101 * util/i386/pc/grub-setup.c: Likewise.
48102 * util/i386/pc/grub-probefs.c: Likewise.
48104 * util/i386/pc/grub-probefs.c: Rename to ...
48105 * util/i386/pc/grub-probe.c: ... this.
48106 * DISTLIST: Remove grub-probefs, add grub-probe.
48107 * conf/i386-efi.rmk: Likewise.
48108 * conf/i386-pc.rmk: Likewise.
48109 * util/i386/pc/grub-install.in: Likewise.
48111 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48112 choose which information we want to print.
48114 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48116 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48117 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48118 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48119 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48120 video/readers/tga.c and video/i386/pc/vbeutil.c.
48122 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48124 Added support for RAID and LVM.
48126 * disk/lvm.c: New file.
48127 * disk/raid.c: Likewise.
48128 * include/grub/lvm.h: Likewise.
48129 * include/grub/raid.h: Likewise.
48130 * include/grub/util/lvm.h: Likewise.
48131 * include/grub/util/raid.h: Likewise.
48132 * util/lvm.c: Likewise.
48133 * util/raid.c: Likewise.
48135 * include/grub/disk.h (grub_disk_dev_id): Add
48136 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48137 (grub_disk_get_size): New prototype.
48138 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48139 returns a partition.
48140 (grub_disk_get_size): New function.
48142 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48143 verbatim if grub_install_dos_part is -2.
48145 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48148 * util/i386/pc/grub-setup.c (setup): New argument
48149 MUST_EMBED. Force embedding of GRUB when the argument is
48150 true. Close FILE before returning.
48151 (main): Add support for RAID and LVM.
48153 * conf/common.rmk: Add RAID and LVM modules.
48154 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48156 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48158 * kern/misc.c (grub_strstr): New function.
48159 * include/grub/misc.h (grub_strstr): New prototype.
48161 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48163 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48165 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48167 * kern/misc.c (grub_strtoull): Guess the base only if not
48170 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48172 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48175 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48177 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48179 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48180 Remove `flags' argument. All callers changed.
48181 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48182 (IEEE1275_IHANDLE_INVALID): New variable.
48183 (IEEE1275_CELL_INVALID): New variable.
48184 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48185 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48186 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48187 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48188 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48189 codes from Open Firmware. All callers updated.
48190 (grub_ieee1275_next_property): Directly return Open Firmware return
48192 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48193 Standardize error checking from `grub_ieee1275_get_property'.
48194 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48195 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48197 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48199 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48200 `instance_to_package_args' to `instance_to_path_args'.
48202 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48203 `grub_ieee1275_chosen'.
48205 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48206 `grub_ieee1275_interpret'.
48208 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48210 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48212 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48214 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48215 (__cmpdi): Likewise.
48217 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48218 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48221 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48223 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48224 to type `grub_ssize_t'.
48225 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48227 2006-09-22 Marco Gerards <marco@gnu.org>
48229 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48232 2006-09-22 Marco Gerards <marco@gnu.org>
48234 * commands/echo.c: New file.
48236 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48238 * conf/common.rmk (echo_mod_SOURCES): New variable.
48239 (echo_mod_CFLAGS): Likewise.
48240 (echo_mod_LDFLAGS): Likewise.
48242 2006-09-22 Marco Gerards <marco@gnu.org>
48244 * normal/main.c (get_line): Malloc memory instead of using
48245 preallocated memory. Removed the arguments `cmdline' and
48246 `max_len'. Updated all callers.
48248 2006-09-22 Marco Gerards <marco@gnu.org>
48250 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48251 (normal_mod_DEPENDENCIES): Likewise.
48253 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48254 (normal_mod_DEPENDENCIES): Likewise.
48256 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48258 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48260 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48262 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48263 (normal_mod_DEPENDENCIES): Likewise.
48264 * conf/i386-pc.mk: Regenerate.
48265 * conf/i386-efi.mk: Likewise
48266 * conf/common.mk: Likewise.
48267 * conf/powerpc-ieee1275.mk: Likewise.
48268 * conf/sparc64-ieee1275.mk: Likewise.
48270 2006-09-22 Robert Millan <rmh@aybabtu.com>
48272 Sync with i386 version.
48273 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48274 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48276 2006-09-21 Robert Millan <rmh@aybabtu.com>
48278 Import from GRUB Legacy (lib/device.c):
48279 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48280 (init_device_map) [__linux__]: Add support for I2O devices.
48282 2006-09-14 Marco Gerards <marco@gnu.org>
48284 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48287 2006-09-14 Robert Millan <rmh@aybabtu.com>
48289 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48292 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48294 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48295 before adding it to device.map.
48297 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48299 * genmk.rb: Let GCC generate dependencies the first time it
48300 compiles a file; using the -MD option.
48301 * conf/common.mk: Regenerate.
48302 * conf/i386-pc.mk: Likewise.
48303 * conf/i386-efi.mk: Likewise.
48304 * conf/powerpc-ieee1275.mk: Likewise.
48305 * conf/sparc64-ieee1275.mk: Likewise.
48307 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48309 Move the prototypes of grub_setjmp and grub_longjmp to
48310 cpu/setjmp.h, so that each architecture may specify different
48313 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48314 (grub_longjmp): Likewise.
48315 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48316 (grub_longjmp): Likewise.
48317 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48318 (grub_longjmp): Likewise.
48320 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48321 [!GRUB_UTIL] (grub_longjmp): Removed.
48323 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48325 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48326 "color!" method does not return any value.
48328 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48330 * include/grub/bitmap.h: New file.
48332 * include/grub/i386/pc/vbeutil.h: Likewise.
48334 * video/bitmap.c: Likewise.
48336 * video/readers/tga.c: Likewise.
48338 * video/i386/pc/vbeutil.c: Likewise.
48340 * commands/videotest.c: Code cleanup and updated to reflect to new
48343 * term/gfxterm.c: Likewise.
48345 * video/video.c: Likewise.
48347 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48348 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48349 (bitmap_mod_SOURCES): New entry.
48350 (bitmap_mod_CFLAGS): Likewise.
48351 (bitmap_mod_LDFLAGS): Likewise.
48352 (tga_mod_SOURCES): Likewise.
48353 (tga_mod_CFLAGS): Likewise.
48354 (tga_mod_LDFLAGS): Likewise.
48356 * include/grub/video.h (grub_video_blit_operators): New enum type.
48357 (grub_video_render_target): Changed as forward declaration and moved
48358 actual definition to be video driver specific.
48359 (grub_video_adapter.blit_bitmap): Added blitting operator.
48360 (grub_video_adapter.blit_render_target): Likewise.
48361 (grub_video_blit_bitmap): Likewise.
48362 (grub_video_blit_render_target): Likewise.
48364 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48365 driver specific render target definition.
48366 (grub_video_vbe_map_rgba): Added driver internal helper.
48367 (grub_video_vbe_unmap_color): Updated to use
48368 grub_video_i386_vbeblit_info.
48369 (grub_video_vbe_get_video_ptr): Likewise.
48371 * include/grub/i386/pc/vbeblit.h
48372 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48373 grub_video_i386_vbeblit_info.
48374 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48375 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48376 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48377 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48378 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48379 (grub_video_i386_vbeblit_index_index): Likewise.
48380 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48381 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48382 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48383 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48385 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48388 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48389 include/grub/i386/pc/vbeblit.h.
48391 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48392 Updated to use grub_video_i386_vbeblit_info.
48393 (grub_video_i386_vbefill_R8G8B8): Likewise.
48394 (grub_video_i386_vbefill_index): Likewise.
48395 (grub_video_i386_vbefill): Added generic filler.
48397 * video/i386/pc/vbefill.c: Updated to reflect changes on
48398 include/grub/i386/pc/vbefill.h.
48400 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48401 grub_video_i386_vbeblit_info.
48402 (grub_video_vbe_unmap_color): Likewise.
48403 (grub_video_vbe_blit_glyph): Likewise.
48404 (grub_video_vbe_scroll): Likewise.
48405 (grub_video_vbe_draw_pixel): Removed function.
48406 (grub_video_vbe_get_pixel): Likewise.
48407 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48408 updated code to use it.
48409 (common_blitter): Added common blitter for render target and bitmap.
48410 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48411 (grub_video_vbe_blit_render_target): Likewise.
48413 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
48415 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48416 is in text mode if there is no console control protocol instance
48419 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48421 * include/grub/video.h: Code cleanup.
48423 * include/grub/i386/pc/vbe.h: Likewise.
48425 * video/i386/pc/vbe.c: Likewise.
48427 * video/i386/pc/vbeblit.c: Likewise.
48429 * video/i386/pc/vbefill.c: Likewise.
48431 * video/video.c: Likewise. Also added more comments.
48433 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48435 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48436 (struct grub_biosdisk_dap): Likewise.
48438 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48439 linkage settings for all functions.
48441 2006-07-12 Marco Gerards <marco@gnu.org>
48443 * configure.ac (--enable-mm-debug): Fix typo.
48445 * genkernsyms.sh.in: Use proper quoting for `CC'.
48447 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
48449 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
48450 (normal_mod_ASFLAGS): Remove "-m32".
48452 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
48454 * util/misc.c: Include config.h.
48455 [!HAVE_MEMALIGN]: Do not include malloc.h.
48456 (grub_memalign): Use posix_memalign, if present. Then, use
48457 memalign, if present. Otherwise, emit an error.
48459 * util/grub-emu.c: Do not include malloc.h.
48461 * include/grub/util/misc.h: Include unistd.h. This is required for
48462 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
48463 D. Eades III <hde@foobar-qux.org>.
48465 * configure.ac (AC_GNU_SOURCE): Added.
48466 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
48469 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
48471 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
48472 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
48474 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
48476 * include/grub/types.h (grub_host_addr_t): Rename to
48477 grub_target_addr_t.
48478 (grub_host_off_t): Rename to grub_target_off_t.
48479 (grub_host_size_t): Rename to grub_target_size_t.
48480 (grub_host_ssize_t): Rename to grub_target_ssize_t.
48481 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
48483 * include/grub/kernel.h (struct grub_module_header): Change type
48484 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
48485 (grub_module_info): Likewise.
48487 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48489 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
48490 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
48491 Velazquez <jesus.velazquez@gmail.com>.
48493 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48495 Count partitions from 1 instead of 0 in the string representation
48496 of partitions. Still use 0-based internally.
48498 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
48499 (sun_partition_map_iterate): Use grub_partition_t instead of
48500 struct grub_partition *. Cast DESC->START_CYLINDER to
48501 grub_uint64_t after converting the endian.
48502 (sun_partition_map_probe): Subtract 1 for PARTNUM.
48503 (sun_partition_map_get_name): Add 1 to P->INDEX.
48505 * partmap/pc.c (grub_partition_parse): Subtract 1 for
48507 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
48509 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
48510 zero instead of one.
48511 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
48512 (gpt_partition_map_get_name): Add 1 into P->INDEX.
48514 * partmap/apple.c (apple_partition_map_iterate): Change the type
48515 of POS to unsigned.
48516 (apple_partition_map_probe): Subtract 1 for PARTNUM.
48517 (apple_partition_map_get_name): Add 1 into P->INDEX.
48519 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
48520 of POS to unsigned.
48521 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
48522 calculate the offset of a partition.
48523 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
48524 (amiga_partition_map_get_name): Add 1 into P->INDEX.
48526 * partmap/acorn.c (acorn_partition_map_find): Change the type of
48527 SECTOR to grub_disk_addr_t.
48528 (acorn_partition_map_iterate): Likewise.
48529 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
48530 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
48532 (acorn_partition_map_get_name): Add 1 into P->INDEX.
48534 * kern/i386/pc/init.c (make_install_device): Add 1 into
48535 GRUB_INSTALL_DOS_PART.
48537 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
48540 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
48542 Clean up the code to support 64-bit addressing in disks and
48543 files. This change is not enough for filesystems yet.
48545 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
48546 type of "start" to grub_uint64_t.
48547 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
48548 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
48549 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
48552 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
48553 to grub_disk_addr_t.
48555 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
48558 * partmap/pc.c (pc_partition_map_iterate): Likewise.
48560 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
48563 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
48565 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
48567 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
48569 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
48570 to grub_off_t, to detect an error from grub_file_seek.
48571 (grub_multiboot_load_elf32): Likewise.
48573 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
48574 maximum unsigned long value when an overflow is detected.
48575 (grub_strtoull): New function.
48576 (grub_divmod64): Likewise.
48577 (grub_lltoa): use grub_divmod64.
48579 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
48581 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
48582 the pointer to next character. Use grub_strtoull instead of
48584 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
48585 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
48588 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
48589 return value is signed.
48590 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
48591 test if OFFSET is less than zero, as OFFSET is unsigned now.
48593 * kern/disk.c (struct grub_disk_cache): Change the type of
48594 "sector" to grub_disk_addr_t.
48595 (grub_disk_cache_get_index): Change the type of SECTOR to
48596 grub_disk_addr_t. Calculate the hash with SECTOR casted to
48597 unsigned after shifting.
48598 (grub_disk_cache_invalidate): Change the type of SECTOR to
48600 (grub_disk_cache_unlock): Likewise.
48601 (grub_disk_cache_store): Likewise.
48602 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
48603 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
48604 grub_disk_addr_t and grub_uint64_t, respectively.
48605 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
48606 body, as the value of OFFSET is tweaked by
48607 grub_disk_check_range. Change the types of START_SECTOR, LEN and
48608 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
48610 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
48611 body, as the value of OFFSET is tweaked by
48612 grub_disk_check_range. Change the types of LEN and N to
48615 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
48616 and "saved_offset" to grub_off_t.
48617 (test_header): Cast BUF to char *.
48618 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
48620 (grub_gzio_read): Change the types of OFFSET and SIZE to
48621 grub_off_t and grub_size_t, respectively.
48623 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
48625 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
48626 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
48627 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
48628 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
48629 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
48631 * include/grub/types.h (grub_off_t): Unconditionally set to
48633 (grub_disk_addr_t): Changed to grub_uint64_t.
48635 * include/grub/partition.h (struct grub_partition): Change the
48636 types of "start", "len" and "offset" to grub_disk_addr_t,
48637 grub_uint64_t and grub_disk_addr_t, respectively.
48638 (grub_partition_get_start): Return grub_disk_addr_t.
48639 (grub_partition_get_len): Return grub_uint64_t.
48641 * include/grub/misc.h (grub_strtoull): New prototype.
48642 (grub_divmod64): Likewise.
48644 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
48645 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
48646 grub_off_t, respectively.
48647 All callers and references changed.
48649 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
48650 grub_size_t in "read".
48651 All callers and references changed.
48653 * include/grub/file.h (struct grub_file): Change the types of
48654 "offset" and "size" to grub_off_t and grub_off_t,
48655 respectively. Change the type of SECTOR to grub_disk_addr_t in
48657 (grub_file_read): Change the type of LEN to grub_size_t.
48658 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
48660 (grub_file_size): Return grub_off_t.
48661 (grub_file_tell): Likewise.
48662 All callers and references changed.
48664 * include/grub/disk.h (struct grub_disk_dev): Change the types of
48665 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
48667 (struct grub_disk): Change the type of "total_sectors" to
48668 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
48670 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
48671 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
48672 (grub_disk_write): Likewise.
48673 All callers and references changed.
48675 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
48676 char * for grub_strncmp to silence gcc.
48677 (grub_iso9660_mount): Likewise.
48678 (grub_iso9660_mount): Likewise.
48679 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
48681 (grub_iso9660_iterate_dir): Likewise.
48682 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
48684 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
48685 LEN to grub_disk_addr_t and grub_size_t, respectively.
48687 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
48689 * fs/jfs.c (grub_jfs_read_file): Likewise.
48691 * fs/minix.c (grub_jfs_read_file): Likewise.
48693 * fs/sfs.c (grub_jfs_read_file): Likewise.
48695 * fs/ufs.c (grub_jfs_read_file): Likewise.
48697 * fs/xfs.c (grub_jfs_read_file): Likewise.
48699 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
48700 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
48703 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
48704 BLKNR to -1 instead of returning GRUB_ERRNO.
48705 (grub_ext2_read_file): Change the types of SECTOR and
48706 LEN to grub_disk_addr_t and grub_size_t, respectively.
48708 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
48709 LEN to grub_disk_addr_t and grub_size_t, respectively.
48711 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
48714 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
48715 string. Do not cast SECTOR explicitly.
48717 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
48718 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
48719 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
48720 grub_disk_addr_t and grub_size_t, respectively. If the sector is
48721 over 2TB and LBA mode is not supported, raise an error.
48722 (get_safe_sectors): New function.
48723 (grub_biosdisk_read): Use get_safe_sectors.
48724 (grub_biosdisk_write): Likewise.
48726 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
48727 (grub_efidisk_write): Likewise.
48729 * disk/loopback.c (delete_loopback): Cosmetic changes.
48730 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
48732 (grub_loopback_open): Likewise.
48733 (grub_loopback_read): Likewise. Also, change the type of POS to
48734 grub_off_t, and fix the usage of grub_memset.
48736 * commands/i386/pc/play.c: Include grub/machine/time.h.
48738 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
48741 * commands/configfile.c: Include grub/env.h.
48743 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
48744 GRUB_ERRNO directly instead. Change the type of POS to
48745 grub_off_t. Follow the coding standard.
48747 * commands/blocklist.c: Include grub/partition.h.
48748 (grub_cmd_blocklist): Return an error if the underlying device is
48749 not a disk. Take the starting sector of a partition into account,
48750 if a partition is used.
48752 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
48754 (lba_mode): Support 64-bit addresses.
48755 (chs_mode): Likewise.
48756 (copy_buffer): Adapted to the new offsets of a length field and a
48758 (blocklist_default_start): Allocate 64-bit space.
48760 * boot/i386/pc/boot.S (force_lba): Removed.
48761 (boot_drive): Moved to under KERNEL_SECTOR.
48762 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
48764 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
48766 (lba_mode): Refactored to support a 64-bit address. More size
48768 (setup_sectors): Likewise.
48770 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
48772 * DISTLIST: Added include/grub/i386/linux.h. Removed
48773 include/grub/i386/pc/linux.h
48775 * configure.ac (AC_INIT): Bumped to 1.94.
48777 * config.guess: Updated from gnulib.
48778 * config.sub: Likewise.
48779 * install-sh: Likewise.
48780 * mkinstalldirs: Likewise.
48782 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
48784 * conf/common.rmk (grub_modules_init.lst): Depended on
48785 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
48788 * genmk.rb (PModule::rule): Reverted the previous change.
48790 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
48792 * conf/common.rmk (grub_modules_init.lst): Depends on
48793 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
48794 that the target does not exist before producing.
48795 (grub_modules_init.h): Remove the target before generating.
48796 (grub_emu_init.c): Likewise.
48798 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
48800 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
48802 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
48803 for the target-specific tests. Make sure that we also have the
48804 up-to-date target variables for those tests.
48806 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
48808 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
48809 (PModule::rule): Likewise.
48811 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
48813 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
48814 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
48815 target-specific flags should be prefixed.
48816 (PModule::rule): Likewise.
48818 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
48820 * configure.ac (CMP): Check if cmp is available explicitly.
48822 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
48824 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
48825 (target_cpu): New variable.
48826 (pkglibdir): Use target_cpu instead of host_cpu.
48828 * util/i386/pc/grub-install.in (host_cpu): Removed.
48829 (target_cpu): New variable.
48830 (pkglibdir): Use target_cpu instead of host_cpu.
48832 * util/genmoddep.c: Removed.
48834 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
48835 instead of GRUB_HOST_SIZEOF_VOID_P.
48836 * kern/dl.c: Likewise.
48838 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
48840 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48841 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48842 (GRUB_TARGET_SIZEOF_LONG): ... this.
48843 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48844 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48845 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
48847 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48848 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48849 (GRUB_TARGET_SIZEOF_LONG): ... this.
48850 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48851 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48852 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
48854 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48855 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48856 (GRUB_TARGET_SIZEOF_LONG): ... this.
48857 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48858 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48860 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
48861 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
48862 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
48863 instead of GRUB_HOST_SIZEOF_LONG.
48864 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
48865 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
48866 GRUB_CPU_WORDS_BIGENDIAN.
48867 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
48868 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
48871 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
48872 (genmoddep_SOURCES): Likewise.
48873 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
48874 (genmoddep_SOURCES): Likewise.
48875 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
48876 (genmoddep_SOURCES): Likewise.
48877 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
48879 (genmoddep_SOURCES): Likewise.
48881 * genmoddep.awk: New file.
48883 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
48884 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
48885 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
48886 (PModule::rule): Likewise.
48887 (Program::rule): Likewise.
48888 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
48889 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
48892 * configure.ac: Rewritten intensively to use host and target
48893 instead of build and host, respectively.
48895 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
48896 (host_cpu): Removed.
48897 (target_cpu): New variable.
48898 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
48899 (BUILD_CC): Removed.
48900 (BUILD_CFLAGS): Likewise.
48901 (BUILD_CPPFLAGS): Likewise.
48902 (TARGET_CC): New variable.
48903 (TARGET_CFLAGS): Likewise.
48904 (TARGET_CPPFLAGS): Likewise.
48905 (TARGET_LDFLAGS): Likewise.
48907 (include): Use target_cpu instead of host_cpu.
48908 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
48910 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
48912 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
48914 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
48915 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
48916 field 'false' to 'exec_on_false'.
48917 (grub_script_create_cmdif): Renamed argument names to reflect above
48920 * normal/execute.c (grub_script_execute_cmdif): Likewise.
48922 * normal/script.c (grub_script_create_cmdif): Likewise.
48924 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
48926 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
48928 (grub_hfsplus_btree_recptr): Likewise.
48929 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
48930 FILEBLOCK both to pass a block number and store next block
48932 (grub_hfsplus_read_block): Rewritten heavily to support an extent
48933 overflow file correctly. Specify errors appropriately, because
48934 fshelp expects that GRUB_ERRNO is set when fails. Reuse
48935 grub_hfsplus_btree_recptr to get the pointer to a found key.
48936 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
48939 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
48941 (_linux_mod_SOURCES): New variable.
48942 (_linux_mod_CFLAGS): Likewise.
48943 (_linux_mod_LDFLAGS): Likewise.
48944 (linux_mod_SOURCES): Likewise.
48945 (linux_mod_CFLAGS): Likewise.
48946 (linux_mod_LDFLAGS): Likewise.
48948 * DISTLIST: Added loader/i386/efi/linux.c,
48949 loader/i386/efi/linux_normal.c and
48950 include/grub/i386/efi/loader.h.
48952 * loader/i386/efi/linux.c: New file.
48953 * loader/i386/efi/linux_normal.c: Likewise.
48954 * include/grub/i386/efi/loader.h: Likewise.
48956 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
48958 * commands/blocklist.c: New file.
48960 * DISTLIST: Added commands/blocklist.c.
48962 * term/efi/console.c (grub_console_highlight_color): Use a lighter
48963 color for the background, and a darker color for the foreground.
48964 (grub_console_checkkey): Return READ_KEY.
48965 (grub_console_cls): Set the background to
48966 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
48968 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
48970 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
48971 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
48973 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
48976 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
48977 BG. The spec is wrong again.
48979 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
48981 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
48983 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48984 commands/blocklist.c.
48985 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48987 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
48988 (blocklist_mod_SOURCES): New variable.
48989 (blocklist_mod_CFLAGS): Likewise.
48990 (blocklist_mod_LDFLAGS): Likewise.
48992 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
48994 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
48996 (lba_mode): Use %eax more intensively to reduce the code size.
48998 2006-05-20 Marco Gerards <marco@gnu.org>
49000 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49002 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49004 (script): Accept leading newlines.
49005 (newlines): New rule to describe 0 or more newlines.
49006 (commands): Accept `command' with trailing newline. Fixed the
49007 order in which arguments were passed to `grub_script_add_cmd'.
49008 Accept commands separated by newlines.
49009 (function): Changed to accept newlines.
49010 (menuentry) Rewritten.
49012 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49013 front of the list, instead of to the end.
49015 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49017 * util/i386/pc/grub-install.in (bindir): New variable.
49018 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49019 Shaver <lbgwjl@gmail.com>.
49021 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49023 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49024 grub/machine/linux.h
49025 * loader/i386/pc/linux.c: Likewise.
49027 * include/grub/i386/pc/linux.h: Moved to ...
49028 * include/grub/i386/linux.h: ... here.
49030 * include/grub/i386/linux.h (struct linux_kernel_params): New
49033 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49035 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49037 (grub_video_vbe_blit_glyph): Likewise.
49038 (grub_video_vbe_blit_bitmap): Likewise.
49039 (grub_video_vbe_blit_render_target): Likewise.
49041 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49043 * configure.ac (--with-platform): Properly quote the square
49046 2006-05-08 Marco Gerards <marco@gnu.org>
49048 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49050 (kernel_elf_HEADERS): ...to this. Updated all users.
49051 (grubof_symlist.c): Renamed from this...
49052 (kernel_elf_symlist.c): ...to this. Updated all users.
49053 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49054 (grubof_SOURCES): Renamed from this...
49055 (kernel_elf_SOURCES): ...to this.
49056 (grubof_HEADERS): Renamed from this...
49057 (kernel_elf_HEADERS): ...to this.
49058 (grubof_CFLAGS): Renamed from this...
49059 (kernel_elf_CFLAGS): ...to this.
49060 (grubof_ASFLAGS): Renamed from this...
49061 (kernel_elf_ASFLAGS): ...to this.
49062 (grubof_LDFLAGS): Renamed from this...
49063 (kernel_elf_LDFLAGS): ...to this.
49065 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49067 (kernel_elf_HEADERS): ...to this. Updated all users.
49068 (grubof_symlist.c): Renamed from this...
49069 (kernel_elf_symlist.c): ...to this. Updated all users.
49070 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49071 (grubof_SOURCES): Renamed from this...
49072 (kernel_elf_SOURCES): ...to this.
49073 (grubof_HEADERS): Renamed from this...
49074 (kernel_elf_HEADERS): ...to this.
49075 (grubof_CFLAGS): Renamed from this...
49076 (kernel_elf_CFLAGS): ...to this.
49077 (grubof_ASFLAGS): Renamed from this...
49078 (kernel_elf_ASFLAGS): ...to this.
49079 (grubof_LDFLAGS): Renamed from this...
49080 (kernel_elf_LDFLAGS): ...to this.
49082 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49083 `kernel.elf' instead of `grubof'.
49085 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49087 Add --with-platform to configure. Use pkglibdir instead of
49088 pkgdatadir. This is reported by Roger Leigh.
49090 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49091 (host_vendor): Likewise.
49092 (host_os): Likewise.
49093 (pkgdatadir): Likewise.
49094 (platform): New variable.
49095 (pkglibdir): Likewise.
49096 Use PKGLIBDIR instead of PKGDATADIR.
49098 * util/i386/pc/grub-install.in (datadir): Removed.
49099 (host_vendor): Likewise.
49100 (host_os): Likewise.
49101 (pkgdatadir): Likewise.
49102 (platform): New variable.
49103 (pkglibdir): Likewise.
49104 Use PKGLIBDIR instead of PKGDATADIR.
49106 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49107 instead of GRUB_DATADIR.
49109 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49111 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49114 * configure.ac (--with-platform): New option.
49115 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49117 * Makefile.in: Include a makefile based on PLATFORM instead of
49119 (pkgdatadir): Not appended by the machine type.
49120 (pkglibdir): Appended by the machine type.
49121 (host_vendor): Removed.
49122 (platform): New variable.
49123 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49124 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49125 (uninstall): Likewise.
49127 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49129 Use the environment context in the menu. Remove the commands
49130 "default" and "timeout", and use variables instead.
49132 * normal/menu.c: Include grub/env.h.
49133 (print_entry): Cast TITLE to silence gcc.
49134 (get_timeout): New function.
49135 (set_timeout): Likewise.
49136 (get_entry_number): Likewise.
49137 (run_menu): Use a default entry, a fallback entry and a timeout
49138 in the environment variables "default", "fallback" and
49139 "timeout". Also, tweak the default entry if it is not within the
49140 current menu entries.
49141 (grub_menu_run): Use a fallback entry in the environment variable
49144 * normal/main.c (read_config_file): Do not initialize
49145 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49147 (grub_normal_execute): Use a data slot to store the menu.
49149 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49150 fallback_entry and timeout.
49151 (struct grub_menu_list): Removed.
49152 (grub_menu_list_t): Likewise.
49153 (struct grub_context): Likewise.
49154 (grub_context_t): Likewise.
49155 (grub_context_get): Likewise.
49156 (grub_context_get_current_menu): Likewise.
49157 (grub_context_push_menu): Likewise.
49158 (grub_context_pop_menu): Likewise.
49159 (grub_default_init): Likewise.
49160 (grub_default_fini): Likewise.
49161 (grub_timeout_init): Likewise.
49162 (grub_timeout_fini): Likewise.
49164 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49166 (normal_mod_SOURCES): Removed normal/context.c.
49168 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49169 commands/default.c, commands/timeout.c and normal/context.c.
49170 (normal_mod_SOURCES): Removed normal/context.c.
49172 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49173 commands/timeout.c and normal/context.c.
49174 (normal_mod_SOURCES): Removed normal/context.c.
49176 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49177 commands/default.c, commands/timeout.c and normal/context.c.
49178 (normal_mod_SOURCES): Removed normal/context.c.
49180 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49182 (default_mod_SOURCES): Removed.
49183 (default_mod_CFLAGS): Likewise.
49184 (default_mod_LDFLAGS): Likewise.
49185 (timeout_mod_SOURCES): Removed.
49186 (timeout_mod_CFLAGS): Likewise.
49187 (timeout_mod_LDFLAGS): Likewise.
49189 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49192 * commands/default.c: Removed.
49193 * commands/timeout.c: Likewise.
49194 * normal/context.c: Likewise.
49196 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49198 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49200 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49202 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49203 "next" to "prev" for readability.
49204 (struct grub_env_sorted_var): New struct.
49205 (grub_env_context): Renamed to ...
49206 (initial_context): ... this.
49207 (grub_env_var_context): Renamed to ...
49208 (current_context): ... this.
49209 (grub_env_find): Look only at CURRENT_CONTEXT.
49210 (grub_env_context_open): Rewritten to copy exported variables from
49212 (grub_env_context_close): Rewritten according to the new
49213 scheme. Also, add an assertion to prevent the initial context from
49215 (grub_env_insert): Removed the code for the sorted list.
49216 (grub_env_remove): Likewise.
49217 (grub_env_export): Simply mark the variable with
49218 GRUB_ENV_VAR_GLOBAL.
49219 (grub_env_set): A cosmetic change for naming consistency.
49220 (grub_env_get): Likewise.
49221 (grub_env_unset): Likewise.
49222 (grub_env_iterate): Rewritten to sort variables within this
49224 (grub_register_variable_hook): Fixed for naming consistency. Call
49225 grub_env_find again, only if NAME is not found at the first time.
49226 (mangle_data_slot_name): New function.
49227 (grub_env_set_data_slot): Likewise.
49228 (grub_env_get_data_slot): Likewise.
49229 (grub_env_unset_data_slot): Likewise.
49231 * include/grub/env.h (grub_env_var_type): New enum.
49232 (GRUB_ENV_VAR_LOCAL): New constant.
49233 (GRUB_ENV_VAR_GLOBAL): Likewise.
49234 (GRUB_ENV_VAR_DATA): Likewise.
49235 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49237 (grub_env_set): Replace VAR with NAME for consistency.
49238 (grub_register_variable_hook): Likewise.
49239 (grub_env_export): Specify the name of the argument.
49240 (grub_env_set_data_slot): New prototype.
49241 (grub_env_get_data_slot): Likewise.
49242 (grub_env_unset_data_slot): Likewise.
49244 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49246 Extend the loader so that GRUB can accept a loader which comes
49247 back to GRUB when a loaded image exits. Also, this change adds
49248 support for a chainloader on EFI.
49250 * term/efi/console.c: Include grub/misc.h.
49251 (grub_console_checkkey): Display a scan code on the top for
49252 debugging. This will be removed once the EFI port gets stable.
49253 Correct the scan code mapping.
49255 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49256 allocate memory from larger regions, in order to reduce the number
49257 of allocated regions. Otherwise, the MacOSX loader panics.
49258 (filter_memory_map): Avoid less than 1MB for compatibility with
49260 (add_memory_regions): Allocate from the tail of a region, if
49261 possible, to avoid allocating a region near to 1MB, for the MacOSX
49264 * kern/efi/init.c (grub_efi_set_prefix): Specify
49265 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49267 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49268 argument IMAGE_HANDLE and specify it to get a loaded image.
49269 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49270 grub_efi_get_loaded_image.
49271 (grub_efi_get_filename): Divide the length by the size of
49273 (grub_efi_get_device_path): New function.
49274 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49275 the length by the size of grub_efi_char16_t for a file path device
49278 * kern/loader.c (grub_loader_noreturn): New variable.
49279 (grub_loader_set): Accept a new argument NORETURN. Set
49280 GRUB_LOADER_NORETURN to NORETURN.
49281 All callers changed.
49282 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49285 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49287 (grub_efi_get_loaded_image): Take an argument to specify an image
49290 * include/grub/loader.h (grub_loader_set): Added one more argument
49293 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49294 instead of grub_efi_open_protocol.
49295 (grub_efidisk_get_device_name): Likewise.
49296 (grub_efidisk_close): Print a newline.
49297 (grub_efidisk_get_device_handle): Fixed to use
49298 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49299 GRUB_EFI_DEVICE_PATH_TYPE.
49301 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49302 * kern/efi/efi.c (device_path_guid): ... here.
49304 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49306 (kernel_mod_HEADERS): Added efi/disk.h.
49307 (_chain_mod_SOURCES): New variable.
49308 (_chain_mod_CFLAGS): Likewise.
49309 (_chain_mod_LDFLAGS): Likewise.
49310 (chain_mod_SOURCES): Likewise.
49311 (chain_mod_CFLAGS): Likewise.
49312 (chain_mod_LDFLAGS): Likewise.
49314 * DISTLIST: Added include/grub/efi/chainloader.h,
49315 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49317 * include/grub/efi/chainloader.h: New file.
49318 * loader/efi/chainloader.c: Likewise.
49319 * loader/efi/chainloader_normal.c: Likewise.
49321 2006-04-30 Marco Gerards <marco@gnu.org>
49323 * commands/configfile.c (grub_cmd_source): New function.
49324 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49325 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49327 2006-04-30 Marco Gerards <marco@gnu.org>
49329 * normal/execute.c (grub_script_execute_cmd): Change the return
49330 type to `grub_err_t'. Correctly return the error.
49331 (grub_script_execute_cmdline): In case a command line is not a
49332 command or a function, try to interpret it as an assignment.
49334 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49336 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49337 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49338 skip a node whose name is obviously invalid as UTF-16,
49339 i.e. contains a NUL character. Stop the iteration when the last
49340 directory entry is found. Instead of using the return value of
49341 grub_hfsplus_btree_iterate_node, store the value in RET and use
49342 it, because the iterator can be stopped by the last directory
49345 2006-04-30 Marco Gerards <marco@gnu.org>
49347 * include/grub/env.h (grub_env_export): New prototype. Reported
49348 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49350 2006-04-30 Marco Gerards <marco@gnu.org>
49352 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49353 size of the extents in a catalog file record.
49355 2006-04-29 Marco Gerards <marco@gnu.org>
49357 * commands/configfile.c (grub_cmd_configfile): Execute the
49358 configfile within its own context.
49360 * include/grub/env.h (grub_env_context_open): New prototype.
49361 (grub_env_context_close): Likewise.
49363 * kern/env.c (grub_env): Removed.
49364 (grub_env_sorted): Likewise.
49365 (grub_env_context): New variable.
49366 (grub_env_var_context): Likewise.
49367 (grub_env_find): Search both the active context and the global
49369 (grub_env_context_open): New function.
49370 (grub_env_context_close): Likewise.
49371 (grub_env_insert): Likewise.
49372 (grub_env_remove): Likewise.
49373 (grub_env_export): Likewise.
49374 (grub_env_set): Changed to use helper functions to avoid code
49376 (grub_env_iterate): Rewritten so both the current context and the
49377 global context are being used.
49379 * normal/command.c (export_command): New function.
49380 (grub_command_init): Register the `export' function.
49382 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49384 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49385 explicitly to suppress gcc's warnings.
49386 * fs/fat.c (grub_fat_find_dir): Likewise.
49387 (grub_fat_label): Likewise.
49388 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49389 (grub_xfs_mount): Likewise.
49390 (grub_xfs_label): Likewise.
49391 * fs/affs.c (grub_affs_mount): Likewise.
49392 (grub_affs_label): Likewise.
49393 (grub_affs_iterate_dir): Likewise.
49394 * fs/sfs.c (grub_sfs_mount): Likewise.
49395 (grub_sfs_iterate_dir): Likewise.
49396 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49397 * fs/hfs.c (grub_hfs_mount): Likewise.
49398 (grub_hfs_cmp_catkeys): Likewise.
49399 (grub_hfs_find_dir): Likewise.
49400 (grub_hfs_dir): Likewise.
49401 (grub_hfs_label): Likewise.
49402 * fs/jfs.c (grub_jfs_mount): Likewise.
49403 (grub_jfs_opendir): Likewise.
49404 (grub_jfs_getent): Likewise.
49405 (grub_jfs_lookup_symlink): Likewise.
49406 (grub_jfs_label): Likewise.
49407 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49408 (grub_hfsplus_iterate_dir): Likewise.
49409 (grub_hfsplus_btree_iterate_node): Made static.
49411 * util/grub-emu.c (prefix): New variable.
49412 (grub_machine_set_prefix): New function.
49413 (main): Do not set the environment variable "prefix" here. Only
49414 set PREFIX, which is used later by grub_machine_set_prefix.
49416 * include/grub/video.h: Do not include grub/symbol.h.
49417 (grub_video_register): Not exported. This symbol is not defined in
49419 (grub_video_unregister): Likewise.
49420 (grub_video_iterate): Likewise.
49421 (grub_video_setup): Likewise.
49422 (grub_video_restore): Likewise.
49423 (grub_video_get_info): Likewise.
49424 (grub_video_get_blit_format): Likewise.
49425 (grub_video_set_palette): Likewise.
49426 (grub_video_get_palette): Likewise.
49427 (grub_video_set_viewport): Likewise.
49428 (grub_video_get_viewport): Likewise.
49429 (grub_video_map_color): Likewise.
49430 (grub_video_map_rgb): Likewise.
49431 (grub_video_map_rgba): Likewise.
49432 (grub_video_fill_rect): Likewise.
49433 (grub_video_blit_glyph): Likewise.
49434 (grub_video_blit_bitmap): Likewise.
49435 (grub_video_blit_render_target): Likewise.
49436 (grub_video_scroll): Likewise.
49437 (grub_video_swap_buffers): Likewise.
49438 (grub_video_create_render_target): Likewise.
49439 (grub_video_delete_render_target): Likewise.
49440 (grub_video_set_active_render_target): Likewise.
49442 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49444 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
49446 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
49447 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49448 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49449 instead of $(srcdir)/genkernsyms.sh.
49451 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
49452 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49453 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49454 instead of $(srcdir)/genkernsyms.sh.
49456 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
49457 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49458 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49459 instead of $(srcdir)/genkernsyms.sh.
49461 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
49462 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49463 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49464 instead of $(srcdir)/genkernsyms.sh.
49466 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
49469 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
49471 (gensymlist.sh): New target.
49472 (genkernsyms.sh): Likewise.
49474 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
49475 genkernsyms.sh.in and gensymlist.sh.in.
49477 * genkernsyms.sh: Removed.
49478 * gensymlist.sh: Likewise.
49480 * genkernsyms.sh.in: New file.
49481 * gensymlist.sh.in: Likewise.
49483 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49485 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
49486 clobber "prefix", since we may have already set it manually.
49488 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49490 * kern/misc.c (abort): New alias for grub_abort.
49492 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
49494 A new machine-specific function "grub_machine_set_prefix" is
49495 defined. This is called after loading modules, so that a prefix
49496 initialization can use modules. Also, this change adds an
49497 intensive debugging feature for the memory manager via the
49498 configure option "--enable-mm-debug".
49500 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
49503 * kern/sparc64/ieee1275/init.c (abort): Removed.
49504 (grub_stop): Likewise.
49505 (grub_exit): New function.
49506 (grub_set_prefix): Renamed to ...
49507 (grub_machine_set_prefix): ... this.
49508 (grub_machine_init): Do not call grub_set_prefix.
49510 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
49511 (grub_machine_set_prefix): ... this.
49512 (grub_machine_init): Do not call grub_set_prefix.
49514 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
49515 (grub_machine_init): Do not set the prefix here.
49517 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
49519 * kern/efi/init.c: Include grub/mm.h.
49520 (grub_efi_set_prefix): New function.
49522 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
49523 (grub_efi_get_filename): New function.
49524 (grub_print_device_path): Renamed to ...
49525 (grub_efi_print_device_path): ... this.
49527 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
49528 [MM_DEBUG] (grub_realloc): Likewise.
49529 [MM_DEBUG] (grub_free): Likewise.
49530 [MM_DEBUG] (grub_memalign): Likewise.
49531 [MM_DEBUG] (grub_mm_debug): New variable.
49532 [MM_DEBUG] (grub_debug_malloc): New function.
49533 [MM_DEBUG] (grub_debug_free): New function.
49534 [MM_DEBUG] (grub_debug_realloc): New function.
49535 [MM_DEBUG] (grub_debug_memalign): New function.
49537 * kern/misc.c (grub_abort): Print a newline to distinguish
49540 * kern/main.c (grub_main): Call grub_machine_set_prefix and
49541 grub_set_root_dev after loading modules. This is necessary when
49542 setting a prefix depends on modules.
49544 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
49545 (grub_efi_print_device_path): ... this.
49546 (grub_efi_get_filename): New prototype.
49547 (grub_efi_set_prefix): Likewise.
49549 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
49551 (grub_efidisk_get_device_handle): New prototype.
49552 (grub_efidisk_get_device_name): Likewise.
49554 * include/grub/mm.h: Include config.h.
49555 (MM_DEBUG): Removed.
49556 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
49557 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
49558 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
49559 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
49560 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
49561 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
49562 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
49563 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
49564 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
49566 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
49568 * disk/efi/efidisk.c: Include grub/partition.h.
49569 (iterate_child_devices): New function.
49570 (add_device): First, compare only last device path nodes, so that
49571 devices are sorted by the types.
49572 (grub_efidisk_get_device_handle): New function.
49573 (grub_efidisk_get_device_name): Likewise.
49575 * configure.ac (--enable-mm-debug): New option to enable the
49576 memory manager debugging feature. This makes the binary much
49577 bigger, so is disabled by default.
49579 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
49581 Use grub_abort instead of grub_stop, and grub_exit must be
49582 define in each architecture now. Also, this change adds support
49585 * util/i386/pc/grub-probefs.c: Include grub/term.h.
49586 (grub_getkey): New function.
49587 (grub_term_get_current): Likewise.
49589 * util/i386/pc/grub-setup.c: Include grub/term.h.
49590 (grub_getkey): New function.
49591 (grub_term_get_current): Likewise.
49593 * util/misc.c (grub_stop): Renamed to ...
49594 (grub_exit): ... this.
49596 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
49597 (grub_exit): ... this.
49598 (grub_machine_init): Use grub_abort instead of abort.
49599 (grub_stop): Removed.
49601 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
49604 * kern/i386/pc/startup.S (grub_exit): New function.
49605 (cold_reboot): New label.
49607 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
49608 (grub_efi_init): Call grub_efidisk_init.
49609 (grub_efi_fini): Call grub_efidisk_fini.
49611 * kern/efi/efi.c: Include grub/mm.h.
49612 (grub_efi_console_control_guid): Renamed to ...
49613 (console_control_guid): ... this.
49614 (grub_efi_loaded_image_guid): Renamed to ...
49615 (loaded_image_guid): ... this.
49616 (grub_efi_locate_handle): New function.
49617 (grub_efi_open_protocol): Likewise.
49618 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
49619 GRUB_EFI_CONSOLE_CONTROL_GUID.
49620 (grub_efi_exit): Removed.
49621 (grub_stop): Likewise.
49622 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
49623 (grub_exit): New function.
49624 (grub_print_device_path): Likewise.
49626 * kern/rescue.c (grub_rescue_cmd_exit): New function.
49627 (grub_enter_rescue_mode): Register "exit".
49629 * kern/misc.c (grub_real_dprintf): A cosmetic change.
49630 (grub_abort): New function.
49632 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
49634 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
49636 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
49638 * include/grub/efi/efi.h (grub_efi_exit): Removed.
49639 (grub_print_device_path): New prototype.
49640 (grub_efi_locate_handle): Likewise.
49641 (grub_efi_open_protocol): Likewise.
49643 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
49644 * disk/efi/efidisk.c: Likewise.
49646 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
49648 * include/grub/efi/console_control.h
49649 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
49651 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
49652 last 8 bytes as an array.
49653 (GRUB_EFI_DISK_IO_GUID): New macro.
49654 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
49655 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
49656 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
49658 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
49659 (struct grub_efi_device_path): Rename the member "sub_type" to
49661 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
49662 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
49663 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
49664 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
49665 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
49666 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
49667 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
49668 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
49669 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
49670 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
49671 (struct grub_efi_pci_device_path): New structure.
49672 (grub_efi_pci_device_path_t): New type.
49673 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
49674 (struct grub_efi_pccard_device_path): New structure.
49675 (grub_efi_pccard_device_path_t): New type.
49676 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
49677 (struct grub_efi_memory_mapped_device_path): New structure.
49678 (grub_efi_memory_mapped_device_path_t): New type.
49679 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
49680 (struct grub_efi_vendor_device_path): New structure.
49681 (grub_efi_vendor_device_path_t): New type.
49682 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
49683 (struct grub_efi_controller_device_path): New structure.
49684 (grub_efi_controller_device_path_t): New type.
49685 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
49686 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
49687 (struct grub_efi_acpi_device_path): New structure.
49688 (grub_efi_acpi_device_path_t): New type.
49689 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
49690 (struct grub_efi_expanded_acpi_device_path): New structure.
49691 (grub_efi_expanded_acpi_device_path_t): New type.
49692 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
49693 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
49694 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
49695 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
49696 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
49697 (struct grub_efi_atapi_device_path): New structure.
49698 (grub_efi_atapi_device_path_t): New type.
49699 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
49700 (struct grub_efi_fibre_channel_device_path): New structure.
49701 (grub_efi_fibre_channel_device_path_t): New type.
49702 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
49703 (struct grub_efi_1394_device_path): New structure.
49704 (grub_efi_1394_device_path_t): New type.
49705 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
49706 (struct grub_efi_usb_device_path): New structure.
49707 (grub_efi_usb_device_path_t): New type.
49708 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
49709 (struct grub_efi_usb_class_device_path): New structure.
49710 (grub_efi_usb_class_device_path_t): New type.
49711 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
49712 (struct grub_efi_i2o_device_path): New structure.
49713 (grub_efi_i2o_device_path_t): New type.
49714 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
49715 (struct grub_efi_mac_address_device_path): New structure.
49716 (grub_efi_mac_address_device_path_t): New type.
49717 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
49718 (struct grub_efi_ipv4_device_path): New structure.
49719 (grub_efi_ipv4_device_path_t): New type.
49720 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
49721 (struct grub_efi_ipv6_device_path): New structure.
49722 (grub_efi_ipv6_device_path_t): New type.
49723 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
49724 (struct grub_efi_infiniband_device_path): New structure.
49725 (grub_efi_infiniband_device_path_t): New type.
49726 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
49727 (struct grub_efi_uart_device_path): New structure.
49728 (grub_efi_uart_device_path_t): New type.
49729 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
49730 (struct grub_efi_vendor_messaging_device_path): New structure.
49731 (grub_efi_vendor_messaging_device_path_t): New type.
49732 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
49733 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
49734 (struct grub_efi_hard_drive_device_path): New structure.
49735 (grub_efi_hard_drive_device_path_t): New type.
49736 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
49737 (struct grub_efi_cdrom_device_path): New structure.
49738 (grub_efi_cdrom_device_path_t): New type.
49739 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
49740 (struct grub_efi_vendor_media_device_path): New structure.
49741 (grub_efi_vendor_media_device_path_t): New type.
49742 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
49743 (struct grub_efi_file_path_device_path): New structure.
49744 (grub_efi_file_path_device_path_t): New type.
49745 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
49746 (struct grub_efi_protocol_device_path): New structure.
49747 (grub_efi_protocol_device_path_t): New type.
49748 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
49749 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
49750 (struct grub_efi_bios_device_path): New structure.
49751 (grub_efi_bios_device_path_t): New type.
49752 (struct grub_efi_disk_io): New structure.
49753 (grub_efi_disk_io_t): New type.
49754 (struct grub_efi_block_io_media): New structure.
49755 (grub_efi_block_io_media_t): New type.
49756 (struct grub_efi_block_io): New structure.
49757 (grub_efi_block_io_t): New type.
49759 * include/grub/misc.h (grub_stop): Removed.
49760 (grub_exit): New prototype.
49761 (grub_abort): Likewise.
49763 * include/grub/disk.h (enum grub_disk_dev_id): Added
49764 GRUB_DISK_DEVICE_EFIDISK_ID.
49766 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
49767 disk/efi/efidisk.c.
49768 (kernel_syms.lst): Remove the target if an error occurs.
49770 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
49772 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
49773 as it was simply too buggy.
49775 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
49777 * kern/misc.c (grub_lltoa): New function.
49778 (grub_vsprintf): Added support for the long long suffix,
49781 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
49783 * Makefile.in (LDFLAGS): Add variable.
49784 (LD): Remove variable.
49785 * configure.ac: Add -m32 to LDFLAGS.
49786 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
49787 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
49788 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
49789 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
49790 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
49792 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
49793 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
49794 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
49796 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
49798 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
49799 length for unknown glyph.
49801 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
49803 Add support for pre-loaded modules into the EFI port.
49805 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
49806 completely. Accept one more argument DIR. The caller has changed.
49808 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
49810 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
49811 (grub_efi_loaded_image_guid): New variable.
49812 (grub_efi_get_loaded_image): New function.
49813 (grub_arch_modules_addr): Likewise.
49815 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
49818 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
49819 (struct grub_efi_loaded_image): New structure.
49820 (grub_efi_loaded_image_t): New type.
49822 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
49824 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
49825 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
49826 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
49828 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
49830 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
49832 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
49834 * DISTLIST: Added include/grub/efi/console.h,
49835 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
49836 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
49838 * include/grub/efi/console.h: New file.
49839 * include/grub/efi/time.h: Likewise.
49840 * include/grub/i386/efi/kernel.h: Likewise.
49841 * kern/efi/init.c: Likewise.
49842 * kern/efi/mm.c: Likewise.
49843 * term/efi/console.c: Likewise.
49845 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
49846 (grub_stop): Removed.
49847 (grub_get_rtc): Likewise.
49848 (grub_machine_init): Simply call grub_efi_init.
49849 (grub_machine_fini): Call grub_efi_fini.
49851 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
49852 (grub_efi_output_string): Removed.
49853 (grub_efi_stall): New function.
49854 (grub_stop): Likewise.
49855 (grub_get_rtc): Likewise.
49857 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
49858 (grub_efi_stall): New prototype.
49859 (grub_efi_allocate_pages): Likewise.
49860 (grub_efi_free_pages): Likewise.
49861 (grub_efi_get_memory_map): Likewise.
49862 (grub_efi_mm_init): Likewise.
49863 (grub_efi_mm_fini): Likewise.
49864 (grub_efi_init): Likewise.
49865 (grub_efi_fini): Likewise.
49867 * include/grub/i386/efi/time.h: Do not include
49868 grub/symbol.h. Include grub/efi/time.h.
49869 (GRUB_TICKS_PER_SECOND): Removed.
49870 (grub_get_rtc): Likewise.
49872 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
49873 Added padding. The EFI spec is buggy.
49874 (GRUB_EFI_BLACK): New macro.
49875 (GRUB_EFI_BLUE): Likewise.
49876 (GRUB_EFI_GREEN): Likewise.
49877 (GRUB_EFI_CYAN): Likewise.
49878 (GRUB_EFI_RED): Likewise.
49879 (GRUB_EFI_MAGENTA): Likewise.
49880 (GRUB_EFI_BROWN): Likewise.
49881 (GRUB_EFI_LIGHTGRAY): Likewise.
49882 (GRUB_EFI_BRIGHT): Likewise.
49883 (GRUB_EFI_DARKGRAY): Likewise.
49884 (GRUB_EFI_LIGHTBLUE): Likewise.
49885 (GRUB_EFI_LIGHTGREEN): Likewise.
49886 (GRUB_EFI_LIGHTCYAN): Likewise.
49887 (GRUB_EFI_LIGHTRED): Likewise.
49888 (GRUB_EFI_LIGHTMAGENTA): Likewise.
49889 (GRUB_EFI_YELLOW): Likewise.
49890 (GRUB_EFI_WHITE): Likewise.
49891 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
49892 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
49893 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
49894 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
49895 (GRUB_EFI_BACKGROUND_RED): Likewise.
49896 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
49897 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
49898 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
49899 (GRUB_EFI_TEXT_ATTR): Likewise.
49901 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
49902 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
49903 (kernel_mod_HEADERS): Added efi/time.h.
49905 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
49907 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
49908 include/grub/efi/api.h, include/grub/efi/console_control.h,
49909 include/grub/efi/efi.h, include/grub/efi/pe32.h,
49910 include/grub/i386/efi/time.h, kern/efi/efi.c,
49911 kern/i386/efi/init.c, kern/i386/efi/startup.S,
49912 and util/i386/efi/grub-mkimage.c.
49914 * Makefile.in (RMKFILES): Added i386-efi.rmk.
49916 * genmk.rb (PModule#rule): Do not export symbols if
49917 #{prefix}_EXPORTS is set to "no".
49919 * conf/i386-efi.mk: New file.
49920 * conf/i386-efi.rmk: Likewise.
49921 * include/grub/efi/api.h: Likewise.
49922 * include/grub/efi/console_control.h: Likewise.
49923 * include/grub/efi/efi.h: Likewise.
49924 * include/grub/efi/pe32.h: Likewise.
49925 * include/grub/i386/efi/time.h: Likewise.
49926 * kern/efi/efi.c: Likewise.
49927 * kern/i386/efi/init.c: Likewise.
49928 * kern/i386/efi/startup.S: Likewise.
49929 * util/i386/efi/grub-mkimage.c: Likewise.
49931 2006-04-17 Marco Gerards <marco@gnu.org>
49933 * include/grub/script.h: Include <grub/parser.h> and
49934 "grub_script.tab.h".
49935 (struct grub_lexer_param): New struct.
49936 (struct grub_parser_param): Likewise.
49937 (grub_script_create_arglist): Pass the state in an argument.
49938 (grub_script_add_arglist): Likewise.
49939 (grub_script_create_cmdline): Likewise.
49940 (grub_script_create_cmdblock): Likewise.
49941 (grub_script_create_cmdif): Likewise.
49942 (grub_script_create_cmdmenu): Likewise.
49943 (grub_script_add_cmd): Likewise.
49944 (grub_script_arg_add): Likewise.
49945 (grub_script_lexer_ref): Likewise.
49946 (grub_script_lexer_deref): Likewise.
49947 (grub_script_lexer_record_start): Likewise.
49948 (grub_script_lexer_record_stop): Likewise.
49949 (grub_script_mem_record): Likewise.
49950 (grub_script_mem_record_stop): Likewise.
49951 (grub_script_malloc): Likewise.
49952 (grub_script_yylex): Likewise.
49953 (grub_script_yyparse): Likewise.
49954 (grub_script_yyerror): Likewise.
49955 (grub_script_yylex): Likewise.
49956 (grub_script_lexer_init): Return the state.
49958 * normal/lexer.c (grub_script_lexer_state): Removed variable.
49959 (grub_script_lexer_done): Likewise.
49960 (grub_script_lexer_getline): Likewise.
49961 (grub_script_lexer_refs): Likewise.
49962 (script): Likewise.
49963 (newscript): Likewise.
49964 (record): Likewise.
49965 (recording): Likewise.
49966 (recordpos): Likewise.
49967 (recordlen): Likewise.
49968 (grub_script_lexer_init): Return the state instead of setting
49970 (grub_script_lexer_ref): Use the newly added argument for state
49971 instead of globals.
49972 (grub_script_lexer_deref): Likewise.
49973 (grub_script_lexer_record_start): Likewise.
49974 (grub_script_lexer_record_stop): Likewise.
49975 (recordchar): Likewise.
49976 (nextchar): Likewise.
49977 (grub_script_yylex2): Likewise.
49978 (grub_script_yylex): Likewise.
49979 (grub_script_yyerror): Likewise.
49981 * normal/parser.y (func_mem): Removed variable.
49982 (menu_entry): Likewise.
49984 (%lex-param): New parser option.
49985 (%parse-param): Likewise.
49986 (script): Always return the AST.
49987 (argument): Pass the state around.
49988 (arguments): Likewise.
49989 (grubcmd): Likewise.
49990 (commands): Likewise.
49991 (function): Likewise.
49992 (menuentry): Likewise.
49993 (if_statement): Likewise.
49996 * normal/script.c (grub_script_memused): Removed variable.
49997 (grub_script_parsed): Likewise.
49998 (grub_script_malloc): Added a state argument. Use that instead of
50000 (grub_script_mem_record): Likewise.
50001 (grub_script_mem_record_stop): Likewise.
50002 (grub_script_arg_add): Likewise.
50003 (grub_script_add_arglist): Likewise.
50004 (grub_script_create_cmdline): Likewise.
50005 (grub_script_create_cmdif): Likewise.
50006 (grub_script_create_cmdmenu): Likewise.
50007 (grub_script_add_cmd): Likewise.
50008 (grub_script_parse): Setup the state before calling the parser.
50010 2006-04-16 Marco Gerards <marco@gnu.org>
50012 * normal/command.c (grub_command_init): Remove the title command.
50014 * normal/lexer.c (grub_script_yylex): Renamed from this...
50015 (grub_script_yylex2): ... to this.
50016 (grub_script_yylex): New function. Temporary
50017 introduced to filter some tokens.
50018 (grub_script_yyerror): Print a newline.
50020 * normal/main.c (read_config_file): Output information about the
50021 lines that contain errors. Wait for a key after all lines have
50022 been processed. Don't return an empty menu.
50024 * normal/parser.y (func_mem): Don't initialize.
50025 (menu_entry): Likewise.
50026 (err): New variable.
50027 (script): Don't return anything when an error was encountered.
50028 (ws, returns): Removed rules.
50029 (argument): Disabled concatenated variable support.
50030 (arguments): Remove explicit separators.
50031 (grubcmd): Likewise.
50032 (function): Likewise.
50033 (menuentry): Likewise.
50035 (commands): Likewise. Add error handling.
50037 * normal/script.c (grub_script_create_cmdline): If
50038 `grub_script_parsed' is 0, assume the parser encountered an error.
50040 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50042 * configure.ac: Add support for EFI. Fix the typo
50043 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50045 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50047 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50048 foreign multibyte characters should be shown correctly.
50050 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50052 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50054 (read_config_file): Made it to close file before returning.
50056 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50058 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50059 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50060 video/i386/pc/vbefill.c.
50062 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50063 video/i386/pc/vbefill.c.
50065 * include/grub/video.h (grub_video_blit_format): New enum.
50066 (grub_video_mode_info): Added new member blit_format.
50067 (grub_video_get_blit_format): New function prototype.
50069 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50070 function prototype.
50071 (grub_video_vbe_map_rgb): Likewise.
50072 (grub_video_vbe_unmap_color): Likewise.
50074 * include/grub/i386/pc/vbeblit.h: New file.
50076 * include/grub/i386/pc/vbefill.h: New file.
50078 * video/video.c (grub_video_get_blit_format): New function.
50079 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50080 (grub_video_vbe_map_rgb): Likewise.
50081 (grub_video_vbe_unmap_color): Likewise.
50083 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50085 (grub_video_vbe_blit_render_target): Changed to use more optimized
50087 (grub_video_vbe_setup): Added detection for optimized settings.
50088 (grub_video_vbe_create_render_target): Likewise.
50090 * video/i386/pc/vbeblit.c: New file.
50092 * video/i386/pc/vbefill.c: New file.
50094 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50096 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50099 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50100 parsing to support both hex and dec ranges. If filename was missing
50101 show usage information.
50103 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50105 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50106 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50108 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50109 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50110 (video_mod_SOURCES): Added.
50111 (video_mod_CFLAGS): Likewise.
50112 (video_mod_LDFLAGS): Likewise.
50113 (gfxterm_mod_SOURCES): Likewise.
50114 (gfxterm_mod_CFLAGS): Likewise.
50115 (gfxterm_mod_LDFLAGS): Likewise.
50116 (videotest_mod_SOURCES): Likewise.
50117 (videotest_mod_CFLAGS): Likewise.
50118 (videotest_mod_LDFLAGS): Likewise.
50119 (vesafb_mod_SOURCES): Removed.
50120 (vesafb_mod_CFLAGS): Likewise.
50121 (vesafb_mod_LDFLAGS): Likewise.
50122 (vga_mod_SOURCES): Likewise.
50123 (vga_mod_CFLAGS): Likewise.
50124 (vga_mod_LDFLAGS): Likewise.
50126 * commands/videotest.c: New file.
50128 * font/manager.c (fill_with_default_glyph): Modified to use
50130 (grub_font_get_glyph): Likewise.
50131 (fontmanager): Renamed from this...
50132 (font_manager): ... to this.
50134 * include/grub/font.h (grub_font_glyph): Added new structure.
50135 (grub_font_get_glyph): Modified to use grub_font_glyph.
50137 * include/grub/misc.h (grub_abs): Added as inline function.
50139 * include/grub/video.h: New file.
50141 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50142 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50143 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50144 (grub_vbe_get_controller_info): Renamed from this...
50145 (grub_vbe_bios_get_controller_info): ... to this.
50146 (grub_vbe_get_mode_info): Renamed from this...
50147 (grub_vbe_bios_get_mode_info): ... to this.
50148 (grub_vbe_set_mode): Renamed from this...
50149 (grub_vbe_bios_set_mode): ... to this.
50150 (grub_vbe_get_mode): Renamed from this...
50151 (grub_vbe_bios_get_mode): ... to this.
50152 (grub_vbe_set_memory_window): Renamed from this...
50153 (grub_vbe_bios_set_memory_window): ... to this.
50154 (grub_vbe_get_memory_window): Renamed from this...
50155 (grub_vbe_bios_get_memory_window): ... to this.
50156 (grub_vbe_set_scanline_length): Renamed from this...
50157 (grub_vbe_set_scanline_length): ... to this.
50158 (grub_vbe_get_scanline_length): Renamed from this...
50159 (grub_vbe_bios_get_scanline_length): ... to this.
50160 (grub_vbe_set_display_start): Renamed from this...
50161 (grub_vbe_bios_set_display_start): ... to this.
50162 (grub_vbe_get_display_start): Renamed from this...
50163 (grub_vbe_bios_get_display_start): ... to this.
50164 (grub_vbe_set_palette_data): Renamed from this...
50165 (grub_vbe_bios_set_palette_data): ... to this.
50166 (grub_vbe_set_pixel_rgb): Removed.
50167 (grub_vbe_set_pixel_index): Likewise.
50169 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50171 (grub_vbe_bios_get_controller_info): ... to this.
50172 (grub_vbe_get_mode_info): Renamed from this...
50173 (grub_vbe_bios_get_mode_info): ... to this.
50174 (grub_vbe_set_mode): Renamed from this...
50175 (grub_vbe_bios_set_mode): ... to this.
50176 (grub_vbe_get_mode): Renamed from this...
50177 (grub_vbe_bios_get_mode): ... to this.
50178 (grub_vbe_set_memory_window): Renamed from this...
50179 (grub_vbe_bios_set_memory_window): ... to this.
50180 (grub_vbe_get_memory_window): Renamed from this...
50181 (grub_vbe_bios_get_memory_window): ... to this.
50182 (grub_vbe_set_scanline_length): Renamed from this...
50183 (grub_vbe_set_scanline_length): ... to this.
50184 (grub_vbe_get_scanline_length): Renamed from this...
50185 (grub_vbe_bios_get_scanline_length): ... to this.
50186 (grub_vbe_set_display_start): Renamed from this...
50187 (grub_vbe_bios_set_display_start): ... to this.
50188 (grub_vbe_get_display_start): Renamed from this...
50189 (grub_vbe_bios_get_display_start): ... to this.
50190 (grub_vbe_set_palette_data): Renamed from this...
50191 (grub_vbe_bios_set_palette_data): ... to this.
50192 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50193 getting corrupted after calling it. Added more pushes and pops.
50194 (grub_vbe_bios_set_mode): Likewise.
50195 (grub_vbe_bios_get_mode): Likewise.
50196 (grub_vbe_bios_get_memory_window): Likewise.
50197 (grub_vbe_bios_set_scanline_length): Likewise.
50198 (grub_vbe_bios_get_scanline_length): Likewise.
50199 (grub_vbe_bios_get_display_start): Likewise.
50200 (grub_vbe_bios_set_palette_data): Likewise.
50202 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50203 (cl_insert): Likewise.
50204 (cl_delete): Likewise.
50206 * term/gfxterm.c: New file.
50208 * term/i386/pc/vesafb.c: Removed file.
50210 * video/video.c: New file.
50212 * video/i386/pc/vbe.c (real2pm): Added new function.
50213 (grub_video_vbe_draw_pixel): Likewise.
50214 (grub_video_vbe_get_video_ptr): Likewise.
50215 (grub_video_vbe_get_pixel): Likewise
50216 (grub_video_vbe_init): Likewise.
50217 (grub_video_vbe_fini): Likewise.
50218 (grub_video_vbe_setup): Likewise.
50219 (grub_video_vbe_get_info): Likewise.
50220 (grub_video_vbe_set_palette): Likewise.
50221 (grub_video_vbe_get_palette): Likewise.
50222 (grub_video_vbe_set_viewport): Likewise.
50223 (grub_video_vbe_get_viewport): Likewise.
50224 (grub_video_vbe_map_color): Likewise.
50225 (grub_video_vbe_map_rgb): Likewise.
50226 (grub_video_vbe_map_rgba): Likewise.
50227 (grub_video_vbe_unmap_color): Likewise.
50228 (grub_video_vbe_fill_rect): Likewise.
50229 (grub_video_vbe_blit_glyph): Likewise.
50230 (grub_video_vbe_blit_bitmap): Likewise.
50231 (grub_video_vbe_blit_render_target): Likewise.
50232 (grub_video_vbe_scroll): Likewise.
50233 (grub_video_vbe_swap_buffers): Likewise.
50234 (grub_video_vbe_create_render_target): Likewise.
50235 (grub_video_vbe_delete_render_target): Likewise.
50236 (grub_video_vbe_set_active_render_target): Likewise.
50237 (grub_vbe_set_pixel_rgb): Remove function.
50238 (grub_vbe_set_pixel_index): Likewise.
50239 (index_color_mode): Remove static variable.
50240 (active_mode): Likewise.
50241 (framebuffer): Likewise.
50242 (bytes_per_scan_line): Likewise.
50243 (grub_video_vbe_adapter): Added new static variable.
50244 (framebuffer): Likewise.
50245 (render_target): Likewise.
50246 (initial_mode): Likewise.
50247 (mode_in_use): Likewise.
50248 (mode_list): Likewise.
50250 2006-03-10 Marco Gerards <marco@gnu.org>
50252 * configure.ac (AC_INIT): Bumped to 1.93.
50254 * DISTLIST: Added `include/grub/hfs.h'.
50256 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50258 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50259 18H, which might help the BIOS falling back to next boot media.
50261 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50263 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50264 Poe Chen <poe.poechen@gmail.com>.
50266 2006-01-17 Marco Gerards <marco@gnu.org>
50268 * include/grub/normal.h: Include <grub/script.h>.
50269 (grub_command_list): Removed struct.
50270 (grub_command_list_t): Removed type.
50271 (grub_menu_entry): Remove members `num' and `command_list'. Add
50272 members `commands' and `sourcecode'.
50273 * include/grub/script.h: Add inclusion guards.
50274 (grub_script_cmd_menuentry): New struct.
50275 (grub_script_execute_menuentry): New prototype.
50276 (grub_script_lexer_record_start): Likewise.
50277 (grub_script_lexer_record_stop): Likewise.
50278 * normal/execute.c (grub_script_execute_menuentry): New function.
50279 * normal/lexer.c (record, recording, recordpos, recordlen): New
50281 (grub_script_lexer_record_start): New function.
50282 (grub_script_lexer_record_stop): Likewise.
50283 (recordchar): Likewise.
50284 (nextchar): Likewise.
50285 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50286 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50287 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50288 (current_menu): New variable.
50289 (free_menu): Mainly rewritten.
50290 (grub_normal_menu_addentry): New function.
50291 (read_config_file): Rewritten.
50292 * normal/menu.c (run_menu_entry): Mainly rewritten.
50293 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50295 (run): Mainly rewritten.
50296 * normal/parser.y (menu_entry): New variable.
50297 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50298 (menuentry): New rule.
50299 (command): Add `menuentry'.
50300 (if_statement): Allow additional returns before `fi'.
50301 * normal/script.c (grub_script_create_cmdmenu): New function.
50303 2006-01-03 Marco Gerards <marco@gnu.org>
50305 * INSTALL: GNU Bison is required.
50306 * configure.ac: Rewritten the test to detect Bison.
50307 * Makefile.in (YACC): New variable. Reported by Xun Sun
50308 <xun.sun.cn@gmail.com>.
50310 2006-01-03 Marco Gerards <marco@gnu.org>
50312 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50313 the HFS+ filesystem to filesystem blocks.
50314 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50315 GCC warning is silenced.
50317 2006-01-03 Marco Gerards <marco@gnu.org>
50319 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50320 read from disk from big endian to host byte order.
50322 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50324 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50326 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50327 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50328 embedded HFS+ filesystem.
50329 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50330 (grub_hfs_sblock): Move from here...
50331 * include/grub/hfs.h: To here... New file.
50332 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50334 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50336 (grub_hfsplus_volheader): Change type of member `magic' to
50338 (grub_hfsplus_data): Add new member `embedded_offset'.
50339 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50341 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50342 Calculate the offset.
50344 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50346 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50348 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50350 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50352 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50353 ENV->NAME is NULL after allocating ENV->VALUE.
50355 2005-12-25 Marco Gerards <marco@gnu.org>
50357 * kern/env.c (grub_env_set): Rewritten the error handling code.
50359 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50361 * geninit.sh: Made more robust, and more portable.
50363 2005-12-25 Marco Gerards <marco@gnu.org>
50365 Add support for Apple HFS+ filesystems.
50367 * fs/hfsplus.c: New file.
50369 * DISTLIST: Added `fs/hfsplus.c'.
50371 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50372 (hfsplus_mod_SOURCES): New variable.
50373 (hfsplus_mod_CFLAGS): Likewise.
50374 (hfsplus_mod_LDFLAGS): Likewise.
50375 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50376 (grub_setup_SOURCES): Likewise.
50377 (grub_mkdevicemap_SOURCES): Likewise.
50378 (grub_emu_SOURCES): Likewise.
50379 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50381 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50383 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50385 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50387 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50388 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50389 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50390 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50391 normal/lexer.c, normal/parser.y, normal/script.c, and
50393 Removed kern/sparc64/cache.c.
50395 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50396 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50399 * configure.ac (AC_INIT): Bumped to 1.92.
50401 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50403 * kern/err.c (grub_error_push): Added new function to support error
50405 (grub_error_pop): Likewise.
50406 (grub_error_stack_items): New local variable to support error stacks.
50407 (grub_error_stack_pos): Likewise.
50408 (grub_error_stack_assert): Likewise.
50409 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50411 (grub_print_error): Added support to print errors from error stack.
50413 * include/grub/err.h (grub_error_push): Added function prototype.
50414 (grub_error_pop): Likewise.
50416 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50418 * configure.ac: Accept `powerpc64' as host_cpu.
50419 (amd64): Rename to `biarch32'.
50421 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50422 non-cacheline-aligned addresses.
50424 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50425 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50426 if `size' is non-zero.
50428 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
50430 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50431 and `cd' to make sure the filename is not prefixed with a
50433 (pkgdata_MODULES): Add `gpt.mod'.
50434 (gpt_mod_SOURCES): New variable.
50435 (gpt_mod_CFLAGS): Likewise.
50436 (gpt_mod_LDFLAGS): Likewise.
50438 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50440 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50443 * partmap/gpt.c: New file.
50445 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
50446 GPT partition map is detected.
50448 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
50450 * commands/i386/pc/play.c: New file.
50451 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
50452 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
50455 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
50457 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
50458 ((unused))' to silence gcc warning.
50460 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
50462 * configure.ac: Correct `AC_PROG_YACC' test.
50464 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50466 * util/powerpc/ieee1275/grub-install.in: Run the mount point
50467 check before installing files.
50469 2005-11-22 Mike Small <smallm@panix.com>
50471 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
50472 number regex so multidigit numbers are recognized correctly.
50474 2005-11-22 Mike Small <smallm@panix.com>
50476 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
50477 debugging message before attempting to claim memory.
50478 (grub_rescue_cmd_initrd): Add a claim debugging message and try
50479 multiple addresses in case of failure.
50481 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50483 * term/tparm.c (get_space): Remove empty `if' statement.
50485 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
50487 * kern/parser.c (check_varstate): Rename `state' to 's'.
50489 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50491 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
50492 variable definitions to the beginning of each function. Sort stack
50494 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
50495 `buf' argument to `char *'.
50497 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50499 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
50500 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
50501 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
50502 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
50503 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
50504 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
50505 configfile.mod, search.mod, gzio.mod and test.mod.
50506 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
50507 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
50508 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
50509 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
50510 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
50511 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
50512 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
50513 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
50514 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
50515 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
50516 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50517 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50518 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
50519 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
50520 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
50521 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
50522 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50523 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
50524 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
50525 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
50526 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
50527 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
50528 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
50530 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
50532 (pkgdata_MODULES): Add test.mod.
50534 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50536 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
50537 appending to variables with "+=".
50538 (PModule): Use full pathname to generate *.lst filenames.
50540 * Makefile.in: Fixed list rules moved from genmk.rb.
50541 (.DELETE_ON_ERROR): New special target.
50542 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
50544 * conf/i386-pc.rmk: Include conf/common.mk.
50545 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
50546 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
50547 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
50548 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
50549 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
50550 configfile.mod, search.mod, gzio.mod and test.mod.
50551 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
50552 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
50553 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
50554 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
50555 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
50556 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
50557 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
50558 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
50559 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
50560 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
50561 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50562 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50563 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
50564 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
50565 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
50566 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
50567 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50568 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
50569 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
50570 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
50571 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
50572 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
50573 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
50575 * conf/common.rmk: ... to here. New file.
50577 * conf/common.mk: New file.
50579 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
50581 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
50582 (grub_script.tab.c): ... here.
50584 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
50585 (grub_script.tab.c): ... here.
50587 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
50588 (grub_script.tab.c): ... here.
50590 * normal/command.c (grub_command_find): Fixed a memory leak of
50591 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
50593 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50595 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
50596 "@" which marks the start of a comment on ARM.
50597 (VARIABLE): Likewise.
50599 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50601 Add support for Linux/ADFS partition tables.
50603 * partmap/acorn.c: New file.
50605 * include/grub/acorn_filecore.h: Likewise.
50607 * DISTLIST: Added `partmap/acorn.c' and
50608 `include/grub/acorn_filecore.h'.
50610 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50612 (pkgdata_MODULES): Add `acorn.mod'.
50613 (acorn_mod_SOURCES): New variable.
50614 (acorn_mod_CFLAGS): Likewise.
50616 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
50618 (pkgdata_MODULES): Add `acorn.mod'.
50619 (acorn_mod_SOURCES): New variable.
50620 (acorn_mod_CFLAGS): Likewise.
50622 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
50623 (pkgdata_MODULES): Add `acorn.mod'.
50624 (acorn_mod_SOURCES): New variable.
50625 (acorn_mod_CFLAGS): Likewise.
50626 (acorn_mod_LDFLAGS): Likewise.
50628 * include/types.h (grub_disk_addr_t): New typedef.
50630 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
50632 * geninit.sh: New file.
50634 * geninitheader.sh: Likewise.
50636 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
50637 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
50638 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
50639 * commands/configfile.c (grub_configfile_init)
50640 (grub_configfile_fini): Likewise.
50641 * commands/default.c (grub_default_init, grub_default_fini):
50643 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
50644 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
50645 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
50646 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
50648 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
50649 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
50651 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
50652 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
50654 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
50656 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
50658 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
50659 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
50660 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
50661 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
50662 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
50663 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
50664 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
50665 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
50666 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
50667 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
50668 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
50669 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
50670 * partmap/amiga.c (grub_amiga_partition_map_init)
50671 (grub_amiga_partition_map_fini): Likewise.
50672 * partmap/apple.c (grub_apple_partition_map_init)
50673 (grub_apple_partition_map_fini): Likewise.
50674 * partmap/pc.c (grub_pc_partition_map_init)
50675 (grub_pc_partition_map_fini): Likewise.
50676 * partmap/sun.c (grub_sun_partition_map_init,
50677 grub_sun_partition_map_fini): Likewise.
50678 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
50681 * util/grub-emu.c: Include <grub_modules_init.h>.
50682 (main): Don't initialize and de-initialize any modules directly,
50683 use `grub_init_all' and `grub_fini_all' instead.
50685 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
50686 `grub_vesafb_mod_init'.
50687 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
50689 * term/i386/pc/vga.c (grub_vga_init): Renamed to
50690 `grub_vga_mod_init'. Updated all users.
50691 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
50693 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
50694 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
50697 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
50698 Generate a function to initialize the module in utilities.
50699 Updated all callers.
50700 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
50701 initialize the module in utilities. Updated all callers.
50703 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
50705 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
50706 escape sequence and a literal ^L to clear the screen.
50708 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
50709 when returning from Open Firmware.
50711 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
50713 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
50714 (grub_ofconsole_height): Likewise.
50715 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
50716 manually insert a '\n'.
50717 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
50718 `grub_ofconsole_height'. Return early if these are already set.
50720 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
50722 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
50723 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
50724 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
50725 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
50726 and `normal/script.c'.
50727 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50728 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50729 (test_mod_SOURCES): New variable.
50730 (test_mod_CFLAGS): Likewise.
50731 (test_mod_LDFLAGS): Likewise.
50732 (pkgdata_MODULES): Add `test.mod'.
50733 (grub_script.tab.c): New rule.
50734 (grub_script.tab.h): Likewise.
50736 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
50738 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50739 `commands/test.c', `normal/execute.c', `normal/lexer.c',
50740 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50741 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50742 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50743 (test_mod_SOURCES): New variable.
50744 (test_mod_CFLAGS): Likewise.
50745 (pkgdata_MODULES): Add `test.mod'.
50746 (grub_script.tab.c): New rule.
50747 (grub_script.tab.h): Likewise.
50749 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
50751 Add initial scripting support.
50753 * commands/test.c: New file.
50754 * include/grub/script.h: Likewise.
50755 * normal/execute.c: Likewise.
50756 * normal/function.c: Likewise.
50757 * normal/lexer.c: Likewise.
50758 * normal/parser.y: Likewise.
50759 * normal/script.c: Likewise.
50761 * configure.ac: Add `AC_PROG_YACC' test.
50763 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
50764 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
50765 `normal/function.c' and `normal/script.c'.
50766 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50767 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50768 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
50770 (pkgdata_MODULES): Add `test.mod'.
50771 (grub_script.tab.c): New rule.
50772 (grub_script.tab.h): Likewise.
50774 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
50776 * include/grub/normal.h (grub_test_init): New prototype.
50777 (grub_test_fini): Likewise.
50779 * normal/command.c: Include <grub/script.h>.
50780 (grub_command_execute): Rewritten.
50782 * util/grub-emu.c (main): Call `grub_test_init' and
50785 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50787 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
50789 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
50790 there are no pending characters.
50792 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50794 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
50795 `grub_strndup' to drop device arguments. Replace unnecessary
50796 `grub_strndup' with `grub_strdup'.
50798 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50800 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
50801 `debug' environment variable has been set.
50803 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
50805 * Makefile.in (install-local): Use $(DATA).
50806 (uninstall): Likewise.
50807 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
50808 (sbin_UTILITIES): ... to here.
50809 (sbin_SCRIPTS): New variable.
50810 (grub_install_SOURCES): New variable.
50811 * util/powerpc/ieee1275/grub-install.in: New file.
50812 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
50814 (add_segments): Call `grub_util_get_path'.
50816 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
50818 From Timothy Baldwin:
50819 * commands/ls.c (grub_ls_list_files): Close FILE with
50821 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
50823 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
50825 * include/grub/parser.h: New file.
50827 * kern/parser.c: Likewise.
50829 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
50830 (grub_setup_SOURCES): Likewise.
50831 (grub_probefs_SOURCES): Likewise.
50832 (grub_emu_SOURCES): Likewise.
50833 (kernel_img_HEADERS): Add `parser.h'.
50835 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
50836 (grub_emu_SOURCES): Add `kern/parser.c'.
50837 (grubof_SOURCES): Likewise.
50839 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
50840 (grubof_SOURCES): Add `kern/parser.c'.
50842 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
50844 * kern/misc.c (grub_split_cmdline): Removed function.
50846 * kern/rescue.c: Include <grub/parser.h>.
50847 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
50848 of `grub_split_cmdline'.
50850 * normal/command.c: Include <grub/parser.h>.
50851 (grub_command_execute): Use `grub_parser_split_cmdline' instead
50852 of `grub_split_cmdline'.
50854 * normal/completion.c: Include <grub/parser.h>.
50855 (cmdline_state): New variable.
50856 (iterate_dir): End the filename with a quote depending on the
50857 command line state.
50858 (get_state): new function.
50859 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
50860 split the arguments and determine the current argument. When the
50861 argument string is not quoted, escape all spaces.
50863 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50865 * normal/sparc64/setjmp.S: New file.
50867 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50869 * include/grub/sparc64/libgcc.h: New file.
50870 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
50871 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
50872 normal/sparc64/setjmp.c.
50874 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50876 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
50877 * kern/sparc64/cache.S: New file.
50878 * kern/sparc64/cache.c: Removed.
50879 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
50880 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
50882 (COMMON_LDFLAGS): Add -melf64_sparc.
50883 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
50884 (grubof_SOURCES): Use cache.S instead of cache.c.
50885 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
50886 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
50887 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
50889 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
50890 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
50891 (linux_mod_CFLAGS): Commented out.
50892 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
50893 out because module isn't built.
50894 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
50895 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
50896 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
50897 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
50898 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
50899 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
50900 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
50901 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
50902 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
50903 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
50904 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50905 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50906 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
50907 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
50909 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
50911 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
50912 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
50913 longer, because HFS should not be used on PC.
50915 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50917 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
50918 consistently within the loop.
50920 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
50922 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
50923 directory can not be read.
50925 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50927 * configure.ac (AC_INIT): Increase the version number to 1.91.
50929 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
50930 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
50931 term/i386/pc/serial.c.
50933 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50935 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
50936 file size must be permitted.
50938 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
50939 between %ah and %al.
50941 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50943 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
50945 Call the hook with a NUL-terminated filename.
50946 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
50949 * kern/term.c (cursor_state): New variable.
50950 (grub_term_set_current): Reset the cursor state on a new
50952 (grub_setcursor): Rewritten to use CURSOR_STATE.
50953 (grub_getcursor): New function.
50955 * include/grub/term.h (grub_getcursor): New prototype.
50957 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
50958 integers on ARM. Reported by Timothy Baldwin
50959 <T.E.Baldwin99@members.leeds.ac.uk>.
50961 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
50963 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
50965 (grub_sfs_dir): Likewise.
50967 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
50969 Add support for the SFS filesystem.
50971 * fs/sfs.c: New file.
50973 * DISTLIST: Added `fs/sfs.c'.
50975 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
50976 (grub_probefs_SOURCES): Likewise.
50977 (grub_emu_SOURCES): Likewise.
50978 (pkgdata_MODULES): Add `sfs.mod'.
50979 (sfs_mod_SOURCES): New variable.
50980 (sfs_mod_CFLAGS): Likewise.
50981 (sfs_mod_LDFLAGS): Likewise.
50983 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
50984 (pkgdata_MODULES): Add `sfs.mod'.
50985 (sfs_mod_SOURCES): New variable.
50986 (sfs_mod_CFLAGS): Likewise.
50988 * util/grub-emu.c (main): Call `grub_sfs_init' and
50991 * include/grub/fs.h (grub_sfs_init): New prototype.
50992 (grub_sfs_fini): Likewise.
50994 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
50996 Add support for the AFFS filesystem.
50998 * fs/affs.c: New file.
51000 * DISTLIST: Added `fs/affs.c'.
51002 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51003 (grub_probefs_SOURCES): Likewise.
51004 (grub_emu_SOURCES): Likewise.
51005 (pkgdata_MODULES): Add `affs.mod'.
51006 (affs_mod_SOURCES): New variable.
51007 (affs_mod_CFLAGS): Likewise.
51008 (affs_mod_LDFLAGS): Likewise.
51010 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51011 (pkgdata_MODULES): Add `affs.mod'.
51012 (affs_mod_SOURCES): New variable.
51013 (affs_mod_CFLAGS): Likewise.
51015 * util/grub-emu.c (main): Call `grub_affs_init' and
51018 * include/grub/fs.h (grub_affs_init): New prototype.
51019 (grub_affs_fini): Likewise.
51021 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51023 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51025 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51027 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51030 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51033 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51034 (COMMON_LDFLAGS): New variable.
51035 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51036 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51037 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51038 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51039 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51040 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51041 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51042 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51043 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51044 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51045 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51046 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51047 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51048 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51049 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51051 (normal_mod_ASFLAGS): Add `-m32'.
51053 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51054 (grub_host_size_t, grub_host_ssize_t): New types.
51055 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51056 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51057 `GRUB_HOST_SIZEOF_VOID_P'.
51059 * include/grub/kernel.h (struct grub_module_header): Type of
51060 member offset changed to `grub_host_off_t'. Type of member size
51061 changed to `grub_host_size_t'.
51062 (struct grub_module_info): Type of member offset changed to
51063 `grub_host_off_t'. Type of member size changed to
51064 `grub_host_size_t'.
51066 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51068 Make GRUB's kernel compliant to Multiboot Specification.
51070 * kern/i386/pc/startup.S (multiboot_header): New label.
51071 (multiboot_entry): Likewise.
51072 (multiboot_trampoline): Likewise.
51074 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51075 Increased to 0x4A0.
51077 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51078 put parentheses after a question mark.
51079 [!GRUB_UTIL] (my_mod): New variable.
51081 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51083 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51085 Adds support for the XFS filesystem. Btrees are not supported
51088 * fs/xfs.c: New file.
51090 * DISTLIST: Added `fs/xfs.c'.
51092 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51093 (grub_probefs_SOURCES): Likewise.
51094 (grub_emu_SOURCES): Likewise.
51095 (pkgdata_MODULES): Add `xfs.mod'.
51096 (xfs_mod_SOURCES): New variable.
51097 (xfs_mod_CFLAGS): Likewise.
51099 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51100 (pkgdata_MODULES): Add `xfs.mod'.
51101 (xfs_mod_SOURCES): New variable.
51102 (xfs_mod_CFLAGS): Likewise.
51104 * util/grub-emu.c (main): Call `grub_xfs_init' and
51107 * include/grub/fs.h (grub_xfs_init): New prototype.
51108 (grub_xfs_fini): Likewise.
51111 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51113 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51114 color modes, allow greater than 16 colors to be configured as
51117 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51119 * normal/completion.c (complete_arguments): Add the qualifier
51120 const into OPTIONS.
51122 From Omniflux <omniflux+lists@omniflux.com>:
51123 * include/grub/terminfo.h: New file.
51124 * include/grub/tparm.h: Likewise.
51125 * include/grub/i386/pc/serial.h: Likewise.
51126 * term/terminfo.c: Likewise.
51127 * term/tparm.c: Likewise.
51128 * term/i386/pc/serial.c: Likewise.
51129 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51131 (terminfo_mod_SOURCES): New variable.
51132 (terminfo_mod_CFLAGS): Likewise.
51133 (serial_mod_SOURCES): Likewise.
51134 (serial_mod_CFLAGS): Likewise.
51136 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51138 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51139 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51140 and kern/powerpc/ieee1275/cmain.c, respectively.
51142 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51143 * kern/powerpc/ieee1275/crt0.S: ... here.
51145 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51146 * kern/powerpc/ieee1275/cmain.c: ... here.
51148 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51149 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51150 instead of boot/powerpc/ieee1275/crt0.S and
51151 boot/powerpc/ieee1275/cmain.c, respectively.
51153 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51154 sectors. It was not used anyway.
51156 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51158 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51159 `unused parameter' warning.
51161 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51163 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51165 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51168 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51170 * include/grub/normal.h (enum grub_completion_type): Added
51171 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51173 * normal/cmdline.c (print_completion): Handle
51174 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51175 * normal/menu_entry.c (store_completion): Likewise.
51177 * normal/completion.c (complete_arguments): New function.
51178 (grub_normal_do_completion): Call `complete_arguments' when the
51179 current words start with a dash.
51181 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51183 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51184 `gzio.mod' instead of `io.mod').
51186 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51188 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51189 (DISTDIRS): Added io and video.
51190 Rewrite the search routine to make an output consistently.
51192 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51193 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51194 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51195 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51196 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51197 util/powerpc/ieee1275/misc.c.
51199 * include/grub/gzio.h: New file.
51200 * io/gzio.c: Likewise.
51202 * kern/file.c (grub_file_close): Call grub_device_close only if
51203 FILE->DEVICE is not NULL.
51205 * include/grub/mm.h [!NULL] (NULL): New macro.
51207 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51209 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51210 (pkgdata_MODULES): Added gzio.mod.
51211 (gzio_mod_SOURCES): New variable.
51212 (gzio_mod_CFLAGS): Likewise.
51214 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51215 (pkgdata_MODULES): Added gzio.mod.
51216 (gzio_mod_SOURCES): New variable.
51217 (gzio_mod_CFLAGS): Likewise.
51219 * commands/cat.c: Include grub/gzio.h.
51220 (grub_cmd_cat): Use grub_gzfile_open instead of
51223 * commands/cmp.c: Include grub/gzio.h.
51224 (grub_cmd_cmp): Use grub_gzfile_open instead of
51227 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51228 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51230 (grub_rescue_cmd_module): Likewise.
51232 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51234 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51235 kern/sparc64/ieee1275/init.c because it contains _start.
51236 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51238 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51240 * configure.ac: Add support for sparc64 host with ieee1275
51242 * configure: Generated from configure.ac.
51243 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51245 (grub_ofdisk_read): Likewise.
51246 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51247 pointers as (void *) to remove a warning.
51248 (grub_ofdisk_close): Likewise.
51249 (grub_ofdisk_read): Likewise.
51250 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51251 returns, so make it return void to remove a warning.
51252 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51253 Corresponding prototype change.
51254 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51255 values, and cast the pointers as (void *) to remove a warning.
51256 (grub_mm_dump): Likewise.
51257 * conf/sparc64-ieee1275.mk: New file.
51258 * conf/sparc64-ieee1275.rmk: Likewise.
51259 * include/grub/sparc64/setjmp.h: Likewise.
51260 * include/grub/sparc64/types.h: Likewise.
51261 * include/grub/sparc64/ieee1275/console.h: Likewise.
51262 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51263 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51264 * include/grub/sparc64/ieee1275/time.h: Likewise.
51265 * kern/sparc64/cache.c: Likewise.
51266 * kern/sparc64/dl.c: Likewise.
51267 * kern/sparc64/ieee1275/init.c: Likewise.
51268 * kern/sparc64/ieee1275/openfw.c: Likewise.
51270 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51272 * util/console.c (grub_ncurses_putchar): If C is greater than
51273 0x7f, set C to a question mark.
51274 (grub_ncurses_getcharwidth): New function.
51275 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51278 * normal/menu.c (print_entry): Made aware of Unicode. First,
51279 convert TITLE to UCS-4, and predict the cursor position by
51282 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51284 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51286 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51288 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51289 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51292 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51293 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51294 grub_strcpy and grub_strlen. Take it into account that a space
51295 character is inserted as a delimiter.
51297 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51299 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51300 invalid magic in the error.
51302 * commands/search.c: New file.
51304 * util/grub-emu.c (main): Call grub_search_init and
51307 * kern/rescue.c (grub_rescue_print_disks): Removed.
51308 (grub_rescue_print_devices): New function.
51309 (grub_rescue_cmd_ls): Use grub_device_iterate with
51310 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51311 grub_rescue_print_disks.
51313 * kern/partition.c (grub_partition_iterate): Return the result of
51314 PARTMAP->ITERATE instead of GRUB_ERRNO.
51316 * kern/device.c: Include grub/partition.h.
51317 (grub_device_iterate): New function.
51319 * include/grub/partition.h (grub_partition_iterate): Return int
51320 instead of grub_err_t.
51322 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51324 [GRUB_UTIL] (grub_search_fini): Likewise.
51326 * include/grub/device.h (grub_device_iterate): New prototype.
51328 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51330 (pkgdata_MODULES): Added search.mod.
51331 (search_mod_SOURCES): New variable.
51332 (search_mod_CFLAGS): Likewise.
51334 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51335 (pkgdata_MODULES): Added search.mod.
51336 (search_mod_SOURCES): New variable.
51337 (search_mod_CFLAGS): Likewise.
51339 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51340 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51341 All callers changed.
51343 * DISTLIST: Added commands/search.c.
51345 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51347 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51349 (grub_getcharwidth): New function.
51351 * kern/misc.c (grub_utf8_to_ucs4): New function.
51353 * include/grub/term.h (struct grub_term): Added a new member
51355 (grub_getcharwidth): New prototype.
51357 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51359 * term/i386/pc/console.c (map_char): New function. Segregated from
51360 grub_console_putchar.
51361 (grub_console_putchar): Use map_char.
51362 (grub_console_getcharwidth): New function.
51363 (grub_console_term): Specified grub_console_getcharwidth as
51366 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51367 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51369 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51371 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51372 on grub_strtoul completely.
51373 (write_char): Declare local variables in the beginning of the
51375 (grub_vesafb_getcharwidth): New function.
51376 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51379 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51381 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51382 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51383 commands/i386/pc/vbetest.c.
51385 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51386 call grub_vbe_get_controller_info again, because the returned
51387 information is volatile.
51388 (grub_vbe_set_video_mode): Mostly rewritten.
51389 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51390 grub_vbe_status_t correctly.
51391 (grub_vbe_get_video_mode_info): Likewise.
51392 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51393 several if statements.
51395 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51396 * commands/i386/pc/vbeinfo.c: ... this.
51398 * commands/i386/pc/vbe_test.c: Renamed to ...
51399 * commands/i386/pc/vbetest.c: ... this.
51401 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51403 (grub_cmd_vbeinfo): ... this. Save video modes before
51404 iterating. Skip a video mode, if it is not available, not enough
51405 information is given or it is monochrome. Show the memory
51406 model. Leave the interpretation of MODEVAR to grub_strtoul
51408 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51409 (GRUB_MOD_FINI): Likewise.
51411 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51412 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51413 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51414 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51415 grub_strtoul completely.
51416 (real2pm): Removed.
51417 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51418 (GRUB_MOD_FINI): Likewise.
51420 * normal/misc.c: Include grub/mm.h.
51422 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51423 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51424 (vbe_list_modes_mod_SOURCES): Removed.
51425 (vbe_list_modes_mod_CFLAGS): Likewise.
51426 (vbe_test_mod_SOURCES): Likewise.
51427 (vbe_test_mod_CFLAGS): Likewise.
51428 (vbeinfo_mod_SOURCES): New variable.
51429 (vbeinfo_mod_CFLAGS): Likewise.
51430 (vbetest_mod_SOURCES): Likewise.
51431 (vbetest_mod_CFLAGS): Likewise.
51433 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51435 * normal/misc.c: New file.
51437 * DISTLIST: Added normal/misc.c.
51439 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51440 DISK to HOOK. Call HOOK with DISK.
51441 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51442 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51443 * partmap/sun.c (sun_partition_map_iterate): Likewise.
51445 * normal/menu_entry.c (struct screen): Added a new member
51446 "completion_shown".
51447 (completion_buffer): New global variable.
51448 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
51449 (store_completion): New function.
51450 (complete): Likewise.
51451 (clear_completions): Likewise.
51452 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
51453 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
51454 a tab, call complete.
51456 * normal/completion.c (disk_dev): Removed.
51457 (print_simple_completion): Likewise.
51458 (print_partition_completion): Likewise.
51459 (print_func): New global variable.
51460 (add_completion): Do not take the arguments WHAT or PRINT any
51461 longer. Added a new argument TYPE. Instead of printing directly,
51462 call PRINT_FUNC if not NULL.
51463 All callers changed.
51464 (complete_device): Use a local variable DEV instead of
51465 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
51466 (grub_normal_do_completion): Take a new argument HOOK. Do not
51467 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
51468 empty string, return NULL instead.
51469 All callers changed.
51471 * normal/cmdline.c (print_completion): New function.
51473 * kern/partition.c (grub_partition_iterate): Add an argument DISK
51475 All callers changed.
51477 * kern/disk.c (grub_print_partinfo): Removed.
51479 * include/grub/partition.h (struct grub_partition_map): Add a new
51480 argument DISK into HOOK of ITERATE.
51481 (grub_partition_iterate): Add a new argument DISK to HOOK.
51483 * include/grub/normal.h (enum grub_completion_type): New enum.
51484 (grub_completion_type_t): New type.
51485 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
51486 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
51487 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
51488 (GRUB_COMPLETION_TYPE_FILE): Likewise.
51489 (grub_normal_do_completion): Added a new argument HOOK.
51490 (grub_normal_print_device_info): New prototype.
51492 * include/grub/disk.h (grub_print_partinfo): Removed.
51494 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
51495 (normal_mod_SOURCES): Likewise.
51496 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51497 (normal_mod_SOURCES): Likewise.
51499 * commands/ls.c (grub_ls_list_disks): Use
51500 grub_normal_print_device_info instead of grub_print_partinfo. Free
51502 (grub_ls_list_files): Use grub_normal_print_device_info instead of
51503 duplicating the code.
51505 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
51507 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
51508 follow GCS more precisely.
51509 * commands/i386/pc/vbe_test.c: Likewise.
51510 * include/grub/i386/pc/vbe.h: Likewise.
51511 * term/i386/pc/vesafb.c: Likewise.
51512 * video/i386/pc/vbe.c: Likewise.
51514 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
51516 * DISTLIST: Added term/i386/pc/vesafb.c
51517 DISTLIST: Added video/i386/pc/vbe.c
51518 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
51519 DISTLIST: Added commands/i386/pc/vbe_test.c.
51520 * commands/i386/pc/vbe_list_modes.c: New file.
51521 * commands/i386/pc/vbe_test.c: Likewise.
51522 * term/i386/pc/vesafb.c: Likewise.
51523 * video/i386/pc/vbe.c: Likewise.
51524 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
51525 (grub_vbe_probe) Added prototype.
51526 (grub_vbe_set_video_mode) Likewise.
51527 (grub_vbe_get_video_mode) Likewise.
51528 (grub_vbe_get_video_mode_info) Likewise.
51529 (grub_vbe_set_pixel_rgb) Likewise.
51530 (grub_vbe_set_pixel_index) Likewise.
51531 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
51532 (pkgdata_MODULES): Added vesafb.mod.
51533 (pkgdata_MODULES): Added vbe_list_modes.mod.
51534 (pkgdata_MODULES): Added vbe_test.mod.
51535 (vbe_mod_SOURCES): Added.
51536 (vbe_mod_CFLAGS): Likewise.
51537 (vesafb_mod_SOURCES): Likewise.
51538 (vesafb_mod_CFLAGS): Likewise.
51539 (vbe_list_modes_mod_SOURCES): Likewise.
51540 (vbe_list_modes_mod_CFLAGS): Likewise.
51541 (vbe_test_mod_SOURCES): Likewise.
51542 (vbe_test_mod_CFLAGS): Likewise.
51544 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
51546 * normal/command.c (grub_command_execute): If INTERACTIVE is
51547 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
51548 CMDLINE. Disable the pager if INTERACTIVE is true.
51549 All callers are changed.
51551 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
51552 before reading a config file.
51553 * normal/main.c (read_config_file): Even if a command is not
51554 found, register it if it is within an entry.
51556 * util/grub-emu.c: Include sys/types.h and unistd.h.
51557 (options): Added --hold.
51558 (struct arguments): Added a new member "hold".
51559 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
51561 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
51562 cleared by a debugger, if it is not zero.
51564 * include/grub/normal.h (grub_command_execute): Add an argument
51567 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
51569 * DISTLIST: Added include/grub/i386/pc/vbe.h.
51571 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
51573 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
51574 program with another one, because the old one didn't detect a bug
51575 in gcc-3.4. Always use regparm 2, because the new test is still
51576 not enough for gcc-4.0. Someone must investigate a simple test
51577 case which detects a bug in gcc-4.0.
51579 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
51581 * DISTLIST: Added normal/completion.c.
51583 * normal/completion.c: New file.
51585 * term/i386/pc/console.c (grub_console_getwh): New function.
51586 (grub_console_term): Assign grub_console_getwh to getwh.
51588 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
51589 function is defined in normal/completion.c as
51590 grub_normal_do_completion.
51591 (grub_cmdline_get): Use grub_normal_do_completion instead of
51594 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
51595 returns non-zero, otherwise return 0.
51596 (grub_partition_iterate): First, probe the partition map. Then,
51597 call ITERATE only for this partition map.
51599 * kern/misc.c (grub_strncmp): Rewritten.
51601 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
51602 returns non-zero. Otherwise return 0.
51604 * include/grub/partition.h (grub_partition_map_iterate): Return
51605 int instead of void.
51607 * include/grub/normal.h (grub_normal_do_completion): New prototype.
51609 * include/grub/misc.h (grub_strncmp): Change the type of N to
51612 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
51615 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
51616 unsigned explicitly before comparing it with I.
51618 * kern/main.c (grub_env_write_root): Add the attribute unused into
51621 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51622 normal/completion.c.
51623 (normal_mod_SOURCES): Likewise.
51624 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
51625 (normal_mod_SOURCES): Likewise.
51627 * normal/command.c (grub_iterate_commands): If ITERATE returns
51628 non-zero, return one immediately.
51630 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
51632 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
51633 * kern/i386/pc/startup.S: Updated Global Descriptor table's
51635 (grub_vbe_get_controller_info): New function.
51636 (grub_vbe_get_mode_info): Likewise.
51637 (grub_vbe_set_mode): Likewise.
51638 (grub_vbe_get_mode): Likewise.
51639 (grub_vbe_set_memory_window): Likewise.
51640 (grub_vbe_get_memory_window): Likewise.
51641 (grub_vbe_set_scanline_length): Likewise.
51642 (grub_vbe_get_scanline_length): Likewise.
51643 (grub_vbe_set_display_start): Likewise.
51644 (grub_vbe_get_display_start): Likewise.
51645 (grub_vbe_set_palette_data): Likewise.
51646 * include/grub/i386/pc/vbe.h: New file.
51648 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51650 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
51651 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
51652 * DISTLIST: Likewise.
51653 * kern/ieee1275/of.c: Moved to ...
51654 * kern/ieee1275/ieee1275.c: ... here.
51656 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51658 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
51659 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
51660 Pass 0 as `end' parameter to grub_strtoul().
51662 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51664 * include/grub/powerpc/ieee1275/console.h: Do not include
51665 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
51667 (grub_console_cur_color): Remove i386-specific prototype.
51668 (grub_console_real_putchar): Likewise.
51669 (grub_console_checkkey): Likewise.
51670 (grub_console_getkey): Likewise.
51671 (grub_console_getxy): Likewise.
51672 (grub_console_gotoxy): Likewise.
51673 (grub_console_cls): Likewise.
51674 (grub_console_setcursor): Likewise.
51675 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
51676 Include <grub/machine/console.h>.
51677 * term/ieee1275/ofconsole.c: Likewise.
51679 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
51681 * Makefile.in (LIBLZO): New variable.
51683 * configure.ac: Check for LZO version 2.
51685 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
51686 lzo/lzo1x.h instead of lzo1x.h.
51688 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
51691 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
51692 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
51694 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
51695 copying the data from PARTITION to P.
51697 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51699 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
51700 negative, unload the module.
51702 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
51703 map is "pc_partition_map" but not "pc".
51704 (usage): Fix the description. The options are --boot-image and
51705 --core-image but not --boot-file or --core-file.
51706 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
51707 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
51710 * util/i386/pc/grub-install.in: Do not specify --boot-file or
51711 --core-file. Specify INSTALL_DEVICE as an argument.
51713 * util/console.c: Include config.h.
51714 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
51715 [HAVE_NCURSES_H]: Include ncurses.h.
51716 [HAVE_CURSES_H]: Include curses.h.
51717 [!A_NORMAL] (A_NORMAL): Defined as zero.
51718 [!A_STANDOUT] (A_STANDOUT): Likewise.
51720 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
51722 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
51724 * configure.ac: Check for curses libraries and headers.
51726 * Makefile.in (LIBCURSES): New variable.
51728 * genmk.rb (Script::rule): Set the executable bits.
51730 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
51731 name of the PC partition map is "pc_partition_map" but not "pc".
51733 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51735 * util/i386/pc/grub-install.in (grub_probefs): New variable.
51736 (modules): Likewise.
51737 (usage): Added descriptions for --modules and --grub-probefs.
51738 Handle --modules and --grub-probefs. Save the arguments in MODULES
51739 and GRUB_PROBEFS, respectively.
51740 Auto-detect a filesystem module against GRUBDIR. If the result is
51741 empty and modules are not specified explicitly, abort the
51742 installation. Add the result to MODULES.
51744 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
51745 disk/powerpc/ieee1275/ofdisk.c,
51746 include/grub/powerpc/ieee1275/init.h and
51747 term/powerpc/ieee1275/ofconsole.c.
51748 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
51749 term/ieee1275/ofconsole.c.
51751 * include/grub/powerpc/ieee1275/console.h: Resurrected.
51753 * COPYING: Upgraded to the latest version. Only the address of the
51754 FSF office has changed.
51756 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51758 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
51759 kern/ieee1275.c with kern/ieee1275/of.c.
51761 * kern/ieee1275.c: Moved to ...
51762 * kern/ieee1275/of.c: ... here.
51764 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
51766 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
51769 * config.guess: Updated to the latest version from gnulib.
51770 * config.sub: Likewise.
51771 * install.sh: Likewise.
51772 * mkinstalldirs: Likewise.
51774 * include/grub/console.h: Removed. This file is arch-specific. Do
51775 not put this in include/grub.
51777 * include/grub/i386/pc/console.h: Resurrected.
51779 * util/console.c: Include grub/machine/console.h instead of
51781 * util/grub-emu.c: Likewise.
51783 2005-08-04 Marco Gerards <metgerards@student.han.nl>
51785 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
51788 From Vincent Pelletier <subdino2004@yahoo.fr>
51789 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
51790 Redefined to use grub_getwh.
51791 (grub_term): New member named getwh.
51792 (grub_getwh): New prototype.
51793 * kern/term.c (grub_getwh): New function.
51794 * term/i386/pc/console.c (grub_console_getwh): New function.
51795 (grub_console_term): New member `getwh'.
51796 * term/i386/pc/vga.c (grub_vga_getwh): New function.
51797 (grub_vga_term): New member `getwh'.
51798 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
51800 (grub_ofconsole_getw): New function.
51801 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
51802 (grub_ofconsole_term): New field named getwh and new initial
51805 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
51807 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
51808 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
51809 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
51810 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
51811 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
51812 of <grub/machine/ieee1275.h>.
51813 * commands/ieee1275/reboot.c: Likewise.
51814 * boot/powerpc/ieee1275/ieee1275.c: Move ...
51815 * kern/ieee1275.c: ... to here. All users updated. Change all
51816 parameter structs to use new type `grub_ieee1275_cell_t'.
51817 * term/powerpc/ieee1275/ofconsole.c: Move ...
51818 * term/ieee1275/ofconsole.c: ... to here. All users updated.
51819 * disk/powerpc/ieee1275/ofdisk.c: Move ...
51820 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
51821 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
51823 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
51824 Remove unused prototypes. All users updated.
51825 * include/grub/powerpc/ieee1275/console.h: Removed.
51826 * include/grub/powerpc/ieee1275/ieee1275.h: Define
51827 `grub_ieee1275_cell_t'.
51828 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
51829 Cast comparisons with -1 to the correct type.
51830 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
51831 type to match `grub_ieee1275_entry_fn'.
51833 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
51835 * DISTLIST: Added util/i386/pc/grub-probefs.c.
51837 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
51838 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
51840 (grub_probefs_SOURCES): New variable.
51842 * util/i386/pc/grub-probefs.c: New file.
51844 * util/i386/pc/grub-setup.c (main): Call
51845 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
51846 grub_hfs_init and grub_jfs_init to initialize the system. Call
51847 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
51848 grub_pc_partition_map_fini to finish the system.
51850 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
51852 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
51854 (grub_multiboot_load_elf32): Likewise.
51855 (grub_multiboot_is_elf64): Likewise.
51856 (grub_multiboot_load_elf64): Likewise.
51857 (grub_multiboot_load_elf): Likewise.
51858 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
51859 an ELF32 or ELF64 file.
51860 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
51862 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
51863 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
51864 NULL before calling FS->LABEL.
51865 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
51866 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
51867 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
51868 before calling FS->LABEL.
51870 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
51872 * util/i386/pc/grub-install.in (datadir): New variable.
51874 (pkgdatadir): New variable.
51875 (pkglibdir): Removed.
51877 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
51879 * DISTLIST: Added util/i386/pc/grub-install.in.
51881 * util/i386/pc/grub-install.in: New file.
51883 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
51884 (grub_install_SOURCES): Likewise.
51886 * genmk.rb: Added support for scripts.
51887 (Script): New class.
51888 (scripts): New variable.
51890 * Makefile.in (install-local): Install sbin_SCRIPTS by
51892 (uninstall): Remove sbin_SCRIPTS.
51894 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
51895 device, try to get a GRUB device by
51896 grub_util_biosdisk_get_grub_dev.
51899 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
51900 description for --device-map.
51902 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
51904 Change the semantics of variable hooks. They now return strings
51905 instead of error values.
51907 * util/i386/pc/grub-setup.c: Include grub/env.h.
51908 (setup): Use grub_device_set_root instead of grub_env_set.
51910 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
51911 grub_env_get instead of grub_device_set_root and
51912 grub_device_get_root, respectively.
51914 * kern/main.c (grub_env_write_root): New function.
51915 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
51916 grub_env_set instead of grub_device_set_root.
51918 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
51920 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
51921 rather than calling ENV->WRITE_HOOK afterwards.
51922 (grub_env_get): Return the result of ENV->READ_HOOK rather than
51923 passing a pointer of a pointer.
51924 (grub_register_variable_hook): Change the types of "read_hook" and
51925 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
51927 Allocate the default empty string on the heap, because this string
51928 may be freed later.
51930 * kern/device.c: Include grub/env.h.
51931 (grub_device_set_root): Removed.
51932 (grub_device_get_root): Likewise.
51933 (grub_device_open): Use grub_env_get instead of
51934 grub_device_get_root.
51936 * include/grub/env.h (grub_env_read_hook_t): New type.
51937 (grub_env_write_hook_t): Likewise.
51938 (grub_env_var): Change the types of "read_hook" and "write_hook"
51939 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
51940 (grub_register_variable_hook): Likewise.
51942 * include/grub/device.h (grub_device_set_root): Removed.
51943 (grub_device_set_root): Likewise.
51945 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
51946 make sure that DIRNAME terminates with '/', so that
51947 grub_fat_find_dir will fail if PATH is not a directory.
51949 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
51951 Use the qualifier auto for print_files and print_files_long.
51952 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
51954 Put a newline only if there is no error.
51955 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
51958 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
51960 * kern/partition.c (grub_partition_probe): Initialize PART to
51961 NULL. Otherwise, when no partition map is registered, this returns
51964 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
51966 * partmap/apple.c (apple_partition_map_iterate): Check if POS
51967 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
51970 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
51972 * commands/ls.c (grub_ls_list_disks): Print the filesystem
51973 information on each device, if it does not have partitions. Print
51974 "Device" instead of "Disk", because this function is not specific
51977 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
51978 static to ensure that it is put on the memory rather than a
51981 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
51983 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
51984 (grub_cat_init): Likewise.
51985 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
51986 (options): Likewise.
51987 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
51988 (grub_configfile_init): Likewise.
51989 * font/manager.c (GRUB_MOD_INIT): Likewise.
51990 * commands/help.c (GRUB_MOD_INIT): Likewise.
51991 (grub_help_init): Likewise.
51992 * normal/command.c (grub_command_init): Likewise.
51993 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
51994 * disk/loopback.c (grub_loop_init): Likewise.
51995 (GRUB_MOD_INIT): Likewise.
51996 * commands/ls.c (grub_ls_init): Likewise.
51997 (GRUB_MOD_INIT): Likewise.
51998 (options): Likewise.
51999 * commands/boot.c (grub_boot_init): Likewise.
52000 (GRUB_MOD_INIT): Likewise.
52001 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52002 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52003 (GRUB_MOD_INIT): Likewise.
52004 * commands/cmp.c (grub_cmp_init): Likewise.
52005 (GRUB_MOD_INIT): Likewise.
52007 * normal/arg.c: Use <> instead of "" to include header files.
52008 (SHORT_ARG_HELP): New macro.
52009 (SHORT_ARG_USAGE): Likewise.
52010 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52011 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52013 (find_short): Check if C is 'h' or 'u' explicitly.
52014 (grub_arg_show_help): Use space characters instead of tabs. Treat
52015 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52016 are shown with --help and --usage only if they are not used for
52017 the command itself.
52018 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52021 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52022 const into "longarg". Change the type of "shortarg" to int.
52024 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52026 * boot/i386/pc/boot.S (boot_drive_check): New label.
52028 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52031 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52032 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52034 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52036 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52037 When turning off Gate A20, skip the check and return immediately,
52038 because this is not fatal usually.
52040 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52042 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52043 be 0x7C00 instead of 0x8000.
52045 * boot/i386/pc/pxeboot.S: Rewritten.
52047 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52049 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52052 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52054 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52055 robustness. This routine now supports a BIOS call and System
52056 Control Port A to modify the gate A20.
52058 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52059 Increased to 0x440.
52061 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52063 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52064 device path and resulting ihandle.
52065 (grub_ofdisk_close): dprintf the ihandle being closed.
52066 (grub_ofdisk_read): dprintf function parameters.
52067 * kern/mm.c (grub_mm_init_region): Likewise.
52068 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52069 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52070 size, and boot arguments.
52071 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52072 before loading into memory.
52073 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52074 before loading into memory.
52076 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52078 * kern/mm.c: Added much documentation.
52079 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52080 8, set to 5 instead of 8.
52082 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52084 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52086 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52087 (grub_mkdevicemap_SOURCES): New variable.
52089 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52090 lib/device.c of GRUB Legacy.
52092 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52094 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52095 instead of PATH is NULL.
52097 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52099 * commands/cmp.c (BUFFER_SIZE): New macro.
52100 (grub_cmd_cmp): Close the right file at the right time. Compare
52101 only data just read. Don't report files of different size as
52102 identical. Dynamically allocate buffers. Move variable
52103 declarations at the beginning of function.
52105 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52107 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52110 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52112 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52113 when backspace is pressed at beginning of line.
52115 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52117 * DISTLIST: Added genfslist.sh.
52119 * normal/main.c (fs_module_list): New variable.
52120 (autoload_fs_module): New function.
52121 (read_fs_list): Likewise.
52122 (grub_normal_execute): Call read_fs_list.
52124 * kern/fs.c (grub_fs_autoload_hook): New variable.
52125 (grub_fs_probe): Added support for auto-loading.
52127 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52128 (grub_fs_module_list_t): New type.
52130 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52131 (grub_fs_autoload_hook): New prototype.
52133 * genfslist.sh: New file.
52135 * genmk.rb: Added a rule to generate a filesystem list.
52137 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52139 * configure.ac: Fix the test for cross-compiling.
52141 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52142 define GRUB_UTIL anymore.
52144 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52145 so this function works on other systems than just big endian.
52146 (load_modules): Likewise.
52147 (add_segments): Likewise.
52149 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52151 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52152 contains `l' modifier, get a long from va_arg().
52154 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52156 * kern/mm.c (grub_free): If the next free block which is being
52157 merged is the first free block, set the first block to the block
52159 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52161 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52163 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52164 `grub_ieee1275_chosen'.
52166 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52168 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52169 (grub_ieee1275_chosen): New variable.
52170 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52172 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52173 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52174 Rename first argument to `phandle' for consistency.
52175 (grub_ieee1275_get_property_length): Likewise.
52176 (grub_ieee1275_next_property): Likewise. Change type of first argument
52177 to grub_ieee1275_phandle_t.
52178 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52179 Move export next to declaration.
52180 (grub_ieee1275_chosen): New variable.
52181 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52182 Correct cosmetic typo.
52183 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52184 `grub_ieee1275_chosen'.
52185 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52186 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52187 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52188 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52189 `grub_ieee1275_chosen'.
52191 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52193 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52195 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52196 /chosen/bootargs as "variable=value" pairs.
52198 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52200 * include/grub/misc.h (grub_dprintf): New macro.
52201 (grub_real_dprintf): New prototype.
52202 (grub_strword): Likewise.
52203 (grub_iswordseparator): Likewise.
52204 * kern/misc.c (grub_real_dprintf): New function.
52205 (grub_strword): Likewise.
52206 (grub_iswordseparator): Likewise.
52208 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52210 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52211 (roundup): Remove macro.
52212 (grub_ieee1275_flags): Make static.
52213 (grub_ieee1275_realmode): Remove.
52214 (grub_ieee1275_test_flag): New function.
52215 (grub_ieee1275_set_flag): Likewise.
52216 (find_options): Rename to `grub_ieee1275_find_options'; update
52217 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52218 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52219 (cmain): New prototype.
52220 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52221 `grub_ieee1275_flags' directly.
52222 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52223 machine/biosdisk.h.
52224 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52225 Don't include grub/machine/init.h.
52226 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52227 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52229 (grub_ieee1275_realmode): Likewise.
52230 (grub_ieee1275_flag): New enum.
52231 (grub_ieee1275_test_flag): New prototype.
52232 (grub_ieee1275_set_flag): New prototype.
52233 * include/grub/powerpc/ieee1275/init.h: Remove file.
52234 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52235 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52236 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52237 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52239 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52240 `grub_ieee1275_test_flag'.
52241 (grub_ieee1275_encode_devname): Likewise.
52243 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52245 * include/grub/powerpc/ieee1275/ieee1275.h
52246 (grub_ieee1275_encode_devname): New prototype.
52247 (grub_ieee1275_get_filename): Likewise.
52248 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52250 (grub_set_prefix): Likewise.
52251 (grub_machine_init): Call grub_set_prefix.
52252 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52253 (grub_parse_type): New enum.
52254 (grub_ieee1275_get_devargs): New function.
52255 (grub_ieee1275_get_devname): Likewise.
52256 (grub_ieee1275_parse_args): Likewise.
52257 (grub_ieee1275_get_filename): Likewise.
52258 (grub_ieee1275_encode_devname): Likewise.
52260 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52262 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52263 `grub_loader_unset'.
52265 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52267 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52268 instead of grub_ieee1275_interpret.
52269 (grub_halt_init): New function.
52270 (grub_halt_fini): Likewise.
52271 (GRUB_MOD_INIT): Correct message grammar.
52272 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52273 instead of grub_ieee1275_interpret.
52274 (grub_reboot_init): New function.
52275 (grub_reboot_fini): Likewise.
52276 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52277 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52278 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52279 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52280 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52282 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52284 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52286 (grub_halt): Likewise.
52287 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52288 (cmain): Remove __attribute__((unused)).
52289 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52290 (grub_heap_len): Likewise.
52291 (grub_machine_fini): New function.
52292 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52293 (grub_halt): Likewise.
52294 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52296 * util/powerpc/ieee1275/misc.c: New file.
52298 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52300 * DISTLIST: New file.
52301 * gendistlist.sh: Likewise.
52303 * Makefile.in (COMMON_DISTFILES): Removed.
52304 (BOOT_DISTFILES): Likewise.
52305 (CONF_DISTFILES): Likewise.
52306 (DISK_DISTFILES): Likewise.
52307 (FS_DISTFILES): Likewise.
52308 (INCLUDE_DISTFILES): Likewise.
52309 (KERN_DISTFILES): Likewise.
52310 (LOADER_DISTFILES): Likewise.
52311 (TERM_DISTFILES): Likewise.
52312 (UTIL_DISTFILES): Likewise.
52313 (DISTFILES): Likewise.
52314 (uninstall): Uninstall files in $(pkgdata_DATA).
52315 (DISTLIST): New target.
52316 (distdir): Use the contents of the file DISTLIST to get a list of
52319 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52321 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52322 descriptor. This is ported from GRUB Legacy.
52324 * gencmdlist.sh: Added an extra semicolon to make it work with
52325 old sed versions. Reported by Robert Bihlmeyer
52326 <robbe@orcus.priv.at>.
52328 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52330 Automatic loading of commands is supported.
52332 * normal/main.c (read_command_list): New function.
52333 (grub_normal_execute): Call read_command_list.
52335 * normal/command.c (grub_register_command): Return zero or CMD.
52336 Allocate CMD->NAME from the heap.
52337 Initialize CMD->MODULE_NAME to zero.
52338 Find the same name as well. If the same command is found and it is
52339 a dummy command, overwrite members. If it is not a dummy command,
52341 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52342 (grub_command_find): If a dummy command is found, load a module
52343 and retry to find a command only once.
52345 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52346 make sure that each command is loaded.
52348 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52350 (struct grub_command): Remove const from the member `name'.
52351 Add a new member `module_name'.
52352 (grub_register_command): Return grub_command_t.
52354 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52355 sure that each command is loaded.
52357 * genmk.rb (PModule::rule): Specify a module name without the
52358 suffix ".mod" to gencmdlist.sh.
52360 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52362 * gencmdlist.sh: New file.
52364 * genmk.rb (PModule::rule): Generate a rule for a command list.
52366 Generate command.lst from $(COMMANDFILES).
52368 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52369 (DATA): Added $(pkgdata_DATA).
52370 (install-local): Install files in $(pkgdata_DATA).
52372 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52374 * term/i386/pc/vga.c (debug_command): Removed.
52375 (GRUB_MOD_INIT): Do not register the command "debug".
52377 From Hollis Blanchard:
52378 * commands/configfile.c: New file.
52379 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52380 commands/configfile.c.
52381 (pkgdata_MODULES): Added configfile.mod.
52382 (configfile_mod_SOURCES): New variable.
52383 (configfile_mod_CFLAGS): Likewise.
52384 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52385 commands/configfile.c.
52386 (pkgdata_MODULES): Added configfile.mod.
52387 (configfile_mod_SOURCES): New variable.
52388 (configfile_mod_CFLAGS): Likewise.
52389 * util/grub-emu.c (main): Call grub_configfile_init and
52390 grub_configfile_fini.
52391 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52393 [GRUB_UTIL] (grub_configfile_fini): Likewise.
52395 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52397 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52400 * commands/help.c (grub_cmd_help): Do not print newlines after
52401 the last command in print_command_help.
52403 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52405 * commands/default.h: New file.
52406 * commands/timeout.h: Likewise.
52407 * normal/context.c: Likewise.
52409 * util/misc.c: Do not include sys/times.h.
52410 Include sys/time.h and grub/machine/time.h.
52411 (grub_get_rtc): Rewritten with gettimeofday.
52413 * util/grub-emu.c (main): Call grub_default_init and
52414 grub_timeout_init before grub_normal_init, and call
52415 grub_timeout_fini and grub_default_fini after grub_main.
52417 * util/console.c (grub_ncurses_checkkey): Return the read
52420 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52423 * normal/main.c (read_config_file): Push MENU. If this fails,
52424 print an error and wait for a user input.
52425 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52426 If a menu is empty or an error occurs, pop MENU.
52427 (grub_normal_execute): Pop and free MENU after grub_menu_run
52430 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52432 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52434 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52436 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52438 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52441 * include/grub/normal.h (struct grub_menu_list): New struct.
52442 (grub_menu_list_t): New type.
52443 (struct grub_context): New struct.
52444 (grub_context_t): New type.
52445 (grub_register_command): Got rid of EXPORT_FUNC.
52446 (grub_unregister_command): Likewise.
52447 (grub_context_get): New prototype.
52448 (grub_context_get_current_menu): Likewise.
52449 (grub_context_push_menu): Likewise.
52450 (grub_context_pop_menu): Likewise.
52451 [GRUB_UTIL] (grub_default_init): Likewise.
52452 [GRUB_UTIL] (grub_default_fini): Likewise.
52453 [GRUB_UTIL] (grub_timeout_init): Likewise.
52454 [GRUB_UTIL] (grub_timeout_fini): Likewise.
52456 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
52457 commands/timeout.c and normal/context.c.
52458 (pkgdata_MODULES): Added default.mod and timeout.mod.
52459 (normal_mod_SOURCES): Added normal/context.c.
52460 (default_mod_SOURCES): New variable.
52461 (default_mod_CFLAGS): Likewise.
52462 (timeout_mod_SOURCES): Likewise.
52463 (timeout_mod_CFLAGS): Likewise.
52464 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
52466 (pkgdata_MODULES): Added default.mod and timeout.mod.
52467 (normal_mod_SOURCES): Added normal/context.c.
52468 (default_mod_SOURCES): New variable.
52469 (default_mod_CFLAGS): Likewise.
52470 (timeout_mod_SOURCES): Likewise.
52471 (timeout_mod_CFLAGS): Likewise.
52473 * Makefile.in (all-local): Added $(MKFILES).
52475 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
52477 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
52478 (grub_emu_SOURCES): Likewise.
52479 (pkgdata_MODULES): Add `sun.mod'.
52480 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52481 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52483 (pkgdata_MODULES): Add `sun.mod'.
52484 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52485 * include/grub/partition.h (grub_sun_partition_map_init): New
52487 (grub_sun_partition_map_fini): Likewise.
52488 * partmap/sun.c: New file.
52489 * util/grub-emu.c (main): Initialize and de-initialize the sun
52490 partitionmap support.
52492 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
52494 This implements an Emacs-like menu entry editor.
52496 * normal/menu_entry.c: New file.
52498 * util/console.c (grub_ncurses_putchar): Translate some Unicode
52499 characters to ASCII.
52500 (saved_char): New variable.
52501 (grub_ncurses_checkkey): Rewritten completely.
52502 (grub_ncurses_getkey): Likewise.
52503 (grub_ncurses_init): Call raw instead of cbreak.
52505 * normal/menu.c (print_entry): Do not put a space.
52506 (init_page): Renamed to ...
52507 (grub_menu_init_page): ... this. All callers changed.
52508 (edit_menu_entry): Removed.
52509 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
52511 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
52513 * kern/misc.c (grub_vprintf): Call grub_refresh.
52515 * normal/menu.c (DISP_LEFT): Renamed to ...
52516 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
52517 * normal/menu.c (DISP_UP): Renamed to ...
52518 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
52519 * normal/menu.c (DISP_RIGHT): Renamed to ...
52520 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
52521 * normal/menu.c (DISP_DOWN): Renamed to ...
52522 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
52523 * normal/menu.c (DISP_HLINE): Renamed to ...
52524 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
52525 * normal/menu.c (DISP_VLINE): Renamed to ...
52526 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
52527 * normal/menu.c (DISP_UL): Renamed to ...
52528 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
52529 * normal/menu.c (DISP_UR): Renamed to ...
52530 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
52531 * normal/menu.c (DISP_LL): Renamed to ...
52532 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
52533 * normal/menu.c (DISP_LR): Renamed to ...
52534 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
52535 * normal/menu.c (TERM_WIDTH): Renamed to ...
52536 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
52537 * normal/menu.c (TERM_HEIGHT): Renamed to ...
52538 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
52539 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
52540 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
52541 * normal/menu.c (TERM_MARGIN): Renamed to ...
52542 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
52543 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
52544 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
52545 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
52546 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
52547 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
52548 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
52549 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
52550 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
52551 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
52552 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
52553 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
52554 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
52555 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
52556 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
52557 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
52558 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
52559 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
52560 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
52561 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
52562 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
52563 All callers changed.
52565 * include/grub/normal.h: New prototype.
52567 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52568 normal/menu_entry.c.
52569 (normal_mod_SOURCES): Likewise.
52570 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52571 (normal_mod_SOURCES): Likewise.
52573 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
52575 * include/grub/normal.h (grub_halt_init): New prototype.
52576 (grub_halt_fini): Likewise.
52577 (grub_reboot_init): Likewise.
52578 (grub_reboot_fini): Likewise.
52580 * util/grub-emu.c: Include signal.h.
52581 (main_env): New global variable.
52582 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
52584 (grub_machine_fini): New function.
52585 (main): Call grub_halt_init and grub_reboot_init before
52586 grub_main, and grub_reboot_fini and grub_halt_fini after it.
52587 Call setjmp with MAIN_ENV to go back afterwards.
52588 Call grub_machine_fini right before return.
52590 * include/grub/util/misc.h: Include setjmp.h.
52591 (main_env): New prototype.
52593 * include/grub/kernel.h (grub_machine_fini): New prototype.
52594 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
52595 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
52597 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
52598 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
52599 * term/i386/pc/console.c (grub_console_fini): Likewise.
52601 * util/i386/pc/misc.c: New file.
52603 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52604 util/i386/pc/misc.c, commands/i386/pc/halt.c and
52605 commands/i386/pc/reboot.c.
52607 2005-02-14 Guillem Jover <guillem@hadrons.org>
52609 * include/grub/dl.h (grub_dl_check_header): New prototype.
52610 (grub_arch_dl_check_header): Change return type to grub_err_t,
52611 remove size parameter and export function. Update all callers.
52612 * kern/dl.c (grub_dl_check_header): New function.
52613 (grub_dl_load_core): Use `grub_dl_check_header' instead of
52614 `grub_arch_dl_check_header'. Check ELF type. Check if sections
52615 are inside the core.
52616 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
52617 independent ELF header checks.
52618 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
52619 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
52620 `grub_dl_check_header' instead of explicit checks. Check for the
52622 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
52623 `grub_dl_check_header' instead of explicit checks. Remove arch
52624 specific ELF header checks.
52626 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
52629 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
52631 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
52632 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
52634 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
52636 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
52637 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
52638 (part_map_iterate): Clear `grub_errno' and return 0 if
52639 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
52640 * partmap/amiga.c (amiga_partition_map_iterate): Return
52641 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
52642 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52644 2005-02-01 Guillem Jover <guillem@hadrons.org>
52646 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
52649 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52651 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
52653 (grub_rescue_cmd_linux): New prototype.
52654 (grub_rescue_cmd_initrd): Likewise.
52655 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
52657 (grub_linux_release_mem): Release the memory for the initrd.
52658 (grub_load_linux): Renamed from this...
52659 (grub_rescue_cmd_linux): ...To this. Changed all callers.
52660 Changed `entry' not to be static. Loop over memory regions to
52661 find another one when the default fails.
52662 (grub_rescue_cmd_initrd): New function.
52663 (grub_linux_init): Remove function.
52664 (grub_linux_fini): Likewise.
52665 (GRUB_MOD_INIT): Register `initrd'.
52666 (GRUB_MOD_FINI): Unregister `initrd'.
52667 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
52669 (grub_linux_normal_fini): Likewise.
52670 (GRUB_MOD_INIT): Register `initrd'.
52671 (GRUB_MOD_FINI): Unregister `initrd'.
52673 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52675 * commands/help.c: New file.
52676 * normal/arg.c (show_help): Renamed to...
52677 (grub_arg_show_help): ... this.
52678 * commands/i386/pc/halt.c: New file.
52679 * commands/i386/pc/reboot.c: Likewise.
52680 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
52681 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
52682 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
52683 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
52685 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52687 (pkgdata_MODULES): Add `help.mod'.
52688 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
52689 * grub/i386/pc/init.h (grub_reboot): New prototype.
52690 (grub_halt): Likewise.
52691 * include/grub/normal.h (grub_arg_show_help): New prototype.
52692 (grub_help_init): Likewise.
52693 (grub_help_fini): Likewise.
52694 * util/grub-emu.c (main): Initialize and deinitialize the help
52697 * normal/cmdline.c (grub_cmdline_get): Doc fix.
52699 * normal/command.c (grub_command_init): Fixed the description of
52700 the `set' and `unset' commands.
52702 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52704 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
52706 * commands/ieee1275/halt.c: New file.
52707 * commands/ieee1275/reboot.c: Likewise.
52708 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
52709 `__attribute__ ((unused))'. Some GCS related fixed.
52710 (grub_suspend_init) [GRUB_UTIL]: Function removed.
52711 (grub_suspend_fini): Likewise.
52712 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
52714 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
52715 (halt_mod_CFLAGS): New variables.
52716 * include/grub/powerpc/ieee1275/ieee1275.h
52717 (grub_ieee1275_interpret): New prototype.
52719 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
52721 * include/grub/misc.h (memmove): New prototype.
52722 (memcpy): Likewise.
52724 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
52726 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
52727 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
52729 2005-01-22 Marco Gerards <metgerards@student.han.nl>
52731 * kern/misc.c (grub_strndup): Function rewritten.
52733 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
52735 * normal/menu.c (TERM_WIDTH): Macro redefined.
52736 (TERM_TOP_BORDER_Y): Likewise.
52737 (draw_border): Replaced while-loop by a for-loop. Make the number
52738 of lines consistent with the number of lines displayed in
52739 print_entries. Added a margin below the rectangle.
52740 (print_entry): Make the entry fit in the rectangle.
52741 (print_entries): Display the scroll arrows next to the right
52744 2005-01-21 Marco Gerards <metgerards@student.han.nl>
52746 * fs/minix.c (grub_minix_find_file): Reserve more space for
52747 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
52748 `grub_strncpy' to copy `path' into it.
52750 2005-01-21 Marco Gerards <metgerards@student.han.nl>
52752 Add the loopback device, a device via which files can be accessed
52755 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
52756 (pkgdata_MODULES): Add loopback.mod.
52757 (loopback_mod_SOURCES): New variable.
52758 (loopback_mod_CFLAGS): Likewise.
52759 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52761 (pkgdata_MODULES): Add loopback.mod.
52762 (loopback_mod_SOURCES): New variable.
52763 (loopback_mod_CFLAGS): Likewise.
52764 * disk/loopback.c: new file.
52765 * include/grub/normal.h (grub_loop_init): New prototype.
52766 (grub_loop_fini): New prototype.
52767 * util/grub-emu.c (main): Initialize and de-initialize loopback
52769 * include/grub/disk.h (grub_disk_dev_id): Add
52770 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
52772 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
52774 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
52776 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
52777 (suspend_mod_SOURCES): New variable.
52778 (suspend_mod_CFLAGS): Likewise.
52779 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
52781 * commands/ieee1275/suspend.c: New file.
52783 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
52785 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
52786 ((unused))' to `__attribute__ ((used))'.
52787 (GRUB_MOD_FINI): Likewise.
52788 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
52789 * genmk.rb (PModule): Assign space to common symbols when linking
52792 2005-01-20 Marco Gerards <metgerards@student.han.nl>
52794 * include/grub/mm.h (grub_mm_init_region): Change the type of the
52795 `unsigned' arguments to `grub_size_t'.
52796 (grub_malloc): Likewise.
52797 (grub_realloc): Likewise.
52798 (grub_memalign): Likewise.
52799 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
52800 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
52801 * util/misc.c (grub_malloc): Likewise.
52802 (grub_realloc): Likewise.
52803 * kern/mm.c (get_header_from_pointer): Change the casts to
52804 `unsigned' into a cast to `grub_size_t'.
52806 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
52807 point to `currnode' when `currnode' is changed.
52809 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
52810 Schottelius <nico-linux@schottelius.org>.
52812 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
52814 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
52815 (note_path): Remove variable.
52816 (GRUB_IEEE1275_NOTE_NAME): New macro.
52817 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
52818 (grub_ieee1275_note_hdr): New structure.
52819 (grub_ieee1275_note_desc): Likewise.
52820 (grub_ieee1275_note): Likewise.
52821 (load_note): Remove `dir' argument. All callers updated. Remove
52822 `note_img' and `path'. Do not load a file from `note_path'.
52823 Initialize a struct grub_ieee1275_note and write that to `out'.
52824 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
52826 2005-01-05 Marco Gerards <metgerards@student.han.nl>
52828 * util/misc.c (grub_util_read_image): Revert last change. It
52829 called `grub_util_read_at', which seeks from the beginning of the
52832 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
52834 * TODO: Add note about endianness in grub-mkimage.
52835 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
52837 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
52838 (grub_mkimage_SOURCES): New target.
52839 * include/grub/kernel.h (grub_start_addr): Remove variable.
52840 (grub_end_addr): Likewise.
52841 (grub_total_module_size): Likewise.
52842 (grub_kernel_image_size): Likewise.
52843 (GRUB_MODULE_MAGIC): New constant.
52844 (grub_module_info): New structure.
52845 (grub_arch_modules_addr): New prototype.
52846 (grub_get_end_addr): Remove prototype.
52847 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
52848 * include/grub/powerpc/ieee1275/kernel.h: New file.
52849 * include/grub/util/misc.h (grub_util_get_fp_size): New
52851 (grub_util_read_at): Likewise.
52852 (grub_util_write_image_at): Likewise.
52853 * kern/main.c (grub_get_end_addr): Remove function.
52854 (grub_load_modules): Call grub_arch_modules_addr instead of using
52855 grub_end_addr. Look for a grub_module_info struct in memory. Use
52856 the grub_module_info fields instead of calling grub_get_end_addr
52857 as loop conditions. Move grub_add_unused_region code here.
52858 (grub_add_unused_region): Remove function.
52859 * kern/i386/pc/init.c: Include grub/cache.h.
52860 (grub_machine_init): Remove call to grub_get_end_addr. Remove
52861 one call to add_mem_region.
52862 (grub_arch_modules_addr): New function.
52863 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
52864 (grub_total_module_size): Likewise.
52865 Include grub/machine/kernel.h.
52866 (grub_arch_modules_addr): New function.
52867 * util/grub-emu.c (grub_end_addr): Remove variable.
52868 (grub_total_module_size): Likewise.
52869 (grub_arch_modules_addr): New function.
52870 * util/misc.c: Include unistd.h.
52871 (grub_util_get_fp_size): New function.
52872 (grub_util_read_at): Likewise.
52873 (grub_util_write_image_at): Likewise.
52874 (grub_util_read_image): Call grub_util_read_at.
52875 (grub_util_write_image): Call grub_util_write_image_at.
52876 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
52877 additional memory in kernel_img for a struct grub_module_info.
52878 Fill in that grub_module_info.
52879 * util/powerpc/ieee1275/grub-mkimage.c: New file.
52881 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
52883 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
52885 * include/grub/powerpc/ieee1275/ieee1275.h
52886 (grub_ieee1275_milliseconds): New prototype.
52887 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
52889 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
52890 grub_ieee1275_milliseconds.
52892 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
52894 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
52896 (find_options): New function.
52897 (cmain): Call find_options.
52898 * include/grub/powerpc/ieee1275/ieee1275.h
52899 (grub_ieee1275_realmode): New extern variable.
52900 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
52901 grub_map if grub_ieee1275_realmode is false.
52903 2004-12-29 Marco Gerards <metgerards@student.han.nl>
52905 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
52906 lines are inserted and make it work like readline. Reported by
52907 Vincent Pelletier <subdino2004@yahoo.fr>.
52909 2004-12-28 Marco Gerards <metgerards@student.han.nl>
52911 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
52913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
52914 `kern/powerpc/cache.S'.
52916 2004-12-27 Marco Gerards <metgerards@student.han.nl>
52918 * genmk.rb: Handle the `Program' class in the main loop. Written
52919 by Johan Rydberg <jrydberg@gnu.org>.
52920 (Program): New class.
52921 (programs): New variable.
52922 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
52923 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
52924 instead of "grub/kernel.h". Include <grub/machine/init.h>.
52925 (help_arch): Function removed.
52926 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
52927 `powerpc/libgcc.h' and `loader.h'.
52928 (pkgdata_PROGRAMS): New variable.
52929 (sbin_UTILITIES): Variable removed.
52930 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
52931 (grubof_SOURCES): Variable re-defined so it only includes the
52932 core functionality.
52933 (grubof_CFLAGS): Remove `-DGRUBOF'.
52934 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
52935 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
52936 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
52937 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
52938 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
52939 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
52940 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
52941 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
52942 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
52943 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
52944 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
52945 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
52946 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
52947 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
52948 (pc_mod_CFLAGS): New variables.
52949 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
52950 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
52951 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
52952 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
52954 * include/grub/i386/pc/init.h (grub_os_area_addr)
52955 (rub_os_area_size): ... to here.
52956 * include/grub/powerpc/ieee1275/ieee1275.h
52957 (grub_ieee1275_entry_fn): Export symbol.
52958 * include/grub/powerpc/ieee1275/init.h: New file.
52959 * include/grub/powerpc/libgcc.h: Likewise.
52960 * include/grub/cache.h: Likewise.
52961 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
52962 <hollis@penguinppc.org>.
52963 * kern/dl.c: Include <grub/cache.h>.
52964 (grub_dl_flush_cache): New function.
52965 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
52967 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
52968 (grub_console_init): Removed prototypes.
52969 (grub_machine_init): Don't initialize the modules anymore.
52970 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
52972 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
52973 Macro undef removed.
52974 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
52975 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
52976 relocation `R_PPC_REL32'. Return an error when the relocation is
52978 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
52979 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
52980 * util/misc.c (grub_arch_sync_caches): Likewise.
52982 2004-12-19 Marco Gerards <metgerards@student.han.nl>
52984 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
52985 `symlist.c', add `grubof_symlist.c'.
52986 (symlist.c): Variable removed.
52987 (grubof_HEADERS): Variable added.
52988 (grubof_symlist.c): New target.
52989 (kernel_syms.lst): Use `grubof_HEADERS' instead of
52990 `kernel_img_HEADERS'.
52991 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
52992 * kern/powerpc/dl.c: New file.
52993 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
52995 (grub_arch_dl_relocate_symbols): Likewise.
52996 (grub_register_exported_symbols): Likewise.
52998 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53000 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53001 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53002 to fail instead. Reported by Vincent Pelletier
53003 <subdino2004@yahoo.fr>.
53005 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53006 it is not allocated. Reported by Vincent Pelletier
53007 <subdino2004@yahoo.fr>.
53009 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53010 output so the output looks better.
53012 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53014 Modulize the partition map support and add support for the amiga
53017 * commands/ls.c: Include <grub/partition.h> instead of
53018 <grub/machine/partition.h>.
53019 * kern/disk.c: Likewise.
53020 * kern/rescue.c: Likewise.
53021 * loader/i386/pc/chainloader.c: Likewise.
53022 * normal/cmdline.c: Likewise.
53023 * kern/powerpc/ieee1275/init.c: Likewise.
53024 (grub_machine_init): Call `grub_pc_partition_map_init',
53025 `grub_amiga_partition_map_init' and
53026 `grub_apple_partition_map_init'.
53027 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53028 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53029 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53030 `partition.h' and `pc_partition.h'.
53031 (grub_setup_SOURCES): Remove
53032 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53033 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53034 (grub_emu_SOURCES): Likewise.
53035 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53036 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53037 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53039 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53040 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53041 (grubof_SOURCES): Likewise.
53042 * disk/i386/pc/partition.c: File removed.
53043 * disk/powerpc/ieee1275/partition.c: Likewise.
53044 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53045 * include/grub/i386/pc/partition.h: Likewise.
53046 * kern/partition.c: New file.
53047 * partmap/amiga.c: Likewise.
53048 * partmap/apple.c: Likewise.
53049 * partmap/pc.c: Likewise.
53050 * include/grub/partition.h: Likewise..
53051 * include/grub/pc_partition.h: Likewise.
53052 * util/grub-emu.c: Include <grub/partition.h> instead of
53053 <grub/machine/partition.h>.
53054 (main): Call `grub_pc_partition_map_init',
53055 `grub_amiga_partition_map_init' and
53056 `grub_apple_partition_map_init' and deinitialize afterwards.
53057 * util/i386/pc/biosdisk.c: Include `#include
53058 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53059 `<grub/machine/partition.h>'.
53060 * util/i386/pc/grub-setup.c: Likewise.
53061 * util/i386/pc/biosdisk.c: Likewise.
53062 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53063 partition information in case of a PC partition.
53064 * util/i386/pc/grub-setup.c: Include `#include
53065 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53066 `<grub/machine/partition.h>'.
53067 (setup): Only access the PC specific partition information in case
53070 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53072 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53073 (grub_longjmp): Likewise.
53074 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53076 * normal/powerpc/setjmp.S: New file.
53077 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53078 `normal/powerpc/setjmp.S'.
53079 (grubof_CFLAGS): Add `-DGRUBOF'.
53080 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53081 [GRUB_UTIL && !GRUBOF].
53083 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53085 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53086 property named `name'. Correctly handle the error returned by
53087 `grub_ieee1275_finddevice' if a device can not be opened.
53089 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53091 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53092 `actual' for negativity.
53093 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53096 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53098 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53099 (PAGE_OFFSET): New macro.
53100 (CRTC_ADDR_PORT): Likewise.
53101 (CRTC_DATA_PORT): Likewise.
53102 (START_ADDR_HIGH_REGISTER): Likewise.
53103 (START_ADDR_LOW_REGISTER): Likewise.
53104 (GRAPHICS_ADDR_PORT): Likewise.
53105 (GRAPHICS_DATA_PORT): Likewise.
53106 (READ_MAP_REGISTER): Likewise.
53107 (INPUT_STATUS1_REGISTER): Likewise.
53108 (INPUT_STATUS1_VERTR_BIT): Likewise.
53109 (page): New variable.
53110 (wait_vretrace): New function.
53111 (set_read_map): Likewise.
53112 (set_start_address): Likewise.
53113 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53115 (check_vga_mem): Take the page into account.
53116 (write_char): Likewise.
53117 (write_cursor): Likewise.
53118 (scroll_up): Likewise. Copy the page to the page that is not
53119 shown and switch between both pages.
53120 (grub_vga_putchar): Fix off by one error.
53121 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53124 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53126 Add support for iso9660 (including rockridge).
53128 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53129 (iso9660_mod_SOURCES): New variable.
53130 (iso9660_mod_CFLAGS): Likewise.
53131 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53132 * include/grub/fs.h (grub_iso9660_init): New prototype.
53133 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53134 * fs/iso9660.c: New file.
53136 * include/grub/misc.h (grub_strncat): New prototype.
53137 * kern/misc.c (grub_strncat): New function.
53139 * fs/hfs.c (grub_hfs_mount): Translate the error
53140 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53141 * fs/jfs.c (grub_jfs_mount): Likewise.
53142 * fs/ufs.c (grub_ufs_mount): Likewise.
53144 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53146 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53147 which initialized BAT registers.
53148 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53149 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53151 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53152 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53154 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53155 (grub_mapclaim): Likewise.
53156 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53157 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53160 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53162 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53163 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53164 -ffreestanding and -msoft-float.
53166 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53168 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53169 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53170 set in grub_ieee1275_flags.
53172 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53174 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53176 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53177 grub_console_init first.
53178 Change the memory range used for grub_ieee1275_claim and
53179 grub_mm_init_region.
53180 Print an error message if the claim fails.
53181 Include <grub/misc.h>.
53183 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53185 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53186 Call grub_children_iterate for device nodes of type `scsi',
53188 (grub_ofdisk_open): Remove manual device alias resolution.
53189 Fix memory leak when device cannot be opened.
53190 * include/grub/powerpc/ieee1275/ieee1275.h
53191 (grub_children_iterate): New prototype.
53192 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53194 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53195 Return -1 if args.size was -1.
53197 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53199 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53200 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53201 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53202 Open Firmware's memory for it; claim memory from _start to _end.
53203 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53204 (_end): New extern.
53205 (_start): Zero BSS from __bss_start to _end.
53206 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53208 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53210 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53212 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53213 -1 if args.base was -1.
53215 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53217 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53218 escape sequence instead of a literal ^L. Also call
53219 grub_ofconsole_gotoxy.
53221 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53223 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53224 void * arguments to grub_addr_t. All callers updated. Also make
53225 the `result' argument optional.
53226 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53227 All callers updated.
53229 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53231 * commands/ls.c (grub_ls_list_files): Use the string following the
53232 initial ')', if present, as the filesystem path.
53233 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53235 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53237 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53239 Make the source code of the menu interface more readable.
53241 * normal/menu.c: Include grub/mm.h.
53242 (TERM_WIDTH): New macro.
53243 (TERM_HEIGHT): Likewise.
53244 (TERM_INFO_HEIGHT): Likewise.
53245 (TERM_MARGIN): Likewise.
53246 (TERM_SCROLL_WIDTH): Likewise.
53247 (TERM_TOP_BORDER_Y): Likewise.
53248 (TERM_LEFT_BORDER_X): Likewise.
53249 (TERM_BORDER_WIDTH): Likewise.
53250 (TERM_MESSAGE_HEIGHT): Likewise.
53251 (TERM_BORDER_HEIGHT): Likewise.
53252 (TERM_NUM_ENTRIES): Likewise.
53253 (TERM_FIRST_ENTRY_Y): Likewise.
53254 (TERM_ENTRY_WIDTH): Likewise.
53255 (TERM_CURSOR_X): Likewise.
53256 (draw_border): Use macros instead of magic numbers.
53257 (print_entry): Likewise.
53258 (print_entries): Likewise.
53259 (run_menu): Likewise. Also, handle the key 'e'.
53260 (run_menu_entry): Ignore empty command lines.
53261 (print_message): Added a new argument EDIT. If EDIT is true,
53262 print a different message.
53263 (init_page): Likewise.
53264 (edit_menu_entry): New function. Not implemented yet.
53266 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53268 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53269 can be loaded from normal mode.
53271 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53273 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53274 (multiboot_mod_CFLAGS): New variables.
53275 * loader/i386/pc/linux_normal.c: New file.
53276 * loader/i386/pc/multiboot_normal.c: Likewise.
53278 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53279 attribute `unused'.
53281 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53282 `fdiro' to read the mode information from instead of `diro'.
53284 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53285 looking up a symlink.
53287 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53289 * normal/command.c (grub_command_execute): Don't parse the
53290 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53291 flags of the command.
53293 * normal/menu.c (grub_menu_run): Fix typo.
53295 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53297 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53299 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53300 `y + 1' instead of `y - 1'.
53302 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53304 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53306 From Hollis Blanchard <hollis@penguinppc.org>:
53307 * kern/misc.c (memmove): New alias for grub_memmove.
53308 (memcmp): New alias for grub_memcmp.
53309 (memset): New alias for grub_memset.
53310 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53311 Change "int handle" to "grub_ieee1275_phandle_t handle".
53312 * include/grub/powerpc/ieee1275/ieee1275.h
53313 (grub_ieee1275_get_property): Likewise.
53315 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53317 Added normal mode command `chainloader' as module chain.mod, which
53318 depends on normal.mod and _chain.mod.
53320 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53321 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53322 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53324 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53325 but arguments parsing moved to ...
53326 (grub_chainloader_cmd): ... here. New function.
53327 * include/grub/i386/pc/chainloader.h: New file.
53328 * loader/i386/pc/chainloader_normal.c: Likewise.
53330 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53332 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53333 (grub_mkimage_LDFLAGS): Likewise.
53334 (grub_emu_SOURCES): Likewise.
53335 (kernel_img_HEADERS): Added fshelp.h.
53336 * fs/ext2.c: Include <grub/fshelp.h>.
53337 (FILETYPE_REG): New macro.
53338 (FILETYPE_INO_REG): Likewise.
53339 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53341 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53343 (grub_fshelp_node): New struct.
53344 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53346 (grub_ext2_get_file_block): Removed function.
53347 (grub_ext2_read_block): New function.
53348 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53349 This function was written.
53350 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53351 (grub_ext2_find_file): Removed function.
53352 (grub_ext2_read_symlink): New function.
53353 (grub_ext2_iterate_dir): Likewise.
53354 (grub_ext2_open): Rewritten.
53355 (grub_ext2_dir): Rewritten.
53356 * include/grub/fshelp.h: New file.
53357 * fs/fshelp.c: Likewise.
53359 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53361 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53362 (print_message): Add a missing newline.
53363 (run_menu): Added timeout support.
53364 (run_menu_entry): New local function.
53365 (grub_menu_run): Added support for booting.
53367 * kern/loader.c (grub_loader_is_loaded): New function.
53369 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53370 (grub_get_rtc): Exported.
53372 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53373 (grub_get_rtc): Exported.
53375 * include/grub/normal.h (struct grub_command_list): Remove
53376 constant from the member `command'.
53378 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53380 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53382 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53384 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53386 Add support for the JFS filesystem.
53388 * fs/jfs.c: New file.
53389 * include/grub/fs.h (grub_jfs_init): New prototype.
53390 (grub_jfs_fini): New prototype.
53391 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53392 (grub_emu_SOURCES): Likewise.
53393 (pkgdata_MODULES): Add jfs.mod.
53394 (jfs_mod_SOURCES): New variable.
53395 (jfs_mod_CFLAGS): Likewise.
53396 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53397 (grubof_SOURCES): Likewise.
53398 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53400 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53401 endian to the host endian.
53402 (grub_fat_utf16_to_utf8): Move function from there...
53403 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
53404 the endianness of the source string anymore.
53405 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53407 2004-08-24 Marco Gerards <metgerards@student.han.nl>
53409 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53410 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53411 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53412 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
53414 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53415 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53416 for `node_found' and `it_dir'.
53417 (grub_hfs_dir): Add prototype for `dir_hook'.
53419 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53420 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53421 and `indir32' to silence a gcc warning.
53423 * include/grub/fs.h (grub_hfs_init): New prototype.
53424 (grub_hfs_fini): Likewise.
53427 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53429 Each disk device has its own id now. This is useful to make use
53430 of multiple disk devices.
53432 * include/grub/disk.h (grub_disk_dev_id): New enum.
53433 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53434 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53436 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53437 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53439 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53440 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53442 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53443 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53445 * include/grub/disk.h (struct grub_disk_dev): Added a new member
53446 "id" which is used by the cache manager.
53448 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
53451 2004-08-18 Marco Gerards <metgerards@student.han.nl>
53453 * fs/hfs.c: New file.
53454 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
53455 (grub_emu_SOURCES): Likewise.
53456 (pkgdata_MODULES): Add hfs.mod.
53457 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
53458 (grubof_SOURCES): Likewise.
53459 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
53461 * include/grub/misc.h (grub_strncasecmp): Add prototype.
53462 * kern/misc.c (grub_strncasecmp): Add function.
53464 2004-08-14 Marco Gerards <metgerards@student.han.nl>
53466 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
53469 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
53470 (grub_ext2_dir): In case the directory entry type is unknown, read
53473 2004-08-02 Peter Bruin <pjbruin@dds.nl>
53475 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
53476 grub_load_linux instead of grub_rescue_cmd_linux as second
53477 argument of grub_rescue_register_command.
53479 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
53481 2004-07-27 Marco Gerards <metgerards@student.han.nl>
53483 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
53485 * commands/boot.c: Remove the check for `GRUB_UTIL'.
53486 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53487 `loader/powerpc/ieee1275/linux.c',
53488 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
53489 * include/grub/powerpc/ieee1275/ieee1275.h
53490 (grub_ieee1275_release): New prototype.
53491 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
53492 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
53493 normal, boot, linux and linux_normal.
53494 * loader/powerpc/ieee1275/linux.c: New file.
53495 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
53497 2004-07-12 Marco Gerards <metgerards@student.han.nl>
53499 * normal/arg.c (grub_arg_parse): Correct error handling after
53500 reallocating the argumentlist (check if `argl' is not null instead
53501 of checking if `args' is not null).
53502 * kern/mm.c (grub_realloc): Return the same pointer when using the
53503 same region, instead of returning the header address.
53505 2004-07-11 Marco Gerards <metgerards@student.han.nl>
53507 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
53508 one block instead of two when looking for the initial partition.
53509 (grub_partition_probe): Initialize the local variable `p' with 0.
53510 Use base 10 for the grub_strtoul call.
53511 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
53512 need for one local variable.
53513 (grub_strtoul): Don't add the new value to `num', instead of that
53516 2004-07-11 Marco Gerards <metgerards@student.han.nl>
53518 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
53519 (pxeboot_img_SOURCES): New variable.
53520 (pxeboot_img_ASFLAGS): Likewise.
53521 (pxeboot_img_LDFLAGS): Likewise.
53522 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
53523 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
53524 <lode_leroy@hotmail.com>.
53526 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53528 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
53529 there was no input.
53531 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53533 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
53534 the history buffer logic.
53536 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53538 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
53539 (FILETYPE_INO_SYMLINK): New macros.
53540 (grub_ext2_find_file): Check if the node is a directory using the
53541 inode stat information instead of using the filetype in the
53542 dirent. Exclude the first character of an absolute symlink.
53543 (grub_ext2_dir): Mask out the filetype part of the mode member of
53546 2004-05-24 Marco Gerards <metgerards@student.han.nl>
53548 Add support for UFS version 1 and 2. Add support for the minix
53549 filesystem version 1 and 2, both the variants with 14 and 30 long
53552 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
53554 (grub_emu_SOURCES): Likewise.
53555 (pkgdata_MODULES): Add ufs.mod and minix.mod.
53556 (ufs_mod_SOURCES): New variable.
53557 (ufs_mod_CFLAGS): Likewise.
53558 (minix_mod_SOURCES): Likewise.
53559 (minix_mod_CFLAGS): Likewise.
53560 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
53562 (grubof_SOURCES): Likewise.
53563 * fs/ufs.c: New file.
53564 * fs/minix.c: New file.
53565 * include/grub/fs.h (grub_ufs_init): New prototype.
53566 (grub_ufs_fini): Likewise.
53567 (grub_minix_init): Likewise.
53568 (grub_minix_fini): Likewise.
53569 * util/grub-emu.c (main): Initialize and deinitialize UFS and
53572 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
53574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
53575 commands/ls.c, commands/terminal.c, commands/boot.c,
53576 commands/cmp.c and commands/cat.c.
53577 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
53579 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
53582 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
53584 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
53585 and grub_, respectively. Because the conversion is trivial and
53586 mechanical, I omit the details here. Please refer to the CVS
53587 if you need more information.
53589 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
53591 * include/pupa: Renamed to ...
53592 * include/grub: ... this.
53593 * util/i386/pc/pupa-mkimage.c: Renamed to ...
53594 * util/i386/pc/grub-mkimage.c: ... this.
53595 * util/i386/pc/pupa-setup.c: Renamed to ...
53596 * util/i386/pc/grub-setup.c: ... this.
53597 * util/pupa-emu.c: Renamed to ...
53598 * util/grub-emu.c: ... this.
53600 2004-03-29 Marco Gerards <metgerards@student.han.nl>
53602 Add support for the newworld apple macintosh (PPC). This has been
53603 tested on the powerbook 2000 only. It only adds support for
53604 generic ieee1275 functions, console and disk support. This should
53605 be easy to port to other architectures with support for Open
53608 * configure.ac: Accept the powerpc as host_cpu. In the case of
53609 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
53610 specific tests are only executed while building for the i386.
53611 Inverse test for crosscompile.
53612 * genmk.rb (Utility): Allow assembler files.
53613 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
53614 * conf/powerpc-ieee1275.rmk: New file.
53615 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
53616 * disk/powerpc/ieee1275/partition.c: Likewise.
53617 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
53618 * include/pupa/powerpc/ieee1275/console.h: Likewise.
53619 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
53620 * include/pupa/powerpc/ieee1275/time.h: Likewise.
53621 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
53622 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
53623 * include/pupa/powerpc/ieee1275/loader.h
53624 * include/pupa/powerpc/setjmp.h: Likewise.
53625 * include/pupa/powerpc/types.h: Likewise.
53626 * kern/powerpc/ieee1275/init.c: Likewise.
53627 * kern/powerpc/ieee1275/openfw.c: Likewise.
53628 * term/powerpc/ieee1275/ofconsole.c: Likewise.
53630 These files were written by Johan Rydberg
53631 (jrydberg@night.trouble.net) and I only modified them slightly.
53633 * boot/powerpc/ieee1275/cmain.c: New file.
53634 * boot/powerpc/ieee1275/crt0.S: Likewise.
53635 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
53636 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
53638 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
53640 * Makefile.in: Update copyright.
53641 * genmodsrc.sh: Likewise.
53642 * gensymlist.sh: Likewise.
53643 * term/i386/pc/vga.c: Indent correctly.
53645 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
53646 bugreporting address.
53647 * util/i386/pc/pupa-setup.c (usage): Likewise,
53648 (main): Call pupa_ext2_init and pupa_ext2_fini.
53650 * fs/fat.c (log2): Renamed to ...
53651 (fat_log2): ... this.
53652 All callers changed.
53653 * kern/misc.c (memcpy): Alias to pupa_memmove.
53654 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
53656 * util/console.c (pupa_ncurses_fini): Return 0.
53658 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
53659 Move fail label here.
53660 [__GNU__]: Don't warn when using stat.
53661 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
53662 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
53663 long int. Use strtol instead of strtoul.
53665 2004-03-14 Marco Gerards <metgerards@student.han.nl>
53667 * commands/boot.c: New file.
53668 * commands/cat.c: Likewise.
53669 * commands/cmp.c: Likewise.
53670 * commands/ls.c: Likewise.
53671 * commands/terminal.c: Likewise.
53672 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
53673 (pupa_register_command): Changed interface to match the new
53675 (pupa_command_execute): Changed (almost rewritten) so it uses
53676 pupa_split_command. Added support for setting variables using the
53678 (rescue_command): Changed to work with the new argument parser.
53679 (terminal_command): Moved from here to commands/terminal.c.
53680 (set_command): New function.
53681 (unset_command): New function.
53682 (insmod_command): New function.
53683 (rmmod_command): New function.
53684 (lsmod_command): New function.
53685 (pupa_command_init): Don't initialize the command terminal
53686 anymore. Initialize the commands set, unset, insmod, rmmod and
53688 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
53689 (kernel_img_HEADERS): Add arg.h and env.h.
53690 (pupa_mkimage_LDFLAGS): Add kern/env.c.
53691 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
53692 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
53694 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
53696 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
53697 (boot_mod_SOURCES): New variable.
53698 (terminal_mod_SOURCES): Likewise.
53699 (ls_mod_SOURCES): Likewise.
53700 (cmp_mod_SOURCES): Likewise.
53701 (cat_mod_SOURCES): Likewise.
53703 * normal/arg.c: New file.
53704 * kern/env.c: Likewise.
53705 * include/pupa/arg.h: Likewise.
53706 * include/pupa/env.h: Likewise.
53707 * font/manager.c (font_command): Changed to match argument parsing
53709 (PUPA_MOD_INIT): Likewise.
53710 * hello/hello.c (pupa_cmd_hello): Likewise.
53711 (PUPA_MOD_INIT): Likewise.
53712 * include/pupa/disk.h: Include <pupa/device.h>.
53713 (pupa_print_partinfo): New prototype.
53714 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
53715 (pupa_dl_get_prefix): Likewise.
53716 * include/pupa/misc.h: Include <pupa/err.h>.
53717 (pupa_isgraph): New prototype.
53718 (pupa_isdigit): Likewise.
53719 (pupa_split_cmdline): Likewise.
53720 * include/pupa/normal.h: Include <pupa/arg.h>.
53721 (pupa_command): Changed the prototype of the member `func' to
53722 match the argument parsing interface. Added member `options'.
53723 (pupa_register_command): Updated to match function.
53724 (pupa_arg_parse): New prototype.
53725 (pupa_hello_init) [PUPA_UTIL]: New prototype.
53726 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
53727 (pupa_ls_init) [PUPA_UTIL]: Likewise.
53728 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
53729 (pupa_cat_init) [PUPA_UTIL]: Likewise.
53730 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
53731 (pupa_boot_init) [PUPA_UTIL]: Likewise.
53732 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
53733 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
53734 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
53735 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
53736 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
53737 * kern/disk.c: Include <pupa/file.h>.
53738 (pupa_print_partinfo): New function.
53739 * kern/dl.c: Include <pupa/env.h>.
53740 (pupa_dl_dir): Variable removed.
53741 (pupa_dl_load): Use the environment variable `prefix' instead of
53742 the variable pupa_dl_dir.
53743 (pupa_dl_set_prefix): Function removed.
53744 (pupa_dl_get_prefix): Likewise.
53745 * kern/i386/pc/init.c: Include <pupa/env.h>.
53746 (pupa_machine_init): Use the environment variable `prefix' instead of
53747 using pupa_dl_set_prefix to set the prefix.
53748 * kern/main.c: Include <pupa/env.h>.
53749 (pupa_set_root_dev): Use the environment variable `prefix' instead of
53750 using pupa_dl_get_prefix to get the prefix.
53751 * kern/misc.c: Include <pupa/env.h>.
53752 (pupa_isdigit): New function.
53753 (pupa_isgraph): Likewise.
53754 (pupa_ftoa): Likewise.
53755 (pupa_vsprintf): Added support for printing values of the type
53756 `double'. Make it possible to format variable output when using
53757 formatting like `%1.2%f'.
53758 (pupa_split_cmdline): New function.
53759 * kern/rescue.c: Include <pupa/env.h>.
53760 (next_word): Removed function.
53761 (pupa_rescue_cmd_prefix): Likewise.
53762 (pupa_rescue_cmd_set): New function.
53763 (pupa_rescue_cmd_unset): New function.
53764 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
53765 split the command line instead of splitting it here. Added
53766 support for setting variables using the syntax `foo=bar'. Don't
53767 initialize the prefix command anymore. Initialized the set and
53769 * normal/cmdline.c: Include <pupa/env.h>.
53770 (pupa_tab_complete): Added prototypes for print_simple_completion,
53771 print_partition_completion, add_completion, iterate_commands,
53772 iterate_dev, iterate_part and iterate_dir. Moved code to print
53773 partition information from here to kern/disk.c.
53774 (pupa_cmdline_run): Don't check if the function exists anymore.
53775 * normal/main.c: Include <pupa/env.h>.
53776 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
53777 instead of using pupa_dl_get_prefix to get the prefix.
53778 * term/i386/pc/vga.c: Include <pupa/arg.h>.
53779 (check_vga_mem): Cast pointers to `void *' to silence a gcc
53781 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
53782 (pupa_vga_setcolor): Declare unused variables with `__attribute__
53783 ((unused))' to silence a gcc warning.
53784 (pupa_vga_setcolor): Likewise.
53785 (debug_command): Changed to match argument parsing
53787 * util/pupa-emu.c: Include <pupa/env.h>.
53788 (options): Added 0's for unused fields to silence a gcc warning.
53790 (main): Use the environment variable `prefix' instead of using
53791 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
53792 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
53795 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
53796 * util/misc.c: Include <malloc.h>.
53797 (pupa_malloc): Rewritten so errors are correctly reported.
53798 (pupa_realloc): Likewise.
53799 (pupa_memalign): Likewise.
53800 (pupa_mm_init_region): Declare unused variables with
53801 `__attribute__ ((unused))' to silence a gcc warning.
53802 * normal/i386/setjmp.S: Remove tab at the end of the file to
53803 silence a gcc warning.
53804 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
53805 variables with `__attribute__ ((unused))' to silence a gcc
53807 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
53808 local variable i unsigned to silence a gcc warning.
53810 * kern/term.c: Include <pupa/misc.h>.
53811 (pupa_more_lines): New variable.
53812 (pupa_more): Likewise.
53813 (pupa_putcode): When the pager is active pause at the end of every
53815 (pupa_set_more): New function.
53816 * include/pupa/term.h (pupa_set_more): New prototype.
53819 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
53821 Now this project is GRUB 2 rather than PUPA. The location of
53822 the CVS repository was moved to GRUB's.
53824 * configure.ac: Use bug-grub as the reporting address.
53825 Use GRUB instead of PUPA.
53826 Change the version number to 1.90.
53828 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
53830 * genkernsyms.sh: Updated copyright information.
53831 * genmk.rb: Likewise.
53832 * genmodsrc.sh: Likewise.
53833 * gensymlist.sh: Likewise.
53834 * boot/i386/pc/boot.S: Likewise.
53835 * boot/i386/pc/diskboot.S: Likewise.
53836 * disk/i386/pc/biosdisk.c: Likewise.
53837 * disk/i386/pc/partition.c: Likewise.
53838 * font/manager.c: Likewise.
53839 * fs/ext2.c: Likewise.
53840 * fs/fat.c: Likewise.
53841 * include/pupa/boot.h: Likewise.
53842 * include/pupa/device.h: Likewise.
53843 * include/pupa/disk.h: Likewise.
53844 * include/pupa/dl.h: Likewise.
53845 * include/pupa/elf.h: Likewise.
53846 * include/pupa/err.h: Likewise.
53847 * include/pupa/file.h: Likewise.
53848 * include/pupa/font.h: Likewise.
53849 * include/pupa/fs.h: Likewise.
53850 * include/pupa/kernel.h: Likewise.
53851 * include/pupa/loader.h: Likewise.
53852 * include/pupa/misc.h: Likewise.
53853 * include/pupa/mm.h: Likewise.
53854 * include/pupa/net.h: Likewise.
53855 * include/pupa/normal.h: Likewise.
53856 * include/pupa/rescue.h: Likewise.
53857 * include/pupa/setjmp.h: Likewise.
53858 * include/pupa/symbol.h: Likewise.
53859 * include/pupa/term.h: Likewise.
53860 * include/pupa/types.h: Likewise.
53861 * include/pupa/i386/setjmp.h: Likewise.
53862 * include/pupa/i386/types.h: Likewise.
53863 * include/pupa/i386/pc/biosdisk.h: Likewise.
53864 * include/pupa/i386/pc/boot.h: Likewise.
53865 * include/pupa/i386/pc/console.h: Likewise.
53866 * include/pupa/i386/pc/init.h: Likewise.
53867 * include/pupa/i386/pc/kernel.h: Likewise.
53868 * include/pupa/i386/pc/linux.h: Likewise.
53869 * include/pupa/i386/pc/loader.h: Likewise.
53870 * include/pupa/i386/pc/memory.h: Likewise.
53871 * include/pupa/i386/pc/multiboot.h: Likewise.
53872 * include/pupa/i386/pc/partition.h: Likewise.
53873 * include/pupa/i386/pc/time.h: Likewise.
53874 * include/pupa/i386/pc/vga.h: Likewise.
53875 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
53876 * include/pupa/util/getroot.h: Likewise.
53877 * include/pupa/util/misc.h: Likewise.
53878 * include/pupa/util/resolve.h: Likewise.
53879 * kern/device.c: Likewise.
53880 * kern/disk.c: Likewise.
53881 * kern/dl.c: Likewise.
53882 * kern/err.c: Likewise.
53883 * kern/file.c: Likewise.
53884 * kern/fs.c: Likewise.
53885 * kern/loader.c: Likewise.
53886 * kern/main.c: Likewise.
53887 * kern/misc.c: Likewise.
53888 * kern/mm.c: Likewise.
53889 * kern/rescue.c: Likewise.
53890 * kern/term.c: Likewise.
53891 * kern/i386/dl.c: Likewise.
53892 * kern/i386/pc/init.c: Likewise.
53893 * kern/i386/pc/lzo1x.S: Likewise.
53894 * kern/i386/pc/startup.S: Likewise.
53895 * loader/i386/pc/chainloader.c: Likewise.
53896 * loader/i386/pc/linux.c: Likewise.
53897 * loader/i386/pc/multiboot.c: Likewise.
53898 * normal/cmdline.c: Likewise.
53899 * normal/command.c: Likewise.
53900 * normal/main.c: Likewise.
53901 * normal/menu.c: Likewise.
53902 * normal/i386/setjmp.S: Likewise.
53903 * term/i386/pc/console.c: Likewise.
53904 * term/i386/pc/vga.c: Likewise.
53905 * util/console.c: Likewise.
53906 * util/genmoddep.c: Likewise.
53907 * util/misc.c: Likewise.
53908 * util/pupa-emu.c: Likewise.
53909 * util/resolve.c: Likewise.
53910 * util/unifont2pff.rb: Likewise.
53911 * util/i386/pc/biosdisk.c: Likewise.
53912 * util/i386/pc/getroot.c: Likewise.
53913 * util/i386/pc/pupa-mkimage.c: Likewise.
53914 * util/i386/pc/pupa-setup.c: Likewise.
53916 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
53918 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
53919 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
53920 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
53921 reading and reset it after reading.
53922 (pupa_ext2_close): Return PUPA_ERR_NONE.
53924 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
53926 (struct linux_kernel_header): Add kernel_version and
53928 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
53929 pupa_file_read succeeds.
53930 (pupa_rescue_cmd_initrd): Implement.
53932 2003-12-03 Marco Gerards <metgerards@student.han.nl>
53934 * fs/ext2.c (pupa_ext2_label): New function.
53935 (pupa_ext2_fs): Added label.
53936 * fs/fat.c (pupa_fat_label): New function.
53937 (pupa_fat_fs): Added label.
53938 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
53940 * kern/misc.c (pupa_strndup): New function.
53941 * include/pupa/misc.h (pupa_strndup): New prototype.
53943 * include/pupa/normal.h: Include <pupa/err.h>.
53944 (pupa_set_history): New prototype.
53945 (pupa_iterate_commands): New prototype.
53946 * normal/cmdline.c: Include <pupa/machine/partition.h>,
53947 <pupa/disk.h>, <pupa/file.h>.
53948 (hist_size): New variable.
53949 (hist_lines): Likewise.
53950 (hist_end): Likewise.
53951 (hist_used): Likewise.
53952 (pupa_set_history): New function.
53953 (pupa_history_get): Likewise.
53954 (pupa_history_add): Likewise.
53955 (pupa_history_replace): Likewise.
53956 (pupa_tab_complete): Likewise.
53957 (pupa_cmdline_run): Added tab completion and history buffer. Tab
53958 completion shows partitionnames while completing partitions, this
53959 feature was suggested by Jeff Bailey.
53960 * normal/command.c (pupa_iterate_commands): New function.
53961 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
53962 (pupa_normal_init): Initialize history buffer.
53963 (PUPA_MOD_INIT): Likewise.
53964 (pupa_normal_fini): Free the history buffer.
53965 (PUPA_MOD_FINI): Likewise.
53967 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
53970 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
53971 * configure.ac [i386]: Check for regparam bug.
53972 (NESTED_FUNC_ATTR) [! i386]: Defined.
53974 2003-11-17 Marco Gerards <metgerards@student.han.nl>
53976 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
53977 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
53978 (pupa_emu_SOURCES): New variable.
53979 (pupa_emu_LDFLAGS): Likewise.
53980 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
53981 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
53982 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
53983 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
53984 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
53985 (pupa_jmp_buf): New typedef.
53986 (pupa_setjmp) [PUPA_UTIL]: New macro.
53987 (pupa_longjmp) [PUPA_UTIL]: Likewise.
53988 * include/pupa/term.h (struct pupa_term): New member `refresh'.
53989 (pupa_refresh): New prototype.
53990 * include/pupa/util/getroot.h: New file.
53991 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
53993 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
53994 (pupa_rescue_cmd_cat): Likewise.
53995 (pupa_rescue_cmd_ls): Likewise.
53996 (pupa_rescue_cmd_testload): Likewise.
53997 (pupa_rescue_cmd_lsmod): Likewise.
53998 * normal/cmdline.c (pupa_cmdline_get): Likewise.
53999 * normal/menu.c (run_menu): Likewise.
54000 * kern/term.c (pupa_cls): Likewise.
54001 (pupa_refresh): New function.
54002 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54003 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54004 * util/console.c: New file.
54006 * util/i386/pc/getroot.c: New file.
54007 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54008 (pupa_putchar): New function.
54009 (pupa_refresh): Likewise.
54010 (xgetcwd): Function moved to ...
54011 (strip_extra_slashes): Likewise.
54012 (get_prefix): Likewise.
54013 * util/i386/pc/getroot.c: ... here.
54014 (find_root_device): Function moved and renamed to...
54015 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54016 Changed all callers.
54017 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54019 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54020 Changed all callers.
54021 * util/misc.c (pupa_memalign): New function.
54022 (pupa_mm_init_region): Likewise.
54023 (pupa_register_exported_symbols): Likewise.
54024 (pupa_putchar): Function removed.
54025 * util/pupa-emu.c: New file.
54027 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54029 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54030 (_multiboot_mod_SOURCES): New variable.
54031 (_multiboot_mod_CFLAGS): Likewise.
54032 * loader/i386/pc/multiboot.c: New file.
54033 * include/pupa/i386/pc/multiboot.h: Likewise.
54034 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54035 (pupa_multiboot_real_boot): New function.
54036 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54037 (pupa_multiboot_real_boot): New prototype.
54038 (pupa_rescue_cmd_multiboot): Likewise
54039 (pupa_rescue_cmd_module): Likewise.
54041 * kern/loader.c (pupa_loader_set): Continue when
54042 pupa_loader_unload_func() fails.
54043 (pupa_loader_unset): New function.
54044 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54046 * kern/misc.c (pupa_stpcpy): New function.
54047 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54049 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54051 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54052 for available extensions.
54054 * include/pupa/i386/pc/time.h: New file.
54055 * kern/disk.c: Include <pupa/machine/time.h>.
54056 (PUPA_CACHE_TIMEOUT): New macro.
54057 (pupa_last_time): New variable.
54058 (pupa_disk_open): Flush the cache when there was a timeout.
54059 (pupa_disk_close): Reset the timer.
54060 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54062 * util/misc.c: Include <sys/times.h>
54063 (pupa_get_rtc): New function.
54065 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54067 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54069 (pupa_ext2_get_file_block): Use blocks member.
54071 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54072 first block. Return -1 instead of pupa_errno on error.
54074 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54076 * README: In the pupa-mkimage example use _chain instead of chain
54077 and ext2 instead of fat.
54078 * TODO: Replace ext2fs with jfs as an example. Add an item for
54079 adding journal playback for ext2fs.
54080 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54081 (pkgdata_MODULES): Added ext2.mod.
54082 (ext2_mod_SOURCES): New variable.
54083 (ext2_mod_CFLAGS): Likewise.
54084 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54085 * include/pupa/misc.h (pupa_strncpy): New prototype.
54086 (pupa_strcat): Likewise.
54087 (pupa_strncmp): Likewise.
54088 * kern/misc.c (pupa_strcat): Enable function.
54089 (pupa_strncpy): New function.
54090 (pupa_strncmp): Likewise.
54091 * fs/ext2.c: New file.
54093 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54094 when the read failed before retrying.
54095 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54096 (_FILE_OFFSET_BITS): Likewise.
54097 * configure.ac: Added AC_SYS_LARGEFILE.
54099 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54101 * genmk.rb (PModule#rule): Make sure to get only symbol names
54102 from the output of nm.
54103 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54105 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54107 I forgot to check in these changes for a long time. This adds
54108 incomplete support for VGA console, and this is still very
54109 buggy. Also, a lot of consideration is required for I18N,
54110 UNICODE, and VGA font issues. Therefore, assume that this is
54111 such that "better than nothing".
54113 * font/manager.c: New file.
54114 * include/pupa/font.h: Likewise.
54115 * include/pupa/i386/pc/vga.h: Likewise.
54116 * term/i386/pc/vga.c: Likewise.
54117 * util/unifont2pff.rb: Likewise.
54119 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54120 (pkgdata_MODULES): Added vga.mod and font.mod.
54121 (vga_mod_SOURCES): New variables.
54122 (vga_mod_CFLAGS): Likewise.
54123 (font_mod_SOURCES): Likewise.
54124 (font_mod_CFLAGS): Likewise.
54126 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54128 * include/pupa/term.h: Include pupa/err.h.
54129 (struct pupa_term): Added init and fini.
54130 Changed the argument of putchar to pupa_uint32_t.
54132 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54133 (pupa_console_real_putchar): New prototype.
54134 (pupa_console_putchar): Removed.
54135 (pupa_console_checkkey): Exported.
54136 (pupa_console_getkey): Likewise.
54138 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54141 * kern/term.c (pupa_term_set_current): Rewritten.
54142 (pupa_putchar): Likewise.
54143 (pupa_putcode): New function.
54145 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54146 (pupa_console_real_putchar): ... this.
54147 (pupa_vga_set_mode): New function.
54148 (pupa_vga_get_font): Likewise.
54150 * normal/command.c: Include pupa/term.h.
54151 (terminal_command): New function.
54152 (pupa_command_init): Register the command "terminal".
54154 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54155 (DISP_UP): Likewise.
54156 (DISP_RIGHT): Likewise.
54157 (DISP_DOWN): Likewise.
54158 (DISP_HLINE): Likewise.
54159 (DISP_VLINE): Likewise.
54160 (DISP_UL): Likewise.
54161 (DISP_UR): Likewise.
54162 (DISP_LL): Likewise.
54163 (DISP_LR): Likewise.
54165 * term/i386/pc/console.c (pupa_console_putchar): New function.
54167 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54169 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54170 FIX. Reverse the path_list.
54172 * include/pupa/normal.h: Export pupa_register_command and
54173 pupa_unregister_command.
54175 * hello/hello.c (pupa_cmd_hello): New module.
54176 * conf/i386-pc.rmk: Added hello.mod.
54178 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54180 * kern/i386/pc/lzo1x.S: New file.
54182 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54183 (compress_kernel): New variable.
54184 (generate_image): Heavily modified to support compressing a
54185 large part of the core image.
54187 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54189 (pupa_util_load_image): New function.
54191 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54192 (pupa_compressed_size): New variable.
54193 (codestart): Enable Gate A20 here.
54194 Decompress the compressed part of the core image.
54195 Rearrange the code to put functions and variables which are
54196 required for initialization in the non-compressed part.
54199 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54202 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54204 * include/pupa/i386/pc/kernel.h
54205 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54206 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54207 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54208 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54209 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54211 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54213 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54214 (Utility#rule): Likewise.
54216 * configure.ac: Check if LZO is available.
54218 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54220 * include/pupa/normal.h: New file.
54221 * include/pupa/setjmp.h: Likewise.
54222 * include/pupa/i386/setjmp.h: Likewise.
54223 * normal/cmdline.c: Likewise.
54224 * normal/command.c: Likewise.
54225 * normal/main.c: Likewise.
54226 * normal/menu.c: Likewise.
54227 * normal/i386/setjmp.S: Likewise.
54229 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54230 (pupa_rescue_cmd_initrd): Likewise.
54232 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54235 * kern/i386/pc/startup.S (translation_table): New variable.
54236 (translate_keycode): New function.
54237 (pupa_console_getkey): Call translate_keycode.
54239 * kern/rescue.c (attempt_normal_mode): New function.
54240 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54241 it failed, print a message.
54243 * kern/mm.c (pupa_real_malloc): Print more information when a
54244 free magic is broken.
54245 (pupa_free): If the first free header is not free actually, set
54248 * kern/main.c (pupa_load_normal_mode): Just load the module
54250 (pupa_main): Don't print the message
54251 "Entering into rescue mode..." here.
54253 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54255 (pupa_rescue_cmd_initrd): Likewise.
54256 (pupa_rescue_cmd_initrd): Likewise.
54258 * include/pupa/symbol.h (FUNCTION): Specify the type.
54259 (VARIABLE): Likewise.
54261 * include/pupa/err.h (pupa_err_t): Added
54262 PUPA_ERR_UNKNOWN_COMMAND.
54264 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54265 (pupa_dl_get_prefix): Likewise.
54267 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54268 Added _chain.mod and _linux.mod instead of chain.mod and
54270 (chain_mod_SOURCES): Renamed to ...
54271 (_chain_mod_SOURCES): ... this.
54272 (chain_mod_CFLAGS): Renamed to ...
54273 (_chain_mod_CFLAGS): ... this.
54274 (linux_mod_SOURCES): Renamed to ...
54275 (_linux_mod_SOURCES): ... this.
54276 (linux_mod_CFLAGS): Renamed to ...
54277 (_linux_mod_CFLAGS): ... this.
54278 (normal_mod_SOURCES): New variable.
54279 (normal_mod_CFLAGS): Likewise.
54280 (normal_mod_ASFLAGS): Likewise.
54282 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54284 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54287 * kern/dl.c (pupa_dl_ref): Refer depending modules
54289 (pupa_dl_unref): Unrefer depending modules recursively.
54290 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54291 a module is unloaded before one depending on that module is
54293 (pupa_dl_unload): Unload depending modules explicitly,
54296 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54298 * include/pupa/i386/pc/linux.h: New file.
54299 * loader/i386/pc/linux.c: Likewise.
54301 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54303 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54304 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54305 of PUPA_CHAINLOADER_BOOT_SECTOR.
54307 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54308 (pupa_linux_prot_size): New variable.
54309 (pupa_linux_tmp_addr): Likewise.
54310 (pupa_linux_real_addr): Likewise.
54311 (pupa_linux_boot_zimage): New function.
54312 (pupa_linux_boot_bzimage): Likewise.
54314 * kern/i386/pc/init.c (struct mem_region): New structure.
54315 (MAX_REGIONS): New macro.
54316 (mem_regions): New variable.
54317 (num_regions): Likewise.
54318 (pupa_os_area_addr): Likewise.
54319 (pupa_os_area_size): Likewise.
54320 (pupa_lower_mem): Likewise.
54321 (pupa_upper_mem): Likewise.
54322 (add_mem_region): New function.
54323 (compact_mem_regions): Likewise.
54324 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54325 the size of the conventional memory and that of so-called upper
54326 memory (before the first memory hole).
54327 Instead of adding each found region to free memory, use
54328 add_mem_region and add them after removing overlaps.
54329 Also, add only 1/4 of the upper memory to free memory. The rest
54330 is used for loading OS images. Maybe this is ad hoc, but this
54331 makes it much easier to relocate OS images when booting.
54333 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54334 (pupa_enter_rescue_mode): Don't register initrd and module.
54336 * kern/mm.c: Include pupa/dl.h.
54338 * kern/main.c: Include pupa/file.h and pupa/device.h.
54340 * kern/loader.c (pupa_loader_load_module_func): Removed.
54341 (pupa_loader_load_module): Likewise.
54343 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54346 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54347 (pupa_linux_tmp_addr): Likewise.
54348 (pupa_linux_real_addr): Likewise.
54349 (pupa_linux_boot_zimage): Likewise.
54350 (pupa_linux_boot_bzimage): Likewise.
54352 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54353 (pupa_upper_mem): Likewise.
54354 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54355 module is too dangerous.
54357 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54358 (pupa_os_area_size): Likewise.
54359 (pupa_loader_set): Remove the first argument. Loader doesn't
54360 manage modules or initrd any longer.
54361 (pupa_loader_load_module): Removed.
54363 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54364 (linux_mod_SOURCES): New variable.
54365 (linux_mod_CFLAGS): Likewise.
54367 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54369 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54370 the length of a blocklist correctly.
54372 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54373 Use ioctl only if the OS file is a block device.
54374 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54375 not very useful for normal files.
54377 * kern/main.c (pupa_set_root_dev): New function.
54378 (pupa_load_normal_mode): Likewise.
54379 (pupa_main): Call those above.
54381 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54384 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54386 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54388 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54389 (setup): Configure the installed partition information and the
54392 * loader/i386/pc/chainloader.c (my_mod): New variable.
54393 (pupa_chainloader_unload): New function.
54394 (pupa_rescue_cmd_chainloader): Refer itself.
54395 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54397 * kern/i386/pc/startup.S (install_partition): Removed.
54398 (version_string): Likewise.
54399 (config_file): Likewise.
54400 (pupa_install_dos_part): New variable.
54401 (pupa_install_bsd_part): Likewise.
54402 (pupa_prefix): Likewise.
54403 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54405 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54407 (make_install_device): New function.
54408 (pupa_machine_init): Set the dl prefix.
54410 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54411 (buf): Renamed to ...
54412 (linebuf): ... this.
54413 (pupa_rescue_cmd_prefix): New function.
54414 (pupa_rescue_cmd_insmod): Likewise.
54415 (pupa_rescue_cmd_rmmod): Likewise.
54416 (pupa_rescue_cmd_lsmod): Likewise.
54417 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54420 * kern/mm.c (pupa_memalign): If failed even after invalidating
54421 disk caches, unload unneeded modules and retry.
54423 * kern/misc.c (pupa_memmove): New function.
54424 (pupa_memcpy): Removed.
54425 (pupa_strcpy): New function.
54426 (pupa_itoa): Made static.
54428 * kern/dl.c (pupa_dl_iterate): New function.
54429 (pupa_dl_ref): Likewise.
54430 (pupa_dl_unref): Likewise.
54431 (pupa_dl_unload): Return if succeeded or not.
54432 (pupa_dl_unload_unneeded): New function.
54433 (pupa_dl_unload_all): Likewise.
54434 (pupa_dl_init): Renamed to ...
54435 (pupa_dl_set_prefix): ... this.
54436 (pupa_dl_get_prefix): New function.
54438 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54439 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54440 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54441 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54442 (pupa_install_dos_part): Declared.
54443 (pupa_install_bsd_part): Likewise.
54444 (pupa_prefix): Likewise.
54445 (pupa_boot_drive): Likewise.
54447 * include/pupa/types.h: Fix a typo.
54449 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
54451 (pupa_memmove): Declared.
54452 (pupa_strcpy): Likewise.
54454 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
54455 pupa_mod_init takes one argument, its own module.
54456 (pupa_dl_unload_unneeded): Declared.
54457 (pupa_dl_unload_all): Likewise.
54458 (pupa_dl_ref): Likewise.
54459 (pupa_dl_unref): Likewise.
54460 (pupa_dl_iterate): Likewise.
54461 (pupa_dl_init): Renamed to ...
54462 (pupa_dl_set_prefix): ... this.
54463 (pupa_dl_get_prefix): Declared.
54465 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
54466 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
54468 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
54469 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
54471 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
54472 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
54474 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54476 * util/i386/pc/pupa-setup.c (setup): Define the internal
54477 function find_first_partition_start at the top level, because GCC
54478 3.0.x cannot compile internal functions in deeper scopes
54480 (find_root_device): Use lstat instead of stat.
54481 Don't follow symbolic links.
54482 Fix the path-constructing code.
54484 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
54485 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
54486 by a BLKGETSIZE ioctl first, because block devices don't fill
54487 the member st_mode of the structure stat on Linux.
54488 [__linux__] (linux_find_partition): Use a temporary buffer
54489 REAL_DEV for the working space. Copy it to DEV before returning.
54490 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
54491 buffer cache consistent.
54492 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
54493 strncmp. The previous value was merely wrong.
54494 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
54496 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
54497 FAT size is 12. The previous value was merely wrong.
54499 * kern/main.c (pupa_main): Don't split the starting message from
54502 * kern/term.c (pupa_putchar): Put CR after LF instead of before
54503 LF, because BIOS goes crazy about character attributes in this
54506 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54508 * include/i386/pc/util/biosdisk.h: New file.
54509 * util/i386/pc/biosdisk.c: Likewise.
54510 * util/i386/pc/pupa-setup.c: Likewise.
54512 * Makefile.in (INCLUDE_DISTFILES): Added
54513 include/pupa/i386/pc/util/biosdisk.h.
54514 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
54515 directory util/i386/pc.
54516 (install-local): Added a rule for sbin_UTILITIES.
54517 (uninstall): Likewise.
54519 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
54521 * util/misc.c (xrealloc): New function.
54522 (pupa_malloc): Likewise.
54523 (pupa_free): Likewise.
54524 (pupa_realloc): Likewise.
54525 (pupa_stop): Likewise.
54526 (pupa_putchar): Likewise.
54528 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
54530 * include/pupa/util/misc.h (xrealloc): Declared.
54532 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
54534 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
54535 (PUPA_BOOT_MACHINE_BPB_END): ... this.
54537 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
54538 [PUPA_UTIL] (pupa_fat_fini): Likewise.
54540 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
54541 way should be implemented.
54542 [PUPA_UTIL] (pupa_fat_fini): Likewise.
54544 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
54545 the size of NAME for safety.
54546 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
54549 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
54550 (pupa_setup_SOURCES): Likewise.
54552 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
54554 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
54556 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
54557 bunch of pushl's from pusha, because this destroys the return
54560 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
54562 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
54563 This means that any missing prototypes could be fatal. Also, you
54564 must take care when writing assembly code. See the comments at
54565 the beginning of startup.S, for more details.
54567 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
54568 compilation mechanism.
54569 (pupa_chainloader_real_boot): Likewise.
54570 (pupa_biosdisk_rw_int13_extensions): Likewise.
54571 (pupa_biosdisk_rw_standard): Likewise.
54572 (pupa_biosdisk_check_int13_extensions): Likewise.
54573 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
54574 (pupa_biosdisk_get_diskinfo_standard): Likewise.
54575 (pupa_get_memsize): Likewise.
54576 (pupa_get_mmap_entry): Likewise.
54577 (pupa_console_putchar): Likewise.
54578 (pupa_console_setcursor): Likewise.
54579 (pupa_getrtsecs): Use pushl instead of push.
54581 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
54582 memory instead of the stack for a mmap entry, because some
54583 BIOSes may ignore the maximum size and overflow.
54585 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
54587 * genmk.rb (PModule#rule): Compile automatically generated
54588 sources with module-specific CFLAGS as well as other sources.
54590 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54592 * configure.ac: Check ld.
54593 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
54594 respectively, before checking endianness and sizes.
54596 * Makefile.in (LD): New variable.
54598 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54600 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
54602 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54604 * Changelog: New file.