1 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3 Dump type and vendor specific data when printing device path.
5 2013-12-23 Colin Watson <cjwatson@debian.org>
7 Update some documentation to refer to Git rather than Bazaar.
9 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
11 * po/README: Likewise. Fix spelling mistake.
13 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
15 Don't distribute config.h.
17 * Makefile.am (platform_HEADERS): Move to ...
18 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
19 failure when building from a distributed tarball.
21 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
23 * configure.ac: Fix spelling.
24 * grub-core/commands/parttool.c: Fix grammar.
25 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
28 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
30 ARM64 support for grub-mkrescue.
32 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
34 Install modinfo.sh to keep build information around.
36 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
38 * grub-core/modinfo.sh.in: Add build config information.
40 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
42 ARM64 grub-file and grub-mkconfig support.
44 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
46 Remove leftover options defines.
48 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
50 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
52 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
54 * grub-core/loader/arm64/linux.c: Add missing bracket.
56 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
58 Add arm64-efi recognition to grub-file.
60 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
62 Fix ia64-efi recognition in grub-file.
64 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
66 Recognize raspberry pi kernel in grub-file.
68 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
70 Enable cache on ARM U-Boot port.
72 Without it the port is reidiculously slow.
74 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
76 Fix ARM cache maintainance.
78 More code was converted from ASM to C for easier handling.
80 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
82 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
85 Suggested by: Leif Lindholm.
87 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
89 * util/grub-mkconfig.in: Fix Xen platform conditions.
91 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
93 * util/grub-mkrescue.c: Split single help message string in several
94 strings used in previous shell version.
96 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
98 Add arm64 Linux loader.
100 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
102 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
104 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
106 Add module loading and parsing boot time checkpoints.
108 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
110 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
113 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
115 * util/grub-mkconfig.in: Skip non-executable files.
117 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
119 Workaround buggy timer in raspberry pie by using our own timer
122 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
124 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
125 Increase to 16 MiB to allow loading the whole memdisk.
127 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
129 Fix ARM Linux Loader on non-FDT platforms.
131 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
133 * configure.ac: Choose link format based on host_os on emu.
135 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
137 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
139 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
141 * grub-core/kern/emu/main.c: Build fix for emu.
143 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
145 Build fixes for argp.h with older gcc.
147 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
149 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
152 Suggested by: David Prévot.
154 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
156 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
158 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
160 Enable -Wformat=2 if it's supported.
162 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
164 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
165 -Wmissing-declarations if supported.
167 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
169 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
170 u32 as both HFS and HFS+ have 32-bit inodes.
172 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
174 * include/grub/misc.h (grub_strtol): Fix overflow.
176 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
178 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
179 as return type in both conditionals.
181 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
183 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
184 to use uint8_t for color.
186 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
188 * util/misc.c (grub_util_get_image_size): Check for overflow.
190 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
192 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
195 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
197 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
198 for pointer difference.
200 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
202 * util/import_gcry.py: Skip sample keys.
204 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
206 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
208 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
210 * configure.ac: Remove duplicate warning arguments.
212 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
214 Add missing static qualifiers.
216 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
218 Add missing includes.
220 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
222 Inline printf templates when possible to enable format checking.
224 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
226 * include/grub/crypto.h: Don't discard const attribute.
228 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
230 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
233 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
235 * grub-core/lib/crypto.c: Don't discard const attribute.
237 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
239 * grub-core/lib/disk.c: Fix potential overflow.
241 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
243 * grub-core/lib/arg.c: Don't discard const attribute.
245 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
247 * grub-core/kern/dl.c: Don't discard const attribute.
249 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
251 * grub-core/kern/disk.c: Fix potential overflow.
253 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
255 * conf/Makefile.common: Don't include non-existing directory
256 grub-core/lib/libgcrypt-grub/include.
258 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
260 Clarify several translatable messages.
262 2013-12-21 David Prévot <david@tilapin.org>
264 Correct some translatable strings.
266 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
268 * util/grub-mkrescue.c: Rephrase mkrescue description.
270 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
271 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
273 Clarify several translatable messages.
275 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
277 Be more verbose about some configure failures.
279 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
281 Fix various build problems on GNU/Hurd.
283 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
286 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
287 [__GNU__]: Add prototype.
288 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
289 long int using %ld rather than %d.
291 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
293 * util/grub-install.c: Inform user about install platform.
295 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
297 * configure.ac: Set version to 2.02~beta1.
299 2013-12-18 Allen Pais <allen.pais@oracle.com>
300 2013-12-18 Bob Picco <bob.picco@oracle.com>
302 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
304 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
306 Make grub_zlib_decompress handle incomplete chunks.
310 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
312 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
315 2013-12-18 Aleš Nesrsta <starous@volny.cz>
317 * grub-core/disk/usbms.c: Retry on unknown errors.
318 Reuse the same tag on retries.
320 2013-12-18 Aleš Nesrsta <starous@volny.cz>
322 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
324 Avoid confusing them with already completed transfers.
326 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
330 Due to XEN bug it prevents Linux boot. Remove it at least, until
333 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
335 * po/exclude.pot: Add 2 missing excludes.
337 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
339 Add missing license section in macbless.mod and macho.mod.
341 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
343 Allow compilation without thumb-interwork as long as no thumb is
344 involved or only thumb2 is used.
346 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
348 Use -Wl,--no-relax rather than -mno-relax for uniformity.
350 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
352 * INSTALL: Update comment as to why sparc64 clang isn't usable.
354 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
356 Add __attribute__ ((sysv_abi)) only if it's really needed.
358 Some compilers don't support it.
360 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
362 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
364 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
366 Remove -Wold-style-definition.
368 Not very useful and interaction of it with regexp depends on GCC
371 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
373 Make grub_util_get_windows_path_real static.
375 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
377 * grub-core/commands/fileXX.c: Silence cast-align.
378 * grub-core/loader/i386/xen_fileXX.c: Likewise.
380 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
382 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
383 rather than LL suffix.
385 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
387 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
389 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
391 * grub-core/loader/arm/linux.c: Use common initrd functions.
393 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
395 Decrease number of strings to translate.
397 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
399 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
401 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
403 Mark strings for translation and add remaining ones to exclude list.
405 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
407 * util/grub-file.c (main): Fix sizeof usage.
409 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
411 Silence spurious warning.
413 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
415 Remove check_nt_hiberfil as it's been superseeded by file command.
417 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
419 * docs/osdetect.cfg: Add isolinux config to detected OSes.
421 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
423 Implement syslinux parser.
425 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
427 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
429 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
433 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
435 Use AT keyboard on Yeeloong 3A.
437 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
439 Add Yeeloong 3A reboot and halt.
441 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
443 Add Radeon Yeeloong 3A support.
445 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
447 Add bonito 3A support.
449 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
451 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
453 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
455 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
457 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
459 * grub-core/loader/macho.c: Fix compilation on non-i386.
461 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
463 Add missing format_arg attribute to check that printf with translated
464 messages has proper arguments.
466 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
468 Use grub_xasprintf to format translated error messages containing
471 2013-12-17 Jon McCune <jonmccune@google.com>
473 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
475 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
477 Unify message for unsupported relocation.
479 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
481 Mark miscompile error for translation.
483 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
485 Use %I64 and not %ll when using OS printf if compiling for windows.
487 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
489 Update Mac code to match new register_efi prototype.
491 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
493 Implement better integration with Mac firmware.
495 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
497 * grub-core/loader/multiboot_mbi2.c: Implement special value for
500 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
502 Include serial module in default_payload.elf.
504 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
506 Add explicit thumb interwork bx in asm files.
508 Shouldn't matter for armv >= 5 but let's be safe.
510 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
512 Implement Truecrypt ISO loader.
514 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
516 * grub-core/lib/arg.c: Ensure at least a single space between commands.
518 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
520 Implement grub_file tool and use it to implement generating of config
523 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
525 Change to v1 xen grants.
527 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
529 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
531 GRUB relied on %ebx being preserved across hypercall which isn't true.
533 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
535 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
537 GRUB relied on %rdi being preserved across hypercall which isn't true.
539 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
541 Implement XEN VFB support.
543 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
545 Remove grub_bios_interrupt on coreboot.
547 It's not used currently and cannot be used safely currently.
549 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
551 Update exclude.pot and mark few strings for translation.
553 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
555 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
557 Reported by: Jon McCune
559 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
561 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
562 Add verbose information which firmware directories were tried.
564 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
566 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
567 function to optionally redirect all three standard descriptors.
568 Redefine grub_util_exec, grub_util_exec_redirect and
569 grub_util_exec_redirect_null to use it.
570 * include/grub/emu/exec.h: Define it.
571 * include/grub/osdep/exec_unix.h: Delete, it is unused.
572 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
573 Use grub_util_exec_redirect_all to redirect error to NULL.
575 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
577 * grub-core/tests/sleep_test.c: Silence spurious warning.
579 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
581 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
582 linker trying to "fixup" the code.
584 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
586 * grub-core/kern/x86_64/xen/startup.S: Align stack.
588 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
590 Add support for converting PE+ to Elf64.
592 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
594 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
596 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
598 Remove practice of assigning random const pointers to device id.
600 This is not required as cache code already checks driver id as well.
602 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
604 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
607 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
609 * include/grub/efi/api.h: Don't use call wrappers when compiled with
610 mingw or cygwin as API already matches.
612 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
614 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
616 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
618 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
621 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
623 Handle X86_64_PC64 relocation.
625 Those are generated by some cygwin compilers.
627 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
629 Determine the need for mingw-related stubs at compile time rather than
630 using not very significant $target_os.
632 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
634 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
635 may not work with ELF.
637 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
639 Use unix functions for temporary files and special files on cygwin.
641 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
643 Define functions explicitly rather than using --defsym in tests
644 whenever possible. Respect locality in remaining cases.
646 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
648 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
650 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
652 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
653 unlikely errors when getting EFI variables and make exhaustive search
654 for all BootNNNN variables to find matching one.
656 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
658 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
660 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
662 New functional test for sleep function.
664 This test allows to check sleep without qemu. Keep qemu version as
665 well as functional test won't notice if all clocks are going too fast
668 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
670 Add explicit sysv_abi on amd64 asm routines.
672 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
674 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
677 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
679 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
682 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
684 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
687 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
689 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
691 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
693 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
696 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
698 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
700 In case of quick removal of loopback and adding another one it may
701 get same ID, confusing the cache system.
703 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
705 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
708 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
710 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
711 than converting to long.
713 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
715 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
717 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
719 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
720 than almost useless pointer.
722 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
724 Add gcc_struct to all packed structures when compiling with mingw.
726 Just "packed" doesn't always pack the way we expect.
728 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
730 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
732 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
734 * util/grub-pe2elf.c: Fix handling of .bss.
736 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
738 Implement windows flavour of EFI install routines.
740 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
742 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
744 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
746 Change grub_install_register_efi interface to pass GRUB device.
748 This allows grub_install_register_efi to request partition info
751 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
753 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
755 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
757 Do not use TCHAR string functions as they are not available on cygwin.
759 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
761 Workaround windows bug when querying EFI system partition parameters.
763 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
765 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
768 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
770 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
772 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
774 Make i386-* other than i386-pc compileable under cygwin.
776 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
778 Fix definition of grub_efi_hard_drive_device_path. Take care that
779 existing code would work even if by some reason bogus definition is
780 used by EFI implementations.
782 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
784 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
786 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
788 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
791 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
793 * util/config.c: Remove trailing newline from distributor in simple
796 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
798 * include/grub/efi/api.h: Rename protocol and interface to avoid
801 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
803 * .gitignore: Add .exe variants. Add missing files. Remove few outdated
806 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
808 * grub-core/osdep/exec.c: Use unix version on cygwin.
810 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
812 Implement multiboot2 EFI BS specification.
814 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
816 * grub-core/normal/charset.c: Fix premature line wrap and crash.
817 Crash happened only in some cases like a string starting at the
818 half of the screen of same length.
820 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
822 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
823 with EFI counterpart.
825 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
827 Propagate the EFI commits to x86-efi specific parts.
829 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
831 * grub-core/commands/efi/lssal.c: Fix terminating condition.
833 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
835 Introduce grub_efi_packed_guid and use it where alignment is not
838 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
840 * include/grub/efi/api.h (grub_efi_device_path): Define length as
841 unaligned u16 rather than u8[2].
843 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
845 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
846 for relocation range.
848 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
850 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
851 non-function pcrel21b relocation. It happens with .text.unlikely
854 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
856 * make MAX_USABLE_ADDRESS platform-specific
857 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
859 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
861 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
863 2013-12-09 Jon McCune <jonmccune@google.com>
865 * Add --no-rs-codes flag to optionally disable reed-solomon codes
866 in grub-install and grub-bios-setup for x86 BIOS targets.
868 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
870 Add missing compile and link options for sparc64-emu.
872 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
874 Implement sparc64 trampolines (needed for sparc64-emu).
876 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
878 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
879 range of R_SPARC_HI22.
880 Implement R_SPARC_LM22.
882 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
884 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
885 Do not explicitly check for symbol table as it's already checked in
886 platform-independent layer.
888 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
890 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
891 on ia64 as __clear_cache is a dummy on ia64.
893 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
895 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
896 Do not explicitly check for symbol table as it's already checked in
897 platform-independent layer.
899 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
901 * util/grub-mkconfig.in: Add missing newline to output.
903 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
905 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
906 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
908 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
910 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
911 compilation with GCC <= 4.2.
912 * grub-core/kern/emu/argp_common.c: Likewise.
914 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
916 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
917 right platform rather than leaking to sparc64-emu.
919 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
921 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
922 But ensure that the variables in question are indeed unsigned.
924 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
926 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
928 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
930 Remove grub_memalign on emu.
932 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
934 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
935 truncate incomplete lines but instead flushes them.
937 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
939 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
940 and implement windows variant.
942 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
944 Fix mips-emu compilation.
946 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
948 * configure.ac: Check for freetype library usability.
950 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
954 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
956 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
958 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
960 * docs/grub.texi (Environment): Update color_normal and color_highlight
961 defaults (light-gray instead of white).
963 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
965 * grub-core/normal/main.c (INIT): Set default color to light-gray
966 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
967 and apparently BIOS defaults.
969 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
971 Transform -C option to grub-mkstandalone to --core-compress available
972 in all grub-install flavours.
974 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
976 Merge GRUBFS and GRUB_FS variables.
978 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
980 Revert commit 69ca97c820, it caused failures when using OS device name
981 in grub-install. Instead just strip off parenthesis in grub-install
984 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
986 * util/grub-install.c (push_partmap_module): Add helper to convert
987 partmap names to module names and use it in probe_mods(). Fixes
988 failure to find partmap modules in diskfilter case.
990 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
992 * configure.ac: Make unifont mandatory on coreboot.
994 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
996 * configure.ac: Skip unifont 6.3 pcf and bdf.
998 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1000 * Makefile.am: Remove partial font files if generation failed.
1002 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1004 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1006 * include/grub/util/misc.h: Define it ...
1007 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1009 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1011 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1014 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1016 Don't add -mlong-calls when compiling with clang.
1018 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1020 * configure.ac: Fix a typo.
1022 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1024 Revamp relocation handling.
1026 Move more code to common dl.c. Add missing veneers for arm and arm64.
1027 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1029 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1031 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1033 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1035 * INSTALL: Raise minimum python version to 2.6.
1036 * gentpl.py: Use python3-style print function.
1038 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1040 * util/grub-install.c: Mention Boot* variable.
1042 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1044 * grub-core/osdep/linux/hostdisk.c
1045 (grub_util_find_partition_start_os): Initialise start to avoid
1046 spurious compiler warning.
1048 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1050 On Linux, read partition start offsets from sysfs if possible, to
1051 cope with block device drivers that don't implement HDIO_GETGEO.
1052 Fixes Ubuntu bug #1237519.
1054 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1056 (sysfs_partition_start): Likewise.
1057 (grub_util_find_partition_start_os): Try sysfs_partition_start
1060 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1062 * grub-core/kern/fdt.c: Update struct size when adding node.
1064 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1066 Handle unaligned .bss on sparc64.
1068 Current code improperly assumes that both __bss_start and _end are
1069 aligned to 8-bytes. Eliminating this assumption and explicitly align
1072 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1074 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1075 so it doesn't land in the middle of loaded image.
1077 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1079 * configure.ac: Move all warning options that may be absent in
1080 gcc >= 3.1 to optional.
1082 Note: while this allows to compile with older GCC, official requirements
1083 remain the same and no support for older GCC.
1085 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1087 Copying the themes directory in grub-shell isn't
1088 parallel-test-friendly and breaks on the second test when the source
1089 directory is read-only (as in "make distcheck"). Instead, add a
1090 hidden --themes-directory option to grub-mkrescue et al, and use it
1093 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1095 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1096 as it's no longer necessarry.
1098 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1100 * configure.ac: Allow compilation with older GCC for ARM.
1102 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1104 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1105 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1108 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1110 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1112 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1114 Pass font config to config.h and not by TARGET_CFLAGS as adding
1115 arguments doesn't work if TARGET_CFLAGS is specified on command
1118 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1120 * configure.ac: Add -Wvla if compiler supports it.
1122 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1124 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1125 Remove variable length arrays.
1126 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1128 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1130 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1132 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1134 * include/grub/types.h: Declare all byteswaps as inline functions
1135 except compile-time ones.
1137 Solves variable shadowing in constructions like
1138 cpu_to_le (le_to_cpu(x) + 1).
1140 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1142 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1144 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1146 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1149 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1151 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1152 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1154 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1156 * grub-core/Makefile.core.def (setjmp): Distribute
1159 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1161 Add a new timeout_style environment variable and a corresponding
1162 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1163 controls hidden-timeout handling more simply than the previous
1164 arrangements, and pressing any hotkeys associated with menu entries
1165 during the hidden timeout will now boot the corresponding menu entry
1168 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1169 generates a warning, and if it shows the menu it will do so as if
1170 the second timeout were not present. Other combinations are
1171 translated into reasonable equivalents.
1173 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1175 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1177 * util/config.c: Add missing pointer adjustment.
1178 Reported by: qwertial
1180 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1182 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1183 directly, not via `cpu' link, to fix libgrub.pp generation.
1185 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1189 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1191 * docs/grub.texi (sleep): Document exit codes.
1193 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1195 Ensure that -mno-unaligned-access or some equivalent option is used.
1197 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1199 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1202 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1204 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1206 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1208 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1209 builds, since we don't have an EPS version of font_char_metrics.png.
1210 Add leading dot to image extension per the Texinfo documentation.
1212 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1214 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1215 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1216 * util/grub-gen-widthspec.c: Likewise.
1217 * util/grub-mkfont.c: Likewise.
1219 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1221 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1222 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1223 failed to install on (hdX).
1224 * util/grub-setup.c (get_device_name): Remove, not needed after
1227 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1229 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1231 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1233 * util/grub-fstest.c: Remove variable length arrays.
1235 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1237 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1239 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1241 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1242 computing crc32 rather than handling with md fundtions directly.
1244 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1246 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1247 checking fwstart.img rather than md fundtions directly.
1249 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1251 * util/grub-mkrescue.c (main): Check that fread succeeded.
1253 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1255 * conf/Makefile.common: Remove -mexplicit-relocs and
1256 -DUSE_ASCII_FALLBACK on yeeloong.
1258 -DUSE_ASCII_FALLBACK is already added by font snippets.
1259 -mexplicit-relocs isn't needed is compiler/assemblera are
1260 configured properly.
1261 If they're not we shouldn't attempt to fix it by ourselves.
1262 Binary compare between before and after shows no difference.
1264 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1266 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1267 sources in dependencies directly.
1269 This was the only instance of "library" in core config. A bug was
1270 reported that -fno-stack-protector wasn't passed to it. Instead of
1271 figuring out why it failed just remove this construction used
1274 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1276 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1279 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1281 * docs/grub.texi (ls): Fix command description in case of a device name
1284 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1286 Eliminate variable length arrays in grub_vsnprintf_real.
1288 A bit tricky because this function has to continue to work without
1289 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1290 but make all stack references use 32-bit offset rather than 8-bit one.
1291 So split va_args preparsing to separate function and put the prealloc
1294 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1296 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1297 Fixes build for windows.
1299 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1301 * gentpl.py: Don't generate platform-dependent conditionals for
1302 platform-independent targets.
1304 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1306 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1307 references to mdadm from otherwise generic code.
1308 (grub_util_exec_pipe): Likewise.
1309 (grub_util_exec_pipe_stderr): Likewise.
1310 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1311 This function calls vgs, not mdadm; adjust variable names
1314 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1316 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1317 of Autogen. The Autogen definitions files remain intact as they
1318 offer a useful abstraction.
1320 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1322 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1323 into no-ops, and use it in programs that copy files but do not need
1324 to take special care to sync writes (grub-mknetdir, grub-rescue,
1327 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
1329 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1330 than hardcoding /usr/local/bin/xorriso.
1332 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1334 Add PCI command activation to all PCI drivers as required for coreboot
1335 and maybe some other firmwares.
1337 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1339 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1340 and non-Apple variants of efiemu compile.
1342 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1344 * configure.ac: Add explicit check for linking format of
1345 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1346 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1347 hardcoding linking format.
1349 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1351 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1354 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
1355 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1357 Add a --locale-directory option to grub-install and related tools.
1359 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1360 --locale-directory option.
1361 (enum grub_install_options): Add
1362 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1363 * util/grub-install-common.c (grub_install_help_filter): Handle
1364 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1365 (grub_install_parse): Likewise.
1366 (get_localedir): New function to check for a user-provided option
1367 before trying grub_util_get_localedir.
1368 (copy_locales): Use get_localedir rather than
1369 grub_util_get_localedir. Handle differing locale directory layouts.
1370 (grub_install_copy_files): Likewise.
1372 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1374 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1375 Don't rely on PATH_MAX.
1377 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1379 * grub-core/genmoddep.awk: Use more portable && rather than and.
1381 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1383 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
1384 an object after data. While it doesn't seem right solution, it
1385 works well enough and OSX isn't main compilation platform.
1387 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1389 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
1390 While it doesn't seem right solution, it works well enough and
1391 OSX isn't main compilation platform.
1393 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1395 * configure.ac: Add -static to LDFLAGS when using apple linker to
1396 prevent it from pulling in dynamic linker.
1398 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1400 Apple assembly doesn't handle symbol arithmetic well. So define an
1401 offset symbol in boot.S and use it.
1403 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1405 Apple assembly doesn't handle symbol arithmetic well. So instead
1406 of getting addres of kernel_sector + 4 define kernel_sector_high.
1407 It also makes code more readable.
1409 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1411 With Apple assembly in .macro environvemnt you have to use $$ instead
1412 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
1413 to $$x on Apple and to $x on everything else.
1415 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1417 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
1420 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1422 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
1423 and non-Apple. This instruction is shorter and faster,
1424 so no reason not to use it on both.
1426 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1428 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
1429 .text when compiling for Apple.
1431 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1433 * grub-core/term/arc/console.c: Add missing cast to silence warning.
1435 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1437 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
1438 %dx restore the probe worked on non-existant drive. Reorganize the
1439 code a little bit to free 2 bytes necessary for push/pop.
1441 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1443 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
1444 Add missing cast to silence warning.
1446 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
1448 * util/grub-install.c (update_nvram): Support --no-nvram flag
1451 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1453 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
1455 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1457 * util/garbage-gen.c: Add missing include of sys/time.h.
1459 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1461 Don't add -mflush-func if it's not supported by compiler.
1463 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1465 Move common BIOS/coreboot memory map declarations to
1466 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
1468 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
1470 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
1472 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1474 * INSTALL: Document why older clang versions aren't appropriate.
1476 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1478 * INSTALL: Document about clang for mips.
1480 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1482 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
1485 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1487 Add *-xen to the list of grub-install-common platforms.
1489 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1491 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
1494 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1496 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
1498 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1500 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
1501 with -mcmodel=large.
1503 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1505 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
1506 range-checking for 32-bit quantities.
1508 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1510 * configure.ac: Compile with -fPIC when compiling with clang on
1513 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1515 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
1516 when compiling with clang.
1518 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1520 clang emits calls to abort () under some unknown conditions.
1521 Export abort () when compiling with clang.
1523 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1525 * docs/grub-dev.texi: Document stack and heap sizes.
1527 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1529 * include/grub/i386/pc/memory.h: Decrease
1530 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
1531 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
1532 The binary doesn't change (checked). It's more to better reflect actual
1535 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1537 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
1538 at compile time that enough of scratch size is available.
1540 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1542 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
1543 Previously we misaligned stack by 8 in startup.S and compensated
1544 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
1545 right behaviour is to align stack in startup.S and keep it aligned
1546 in callwrap.S. startup.S part was committed few commits before. This
1547 takes care of callwrap.S.
1548 Reported by: Gary Lin.
1550 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1552 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
1553 .data and .bss. May happen if compiler and assembly use different
1556 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1558 On MIPS handle got16 relocations to local symbols in an ABI-compliant
1561 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1563 Add support for a new magic symbol _gp_disp on mips to handle PIC
1566 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1568 Use $t9 for indirect calls from asm to C as PIC ABI requires.
1570 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1572 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
1573 when rest of GRUB is compiled for hisher stepping. Instead use
1574 .set mips3/.set mips1 around cache and sync opcodes.
1576 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
1578 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
1579 do essentially the same thing, do it in similar way.
1581 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
1583 * util/grub-mkrescue.c (main): If a source directory is not
1584 specified, read platform-specific files from subdirectories of
1585 pkglibdir, not pkgdatadir.
1587 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
1589 * grub-core/normal/progress.c: Remove unused file.
1591 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1593 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
1596 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1598 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
1601 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1603 * coreboot.cfg: Add missing file.
1605 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1607 * Makefile.am: Allow STRIP to be empty when creating windowszip.
1609 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
1611 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
1612 selectively skipping systems.
1614 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1616 * Makefile.util.def (grub-mkimage): Add
1617 grub-core/osdep/aros/config.c to extra_dist.
1618 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
1619 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
1620 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
1621 grub-core/gnulib-no-gets.diff.
1623 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1625 Add automated filesystem checking based on scripts I've used now for
1626 quite some time locally. Most of the test require root so they are
1627 skipped when run without necessarry privelegies.
1629 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1631 * util/grub-install.c (main): Adjust info messages to match
1632 installed paths of grub-bios-setup and grub-sparc64-setup.
1634 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1636 * util/grub-install-common.c (copy_locales): Consistently use
1637 grub_util_get_localedir () rather than LOCALEDIR.
1638 (grub_install_copy_files): Likewise.
1640 2013-11-19 Josh Triplett <josh@joshtriplett.org>
1642 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
1643 16-byte boundary, as required by the x86-64 ABI, before calling
1644 grub_main. In some cases, GCC emits code that assumes this
1645 alignment, which crashes if not aligned. The EFI firmware is also
1646 entitled to assume that stack alignment without checking.
1648 2013-11-18 Josh Triplett <josh@joshtriplett.org>
1650 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
1651 4k page boundaries as expected by firmware rather than 1k
1653 (grub_mmap_malign_and_register): Likewise.
1655 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1657 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
1658 fragmentation 512M is enough.
1660 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1662 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
1663 pointer to 32K. This is the size of cache element which is the most
1664 common allocation >1K. This way the pointer is always around blocks
1665 of 32K and so we keep performance while decreasing fragmentation.
1667 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1669 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
1670 current memory when allocating large chunks. This significantly
1671 decreases memory fragmentation.
1673 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1675 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
1677 * tests/lzocompress_test.in: Skip if lzop is not installed.
1678 * tests/xzcompress_test.in: Skip if xz is not installed.
1680 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1682 * util/grub-mkrescue.c (main): Fix typo.
1684 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1686 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
1687 clock frequency to 200 MHz,
1689 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1691 * tests/util/grub-shell.in: Increase console size to 1024x1024.
1693 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1695 * Makefile.am (default_payload.elf): Add pata to loaded modules.
1696 Load config file from (cbfsdisk)/etc/grub.cfg.
1698 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1700 * util/grub-install-common.c (grub_install_copy_files): Fix module
1701 destination directory.
1703 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1705 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
1706 files have not been built.
1708 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1710 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
1711 Handle errors from mkstemp.
1712 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
1714 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1716 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
1717 on primary master on pseries.
1719 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1721 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
1722 already loaded. This saves memory needed for tests,
1724 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1726 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
1729 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1731 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
1734 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1736 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
1737 master since with some combinations of qemu and firmware only primary
1738 IDE channel is available.
1740 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1742 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
1743 low-memory platforms where we don't have enough memory for them.
1744 * grub-core/tests/videotest_checksum.c: Likewise.
1746 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1748 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
1749 already loaded. This saves memory needed for tests,
1751 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1753 Fix handling of install lists.
1755 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1757 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
1759 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1761 On i386-ieee1275 we run in paged mode. So we need to explicitly map
1762 the devices before accessing them.
1764 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1766 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
1769 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1771 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
1773 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1775 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
1776 (grub_file_close): Free file->name.
1778 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1780 * grub-core/commands/verify.c (free_pk): Plug memory leak.
1781 (grub_load_public_key): Likewise.
1782 (grub_verify_signature_real): Likewise.
1783 (grub_cmd_verify_signature): Likewise.
1785 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1787 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
1790 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1792 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
1793 (grub_longjmp): Restore r31.
1794 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
1796 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1798 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
1799 modules to be in line with make_image_abs.
1801 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1803 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
1805 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
1807 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
1809 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
1811 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1813 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
1814 to leave some memory to firmware.
1816 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1818 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
1819 of loading gfxterm as gfxterm is embed in kernel on some platforms.
1820 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
1823 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1825 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
1826 now needs full arguments.
1828 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1830 * util/grub-mkrescue.c (main): Add trailing \n in
1831 .disk_label.contentDetails to be in line with previous shell script.
1833 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1835 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
1837 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1839 * util/grub-install-common.c (grub_install_parse): Recognize
1840 --compress=none like shell script did.
1842 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1844 * include/grub/misc.h: Replace check for __sparc64__ with one for
1845 __sparc__ as __sparc64__ isn't actually defined.
1847 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1849 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
1850 counterpart of fixing the naming of escc ports.
1852 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1854 * util/grub-install-common.c (platforms): Fix the order of entries and
1855 remove useless field val.
1857 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1859 * util/grub-install.c: Add new option --no-bootsector to skip
1860 installing of bootsector. Accept --grub-setup=/bin/true as
1861 backwards-compatible synonym.
1863 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1865 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
1866 order of qsort arguments (number of elements vs. element size).
1868 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1870 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
1871 the function of these files exceeds what can be sanely handled in shell
1872 in posix-comaptible way. Also writing it in C extends the functionality
1873 to non-UNIX-like OS and minimal environments.
1875 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1877 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
1878 compiling to thumb2.
1879 * grub-core/kern/arm/cache_armv7.S: Likewise.
1880 * grub-core/lib/arm/setjmp.S: Likewise.
1882 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
1884 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
1885 in grub_uboot_syscall
1887 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1889 Decrease stack usage in lexer.
1891 We have only 92K of stack and using over 4K per frame is wasteful
1893 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
1894 as macros so that compiler would remove useless structure on stack.
1895 Better solution would be to fix flex not to put this structure on
1896 the stack but flex is external program.
1898 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1900 Decrease stack usage in signature verification.
1902 We have only 92K of stack and using over 4K per frame is wasteful
1904 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
1906 (grub_verify_signature_real): Likewise.
1908 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1910 Decrease stack usage in mdraid 0.9x.
1912 We have only 92K of stack and using over 4K per frame is wasteful
1914 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
1917 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1919 Decrease stack usage in BtrFS.
1921 We have only 92K of stack and using over 4K per frame is wasteful
1923 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
1926 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1928 Decrease stack usage in JFS.
1930 We have only 92K of stack and using over 4K per frame is wasteful
1932 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
1933 stack. Note: this function is recursive.
1934 (grub_jfs_read_inode): Read only part we care about.
1936 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
1938 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
1941 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1943 * configure.ac: Restore -nostdlib for libgcc symbols tests.
1945 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1947 * docs/grub.texi (Environment): Document cmdpath.
1949 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1951 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
1952 Remove "unused" attribute from arguments, they are used.
1954 2013-11-15 Colin Watson <cjwatson@debian.org>
1956 * .gitignore: Only ignore grub-mk* at the top level.
1958 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
1960 * util/grub-reboot.in (usage): Fix a typo.
1962 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
1964 Replace libgcc version of ctz with our own.
1966 On upcoming arm64 port libgcc ctz* are not usable in standalone
1967 environment. Since we need ctz* for this case and implementation is
1968 in C we may as well use it on all concerned platforms.
1970 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1972 * configure.ac: Probe for linking format rather than guessing it based
1975 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1977 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
1978 "1" prior to handoff.
1980 Reported by: M A Young.
1982 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1984 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
1987 Reported by: M A Young.
1989 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1991 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
1992 compilation on NetBSD.
1994 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1996 * acinclude.m4: Don't add -P on initial nm test.
1998 Note: even though this patch postdates Andrey's it bears 14 Nov as
1999 date due to timezone difference.
2001 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2003 * grub-core/Makefile.core.def (signature_test): Add missing
2006 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2008 * util/grub-install_header: Set localedir here, since this file is
2010 * util/grub-install.in: Remove setting of localedir.
2011 * util/grub-mkrescue.in: Likewise.
2013 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2015 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2017 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2019 * configure.ac: Move nm checks to the end.
2020 Call grub_PROG_NM_WORKS.
2021 * acinclude.m4: New check grub_PROG_NM_WORKS.
2022 Use $TARGET_CFLAGS -c when compiling test binary.
2024 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2026 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2029 2013-11-14 Matthew Garrett <mjg@redhat.com>
2031 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2032 cmdpath to firmware directory.
2034 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2036 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2037 at the start of second iteration.
2039 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2041 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2043 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2045 * Makefile.am (default_payload.elf): New target for easier coreboot
2048 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2050 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2051 clang (not necessarry with -no-integrated-as).
2052 * include/grub/symbol.h [__arm__]: Likewise.
2054 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2056 * configure.ac: Use -no-integrated-as on arm with clang.
2057 * INSTALL: Mention ARM compilation with clang.
2059 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2061 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2064 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2066 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2067 code for indirect block handling.
2069 Saves 185 bytes on compressed image.
2071 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2075 * Makefile.am: Remove build-grub-* in make clean.
2077 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2079 New files to gitignore.
2081 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2082 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2084 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2086 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2088 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2090 * .gitignore: fix rules for .dep* and add *.a post git migration
2092 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2094 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2097 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2099 * grub-core/kern/misc.c: Don't redirect divisions in the
2101 * include/grub/misc.h: Likewise.
2103 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2105 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2106 systems that require checking the return value of write.
2108 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2110 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2111 efibootmgr quiet when --debug is not used, rather than when it is.
2113 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2115 * gentpl.py (define_macro_for_platform_dependencies): Remove
2116 first (and thus unused) of two definitions for this function.
2117 (platform_dependencies): Likewise.
2119 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2121 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2122 functions, we only need to check this for the target, not the host.
2123 * configure.ac (grub_apple_cc): Likewise.
2125 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2127 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2128 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2129 asm to stay in arm even if surrounding is thumb.
2131 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2133 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2134 helper functions are needed for thumb.
2136 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2138 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2139 level / 3 division explicitly unsigned. Saves few bytes.
2141 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2143 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2145 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2147 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2150 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2152 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2153 grub_uboot_boot_data to asm part.
2155 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2157 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2159 (grub_uboot_syscall): Save/restore r9 and align stack.
2161 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2163 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2165 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2167 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2168 occurencies with END.
2170 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2172 * util/grub-editenv.c (help_filter, argp): Document how to delete
2173 the whole environment block.
2174 Reported by Dan Jacobson. Fixes Debian bug #726265.
2176 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2178 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2181 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2183 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2184 increment/decrement.
2186 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2188 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2189 compiling with clang.
2191 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2193 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2196 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2198 Redirect all divisions to grub_divmod64.
2200 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2202 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2204 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2206 Add missing includes of loader.h.
2208 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2210 * configure.ac: Allow disabling themes.
2212 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2214 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2216 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2218 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2219 until it becomes operational.
2221 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2223 * grub-core/Makefile.core.def (legacy_password_test): Disable
2224 on platforms where no legacycfg is compiled.
2225 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2226 load legacy_password_test.
2228 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2230 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2232 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2234 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2236 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2238 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2239 strict-aliasing warning.
2240 (fsync): Silence cast warning.
2242 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2244 * grub-core/commands/verify.c: Remove variable length arrays.
2245 Load gcry_dsa/gcry_rsa automatically.
2247 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2249 * grub-core/tests/signature_test.c: New test.
2251 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2253 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2256 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2258 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2259 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2261 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2263 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2265 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2267 * grub-core/fs/proc.c: Allow \0 in proc files.
2269 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2271 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2273 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2275 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2277 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2279 * grub-core/fs/ext2.c: Remove variable length arrays.
2281 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2283 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2286 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2288 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2289 * grub-core/disk/cryptodisk.c: Likewise.
2290 * grub-core/disk/geli.c: Likewise.
2291 * grub-core/disk/luks.c: Likewise.
2293 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2295 * grub-core/tests/legacy_password_test.c: New test.
2296 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2298 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2300 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2302 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2304 * grub-core/tests/pbkdf2_test.c: New test.
2306 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2308 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2310 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2312 * grub-core/io/lzopio.c: Remove variable length arrays.
2314 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2316 * include/grub/crypto.h: Add maximums on hash size and cipher block
2319 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2321 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2323 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2325 * grub-core/tests/xnu_uuid_test.c: New test.
2327 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2329 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2332 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2334 * grub-core/commands/hashsum.c: Remove variable length arrays.
2336 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2338 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2340 * tests/grub_func_test.in: Increase memory allocation.
2342 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2344 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2345 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2348 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2350 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2351 (grub_util_get_fd_size_os): ...this.
2352 (grub_hostdisk_flush_initial_buffer): New empty function.
2354 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2356 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2357 without --defined-only.
2359 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2361 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2362 rip-relative addressing in prologue.
2364 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2366 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2367 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2369 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2371 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2372 Add missing semicolon.
2374 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2376 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2378 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2380 * configure.ac: Check for lzma.h for enabling liblzma and allow
2383 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2385 Add missing includes of loader.h.
2387 2013-11-11 Fam Zheng <famcool@gmail.com>
2389 * util/grub.d/30_os-prober.in: Add minix entry.
2391 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2393 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
2394 right buffer for temporary load.
2396 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2398 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
2400 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2402 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
2405 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2407 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
2409 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
2411 (LzmaDec_InitDicAndState): Make static.
2413 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2415 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
2417 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2419 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
2421 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
2423 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2425 * docs/grub-dev.texi: Replace bzr references with git ones.
2427 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2429 * docs/grub.texi (Simple configuration): Remove reference to
2430 grub-reboot from saved default entry description - grub-default
2431 does not use it anymore.
2433 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2435 * configure.ac: Make efiemu test cflags match the cflags efiemu is
2438 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2440 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
2442 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2444 Fix grub_machine_fini bitrot.
2446 Reported by: Glenn Washburn.
2448 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2450 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
2452 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2454 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
2456 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
2459 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2461 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
2462 Add -march=core2 when testing compile of efiemu64.
2464 Thanks Andrey Borzenkov for spotting this.
2466 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2468 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
2469 XEN PV environment and load kernels.
2471 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2473 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
2474 * grub-core/loader/multiboot_mbi2.c: Likewise.
2476 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2478 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
2481 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2483 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
2485 Tested by: Denis 'GNUtoo' Carikli.
2487 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2489 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
2491 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2493 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
2494 Use to get rounded angle rather than truncated.
2496 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2498 * grub-core/term/serial.c: Add option for enabling/disabling
2499 RTS/CTS flow control.
2501 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2503 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
2506 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2508 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
2509 Use grub_fatal rather than divide by zero.
2510 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
2512 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2514 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
2516 (grub_fixed_fsf_divide): Likewise.
2518 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2520 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
2521 division by-zero and senseless negative divisions.
2523 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2525 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
2526 division by-zero and senseless negative divisions.
2527 (circprog_set_property): Don't accept negative num_ticks.
2529 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2531 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
2532 division by-zero and senseless negative divisions.
2534 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2536 * configure.ac: Use elf_*_fbsd on kfreebsd.
2538 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2540 * grub-core/tests/div_test.c: New test.
2542 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2544 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
2545 * grub-core/gfxmenu/gui_canvas.c: Likewise.
2546 * grub-core/gfxmenu/view.c: Likewise.
2547 * grub-core/video/fb/video_fb.c: Introduce new functions:
2548 grub_video_set_area_status, grub_video_get_area_status,
2549 grub_video_set_region, grub_video_get_region.
2550 * grub-core/video/bochs.c: Likewise.
2551 * grub-core/video/capture.c: Likewise.
2552 * grub-core/video/video.c: Likewise.
2553 * grub-core/video/cirrus.c: Likewise.
2554 * grub-core/video/efi_gop.c: Likewise.
2555 * grub-core/video/efi_uga.c: Likewise.
2556 * grub-core/video/emu/sdl.c: Likewise.
2557 * grub-core/video/radeon_fuloong2e.c: Likewise.
2558 * grub-core/video/sis315pro.c: Likewise.
2559 * grub-core/video/sm712.c: Likewise.
2560 * grub-core/video/i386/pc/vbe.c: Likewise.
2561 * grub-core/video/i386/pc/vga.c: Likewise.
2562 * grub-core/video/ieee1275.c: Likewise.
2563 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
2564 * include/grub/video.h: Likewise.
2565 * include/grub/video_fb.h: Likewise.
2566 * include/grub/fbfill.h: Updated render_target structure.
2567 grub_video_rect_t viewport, region, area
2568 int area_offset_x, area_offset_y, area_enabled
2569 * include/grub/gui.h: New helper function
2570 grub_video_bounds_inside_region.
2571 * docs/grub-dev.texi: Added information about new functions.
2573 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2575 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
2578 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2580 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
2582 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
2584 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2586 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
2587 simple division on arm and ia64.
2589 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2591 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
2594 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2596 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
2598 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2600 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
2601 prefix symbol, not @.
2603 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2605 * INSTALL: Add note about older gcc and clang.
2607 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2609 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
2611 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2613 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
2614 NULL pointer dereference.
2616 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2618 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
2621 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2623 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
2626 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2628 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
2630 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
2631 * grub-core/disk/geli.c (ascii2hex): Likewise.
2633 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2635 * configure.ac: Run linker tests without -Werror.
2636 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
2637 Change all occurences of -static-libgcc resp -lgcc to
2638 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
2640 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2642 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
2644 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2646 Allow compiling with clang (not really supported though).
2648 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
2650 * configure.ac: Add -no-integrated-as when using clangfor asm files.
2651 Add -mrtd -mregparm=3 on i386 when not using clang.
2652 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
2654 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2656 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
2658 * grub-core/lib/reed_solomon.c: Likewise.
2659 * include/grub/i386/gdb.h: Likewise.
2660 * include/grub/i386/pc/int.h: Likewise.
2661 * include/grub/i386/pc/pxe.h: Likewise.
2662 * include/grub/ieee1275/ieee1275.h: Likewise.
2664 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2666 Import libgcrypt 1.5.3.
2668 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2670 * configure.ac: Don't add -Wcast-align on x86.
2672 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2674 * configure.ac: Add -freg-struct-return on all platforms that
2677 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2679 * acinclude.m4: Use -Werror on parameter tests.
2680 * configure.ac: Likewise.
2682 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2684 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
2686 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2688 * configure.ac: Check that -malign-loops works rather than assuming that
2689 either -falign-loops or -malign-loops work.
2691 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2693 * configure.ac: Remove -fnested-functions. We don't need it anymore.
2695 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2697 * configure.ac: Prevent cflags leaking to subsequent tests by always
2698 resetting cflags to target_cflags in target tests.
2700 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2702 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
2705 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2707 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
2709 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2711 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
2713 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2715 * grub-core/normal/cmdline.c (grub_cmdline_get):
2716 Remove nested functions.
2718 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2720 * tests/test_sha512sum.in: Make it work on emu.
2722 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2724 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
2726 (grub_bidi_line_logical_to_visual): Likewise.
2728 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2730 Remove vestiges of -Wunsafe-loop-optimisations.
2732 * conf/Makefile.common (CFLAGS_GNULIB): Remove
2733 -Wno-unsafe-loop-optimisations.
2734 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
2736 * grub-core/io/gzio.c: Likewise.
2737 * grub-core/script/parser.y: Likewise.
2738 * grub-core/script/yylex.l: Likewise.
2739 * util/grub-mkfont.c: Likewise.
2741 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2743 * util/grub-mkfont.c (process_cursive): Remove nested function.
2745 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2747 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
2748 (grub_boot_time): Likewise.
2750 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2752 * include/grub/symbol.h (FUNCTION): Use @function rather than
2754 (VARIABLE): Likewise.
2756 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2758 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
2760 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2762 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
2763 (parse_dhcp_vendor): Likewise.
2765 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2767 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
2769 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2771 * grub-core/gettext/gettext.c (main_context), (secondary_context):
2772 Define after defining type and not before.
2774 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2776 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
2778 (grub_gcm_decrypt): Likewise.
2779 (algo_decrypt): Likewise.
2780 (grub_zfs_decrypt_real): Transform error type.
2782 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2784 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
2786 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2788 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
2789 (grub_usbms_cbi_reset): Likewise.
2790 (grub_usbms_bo_reset): Likewise.
2791 (grub_usbms_reset): Likewise.
2792 (grub_usbms_attach): Likewise.
2793 (grub_usbms_transfer_cbi): Likewise.
2795 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2797 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
2798 "checksum = checksum;".
2800 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2802 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
2805 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2807 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
2810 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2812 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
2814 (grub_ehci_fini_hw): Likewise.
2815 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
2817 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2819 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
2820 return grub_usb_err_t for cosistency. All users updated.
2822 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2824 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
2825 assigning to itself.
2827 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
2828 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2830 Issue separate DNS queries for ipv4 and ipv6
2832 Adding multiple questions on a single DNS query is not supportted by
2833 most DNS servers. This patch issues two separate DNS queries
2834 sequentially for ipv4 and then for ipv6.
2836 Fixes: https://savannah.gnu.org/bugs/?39710
2838 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
2839 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
2840 * (grub_net_dns_lookup): Now using separated dns packages.
2841 * (grub_cmd_nslookup): Add error condition.
2842 * (grub_cmd_list_dns): Print DNS option.
2843 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
2844 --prefer-ipv4, and --prefer-ipv6.
2845 * include/grub/net.h (grub_dns_option_t): New enum.
2846 * (grub_net_network_level_address): option added.
2848 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
2850 * grub-core/video/fb/video_fb.c: Merge two blit functions
2853 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2855 * grub-core/term/terminfo.c: Add sequences for home and end.
2857 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2859 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
2862 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2864 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
2867 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2869 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
2870 e-mail by Per Öberg.
2872 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2874 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
2877 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
2879 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
2881 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
2883 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2885 * docs/grub.texi: Document usage of menuentry id.
2887 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2889 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
2891 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
2893 * grub-core/commands/i386/nthibr.c: New command.
2895 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2897 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
2899 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2901 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
2904 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2906 Support GRUB_DISABLE_SUBMENU config.
2908 Inspired by patch from Prarit Bhargava.
2910 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2912 * docs/grub.texi: Mention RSA support.
2914 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2916 * grub-core/commands/verify.c: Add RSA support.
2918 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2920 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
2921 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
2922 device is known to be ATAPI.
2924 2013-11-03 Mike Frysinger <vapier>
2926 * configure.ac: Don't add target-prefix.
2928 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2930 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
2933 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2935 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
2936 if language is English.
2938 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2940 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
2942 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2944 * configure.ac: Don't add -m32/-m64 on emu.
2948 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
2949 broken linux headers.
2951 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2953 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
2955 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2957 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
2958 Reed-Solomon recovery if more than half of redundancy info is 0.
2960 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2962 * util/grub-mount.c: Handle symlinks to directories.
2964 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2966 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
2967 find_file recursively for symlink.
2969 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2971 * tests/util/grub-shell.in: Copy themes.
2973 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2975 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
2977 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2979 * configure.ac: Use 0x8000 for address instead of 8000.
2981 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2983 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
2986 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2988 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
2991 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2993 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
2995 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2997 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
2998 file_progress_read_hook.
2999 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3001 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3003 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3006 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3008 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3010 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3012 Rewrite blocklist functions in order to get progress when
3013 reading large extents and decrease amount of blocklist hook calls.
3015 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3017 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3020 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3022 Support --base-clock for serial command to handle weird cards with
3023 non-standard base clock.
3025 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3027 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3029 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3030 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3031 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3032 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3033 + strcpy rather than strncpy.
3035 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3037 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3038 (check_pool_label): Likewise. Fixes overflow.
3039 (nvlist_find_value): Fix comparison.
3041 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3043 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3044 more appropriate functions.
3046 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3048 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3051 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3053 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3055 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3057 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3060 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3062 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3064 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3066 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3067 (initialize_tables): reset tl and td to NULL after freeing.
3069 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3071 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3073 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3075 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3078 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3080 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3082 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3084 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3087 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3089 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3090 a page in protected space.
3092 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3094 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3095 allocate space for zero-sized modules.
3097 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3099 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3101 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3103 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3105 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3107 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3108 safeguards. Fixes a crash with i386/pc/console.c.
3110 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3112 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3113 and grub_hostfs_init.
3115 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3117 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3118 windows method on other platforms without good stat as well.
3120 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3122 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3124 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3126 Make / in btrfs refer to real root, not the default volume.
3127 Modify mkrelpath to work even if device is mounted with subvolid option.
3129 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3131 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3133 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3136 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3138 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3141 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3143 * docs/autoiso.cfg: New file.
3145 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3147 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3148 COND_GRUB_PE2ELF conditions.
3150 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3152 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3153 "vnd", "rd" and "fd" disks.
3155 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3157 Move grub_disk_write out of kernel into disk.mod.
3159 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3161 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3164 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3166 * grub-core/kern/misc.c (grub_abort): Make static
3168 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3170 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3171 transform invalid unicode codepoints.
3173 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3175 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3178 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3180 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3182 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3184 Consolidate cpuid code.
3186 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3188 Move cpuid code to cpuid.h and TSC code to tsc.c.
3190 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3192 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3194 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3196 * util/grub-mkconfig.in: Replace $0 with $self.
3197 * util/grub-reboot.in: Likewise.
3198 * util/grub-set-default.in: Likewise.
3200 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3202 * docs/osdetect.cfg: New file.
3204 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3206 * tests/util/grub-shell.in: Add new --debug option.
3208 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3210 * tests/test_unset.in: New test.
3212 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3214 * tests/test_sha512sum.in: New test.
3216 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3218 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3219 * include/grub/misc.h: Remove strncat.
3220 * grub-core/lib/posix_wrap/string.h: Likewise.
3222 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3224 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3225 Try to handle more than 0xFFFF packets.
3226 Reported by: Bernhard Übelacker <bernhardu>.
3227 He also spotted few overflows in first version of this patch.
3229 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3231 * tests/date_unit_test.c: New test.
3233 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3235 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3236 of first three years after start of validity of unixtime.
3238 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3240 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3241 division as the one making more sense.
3242 (update_screen): Likewise.
3243 (complete): Likewise.
3245 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3247 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3249 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3251 Make char and string width grub_size_t rather than grub_ssize_t.
3253 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3255 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3257 (grub_history_replace): Likewise.
3259 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3261 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3264 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3266 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3269 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3271 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3272 Use unsigned divisions rather than signed variants.
3274 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3276 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3277 unsigned arithmetics.
3280 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3282 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3284 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3286 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3287 rather than signed one.
3288 (recovery): Likewise.
3290 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3292 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3294 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3296 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3299 2013-10-25 Jon McCune <jonmccune@google.com>
3301 * docs/grub.texi: Cleanup security documentation around signatures.
3303 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3305 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3307 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3309 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3312 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3314 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3315 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3316 functions when compiling for kernel.
3318 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3320 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3321 unsigned long long when using %llu.
3323 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3325 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3326 terminal after updating progress.
3328 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3330 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3331 argument. We don't disable Gate A20 in this code.
3333 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3335 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3336 Conceptually based on change in branch "vbe-on-coreboot".
3338 2013-10-24 Robert Millan <rmh@gnu.org>
3340 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3341 numeric constants with their symbolic equivalent.
3342 Taken from branch "vbe-on-coreboot".
3344 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3346 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3348 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3350 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3351 divmod64 for offset division.
3353 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3355 Rename .bzrignore to .gitignore. Add "*.o" rule.
3357 * .bzrignore: Renamed to...
3358 * .gitignore: ...this.
3360 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3362 Add new progress module that displays the load progress of files.
3364 * grub-core/lib/progress.c: New file.
3365 * grub-core/Makefile.core.def (progress): New module.
3366 * grub-core/kern/file.c (grub_file_open): File name added.
3367 * (grub_file_read): Progress hook added.
3368 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3369 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3370 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3371 * include/grub/file.h (struct grub_file): Add progress module members.
3372 * include/grub/term.h (struct grub_term_output): Likewise.
3373 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3374 Terminal velocity added.
3375 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3376 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3377 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
3378 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
3379 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
3380 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
3381 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
3382 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
3383 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
3384 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
3385 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
3386 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
3388 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3390 Verify signatures of signatures unless --skip-sig is specified.
3392 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3394 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3397 Saves 70 bytes on compressed image.
3399 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3401 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
3404 Saves 10 bytes on compressed image.
3406 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3408 * grub-core/kern/misc.c (grub_isprint): Move to ...
3409 * include/grub/misc.h (grub_isprint): ... here. Make inline.
3411 Saves 20 bytes on compressed image due to remving exporting.
3413 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3415 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
3417 Saves 5 bytes on compressed image.
3419 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3421 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
3424 Saves 379 bytes on compressed image.
3426 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3428 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
3430 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3432 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
3434 Saves 40 bytes on compressed image.
3436 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3438 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
3439 mask rather than 64-bit type.
3441 Saves 20 bytes on compressed image.
3443 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3445 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
3446 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
3448 Saves 273 bytes on compressed image.
3450 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3452 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
3453 variable length arrays.
3455 Saves 50 bytes on compressed image.
3457 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3459 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3461 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3463 * grub-core/fs/ufs.c: Remove variable length arrays.
3465 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3467 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
3469 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3471 * grub-core/fs/zfs.c: Remove variable length arrays.
3472 Reduces zfs.mod by 160 bytes (208 compressed).
3474 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3476 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
3478 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3480 * grub-core/net/arp.c: Remove variable length arrays.
3481 * grub-core/net/bootp.c: Likewise.
3482 * grub-core/net/dns.c: Likewise.
3483 * grub-core/net/icmp6.c: Likewise.
3484 * grub-core/net/net.c: Likewise.
3486 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3488 * grub-core/fs/ntfs.c: Remove variable length arrays.
3489 Increases ntfs.mod by 64 bytes (but decreases by 3 when
3492 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3494 * grub-core/fs/hfs.c: Remove variable length arrays.
3495 Reduces hfs.mod by 8 bytes (52 compressed).
3497 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3499 * grub-core/fs/udf.c: Remove variable length arrays.
3500 Increases udf.mod by 128 bytes (but decreases by 13 when
3503 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3505 * grub-core/fs/iso9660.c: Remove variable length arrays.
3506 Increases iso9660.mod by 200 bytes (but decreases by 79 when
3509 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3511 * grub-core/fs/nilfs2.c: Remove variable length arrays.
3512 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
3515 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3517 * grub-core/fs/xfs.c: Remove variable length arrays.
3518 Reduces xfs.mod by 40 bytes (43 compressed).
3520 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3522 * grub-core/fs/fshelp.c: Remove variable length arrays.
3523 Reduces fshelp.mod by 116 bytes (23 compressed).
3525 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3527 * grub-core/normal/completion.c: Remove variable length arrays.
3528 * grub-core/normal/menu_entry.c: Likewise.
3530 Reduces normal.mod by 496 bytes.
3532 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3534 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
3535 by 356 bytes (158 compressed).
3537 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3539 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
3540 by 364 bytes (169 compressed).
3542 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3544 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
3545 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
3546 * include/grub/types.h (grub_unaligned_uint64_t): New type.
3548 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3550 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
3551 bitmasks to small structures of size chosen to fit in registers.
3553 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3555 * conf/Makefile.common: Use -freg-struct-return on i386. This
3556 decreases code size and improves performance.
3558 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3560 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
3562 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3564 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
3566 Simplify expressions to save around 256 bytes in kernel.img.
3567 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
3569 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3571 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
3572 Use GRUB_UTIL_FD_O_* rather than O_*.
3574 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3576 Add haiku-specific functions.
3578 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3580 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
3582 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3584 Move stat () and device mode checking into OS-dependent files as
3585 long as performance doesn't suffer.
3587 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3589 Split make_system_path_relative_to_its_root into separate file
3590 relpath.c from getroot.c as it's common between unix and haiku
3591 but otherwise haiku doesn't use any functions from unix getroot.c.
3593 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3595 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
3597 (grub_util_is_special_file): Likewise.
3599 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3601 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
3602 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
3604 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3606 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
3607 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
3609 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3611 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
3612 (load_image): Likewise.
3614 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3616 * util/grub-render-label.c: Move backend part to ...
3617 * util/render-label.c: ... here.
3619 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3621 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
3622 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
3624 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3626 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
3628 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3630 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
3631 CD-ROM in case when it's declared as having subpartitions.
3633 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3635 Don't add -lm on haiku.
3637 * configure.ac: Define BUILD_LIBM to -lm on most platforms
3639 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
3642 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3644 * configure.ac: Use -melf_*_haiku as target on haiku.
3646 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3648 * Makefile.util.def: Add util/setup.c to extra_dist.
3650 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3652 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
3653 unknown types through.
3655 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3657 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
3658 (grub_util_check_char_device): Likewise.
3659 * include/grub/emu/getroot.h: Likewise.
3661 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3663 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
3664 memset rather than inline static function.
3666 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3668 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
3669 not doing embedded decompressor.
3671 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3673 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
3675 * grub-core/kern/disk.c: Likewise.
3676 * grub-core/kern/misc.c: Likewise.
3677 * include/grub/parser.h: Likewise.
3678 * include/grub/script_sh.h: Likewise.
3679 * include/grub/zfs/zfs.h: Likewise.
3681 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3683 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
3685 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3687 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
3688 defined before trying to use it.
3690 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3692 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
3695 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3697 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
3698 Use __unused__ rather than __used__ on gcc < 3.2.
3700 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3702 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
3704 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
3706 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3708 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
3710 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3712 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
3713 * include/grub/emu/misc.h: Likewise.
3715 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3717 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
3720 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
3722 * grub-core/tests/checksums.h: Regenerated due to progress bar
3723 get_minimal_size changes.
3725 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
3727 Added `tr' command support.
3729 * grub-core/commands/tr.c: New file.
3730 * grub-core/Makefile.core.def: Build rules for new module.
3732 * tests/grub_cmd_tr.in: New test.
3733 * Makefile.util.def: Build rules for new test.
3735 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3737 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
3739 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3741 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
3742 * docs/gurb.texi: Likewise.
3744 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3746 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
3747 Pixmap highlighted section with east and west slices was displayed
3748 incorrectly due to negative width of the central slice.
3750 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3752 * docs/grub.texi: Graphical options information update.
3753 Removed outdated. Updated current. Inserted missed.
3755 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3757 * docs/grub.texi: Mention few new platform-specific commands.
3759 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3761 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
3762 currently used so this doesn't really have any effect.
3763 Reported by: Douglas Ray <dougray>
3765 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3767 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
3768 compilation but prevents gcc from displaying messages in non-Latin
3770 * conf/Makefile.common: Likewise.
3772 2013-10-16 Hiroyuki YAMAMORI
3774 Handle Japanese special keys.
3775 Reported by: Hiroyuki YAMAMORI.
3776 Codes supplied by: Hiroyuki YAMAMORI.
3778 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
3780 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
3782 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
3784 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
3785 * docs/grub.texi: Likewise.
3787 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3789 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
3790 value in case of incomplete read.
3791 (grub_util_fd_write): Likewise.
3793 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3795 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
3797 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3799 * util/grub-editenv.c (create_envblk_file): More from here ...
3800 * util/editenv.c (grub_util_create_envblk_file): ... to here.
3802 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3804 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
3805 canonicalize file name before doing the rest.
3807 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3809 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
3812 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3814 Define grub_util_is_directory/regular/special_file and
3815 use OS-dependent versions rather than to rely on stat().
3817 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3819 * util/grub-mkimage.c: Move backend part to ...
3820 * util/mkimage.c: ... here.
3822 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3824 Allow compilation with mingw64 albeit with warnings due to lack of
3827 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
3828 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
3829 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
3830 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
3832 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
3834 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3836 Remove leftover references to some of the system headers.
3838 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3840 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
3843 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3845 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
3848 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3850 Split out blocklist retrieving from setup.c to
3851 grub-core/osdep/blocklist.c and add windows implementation since
3852 generic version doesn't work on NTFS on Windows due to aggressive
3855 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3857 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
3860 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3862 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
3863 Cut tailing newline. Remove arbitrary limitation. Always use
3864 grub_util_tchar_to_utf8.
3866 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3868 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
3869 * tests/printf_unit_test.c (printf_test): Add %% tests.
3870 Reported by: Paulo Flabiano Smorigo.
3872 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3874 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
3877 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3879 * configure.ac: Check for nvlist_lookup_string in nvpair since we
3880 use nvlist_lookup_string and don't use nvlist_print.
3882 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3884 Add wrappers around rename, unlink, mkdir, opendir, readdir and
3885 closedir to handle filename charset translation.
3887 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3889 * include/grub/emu/hostdisk.h: Move file operations to
3890 * include/grub/emu/hostfile.h: ... here.
3892 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3894 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
3897 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3899 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
3901 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3903 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
3904 and remove export.h.
3906 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3908 * grub-core/kern/emu/error.c: Removed.
3909 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
3910 explicitly as it's already in libgnu.a.
3912 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3914 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
3915 config-util.h include.
3917 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3919 Split emunet into platform-dependent and GRUB-binding parts. Keep
3920 platform-dependent part in kernel for easy access to OS functions.
3922 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3924 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
3927 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3929 * grub-core/osdep/windows/emuconsole.c: New file.
3931 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3933 * conf/Makefile.extra-dist: Add osdep/*/init.c
3935 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3937 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
3939 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3941 * util/grub-probe.c (probe): Separate different drives in hint-str
3942 by spaces and not newlines.
3943 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
3945 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3947 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
3950 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3952 Pass-through unknown E820 types. It required reorganisation of mmap
3955 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3957 * Makefile.util.def: Add osdep/init.c to grub-mount files.
3959 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3961 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
3964 2013-10-14 qwertial <qwertial>
3966 * grub-core/gdb_grub.in: Fix overflow and wrong field.
3968 2013-10-14 Jon McCune <jonmccune@google.com>
3970 * docs/grub.texi: Document new signatures possibility.
3972 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3974 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
3976 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3978 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
3980 (grub_util_tchar_to_utf8): Likewise.
3982 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3984 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
3985 * grub-core/kern/emu/main.c: Add missing include.
3986 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
3987 Don't call grub_util_init_nls.
3988 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
3991 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3993 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
3996 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3998 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4000 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4002 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4004 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4006 Add a wrapper for fopen. On unix-like systems just pass-through. On
4007 windows use unicode version.
4009 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4011 Move set_program_name and init_nls to host_init. On windows
4012 fix in this fuction console and argument charset as well.
4014 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4016 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4017 GRUB_ENABLE_CRYPTODISK.
4019 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4020 GRUB_ENABLE_CRYPTODISK.
4021 * util/grub-mkconfig_lib.in: Likewise.
4023 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4025 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4027 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4029 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4030 error when enabling debug.
4032 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4034 * configure.ac: Use -melf_*_obsd on openbsd.
4036 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4038 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4040 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4042 * include/grub/misc.h: Use gnu_printf rather than printf as format
4043 template since our functions are independent of libc.
4045 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4047 * util/grub-setup.c (setup): Move copying of partition table as
4048 futher up as possible to avoid possible overwrite by floppy routines.
4050 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4052 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4054 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4056 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4057 * docs/grub.texi: Likewise.
4059 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4061 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4062 it's mostly unused. Move vestiges to the callers.
4064 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4066 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4067 version of salt and hash. Use grub_snprintf rather than snprintf.
4069 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4071 * docs/grub.texi: Fix problem with braces.
4073 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4075 * conf/Makefile.extra-dist: Fix extra-dist list.
4076 * grub-core/Makefile.core.def: Likewise.
4078 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4080 * docs/grub.texi: Document disk names used on Windows and AROS.
4082 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4084 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4086 * grub-core/osdep/aros/hostdisk.c: Likewise.
4088 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4090 Avoid including hostfile.h when not necessarry as it pulls
4091 in OS-specific headers which may redefine generic names
4094 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4096 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4097 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4098 scrollbar_bottom_pad
4099 * docs/grub.texi: Likewise.
4101 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4103 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4105 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4107 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4109 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4111 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4113 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4116 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4118 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4121 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4123 Move OS-specific driver configuration to grub_util_fd_open. This
4124 moves OS-dependent parts from kern/emu/hostdisk.c to
4125 grub-core/osdep/*/hostdisk.c.
4127 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4129 * util/grub-mkimage.c (generate_image): Use size_t instead of
4131 * util/grub-mkimagexx.c (locate_sections): Likewise.
4132 (load_image): Likewise.
4134 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4136 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4138 (grub_util_write_image): Likewise.
4140 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4142 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4143 get random when no RNG is available.
4144 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4146 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4148 * include/grub/util/lvm.h: Removed.
4150 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4152 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4153 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4155 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4157 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4159 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4161 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4163 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4165 * grub-core/net/drivers/emu/emunet.c: Move to ..
4166 * grub-core/osdep/linux/emunet.c: ..here.
4168 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4170 * util/ieee1275/ofpath.c: Move to ...
4171 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4172 * grub-core/osdep/basic/ofpath.c: ..here.
4174 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4176 Move password-querying (util-version) routines to grub-core/osdep.
4178 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4180 Move sleep routines to grub-core/osdep.
4182 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4184 Move OS-dependent files to grub-core/osdep and document it.
4186 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4188 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4189 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4191 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4193 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4195 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4197 * util/misc.c: Remove leftover inclusion of malloc.h.
4199 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4201 * include/grub/setjmp.h: Remove leftover GRUBOF.
4203 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4205 * util/raid.c: Fold into ...
4206 * util/getroot_linux.c: ... here. Make all functions static.
4208 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4210 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4211 macros to GRUB ones.
4213 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4215 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4216 occasional bug. If there are too many boot entries or too low
4217 scrollbar height then we need to use another formula to calculate
4218 the position and size of the scrollbar thumb.
4220 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4222 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4224 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4226 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4227 * docs/grub.texi: Likewise.
4229 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4231 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4234 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4236 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4237 minimal width calculations.
4239 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4241 * docs/grub.texi: Update note on colors on emu console.
4243 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4245 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4246 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4247 it's FS and not GRUB limitation.
4249 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4251 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4253 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4255 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4257 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4259 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4260 kernels by version order.
4262 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4264 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4266 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4268 Add AROS hostdisk and getroot routines.
4270 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4272 Make cryptodisk and diskfilter probe data retrievable programmatically
4273 and not just printable.
4275 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4277 Split random retrieving code into separate files.
4279 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4281 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4284 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4286 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4288 * grub-core/tests/fake_input.c: Likewise.
4289 * grub-core/tests/cmdline_cat_test.c: Likewise.
4291 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4293 * grub-core/video/capture.c: Do not do finalization when .fini
4294 is called as there is explicit capture_end.
4296 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4298 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4299 changing windows to avoid crash.
4301 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4303 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4305 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4307 * po/exclude.pot: Add several strings to exclude.
4309 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4311 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4313 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4315 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4316 ./util/grub-gen-asciih.c to exclude list.
4318 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4320 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4321 and don't mark error strings for translation.
4323 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4325 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4326 properly in case of missing block size.
4328 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4330 * grub-core/lib/arm/setjmp.S: Add missing license section.
4332 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4334 * po/swiss.sed: Add replacement for key names and for term computer.
4336 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4338 * grub-core/gfxmenu/theme_loader.c: New global options for the
4339 theme background image handling. desktop-image-scale-method,
4340 desktop-image-h-align, desktop-image-v-align.
4341 * grub-core/gfxmenu/view.c: Likewise.
4342 * include/gfxmenu_view.h: Likewise.
4343 * include/bitmap_scale.h: Proportional scale functions introduced.
4344 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4345 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4346 cases of unexpected input variables for scale functions.
4347 * docs/grub.texi: Updated documentation for new options.
4349 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4351 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4353 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4355 * grub-core/tests/checksums.h: Corrected due to changes in
4356 bilinear interpolation function.
4358 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4360 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4361 to eliminate artefacts in bilinear interpolation.
4363 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4365 * grub-core/video/readers/tga.c: Support paletted tga.
4367 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4369 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4370 incorrect cbcr setting when in color mode.
4372 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4374 * grub-core/video/readers/png.c: Support paletted images and clean up
4377 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4379 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
4380 usage of wrong table which resulted in mishandling of 4-byte
4383 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4385 * grub-core/term/terminfo.c: Add Home and End key sequences.
4387 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4389 * grub-core/video/readers/png.c (grub_png_decode_image_header):
4390 Fix formula for computing total number of bytes.
4392 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4394 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
4395 image processing, fix big-endian and support grayscale.
4397 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4399 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
4400 Correctly will with maximum transparency when using index color.
4402 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4404 * grub-core/video/readers/png.c: Support grayscale
4406 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4408 * grub-core/video/readers/jpeg.c: Support grayscale.
4410 2013-09-26 Jon McCune <jonmccune@google.com>
4412 * grub-core/commands/loadenv.c: Support skipping signature check
4413 and variable names filtering.
4415 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4417 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
4418 * grub-core/kern/emu/hostfs.c: Likewise.
4419 * util/getroot_unix.c: Likewise.
4421 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4423 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
4424 Migrate all explicit defines to this new one.
4426 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4428 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
4429 grub_util_fd_strerror when using grub_util_fd_*.
4430 (grub_util_fd_open_device): Likewise.
4431 (grub_util_biosdisk_read): Likewise.
4432 (grub_util_biosdisk_write): Likewise.
4433 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
4434 (grub_util_fd_strerror): Likewise.
4435 (grub_util_fd_sync): Likewise.
4436 (grub_util_fd_close): Likewise.
4437 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
4438 (grub_util_fd_close): Likewise.
4439 (grub_util_fd_strerror): Likewise.
4440 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
4441 function proto rather than macro.
4442 (grub_util_fd_sync): Likewise.
4443 (grub_util_fd_open): Likewise.
4444 (grub_util_fd_strerror): New proto.
4446 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4448 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
4449 platforms on which it doesn't work.
4451 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4453 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
4454 stat immediately to where it's used.
4456 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4458 * util/getroot.c (grub_util_check_block_device): Move to ...
4459 * util/getroot_unix.c (grub_util_check_block_device): ... here.
4460 * util/getroot.c (grub_util_check_char_device): Move to ...
4461 * util/getroot_unix.c (grub_util_check_char_device): ... here.
4463 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4465 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
4468 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
4470 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
4472 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
4474 * docs/grub.texi (File name syntax): Document ZFS filenames
4475 (/volume@snapshot/...).
4477 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4479 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
4480 Always return full path. Fixes a problem with mkrelpath.
4482 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4484 * util/grub-install.in: Add GPT PReP support.
4485 * util/grub-probe.c (probe): Support GPT partition type.
4486 (main): Support -t gpt_parttype.
4488 2013-09-23 Aleš Nesrsta <starous@volny.cz>
4490 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
4492 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
4494 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
4496 2013-09-23 Tim Hardeck <thardeck>
4498 * util/grub.d/10_hurd.in: Filter out character for the class.
4499 * util/grub.d/10_kfreebsd.in: Likewise.
4500 * util/grub.d/10_linux.in: Likewise.
4501 * util/grub.d/20_linux_xen.in: Likewise.
4503 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
4505 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
4508 2013-09-23 Josh Triplett <josh@joshtriplett.org>
4510 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
4513 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4515 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
4516 doesn't use posix_wrap. Keep literal -fno-builtin however.
4518 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4520 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
4522 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4525 * configure.ac: Do not enable -Wmissing-noreturn as its
4526 usefulness is limited and creates problems on some OS notably with
4527 code generated by bison.
4529 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4532 * configure.ac: Do not explicitly enable -Waddress as it's not
4533 supported by all gcc and when it is, it's already enabled by -Wall.
4535 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4537 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
4538 desactivated use of EDID at all.
4540 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4543 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
4544 video if no text is available.
4546 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4549 * configure.ac: Substitute TARGET_RANLIB.
4551 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4554 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
4556 Based on patches from AROS.
4558 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4561 * grub-core/Makefile.am: Override STRIP and RANLIB.
4562 * configure.ac: compute TARGET_RANLIB.
4563 * INSTALL: Document TARGET_RANLIB
4565 Based on patches from AROS.
4567 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4569 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
4570 that floppies are unpartitioned.
4572 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4574 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
4575 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
4577 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4579 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
4580 less nice but more portable.
4581 * grub-core/lib/posix_wrap/wchar.h: Likewise.
4583 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4585 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
4587 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
4589 (grub_cryptodisk_cheat_insert): Likewise.
4590 (grub_cryptodisk_close): Likewise.
4592 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4594 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
4595 Use windows path for DEFAULT_DIRECTORY.
4597 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4599 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
4600 difference was likely just gcc version, not anything mingw-related.
4602 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4604 Use Winapi on both cygwin and mingw32 to share more code between both.
4606 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
4608 * util/grub-install.in: Add --grub-editenv option.
4609 * util/grub-install_header (grub_compress_file): Explicitly check for
4610 plain file to avoid cp error.
4612 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
4614 * docs/grub.texi (Device syntax): Document new LVM UUID based device
4615 names; fix LVM driver name (lvm, not lv).
4616 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
4619 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4621 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
4622 files rather than one file with loads of #if's.
4623 * util/getroot.c: Likewise.
4625 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4627 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
4629 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4631 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
4632 GNU/Hurd to the list of checked PRNG.
4634 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4636 * configure.ac: On FreeBSD use -melf_*_fbsd format.
4638 2013-09-21 Ales Nesrsta <starous@volny.cz>
4640 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
4642 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4644 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
4645 * grub-core/disk/lvm.c: Add LVM UUIDs.
4646 * util/getroot.c: Use LVM UUIDs whenever possible.
4648 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
4650 * docs/grub.texi (Networking commands): Add documentation for
4651 network related commands.
4653 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4655 * util/getroot.c (grub_util_open_dm): Check major rather than the name
4656 to determine if device is handled by devmapper.
4657 (convert_system_partition_to_system_disk): Likewise.
4658 (get_dm_uuid): Don't check explicitly if device is mapped, it's
4659 already done in grub_util_open_dm.
4661 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
4663 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
4664 Clean up stack manipulation (sync_caches_armv*)
4666 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4668 * util/lvm.c: Remove since unused. Remove remaining references.
4670 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4672 Handle the case of partitioned LVM properly.
4674 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
4675 Stop on meeting LVM, mpath or DMRAID.
4676 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
4677 (read_device_map): Likewise.
4678 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
4679 device is full disk rather than erroring out on LVM and similar cases.
4681 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4683 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
4685 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4687 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
4689 Reported by: Leif Lindholm
4691 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
4692 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4694 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
4697 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
4699 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
4700 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
4702 2013-09-18 Douglas Ray <dougray@cpan.org>
4704 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
4707 2013-09-18 Aleš Nesrsta <starous@volny.cz>
4709 * docs/grub.texi: Fix broken link.
4711 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
4713 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
4714 to break endless loop.
4716 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4718 * util/grub-fstest.c: Fix several printf formats.
4719 * util/grub-mkimage.c: Likewise.
4720 * util/grub-mkimagexx.c: Likewise.
4721 * util/grub-script-check.c: Likewise.
4723 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4725 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
4728 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4730 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
4732 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4734 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
4735 removed in current versions cygwin_conv_*.
4737 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4739 * configure.ac: Disable efiemu runtime on cygwin.
4741 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4743 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
4744 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
4746 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4748 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
4751 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4753 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
4755 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
4758 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4760 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
4761 when on x86 and not cygwin.
4762 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
4765 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4767 * configure.ac: Set CPP to build one when checkoing for freetype for
4770 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4772 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
4773 [!GRUB_BUILD]: Remove has_argument.
4775 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4777 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
4778 Replace with a dummy.
4780 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4782 * configure.ac: Don't change host_os from mingw to cygwin.
4784 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4786 * configure.ac: Change target_os from windows to cygwin.
4788 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4790 Handle grub-pe2elf and grub-mkfont for cases when build != host.
4792 * Makefile.am (build-grub-mkfont): Don't include gnulib.
4793 (build-grub-gen-asciih): Likewise.
4794 (build-grub-gen-widthspec): Likewise.
4795 * Makefile.util.def (grub-pe2elf): Remove.
4796 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
4797 * configure.ac: Separate tests for build.
4798 Move ./build-grub-pe2elf to grub-core.
4800 * grub-core/Makefile.am (build-grub-pe2elf): New target.
4801 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
4803 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
4805 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
4806 * util/grub-pe2elf.c: Simplify not to rely on getopt.
4807 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
4809 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4811 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
4812 mingw32 as well based on grub_util_get_disk_size.
4813 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
4814 grub_util_get_fd_size.
4816 (fsync): Moved to ...
4817 * grub-core/kern/emu/misc.c (fsync): ... here.
4819 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4821 * include/grub/mm.h (grub_extend_alloc): Remove.
4822 * grub-core/loader/i386/pc/plan9.c: Use own version of
4823 grub_extend_alloc with appropriate types.
4825 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4827 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
4829 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4831 * util/getroot.c: Include sys/wait.h only when we need waitpid.
4833 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4835 Fix dependencies on cygwin.
4837 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
4838 dependencies when used and defined.
4839 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
4841 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4843 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
4844 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
4846 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4848 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
4849 implementation available to cause compile-time rather than runtime
4852 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4854 * util/grub-fstest.c: Don't check for symlinks on windows.
4856 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4858 * INSTALL: Mention unavailability of man pages when cross-compiling.
4860 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4862 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
4864 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
4866 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4868 * INSTALL: Document cross-compilation.
4869 * acinclude.m4: Determine whether nm support -P and --defined-only.
4870 * configure.ac: Add TARGET_ to all variables pertaining to target
4871 that don't have it yet.
4872 * gentpl.py: Likewise.
4873 * grub-core/Makefile.am: Likewise.
4874 * grub-core/genmod.sh.in: Likewise.
4875 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
4878 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
4880 * configure.ac: Remove -Wempty-body. It's not essential and needs
4883 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
4885 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
4886 * util/getroot.c: Likewise.
4888 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4890 * grub-core/disk/ahci.c: Add needed explicit cast.
4891 * grub-core/lib/backtrace.c: Likewise.
4892 * grub-core/net/ip.c: Likewise.
4893 * grub-core/net/tcp.c: Likewise.
4894 * grub-core/net/udp.c: Likewise.
4896 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4898 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
4900 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4902 * util/import_gcry.py: Add final newline in visibility.h.
4904 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4906 * conf/Makefile.common: Fix typo.
4908 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4910 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
4912 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4914 * Makefile.am (widthspec.h): Fix typo.
4915 * util/grub-gen-widthspec.c: Likewise.
4917 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4919 Move ascii.h and widthspec.h generation to a separate build-time-only
4922 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4924 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
4925 Always fill bootdisk info and improve check for NetBSD disklabel.
4927 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4929 * conf/Makefile.extra-dist: Add util/bin2h.c.
4930 Reported by: floppym.
4932 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4934 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
4936 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4938 * configure.ac: Disable unifont and starfield if no freetype was found.
4940 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4942 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
4943 on NetBSD and OpenBSD.
4945 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
4947 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
4949 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
4951 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
4952 reduced. Inheritant options are processed during the theme loading.
4954 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
4956 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
4958 2013-08-14 Avik Sil <aviksil@in.ibm.com>
4960 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
4962 2013-08-14 Avik Sil <aviksil@in.ibm.com>
4964 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
4967 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4969 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
4970 remove-potcdate.sed.
4972 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4974 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
4975 unused attribute from pull argument.
4977 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4979 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
4982 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4984 * util/getroot.c (pull_lvm_by_command): add --separator option
4985 to vgs call to disable padding of output to 10 characters.
4987 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4989 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
4991 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
4994 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4996 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
4999 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5001 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5002 full Canadian cross. Tested with build=x86_64, host=arm,
5003 target=ppc-ieee1275.
5005 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5007 * configure.ac: Error if no $BUILD_CC could be found.
5010 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5012 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5015 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5017 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5018 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5020 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5022 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5023 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5024 falling back to the partition device, otherwise a later call to this
5025 function may fail spuriously.
5026 Reported by Axel Beckert. Fixes Debian bug #708614.
5028 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5030 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5032 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5034 Prevent shadowing of stdlib's devname(3) on BSD.
5036 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5037 and devlast to diskname and disklast, respectively.
5039 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5041 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5043 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5045 * docs/grub.texi: Introduce terminal window position options:
5046 terminal-left: terminal window's left position
5047 terminal-top: terminal window's top position
5048 terminal-width: terminal window's width
5049 terminal-height: terminal window's height
5050 terminal-border: terminal window's border width
5051 * grub-core/gfxmenu/theme-loader.c: Likewise.
5052 * include/grub/gfxmenu_view.h: Likewise.
5053 * po/exlude.pot: Likewise.
5054 * grub-core/gfxmenu/view.c: Likewise.
5055 Also updated minimal window size.
5056 Also terminal_sanity_check function has been introduced.
5057 * grub-core/tests/checksums.h: Update (terminal window height
5058 is adjusted now for low resolution screen)
5060 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5062 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5065 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5067 * po/exclude.pot: Add few recent exceptions.
5069 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5071 * tests/grub_func_test.in: Add unicode.pf2.
5073 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5075 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5076 standard rather than noral color, in line with other terminals.
5078 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5080 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5083 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5085 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5087 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5089 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5090 inappropriate printf.
5092 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5094 * .bzrignore: Remove grub-core/lib/dtc-grub,
5095 grub-core/Makefile.libfdt.def
5096 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5098 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5100 * include/grub/video.h (grub_video_register): Keep double-linked as
5101 well as single-linked invariants.
5102 Reported by: qwertial.
5104 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5106 * grub-core/commands/nativedisk.c (get_uuid): Handle
5107 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5109 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5111 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5112 maximum of NW, N, NE heights instead of N's height and maximum of
5113 NW, W, SW widths instead of W's width. (So the box will be always
5116 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5118 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5119 Fix misuse of variable count.
5121 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5122 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5123 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5125 New ports to arm-uboot and arm-efi.
5126 Mostly by Leif Lindholm with some additions from
5127 Francesco Lavra and cleanup by Vladimir Serbinenko.
5129 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5131 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5133 Reported by: Leon Drugi.
5135 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5137 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5138 Reported by: Paulo Flabiano Smorigo.
5140 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5142 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5144 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5146 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5148 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5150 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5152 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5154 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5156 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5158 * grub-core/net/bootp.c: Export net_* variables.
5159 * grub-core/net/net.c: Likewise.
5161 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5163 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5165 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5167 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5169 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5171 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5173 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5175 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5177 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5179 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5182 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5184 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5187 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5189 * grub-core/fs/zfs/zfs_lz4.c: New file.
5190 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5192 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5194 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5196 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5198 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5199 (check_pool_label): Likewise.
5200 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5202 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5204 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5206 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5208 * docs/grub.texi (Commands): Document postition parameters
5209 for menuentry command.
5211 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5213 * util/grub-mknetdir.in: Remove stray line from help output.
5215 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5217 Remove early sm712 init as there is no reason for it (the "watchdog"
5218 effect was due to wrong GPIO map).
5220 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5222 * grub-core/commands/pcidump.c: Remove static variables.
5224 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5226 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5228 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5230 * configure.ac: Move delimiter after the infos.
5232 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5234 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5236 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5238 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5239 not filling whole 8x16 space.
5241 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5243 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5245 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5247 * configure.ac: Indicate which liblzma is used if any.
5249 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5250 2013-06-21 Craig Sanders <savannah@taz.net.au>
5252 * util/grub-reboot.in: Document submenu usage.
5254 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5256 * .bzrignore: Update with a number of new test-related files.
5258 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5260 * util/grub-script-check.c: Fail on scripts containing no
5261 commands, to guard against corrupted grub-mkconfig setups that
5262 produce no useful output.
5263 * tests/grub_script_no_commands.in: New test.
5264 * Makefile.util.def (grub_script_no_commands): Add.
5265 Reported by Hans Putter. Fixes Debian bug #713886.
5267 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5269 * grub-core/disk/diskfilter.c: Forgot to remove comment
5270 from previous commit.
5272 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5274 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5275 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5277 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5279 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5281 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5283 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5284 rescan diskfilter devices until nothing new is found.
5286 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5288 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5290 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5292 Don't try to detect cbfs on *-emu.
5294 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5296 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5298 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5300 Add support for processed coreboot payload chainloading.
5302 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5304 Enable coreboot information commands even when not loaded as
5305 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5307 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5309 Support for cbfs. Also factor out the part which is common
5310 for all archives to a separate module. This splits tar from cpio
5311 as they are very different but keeps cpio, cpio_be, odc and newc
5312 together since they're very similar.
5314 2013-06-15 David Michael <fedora.dm0@gmail.com>
5316 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5317 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5319 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5321 * tests/grub_script_eval.in: Really add the eval test.
5323 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5325 Move flavour-specific parts out of common cpio.c file and
5326 rename remaining to cpio_common.c
5328 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5330 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5331 off new function grub_script_execute_new_scope. Change callers to use
5332 either of them as appropriate.
5333 * grub-core/commands/eval.c: New command eval.
5334 * docs/grub.texi (Commands): Document it.
5336 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5338 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5339 to fetch values when listing.
5341 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5343 Fix make dist on non-pc.
5345 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
5347 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5348 without a device name.
5350 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5352 Remove enable_executable_check as it's not needed anymore.
5353 Reported by: dougray.
5355 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5357 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5358 ambigouos RAID before discovering RAIDs on top of it.
5361 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5363 Fix typo (failback vs fallback).
5365 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5367 * util/grub.d/30_os-prober.in: Add support for probing EFI
5368 System Partition (as of os-prober 1.58).
5370 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5372 * configure.ac: Add yet another path to unifont. For parabola.
5374 2013-05-30 Josh Triplett <josh@joshtriplett.org>
5376 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5377 handling to copy the killed characters to the kill buffer as
5378 UCS4 stored as grub_uint32_t rather than as 8-bit characters
5379 stored as char. Eliminates UCS4 truncation and corruption
5380 observed when killing characters with Ctrl-u and yanking them
5383 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5385 Detach optional parts of gfxterm and integrate in with coreboot init.
5387 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5389 Move blit and fill dispatcher to appropriate files to decrease export
5390 and relocation overhead.
5392 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5394 * grub-core/font/font.c, include/grub/font.h: Inline simple font
5397 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5399 * grub-core/Makefile.am: Fix compilation problem with some
5402 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5404 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
5406 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5408 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
5411 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5413 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
5416 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
5418 * grub-core/partmap/dfly.c: New partition map.
5420 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5422 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
5424 Reported by: Francesco Lavra.
5426 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
5428 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
5429 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
5431 * conf/Makefile.common: define dist_grubconf_DATA
5433 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5435 Progressively skip menu elements on small terminals rather
5438 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5440 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
5441 to avoid losing last column.
5443 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5445 * po/exclude.pot: Add missing string "%C".
5447 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5449 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
5452 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5454 * util/grub-install.in: Gettextize "Not found" message.
5456 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5459 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
5461 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5463 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
5465 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
5467 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5469 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
5471 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5473 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
5474 attribute since structure is not necessarily aligned.
5476 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
5478 * docs/grub.texi (Device syntax): Clarify description of network
5481 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5483 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
5484 for vasprintf presence.
5486 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5488 * util/grub-install.in: Handle efibootmgr presence check.
5489 Reported by: Leif Lindholm.
5491 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5493 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
5494 new strings to translate.
5496 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5498 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
5499 yet another string (pun intended) to translate.
5501 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5503 * po/POTFILES-shell.in: Autogenerate it.
5505 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5507 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
5509 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5511 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
5514 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
5516 * docs/grub.texi (Network): Add description of net_default_interface,
5517 net_default_ip and net_default_mac. Rewrite variables description
5518 to emphasize that they are per-interface.
5520 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5522 New test: cmdline and cat.
5524 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5526 * grub-core/commands/cat.c: Show UTF-8 characters.
5528 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5530 * conf/Makefile.common: Poison float and double on non-emu.
5532 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5534 * configure.ac: Don't disable extended registers on emu.
5536 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5538 * configure.ac: Don't use extended registers on x86_64.
5539 Reported by: Peter Jones.
5541 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5543 * grub-core/term/efi/console.c: Fix compile error.
5545 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5547 Compressed HFS+ support.
5549 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5551 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
5554 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5558 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5560 * grub-core/tests/setjmp_test.c: New test.
5562 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5564 New variables 'net_default_*' to determine MAC/IP of default interface.
5566 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5568 * tests/gettext_strings_test.in: A test to check for strings not
5569 marked for translation.
5571 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5573 * autogen.sh: Exclude unused libgcrypt files from translation.
5575 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5577 Simplify few strings.
5579 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5581 Mark few forgotten strings for translation.
5583 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5585 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
5588 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5590 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
5592 * grub-core/video/readers/tga.c: Likewise.
5594 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5596 * tests/priority_queue_unit_test.cc: New test.
5598 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5600 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
5603 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
5605 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
5606 variable for one time boot menu entry.
5608 2013-05-05 Bean <bean123ch@gmail.com>
5610 * grub-core/commands/testspeed.c: New command testspeed.
5612 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5614 Factor-out human-size printing.
5616 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5618 Agglomerate more mallocs to speed-up gfxterm.
5620 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5622 Speed-up gfxterm by slightly agglomerating mallocs.
5624 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5628 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5630 Speed-up gfxterm by saving intermediate results in index+alpha
5633 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5635 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
5638 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5640 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
5641 line of timeout as it may contain the rest of long line.
5643 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5645 * grub-core/normal/main.c: Fix freed memory dereference.
5647 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5649 Fix several memory leaks.
5651 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5653 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
5655 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5657 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
5659 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5661 Fix test -a and -o precedence.
5662 Reported by: adrian15.
5664 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5666 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
5668 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
5670 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
5671 and add it as source to functional_test module.
5673 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5675 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
5677 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5679 New series of tests for gfxterm and gfxmenu.
5681 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5683 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
5684 the theme path relative to $prefix/themes.
5686 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5688 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
5690 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
5692 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5694 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
5697 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5699 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
5700 grub_gfxmenu_timeout_notifications.
5701 (grub_gfxmenu_view_destroy): Likewise.
5703 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5705 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
5707 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5709 Several fixes to ieee1275 and big-endian video.
5711 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5713 Add missing exports on mips.
5715 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5717 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
5718 if no unifont is found.
5719 Restore original keyboard.
5721 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5723 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
5724 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
5726 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5728 First automated video test (running videotest and comparing results)
5730 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5732 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
5733 instead of 2 to have full RGB/CMY test pattern.
5735 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5739 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5741 * include/grub/arc/arc.h: Account for missing "other" peripheral on
5742 ARCS. All users updated.
5744 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5746 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
5748 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5750 * grub-core/partmap/amiga.c: Fix size of checksummed block.
5752 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5754 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
5755 Reported by: qwertial.
5757 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
5759 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
5760 with syntax "XXX deg"/"XXX °".
5762 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5764 Make PCI init in i386-qemu port more robust.
5766 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
5768 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
5769 cached view is reused.
5770 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
5773 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5775 Unify more code in grub-install_header.
5777 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5781 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5783 Enforce disabling of firmware disk drivers when native drivers kick in.
5785 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5787 * grub-core/commands/nativedisk.c: Customize the list of modules on
5788 platform. Don't try to search for disks already using native drivers.
5790 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5792 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
5795 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5797 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
5798 handling of variables containing backslash.
5800 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5802 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
5804 Reported by: qwertial.
5806 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5808 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
5810 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5812 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
5814 Reported by: qwertial.
5816 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5818 * docs/grub.texi: Add a comment about usefullness of nativedisk.
5820 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5822 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
5824 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5826 New command `nativedisk'.
5828 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5830 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
5831 * grub-core/loader/i386/bsd.c: Likewise.
5833 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5835 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
5837 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5839 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
5840 grub_get_unaligned16 rather than shifts.
5842 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5844 * grub-core/kern/file.c: Use const char * rather than casting to
5847 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5849 * grub-core/commands/probe.c: Add missing grub_device_close.
5851 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5853 * INSTALL: Document linguas.sh.
5855 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5857 Remove POTFILES.in and regenerate it in autogen.sh.
5859 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5861 Move --directory/--override-directorry to grub-install_header and unify.
5863 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5865 * grub-core/term/morse.c: Macroify dih and dah.
5867 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5869 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
5871 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5873 * grub-core/term/ns8250.c: Systematically probe ports by writing
5874 to SR before using them.
5876 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5878 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
5880 (check_sas): Get sas_adress info.
5882 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5884 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
5887 2013-04-27 Leon Drugi <eyak>
5889 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
5892 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5894 Core compression test.
5896 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5898 Implement grub_machine_get_bootlocation for ARC.
5900 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5902 Improve AHCI detection and command issuing.
5904 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5908 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5910 Make 'make check' work on emu.
5912 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5914 Replace libcurses with our own vt100 handling for the ease of testing
5915 and decreasing prerequisites.
5917 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5919 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
5921 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5923 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
5924 compile when not needed.
5926 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5928 * tests/pseries_test.in: New test.
5930 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5932 Add test to check that different boot mediums work.
5934 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5936 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
5937 ofw limited ISO support.
5939 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5941 * configure.ac: Fix loongson conditional.
5943 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5947 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5949 Add serial on ARC platform.
5951 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5953 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
5956 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5958 * tests/partmap_test.in: Add missing double semicolon.
5960 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5962 * util/grub-mkrescue.in: Fix loongson filename.
5964 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5966 * util/grub-mkrescue.in: Move all files that don't have a location
5967 set in stone under /boot/grub. Use ISO hard links rather than copies
5970 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5972 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
5975 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5977 Make check work on mips-arc.
5979 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5981 * util/grub-mkrescue.in: Alias sashARCS as sash.
5983 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5985 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
5988 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5990 * util/grub-install.in: Fix target fo qemu_mips.
5991 Fix extension on EFI.
5993 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5995 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
5996 in front of chosen entry to mark it even if highlighting is lost.
5998 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6000 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6001 gfxpayload=keep if cbfb is active.
6003 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6005 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6007 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6009 Add missing video ids to coreboot and ieee1275 video.
6011 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6013 * util/grub-mkrescue.in: Add mips-arc support.
6015 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6017 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6019 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6021 Move mips-arc link address. Previous link address was chosen
6022 in belief that RAM on SGI platforms grows down while in fact it
6023 grows up from an unusual base.
6025 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6027 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6028 Fix a type which prevented CD-ROM and floppy boot.
6030 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6032 Support coreboot framebuffer.
6034 * grub-core/video/i386/coreboot/cbfb.c: New file.
6036 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6038 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6039 detecting too small regions.
6041 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6043 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6045 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6047 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6049 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6051 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6053 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6054 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6055 * grub-core/loader/powerpc/ieee1275/linux.c
6056 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6058 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6060 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6061 Look for /boot-rom as well as /rom/boot-rom.
6063 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6065 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6066 handling when creating text_layer failed.
6067 * grub-core/video/video.c (grub_video_create_render_target):
6068 Set result to 0 on error.
6069 (grub_video_delete_render_target): Do not dereference NULL.
6071 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6073 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6074 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6075 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6076 (grub_linux_load64): Mask out 2 high bits.
6078 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6080 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6083 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6085 Add support for pseries and other bootinfo machines to grub-mkrescue.
6087 Tested by: Paulo Flabiano Smorigo.
6089 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6091 * util/grub-mkrescue.in: Add GPT for EFI boot.
6093 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6095 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6096 It improves performance in qemu.
6098 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6100 * build-aux/snippet: Add missing gnulib files.
6102 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6104 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6106 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6108 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6110 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6111 2013-04-15 Peter Jones <pjones@redhat.com>
6113 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6115 Based on patch by Peter Jones.
6117 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6119 Fix DMRAID partition handling.
6121 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6123 * tests/grub_cmd_date.in: Skip on sparc64.
6125 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6127 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6128 firmware error messages.
6130 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6132 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6133 source and destination differ.
6135 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6137 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6140 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6142 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6143 match config-util.h to avoid warnings and increase compatibility.
6145 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6146 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6148 Add option to compress files on install/image creation.
6150 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6152 * docs/grub-dev.texi: Rearrange menu to match the section order.
6153 Reported by: Bryan Hundven.
6155 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6157 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6159 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6161 Move GRUB out of system area when using xorriso 1.2.9 or later.
6163 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6165 * tests/grub_cmd_date.in: Add missing exit 1.
6167 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6169 * tests/partmap_test.in: Skip on sparc64.
6171 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6173 Support grub-shell on sparc64.
6175 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6177 Support mkrescue on sparc64.
6179 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6181 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6182 Needed on OpenBIOS due to incomplete device tree.
6184 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6186 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6187 would be otherwise excluded.
6189 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6191 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6192 Inline name defines used only once.
6194 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6196 Fix memory leaks in ofnet.
6197 Reported by: Francesco Lavra.
6199 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6201 * docs/man/grub-glue-efi.h2m: Add missing file.
6203 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6205 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6207 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6209 Better support Apple Intel Macs on CD.
6211 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6213 Replace stpcpy with grub_stpcpy in tools.
6215 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6217 Handle Japanese special keys.
6218 Reported by: Hiroyuki YAMAMORI.
6219 Codes supplied by: Hiroyuki YAMAMORI.
6221 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6223 * util/grub-mkimage.c: Document memdisk implying --prefix.
6225 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6227 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6228 much we can do about it anyway.
6230 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6232 Fix handling of split transfers.
6234 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6236 * grub-core/net/http.c: Fix bad free.
6238 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6240 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6243 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6245 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6247 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6249 * tests/util/grub-shell.in: Fix it on powerpc.
6251 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6253 Turn off QEMU ACPI-way since new releases don't have shutdown port
6256 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6258 * docs/grub.texi: Update coreboot status info.
6260 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6262 * tests/grub_cmd_date.in: New test for datetime.
6264 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6266 * tests/partmap_test.in: Fix missing qemudisk setting.
6268 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6270 Support i386-ieee1275 grub-mkrescue and make check on it.
6272 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6274 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6277 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6279 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6280 GRUB_CMDLINE_XEN_DEFAULT.
6281 Reported by: Marc Warne (GigaTux) <gigatux>
6283 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6287 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6289 Use ACPI shutdown intests as traditional port was removed.
6291 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6293 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6296 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6298 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6299 Fix few warining messages and leaks while on it.
6301 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6303 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6304 links under grub-core/lib/libgcrypt-grub/mpi.
6306 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6308 Fix ia64-efi image generation on big-endian machines. Deduplicate
6309 some code while on it.
6310 Reported by: Leif Lindholm.
6312 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6314 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6317 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6319 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6321 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6323 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6326 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6328 * grub-core/normal/term.c: Few more fixes for menu entry editor
6330 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6332 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6334 * grub-core/normal/term.c: Few more fixes for menu entry editor
6336 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6338 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6340 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6341 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6343 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6345 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6346 instead of hardcoding grub.mo.
6348 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6350 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6352 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6354 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6355 grub-core/disk/geli.c.
6357 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6359 * util/grub-mkfont.c: Prefer enum to #define.
6361 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6363 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6365 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6367 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6369 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6371 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6373 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6375 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6377 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6379 * include/grub/bsdlabel.h: Use enums.
6381 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6383 Move GRUB_CHAR_BIT to types.h.
6385 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6387 * docs/grub.texi: Document more user commands.
6389 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6391 * docs/grub.texi: Document menuentry --id option.
6393 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
6395 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
6397 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6399 Unify file copying setup across different install scripts. Add
6400 options for performing partial install.
6402 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6403 2013-04-04 Peter Jones <pjones@redhat.com>
6405 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
6407 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6409 Use TSC as a possible time source on i386-ieee1275.
6411 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6413 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
6416 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6418 * util/grub-setup.c (setup): Handle some corner cases.
6420 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6422 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
6424 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6426 * grub-core/commands/verify.c: Save verified file to avoid it being
6427 tampered with after verification was done.
6429 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6431 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
6432 reported width by one to compensate for curesor algorithm problem.
6434 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6436 Fix screen corruption in menu entry editor and simplify the code
6439 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
6441 * util/grub-mount.c (fuse_init): Return error if fuse_main
6444 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
6446 * include/grub/elf.h: Add missing ARM relocation codes and fix
6449 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6451 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
6453 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6454 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6456 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
6457 into account when calculating radius.
6459 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6461 * grub-core/gfxmenu/view.c: Fix off-by-one error.
6463 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6465 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
6467 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
6469 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
6470 missing closing bracket.
6472 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
6474 * INSTALL: Mention xorriso requirement.
6476 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
6478 * grub-core/commands/verify.c: Fix hash algorithms values for
6479 the first three hashes - they start with 1, not with 0.
6481 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6483 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
6484 Try terminating EFI services several times due to quirks in some
6487 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
6489 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
6490 skipping Event, Device, Processor, PowerRes, ThermalZone, and
6491 BankField extended opcodes.
6492 (get_sleep_type): Add minimal scope handling (just enough to
6493 handle setting the scope to the root path).
6494 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
6495 * include/grub/acpi.h: Add enumeration values for Event, Device,
6496 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
6498 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
6500 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
6503 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6505 * grub-core/disk/ahci.c: Give more time for AHCI request.
6507 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6509 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
6512 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6514 Replace the region at 0 from coreboot tables to available in BSD
6517 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6519 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
6522 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6524 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
6527 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6529 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
6530 handling of multi-device filesystems.
6532 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6534 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
6537 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6539 Add new 'proc' filesystem framework and put luks_script into it.
6541 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6543 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
6546 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6548 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
6550 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6552 Add ability to generate newc additions on runtime.
6554 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6556 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
6559 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
6561 * po/POTFILES.in: Regenerate.
6563 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6565 * grub-core/commands/verify.c (hashes): Add several hashes
6568 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6570 Slight improve in USB-related boot-time checkpoints.
6572 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6574 * grub-core/commands/boottime.c: Fix copyright header.
6576 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6578 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
6579 coreboot tables content. Support for cbmemc.
6581 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6583 Fix a conflict between ports structures with 2 controllers of
6586 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6588 * include/grub/boottime.h: Add missing file.
6590 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6592 Initialize USB ports in parallel to speed-up boot.
6594 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6596 Fix USB devices not being detected when requested
6597 due to delayed attach.
6599 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6601 Implement boot time analysis framework.
6603 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6605 Remove get_endpoint_descriptor and change all functions needing
6606 descriptor to just receive it as argument rather than endpoint
6609 2013-03-19 Aleš Nesrsta <starous@volny.cz>
6611 Better estimate the maximum USB transfer size.
6613 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
6615 Resend a packet if we got the wrong buffer in status.
6617 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6619 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
6620 multiplication rather than division.
6622 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6624 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
6627 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6629 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
6630 operations to have intended shifts and not divisions.
6632 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6634 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
6635 intended shifts rather than division.
6637 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6639 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
6640 computation for some years before epoch. Avode confusing division
6643 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6645 * grub-core/video/i386/pc/vbe.c
6646 (grub_video_vbe_print_adapter_specific_info): Replace division by
6649 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6651 Adjust types in gdb module to have intended unsigned shifts rather than
6654 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6656 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
6657 maximum size is 4G - 1 on hfs
6659 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6661 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
6663 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6665 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
6668 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
6670 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
6671 causing gcc error with gcc 4.7.1.
6673 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
6675 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
6676 dereference null pointer. While the code is technically correct, gcc
6677 may eliminate a null check if pointer is already dereferenced.
6679 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
6681 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
6683 * grub-core/normal/term.c (read_terminal_list): Likewise.
6685 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
6687 Lift up core size limits on some platforms. Fix potential memory
6688 corruption with big core on small memory systems. Document remaining
6691 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6693 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
6696 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6698 Remove all trampoline support. Add -Wtrampolines when
6699 present. Remove symbols used for trampolines to make
6700 link fail if trampolines are present.
6702 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6704 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
6705 append out of its parent.
6707 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6709 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
6712 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6714 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
6715 all vars to a macro. All users updated.
6717 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6719 * grub-core/disk/ieee1275/nand.c: Fix compilation on
6722 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6724 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
6726 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6728 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
6730 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6732 Move to more hookless approach in IEEE1275 devices handling.
6734 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6736 * grub-core/kern/term.c (grub_term_normal_color),
6737 (grub_term_highlight_color): Add back lost defaults.
6739 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6741 Make elfload not use hooks. Opt for flags and iterators instead.
6743 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6745 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
6746 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
6748 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6750 * grub-core/script/execute.c (gettext_append): Remove nested functions.
6752 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6754 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
6755 hook pass-through parameter. All users updated and unnested.
6757 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6759 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
6762 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6764 * grub-core/fs/hfs.c: Remove nested functions.
6766 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6768 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
6769 the context through.
6770 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
6772 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6774 * util/grub-editenv.c (list_variables): Move print_var out of its
6777 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6779 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
6782 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6784 * grub-core/gentrigtables.c: Make tables const.
6786 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6788 Remove nested functions from videoinfo iterators.
6790 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6792 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
6793 for 64-bit platforms.
6795 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6797 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
6798 a FOR_CHILDREN macro.
6800 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6802 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
6803 platform from firmware path.
6805 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6807 Enable linux16 on non-BIOS systems for i.a. memtest.
6809 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
6811 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
6813 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6815 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
6816 Fix end of table condition.
6818 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6820 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
6823 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6825 * grub-core/fs/jfs.c: Remove nested functions.
6827 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6829 * grub-core/fs/minix.c: Remove nested functions.
6831 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6833 * grub-core/fs/iso9660.c: Remove nested functions.
6835 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6837 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
6840 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6842 * util/grub-fstest.c: Remove nested functions.
6844 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6846 * grub-core/loader/machoXX.c: Remove nested functions.
6848 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
6850 Remove nested functions from disk and file read hooks.
6852 * include/grub/disk.h (grub_disk_read_hook_t): New type.
6853 (struct grub_disk): Add read_hook_data member.
6854 * include/grub/file.h (struct grub_file): Likewise.
6855 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
6860 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
6862 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
6863 Fix off by one error in enumerating extended partitions.
6865 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
6867 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
6868 memory leak if device name is not found.
6870 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6872 * grub-core/normal/menu_entry.c (update_screen): remove
6873 unused variable `off' which caused scroll down arrow to be always shown.
6875 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6877 * grub-core/normal/menu_entry.c (insert_string): fix off by one
6878 access to unallocated memory.
6880 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6882 * Makefile.util.def: Add partmap/msdos.c to common library.
6883 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
6884 * grub-core/disk/ldm.c: Check for existence of
6885 GRUB_PC_PARTITION_TYPE_LDM.
6887 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6889 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
6890 sizes and display sector size.
6892 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6894 Implement new command cmosdump.
6896 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6898 Support Openfirmware disks with non-512B sectors.
6900 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
6902 * (grub_ofdisk_get_block_size): New function.
6903 * (grub_ofdisk_prepare): Use the correct block size.
6904 * (grub_ofdisk_read): Likewise.
6905 * (grub_ofdisk_write): Likewise.
6906 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
6909 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6911 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
6913 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6915 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
6918 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6920 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
6923 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6925 Implement USBDebug (full USB stack variant).
6927 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6929 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
6930 unless they have unexpected values.
6932 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6934 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
6937 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6939 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
6940 zero-out of port structure.
6942 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6944 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
6945 of extended attributes.
6947 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
6949 * util/grub-install.in: change misleading comment about
6952 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6954 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
6955 when menu highlight color isn't set.
6957 2013-01-27 C. Masloch <pushbx@38.de>
6959 Improve FreeDOS direct loading support compatibility.
6961 * include/grub/i386/relocator.h (grub_relocator16_state):
6963 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
6965 (grub_relocator16_boot): Handle %ebp.
6966 * grub-core/lib/i386/relocator16.S: Likewise.
6967 * grub-core/loader/i386/pc/freedos.c:
6968 Load BPB to pass kernel which partition to load from.
6969 Check that kernel file is not too large.
6970 Set register dl to BIOS unit number as well.
6972 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
6974 * util/grub-reboot.in (usage): Document the need for
6976 * util/grub-set-default.in (usage): Likewise.
6977 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
6979 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6981 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
6982 than defining WORDS_BIGENDIAN manually.
6984 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6986 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
6989 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
6991 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
6993 (blit_comb: add_device_width): Likewise.
6995 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
6997 Remove nested functions from USB iterators.
6999 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7000 (grub_usb_controller_iterate_hook_t): Likewise.
7001 (grub_usb_iterate): Add hook_data argument.
7002 (grub_usb_controller_iterate): Likewise.
7003 (struct grub_usb_controller_dev.iterate): Likewise.
7005 Update all implementations and callers.
7007 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7009 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7010 margin when not needed.
7012 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7014 Make color variables global instead of it being per-terminal.
7016 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7018 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7021 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7023 Fix powerpc and sparc64 build failures caused by un-nesting memory
7026 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7028 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7029 parameter declarations.
7031 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7033 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7035 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7037 Improve spkmomdem reliability by adding a separator between bytes.
7039 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7041 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7042 an Acer registration utility with several sightings in the wild.
7043 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7045 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7047 Remove nested functions from filesystem directory iterators.
7049 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7050 (struct grub_fs.dir): Add hook_data argument.
7052 Update all implementations and callers.
7054 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7056 * docs/grub.texi (Multi-boot manual config): Fix typo for
7059 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7061 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7062 until after its use in generate_image.
7064 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7066 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7067 initrd size to addr_min, since the initrd will be allocated after
7070 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7072 * conf/Makefile.common: Fix autogen rules to pass definition
7073 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7075 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7077 * include/grub/elf.h: Update ARM definitions based on binutils.
7079 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7081 Split long USB transfers into short ones.
7083 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7085 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7086 is interrupted by ESC.
7088 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7090 * util/grub-script-check.c (main): Uniform the error message.
7092 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7094 Remove nested functions from ELF iterators.
7096 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7098 Remove nested functions from device iterators.
7100 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7101 (grub_arc_iterate_devs): Add hook_data argument.
7102 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7103 (struct grub_ata_dev.iterate): Add hook_data argument.
7104 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7105 (grub_device_iterate): Add hook_data argument.
7106 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7107 (struct grub_disk_dev.iterate): Add hook_data argument.
7108 (grub_disk_dev_iterate): Likewise.
7109 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7111 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7113 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7115 (struct grub_partition_map.iterate): Add hook_data argument.
7116 (grub_partition_iterate): Likewise.
7117 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7118 (struct grub_scsi_dev.iterate): Add hook_data argument.
7122 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7124 Fix typos for "developer" and "development".
7126 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7128 Add license header to spkmodem-recv.c.
7130 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7132 Rewrite spkmodem to use PIT for timing. Double the speed.
7134 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7136 Add new command pcidump.
7138 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7140 New terminal outputs using serial: morse and spkmodem.
7142 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7144 Improve bidi handling in entry editor.
7146 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7148 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7149 argument to prevent name collision.
7151 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7153 Remove nested functions from script reading and parsing.
7155 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7156 getline_data argument, passed to getline.
7157 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7158 getline_data argument, passed to grub_parser_split_cmdline.
7159 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7160 lexerstate->getline_data to lexerstate->getline.
7161 (grub_script_lexer_init): Add getline_data argument, saved in
7162 lexerstate->getline_data.
7163 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7164 argument, passed to grub_script_parse.
7165 * grub-core/script/script.c (grub_script_parse): Add getline_data
7166 argument, passed to grub_script_lexer_init.
7167 * include/grub/parser.h (grub_parser_split_cmdline): Update
7168 prototype. Update all callers to pass appropriate getline data.
7169 (struct grub_parser.parse_line): Likewise.
7170 (grub_rescue_parse_line): Likewise.
7171 * include/grub/reader.h (grub_reader_getline_t): Add void *
7173 * include/grub/script_sh.h (struct grub_lexer_param): Add
7174 getline_data member.
7175 (grub_script_parse): Update prototype. Update all callers to pass
7176 appropriate getline data.
7177 (grub_script_lexer_init): Likewise.
7178 (grub_normal_parse_line): Likewise.
7180 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7182 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7183 static instead of nested. Rename to ...
7184 (grub_parser_execute_getline): ... this.
7185 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7187 * grub-core/normal/main.c (read_config_file: getline): Make static
7188 instead of nested. Rename to ...
7189 (read_config_file_getline): ... this.
7190 (grub_normal_read_line): Add unused data argument.
7191 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7192 getline): Make static instead of nested. Rename to ...
7193 (grub_script_execute_sourcecode_getline): ... this.
7194 * util/grub-script-check.c (main: get_config_line): Make static
7197 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7199 Remove nested functions from memory map iterators.
7201 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7202 argument, passed to hook.
7203 * grub-core/kern/i386/coreboot/mmap.c
7204 (grub_linuxbios_table_iterate): Likewise.
7205 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7207 (grub_machine_mmap_iterate): Add hook_data argument.
7208 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7209 Add hook_data argument, passed to hook.
7210 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7212 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7214 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7216 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7218 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7220 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7222 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7223 (grub_machine_mmap_iterate): Likewise.
7224 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7225 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7227 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7228 Remove NESTED_FUNC_ATTR from here and from all users.
7229 (grub_mmap_iterate): Update prototype.
7230 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7231 pass appropriate hook data.
7232 (grub_machine_mmap_iterate): Likewise.
7234 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7235 static instead of nested.
7236 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7238 (lsmmap_hook): ... this.
7239 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7241 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7242 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7243 heap_init): Likewise.
7244 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7246 (mmap_iterate_hook): ... this.
7247 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7249 * grub-core/lib/ieee1275/relocator.c
7250 (grub_relocator_firmware_get_max_events: count): Likewise.
7251 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7253 (grub_relocator_firmware_fill_events_iter): ... this.
7254 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7255 hook): Likewise. Rename to ...
7256 (grub_relocator_alloc_chunk_align_iter): ... this.
7257 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7259 (generate_e820_mmap_iter): ... this.
7260 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7262 (count_hook): ... this.
7263 (grub_linux_boot: hook): Likewise. Rename to ...
7264 (grub_linux_boot_mmap_find): ... this.
7265 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7266 (grub_linux_boot_mmap_fill): ... this.
7267 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7268 hook): Likewise. Rename to ...
7269 (grub_fill_multiboot_mmap_iter): ... this.
7270 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7271 hook): Likewise. Rename to ...
7272 (count_hook): ... this.
7273 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7274 hook): Likewise. Rename to ...
7275 (grub_fill_multiboot_mmap_iter): ... this.
7276 * grub-core/loader/powerpc/ieee1275/linux.c
7277 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7278 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7279 Likewise. Rename to ...
7280 (alloc_phys_choose): ... this.
7281 (determine_phys_base: get_physbase): Likewise.
7282 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7283 find_hook): Likewise.
7284 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7285 (malloc_hook: count_hook): Likewise.
7286 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7287 Likewise. Rename to ...
7288 (lower_hook): ... this.
7289 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7290 (upper_hook): ... this.
7291 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7292 (post64_hook): ... this.
7293 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7294 Likewise. Rename to ...
7295 (lower_hook): ... this.
7296 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7297 (upper_hook): ... this.
7298 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7299 (grub_mmap_iterate: fill_hook): Likewise.
7300 (fill_mask): Pass addr and mask within a single struct.
7301 (grub_cmd_badram: hook): Make static instead of nested. Rename
7303 (badram_iter): ... this.
7304 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7305 (cutmem_iter): ... this.
7307 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7309 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7310 delimit path in strings using quotes.
7311 * util/getroot.c (grub_guess_root_devices): Likewise.
7312 (grub_make_system_path_relative_to_its_root): Likewise.
7313 * util/grub-probe.c (probe): Likewise.
7314 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7315 (xrealpath): Likewise.
7317 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7319 Fix compilation with older compilers.
7321 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7322 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7324 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7325 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7326 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7328 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7329 * include/grub/crypto.h: Add type defines.
7330 * util/import_gcrypth.sed: Remove duplicate type defines.
7332 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7334 New command list_trusted.
7336 * grub-core/commands/verify.c (grub_cmd_list): New function.
7338 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7340 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7343 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7345 Remove nested functions from PCI iterators.
7347 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7348 passed to hook. Update all callers to pass appropriate hook data.
7349 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7350 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7351 Remove NESTED_FUNC_ATTR from here and from all users.
7352 (grub_pci_iterate): Update prototype.
7353 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7354 instead of nested. Rename to ...
7355 (grub_cs5536_find_iter): ... this.
7356 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7357 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7359 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7361 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7363 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7365 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7366 * grub-core/video/radeon_fuloong2e.c
7367 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7368 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7369 find_card): Likewise.
7370 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7373 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7375 * grub-core/commands/verify.c: Mark messages for translating.
7377 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7379 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
7382 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7384 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
7387 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7389 * autogen.sh: Do not try to delete nonexistant files.
7390 * util/import_gcrypth.sed: Add some missing header removals.
7392 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
7394 Clean up dangling references to grub-setup.
7395 Fixes Ubuntu bug #1082045.
7397 * docs/grub.texi (Images): Refer generally to grub-install rather
7398 than directly to grub-setup.
7399 (Installing GRUB using grub-install): Remove direct reference to
7401 (Device map) Likewise.
7402 (Invoking grub-install): Likewise.
7403 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7404 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7405 * util/grub-install.in (usage): Likewise.
7407 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
7408 Apply to grub-bios-setup and grub-sparc64-setup rather than to
7410 * configure.ac: Remove grub_setup output variable.
7412 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
7414 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
7415 grub-setup to grub-sparc64-setup.
7417 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7419 Import gcrypt public-key cryptography and implement signature checking.
7421 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7423 * grub-core/fs/ntfs.c: Ue more appropriate types.
7424 * grub-core/fs/ntfscomp.c: Likewise.
7425 * include/grub/ntfs.h: Likewise.
7427 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7429 Support Apple FAT binaries on non-Apple platforms.
7431 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
7432 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
7434 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
7437 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7439 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
7442 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
7444 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
7445 explicitly zeroing elements.
7446 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
7447 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
7448 of elements in a structure already allocated using grub_zalloc.
7449 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
7451 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
7453 * docs/grub.texi (grub_cpu): New subsection.
7454 (grub_platform): Likewise.
7456 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7458 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
7460 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7462 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
7465 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7467 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
7468 * grub-core/fs/ntfscomp.c: Likewise.
7469 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
7470 (grub_ntfs_comp): Likewise.
7472 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7474 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
7476 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
7477 of groups_per_block. All users updated.
7479 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7481 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
7482 grub_error properly.
7483 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
7484 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
7486 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7488 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
7489 always in /boot/zfs.
7490 Reported by: Yuta Satoh.
7492 2013-01-03 Yuta Satoh <nigoro>
7494 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
7497 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7499 * configure.ac: Extend -Wno-trampolines to host.
7501 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7503 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
7506 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
7508 * docs/grub.texi (Invoking grub-mkrelpath): New section.
7509 (Invoking grub-script-check): Likewise.
7511 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
7513 * docs/grub.texi (Invoking grub-mount): New section.
7514 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
7516 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7518 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
7519 test failures, so that a failing unit test correctly causes 'make
7522 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7524 Fix failing printf test.
7526 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
7527 '$' in the correct order when collecting type information.
7529 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7531 * docs/grub.texi (configfile): Explain environment variable
7533 (source): New section.
7534 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
7536 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
7538 Remove several trivially-unnecessary uses of nested functions.
7540 * grub-core/commands/i386/pc/sendkey.c
7541 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
7543 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
7545 (legacy_file_getline): ... this.
7546 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
7548 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
7549 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
7551 (probe_dummy_iter): ... this.
7552 * grub-core/kern/i386/coreboot/mmap.c
7553 (grub_linuxbios_table_iterate: check_signature): Likewise.
7554 * grub-core/kern/parser.c (grub_parser_split_cmdline:
7555 check_varstate): Likewise. Mark inline.
7556 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
7557 an additional parameter.
7558 (find_long: fnd_long): Likewise. Pass two additional parameters.
7559 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
7560 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
7561 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
7562 Likewise. Rename to ...
7563 (grub_cmos_find_port_iter): ... this.
7564 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
7566 (find_rtc_iter): ... this.
7568 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
7569 function directly into the function body, since it is only called
7572 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
7574 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
7575 __attribute__ ((unused)).
7576 * grub-core/video/bochs.c (find_card): Likewise.
7577 * grub-core/video/cirrus.c (find_card): Likewise.
7578 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
7579 * grub-core/video/sis315pro.c (find_card): Likewise.
7580 * grub-core/video/sm712.c (find_card): Likewise.
7582 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7584 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
7585 Fixes Savannah bug #37821.
7587 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7589 Apply program name transformations at build-time rather than at
7590 run-time. Fixes Debian bug #696465.
7592 * acinclude.m4 (grub_TRANSFORM): New macro.
7593 * configure.ac: Create output variables with transformed names for
7595 * util/bash-completion.d/grub-completion.bash.in: Use
7596 pre-transformed variables for program names.
7597 * util/grub-install.in: Likewise.
7598 * util/grub-kbdcomp.in: Likewise.
7599 * util/grub-mkconfig.in: Likewise.
7600 * util/grub-mkconfig_lib.in: Likewise.
7601 * util/grub-mknetdir.in: Likewise.
7602 * util/grub-mkrescue.in: Likewise.
7603 * util/grub-mkstandalone.in: Likewise.
7604 * util/grub-reboot.in: Likewise.
7605 * util/grub-set-default.in: Likewise.
7606 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7607 * tests/util/grub-shell-tester.in: Remove unused assignment.
7608 * tests/util/grub-shell.in: Likewise.
7609 * util/grub.d/00_header.in: Likewise.
7611 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7613 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
7615 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
7617 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
7619 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
7621 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
7622 Reported by: Eriks Latosheks <foresterlv>.
7624 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7626 * docs/grub.texi (Network): Update instructions on generating netboot
7629 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7631 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
7632 around device name if necessarry.
7634 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7636 * util/grub-install.in: Follow the symbolic link parameter added
7637 to the file command.
7639 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
7641 * util/grub-install.in: Remove stale TODO.
7643 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7645 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
7646 dynamic allocation for the bootpath buffer.
7648 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
7650 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
7653 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7655 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
7656 argument rather than font name. All users updated.
7657 (grub_gfxterm_set_window): Likewise.
7659 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
7661 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
7664 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7666 * util/getroot.c (convert_system_partition_to_system_disk): Support
7669 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7671 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
7672 infinite loop on corrupted FS.
7674 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
7676 Fix big-endian mtime.
7678 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
7679 together sec and usec.
7680 (grub_ufs_dir): Use correct byteswapping for UFS time.
7682 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
7684 Support big-endian UFS1.
7686 * Makefile.util.def (libgrubmods): Add ufs_be.c
7687 * grub-core/Makefile.core.def (ufs1_be): New module.
7688 * grub-core/fs/ufs_be.c: New file.
7689 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
7692 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
7694 * include/grub/types.h: Fix functionality unaffecting typo in
7695 GRUB_TARGET_WORDSIZE conditional macro.
7697 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7699 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
7701 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
7703 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
7704 that /netbsd appears first (when it exists).
7706 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
7708 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
7709 Fixes Savannah bug #37558.
7711 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
7713 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
7714 description of extract_entries_configfile.
7716 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
7718 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
7720 (grub_cmd_linux): Likewise.
7721 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
7722 preferred_lifetime. Update all users.
7724 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
7726 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
7727 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
7729 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
7731 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
7732 errors from grub-probe to /dev/null, not stdout.
7734 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
7736 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
7739 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
7741 * util/grub-install.in: Make the error message if $source_dir
7742 doesn't exist more useful.
7744 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
7746 Fix grub-emu build on FreeBSD.
7748 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
7749 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
7751 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
7752 implementation is currently Linux-specific.
7753 * util/getroot.c (exec_pipe): Define only on Linux or when either
7754 libzfs or libnvpair is unavailable.
7755 (find_root_devices_from_poolname): Remove unused path variable.
7757 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
7759 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
7760 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
7761 should fit before end == 63.
7763 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
7765 * util/grub-setup.c (write_rootdev): Remove unused core_img
7766 parameter. Update all callers.
7767 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
7768 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
7771 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7773 * util/grub-mkconfig_lib.in (grub_tab): New variable.
7774 (grub_add_tab): New function.
7775 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
7776 * util/grub.d/10_illumos.in: Likewise.
7777 * util/grub.d/10_kfreebsd.in: Likewise.
7778 * util/grub.d/10_linux.in: Likewise.
7779 * util/grub.d/10_netbsd.in: Likewise.
7780 * util/grub.d/10_windows.in: Likewise.
7781 * util/grub.d/10_xnu.in: Likewise.
7782 * util/grub.d/20_linux_xen.in: Likewise.
7783 * util/grub.d/30_os-prober.in: Likewise.
7785 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7787 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7788 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
7789 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
7790 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
7791 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
7793 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
7794 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
7796 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7798 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
7800 Reported by: BURETTE, Bernard.
7802 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
7804 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
7807 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
7809 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
7810 IEEE1275 machines. Fixes powerpc-emu compilation.
7811 * include/grub/terminfo.h: Likewise.
7813 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7815 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
7817 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
7819 (efiemu_set_variable): Make vendor_guid a const pointer.
7821 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7823 Don't require grub-mkconfig_lib to generate manpages for programs.
7825 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
7826 dependencies, don't add grub-mkconfig_lib.
7827 (program): Pass empty adddeps.
7828 (script): Pass grub-mkconfig_lib as adddeps.
7830 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7832 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
7833 * util/getroot.c (grub_find_device): Likewise.
7834 (get_mdadm_uuid): Likewise.
7835 (grub_util_is_imsm): Likewise.
7836 (grub_util_pull_device): Likewise.
7837 * util/grub-probe.c (probe): Likewise.
7839 2012-09-10 Benoit Gschwind <gschwind>
7841 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
7842 (devs): Add devpath_8.
7844 2012-09-08 Peter Jones <pjones@redhat.com>
7846 * grub-core/Makefile.core.def (efifwsetup): New module.
7847 * grub-core/commands/efi/efifwsetup.c: New file.
7848 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
7849 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
7851 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
7853 2012-09-05 Jiri Slaby <jslaby@suse.cz>
7855 * configure.ac: Add SuSe path.
7857 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
7861 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
7863 * util/import_gcry.py: Sort cipher_files, to make build system
7864 generation more deterministic.
7866 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7868 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
7869 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
7870 (grub_set_datetime): Likewise.
7872 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7874 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
7877 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7879 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
7881 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7883 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
7885 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7887 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
7888 required for checkouts from bzr, but it may be useful for users or
7889 distributors wishing to update translations against a tarball
7890 distribution, and it can be helpful for the tarball to be a superset
7893 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7895 * Makefile.am (EXTRA_DIST): Add
7896 grub-core/tests/boot/linux.init-mips.S,
7897 grub-core/tests/boot/linux.init-ppc.S, and
7898 grub-core/tests/boot/linux-ppc.cfg.
7900 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7902 * grub-core/mmap/mips/loongson: Remove empty directory.
7904 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7906 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
7909 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7911 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
7914 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
7916 * configure.ac: Strengthen the test for working -nostdinc -isystem.
7918 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
7920 * po/POTFILES.in: Regenerated.
7922 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
7924 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
7925 (NetBSD): New subsection.
7927 2012-07-22 Ales Nesrsta <starous@volny.cz>
7929 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
7930 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
7932 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7934 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
7935 * util/grub.d/10_hurd.in: Add missing quoting.
7936 * util/grub.d/10_illumos.in: Likewise.
7937 * util/grub.d/10_kfreebsd.in: Likewise.
7938 * util/grub.d/10_linux.in: Likewise.
7939 * util/grub.d/20_linux_xen.in: Likewise.
7941 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7943 New command `lsefi'.
7945 * grub-core/Makefile.core.def (lsefi): New module.
7946 * grub-core/commands/efi/lsefi.c: New file.
7947 * include/grub/efi/api.h: Add more GUIDs.
7949 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7951 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
7952 (grub_bsd_elf32_hook): Likewise.
7953 (grub_bsd_elf64_size_hook): Likewise.
7954 (grub_bsd_elf64_hook): Likewise.
7955 (grub_bsd_load_elf): Likewise.
7957 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7959 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
7960 if hash function is unavailable.
7961 (dec_stream_header): Likewise.
7963 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7965 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
7968 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7970 Fix coreboot compilation.
7972 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
7973 (grub_vga_text_init_real): ... this.
7974 (grub_vga_text_fini): Rename to ...
7975 (grub_vga_text_fini_real): ... this.
7977 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
7979 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
7981 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7983 * grub-core/lib/legacy_parse.c: Support clear and testload.
7985 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7987 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
7989 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7991 * grub-core/fs/ext2.c: Experimental support for 64-bit.
7993 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7995 * grub-core/net/tftp.c (ack): Fix endianness problem.
7996 (tftp_receive): Likewise.
7997 Reported by: Michael Davidsaver.
7999 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8001 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8003 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8005 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8006 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8007 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8009 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8011 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8013 Reported by: Stuart Hayes.
8015 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8017 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8019 * grub-core/Makefile.core.def (mda_text): New module.
8020 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8021 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8022 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8023 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8025 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8026 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8027 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8029 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8031 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8033 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8035 * grub-core/term/i386/vga_common.c: Removed.
8036 * include/grub/i386/vga_common.h: Likewise.
8037 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8038 (grub_vga_cr_bw_read): Likewise.
8039 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8040 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8041 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8042 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8043 grub_vga_cr_read/grub_vga_cr_write.
8044 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8046 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8048 * configure.ac: Bump version to 2.00.
8049 * grub-core/normal/main.c (features): Add feature_200_final.
8051 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8052 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8054 * NEWS: Fix unclarity and language mistakes.
8056 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8058 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8059 additional size to 3 pages.
8060 Reported by: Stuart Hayes.
8062 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8064 * NEWS: Add 2.00 entry.
8066 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8068 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8069 put explicit "/" for empty path.
8070 (wildcard_expand): Improve dprintf.
8072 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8074 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8075 it's equal to currnode. This can happen with "" symlink.
8077 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8079 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8080 echo shell command by printf command.
8082 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8084 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8085 the value returned by firmware is the maximal position, not diumension.
8086 (grub_terminfo_output_state): Use a more sane fallback.
8088 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8090 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8092 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8094 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8095 frequency to 150 MHz.
8097 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8101 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8103 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8105 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8107 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8109 Handle slash in HFS label.
8111 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8112 (grub_hfs_dir): Tanslate slash.
8113 (grub_hfs_label): Don't translate slash.
8115 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8117 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8118 network protocol listing since it introduces problematic dependency on
8121 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8123 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8125 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8127 Init video early on yeeloong to avoid being rebooted by watchdog.
8129 * grub-core/Makefile.am (gensm712): New target.
8130 (sm712_start.S): Likewise.
8131 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8132 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8133 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8135 * include/grub/vga.h: Move registry definitions to...
8136 * include/grub/vgaregs.h: ... here.
8138 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8140 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8143 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8145 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8146 platforms with firmware disk drivers in the core.
8148 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8150 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8151 informative verbose message.
8152 (read_lv): Handle 64-bit segment size.
8154 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8156 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8158 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8160 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8161 character but still remove trainling spaces.
8162 (grub_fat_label): Ignore archive flag.
8164 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8166 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8167 cast between linux_kernel_header and linux_kernel_params.
8169 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8171 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8173 (grub_raid6_recover_func_t): Likewise.
8174 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8175 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8177 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8179 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8181 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8185 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8186 [__NetBSD__]: Add explicit cast before bitshift.
8188 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8190 * configure.ac: Bump to 2.00~rc1.
8192 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8194 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8197 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8198 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8200 * docs/grub.texi: Fix search syntax.
8201 (Multi-boot manual config): Put msdos rather than GPT example.
8202 Grammar corrections.
8204 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8206 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8208 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8210 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8212 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8214 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8215 message on double free. Put the value of magic in case of mismatch.
8217 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8219 Speed-up video on yeeloong.
8221 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8223 (grub_video_sm712_video_fini): Unmap cached_ptr.
8224 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8225 (grub_video_sm712_set_active_render_target): Removed.
8226 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8227 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8230 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8232 Avoid flushing the same line multiple times on loongson.
8234 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8235 Step in 32 bytes and not 1 byte.
8236 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8239 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8241 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8244 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8246 Implement flow control for http.
8248 * grub-core/net/http.c (parse_line): Handle response 206.
8249 (http_receive): Stall if too many packets are in the queue.
8250 (http_establish): Fix range header.
8251 (http_seek): Fix double free.
8252 (http_close): Likewise.
8253 (http_packets_pulled): New function.
8254 (grub_http_protocol): Set http_seek
8255 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8256 (ack_real): Set window depending on i_stall.
8257 (grub_net_send_tcp_packet): Likewise.
8258 (grub_net_tcp_stall): New function.
8259 (grub_net_tcp_unstall): Likewise.
8260 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8261 (grub_net_tcp_unstall): Likewise.
8263 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8265 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8267 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8269 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8271 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8273 * tests/util/grub-shell.in: Fix a typo.
8275 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8277 Implement flow control for tftp.
8279 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8280 packets but stop only if stop condition is satisfied.
8281 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8282 `stall' instead of `eof' as stop condition.
8283 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8284 (http_err): Likewise.
8285 * grub-core/net/tftp.c (ack): Replace the first argument with data
8287 (tftp_receive): Stall if too many packets are in wait queue.
8288 (tftp_packets_pulled): New function.
8289 (grub_tftp_protocol): Set packets_pulled.
8290 * include/grub/net.h (grub_net_packets): New field count.
8291 (grub_net_put_packet): Increment count.
8292 (grub_net_remove_packet): Likewise.
8293 (grub_net_app_protocol): New field `packets_pulled'.
8294 (grub_net): New field `stall'.
8296 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8298 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8299 sync part to handle them.
8301 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8303 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8304 * grub-core/net/drivers/ieee1275/ofnet.c
8305 (grub_ieee1275_net_config_real): Likewise.
8307 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8309 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8310 the direct route for server/gateway.
8312 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8314 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8315 IP address to server name since we may not hame the DNS.
8317 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8319 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8320 freeing random buffer on failure.
8321 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8323 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8325 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8327 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8329 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8331 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8332 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8333 Handle malloc error correctly.
8335 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8337 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8340 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8342 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8345 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8347 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8348 none is explicitly specified.
8350 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8352 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8355 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8357 Respect netmask from bootp/dhcp.
8359 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8360 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8361 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8363 (grub_net_add_ipv4_local): ... this.
8364 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8365 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8366 (grub_net_add_ipv4_local): New proto.
8368 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8370 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8371 determining EFI memory map size.
8373 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8375 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8377 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8379 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
8380 when looking for partition separator.
8382 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8384 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8387 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8389 Restructure FAT driver to avoid hook in label reading as it hits a
8392 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
8393 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
8394 (grub_fat_iterate_dir): Split into ...
8395 (grub_fat_iterate_init): ... this, ...
8396 (grub_fat_iterate_fini): ... this, ...
8397 (grub_fat_iterate_dir_next): ... and this. All users updated.
8399 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8401 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8402 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
8403 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8404 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
8405 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
8406 New fields last_key and last_key_time.
8407 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
8408 extended key-esc into extended key-extended key.
8410 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8412 Avoid unnecessary memcpy of whole video buffer.
8414 * grub-core/video/fb/video_fb.c (dirty): New struct.
8415 (framebuffer): Add members current_dirty and previous_dirty.
8416 (dirty): New function.
8417 (grub_video_fb_fill_rect): Update dirty.
8418 (common_blitter): Likewise.
8419 (grub_video_fb_scroll): Likewise.
8420 (doublebuf_blit_update_screen): Copy only dirty part.
8421 (doublebuf_pageflipping_update_screen): Likewise.
8422 (grub_video_fb_doublebuf_blit_init): Init dirty.
8423 (doublebuf_pageflipping_init): Likewise.
8424 (grub_video_fb_setup): Likewise.
8426 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8428 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
8431 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8433 Fix wildcard regexp dot and other special characters handling.
8434 Reported by: Robert Mabee.
8436 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
8437 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
8438 (split_path): Trigger expansion on '?'.
8439 (unescape): New function.
8440 (wildcard_expand): Unescape parts copied without globbing.
8441 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
8442 (grub_script_arglist_to_argv): Don't unescape expansions.
8444 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8446 * include/grub/net.h (grub_net_card): New member txbufsize.
8447 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
8448 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
8449 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
8450 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
8452 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
8453 compatible property to check for macs. Set
8454 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
8455 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
8456 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
8457 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
8458 (send_card_buffer): Use txbuf.
8459 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
8460 nested function out of the parent while on it.
8462 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8464 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
8466 (grub_ieee1275_net_config_real): Fix config pointer.
8468 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8470 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
8471 filename parsing to non-block devices.
8473 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8475 * grub-core/kern/device.c (grub_device_open): Remove dead code.
8477 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8479 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
8482 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8484 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
8485 UUID search command even if hints probing failed.
8487 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8489 * po/POTFILES.in: Regenerated.
8491 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
8493 Speed-up video on fuloong.
8495 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
8497 (grub_pci_device_unmap_range): Handle non-cached address.
8498 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
8500 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
8501 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
8502 (grub_video_sis315pro_set_active_render_target): Removed.
8503 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
8504 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8505 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
8507 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
8510 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
8512 * docs/grub.texi (Multi-boot manual config): New section.
8514 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8516 Avoid slow read-back from VRAM.
8518 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
8520 * grub-core/video/fb/video_fb.c
8521 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
8522 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
8523 (front_target): Remove front_target. Add pages.
8524 (grub_video_fb_init): Skip setting front_pages.
8525 (grub_video_fb_fini): Likewise.
8526 (doublebuf_blit_update_screen): Use pages.
8527 (grub_video_fb_doublebuf_blit_init): Likewise.
8528 (doublebuf_pageflipping_init): Allocate offscreen buffer.
8529 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
8530 (grub_video_fb_setup): Prefer doublebuffing.
8532 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8534 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
8537 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8541 * tests/util/grub-shell.in: Handle loongson.
8542 * tests/partmap_test.in: Add loongson to the list of platform using ATA
8544 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
8545 Reboot instead of shutdown if REBOOT is defined.
8547 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8549 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
8550 sized ports since unlike on real hardware qemu supports only 32-bit
8553 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8555 * Makefile.util.def (grub-mkrescue): Enable on loongson.
8556 * util/grub-mkrescue.in: Handle loongson.
8558 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
8560 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
8561 Set is_part appropriately.
8562 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
8563 names. Canonicalize partition without full disk.
8565 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8567 Revert usb-quiesce since it's wrong.
8569 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
8570 (grub_ofdisk_init): Don't do quiesce.
8572 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8574 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
8575 PowerMac workaround to Xserves as well.
8576 Information supplied by: Benjamin Herrenschmidt.
8578 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8580 Don't assume that beginning address is also the entry point on ppc.
8582 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
8583 (grub_linux_boot): Use linux_entry.
8584 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
8585 (grub_linux_load64): Likewise.
8587 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8589 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
8591 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8593 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
8594 needlessly lose the console.
8596 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8598 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
8601 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
8603 Remove non-functional EFI grub_get_rtc. Put a better fatal message
8604 than current grub_get_rtc() not implemented when booted with
8605 coreboot without TSC.
8607 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
8608 Add machine/time.h to kernel headers on loongson.
8609 * grub-core/Makefile.core.def (kernel): Remove
8610 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
8611 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
8612 (grub_get_rtc): Likewise.
8613 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
8614 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
8615 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
8616 * grub-core/kern/i386/tsc.c (grub_tsc_init)
8617 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
8618 rather than installing known non-working time source.
8619 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
8620 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
8621 * include/grub/time.h: Don't include machine/time.h.
8622 * include/grub/efi/time.h: Removed.
8623 * include/grub/i386/efi/time.h: Likewise.
8624 * include/grub/i386/ieee1275/time.h: Likewise.
8625 * include/grub/powerpc/ieee1275/time.h: Likewise.
8626 * include/grub/sparc64/ieee1275/time.h: Likewise.
8627 * include/grub/x86_64/efi/time.h: Likewise.
8629 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
8631 Remove dot on i and j when combining with above diacritics.
8633 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
8635 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
8636 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
8637 with dotless variants when any combining above is present.
8639 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8641 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
8642 text and not binary.
8644 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8646 Stop polling as soon as we have the packet we were waiting for.
8648 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
8650 * grub-core/net/arp.c (have_pending): New var.
8651 (pending_req): Likewise.
8652 (grub_net_arp_send_request): Fill pending_req and use have_pending as
8654 (grub_net_arp_receive): Set have_pending.
8655 * grub-core/net/dns.c (recv_data): New field stop.
8656 (recv_hook): Set stop.
8657 (grub_net_dns_lookup): Init stop and use as stop condition.
8658 * grub-core/net/http.c (http_establish): Use headers_recv as stop
8660 * grub-core/net/net.c (grub_net_poll_cards): New argument
8661 stop_condition. Stop when it goes true.
8662 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
8664 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
8666 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8668 Keep TX and RX buffers on EFI rather than always allocate new ones.
8670 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
8671 card. All users updated.
8672 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
8673 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
8674 (get_card_packet): Likewise.
8675 (grub_efinet_findcards): Init new fields.
8677 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8679 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
8680 compilation error on sparc64.
8682 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8684 Use ITC on IA64 rather than broken routine based on daytime.
8686 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
8688 (grub_get_rtc) [__ia64__]: Likewise.
8689 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
8690 (get_itc): New function.
8691 (grub_rtc_get_time_ms): Likewise.
8692 (grub_machine_init): Calibrate ITC.
8693 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
8694 Keep only on non-ia64. Don't export since it's broken and used only
8695 if TSC is unavailable.
8697 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8699 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
8701 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
8702 Skip if parent is unused.
8704 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8706 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
8708 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8710 Fix wildcard escaping.
8712 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
8713 * grub-core/script/execute.c (wildcard_escape): .. to here.
8715 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
8716 * grub-core/script/execute.c (wildcard_unescape): .. to here.
8718 * grub-core/script/execute.c (gettext_append): Always escape.
8719 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
8720 * grub-core/script/yylex.l: Don't cut away the escaping.
8721 * tests/grub_script_echo1.in: Add tests with wildcard.
8723 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8725 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
8726 (ftdi_hw_configure): Likewise.
8727 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
8729 (real_config): Handle 1.5 stop bits.
8730 (pl2303_hw_configure): Likewise.
8732 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8734 * Makefile.am: Add ppc linux bootcheck.
8735 * grub-core/tests/boot/linux-ppc.cfg: New file.
8736 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
8738 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8740 * tests/grub_script_expansion.in: Skip network protocols.
8742 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8744 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
8746 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8748 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
8752 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8754 ESCC serial driver for conducting sautomated tests in qemu.
8755 Not tested on real hardware.
8757 * include/grub/serial.h (grub_serial_port): New field escc_desc.
8758 * grub-core/term/ieee1275/escc.c: New file.
8759 * grub-core/Makefile.core.def (escc): New module.
8761 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8763 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
8765 (serial_hw_fetch): Don't read invalid handle.
8766 (serial_hw_put): Don't write into invalid handle.
8768 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8770 Add a 1.5 stop bits value.
8772 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
8773 * include/grub/serial.h (grub_serial_stop_bits_t): Add
8774 GRUB_SERIAL_STOP_BITS_1_5.
8776 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8778 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
8779 value rather than let it uninited.
8781 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8783 * grub-core/commands/wildcard.c (+check_file): New function.
8784 (wildcard_expand): Don't expand to non-existing files, expand with
8785 suffix and not attempt to expand if not needed.
8787 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8789 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
8790 out of partitions containing other partitions.
8792 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8794 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
8795 on some qemu versions with GRUB.
8797 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
8799 (grub_openbsd_bootarg_pcibios): New struct.
8800 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
8803 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8805 * tests/util/grub-shell.in: Trim firmware output on EFI.
8807 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8809 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
8810 and coreboot since it's already in kernel.
8812 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8814 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
8815 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
8816 to here. New return value start. All users updated.
8817 Recursively scan linear mappings.
8818 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
8820 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
8821 Use grub_util_get_dm_node_linear_info.
8822 * util/getroot.c (convert_system_partition_to_system_disk): Use
8823 grub_util_info rather than grub_dprintf.
8824 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
8826 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8828 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
8830 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
8831 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
8833 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8835 * include/grub/types.h (grub_set_unaligned64): New function.
8836 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
8839 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8841 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
8842 (grub_ofdisk_fini): Quiesce USB devices.
8844 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8846 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
8849 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8851 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
8853 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8855 * grub-core/disk/pata.c (grub_pata_pio_read)
8856 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
8857 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
8859 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8861 Extend automated tests to qemu-mips.
8863 * Makefile.am: reorganise tests and enable qemu-mips.
8864 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
8865 * grub-core/tests/boot/linux.init-mips.S: New file.
8866 * tests/partmap_test.in: Handle ata0 disks.
8867 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
8870 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8872 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
8874 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
8877 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8879 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
8880 (grub_halt): Likewise.
8881 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
8883 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8885 * grub-core/term/serial.c (grub_serial_register)
8886 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
8887 the behaviour in line with x86 platforms.
8889 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8891 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
8892 (grub_ata_strncpy): Likewise.
8893 (grub_ata_identify): Add missing byteswaps.
8895 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8897 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
8899 (screen_read_char): Likewise.
8900 (grub_vga_text_cls): Likewise.
8902 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8904 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
8906 (make_file_path): Likewise.
8908 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8910 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
8912 Tested by: Paulo Flabiano Smorigo.
8913 Crucial information about API supplied by: Coleen <Last name unknown>.
8914 Reviewed by: Coleen <Last name unknown>.
8916 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8918 * util/grub-mkimage.c: Disable -Wcast-align.
8920 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8922 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
8925 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8927 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
8929 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8931 * util/grub-probe.c (escape_of_path): Fix double free.
8933 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8935 * grub-core/commands/videoinfo.c (hook): Show pitch.
8937 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8939 * util/grub.d/20_linux_xen.in: Skip xen-syms.
8941 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8943 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
8944 (probe): Add ieee1275 to OFW devices.
8946 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8948 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
8950 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8952 Handle IBM OFW path.
8954 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
8956 (of_path_of_scsi): Handle vdevice.
8958 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
8960 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
8961 Allocate in multiples of 16 to avoid adding a few bytes free region the
8964 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
8966 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
8967 Allocate in multiples of 16 to avoid adding a few bytes free region the
8969 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
8971 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8973 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
8975 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
8976 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
8978 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
8980 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
8982 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8984 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
8985 resulted in \\ at the end of the line.
8987 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8989 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
8990 (grub_parser_cmdline_state): Likewise.
8991 (grub_parser_split_cmdline): Likewise.
8993 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8995 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
8996 /dev/root and /dev/dm-*.
8998 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9000 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9001 fix partially stale display.
9003 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9005 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9008 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9010 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9011 Fix MBR remapping workaround.
9012 (grub_util_biosdisk_read) [__linux__]: Likewise.
9014 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9016 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9018 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9020 * configure.ac: Bump to beta6.
9022 2012-05-31 Christer Weinigel <christer@weinigel.se>
9024 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9026 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9028 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9029 (grub_cmd_linux): Likewise.
9031 2012-05-31 Christer Weinigel <christer@weinigel.se>
9035 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9036 (GRUB_EHCI_MULT_TWO): Likewise.
9037 (GRUB_EHCI_MULT_THREE): Likewise.
9038 (GRUB_EHCI_CMASK_MASK): New enum value.
9039 (GRUB_EHCI_SMASK_MASK): Likewise.
9040 (GRUB_EHCI_CMASK_OFF): Likewise.
9041 (GRUB_EHCI_SMASK_OFF): Likewise.
9042 (grub_ehci_pci_iter): Enable periodic schedule.
9043 (grub_ehci_parse_notrun): Likewise.
9044 (grub_ehci_restore_hw): Likewise.
9045 (grub_ehci_setup_qh): Set flags for low speed transfers.
9046 (grub_ehci_find_qh): Use periodic list for low speed.
9047 (grub_ehci_setup_transfer): Check periodic queue as well.
9048 (grub_ehci_check_transfer): Likewise.
9049 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9051 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9053 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9056 2012-05-31 Peter Jones <pjones@redhat.com>
9058 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9059 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9060 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9062 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9064 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9065 uninited variable. Allocate at least setup_sects.
9067 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9069 Fix handling of EFI with big memory maps.
9071 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9072 (real_mode_mem): Likewise.
9073 (real_mode_target): Likewise.
9074 (real_mode_pages): Likewise.
9075 (prot_mode_pages): Likewise.
9076 (linux_params): New var.
9077 (linux_cmdline): Likewise.
9078 (free_pages): Don't set real mode variables.
9079 (allocate_pages): Don't allocate real mode memory.
9080 (grub_e820_add_region): Remove the limit.
9081 (grub_linux_boot): Allocate and copy real mode memory.
9082 (grub_linux_unload): Free linux_cmdline.
9083 (grub_cmd_linux): Use temporary storage for parameters.
9084 (grub_cmd_initrd): Likewise.
9085 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9086 (linux_kernel_params): Make it 1K big.
9088 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9090 * Makefile.util.def: Remove -Wno-format.
9091 * grub-core/Makefile.core.def: Likewise.
9093 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9095 * tests/cmp_unit_test.c: Add missing failure message.
9096 * tests/example_unit_test.c: Likewise.
9097 * tests/printf_unit_test.c: Likewise.
9099 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9101 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9102 relaxation of protective MBR requirements.
9104 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9106 * configure.ac: Add condition for COND_HOST_XNU.
9107 * Makefile.util.def (10_xnu): New script.
9108 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9110 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9112 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9115 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9117 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9118 Binary on other platforms stays identical.
9120 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9122 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9125 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9127 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9129 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9131 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9132 rather than defining size_t ourselves to avoid conflict.
9134 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9136 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9137 initialisation to avoid __bzero reference.
9139 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9141 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9143 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9144 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9145 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9146 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9147 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9149 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9151 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9152 * grub-core/kern/misc.c: Likewise.
9153 * grub-core/loader/i386/xnu.c: Likewise.
9154 * include/grub/i386/tsc.h: Likewise.
9155 * include/grub/symbol.h: Likewise.
9157 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9159 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9160 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9163 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9165 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9166 Implement Apple flavour.
9167 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9169 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9171 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9172 (memmove) [__APPLE__]: Likewise.
9173 (memcpy) [__APPLE__]: Likewise.
9174 (memset) [__APPLE__]: Likewise.
9175 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9176 (memmove) [__APPLE__]: Likewise.
9177 (memcpy) [__APPLE__]: Likewise.
9178 (memset) [__APPLE__]: Likewise.
9180 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9182 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9185 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9187 * grub-core/normal/main.c (read_config_file): Provide config_file and
9189 * util/grub.d/41_custom.in: Use config_directoy when available.
9191 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9193 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9194 (grub_bfs_dir): Likewise.
9196 2012-05-27 Peter Jones <pjones@redhat.com>
9198 The old code gives arguments to a printf function which can't work
9199 correctly, and the compiler complains.
9201 * grub-core/tests/example_functional_test.c (example_test): Add
9203 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9204 * include/grub/test.h (grub_test_assert_helper): New declaration.
9205 (grub_test_assert): Use grub_test_assert_helper.
9207 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9209 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9210 (exfctest): ... this to avoid overlong filenames.
9213 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9215 Handle "." and ".." on squashfs.
9217 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9218 Make inode numbers into stack.
9219 (grub_squash_read_symlink): Use stack.
9220 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9221 (make_root_node): Fill stack.
9222 (grub_squash_open): Use stack.
9224 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9226 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9229 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9231 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9232 stderr on test calls.
9234 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9236 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9238 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9240 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9242 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9244 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9247 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9249 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9250 (grub_hfsplus_iterate_dir): Add "." and "..".
9252 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9254 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9255 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9257 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9259 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9260 (find_path): Handle "." and "..".
9262 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9264 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9265 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9266 (grub_affs_iterate_dir): Handle hardlinks.
9268 2012-05-26 Matthew Garrett <mjg@redhat.com>
9270 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9271 (grub_efi_console_fini): Likewise.
9272 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9273 (grub_video_gop_fill_mode_info): Rename to ...
9274 (grub_video_gop_fill_real_mode_info): ... this.
9275 (grub_video_gop_fill_mode_info): New function.
9276 (grub_video_gop_setup): Setup double framebuffer.
9277 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9279 (grub_video_gop_swap_buffers): Copy framebuffer.
9280 (grub_video_gop_fini): Free offscreen buffer.
9281 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9283 (grub_efi_gop_blt_pixel): New struct.
9285 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9287 * gentpl.py: Remove error disabling for objconv.
9289 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9291 * configure.ac: Remove -Wunitialized as it's not available on older
9294 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9296 Fix extent overflow comparator.
9298 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9299 (grub_hfsplus_read_block): Set type.
9300 (grub_hfsplus_cmp_extkey): Compare type.
9302 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9304 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9306 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9308 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9311 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9313 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9314 (dejavu_bold_14.pf2): New target.
9316 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9318 * configure.ac: Fix djvu font detection.
9320 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9322 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9323 ext* instead of ext2.
9325 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9327 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9330 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9332 * docs/grub-dev.texi: Remove dot from .png.
9334 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9336 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9337 protective entry in any slot.
9338 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9339 if protective entry is found in any slot.
9341 Protective entry in non-first slot make no sense but is a widespread
9344 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9346 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9348 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9350 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9352 (grub_reiserfs_open): Don't free root.
9354 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9356 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9357 after freeing for safety.
9359 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9361 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9362 Reported by: Jordan Uggla.
9364 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9366 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9367 actual implementation. Specifically, clarify that the grub menu will
9368 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9371 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9373 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9376 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9378 Remove unjustified hard dependency of normal.mod on gfxterm.
9380 * include/grub/term.h (grub_term_output): New member fullscreen.
9381 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
9382 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
9383 (grub_gfxterm): Set .fullscreen.
9384 * grub-core/normal/menu.c (menu_init): Use fullscreen.
9385 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
9387 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9389 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
9390 mentioning possible problems with non-ASCII (non-compliant) ISOs.
9391 Mention case-insensitive AFFS, SFS and JFS.
9393 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9395 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
9397 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9399 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9402 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9404 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
9405 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
9407 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9409 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
9410 (grub_jfs_mount): Fill caseins.
9411 (grub_jfs_find_file): Respect caseins.
9413 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9415 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
9418 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9420 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
9421 New argument origpath. All users updated.
9423 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9425 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
9426 (read_attr): Ensure that we read start of possibly compressed block.
9428 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9430 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
9431 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
9434 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9436 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
9437 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
9438 (dejavu.pf2): Replace with ...
9439 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
9442 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9444 * util/grub.d/20_linux_xen.in: Add missing line.
9446 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9448 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
9449 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
9450 (grub_utf16_to_utf8): Likewise.
9452 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9454 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
9455 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
9456 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9457 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
9458 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9459 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
9461 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9463 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9466 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9468 * grub-core/fs/udf.c (read_string): Bail out on size=0.
9469 (grub_udf_read_symlink): Handle read_string failure.
9471 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9473 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
9476 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9478 Fix handling of UDF symlinks.
9480 * grub-core/fs/udf.c (read_string): New argument outbuf.
9482 (grub_ufs_read_symlink): Rename to ...
9483 (grub_udf_read_symlink): ... this. All users updated.
9484 Handle symlinks with more than one component.
9486 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9488 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
9489 symlinks. Replace leading colon with a slash.
9491 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9493 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
9496 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9498 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
9499 match in inner node.
9501 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9503 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
9504 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
9505 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
9506 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
9507 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
9508 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
9509 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
9510 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
9511 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
9513 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
9515 Use grub-probe and not cmp to check that disk is empty.
9517 * util/grub-install.in: Use grub-probe for zero-check.
9518 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
9519 (probe): Handle PRINT_ZERO_CHECK.
9520 (argp_parser): Handle -t zero_check.
9522 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
9524 Flush block cache on adding disk to device map.
9526 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
9527 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
9529 (read_device_map): Likewise.
9530 (open_device): Flush on opening.
9532 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9534 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
9535 (handle_symlink): Fix off-by-one error.
9536 Canonicalize the target.
9537 (grub_cpio_dir): Canonicalize the name.
9540 (grub_cpio_open): Canonicalize the name.
9542 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9544 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
9547 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9549 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
9550 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
9552 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9554 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
9555 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
9558 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9560 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
9563 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9565 Fix UFS1 big file support.
9567 * grub-core/fs/ufs.c (INODE): Removed.
9568 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
9570 (INODE_MODE): Simplify.
9571 (grub_ufs_inode): Use uint64_t for size and not int64_t.
9572 (grub_ufs_lookup_symlink): Don't use INODE.
9574 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9576 Fix minixfs with non-power-of-two blocks since it's supported by minix.
9578 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
9579 (grub_minix_data): Replace log_block_size with block_size.
9580 (grub_minix_read_file): Use block_size but avoid 64-bit division.
9581 (grub_minix_mount): Fill block_size.
9583 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9585 * configure.ac: Bump to beta5.
9587 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9589 Fix wrapped HFS+ handling.
9591 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
9592 blocks_start. All users updated.
9593 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
9595 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
9597 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9599 Fix long symlinks on reiserfs.
9601 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
9602 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
9603 (grub_reiserfs_iterate_dir): Save size for non-directories.
9604 (grub_reiserfs_open): Don't reread stat block as we already know the
9606 (grub_reiserfs_read): Split into...
9607 (grub_reiserfs_read_real): ... and ...
9608 (grub_reiserfs_read): ...this.
9610 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9612 Fix non-indexed JFS.
9614 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
9615 (grub_jfs_data): New field namecomponentlen.
9616 (grub_jfs_mount): Fill namecomponentlen.
9617 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
9619 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9621 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
9622 * tests/grub_script_echo1.in: Add tests.
9624 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9626 * util/grub-install.in: Ignore empty devicetree directory.
9628 2012-05-08 Bean <bean123ch@gmail.com>
9630 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
9632 (free_rsm): Free header as well.
9633 (free_old_fragments): Fix memory leak.
9634 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
9635 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
9636 (destroy_pq): Likewise.
9637 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
9639 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9641 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
9642 resulting hash as a precaution.
9644 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9646 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
9647 '_' in variable names.
9648 * grub-core/net/net.c (grub_net_network_level_interface_register):
9651 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9653 Fix AFFS with non-512B blocks.
9655 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
9656 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
9657 (grub_affs_data): Replace blocksize with log_blocksize.
9658 (grub_affs_read_block): Fix non-512B blocks.
9659 (grub_affs_read_symlink): Likewise.
9660 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
9661 (grub_affs_read): Fix non-512B blocks.
9662 (grub_affs_label): Likewise.
9663 (grub_affs_mtime): Likewise.
9664 (grub_affs_mount): Fix block detection routine.
9666 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9668 Add filesystem mtime to AFFS.
9670 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
9671 (aftime2ctime): New function.
9672 (grub_affs_dir): Use aftime2ctime.
9673 (grub_affs_label): Fix return value.
9674 (grub_affs_mtime): New function.
9675 (grub_affs_fs): Add mtime.
9677 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9679 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
9682 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9684 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
9687 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9689 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
9691 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9693 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
9695 (FLAGS_CASE_SENSITIVE): New enum value.
9696 (cache_entry): New struct.
9697 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
9698 cache_size and cache.
9699 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
9700 Add log_blocksize and fshelp_flags.
9701 (grub_sfs_read_extent): Handle non-512 blocks.
9702 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
9703 (grub_sfs_read_file): Handle non-512 blocks.
9704 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
9706 (grub_sfs_read_symlink): Handle non-512 blocks.
9707 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
9708 (grub_sfs_dir): Free cache.
9709 (grub_sfs_close): Likewise.
9711 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9713 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
9716 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9718 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
9720 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9722 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
9724 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9726 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
9727 (grub_sfs_read_extent): Likewise.
9728 (grub_sfs_read_block): Likewise.
9729 (grub_sfs_mount): Likewise.
9730 (grub_sfs_iterate_dir): Likewise.
9731 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
9732 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
9734 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9736 Fix errors on compressed NTFS with 512B clusters.
9738 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
9740 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
9742 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
9743 Relax check for inline extents.
9744 (ntfscomp): Return correct -1 on error and not 0.
9746 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9748 * util/grub-install.in: Fix handling of prefix containing spaces.
9750 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9752 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
9753 (grub_squash_read_data): Fix offset byte-swapping.
9755 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9757 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
9758 per common usage and preffered in several parts of code.
9759 (grub_memcmp): Likewise.
9760 (grub_strncmp): Likewise.
9761 * include/grub/misc.h (grub_strcasecmp): Likewise.
9762 (grub_strncasecmp): Likewise.
9763 * Makefile.util.def (cmp_test): New test.
9764 (grub_script_strcmp): Likewise.
9765 * tests/cmp_unit_test.c: New file.
9766 * tests/grub_script_strcmp.in: Likewise.
9767 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
9769 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9771 * include/grub/pci.h: Move enums into no-asm part.
9773 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9775 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
9777 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
9779 * util/getroot.c (find_hurd_root_device): Try to make error message
9780 and comments to translators clearer.
9782 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9784 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
9786 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9788 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
9791 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9793 * docs/grub.cfg: Update.
9795 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9797 * docs/grub.texi (PXE): Remove not present variables.
9799 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9801 * grub-core/net/net.c (defserver_set_env): New function.
9802 (defserver_get_env): Likewise.
9803 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
9805 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9807 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
9810 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9812 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
9813 * grub-core/kern/emu/hostdisk.c: Likewise.
9815 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9817 Handle hurd userspace partitions.
9819 * util/getroot.c (find_hurd_root_device): New function.
9820 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
9822 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9824 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
9826 Reported by: Bastian Blank.
9828 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9830 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
9831 crossing page boundary.
9833 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9835 Fix B-tree search in BFS, especially in presence of non-ASCII
9838 * grub-core/fs/bfs.c (bfs_strcmp): New function.
9839 (find_in_b_tree): Use standard bsearch + btree algorithm.
9841 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9843 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
9846 2012-05-03 Matthew Garrett <mjg@redhat.com>
9847 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9849 Suspend broadcom cards in order to stop their DMA.
9851 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
9852 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
9853 (pci): Don't build on x86 EFI.
9854 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
9855 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
9857 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
9858 stop_broadcom if running on EFI.
9859 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
9860 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
9861 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
9862 (grub_pci_find_capability): New proto.
9864 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9866 * docs/grub.texi: Remove dot from the extension as it apparently
9867 doesn't work with some makeinfo versions.
9869 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9871 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
9872 with GRUB expectance.
9874 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9876 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
9878 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9880 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
9881 zero after directory block since last entry may be not 0-terminated if
9882 it ends on block boundary. Use continue instead of if spanning whole
9885 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9887 Support 4K sectors UDF inline files.
9889 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
9890 (grub_udf_extended_file_entry): Likewise.
9891 (grub_fshelp_node): Name the anonymous union. Put block at the end.
9893 (get_fshelp_size): New function.
9894 (grub_udf_read_icb): Read whole block.
9895 (grub_udf_iterate_dir): Likewise.
9896 (grub_udf_dir): Likewise.
9897 (grub_udf_open): Likewise.
9899 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9901 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
9903 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9905 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
9906 inline symlinks in addition to workaround.
9908 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9910 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
9912 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9914 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
9916 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9918 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
9920 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9922 Fix reiserfs big seek times.
9924 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
9925 exact. All users updated.
9926 (grub_reiserfs_read): Use nearest btree search for seeking.
9927 Fix return value on error.
9929 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9931 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
9933 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
9934 * docs/grub.texi: Update menuentry description.
9936 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9938 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
9939 crash when embedding onto filesystem.
9941 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9943 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
9946 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9948 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
9950 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9952 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
9955 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9956 2012-05-01 Bean <bean123ch@gmail.com>
9958 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
9960 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9962 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
9963 Special behaviour for len = 0 to read whole file isn't used anywhere and
9964 can cause buffer ovewrflows in several places.
9966 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9968 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
9970 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9972 Handle RAIDZ on non-512B sectors.
9974 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
9975 max_children_ashift.
9976 (fill_vdev_info_real): Fill max_children_ashift.
9977 (read_device): Use max_children_ashift.
9979 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9981 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
9983 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9985 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
9987 * docs/grub.texi: Update device.map parts.
9989 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9991 Don't scan into non-diskfilter devices having diskfilter names.
9993 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
9994 (scan_disk): New argument accept_diskfilter. Fix recursion depth
9996 (scan_disk_hook): New function.
9998 2012-04-29 Bean <bean123ch@gmail.com>
10000 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10003 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10005 * configure.ac: Detect starfield theme font path
10006 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10008 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10010 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10011 geometry on serial consoles.
10013 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10015 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10016 because of network consoles.
10018 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10020 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10023 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10025 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10026 falls on Q syndrom.
10028 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10030 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10031 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10033 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10035 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10036 Allocate at lest 8192 for temporary buffer as required for lzo.
10038 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10040 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10041 to cluster_bits, since it's already added in.
10042 (grub_fat_read_data): Likewise.
10044 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10046 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10047 as long as cluster size is multiple of 512 bytes.
10049 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10051 * util/grub-mkrescue.in: Fix locale directory.
10053 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10055 * grub-core/kern/emu/hostdisk.c (map): Make static.
10057 2012-04-23 Bean <bean123ch@gmail.com>
10059 * util/grub-fstest.c (fstest): Add missing break.
10061 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10065 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10066 not define nr variable.
10067 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10068 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10069 grub_find_device): Do not define.
10071 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10073 Fix kfreebsd compile and behaviour.
10075 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10077 * util/getroot.c: Fix wait.h include.
10078 (grub_guess_root_devices): Error if grub_find_device fails.
10079 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10080 (grub_util_get_dev_abstraction): Likewise.
10081 (grub_util_pull_device): Likewise.
10082 (grub_util_get_grub_dev): Likewise.
10083 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10085 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10087 Fix and unify wholedisk detection.
10089 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10090 is_part. All users updated.
10091 (device_is_wholedisk): Removed.
10092 (grub_util_biosdisk_get_grub_dev): Use is_part.
10094 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10096 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10099 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10101 * configure.ac: Bump to beta4.
10103 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10105 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10106 --fs-uuid --set UUID syntax.
10108 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10110 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10113 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10115 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10117 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10119 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10121 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10123 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10125 2012-04-18 Bean <bean123ch@gmail.com>
10127 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10130 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10132 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10134 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10135 corresponding to GRUB partitions.
10136 (grub_util_biosdisk_write): Likewise.
10138 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10140 Scan mdraid before LVM.
10142 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10143 (grub_diskfilter_register_front): ... this.
10144 (grub_diskfilter_register_back): New function.
10145 All users of grub_diskfilter_register updated.
10147 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10149 * util/grub-install.in: Fix an automatic target detection bug.
10151 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10153 * util/grub-install.in: New option --efi-directory.
10155 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10157 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10158 boot services if we have no other choice.
10160 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10162 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10164 * tests/util/grub-shell.in: Update to --directory.
10166 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10168 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10170 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10172 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10173 (grub_minix_read_file): Likewise.
10174 (grub_minix_read_inode): Likewise.
10175 (grub_minix_find_file): Likewise.
10176 (grub_minix_dir): Likewise.
10178 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10180 * util/grub-setup.c (setup): Fix partition handling and blocklist
10183 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10185 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10186 redundant buggy overlap check.
10188 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10190 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10193 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10195 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10196 kh.loadflags on pre-2.00 kernels.
10198 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10200 Terminate UNDI and PXE before launching the payload to avoid problems
10203 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10204 (grub_loader_flags): ... this. All users updated.
10205 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10206 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10207 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10208 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10210 (grub_pxe_restore): Likewise.
10211 (fini_hnd): New var.
10212 (GRUB_MOD_INIT): Register shutdown hook.
10213 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10214 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10215 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10216 (grub_loader_set): Rename second argument to flags.
10218 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10220 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10222 (grub_get_num_of_utf8_bytes): New function.
10223 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10224 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10226 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10227 (grub_ucs4_to_utf8): Change return type.
10229 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10231 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10233 * grub-core/fs/bfs.c (hop_level): Likewise.
10234 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10236 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10238 * grub-core/lib/adler32.c: Recode due to license unclearness.
10240 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10242 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10243 (test_header): Likewise.
10245 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10247 Fix --help formatting.
10249 * util/grub-mkconfig_lib.in (print_option_help): New function.
10250 (grub_fmt): Likewise.
10251 * util/grub-install.in: Use print_option_help and grub_fmt.
10252 * util/grub-kbdcomp.in: Likewise.
10253 * util/grub-mkconfig.in: Likewise.
10254 * util/grub-mknetdir.in: Likewise.
10255 * util/grub-mkrescue.in: Likewise.
10256 * util/grub-mkstandalone.in: Likewise.
10257 * util/grub-reboot.in: Likewise.
10258 * util/grub-set-default.in: Likewise.
10259 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10261 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10263 * linguas.sh: Remove autogenerated *.po.
10265 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10267 * po/README: Move language fetcing to ...
10268 * linguas.sh: ... here.
10269 * po/README: Point to linguas.sh.
10271 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10273 * po/README: Exclude ko.po due to disclaimer problems.
10275 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10277 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10279 (grub_gettext_translate_real): Handle 0th string.
10280 (grub_gettext_translate): Ensure that "" isn't translated.
10282 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10284 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10285 TRANSLATORS comment.
10286 (grub_diskfilter_print_partmap): Propagate changing of error into
10289 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10291 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10292 to uint64_t to prevent overflow.
10293 (grub_diskfilter_lv): Increase start_extent and extent_count
10294 to uint64_t to prevent overflow.
10296 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10298 * configure.ac: Increase version.
10300 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10302 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10304 * po/Rules-translit: New file.
10305 * po/arabic.sed: Likewise.
10306 * po/cyrillic.sed: Likewise.
10307 * po/greek.sed: Likewise.
10308 * po/hebrew.sed: Likewise.
10309 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10310 * po/Makefile.in.in: Add extra_dist4.
10312 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10314 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10316 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10317 modify names. Introduce MODE_BIGENDIAN.
10318 * grub-core/fs/minix_be.c: New file.
10319 * grub-core/fs/minix2_be.c: Likewise
10320 * grub-core/fs/minix3_be.c: Likewise.
10321 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10323 * grub-core/Makefile.core.def (minix_be): New module.
10324 (minix2_be): Likewise.
10325 (minix3_be): Likewise.
10327 2012-04-01 Felix <email@hamburg.de>
10329 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10330 (devs): Add MBP 2011.
10332 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10334 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10336 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10338 * grub-core/normal/cmdline.c (print_completion): New field
10340 (grub_cmdline_get): Handle width properly.
10342 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10344 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10346 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10348 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
10349 after 29th of February.
10351 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10353 Fix exfat endianness handling.
10355 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10356 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10357 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10358 Byte-swap utf16 when necessary.
10359 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10361 2012-03-31 Anton Blanchard <anton@samba.org>
10362 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10364 Fix btrfs endianness handling.
10366 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10367 (lower_bound): Make root uint64_t. Use root in le.
10368 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10369 (find_path): Fix template key init.
10370 (grub_btrfs_dir): Fix mtime byteswap.
10371 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10373 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10375 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10376 recursion_depth. Break infinite resursions. All users updated.
10378 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10380 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
10382 Reported by: Peter Jones.
10384 2012-03-31 Anton Blanchard <anton@samba.org>
10386 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
10389 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10391 * util/grub-install.in: Fix nvram call for PreP.
10393 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10395 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
10396 the error when some elements are missing into a warning.
10398 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10400 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
10402 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
10404 * docs/grub.texi (Invoking grub-probe): New section.
10405 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
10407 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10409 Fix tab and wide character handling in editor and menu.
10411 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
10412 agglomerate control characters with combining marks.
10413 (bidi_line_wrap): Allow break on tab.
10414 (grub_unicode_get_comb_start): New function.
10415 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
10417 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
10419 * grub-core/normal/term.c (print_ucs4_terminal): New argument
10420 fixed_tab_size. All users updated.
10421 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
10422 (grub_term_getcharwidth): Handle \t.
10423 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
10426 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10428 Handle big-endian mdraid.
10430 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
10431 * grub-core/Makefile.core.def (mdraid09_be): New module.
10432 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
10433 rather than grub_le_to_cpu* and grub_cpu_to_le*.
10434 * grub-core/disk/mdraid_linux_be.c: New file.
10436 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10438 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
10440 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10442 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
10443 missing quotes which caused confusion among translators.
10445 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10447 * util/grub-mkconfig_lib.in: Fix typo.
10449 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10451 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
10453 * tests/grub_script_leading_whitespace.in: New file.
10454 * Makefile.util.def (grub_script_leading_whitespace): New test.
10456 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10458 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
10461 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10463 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
10464 starts with control character.
10466 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10468 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
10470 (grub_gdb_outbuf): Likewise.
10472 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10474 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
10475 zero terminator. Fixes a crash.
10477 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10479 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
10481 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
10482 images independently of preffered adderss field.
10484 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10486 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
10487 * grub-core/commands/regexp.c: Likewise.
10488 * grub-core/loader/i386/linux.c: Likewise.
10489 * grub-core/partmap/msdos.c: Likewise.
10490 * grub-core/script/execute.c: Likewise.
10491 * grub-core/term/gfxterm.c: Likewise.
10493 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10495 Add variable parsing in $"..." and fix several mismatches with bash.
10497 * Makefile.util.def (grub_script_gettext): New test.
10498 * grub-core/script/execute.c (parse_string): New function.
10499 (gettext_append): Likewise.
10500 (grub_script_arglist_to_argv): Use gettext_append.
10501 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
10502 * tests/grub_script_gettext.in: New file.
10504 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10506 Fix handling of leading spaces in scripts.
10508 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
10510 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
10511 other than skipping \r. All users updated.
10512 * tests/grub_script_echo1.in: Add space-related tests.
10513 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
10515 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10517 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
10519 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10521 * configure.ac: Bump up the version to beta2.
10523 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10525 Fix gettext reload bugs (e.g. inability to disable gettext
10528 * grub-core/gettext/gettext.c: Encapsulate all static variables in
10529 main_context and secondary_context. All functions updated.
10530 (grub_gettext_translate): Rename to ...
10531 (grub_gettext_translate_real): ... this. Return NULL on failed
10533 (grub_gettext_translate): Handle secondary context.
10534 (grub_gettext_delete_list): Close file and zero-out the context.
10535 (grub_mofile_open): Don't call grub_gettext_delete_list.
10537 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
10538 if locale="" to avoid pointless error message.
10539 (grub_gettext_env_write_lang): Update lang even if load fails.
10540 Handle secondary context.
10541 (grub_gettext_reread_prefix): New function.
10542 (read_main): Likewise.
10543 (read_secondary): Likewise.
10544 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
10545 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
10546 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
10547 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
10549 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10551 * configure.ac: Decrease warning level to avoid spurious warnings and
10552 to be able to compile with GCC 4.2.
10553 * Makefile.util.def: Remove -Wno-error=logical-op.
10555 2012-03-10 William Bittner <william.bittner@gmail.com>
10557 * util/import_unicode.py: Add missing brackets around string for
10560 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10562 Fix efi chainloader on network root.
10564 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
10566 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
10569 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10571 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
10572 unused show_text member.
10573 * docs/grub.texi: Document "text" property.
10575 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10577 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
10580 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10582 Fix IMSM handling on Fedora.
10584 * util/getroot.c (grub_util_is_imsm): New function.
10585 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
10587 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10589 * Makefile.am: Strip gold section.
10590 * conf/Makefile.common: Likewise.
10591 * gentpl.py: Likewise.
10592 * grub-core/Makefile.core.def: Likewise.
10593 * grub-core/genmod.sh.in: Likewise.
10595 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10597 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
10598 * util/grub.d/20_linux_xen.in: Likewise.
10599 Based on Debian patch.
10601 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10603 * util/grub.d/10_linux.in: Fix syntax error resulting in
10604 Richard Laager's patch.
10605 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
10607 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10609 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
10612 2012-03-10 Richard Laager <rlaager@wiktel.com>
10614 * util/grub.d/10_linux.in: Fix ZFS root passing.
10616 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10618 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
10619 * grub-core/commands/xnu_uuid.c: Likewise.
10620 * grub-core/loader/efi/appleloader.c: Likewise.
10621 * grub-core/script/execute.c: Likewise.
10622 * grub-core/script/main.c: Likewise.
10623 * util/grub-mkfont.c: Likewise.
10625 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10627 * util/grub-mkfont.c (options): Use more appropriate "select" that
10628 "set" for face index.
10630 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10632 * util/grub-editenv.c (options): Gettextize command summaries.
10634 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10636 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
10637 "out of memory" error messagge.
10639 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10641 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
10642 of diskfilter for diskfilter on diskfilter support.
10644 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10646 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
10648 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10650 * util/grub-install.in: Check for themes/starfield/theme.txt and not
10653 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10655 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
10657 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10659 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
10661 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10663 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
10666 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
10668 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
10670 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
10672 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
10674 * util/grub-install.in: Fix and gettextize error message.
10676 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10678 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
10680 * util/grub-mount.c (options): Likewise.
10682 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10684 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
10686 * grub-core/commands/search_wrap.c (options): Likewise.
10688 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10690 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
10692 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10694 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
10696 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
10699 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10701 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
10702 "temporary" since it's used in identifier and is limited in space.
10704 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10706 * po/POTFILES.in: Regenerate. Include *.h since they contain
10707 translatable strings as well.
10709 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10711 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
10712 byte-swap on big-endian.
10713 Reported by: Lennart Sorensen
10715 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
10717 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
10718 (allocate_pages): Improve dprintf.
10719 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
10720 code32_start. Fill code32_start and kernel_alignment in params.
10721 (grub_cmd_initrd): Use prot_init_space.
10723 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10725 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
10727 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10729 * util/grub-install.in: Add missing dot at the end of sentence.
10731 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10733 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
10734 * grub-core/commands/videotest.c: Likewise.
10735 * grub-core/loader/i386/linux.c: Likewise.
10737 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10739 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
10741 Reported by: Milo Casagrande.
10743 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10745 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
10746 * grub-core/commands/gptsync.c: Likewise.
10747 * grub-core/commands/hashsum.c: Likewise.
10748 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10749 * grub-core/commands/legacycfg.c: Likewise.
10750 * grub-core/io/gzio.c: Likewise.
10751 * grub-core/net/net.c: Likewise.
10752 * grub-core/term/gfxterm.c: Likewise.
10753 * grub-core/term/terminfo.c: Likewise.
10754 * grub-core/tests/test_blockarg.c: Likewise.
10755 * grub-core/video/video.c: Likewise.
10756 * util/grub-install.in: Likewise.
10757 * util/grub-mkfont.c: Likewise.
10759 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10761 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
10763 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10765 * grub-core/commands/search_wrap.c (options): Fix a typo.
10766 Reported by: David Prévot.
10768 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10770 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
10773 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10775 * util/grub-script-check.c (main): Fix a syntax error message which was
10778 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10780 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
10782 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10784 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
10787 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10789 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
10791 * util/grub-mount.c (options): Likewise.
10793 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10795 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
10797 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10799 * grub-core/net/http.c: Add TRANSLATORS comments.
10800 * grub-core/normal/cmdline.c: Likewise.
10801 * grub-core/normal/misc.c: Likewise.
10802 * grub-core/partmap/msdos.c: Likewise.
10803 * grub-core/parttool/msdospart.c: Likewise.
10804 * grub-core/script/execute.c: Likewise.
10805 * grub-core/script/main.c: Likewise.
10806 * grub-core/term/terminfo.c: Likewise.
10807 * grub-core/video/bitmap.c: Likewise.
10808 * util/grub-install.in: Likewise.
10809 * util/grub-mkimage.c: Likewise.
10810 * util/grub-mklayout.c: Likewise.
10811 * util/grub-setup.c: Likewise.
10813 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10815 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
10816 with similar messages in grub-fstest.
10818 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10820 * util/grub-install.in: Unify "option requires an argument" message
10821 with similar messages in other files.
10822 * util/grub-mkconfig.in: Likewise.
10824 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10826 * util/grub-set-default.in: Replace printf with gettext_printf (the
10827 string in in question is already translated from grub-reboot)
10829 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10831 * configure.ac: Bump up the version to beta1.
10833 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10835 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
10836 case when min_align = 0.
10838 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10840 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
10841 and fix a case when line_start overflows.
10843 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10845 * util/grub-reboot.in (usage): Mention id posibility.
10846 * util/grub-set-default.in (usage): Likewise.
10848 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10850 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
10851 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
10852 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
10853 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
10854 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
10855 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10856 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10858 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10860 * grub-core/commands/menuentry.c (options): Remove
10861 GRUB_ARG_OPTION_REPEATABLE.
10862 Reported by: Andreas Vogel
10864 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
10866 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
10868 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
10870 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
10873 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10875 Use sort -V by the idea of Georgi Georgiev.
10877 * util/grub-mkconfig_lib.in (version_sort): New function.
10878 (version_test_numeric): Use version_sort.
10880 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10882 Use submenus in grub-mkconfig.
10884 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
10885 * util/grub-mkconfig_lib.in (grub_quote): New function.
10886 (gettext_printf): Use gettext and not gettext_quoted to fix several
10888 * util/grub.d/10_hurd.in: Use submenus.
10889 * util/grub.d/10_kfreebsd.in: Likewise.
10890 * util/grub.d/10_linux.in: Likewise.
10891 * util/grub.d/10_netbsd.in: Likewise.
10892 * util/grub.d/20_linux_xen.in: Likewise.
10893 * util/grub.d/30_os-prober.in: Likewise.
10894 * util/grub.d/10_illumos.in: Add missing quoting.
10895 * util/grub.d/10_windows.in: Likewise.
10897 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10899 Fix menu title instability bug.
10901 * grub-core/commands/menuentry.c (options): New option --id.
10902 (grub_normal_add_menu_entry): New argument id. All users updated.
10903 (grub_cmd_menuentry): Handle --id.
10904 (grub_menu_init): Accept unknown arguments.
10905 * grub-core/normal/main.c (features): Add feature_menuentry_id and
10906 feature_menuentry_options.
10907 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
10909 (get_entry_number): Match with id as well.
10910 * include/grub/menu.h (grub_menu_entry): New member id.
10911 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
10912 * util/grub.d/00_header.in: Define menuentry_id_option.
10913 * util/grub.d/10_hurd.in: Define id.
10914 * util/grub.d/10_illumos.in: Likewise.
10915 * util/grub.d/10_kfreebsd.in: Likewise.
10916 * util/grub.d/10_linux.in: Likewise.
10917 * util/grub.d/10_netbsd.in: Likewise.
10918 * util/grub.d/10_windows.in: Likewise.
10919 * util/grub.d/20_linux_xen.in: Likewise.
10920 * util/grub.d/30_os-prober.in: Likewise.
10922 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10924 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
10925 "scope" with "body".
10927 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10929 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
10930 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
10931 prot_size and prot_file_size.
10933 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10935 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
10936 All users updated. If easily=1 require raid-5/-6 to be full.
10937 (is_node_readable): Likewise.
10938 (scan_devices): Scan incomplete but readable LVs at the end.
10939 (grub_diskfilter_memberlist): Pull missing devices.
10940 (insert_array): Skip scanning until device is complete or scan is
10942 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
10944 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
10945 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
10947 2012-03-03 Matthew Garrett <mjg@redhat.com>
10948 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10950 Avoid EFI boot services when loading Linux.
10952 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
10953 avoid_efi_bootservices. All users updated.
10954 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
10955 argument avoid_efi_bootservices. All users updated.
10956 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
10957 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
10958 align, min_align, relocatable, prefered_address. All users updated.
10959 Allocate avoiding boot services if kernel is relocatable.
10960 (grub_cmd_linux): Check if kernel is relocatable.
10961 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
10962 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
10963 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
10964 avoid_efi_boot_services.
10965 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
10966 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
10967 (linux_kernel_params): Likewise.
10969 2012-03-03 Matthew Garrett <mjg@redhat.com>
10970 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10974 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
10976 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
10977 modes. Set gop_handle.
10978 (grub_video_gop_get_edid): New function.
10979 (grub_gop_get_preferred_mode): Likewise.
10980 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
10981 (grub_video_efi_gop_adapter): Set .get_edid.
10982 * include/grub/efi/edid.h: New file.
10983 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
10985 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10987 * util/grub-install.in: Load efivars unconditionally.
10989 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10991 * po/Rules-piglatin: Change suffix from .po-update-en to
10992 .po-update-en-piglatin.
10994 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10998 * po/piglatin.sed: New file.
10999 * po/en@piglatin.header: Likewise.
11000 * po/Rules-piglatin: Likewise.
11001 * po/README: Add en@piglatin to autogenerated languages.
11003 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11005 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11007 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11008 "Check" since we don't check anything.
11009 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11011 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11012 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11013 (grub_md_sha512_real): Likewise.
11015 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11017 * grub-core/commands/gptsync.c: Fix typographic quoting.
11018 * grub-core/commands/ieee1275/suspend.c: Likewise.
11019 * grub-core/commands/parttool.c: Likewise.
11020 * grub-core/commands/search_wrap.c: Likewise.
11021 * grub-core/commands/videoinfo.c: Likewise.
11022 * grub-core/gfxmenu/gui_label.c: Likewise.
11023 * grub-core/hello/hello.c: Likewise.
11024 * grub-core/kern/emu/main.c: Likewise.
11025 * grub-core/net/net.c: Likewise.
11026 * grub-core/normal/menu.c: Likewise.
11027 * grub-core/normal/menu_text.c: Likewise.
11028 * grub-core/normal/misc.c: Likewise.
11029 * util/grub-editenv.c: Likewise.
11030 * util/grub-install.in: Likewise.
11031 * util/grub-kbdcomp.in: Likewise.
11032 * util/grub-mkconfig.in: Likewise.
11033 * util/grub-mknetdir.in: Likewise.
11034 * util/grub-mkrescue.in: Likewise.
11035 * util/grub-mkstandalone.in: Likewise.
11036 * util/grub-reboot.in: Likewise.
11037 * util/grub-set-default.in: Likewise.
11038 * util/grub-setup.c: Likewise.
11039 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11041 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11043 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11044 * grub-core/commands/keystatus.c: Likewise.
11045 * grub-core/commands/loadenv.c: Likewise.
11046 * grub-core/commands/probe.c: Likewise.
11047 * grub-core/commands/regexp.c: Likewise.
11048 * grub-core/commands/true.c: Likewise.
11049 * grub-core/commands/videoinfo.c: Likewise.
11050 * grub-core/disk/cryptodisk.c: Likewise.
11051 * grub-core/disk/ldm.c: Likewise.
11052 * grub-core/disk/loopback.c: Likewise.
11053 * grub-core/disk/luks.c: Likewise.
11054 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11055 * grub-core/kern/disk.c: Likewise.
11056 * grub-core/kern/emu/hostdisk.c: Likewise.
11058 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11060 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11061 * util/grub-install.in: Add missing quote in the comment.
11063 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11065 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11066 * grub-core/commands/lsmmap.c: Likewise.
11067 * grub-core/commands/minicmd.c: Likewise.
11068 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11069 * grub-core/commands/regexp.c: Likewise.
11070 * grub-core/gdb/gdb.c: Likewise.
11071 * grub-core/term/gfxterm.c: Likewise.
11072 * util/grub-mkconfig.in: Likewise.
11073 * util/grub-mkfont.c: Likewise.
11074 * util/grub-mklayout.c: Likewise.
11075 * util/grub-mknetdir.in: Likewise.
11076 * util/grub-mkrescue.in: Likewise.
11077 * util/grub.d/30_os-prober.in: Likewise.
11079 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11081 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11082 with "Direct color" and "Packed" with "Packed pixel".
11083 (grub_cmd_videoinfo): Simplify legend.
11085 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11087 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11088 absolutely unclear error message.
11090 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11092 * util/grub-mkstandalone.in: Remove confusing leftover print.
11094 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11096 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11098 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11099 (GRUB_MOD_INIT): Likewise.
11100 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11102 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11104 * util/grub-install.in (usage): Likewise.
11105 Spell ID in whole letters.
11106 Add missing ending dot.
11108 * util/grub-reboot.in: Fix capitalisation.
11109 * util/grub-set-default.in: Likewise.
11111 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11113 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11114 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11115 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11116 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11117 Disable -Werror for -Wdeprecated-declarations.
11118 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11119 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11120 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11121 (grub_util_get_grub_dev): Make luks handling dependent on
11122 HAVE_DEVICE_MAPPER and not __linux__.
11123 (get_win32_path): Fix format security.
11124 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11125 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11126 Don't try grub_find_zpool_from_dir.
11127 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11128 #ifdef-out paresdir.
11130 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11132 * util/grub-pe2elf.c (usage): Add missing noreturn.
11133 (write_section_data): Rename name to shname to avoid shadowing.
11134 (write_symbol_table): Rename name to symname to avoid shadowing.
11135 Fix write_reloc_section call.
11137 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11139 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11140 to ensure that it's after the last byte of .text.
11142 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11144 * util/ieee1275/ofpath.c (my_isdigit): New function.
11145 (trailing_digits): Use my_isdigit.
11146 (strip_trailing_digits): Likewise.
11148 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11150 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11151 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11153 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11155 * grub-core/kern/i386/pc/startup.S: Define __start.
11157 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11159 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11160 strip already transforms he format.
11162 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11164 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11166 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11168 * util/grub-install.in: Add missing gettext init.
11169 * util/grub-kbdcomp.in: Likewise.
11170 * util/grub-mkconfig.in: Likewise.
11171 * util/grub-mknetdir.in: Likewise.
11172 * util/grub-mkrescue.in: Likewise.
11173 * util/grub-mkstandalone.in: Likewise.
11174 * util/grub-reboot.in: Likewise.
11175 * util/grub-set-default.in: Likewise.
11176 * util/grub.d/00_header.in: Likewise.
11177 * util/grub.d/10_hurd.in: Likewise.
11178 * util/grub.d/10_windows.in: Likewise.
11179 * util/grub.d/30_os-prober.in: Likewise.
11180 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11182 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11184 * po/Rules-swiss: Fix header comment.
11186 2012-02-29 Andreas Vogel <anvoit>
11188 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11189 resulted in leak of arguments.
11191 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11193 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11194 reed_solomon_size const definition instead of computing it since
11195 Apple assembler doesn't support the later.
11197 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11199 * gentpl.py (kernel): Rewrite Apple part.
11201 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11203 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11205 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11207 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11209 (load_image): Likewise.
11211 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11213 * configure.ac: Fix a typo in previous commit.
11215 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11217 Don't add -Wl,-N on Apple platform.
11219 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11220 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11222 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11224 * grub-core/Makefile.core.def (lzma_decompress): Use
11225 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11227 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11229 * grub-core/genmod.sh.in: Rewrite the Apple part.
11231 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11233 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11236 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11238 * acinclude.m4 (grub_CHECK_PIC): New test.
11239 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11241 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11243 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11244 to avoid the warning.
11246 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11248 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11249 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11250 after. All users updated.
11252 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11254 Use the common size routine in hostfs so we can read disks as well.
11256 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11257 (grub_util_get_fd_size): ... this. Return size in bytes.
11259 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11260 grub_util_get_fd_size.
11262 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11264 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11265 Add blocksize retrieval.
11267 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11269 * configure.ac: Restore CFLAGS after efiemu check.
11271 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11273 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11276 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11278 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11280 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11282 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11283 (grub_cmd_halt): Likewise.
11285 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11287 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11288 for local arithmetics.
11289 Break %sp init into 2 instructions.
11290 Add 0 byte at the end.
11292 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11294 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11297 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11299 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11302 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11304 * grub-core/disk/ldm.c (make_vg): Init part.name.
11305 (grub_ldm_detect): Silence spurious warning.
11306 (grub_util_is_ldm): Likewise.
11308 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11310 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11311 sane value to avoid a spurious warning.
11313 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11315 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11316 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11318 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11320 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11321 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11323 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11325 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11326 hardcoding the relevant info.
11328 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11330 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11331 missing const qualifiers.
11332 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11334 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11336 * util/getroot.c [__APPLE__]: Add missing includes.
11337 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11339 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11341 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11343 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11345 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11348 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11350 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11352 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11354 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11355 and grub_file_close call.
11357 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11359 Add LZSS Mach-O support (needed for new xnu kernelcache).
11361 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11362 * grub-core/loader/lzss.c: New file.
11363 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11364 on Mach-O open failure.
11365 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11366 Don't free cmdsXX in uncompressedXX is set.
11367 (grub_macho_file): Init new fields.
11368 New argument is_64bit. All users updated.
11369 Handle compressed. Error out if no suitable architecture is found.
11371 (grub_macho_open): New argument is_64bit. All users updated.
11372 * grub-core/loader/macho32.c: Add defines for new fields.
11373 * grub-core/loader/macho64.c: Likewise.
11374 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11375 (grub_macho_parse): Handle compressed.
11376 Defer actual processing if compressed.
11377 (grub_macho_cmds_iterate): Decompress if compressed. New argument
11378 "filename". All users updated.
11379 (grub_macho_size): New argument "filename". All users updated.
11380 (grub_macho_get_entry_point): Likewise.
11381 (grub_macho_load): Handle compressed.
11382 * include/grub/macho.h (grub_macho_lzss_header): New struct.
11383 (GRUB_MACHO_LZSS_OFFSET): New define.
11384 (grub_decompress_lzss): New proto.
11385 * include/grub/machoload.h (grub_macho_file): New fields to handle
11387 (grub_macho_contains_macho64): Remove proto.
11388 (grub_macho_contains_macho32): Likewise.
11389 * util/grub.d/30_os-prober.in: Use kernel cache if available.
11391 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11393 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
11395 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11399 * Makefile.am (starfield_theme_files): New var.
11400 (starfield_DATA): Use starfield_theme_files.
11401 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
11402 Add bootcheck-related files.
11403 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
11404 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
11405 and font_char_metrics.txt.
11406 * grub-core/Makefile.core.def (kernel): Update extra_dist.
11407 (setjmp): Add lib/ia64/longjmp.S.
11408 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
11409 * po/POTFILES.in: Regenerate.
11410 * po/Rules-swiss: use DISTFILES.common.extra2 and not
11411 DISTFILES.common.extra1.
11412 * util/devicemap.c: Removed.
11413 * grub-core/lib/i386/relocator_backward.S: Likewise.
11414 * util/import_gcry.py: Remove unused files. Add extra_dist for
11417 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11419 * grub-core/gettext/gettext.c (grub_mofile_open): Call
11420 grub_gettext_delete_list before changing grub_gettext_max to avoid
11421 running out of array bounds.
11423 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11425 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
11426 grub_vga_text_init/grub_vga_text_fini.
11428 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11430 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
11432 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11434 * configure.ac: Bump to 2.00~beta0.
11436 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11438 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
11439 missing initialisation.
11441 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11443 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
11445 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11447 Support v2 xnu boot arguments.
11449 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
11450 New argument fsbfreq_out.
11451 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
11452 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
11454 * grub-core/loader/machoXX.c (grub_macho_load): New argument
11456 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
11457 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
11458 (grub_xnu_boot_params): Rename to ...
11459 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
11460 (grub_xnu_boot_params_v2): New struct.
11462 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11464 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
11465 zeroing of CRC field before computing CRC.
11467 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11469 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
11470 Change order of allocations to decrease fragmentation.
11472 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11474 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
11476 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
11478 Use write-combining MTRR to speed up video with buggy BIOSes.
11480 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
11481 (cpuid): New define.
11484 (mtrr_base): Likewise.
11485 (mtrr_mask): Likewise.
11486 (grub_vbe_enable_mtrr_entry): New function.
11487 (grub_vbe_enable_mtrr): Likewise.
11488 (grub_vbe_disable_mtrr): Likewise.
11489 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
11490 control off to BIOS.
11491 (grub_video_vbe_init): Fill mtrr.
11492 (grub_video_vbe_fini): Disable mtrr.
11493 (grub_video_vbe_get_info_and_fini): Likewise.
11494 (grub_video_vbe_setup): Enable mtrr.
11496 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
11498 * include/grub/partition.h (grub_partition_map): Change prototype of
11499 embed to take a maximum value for nsectors.
11500 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
11501 * include/grub/fs.h (grub_fs): Likewise.
11502 * grub-core/partmap/msdos.c (embed_signatures): New array.
11503 (pc_partition_map_embed): Check for and avoid sectors matching any
11504 of the signatures in embed_signatures, up to max_nsectors.
11505 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
11506 returned sector map to max_nsectors.
11507 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
11508 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
11509 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
11510 * util/grub-setup.c (setup): Allow for the embedding area being
11511 split into multiple blocklists. Tell dest_partmap->embed the
11512 maximum number of sectors we care about.
11514 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11516 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
11517 Specify blocklist_install and reserver_first_sector for all fs.
11518 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
11521 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11523 * util/grub-install.in: Clarify strings.
11524 Fix source dir check.
11526 2012-02-27 Richard Laager <rlaager@wiktel.com>
11528 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
11529 "zfs" and "fuse.zfs" as synonyms.
11531 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11533 * configure.ac: Put platform and target_cpu substitutions back since
11534 they are used for directories.
11536 2012-02-27 Richard Laager <rlaager@wiktel.com>
11537 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11539 * util/grub.d/10_linux.in: Add ZFS-related arguments.
11540 * util/grub.d/20_linux_xen.in: Likewise.
11542 2012-02-27 Richard Laager <rlaager@wiktel.com>
11544 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
11547 2012-02-27 Richard Laager <rlaager@wiktel.com>
11549 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
11552 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11554 Don't use insecure popen in getroot.
11556 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
11557 (exec_pipe): ... here.
11558 (find_root_devices_from_poolname): Use exec_pipe.
11560 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11562 Remove platform and target_cpu replacement.
11564 * configure.ac: Remove platform and target_cpu substitutions.
11565 * tests/util/grub-shell.in: Use modinfo.
11566 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
11569 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11571 Autodetect platform in grub-install but allow override.
11573 * util/grub-install.in: Autodetect platform. Support --target and
11574 --directory. Read platform from modinfo.sh.
11576 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11578 Support btrfs multi-volume probe.
11580 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
11581 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
11582 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
11583 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
11584 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
11585 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
11586 grub_find_root_devices_from_btrfs if on btrfs.
11588 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11590 Remove any awareness of *.c util files about target.
11592 * Makefile.util.def (grub-setup): Split to ...
11593 (grub-bios-setup): ... and this.
11594 (grub-sparc64-setup): ... and this.
11595 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
11596 * docs/man/grub-setup.h2m: Split into ...
11597 * docs/man/grub-sparc64-setup.h2m: ... this.
11598 * docs/man/grub-bios-setup.h2m: ... and this.
11599 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
11600 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
11601 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
11602 (grub_target_addr_t): Remove.
11603 (grub_target_size_t): Remove.
11604 (grub_target_ssize_t): Remove.
11605 * util/grub-install.in: Use new grub-*-setup.
11606 * util/grub-mkimagexx.c (Elf_Word): New define.
11607 (Elf_Half): Likewise.
11608 (Elf_Section): Likewise.
11609 (ELF_ST_TYPE): Likewise.
11610 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
11611 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
11613 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11615 Replace grub_target_addr with more appropriate types.
11617 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
11618 grub_target_addr with grub_addr.
11619 * grub-core/commands/iorw.c (grub_cmd_read): Replace
11620 grub_target_addr with grub_port.
11621 (grub_cmd_write): Likewise.
11622 * grub-core/commands/memrw.c (grub_cmd_read): Replace
11623 grub_target_addr with grub_addr.
11624 (grub_cmd_write): Likewise.
11625 * grub-core/video/efi_uga.c (find_line_len): Likewise.
11627 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11629 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
11630 const qualifier for vendor_guid.
11632 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11634 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
11636 (efiemu_memequal): Likewise.
11637 (find_variable): Likewise.
11639 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11641 Fix missing console prototype on qemu-mips.
11643 * include/grub/mips/qemu_mips/console.h: New file.
11645 2012-02-27 Matthew Garrett <mjg@redhat.com>
11646 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11648 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
11649 * include/grub/efi/efi.h: Likewise.
11650 * include/grub/efi/api.h: Add guid for EFI-specified variables.
11651 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
11652 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
11653 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
11654 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
11655 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
11657 2012-02-27 Matthew Garrett <mjg@redhat.com>
11659 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
11661 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11663 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
11666 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11668 * configure.ac: Remove inappropriate use of program_transform_name
11669 on grubdir and bootdir but allow explicit specification of those
11672 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11674 * util/grub-mknetdir.in (grub_prefix): Removed.
11675 (subdir): Use @bootdirname@ and @grubdirname@.
11677 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11679 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
11681 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11683 * po/POTFILES.in: Regenerated.
11685 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11687 Remove improper use of program_transform_name on pkglibrootdir.
11689 * configure.ac (pkglibrootdir): Removed.
11690 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
11691 * util/grub-mkimage.c: Likewise.
11693 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11695 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
11698 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11700 * util/grub-install.in: Use file identifier if no UUID is available
11701 or user explicitly prompted for it.
11703 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
11705 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
11706 (freebsd_get_zfs): New function.
11707 (grub_freebsd_boot): Pass zfs UUID.
11708 (grub_cmd_freebsd): Set zfs UUID.
11710 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11712 * conf/Makefile.common (platformdir): Base on pkglibdir and not
11715 2012-02-27 Mike Gilbert <floppym@gentoo.org>
11717 Add configure flag to control libzfs integration.
11719 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
11721 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11723 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
11725 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
11728 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11730 Remove grub_{modname}_init and grub_{modname}_fini. They should never
11731 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
11732 be used on non-modules.
11734 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
11735 Rename to grub_boot_init.
11736 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
11737 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
11738 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
11739 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
11740 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
11741 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
11742 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
11743 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
11745 (grub_machine_init): Remove empty inits.
11746 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
11748 (grub_machine_init): Remove empty inits.
11749 * grub-core/term/arc/console.c: Remove explicit proto.
11750 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
11751 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
11752 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11753 grub_at_keyboard_fini.
11754 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
11755 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
11756 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11758 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
11759 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
11760 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11762 * grub-core/term/ieee1275/console.c: Remove explicit proto.
11763 * grub-core/term/serial.c (GRUB_MOD_INIT)
11764 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
11765 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11767 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
11768 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
11769 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11770 grub_terminfo_fini.
11771 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
11772 (GRUB_MOD_FINI): Likewise.
11773 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
11774 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
11775 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11776 grub_video_radeon_fuloong2e_fini.
11777 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
11778 [LOONGSON]: Rename to grub_video_sis315pro_init.
11779 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11780 grub_video_sis315pro_fini.
11781 * grub-core/video/sm712.c (GRUB_MOD_INIT)
11782 [LOONGSON]: Rename to grub_video_sm712_init.
11783 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11784 grub_video_sm712_fini.
11785 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
11786 (grub_at_keyboard_fini): Likewise.
11787 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
11788 Don't declare grub_{modname}_init.
11789 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
11790 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
11792 (grub_keylayouts_fini) [!EMU]: Likewise.
11793 * include/grub/serial.h (grub_serial_init) [!EMU]:
11795 (grub_serial_fini) [!EMU]: Likewise.
11796 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
11798 (grub_terminfo_fini) [!EMU]: Likewise.
11799 * include/grub/video.h (grub_font_init) [!EMU]:
11801 (grub_font_fini) [!EMU]: Likewise.
11802 (grub_gfxterm_init) [!EMU]: Likewise.
11803 (grub_gfxterm_fini) [!EMU]: Likewise.
11804 (grub_video_sm712_init) [!EMU]: Likewise.
11805 (grub_video_sm712_fini) [!EMU]: Likewise.
11806 (grub_video_sis315pro_init) [!EMU]: Likewise.
11807 (grub_video_sis315pro_fini) [!EMU]: Likewise.
11808 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
11809 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
11811 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11813 Make nand a prefix for nand devices.
11815 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
11817 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11819 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
11820 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
11822 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11824 * include/grub/env.h (grub_env_find): Remove prototype.
11825 * grub-core/kern/env.c (grub_env_find): Make static.
11826 (grub_env_set): Remove useless set.
11828 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11830 * grub-core/kern/i386/realmode.S: Remove useless align.
11832 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11834 * include/grub/dl.h (grub_dl_load_file): Don't export.
11836 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11838 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
11841 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11843 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
11845 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
11846 not reloading whole superblock but only the part which is really needed.
11847 Remove useless grub_errors.
11848 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
11851 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11853 Don't export grub_get_rtc.
11855 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
11856 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
11858 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11860 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
11862 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11864 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
11865 argument since it can be deduced from diskfilter. All users updated.
11867 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11871 * include/grub/list.h (grub_prio_list): Removed.
11872 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
11873 GRUB_COMMAND_PRIO_MASK.
11874 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
11875 GRUB_COMMAND_FLAG_ACTIVE.
11876 (grub_prio_list_insert): Removed.
11877 (grub_prio_list_remove): Likewise.
11878 (GRUB_AS_PRIO_LIST): Likewise.
11879 (GRUB_AS_PRIO_LIST_P): Likewise.
11880 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
11881 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
11882 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
11883 * grub-core/kern/command.c (grub_register_command_prio): Inline
11884 the prio_list code.
11885 (grub_unregister_command): Likewise.
11887 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11889 Fix interrupt mixup from previous commit.
11891 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
11892 (grub_realidt): New var.
11893 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
11895 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
11897 (grub_relocator16_boot): Set grub_relocator16_idt.
11898 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
11899 (LOCAL(realidt)): ... this.
11900 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
11901 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
11902 (grub_realidt): New variable.
11904 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11906 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
11907 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
11908 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
11909 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
11911 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
11912 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
11913 * po/POTFILES.in: Regenerate.
11915 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11917 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
11920 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11922 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
11924 (add_length): Likewise.
11926 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11927 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
11929 GDB serial and backtrace support.
11931 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
11932 (prot_to_real): Likewise.
11933 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
11934 * grub-core/Makefile.core.def (backtrace): New module.
11936 * grub-core/gdb/cstub.c: New file.
11937 * grub-core/gdb/gdb.c: Likewise.
11938 * grub-core/gdb/i386/idt.c: Likewise.
11939 * grub-core/gdb/i386/machdep.S: Likewise.
11940 * grub-core/gdb/i386/signal.c: Likewise.
11941 * grub-core/lib/i386/backtrace.c: Likewise.
11942 * grub-core/lib/backtrace.c: Likewise.
11943 * include/grub/backtrace.h: Likewise.
11944 * include/grub/gdb.h: Likewise.
11945 * include/grub/i386/gdb.h: Likewise.
11947 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11949 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
11951 (add_length): Likewise.
11952 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
11953 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
11955 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
11956 __argp_get_display_len.
11958 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11960 $"..." support in scripts.
11962 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
11963 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
11964 * grub-core/script/yylex.l: Likewise.
11965 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
11968 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11970 * gentpl.py: Remove obsolete pkglib_DATA handling.
11972 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11974 Don't transform PACKAGE_TARNAME following a discussion on autoconf
11977 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
11978 * util/grub-kbdcomp.in: Likewise.
11979 * util/grub-mkconfig.in: Likewise.
11980 * util/grub-mkconfig_lib.in: Likewise.
11981 * util/grub-mknetdir.in: Likewise.
11982 * util/grub-mkrescue.in: Likewise.
11983 * util/grub-mkstandalone.in: Likewise.
11984 * util/grub-reboot.in: Likewise.
11985 * util/grub-set-default.in: Likewise.
11986 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11988 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11990 Remove GRUB_PREFIX.
11992 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
11993 * util/grub.d/00_header.in: Compute prefix in the only place it's still
11994 used for backward compatibility.
11996 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11998 Add new all_video module.
12000 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12001 * grub-core/Makefile.core.def (all_video): New module.
12002 * grub-core/genmoddep.awk: Generate dependency of all_video from
12004 * grub-core/lib/fake_module.c: New file.
12005 * grub-core/normal/main.c (features): Add feature_all_video_module.
12006 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12007 don't do explicit search again.
12008 insmod all_video in load_video if available.
12010 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12012 Another round of string clarification and adding TRANSLATORS comments.
12014 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12016 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12018 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12020 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12022 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12023 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12025 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12027 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12028 trailing newline implicitly. All users updated.
12030 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12032 Implement serial on IEEE1275 and EFI.
12034 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12035 on emu. Mention arc and emu as the only platforms without serial
12037 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12038 ieee1275 platforms.
12039 * grub-core/term/efi/serial.c: New file.
12040 * grub-core/term/ieee1275/serial.c: Likewise.
12041 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12042 specification if no ns8250 driver is available.
12043 (grub_cmd_serial): Likewise.
12044 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12045 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12046 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12047 (grub_efi_parity_type_t): New type.
12048 (grub_efi_stop_bits_t): Likewise.
12049 (grub_efi_serial_io_interface): New struct.
12050 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12051 available for all interfaces.
12052 Add EFI and IEEE1275 fields.
12053 (grub_ofserial_init): New proto.
12054 (grub_efiserial_init): Likeiwse.
12055 * util/grub.d/00_header.in: Don't check for the presence of serial
12058 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12060 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12061 name as if it was an alias.
12063 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12065 * grub-core/commands/lsacpi.c (options): Fix typo.
12067 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12069 Convert grub-emu to argp.
12071 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12073 * util/argp_common.c: Rename to ...
12074 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12075 Add missing includes.
12076 * grub-core/kern/emu/main.c: Convert to argp.
12077 * po/POTFILES.in: Regenerate.
12078 * util/grub-install.in (usage): Make first letter lowcase in messages
12080 * util/grub-setup.c (options): Likewise.
12082 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12084 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12085 Put back accidently commented-out code.
12087 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12089 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12090 loop check using Brent algorithm.
12091 (grub_hfsplus_btree_search): Likewise.
12093 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12095 * util/grub-install.in: Fix usage of wrong device for PreP install.
12097 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12099 * conf/Makefile.common (CFLAGS_GNULIB): Add
12100 -Wno-unsafe-loop-optimizations.
12101 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12103 * grub-core/commands/legacycfg.c: Add pragma to skip
12104 -Wunsafe-loop-optimizations.
12105 (check_password_md5_real): Fix loop counter type.
12106 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12108 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12109 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12111 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12112 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12113 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12115 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12116 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12117 avoid possible infinite loops.
12118 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12119 and -Wunsafe-loop-optimizations.
12120 * grub-core/script/yylex.l: Likewise.
12121 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12122 (print_glyphs): Avoid infinite loops.
12123 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12125 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12127 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12128 to avoid infinite loop.
12129 (disp_acpi_rsdt_table): Likewise.
12131 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12133 * grub-core/font/font.c (grub_font_load): Add support for default
12134 path for fonts ($prefix/fonts).
12135 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12136 for checking if string is a path.
12137 * grub-core/normal/main.c (features): Add feature_default_font_path.
12138 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12139 * util/grub.d/00_header.in: Use default directory if possible.
12140 * util/grub-install.in: Install unicode.pf2.
12142 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12144 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12145 * po/Rules-swiss: New file.
12146 * po/swiss.sed: Likewise.
12148 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12150 * grub-core/fs/btrfs.c (find_device): Fix typos.
12151 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12152 * util/grub-mkrelpath.c (argp_parser): Likewise.
12153 Reported by: Yuri Chornoivan.
12155 2012-02-23 Dalet Omega <daletomega@gmail.com>
12157 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12158 for usual informative messages.
12160 2012-02-23 Dalet Omega <daletomega@gmail.com>
12164 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12165 * conf/Makefile.common: Define starfielddir.
12166 * configure.ac: Configure starfield.
12167 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12168 * themes/starfield/README: Likewise.
12169 * themes/starfield/blob_w.png: Likewise.
12170 * themes/starfield/boot_menu_c.png: Likewise.
12171 * themes/starfield/boot_menu_e.png: Likewise.
12172 * themes/starfield/boot_menu_n.png: Likewise.
12173 * themes/starfield/boot_menu_ne.png: Likewise.
12174 * themes/starfield/boot_menu_nw.png: Likewise.
12175 * themes/starfield/boot_menu_s.png: Likewise.
12176 * themes/starfield/boot_menu_se.png: Likewise.
12177 * themes/starfield/boot_menu_sw.png: Likewise.
12178 * themes/starfield/boot_menu_w.png: Likewise.
12179 * themes/starfield/slider_c.png: Likewise.
12180 * themes/starfield/slider_n.png: Likewise.
12181 * themes/starfield/slider_s.png: Likewise.
12182 * themes/starfield/src/blob_nw.xcf: Likewise.
12183 * themes/starfield/src/bootmenu/: Likewise.
12184 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12185 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12186 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12187 * themes/starfield/src/slider_c.xcf: Likewise.
12188 * themes/starfield/src/slider_n.xcf: Likewise.
12189 * themes/starfield/src/slider_s.xcf: Likewise.
12190 * themes/starfield/src/terminalbox/: Likewise.
12191 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12192 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12193 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12194 * themes/starfield/starfield.png: Likewise.
12195 * themes/starfield/terminal_box_c.png: Likewise.
12196 * themes/starfield/terminal_box_e.png: Likewise.
12197 * themes/starfield/terminal_box_n.png: Likewise.
12198 * themes/starfield/terminal_box_ne.png: Likewise.
12199 * themes/starfield/terminal_box_nw.png: Likewise.
12200 * themes/starfield/terminal_box_s.png: Likewise.
12201 * themes/starfield/terminal_box_se.png: Likewise.
12202 * themes/starfield/terminal_box_sw.png: Likewise.
12203 * themes/starfield/terminal_box_w.png: Likewise.
12204 * themes/starfield/theme.txt: Likewise.
12206 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12208 * util/grub.d/00_header.in: Add missing export theme.
12210 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12212 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12214 Reported by: Eren D.
12216 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12218 * conf/Makefile.common (grubdatadir): Removed.
12219 (Makefile.am): Move eveything grubdata to pkgdata.
12221 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12223 * grub-core/commands/acpihalt.c (get_sleep_type):
12224 Remove unused variable.
12226 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12228 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12229 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12230 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12231 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12232 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12233 i18n with gettext no-op.
12234 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12235 GRUB_ACPI_OPCODE_STRING_CONST.
12236 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12237 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12239 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12241 * po/POTFILES.in: Regenerate.
12243 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12245 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12246 -Wno-error=missing-noreturn.
12248 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12250 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12251 condition to avoid possibly infinite loops.
12252 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12253 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12255 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12257 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12258 condition to avoid possibly infinite loops.
12260 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12262 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12265 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12267 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12269 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12271 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12273 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12275 * util/bin2h.c (usage): Add missing attribute noreturn.
12277 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12279 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12280 if the size isn't divisible by 512.
12282 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12284 Make list_push and list_remove functions rather than inline functions
12285 to decrease size and avoid aliasing violations.
12287 * include/grub/list.h (grub_list_push): Move to ...
12288 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12289 * include/grub/list.h (grub_list_remove): Move to ...
12290 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12292 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12294 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12295 and -Wunused-result.
12297 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12299 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12300 Reported by: Seth Goldberg
12302 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12304 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12306 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12308 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12309 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12311 * docs/grub.texi (Simple configuration): Document
12312 GRUB_CMDLINE_GNUMACH.
12314 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12316 * conf/Makefile.common (platform_SCRIPTS): New variable.
12317 (platform_PROGRAMS): Likewise.
12318 * gentpl.py: Mark *,module and *.image for install.
12319 * grub-core/gdb_grub.in: Add a notice of expected environment.
12320 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12321 (gmodule.pl): Likewise.
12323 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12325 Replace grub_checkkey with grub_getkey_noblock.
12327 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12328 (grub_getkey_noblock): ... this. All users updated.
12330 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12332 * grub-core/kern/emu/console.c: Move to ...
12333 * grub-core/term/emu/console.c: ...here.
12334 (grub_ncurses_getkey): Fix return value if no key is detected.
12336 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12338 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12339 (grub_unit_test_fini): Likewise.
12340 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12342 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12344 * include/grub/test.h (GRUB_UNIT_TEST)
12346 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12348 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12349 Better error handling.
12350 (grub_script_return): Likewise.
12351 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12353 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12355 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12356 rimplicit redifinition.
12358 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12360 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12363 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12365 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12366 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12369 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12371 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12372 as GRUB_ERR_BUG. Don't malloc if no device is available.
12374 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12376 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12377 Mark calling with invalid term as GRUB_ERR_BUG.
12379 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12381 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
12382 packets rather than raising an error.
12384 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12386 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
12389 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12391 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
12392 diagnostic to dprintf.
12393 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12395 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12397 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
12400 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12402 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
12403 (grub_ntfs_iterate_dir): Likewise.
12405 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12407 Efiemu stylistic fixes and gettext.
12409 * grub-core/efiemu/i386/loadcore32.c
12410 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
12411 * grub-core/efiemu/i386/loadcore64.c
12412 (grub_arch_efiemu_relocate_symbols64): Likewise.
12413 * grub-core/efiemu/i386/pc/cfgtables.c
12414 (grub_machine_efiemu_init_tables): Likewise.
12415 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
12416 (grub_efiemu_loadcore_initXX): Add a filename argument.
12418 Improved error message.
12419 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
12420 Add a filename argument.
12422 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
12423 Reclassify double relocation as GRUB_ERR_BUG.
12425 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12427 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
12430 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12432 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
12435 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12437 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
12439 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12441 Improve string. Gettextize.
12443 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12445 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
12447 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
12449 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12451 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
12452 [GRUB_UTIL]: New function.
12453 (insert_array) [GRUB_UTIL]: Store partmaps.
12454 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
12456 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
12457 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
12458 (probe_abstraction): Print diskfilter and not raid.
12459 Reported by: Lennart Sorensen
12461 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12463 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
12464 * util/grub-mkimagexx.c (MASK3): New define.
12465 (add_value_to_slot_20b): Use MASK3.
12466 (add_value_to_slot_21): Likewise.
12467 (relocate_addresses): Fix format specification.
12468 (load_image): Explicitly init symtab_section.
12470 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12472 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
12473 (grub_util_biosdisk_get_grub_dev): Fix format specification.
12475 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12477 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
12479 Reported by: Lennart Sorensen
12481 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12483 * gentpl.py: Add missing license header.
12484 * docs/grub.texi: Update copyright year.
12486 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
12488 Source grub-mkconfig_lib from the build directory at build time.
12489 Suggested by: Vladimir Serbinenko.
12491 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
12492 * util/grub-install.in: Define pkgdatadir if not already set, and source
12493 grub-mkconfig_lib from there.
12494 * util/grub-kbdcomp.in: Likewise.
12495 * util/grub-mkconfig.in: Likewise.
12496 * util/grub-mknetdir.in: Likewise.
12497 * util/grub-mkrescue.in: Likewise.
12498 * util/grub-mkstandalone.in: Likewise.
12499 * util/grub-reboot.in: Likewise.
12500 * util/grub-set-default.in: Likewise.
12501 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12503 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12505 Increase warning level.
12507 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
12508 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
12509 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
12510 (TARGET_CFLAGS): Likewise.
12511 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
12512 * grub-core/Makefile.core.def (decompressor_xz): Add
12513 -Wno-unreachable-code.
12514 (normal): Add -Wno-redundant-decls.
12515 (xzio): Add -Wno-unreachable-code.
12516 (lzopio): Add -Wno-redundant-decls -Wno-error.
12517 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
12518 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
12519 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
12520 * grub-core/kern/dl.c: Add exception to -Wcast-align.
12521 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
12522 * grub-core/kern/i386/coreboot/init.c: Add exception to
12523 -Wsuggest-attribute=noreturn.
12524 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
12525 * grub-core/kern/ia64/dl_helper.c: Likewise.
12526 * grub-core/kern/mips/dl.c: Likewise.
12527 * grub-core/kern/sparc64/dl.c: Likewise.
12528 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
12529 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
12530 (memcmp): Likewise.
12531 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
12532 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
12533 * grub-core/loader/mips/linux.c: Likewise.
12534 * grub-core/loader/multiboot_elfxx.c: Likewise.
12535 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
12536 * grub-core/video/sm712.c: Add exception to -Wcast-align.
12537 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
12538 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
12540 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
12541 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
12544 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12546 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
12549 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12551 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
12552 Avoid improper use of strings.
12553 (grub_cmd_legacy_initrdnounzip): Likewise.
12555 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12557 * include/grub/emu/misc.h (grub_util_warn): Add missing format
12559 (grub_util_info): Likewise.
12560 (grub_util_error): Likewise.
12562 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12564 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
12565 * util/grub-fstest.c (fstest): Likewise.
12567 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12569 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
12570 (grub_md_sha512_real): Likewise.
12571 (grub_util_get_geli_uuid): Likewise.
12572 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
12573 (grub_util_biosdisk_open): Fix format specification.
12574 Respect format security.
12575 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
12576 (xrealloc): Likewise.
12577 (xasprintf): Likewise.
12579 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12581 * util/import_gcry.py: Include grub/crypto.h in init.c.
12583 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12585 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
12586 (generate_image): Make prefix a const char *.
12587 Fix format specifications. Respect format security.
12588 Avoid void * arithmetics.
12590 (argp_parser): Remove unused variable. Respect format security.
12591 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
12592 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
12593 (count_funcs): Remove unused variable.
12594 (relocate_addresses): Fix format specification.
12595 Disable x86-64 with elf32. Remove unused variables.
12596 (add_fixup_entry): Avoid shadowing.
12597 (make_reloc_section): Fix format specification.
12599 (locate_sections): Fix format specifications.
12600 (load_image): Avoid shadowing.
12602 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12604 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
12605 Fix format specifications. Respect format security.
12606 Don't translate already translated grub_errmsg.
12607 (argp_parser): Remove unused variable
12609 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12611 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
12613 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12615 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
12616 (main): Likewise. Use xmalloc. Respect format security.
12618 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12620 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
12622 (argp_parser): Remove unused variable.
12624 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12626 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
12627 (add_pixel): Make static.
12628 (add_font): Likewise.
12629 (write_string_section): Make name and str a const char *.
12630 (write_be16_section): Make name a const char *.
12631 (print_glyphs): Make static.
12632 (write_font_ascii_bitmap): Likewise.
12633 (write_font_width_spec): Likewise.
12634 (write_font_pf2): Likewise.
12635 (argp_parser): Remove unused variable.
12636 Respect format security.
12637 (main): Avoid shadowing. Respect format security.
12639 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12641 * util/grub-editenv.c (argp_parser): Make static.
12642 (create_envblk_file): Use xmalloc.
12643 (open_envblk_file): Likewise.
12644 Resepect format security.
12645 (set_variables): Respect format security.
12647 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12649 * util/getroot.c (grub_find_device): Respect format security.
12650 (get_mdadm_uuid): Remove unused variable.
12651 (grub_util_pull_device): Dont call gettext on already translated
12653 (find_system_device): Remove unused variable.
12654 (grub_util_get_grub_dev): Likewise.
12655 (grub_make_system_path_relative_to_its_root): Respect format security.
12657 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12659 * util/grub-fstest.c (execute_command): Make first argument
12661 (read_file): Avoid shadowing.
12662 Reuse underlying error message if device open fails.
12663 (cmd_cmp): Respect format security.
12664 (root): Make const char *.
12665 (fstest): Remove args argument and use global copy.
12666 Respect format security.
12667 (argp_parser): Make static.
12668 (main): Make default_root const char *.
12670 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12672 * util/grub-mount.c (root): Make const char *.
12673 (execute_command): Make first argument a const char *.
12674 (fuse_init): Respect format security.
12675 (argp_parser): Make static. Remove unused variable.
12676 (main): Make default_root a const char *.
12677 Respect format security.
12679 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12681 * util/grub-probe.c (probe): Don't call gettext on already translated
12683 Remove unused variables.
12684 (argp_parser): Remove unused variable.
12686 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12688 * util/grub-script-check.c (argp_parser): Remove unused variable.
12689 (main): Rename read to curread to avoid shadowing.
12691 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12693 * util/misc.c (grub_util_write_image_at): Fix format specification.
12694 (grub_util_write_image): Likewise.
12695 (grub_script_execute_argument_to_string): Removed (unused).
12696 (grub_script_execute_menuentry): Likewise.
12697 (grub_putchar): Likewise.
12699 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12701 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
12702 (FUNCTION) [GRUB_UTIL]: Likewise.
12703 (VARIABLE) [GRUB_UTIL]: Likewise.
12705 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12707 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
12708 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
12710 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12712 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
12715 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12717 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
12718 (LzmaEnc_SaveState): Removed (unused).
12719 (LzmaEnc_RestoreState): Likewise.
12720 (LzmaEnc_InitPriceTables): Made static.
12721 (LzmaEnc_Construct): Likewise.
12722 (LzmaEnc_FreeLits): Likewise.
12723 (LzmaEnc_Destruct): Likewise.
12724 (LzmaEnc_Init): Likewise.
12725 (LzmaEnc_InitPrices): Likewise.
12726 (LzmaEnc_Finish): Likewise.
12727 (LzmaEnc_PrepareForLzma2): Removed (unused).
12728 (LzmaEnc_MemPrepare): Likewise.
12729 (LzmaEnc_GetNumAvailableBytes): Likewise.
12730 (LzmaEnc_GetCurBuf): Likewise.
12731 (LzmaEnc_CodeOneMemBlock): Likewise.
12733 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12735 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
12736 (grub_util_ldm_embed): Likewise.
12738 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12740 * util/grub-editenv.c (print_var): Rename name to varname to
12742 (main): Rename index to curindex to avoid shadowing.
12743 Make filename a const char *.
12745 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12747 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
12748 to arg_getline to avoid shadowing.
12750 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12752 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
12753 disk_ to avoid shadowing.
12755 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12757 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
12758 curindex to avoid shadowing.
12760 (MatchFinder_GetNumAvailableBytes): Make static.
12762 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12764 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
12767 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12769 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
12770 argument from encrypt to do_encrypt to avoid shadowing.
12772 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12774 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
12775 incorrect nesting of #if's.
12777 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12779 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
12780 checks which are always false on some platforms.
12781 (grub_cmd_lsacpi): Likewise.
12782 * grub-core/kern/misc.c (grub_strtoul): Likewise.
12783 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
12786 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12788 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
12789 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
12791 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12793 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
12794 re_dfa_t to avoid breaking alignment invariants.
12795 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
12796 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
12798 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12800 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
12801 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
12803 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12805 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
12808 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12810 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
12811 conserve alignment invariants.
12812 (grub_ehci_ehcc_read16): Likewise.
12813 (grub_ehci_oper_read32): Likewise.
12814 (grub_ehci_oper_write32): Likewise.
12815 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
12816 Conserve alignment invariants.
12818 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12820 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
12821 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
12824 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12826 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
12827 Remove unused variable.
12829 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12831 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
12834 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12836 * include/grub/net.h: Remove double declarations.
12838 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12840 Remove "payload" command in ia64 Linux loader since I couldn't
12841 find any evidence of it being used for anything.
12842 Replace "relocate" command with an environment variable
12844 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
12846 (ia64_boot_payload): Removed.
12847 (last_payload): Likewise.
12848 (RELOCATE_OFF): Likewise.
12849 (RELOCATE_ON): Likewise.
12850 (RELOCATE_FORCE): Likewise.
12851 (relocate): Likewise.
12852 (free_pages): Don't free payloads.
12853 (grub_load_elf64): Use common error messages.
12854 Use "linux_relocate" variable.
12855 Increase the space after boot_params.
12856 (grub_cmd_payload): Removed.
12857 (grub_cmd_relocate): Likewise.
12858 (grub_cmd_fpswa): Improve messages.
12859 (cmd_payload): Removed.
12860 (cmd_relocate): Likewise.
12861 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
12862 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
12864 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12866 Convert UHCI to DMA framework.
12868 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
12869 (grub_uhci_pci_iter): Fill new members
12870 (grub_alloc_td): Use P2V and V2P functions.
12871 (grub_free_queue): Likewise.
12872 (grub_alloc_qh): Likewise.
12873 (grub_uhci_setup_transfer): Likewise.
12874 (grub_uhci_check_transfer): Likewise.
12876 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12878 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
12879 Remove assignment in if while on it.
12881 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12883 * util/grub-mkstandalone.in: Fix modules directory.
12885 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12887 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
12889 (argp_parser): Accept "auto" as compression specification.
12891 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12893 Fix `help' with unloaded modules.
12895 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
12896 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
12897 (grub_dyncmd_dispatcher): Small stylistic fix.
12898 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
12899 explicit help is requested.
12901 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12903 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
12904 Explicitly init restart while on it.
12906 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12908 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
12911 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12913 * util/grub-mknetdir.in: Use . rather than source for POSIX
12916 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12918 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
12920 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12922 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
12925 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12927 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
12930 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12932 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
12934 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12936 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
12937 iteration of partitions.
12939 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12941 Improve gettext support. Stylistic fixes and error handling fixes while
12944 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12946 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
12947 part. Instead setup the correct stack in RM.
12948 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
12950 * include/grub/i386/relocator_private.h: New file.
12952 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12954 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
12956 * util/grub-fstest.c (options): Add missing DEVICE part.
12958 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12960 Clarify and unify messages.
12962 * grub-core/commands/hashsum.c (options): Unify messages.
12963 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
12964 literal-only message as translatable.
12965 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
12966 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
12967 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
12969 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
12970 key, not the key used to unlock. Clarify what it's used for.
12971 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
12972 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
12973 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
12974 * util/grub-editenv.c (options): Unify "verbose" message.
12975 * util/grub-fstest.c (read_file): Unify error message.
12976 (fstest): Add quotes around commands.
12977 (options): Unify "verbose" message.
12978 * util/grub-install.in: Add quotes around variable name.
12979 * util/grub-kbdcomp.in: Unify error message.
12980 * util/grub-mkfont.c (main): Likewise.
12981 * util/grub-mkrescue.in: Likewise.
12982 * util/grub-mklayout.c (options): Unify "verbose" message.
12983 * util/grub-mkstandalone.in: Unify help and verbose messages.
12984 * util/grub-mount.c (options): Unify "verbose" message.
12985 * util/grub-probe.c (options): Likewise.
12986 * util/grub-script-check.c (options): Likewise.
12987 * util/grub-setup.c (setup): Unify no-terminator message.
12988 (options): Use DEVICE and not DEV.
12989 Unify "verbose" message.
12990 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
12992 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12994 Improve and unify messages.
12996 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
12997 name. All users updated.
12998 Print filename in error.
12999 (read_device_map): Print filename in error.
13000 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13001 (grub_util_get_os_disk): Likewise.
13002 (grub_util_biosdisk_get_grub_dev): Likewise.
13003 (grub_util_check_block_device): Likewise.
13004 (grub_util_check_char_device): Likewise.
13005 (grub_make_system_path_relative_to_its_root): Likewise.
13006 * util/grub-editenv.c (create_envblk_file): Likewise.
13007 (open_envblk_file): Likewise.
13008 (write_envblk): Likewise.
13009 * util/grub-fstest.c (cmd_cp): Likewise.
13010 (cmd_cat): Likewise.
13011 (cmd_cmp): Likewise.
13012 * util/grub-menulst2cfg.c (main): Likewise.
13013 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13014 (write_font_width_spec): Likewise.
13015 (write_font_pf2): Likewise.
13016 * util/grub-mkimage.c (generate_image): New argument outname.
13018 Remove unreacheable message.
13019 (options): Unify messages.
13020 (help_filter): Likewise.
13021 * util/grub-mklayout.c (usage): Removed (unused).
13022 (main): Print filename in error.
13023 * util/grub-mkrescue.in: Fix wrong quoting.
13024 * util/grub-setup.c (setup): Print filename in error.
13025 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13026 (check_sas): Likewise.
13027 * util/misc.c (grub_util_get_fp_size): Removed.
13028 (grub_util_get_image_size): Print filename in error.
13029 (grub_util_read_at): Removed.
13030 (grub_util_read_image): Print filename in error.
13031 (grub_util_load_image): Likewise.
13032 (grub_util_write_image_at): New argument filename. All users updated.
13033 Print filename in error.
13034 (grub_util_write_image): New argument filename. All users updated.
13035 Print filename in error.
13036 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13037 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13039 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13041 * grub-core/Makefile.core.def (pxechain): New module.
13042 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13043 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13045 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13046 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13048 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13050 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13051 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13052 * include/grub/err.h (grub_error_saved): New struct.
13053 (grub_errmsg): Make array size explicit.
13054 * include/grub/misc.h (grub_error_save): New function.
13055 (grub_error_load): Likewise.
13056 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13057 (grub_error_push): Update `errno' member name.
13058 (grub_error_pop): Likewise
13059 * grub-core/net/tftp.c (tftp_data): New member save_err.
13060 (tftp_receive): Save error.
13061 (tftp_open): Restore error.
13063 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13065 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13066 to real mode down to execute A20-related code in protected mode as
13069 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13071 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13072 NULL when the argument `level' has an unexpected value.
13074 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13076 Move platform-dependent files from $prefix to $prefix/$platform.
13078 * config.h.in (GRUB_TARGET_CPU): New definition.
13079 (GRUB_PLATFORM): Likewise.
13080 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13081 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13082 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13083 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13084 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13085 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13086 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13087 * grub-core/normal/term.c (read_terminal_list): Likewise.
13088 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13090 (grub_gettext_init_ext): Likewise.
13091 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13093 * util/grub-install.in: Update directories.
13094 * util/grub-mknetdir.in: Likewise.
13095 * util/grub-mkrescue.in: Likewise.
13097 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13099 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13100 grub_error framework. All users updated.
13102 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13104 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13105 lists (by always binsearching), improve caching (cache strings
13106 used for binsearch, not only results), improve
13107 maintainability (by using more structured binary search) and correct
13110 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13112 * grub-core/script/execute.c (grub_script_return): Fix warning.
13114 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13116 * grub-core/script/execute.c (grub_script_return): Fix potential
13118 Reported by: Jim Meyering.
13120 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13122 * po/POTFILES.in: Regenerate.
13123 * util/grub-install.in: Gettextize the strings missed in first pass.
13125 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13127 * Makefile.util.def (grub-mkdevicemap): Removed.
13128 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13129 * include/grub/util/deviceiter.h: Removed.
13130 * util/deviceiter.c: Likewise.
13131 * util/getroot.c (grub_util_get_os_disk): New function.
13132 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13133 replacement for EFI.
13134 * util/grub-mkdevicemap.c: Removed.
13135 * util/grub-probe.c (probe): Handle PRINT_DISK.
13136 (argp_parser): Handle -t disk.
13138 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13140 * util/grub-mkfont.c: Migrate to argp.
13141 * util/grub-mklayout.c: Likewise.
13142 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13143 * util/grub-mkrelpath.c: Likewise.
13144 * util/grub-probe.c: Likewise.
13145 * util/grub-script-check.c: Likewise.
13147 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13149 * util/grub-reboot.in: Add missing datarootdir.
13150 Add missing newline.
13151 * util/grub-set-default.in: Add missing datarootdir.
13152 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13153 * util/grub-mkrescue.in: Likewise.
13155 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13157 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13159 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13161 * util/grub-kbdcomp.in: Add decent help and gettextize.
13162 * docs/man/grub-kbdcomp.h2m: New file.
13164 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13166 Migrate grub-mkimage.c to argp.
13168 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13169 (grub-setup): Likewise.
13170 * util/grub-setup.c (print_version): Move to ...
13171 * util/argp_common.c (print_version): ... here.
13172 * util/grub-setup.c (argp_program_version_hook): Move to ...
13173 * util/argp_common.c (argp_program_version_hook): ... here.
13174 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13176 * util/grub-mkimage.c (main): Migrate to argp.
13178 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13180 * util/grub-mkrescue.in: Use same message as
13181 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13182 for better translations.
13184 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13186 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13187 options with generic grub-mkrescue.in with the goal of future
13190 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13192 * grub-core/kern/mm.c: Add missing include of i18n.h
13193 * grub-core/lib/relocator.c: Likewise.
13195 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13197 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13199 (allocate_pages): Check return value.
13200 Replace fatal with error.
13201 (grub_linux_boot): Replace printf with dprintf.
13202 Check find_mmap_size return value.
13203 Replace fatal with error.
13204 Don't call grub_machine_fini.
13205 (grub_load_elf64): Replace printf with dprintf.
13206 (grub_cmd_linux): Likewise.
13207 (grub_cmd_initrd): Likewise.
13208 (grub_cmd_payload): Likewise.
13210 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13212 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13214 * grub-core/video/radeon_fuloong2e.c
13215 (grub_video_radeon_fuloong2e_setup): Likewise.
13216 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13217 * grub-core/video/video.c (grub_video_set_mode): Don't override
13218 standard out of memory message.
13220 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13222 NetBSD disk wedge support.
13224 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13225 [__NetBSD__]: Handle NetBSD disk wedges.
13226 * util/getroot.c (convert_system_partition_to_system_disk)
13227 [__NetBSD__]: Likewise.
13229 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13231 * util/grub-mkconfig.in: Use umask rather than chmod to create
13232 grub.cfg.new to avoid insecure grub.cfg.
13234 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13236 * grub-core/commands/ls.c: Gettextize.
13237 * grub-core/commands/setpci.c: Likewise.
13238 * grub-core/commands/videotest.c: Likewise.
13239 * grub-core/disk/geli.c: Likewise.
13240 * grub-core/kern/mm.c: Likewise.
13241 * grub-core/lib/relocator.c: Likewise.
13242 * grub-core/loader/efi/appleloader.c: Likewise.
13243 * grub-core/loader/i386/xnu.c: Likewise.
13244 * grub-core/loader/ia64/efi/linux.c: Likewise.
13245 * grub-core/loader/xnu.c: Likewise.
13246 * grub-core/net/dns.c: Likewise.
13247 * grub-core/net/net.c: Likewise.
13248 * grub-core/script/lexer.c: Likewise.
13249 * grub-core/script/parser.y: Likewise.
13250 * grub-core/script/yylex.l: Likewise.
13251 * util/getroot.c: Likewise.
13252 * util/grub-setup.c: Likewise.
13254 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13256 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13259 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13261 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13263 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13265 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13267 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13268 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13270 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13272 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13273 * util/grub-install.in: Gettextize.
13274 * util/grub-mkconfig.in: Likewise.
13275 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13277 (grub_warn): Gettextize.
13278 * util/grub-mknetdir.in: Gettextize.
13279 * util/grub-mkrescue.in: Likewise.
13280 * util/grub-mkstandalone.in: Likewise.
13281 * util/grub-reboot.in: Likewise.
13282 * util/grub-set-default.in: Likewise.
13283 * util/grub.d/00_header.in: Likewise.
13284 * util/grub.d/10_hurd.in: Likewise.
13285 * util/grub.d/10_kfreebsd.in: Likewise.
13286 * util/grub.d/10_linux.in: Likewise.
13287 * util/grub.d/10_netbsd.in: Likewise.
13288 * util/grub.d/10_windows.in: Likewise.
13289 * util/grub.d/20_linux_xen.in: Likewise.
13290 * util/grub.d/30_os-prober.in: Likewise.
13291 * po/POTFILES-shell.in: Regenerate.
13293 2012-02-03 Richard Laager <rlaager@wiktel.com>
13295 * util/grub-mkimage.c (main): Fix format-security warning.
13296 * util/grub-mkrelpath.c (main): Likewise.
13297 * util/grub-probe.c (main): Likewise.
13299 2012-02-03 Richard Laager <rlaager@wiktel.com>
13301 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13303 Put back lost PRINT_DRIVE.
13305 2012-02-03 Richard Laager <rlaager@wiktel.com>
13307 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13308 (grub_guess_root_devices): Replace strlen with sizeof.
13310 (find_root_devices_from_poolname): Remove unused variable.
13313 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13315 Support install on multi-device filesystems.
13317 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13318 (grub_guess_root_devices): ...this. Return char **. All users updated.
13319 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13321 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13322 (find_root_devices_from_poolname): ... here.
13323 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13325 (grub_guess_root_device): Rename to ...
13326 (grub_guess_root_devices): ... this. Return char **. All users updated.
13327 * util/grub-install.in: Handle multi-device filesystems.
13328 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13329 argument. All users updated.
13330 Handle multi-device filesystems.
13331 Use 'delim' as separator.
13332 Remove device check to allow filesystems on file.
13333 (main): Support -0 argument. Handle multi-device.
13334 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13335 Fix a cross-device check while on it.
13336 (arguments): Remove root_dev.
13337 (argp_parser): Remove -r.
13338 (main): Remove root_dev.
13340 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13342 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13344 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13346 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13348 Reported by: NODA, Kai <nodakai>.
13350 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13354 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13356 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13357 (grub_ehci_setup_qh): Likewise.
13358 (grub_ehci_find_qh): Likewise.
13359 (grub_ehci_transaction): Likewise.
13360 (grub_ehci_setup_transfer): Likewise.
13361 (grub_ehci_check_transfer): Likewise.
13362 (grub_ehci_portstatus): Likewise.
13363 (grub_ehci_detect_dev): Likewise.
13364 (grub_ehci_transfer_controller_data): New field td_last_phys.
13365 (grub_ehci_setup_transfer): Fill td_last_phys.
13366 (grub_ehci_check_transfer): Use td_last_phys.
13368 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13370 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13371 if no submenu is present.
13373 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13377 * include/grub/usb.h (grub_usbms_protocol_t): New values
13378 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
13379 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
13380 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
13381 (grub_usbms_dev): Add subclass, protocol and intrpt.
13382 Remove in_maxsz and out_maxsz.
13383 (grub_usbms_reset): Rename to ...
13384 (grub_usbms_bo_reset): .. this.
13385 (grub_usbms_cbi_cmd): New function.
13386 (grub_usbms_cbi_reset): Likewise.
13387 (grub_usbms_reset): Likewise.
13388 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
13389 (grub_usbms_transfer): Rename to ...
13390 (grub_usbms_transfer_bo): ... this.
13391 (grub_usbms_transfer_cbi): Likewise.
13392 (grub_usbms_transfer): Likewise.
13394 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13395 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13397 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
13398 the support for the CS5536 modification thereos and few bugfixes.
13400 * grub-core/Makefile.core.def (ehci): New module.
13401 * grub-core/bus/usb/ehci.c: New file.
13402 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
13403 port and hubaddr. All users updated.
13404 Save port and hubaddr into dev structure.
13405 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
13407 * include/grub/pci.h (grub_dma_phys2virt): New function.
13408 (grub_dma_virt2phys): Likewise.
13409 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
13411 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13413 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
13414 check as some mkfs implementations omit it.
13416 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13418 * docs/grub.texi (Unicode): Mention identifier and space limitations.
13420 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13422 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
13423 Add new member volname2.
13424 (grub_jfs_label): Use volname2 if available.
13426 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13428 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
13429 over last_mounted as seen in image generated by mkfs.nilfs2.
13430 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
13432 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13434 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
13435 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
13436 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
13438 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13440 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
13443 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13445 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
13446 subvolume name (by removing a bogus and useless check).
13448 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13450 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
13451 sizeof while on it.
13453 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13455 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
13456 (grub_scsi_read_capacity10): ... this.
13457 (grub_scsi_read_capacity16): New function.
13458 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
13460 Fix off-by-one error.
13461 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
13463 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
13464 (grub_scsi_read_capacity10): ... this.
13465 (grub_scsi_read_capacity_data): Rename to ...
13466 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
13467 (grub_scsi_read_capacity16): New struct.
13468 (grub_scsi_read_capacity16_data): Likewise.
13469 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
13470 grub_scsi_cmd_read_capacity10.
13471 New command grub_scsi_cmd_read_capacity16.
13473 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13475 SCSI >2TiB support.
13477 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
13478 (grub_scsi_write16): Likewise.
13479 (grub_scsi_read): Use read16 when necessary.
13480 (grub_scsi_write): Likewise.
13481 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
13482 (grub_scsi_write16): Likewise.
13483 (grub_scsi_cmd_t): Add READ16 and WRITE16.
13485 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13487 SCSI write support (for usbms mainly).
13489 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
13491 (grub_scsi_write): Implement.
13492 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
13494 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13496 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
13499 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13501 * grub-core/lib/posix_wrap/string.h (memchr): New function.
13503 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13505 * po/POTFILES.in: Regenerate.
13507 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13509 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
13510 with grub_printf to avoid unnecessary fatal failure.
13512 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13514 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
13515 (INT_MAX): Likewise.
13516 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
13517 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
13518 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
13519 (strcpy): Likewise.
13520 (strstr): Likewise.
13521 (strchr): Likewise.
13522 (strncpy): Likewise.
13523 (strcat): Likewise.
13524 (strncat): Likewise.
13525 (strcoll): Likewise.
13526 * include/grub/types.h (GRUB_SHRT_MAX): New define.
13527 (GRUB_INT_MAX): Likewise.
13529 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13531 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
13533 (optimize_utf8): Likewise.
13534 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
13536 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13538 * grub-core/boot/i386/pc/lnxboot.S: Use
13539 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
13540 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
13542 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
13544 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
13546 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13548 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
13549 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
13550 now to avoid double free.
13551 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
13553 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
13554 * util/grub-probe.c (escape_of_path): Always return a new copy.
13555 (print_full_name): Escape path.
13556 (probe): Don't call grub_util_devname_to_ofpath on NULL.
13557 Fix hints on abstractions.
13559 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13561 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
13562 Don't add "root" line if no compatibility hont is available.
13563 Suggested by: Seth Goldberg.
13565 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13567 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
13568 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
13569 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
13570 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
13572 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13574 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
13576 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13578 * util/grub-pe2elf.c (ehdr): Make static.
13580 (num_sections): Likewise.
13581 (offset): Likewise.
13583 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13585 Eliminate ofpath limits and possible overflows.
13587 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
13588 (OF_PATH_MAX): Removed.
13589 (MAX_DISK_CAT): New const.
13590 (find_obppath): Use allocated rather than preallocated buffer.
13591 Return result. Argument of_path removed. All users updated.
13592 Add missing fdstat.
13593 (xrealpath): New function.
13594 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
13595 Allocate rather than use preallocated buffer. All users updated.
13596 (__of_path_common): Use allocated rather than preallocatecd buffer.
13597 Return result. Argument of_path removed. All users updated.
13598 (vendor_is_ATA): Read only needed part form the file.
13599 (check_sas): Allocate depending on contents rather than fixed.
13600 (main) [STANDALONE]: Handle NULL result.
13602 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13604 * grub-core/normal/completion.c (iterate_dev): Close the disk.
13606 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13608 Cryptodisk write support.
13610 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
13611 (grub_cryptodisk_decrypt): Moved logic to ...
13612 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
13613 (grub_cryptodisk_write): Implement.
13614 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
13615 (grub_util_fd_write): ... this. Make global.
13616 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
13618 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13620 * include/grub/list.h (grub_list_remove): Don't crash if element is
13623 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13625 Rename ofconsole to console.
13627 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
13628 as sysnonym to console.
13629 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
13630 * grub-core/term/ieee1275/console.c: ... this. All users updated.
13631 Rename grub_ofconsole_ to grub_console_. All users updated
13632 (grub_console_term_output): Rename "ofconsole" to "console".
13633 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
13636 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13638 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
13640 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
13641 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
13642 GRUB_DISK_DEVICE_FILE_ID.
13644 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13646 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
13647 and improve performance.
13649 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13651 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
13652 missing ieee1275/ prefix on whole disk.
13654 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13656 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
13657 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13659 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13661 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
13663 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13665 Merge common RAID and LVM logic to an abstract diskfilter.
13666 Add LDM support using the same framework.
13668 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
13669 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
13670 (libgrubmods): Remove grub-core/disk/raid.c and
13671 grub-core/partmap/gpt.c.
13672 * grub-core/Makefile.core.def (ldm): New module.
13673 (raid): Renamed to diskfilter. All users updated.
13674 * grub-core/disk/raid.c: Moved to ...
13675 * grub-core/disk/diskfilter.c: ... here.
13676 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
13678 (find_array): Renamed to ...
13679 (find_lv): ... this. Support multi-LV. Skip nameless LVs
13680 (grub_is_array_readable): Renamed to ...
13681 (grub_is_lv_readable): ... this. Support multinode hierarchy.
13682 (insert_array): New argument id.
13683 (is_node_readable): New function.
13684 (scan_device): Rename to ...
13685 (scan_disk): .. this. Restrict to one disk.
13686 (scan_devices): New function.
13687 (grub_diskfilter_iterate): Support multi-LV.
13688 Skip invisible and nameless LVs.
13689 (grub_diskfilter_memberlist): Support multi-LV.
13690 (grub_diskfilter_read_node): New function.
13691 (grub_raid_read): Most of logic moved to ...
13692 (read_segment): ... here
13693 (read_lv): New function.
13694 (grub_diskfilter_get_vg_by_uuid): New function.
13695 (grub_diskfilter_make_raid): Likewise.
13696 * grub-core/disk/ldm.c: New file.
13697 * grub-core/disk/lvm.c (vg_list): Removed.
13698 (lv_count): Likewise.
13699 (scan_depth): Likewise.
13700 (is_lv_readable): Likewise.
13701 (grub_lvm_getvalue): Advance pointer past the number.
13702 (find_lv): Removed.
13703 (do_lvm_scan): Refactored into ...
13704 (grub_lvm_detect): ... this. Support raid.
13705 (grub_lvm_iterate): Removed.
13706 (grub_lvm_memberlist): Likewise.
13707 (grub_lvm_open): Likewise.
13708 (grub_lvm_close): Likewise.
13709 (read_lv): Likewise.
13710 (read_node): Likewise.
13711 (is_node_readable): Likewise.
13712 (is_lv_readable): Likewise.
13713 (grub_lvm_read): Likewise.
13714 (grub_lvm_write): Likewise.
13715 (grub_lvm_dev): Use diskfilter
13716 (GRUB_MOD_INIT): Likewise.
13717 (GRUB_MOD_FINI): Likewise.
13718 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
13720 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
13721 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13722 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
13723 grub_diskfilter_read_node.
13724 Fix a bug with xor.
13725 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
13726 grub_diskfilter_read_node.
13727 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
13728 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
13729 (grub_disk_dev_iterate): Move from here...
13730 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
13731 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
13733 (grub_hostdisk_find_partition_start): Likewise.
13734 (grub_hostdisk_os_dev_to_grub_drive): New function.
13735 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
13736 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
13737 * util/getroot.c (make_device_name): ... here.
13738 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
13740 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
13741 * grub-core/kern/emu/hostdisk.c
13742 (convert_system_partition_to_system_disk): Move to ...
13743 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
13744 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
13745 * util/getroot.c (device_is_wholedisk): ... here.
13746 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
13747 * util/getroot.c (find_system_device): ... here.
13748 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
13750 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
13751 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
13753 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
13755 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
13757 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
13758 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
13759 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
13761 * include/grub/raid.h: Renamed to ...
13762 * include/grub/diskfilter.h: ... this.
13763 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
13764 (GRUB_RAID_LAYOUT_*): Make into array.
13765 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
13766 (grub_diskfilter_vg): New struct.
13767 (grub_diskfilter_pv_id): Likewise.
13768 (grub_raid_member): Removed.
13769 (grub_raid_array): Likewise.
13770 (grub_diskfilter_pv): New struct.
13771 (grub_diskfilter_lv): Likewise.
13772 (grub_diskfilter_segment): Likewise.
13773 (grub_diskfilter_node): Likewise.
13774 (grub_diskfilter_get_vg_by_uuid): New proto.
13775 (grub_raid_register): Inline.
13776 (grub_diskfilter_unregister): Likewise.
13777 (grub_diskfilter_make_raid): New proto.
13778 (grub_diskfilter_vg_register): Likewise.
13779 (grub_diskfilter_read_node): Likewise.
13780 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
13781 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
13782 (grub_util_is_ldm): Likewise.
13783 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
13784 (grub_hostdisk_find_partition_start): Likewise.
13785 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
13786 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
13788 (grub_gpt_partition_map_iterate): New proto.
13789 * include/grub/lvm.h (grub_lvm_vg): Removed.
13790 (grub_lvm_pv): Likewise.
13791 (grub_lvm_lv): Likewise.
13792 (grub_lvm_segment): Likewise.
13793 (grub_lvm_node): Likewise.
13794 * util/getroot.c [...]
13795 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
13796 (probe_abstraction): Likewise.
13797 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
13798 (main): Remove dead logic.
13800 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
13802 Simplify root device discover and don't fail when trying to open
13805 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
13807 (get_diskname_from_path): Likewise.
13808 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
13811 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13813 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
13815 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13817 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
13820 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13822 * util/grub-install.in: Add missing \.
13823 Reported by: gentoofan
13825 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13827 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
13828 (direct_read): Use correct compressed size.
13829 (grub_squash_read_data): Likewise.
13831 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13833 * docs/grub.texi (Platform limitations): New section.
13834 (Platform-specific operations): Likewise.
13835 * docs/grub-dev.texi (Porting): Likewise.
13837 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13839 IEEE1275 disk write support.
13841 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
13843 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
13844 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
13845 and seek loginc to ...
13846 (grub_ofdisk_prepare): ... here.
13847 (grub_ofdisk_write): Implement.
13849 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13851 ARC disk write support.
13853 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
13854 (reopen): New argument writable. All users updated.
13855 Handle required access mode.
13856 (grub_arcdisk_write): Implement.
13857 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
13858 (grub_arc_firmware_vector): Make buffer to write a const buffer.
13860 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13862 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
13863 (read_sblock): Don't attempt to read superblocks outside the disk size.
13865 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13867 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
13868 first superblock to find the second one when possible.
13870 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13872 * util/grub-install.in: Fix an ARC bug.
13873 Print a warning if no platform-specific setup is available.
13875 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13877 Use static allocation rather than scratch pointer in reed_solomon.
13878 It decreases its size significantly and avoids a variable in .text.
13880 * grub-core/lib/reed_solomon.c (scratch): Removed.
13881 (chosenstat): New const or static array.
13883 (errpot): Likewise.
13884 (errpos): Likewise.
13887 (errvals): Likewise.
13888 (eqstat): Likewise.
13889 (pol_evaluate): Replace x with log_x argument. All users updated.
13890 (syndroms): Removed.
13891 (gauss_solve): Use statically allocated arrays.
13892 (rs_recover): Likewise.
13893 Calculate syndroms directly.
13894 (decode_block): Use statically allocated arrays.
13895 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
13896 (main) [TEST]: Allow -DTEST -DSTANDALONE.
13898 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13900 Eliminate fixed limit on reed solomon decoder length.
13902 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
13903 rather than hardcoding the address.
13904 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
13905 no_reed_solomon_length.
13906 Move gate_a20 to no-reed-solomon part.
13907 Don't force a particular size of no reed-solomon part.
13908 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
13910 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
13911 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
13913 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13915 * grub-core/commands/wildcard.c (match_files): Handle filenames
13916 without explicit device.
13917 (wildcard_expand): Don't add explicit device if not already present.
13918 * tests/grub_script_echo1.in: Add a new expansion test.
13920 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13922 Replace single-linked with double-linked lists. It results in more
13923 compact and more efficient code.
13925 * grub-core/kern/list.c (grub_list_push): Moved from here ...
13926 * include/grub/list.h (grub_list_push): ... to here. Set prev.
13927 (grub_list_remove): Moved from here ...
13928 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
13929 (grub_prio_list_insert): Set prev.
13930 * include/grub/list.h (grub_list): Add prev. All users updated.
13932 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13934 Handle newer autotools. Add some missing quotes while on it.
13936 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
13937 (pkglib_DATA): Move grub-mkconfig_lib from here ...
13938 (pkgdata_DATA): ... here.
13939 * Makefile.util.def (update-grub_lib): Removed.
13940 * conf/Makefile.common (pkglib_DATA): Removed.
13941 (pkglib_SCRIPTS): Likewise.
13942 (pkgdata_DATA): New variable.
13943 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
13945 Add missing quotes.
13946 Remove unused variable while on it.
13947 * tests/util/grub-shell.in: Likewise.
13948 * util/grub-install.in: Likewise.
13949 * util/grub-mkconfig.in: Likewise.
13950 * util/grub-mknetdir.in: Likewise.
13951 * util/grub-mkrescue.in: Likewise.
13952 * util/grub-mkstandalone.in: Likewise.
13953 * util/grub.d/00_header.in: Likewise.
13954 * util/grub.d/10_hurd.in: Likewise.
13955 * util/grub.d/10_illumos.in: Likewise.
13956 * util/grub.d/10_kfreebsd.in: Likewise.
13957 * util/grub.d/10_linux.in: Likewise.
13958 * util/grub.d/10_netbsd.in: Likewise.
13959 * util/grub.d/10_windows.in: Likewise.
13960 * util/grub.d/20_linux_xen.in: Likewise.
13961 * util/grub.d/30_os-prober.in: Likewise.
13962 * util/update-grub_lib.in: Removed.
13964 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
13966 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
13967 a workaround for intel problem.
13969 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
13970 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
13971 2012-01-23 pfsmorigo
13973 * util/grub-install.in: Support dd'in into PreP partition.
13974 * util/grub-probe.c (probe): Support discovering partition type.
13975 (main): Support -t msdos_parttype.
13977 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
13979 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
13980 infinite recursion using counter.
13981 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
13982 init to skip it if the magic check fails.
13983 (dec_stream_header): Init s->crc32.
13985 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13986 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
13987 2012-01-22 Richard Laager <rlaager@wiktel.com>
13989 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
13991 (find_bestub): Determine correct size.
13992 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
13993 (scan_disk): Align the size down.
13994 Call check pool before find_bestub to have ashift.
13996 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13998 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
13999 dprintf in no-malloc zone.
14001 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14003 * configure.ac: Add back in test for limits.h.
14005 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14007 Support 4K-sector NTFS.
14009 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14010 (grub_ntfs_data): Remove blocksize.
14011 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14012 Remove data argument. All users updated.
14014 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14016 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14017 being in .text to avoid dprel references.
14018 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14019 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14020 (grub_arch_highmemsize): Likewise.
14021 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14022 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14023 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14025 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14027 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14029 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14030 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14032 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14034 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14036 (grub_set_datetime_cmos): Likewise.
14038 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14040 Make XZ compression parameters dependent on target and not host CPU.
14042 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14043 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14045 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14047 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14048 set but not used variable.
14050 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14052 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14053 created when no uuid support is compiled into mkfs.reiser.
14055 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14057 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14058 (utf8_to_macroman): Do the opposite.
14059 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14061 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14063 * configure.ac: Refise build qemu_mips w/o unifont.
14065 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14067 Eliminate grub_min/grub_max prone to overflow usage.
14069 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14070 (poll_nonroot_hub): Likewise.
14071 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14072 (grub_affs_label): Likewise.
14073 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14074 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14075 (grub_hfs_label): Likewise.
14076 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14077 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14078 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14079 (zap_leaf_array_get): Likewise.
14080 (dnode_get_path): Likewise.
14081 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14082 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14083 * grub-core/script/execute.c (grub_script_break): Likewise.
14084 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14086 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14087 * include/grub/misc.h (grub_min): Removed.
14088 (grub_max): Likewise.
14090 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14092 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14095 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14097 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14099 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14101 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14103 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14105 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14106 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14108 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14110 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14111 rather than a hack for grub_strncasemap.
14113 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14115 Support multiple initrds
14116 Note: part of this was accidently committed in r3739.
14118 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14120 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14121 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14122 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14123 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14124 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14126 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14128 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14129 disks with unknown size.
14130 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14132 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14134 Remove defines pertaining to arbitrary limits not affecting GRUB
14137 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14138 (EXT2_MAX_SYMLINKCNT): Likewise.
14139 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14140 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14141 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14142 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14143 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14144 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14145 (DN_MAX_OBJECT_SHIFT): Likewise.
14146 (DN_MAX_OFFSET_SHIFT): Likewise.
14147 (DN_MAX_OBJECT): Likewise.
14148 (DNODES_PER_LEVEL_SHIFT): Likewise.
14149 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14150 (SPA_MAXBLOCKSIZE): Likewise.
14151 (SPA_BLOCKSIZES): Likewise.
14152 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14153 (MZAP_MAX_BLKSZ): Likewise.
14155 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14157 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14158 handle NULL appropriately.
14161 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14165 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14167 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14168 * configure.ac: Fix efiemu check.
14170 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14172 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14174 Reported by: adamwill
14176 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14178 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14180 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14182 Fix handling of wide characters in gfxterm.
14184 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14185 (clear_char): Likewise.
14186 (paint_char): Skip code == NULL chars.
14187 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14189 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14191 * grub-core/normal/charset.c: Move comment to right place.
14193 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14195 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14196 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14197 (grub_affs_mount): Revert the correct version checking.
14199 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14201 * docs/grub.texi (Unicode): Mention several other unsupported features.
14203 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14205 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14206 case statements as compile-time one.
14207 (direct_read): Prevent spurious warnings.
14208 (grub_squash_read_data): Likewise.
14210 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14212 Various squash4 fixes and LZO and XZ support.
14214 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14215 Add xzembed source files.
14216 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14217 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14218 (grub_squash_inode): New subtype long_dir.
14219 (SQUASH_TYPE_LONG_DIR): New inode type.
14220 (COMPRESSION): New enum.
14221 (XZBUFSIZ): New const.
14222 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14223 (read_chunk): Use data->decompress.
14224 (zlib_decompress): New function.
14225 (lzo_decompress): Likewise.
14226 (xz_decompress): Likewise.
14227 (squash_mount): Set new data fields.
14228 (grub_squash_iterate_dir): Handle long dir.
14229 (squash_unmount): Free xzdec and xzbuf.
14230 (grub_squash_open): Check ino type.
14231 (direct_read): Stylistic fixes. Use data->decompress.
14232 (grub_squash_read_data): Likewise.
14233 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14234 (get_byte): Likewise.
14235 (grub_zlib_disk_read): Removed.
14236 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14237 (GRUB_POSIX_BOOL_DEFINED): New define.
14238 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14239 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14240 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14241 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14243 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14245 Don't override more informative errors.
14247 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14248 * grub-core/font/font.c (open_section): Likewise.
14249 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14250 filename. Don't override errors.
14251 (grub_cmd_openbsd_ramdisk): Don't override errors.
14252 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14253 (grub_cmd_initrd): Likewise.
14254 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14255 (grub_cmd_initrd): Likewise.
14256 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14257 (grub_cmd_linux): Likewise.
14258 (grub_cmd_initrd): Likewise.
14259 (grub_cmd_payload): Likewise.
14260 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14261 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14262 (grub_cmd_module): Likewise.
14263 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14264 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14265 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14266 (grub_cmd_xnu_mkext): Likewise.
14267 (grub_cmd_xnu_ramdisk): Likewise.
14268 (grub_xnu_check_os_bundle_required): Likewise.
14269 (grub_xnu_load_kext_from_dir): Likewise.
14270 (grub_cmd_xnu_kextdir): Likewise.
14271 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14273 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14275 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14276 as 1024 in block size field. Found on one of my test images.
14277 Small optimisation while on it.
14279 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14281 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14282 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14283 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14284 performance fixes while on it.
14285 (grub_sfs_close): Fix memory leak while on it.
14286 (grub_sfs_label): Convert Latin1 to UTF-8.
14288 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14290 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14291 space to avoid overflows.
14292 (grub_hfs_label): Convert from macroman to UTF-8.
14294 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14296 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14298 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14300 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14302 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14304 * unicode: Import Unicode 6.0 data.
14306 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14308 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14311 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14313 Avoid cutting in the middle of UTF-8 character.
14315 * include/grub/charset.h (grub_getend): New function.
14316 * grub-core/script/function.c (grub_script_function_find): Use
14318 * grub-core/normal/completion.c (add_completion): Likewise.
14320 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14322 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14323 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14324 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14325 (GRUB_UNICODE_TAG_END): Likewise.
14326 (GRUB_UNICODE_LAST_VALID): Likewise.
14328 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14330 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14331 len and make it smaller. All users updated.
14332 * util/import_unicode.py: Put length and not end character.
14335 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14337 Make better Unicode-compliant and unify some UTF-8 code pathes.
14339 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14341 (grub_is_valid_utf8): Use grub_utf8_process.
14342 Check resulting code range.
14343 (grub_utf8_to_ucs4): Use grub_utf8_process.
14344 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14347 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14349 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14351 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14353 * docs/grub.texi (Filesystems): Mention AFS.
14355 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14357 * docs/grub.texi (Filesystems): Clarify restrictions.
14358 (Regexp): Mention non-Unicode regexp behaviour.
14359 (Other): Mention non-Unicode matching behaviour.
14361 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14363 Make HFS implementation use MacRoman.
14365 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14366 (macroman): New const array.
14367 (macroman_to_utf8): New function.
14368 (utf8_to_macroman): Likewise.
14369 (grub_hfs_find_dir): Use utf8_to_macroman.
14370 (grub_hfs_dir): Use macroman_to_utf8.
14371 Set case_insensitive.
14373 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14375 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14377 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14379 Integrate hints into autogeneration scripts.
14381 * docs/grub.texi (Filesystems): Add a hostdisk example.
14382 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
14383 (grub-probe): Add ofpath.
14384 * gentpl.py: Remove group nosparc64.
14385 * grub-core/commands/search.c (cache_entry): New struct.
14387 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
14388 * grub-core/commands/search_wrap.c (options): Add platform-specific
14390 (grub_cmd_search): Handle platform-specific hints.
14391 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
14392 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
14393 (grub_util_biosdisk_data): Likewise.
14394 (grub_util_biosdisk_open): Set device_map.
14395 (read_device_map): Handle "" as indication of no map.
14397 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
14398 (grub_util_biosdisk_get_compatibility_hint): New function.
14399 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
14400 * include/grub/emu/hostdisk.h
14401 (grub_util_biosdisk_get_compatibility_hint): New proto.
14402 * util/grub-install.in: Don't call grub-mkdevicemap.
14403 Add platform-specific hint to load.cfg.
14404 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
14405 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
14406 hints. Set root preliminary to compatibility hint, not to OS name.
14407 * util/grub-probe.c (PRINT_*): Add hints.
14408 (print): Make static.
14409 (escape_of_path): New function.
14410 (guess_bios_drive): Likewise.
14411 (guess_efi_drive): Likewise.
14412 (guess_baremetal_drive): Likewise.
14413 (print_full_name): Likewise.
14414 (probe): Handle hints.
14416 * util/ieee1275/devicemap.c: Removed.
14417 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
14419 (grub_util_devname_to_ofpath): Return NULL on failure.
14421 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
14423 * util/getroot.c (grub_util_pull_device): Fix memory leak.
14425 * po/POTFILES.in: Regenerated.
14427 Allow purely long options
14429 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
14430 (SHORT_ARG_USAGE): Likewise.
14431 (grub_arg_show_help): Compare opt with help_options.
14432 (parse_option): Receive opt as argument. If makes big simplificatons.
14435 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14437 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
14438 Restructure to avoid warning.
14440 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14442 * util/grub-install.in: Account for possible escaped comma in device
14445 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14447 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
14450 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14452 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
14453 allocation and zero-setting.
14454 (grub_ieee1275_get_devname): Check that alias is complete.
14456 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14458 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
14459 unaligned segments.
14461 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14463 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
14465 (grub_ofdisk_open): Check and discard ieee1275 prefix.
14466 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14467 Add ieee1275 prefix.
14469 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14471 * docs/grub.texi (Filesystems): Update.
14473 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14475 Support odc, newc and bigendian cpio formats.
14477 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
14478 * grub-core/Makefile.core.def (newc): New module.
14480 (cpio_be): Likewise.
14481 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
14483 (MAGIC2): Likewise.
14484 (head) [MODE_ODC]: Adapt for the format.
14485 (head) [MODE_NEWC]: Likewise.
14486 (head) [!MODE_*]: Write fields of interest as arrays.
14487 (MAGIC_USTAR): Removed.
14488 (read_number) [MODE_NEWC]: Change to hex.
14489 (read_number) [!MODE_*]: Parse binary arrays.
14490 (grub_cpio_find_file): Factor out the code for better structure and
14491 always use read_number.
14492 (grub_cpio_mount): Use MAGIC and MAGIC2.
14493 (grub_cpio_dir): Exit on first hook non-0 return.
14494 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
14495 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
14496 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
14497 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
14498 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
14499 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
14500 * grub-core/fs/newc.c: New file.
14501 * grub-core/fs/odc.c: Likewise.
14502 * grub-core/fs/cpio_be.c: Likewise.
14504 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14506 Fix handling of tar numbers occupying the whole field.
14508 * grub-core/fs/cpio.c (read_number): New function.
14509 (grub_cpio_find_file): Use read_number instead of strtoull.
14511 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14513 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
14514 occupying the whole field size.
14516 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
14518 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
14520 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14522 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
14524 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
14526 * grub-core/Makefile.core.def (lzma_decompress): Add missing
14527 TARGET_IMG_LDFLAGS.
14529 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14531 * util/getroot.c (ESCAPED_PATH_MAX): New define.
14532 (mountinfo_entry): Increase the field size to take escaping into
14534 (find_root_device_from_libzfs): Add one byte to size of strings for
14537 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14539 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
14541 * util/grub-setup.c (setup): Likewise.
14543 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14545 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
14548 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14550 * docs/grub.texi (Internationalisation): New section.
14552 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14554 * docs/grub.texi (Loopback booting): New section.
14556 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
14558 * util/grub-mkstandalone.in: Fix minor typo errors.
14560 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14562 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
14564 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
14565 net/icmp.c and net/icmp6.c.
14566 (http): New module.
14567 (priority_queue): Likewise.
14568 * grub-core/io/bufio.c: Rewritten.
14569 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
14570 TYPE_WITH_CONFIGFILE_OPTION.
14571 (legacy_commands): Add bootp and dhcp.
14572 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
14573 (grub_legacy_parse): Likewise.
14574 * grub-core/lib/priority_queue.c: New file.
14575 * grub-core/net/arp.c: Add missing license header.
14576 (arp_find_entry): Removed.
14577 (arp_find_entry): Likewise.
14578 (grub_net_arp_resolve): Rename to ...
14579 (grub_net_arp_send_request): ...this.
14580 (grub_net_arp_receive): New card argument.
14581 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
14582 Set router and DNS server.
14583 (grub_net_configure_by_dhcp_ack): Handle routing information.
14584 (grub_cmd_bootp): Set checksum.
14585 (grub_bootp_init): Remove net_dhcp.
14586 * grub-core/net/dns.c: New file.
14587 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
14589 (get_card_packet): Handle allocation.
14590 (grub_efinet_findcards): Set mtu.
14591 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
14592 (get_card_packet): Handle allocation.
14593 (emucard): Set mtu.
14594 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
14595 (GRUB_MOD_INIT): Set mtu.
14596 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
14598 (get_card_packet): Handle allocation.
14599 (grub_ofnet_findcards): Set mtu.
14600 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
14602 (grub_net_recv_ethernet_packet): Handle IPv6.
14603 * grub-core/net/http.c: New file.
14604 * grub-core/net/icmp.c: Likewise.
14605 * grub-core/net/icmp6.c: Likewise.
14606 * grub-core/net/ip.c (ip6addr): New type.
14607 (ip6hdr): Likewise.
14608 (reassemble): Likewise.
14609 (cmp): New function.
14610 (reassembles): New variable.
14611 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
14612 (id): New variable.
14613 (send_fragmented): New function.
14614 (grub_net_send_ip_packet): Rename to ...
14615 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
14617 (grub_net_recv_ip_packets): Rename to ...
14618 (handle_dgram): ... this. Check checksum. Handle non-UDP.
14619 (free_rsm): New function.
14620 (free_old_fragments): Likewise.
14621 (grub_net_recv_ip4_packets): New function.
14622 (grub_net_send_ip6_packet): Likewise.
14623 (grub_net_send_ip_packet): Likewise.
14624 (grub_net_recv_ip6_packets): Likewise.
14625 (grub_net_recv_ip_packets): Likewise.
14626 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
14627 (LINK_LAYER_CACHE_SIZE): New const.
14628 (link_layer_find_entry): New function.
14629 (grub_net_link_layer_add_address): Likewise.
14630 (grub_net_link_layer_resolve_check): Likewise.
14631 (grub_net_link_layer_resolve): Likewise.
14632 (grub_net_ipv6_get_slaac): Likewise.
14633 (grub_net_ipv6_get_link_local): Likewise.
14634 (grub_cmd_ipv6_autoconf): Likewise.
14635 (parse_ip): Handle one number representation.
14636 (parse_ip6): New functoion.
14637 (match_net): Handle IPv6.
14638 (grub_net_resolve_address): Handle IPv6 and DNS.
14639 (grub_net_resolve_net_address): Handle IPv6.
14640 (route_cmp): New function.
14641 (grub_net_route_address): Find best route.
14642 (grub_net_addr_to_str): Handle IPv6.
14643 (grub_net_addr_cmp): New function.
14644 (grub_net_add_addr): Register local route.
14645 (print_net_address): Handle net address.
14646 (grub_net_poll_cards): Retransmit TCP.
14647 (grub_net_poll_cards_idle_real): Likewise.
14648 (have_ahead): New function.
14649 (grub_net_seek_real): Use underlying seek.
14650 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
14651 * grub-core/net/tcp.c: New file.
14652 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
14653 (cmp): New function.
14655 (tftp_receive): Handle unordered input.
14656 (destroy_pq): New function.
14657 (tftp_close): Close pq.
14658 * grub-core/net/udp.c: Put missing license header.
14659 (grub_net_udp_socket): New function.
14660 (udp_socket_register): Likewise.
14661 (grub_net_udp_close): Likewise.
14662 (grub_net_recv_udp_packet): Check checksum.
14663 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
14664 * include/grub/misc.h (grub_memchr): New function.
14665 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
14666 (grub_net_card_driver): Return buf in recv.
14667 (grub_net_slaac_mac_list): New struct.
14668 (grub_network_level_protocol_id): Add ipv6.
14669 (grub_net_network_level_addr): Likewise.
14670 (grub_net_network_level_net_addr): Likewise.
14671 (grub_net_app_protocol): Add seek.
14672 (grub_net_socket): Removed.
14673 (grub_net_sockets): Likewise.
14674 (grub_net_socket_register): Likewise.
14675 (grub_net_socket_unregister): Likewise.
14676 (FOR_NET_SOCKETS): Likewise.
14677 (grub_net_add_addr): Add const.
14678 (GRUB_NET_BOOTP_*): New enum.
14679 (grub_net_addr_cmp): New proto.
14680 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
14681 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
14682 (grub_net_hwaddr_to_str): NEw proto.
14683 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
14684 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
14685 (grub_dns_init): New proto.
14686 (grub_dns_fini): Likewise.
14687 (grub_net_tcp_retransmit): Likewise.
14688 (grub_net_link_layer_add_address): Likewise.
14689 (grub_net_link_layer_resolve_check): Likewise.
14690 (grub_net_link_layer_resolve): Likewise.
14691 (grub_net_dns_lookup): Likewise.
14692 (grub_net_add_dns_server): Likewise.
14693 (grub_net_remove_dns_server): Likewise.
14694 (GRUB_NET_TRIES): New const.
14695 (GRUB_NET_INTERVAL): Likewise.
14696 * include/grub/net/arp.h: Mostly rewritten.
14697 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
14698 * include/grub/net/ip.h: Mostly rewritten.
14699 * include/grub/net/netbuff.h: Indent.
14700 * include/grub/net/tcp.h: New file.
14701 * include/grub/net/udp.h: Mostly rewritten.
14702 * include/grub/priority_queue.h: New file.
14703 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
14704 (grub_swap_bytes64_compile_time): Likewise.
14705 (grub_cpu_to_be16_compile_time): Likewise.
14706 (grub_cpu_to_be32_compile_time): Likewise.
14707 (grub_cpu_to_be64_compile_time): Likewise.
14708 (grub_be_to_cpu64_compile_time): Likewise.
14710 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
14712 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
14713 UINT_TO_PTR with cast.
14715 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14717 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
14720 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14722 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
14725 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14727 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
14730 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14732 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
14733 Add missing const attribute.
14734 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
14736 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
14739 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14741 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
14743 (serpent_setkey): Likewise.
14744 (serpent_encrypt_internal): Likewise.
14745 (serpent_decrypt_internal): Likewise.
14746 (serpent_encrypt): Don't put an alignment-increasing cast.
14747 (serpent_decrypt): Likewise.
14748 (serpent_test): Likewise.
14750 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14752 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
14754 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14756 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
14758 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
14760 (PTR_TO_UINT64): Likewise.
14761 (PTR_TO_UINT32): Likewise.
14763 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14765 * util/grub-mkimage.c (generate_image): Decrease the higher limit
14767 * util/grub-setup.c (setup): Don't add redundancy past the higher load
14770 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14772 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
14773 text_width > available width a bit more gracefully.
14775 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14777 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
14778 current address calculation.
14780 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14782 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
14784 (encode_block): Likewise.
14786 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14788 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
14791 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14793 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
14794 non-RS part to avoid RS messing with GDT.
14795 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14796 Increase to suit in realmode routines.
14798 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14800 * grub-core/kern/i386/realmode.S: Increase alignment.
14801 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
14803 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14805 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
14807 (syndroms): Compute 0 syndrom.
14808 (rs_recover): Use 0 syndrom.
14810 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14812 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
14814 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14816 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
14819 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14821 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
14823 (get_top_pad): Likewise.
14824 (get_right_pad): Likewise.
14825 (get_bottom_pad): Likewise.
14827 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14829 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
14831 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14833 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
14834 attribute as the structure isn't guaranteed to be properly aligned.
14835 (grub_efi_pci_device_path): Likewise.
14836 (grub_efi_pccard_device_path): Likewise.
14837 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
14838 specify the size of `memory_type'.
14839 (grub_efi_vendor_device_path): Likewise.
14840 (grub_efi_controller_device_path): Likewise.
14841 (grub_efi_acpi_device_path): Likewise.
14842 (grub_efi_expanded_acpi_device_path): Likewise.
14843 (grub_efi_atapi_device_path): Likewise.
14844 (grub_efi_scsi_device_path): Likewise.
14845 (grub_efi_fibre_channel_device_path): Likewise.
14846 (grub_efi_1394_device_path): Likewise.
14847 (grub_efi_usb_device_path): Likewise.
14848 (grub_efi_usb_class_device_path): Likewise.
14849 (grub_efi_i2o_device_path): Likewise.
14850 (grub_efi_mac_address_device_path): Likewise.
14851 (grub_efi_ipv4_device_path): Likewise.
14852 (grub_efi_ipv6_device_path): Likewise.
14853 (grub_efi_infiniband_device_path): Likewise.
14854 (grub_efi_uart_device_path): Likewise.
14855 (grub_efi_vendor_messaging_device_path): Likewise.
14856 (grub_efi_hard_drive_device_path): Likewise.
14857 (grub_efi_cdrom_device_path): Likewise.
14858 (grub_efi_vendor_media_device_path): Likewise.
14859 (grub_efi_file_path_device_path): Likewise.
14860 (grub_efi_protocol_device_path): Likewise.
14861 (grub_efi_piwg_device_path): Likewise.
14862 (grub_efi_bios_device_path): Likewise.
14864 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14866 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
14867 (grub_ucs4_to_utf8_alloc): Likewise.
14868 (grub_ucs4_to_utf8): Likewise.
14869 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
14870 (grub_ucs4_to_utf8_alloc): Likewise.
14872 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14874 AFFS never uses unicode.
14876 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
14877 (grub_latin1_to_utf8): New inline function.
14878 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
14880 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14882 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
14885 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14887 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
14888 (grub_squash_dirent_header): Likewise.
14889 (read_chunk): Don't double swap.
14890 (grub_squash_iterate_dir): Fix swap sizes.
14892 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14894 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
14896 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14898 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
14899 (grub_hfs_iterate_dir): Likewise.
14901 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14903 Fix video on platforms where unaligned access is forbidden.
14904 Make several optimisations while on it.
14906 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
14907 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14908 (grub_video_fbblit_replace_32bit_1bit): Likewise.
14909 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
14911 (grub_video_fbblit_replace_16bit_1bit):
14912 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14913 (grub_video_fbblit_replace_8bit_1bit): Likewise.
14914 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
14915 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
14916 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
14917 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
14918 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
14919 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
14920 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
14921 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
14922 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
14923 (grub_video_fbblit_replace_index_RGB888): Likewise.
14924 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
14925 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
14926 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
14927 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
14928 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
14929 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
14930 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
14932 (grub_video_fbblit_blend_XXX565_1bit):
14933 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14934 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
14935 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
14937 * grub-core/video/fb/video_fb.c (common_blitter)
14938 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
14939 (grub_video_fb_create_render_target_from_pointer)
14940 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
14941 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
14942 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
14944 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
14946 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14948 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
14949 HH22 and HM10 relocations.
14951 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14953 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
14955 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14957 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
14958 allocation succeeded.
14960 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14962 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
14963 argument a u8 pointer. All users updated.
14964 Handle unaligned buffers.
14966 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14968 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
14969 add_part to workaround compiler bug.
14971 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14973 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
14975 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14977 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
14978 Reserve alignment invariants.
14979 (grub_multiboot_load): Likewise.
14980 (retrieve_video_parameters): Likewise.
14981 (grub_multiboot_make_mbi): Likewise.
14983 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14985 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
14988 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14990 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
14991 (grub_pata_pio_write): Likewise.
14993 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14995 Add noreturn attributes and remove unreachable code.
14997 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
14999 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15000 code. Mark as noreturn.
15001 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15002 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15003 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15005 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15006 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15007 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15008 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15009 * include/grub/kernel.h (grub_main): Mark as noreturn.
15010 * include/grub/reader.h (grub_rescue_run): Likewise.
15012 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15014 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15015 redundant declaration.
15017 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15019 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15020 redundant declaration.
15021 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15023 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15025 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15026 to ensure alignment.
15027 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15028 alignment. Ensure tmp alignment.
15029 (grub_cmd_hdparm): Ensure buf alignment.
15030 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15031 to ensure alignment.
15032 (grub_ata_dumpinfo): Ensure text alignment.
15033 (grub_atapi_identify): Preserve alignment invariant.
15034 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15036 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15038 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15039 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15040 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15041 * include/grub/misc.h (grub_reboot)
15042 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15043 (grub_halt) [__mips__]: Likewise.
15045 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15047 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15048 Remove redundant declaration.
15049 (grub_mmap_get_post64): Likewise.
15050 (grub_mmap_get_upper): Likewise.
15051 (grub_mmap_get_lower): Likewise.
15053 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15055 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15056 uint32_t * to ensure alignment.
15057 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15059 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15061 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15062 uint16_t * to ensure alignment.
15063 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15066 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15068 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15069 to ensure alignment.
15070 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15072 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15074 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15075 Handle unaligned pointers.
15078 (fixup): Use byte access instead of v16at.
15079 (find_attr): Fix imporper usage of v32at.
15080 (read_data): Likewise.
15081 (list_file): Handle byte-swapping and unaligned strings.
15082 (grub_ntfs_label): Likewise.
15084 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15086 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15087 as it's not necessarily aligned.
15089 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15091 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15092 redundant declaration.
15093 (grub_serial_init): Likewise.
15094 (grub_terminfo_init): Likewise.
15096 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15098 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15100 (ZAP_HASH_IDX): Likewise.
15101 (ZAP_LEAF_HASH_SHIFT): Likewise.
15102 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15103 (LEAF_HASH): Likewise.
15104 (ZAP_LEAF_NUMCHUNKS): Likewise.
15105 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15106 alignment invariants. Return pointer. All users updated.
15107 (ZAP_LEAF_ENTRY): Make into inline function.
15110 (xor_out): Use grub_crypto_xor.
15111 (dnode_get_path): Use grub_get_unaligned.
15112 (nvlist_find_value): Likewise.
15113 (grub_zfs_nvlist_lookup_uint64): Likewise.
15114 (grub_zfs_nvlist_lookup_string): Likewise.
15115 (get_nvlist_size): Likewise.
15116 (grub_zfs_open): Likewise.
15117 (fill_fs_info): Likewise.
15118 (grub_zfs_dir): Likewise.
15119 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15120 alignment invariants.
15121 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15122 necessarily aligned.
15124 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15126 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15128 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15130 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15131 arithmetic to conserve alignment invariants.
15133 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15135 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15136 redundant declaration.
15137 (grub_efiemu_mm_obtain_request): Likewise.
15138 (grub_efiemu_prepare): Likewise.
15140 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15142 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15145 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15147 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15148 case of aunaligned recptr.
15149 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15151 (grub_hfsplus_btree_search): Handle unaligned index.
15153 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15155 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15156 to get freetag and skip.
15158 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15160 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15162 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15163 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15165 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15167 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15168 name for checksum and fix allocation algorithm.
15170 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15172 * include/grub/types.h (grub_properly_aligned_t): New type.
15173 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15174 (grub_get_unaligned16): Add explicit casts.
15175 (grub_get_unaligned32): Likewise.
15176 (grub_get_unaligned64): Likewise.
15177 (grub_set_unaligned16): New function.
15178 (grub_set_unaligned32): Likewise.
15180 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15182 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15184 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15186 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15187 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15188 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15190 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15192 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15195 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15197 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15198 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15200 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15202 Unify and improve RAID and crypto xor.
15204 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15205 changed to grub_crypto_xor
15206 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15207 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15208 Use bigger types when possible.
15210 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15212 * grub-core/disk/raid.c (scan_devices): Fix condition.
15214 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15216 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15217 Make name a const ptr.
15219 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15221 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15222 first argument a const pointer.
15223 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15224 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15226 (grub_children_iterate): Likewise.
15227 (grub_machine_mmap_iterate): Remove redundant declaration.
15229 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15231 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15232 (grub_cmd_acpi) [!x86]: Disable EBDA.
15234 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15236 Enable UTF8 in gnulib regexp.
15238 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15239 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15240 (isupper): Use grub_isupper.
15241 (isascii): New inline function.
15242 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15243 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15244 * grub-core/normal/charset.c (grub_utf8_process): New function.
15245 (grub_utf8_to_utf16): Use grub_utf8_process.
15246 (grub_encode_utf8_character): New function.
15247 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15248 * include/grub/charset.h (grub_utf8_process): New declaration.
15249 (grub_encode_utf8_character): Likewise.
15250 * include/grub/misc.h (grub_islower): New inline function.
15251 (grub_isupper): Likewise.
15252 (grub_strchrsub): Moved down to fix the definitions.
15254 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15256 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15259 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15261 * include/grub/loader.h (grub_loader_register_preboot_hook):
15262 Use struct preboot * and not void * for handle. All users updated.
15263 (grub_loader_unregister_preboot_hook): Likewise.
15265 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15267 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15268 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15269 UTF-16-BE. All users updated.
15270 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15271 (grub_hfsplus_iterate_dir): Likewise.
15272 (grub_hfsplus_label): Likewise.
15274 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15276 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15278 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15280 Add missing const qualifiers.
15282 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15283 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15284 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15285 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15286 (grub_lvm_check_flag): Likewise.
15287 * grub-core/efiemu/i386/coredetect.c
15288 (grub_efiemu_get_default_core_name): Likewise
15289 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15290 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15291 * grub-core/fs/ntfs.c (fixup): Likewise.
15292 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15293 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15294 (fzap_lookup): Likewise.
15295 (zap_lookup): Likewise.
15296 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15297 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15298 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15299 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15300 (grub_freebsd_add_meta_module): Likewise.
15301 (grub_cmd_freebsd_module): Likewise.
15302 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15303 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15304 (grub_xnu_writetree_get_size): Likewise.
15305 (grub_xnu_writetree_toheap_real): Likewise.
15306 (grub_xnu_find_key): Likewise.
15307 (grub_xnu_create_key): Likewise.
15308 (grub_xnu_create_value): Likewise.
15309 (grub_xnu_register_memory): Likewise.
15310 (grub_xnu_check_os_bundle_required): Likewise.
15311 (grub_xnu_scan_dir_for_kexts): Likewise.
15312 (grub_xnu_load_kext_from_dir): Likewise.
15313 * grub-core/normal/color.c (color_list): Likewise.
15314 * grub-core/normal/completion.c (current_word): Likewise.
15315 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15316 * grub-core/term/serial.c (grub_serial_find): Likewise.
15317 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15318 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15320 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15321 (grub_freebsd_add_meta_module): Likewise.
15322 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15323 * include/grub/net.h (grub_net_card_driver): Likewise.
15324 (grub_net_card): Likewise.
15325 (grub_net_app_protocol): Likewise.
15326 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15327 * include/grub/serial.h (grub_serial_find): Likewise.
15328 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15329 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15330 (grub_xnu_create_value): Likewise.
15331 (grub_xnu_find_key): Likewise.
15332 (grub_xnu_scan_dir_for_kexts): Likewise.
15333 (grub_xnu_load_kext_from_dir): Likewise.
15335 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15336 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15337 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15338 Moved from here ...
15339 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15341 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
15343 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15345 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15347 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15348 (read_device): Fix size calculation.
15350 2011-11-25 Robert Millan <rmh@gnu.org>
15352 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15353 (find_root_device_from_libzfs): Add zpool output parser to be used
15354 as fallback when libzfs isn't available.
15356 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15358 * po/Makefile.in.in: Add missing escape-continuation.
15360 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15362 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15364 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15366 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15368 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15370 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15372 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15374 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15376 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15378 * grub-core/lib/adler32.c: Add missing license specification.
15379 * grub-core/lib/crc64.c: Likewise.
15380 * grub-core/loader/i386/pc/plan9.c: Likewise.
15381 * grub-core/partmap/plan.c: Likewise.
15383 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
15385 Add facility to debug GRUB with gdb under qemu.
15387 * grub-core/gdb_grub.in: New file.
15388 * grub-core/gmodule.pl.in: Likewise.
15389 * grub-core/Makefile.core.def (gmodule.pl): New script.
15390 (gdb_grub): Likewise.
15392 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15394 * util/grub-mount.c (argp_parser): Accept relative pathes.
15395 * util/grub-fstest.c (argp_parser): Likewise.
15397 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15401 * Makefile.util.def (libgrubmods): Add
15402 grub-core/partmap/plan.c.
15403 * docs/grub.texi: Notice Plan9 support.
15404 * grub-core/Makefile.core.def (plan9): New module.
15405 (part_plan): Likewise.
15406 * grub-core/loader/i386/pc/plan9.c: New file.
15407 * grub-core/partmap/plan.c: Likewise.
15408 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
15410 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
15411 * include/grub/mm.h (grub_extend_alloc): New inline function.
15413 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15415 Make Reed-Solomon faster by using power of generator representation of
15418 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
15419 (gf_double_t): Likewise.
15420 (gf_invert): Removed.
15421 (gf_powx): New array.
15422 (gf_powx_inv): Likewise.
15423 (scratch): Move higher.
15424 (gf_reduce): Removed.
15425 (gf_mul): Use powx.
15426 (gf_invert): Likewise.
15427 (init_inverts): Replaced with ...
15428 (init_powx): ...this. All users updated.
15429 (pol_evaluate): Replace multiplications with additions.
15430 (rs_encode): Likewise.
15431 (gauss_eliminate): Call gf_invert.
15432 (grub_reed_solomon_add_redundancy): Call init_powx.
15433 (grub_reed_solomon_recover): Call init_powx unconditionally.
15435 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15437 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
15439 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15441 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
15442 disk->partiton for safety.
15444 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15446 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
15448 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
15450 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15452 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
15454 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15456 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
15458 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15460 Fix spaces handling in proc/self/mountinfo.
15462 * util/getroot.c (unescape): New function.
15463 (grub_find_root_device_from_mountinfo): Use unescape.
15465 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15467 Support ZFS embedding.
15469 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
15470 (grub_zfs_fs): Register grub_zfs_embed.
15472 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15474 Fix MIPS compilation.
15476 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
15477 * include/grub/offsets.h: Rename decompressor fields from
15478 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
15479 * util/grub-mkimage.c (image_targets): Use new names.
15481 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15483 Defer multiboot device parsing until we're in compressed part.
15485 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
15486 bsd_part. setdevice has fallen into disuse.
15487 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
15488 (bsd_part): Likewise.
15489 (boot_dev): New variable.
15490 (multiboot_trampoline): Don't parse multiboot device.
15491 Pass multiboot device in %edx.
15492 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
15494 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
15496 * grub-core/kern/i386/pc/startup.S: Save edx.
15497 (grub_boot_drive): Removed.
15498 (grub_install_dos_part): Likewise.
15499 (grub_install_bsd_part): Likewise.
15500 (grub_boot_device): New variable.
15501 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
15502 (grub_install_bsd_part): Likewise.
15503 (grub_boot_drive): Likewise.
15504 (grub_boot_device): New variable.
15505 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
15507 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
15508 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
15509 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
15510 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
15511 * util/grub-install.in: Remove redundant condition.
15513 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15515 Fix bug introduced by previous commit.
15517 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
15519 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15521 Use decompressors framework on i386-pc. It increases core size
15522 by 46 bytes but improves compatibility and maintainability.
15524 * grub-core/Makefile.core.def (lzma_decompress): New image.
15525 (kernel): Add i386_pc_ldflags.
15526 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
15527 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
15528 to real_to_prot, prot_to_real and device info.
15529 * include/grub/offsets.h: Renamed decompressor offsets.
15530 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
15531 (image_target_desc): Remove raw_size and rename decompressor fields.
15532 (compress_kernel): Handle lzma.
15533 (generate_image): Handle decompressors on i386-pc.
15535 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15537 * configure.ac: Add -fno-asynchronous-unwind-tables.
15539 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15541 Move assembly code to C by using intwrap. It increases core size
15542 by 88 bytes but improves compatibility and maintainability.
15544 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
15545 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
15546 ... here. Translated to C.
15547 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
15548 * grub-core/term/i386/pc/console.c (grub_console_getkey):
15549 ... here. Translated to C.
15550 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
15551 * grub-core/term/i386/pc/console.c (grub_console_getxy):
15552 ... here. Translated to C.
15553 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
15554 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
15555 ... here. Translated to C.
15556 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
15557 * grub-core/term/i386/pc/console.c (grub_console_cls):
15558 ... here. Translated to C.
15559 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
15560 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
15561 ... here. Translated to C.
15562 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
15563 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
15565 * grub-core/term/i386/pc/console.c (int10_9): New function.
15566 (grub_console_putchar): Likewise.
15567 * include/grub/i386/pc/console.h: Removed the not anymore shared
15570 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15572 Move grub_chainloader_real_boot out of the kernel.
15574 * grub-core/Makefile.am: Remove machine/loader.h.
15575 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
15577 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
15579 (grub_relocator16_keep_a20_enabled): Likewise.
15580 (grub_relocator16_boot): Fill new variables.
15581 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
15582 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
15584 (grub_chainloader_unload): Likewise.
15585 (grub_chainloader_cmd): Likewise.
15586 * include/grub/i386/pc/loader.h: Removed.
15587 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
15588 and esi. All initialisers updated.
15590 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15591 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
15593 * Makefile.util.def (grub-mount): New util.
15594 * .bzrignore: Add grub-mount.
15595 * configure.ac: Check for fuse and enable grub-mount if available.
15596 * docs/man/grub-mount.h2m: New file.
15597 * util/grub-mount.c: Likewise.
15599 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15601 * grub-core/commands/efi/fixvideo.c: Gettextize.
15602 * grub-core/commands/hashsum.c: Likewise.
15603 * grub-core/commands/i386/cmostest.c: Likewise.
15604 * grub-core/commands/i386/pc/drivemap.c: Likewise.
15605 * grub-core/commands/i386/pc/lsapm.c: Likewise.
15606 * grub-core/commands/i386/pc/sendkey.c: Likewise.
15607 * grub-core/commands/lsmmap.c: Likewise.
15608 * grub-core/commands/menuentry.c: Likewise.
15609 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
15610 * grub-core/commands/setpci.c: Likewise.
15611 * grub-core/loader/i386/bsd.c: Likewise.
15612 * grub-core/loader/i386/linux.c: Likewise.
15613 * util/getroot.c: Likewise.
15614 * util/grub-editenv.c: Likewise.
15615 * util/grub-fstest.c: Likewise.
15616 * util/grub-mkfont.c: Likewise.
15617 * util/grub-mkimage.c: Likewise.
15618 * util/grub-mkpasswd-pbkdf2.c: Likewise.
15619 * util/grub-pe2elf.c: Likewise.
15620 * util/grub-probe.c: Likewise.
15621 * util/grub-setup.c: Likewise.
15622 * util/ieee1275/ofpath.c: Likewise.
15623 * util/misc.c: Likewise.
15624 * util/raid.c: Likewise.
15626 2011-11-11 Robert Millan <rmh@gnu.org>
15628 * util/getroot.c (grub_util_get_geom_abstraction): Remove
15629 __attribute__((unused)) from `os_dev', which *is* being used.
15631 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15633 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
15635 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
15636 GRUB_IA64_DL_GOT_ALIGN.
15637 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
15638 GRUB_IA64_DL_TRAMP_ALIGN.
15640 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15642 Replace grub_fatal with normal errors in i386 linux loader.
15644 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
15645 (allocate_pages): Check find_efi_mmap_size return value.
15646 (grub_e820_add_region): Return error.
15647 (grub_linux_boot): Check mmap return value.
15649 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15651 * grub-core/commands/acpihalt.c: Gettextized.
15652 * grub-core/commands/cacheinfo.c: Likewise.
15653 * grub-core/commands/cmp.c: Likewise.
15654 * grub-core/commands/efi/loadbios.c: Likewise.
15655 * grub-core/commands/gptsync.c: Likewise.
15656 * grub-core/commands/ieee1275/suspend.c: Likewise.
15657 * grub-core/commands/legacycfg.c: Likewise.
15658 * grub-core/commands/memrw.c: Likewise.
15659 * grub-core/commands/minicmd.c: Likewise.
15660 * grub-core/commands/parttool.c: Likewise.
15661 * grub-core/commands/time.c: Likewise.
15662 * grub-core/commands/videoinfo.c: Likewise.
15663 * grub-core/disk/geli.c: Likewise.
15664 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
15665 * grub-core/disk/luks.c: Likewise.
15666 * grub-core/disk/lvm.c: Likewise.
15667 * grub-core/font/font_cmd.c: Likewise.
15668 * grub-core/fs/zfs/zfscrypt.c: Likewise.
15669 * grub-core/fs/zfs/zfsinfo.c: Likewise.
15670 * grub-core/gfxmenu/view.c: Likewise.
15671 * grub-core/kern/emu/hostdisk.c: Likewise.
15672 * grub-core/kern/emu/main.c: Likewise.
15673 * grub-core/kern/emu/misc.c: Likewise.
15674 * grub-core/kern/emu/mm.c: Likewise.
15675 * grub-core/kern/mips/arc/init.c: Likewise.
15676 * grub-core/kern/mips/loongson/init.c: Likewise.
15677 * grub-core/kern/partition.c: Likewise.
15678 * grub-core/lib/i386/halt.c: Likewise.
15679 * grub-core/lib/mips/arc/reboot.c: Likewise.
15680 * grub-core/lib/mips/loongson/reboot.c: Likewise.
15681 * grub-core/loader/i386/pc/chainloader.c: Likewise.
15682 * grub-core/loader/i386/xnu.c: Likewise.
15683 * grub-core/loader/multiboot.c: Likewise.
15684 * grub-core/net/bootp.c: Likewise.
15685 * grub-core/net/net.c: Likewise.
15686 * grub-core/normal/term.c: Likewise.
15687 * grub-core/partmap/bsdlabel.c: Likewise.
15688 * grub-core/parttool/msdospart.c: Likewise.
15689 * grub-core/term/gfxterm.c: Likewise.
15690 * grub-core/term/terminfo.c: Likewise.
15691 * grub-core/video/i386/pc/vbe.c: Likewise.
15692 * util/grub-menulst2cfg.c: Likewise.
15693 * util/grub-mkdevicemap.c: Likewise.
15694 * util/grub-mklayout.c: Likewise.
15695 * util/grub-mkrelpath.c: Likewise.
15696 * util/grub-script-check.c: Likewise.
15697 * util/ieee1275/grub-ofpathname.c: Likewise.
15698 * util/resolve.c: Likewise.
15700 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15702 Support %1$d syntax.
15704 * tests/printf_unit_test.c: New file.
15705 * Makefile.util.def (printf_test): New test.
15706 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
15708 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15710 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
15713 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15715 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
15717 * grub-core/font/font.c (grub_font_load): Likewise.
15719 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15721 * util/grub-macho2img.c: Add comment concerning gettext.
15722 * grub-core/lib/legacy_parse.c: Likewise.
15724 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15726 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
15727 (grub_xvasprintf): Likewise.
15729 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15731 Add const keyword to grub_env_get and gettextize week days.
15733 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
15734 (grub_read_hook_datetime): Return const char *.
15735 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
15737 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15739 (grub_get_weekday_name): Return const char *. Call gettext.
15740 * grub-core/script/argv.c (grub_script_argv_append): Receive const
15741 char * and len as the argument. All users updated.
15742 (grub_script_argv_split_append): Receive const char *.
15743 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
15744 * include/grub/env.h (grub_env_get): Likewise.
15745 (grub_env_read_hook_t): Return const char *.
15746 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
15747 (grub_script_argv_split_append): Likewise.
15749 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15751 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
15753 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15755 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
15756 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
15758 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15760 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
15763 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15765 Fix mips compilation.
15767 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
15769 (hashes): Use in embed decoder as well (for sizes).
15770 (dec_stream_header): Fix embed decompressor logic.
15771 (dec_stream_footer): Likewise.
15773 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15775 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
15776 an error and not a fatal on unrecognised relocation types.
15778 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15780 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
15781 Issue error rather than printf on unknown arguments.
15783 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15785 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
15788 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15790 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
15793 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15795 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
15796 leftover debug printf.
15798 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15800 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
15802 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15804 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
15807 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15809 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
15811 2011-11-10 Shea Levy <slevy@tieronedesign.com>
15813 Allow all modules to perform serial IO
15815 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
15816 * include/grub/serial.h (grub_serial_port_configure): New inline
15818 (grub_serial_port_fetch): Likewise.
15819 (grub_serial_port_put): Likewise.
15820 (grub_serial_port_fini): Likewise.
15821 (grub_serial_find): New proto.
15823 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15825 Put symlink at the end of the node and fix a potential
15828 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
15829 Make symlink into an array.
15830 (set_rockridge): Set have_symlink and alloc_dirents.
15831 (grub_iso9660_read_symlink): Use new layout.
15832 (grub_iso9660_iterate_dir): Fix memory corruption.
15834 (grub_iso9660_dir): Set have_symlink.
15835 (grub_iso9660_open): Likewise.
15837 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15839 Remove local keyword.
15841 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
15842 (version_test_gt): Likewise.
15843 (version_find_latest): Likewise.
15844 (gettext_printf): Likewise.
15845 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
15847 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15849 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
15851 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15853 Fix ZFS memory and resource leaks.
15855 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
15858 (fill_vdev_info): New parameter inserted. All users updated.
15859 (check_pool_label): Likewise.
15860 (scan_disk): Likewise.
15861 (scan_devices): Close non-inserted disks.
15862 (fzap_iterate): Free l.
15863 (unmount_device): Free children descripto memory.
15865 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15867 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
15868 argument (access out of bounds).
15870 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15872 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
15875 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15877 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
15880 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15882 Fix several memory leaks.
15884 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
15885 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
15886 (grub_cpio_dir): Likewise.
15887 * grub-core/fs/fat.c (grub_fat_label): Likewise.
15888 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
15889 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
15890 (grub_romfs_label): Likewise.
15891 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
15892 (squash_unmount): New function.
15893 (grub_squash_dir): Fix memory leak.
15894 (grub_squash_open): Likewise.
15895 (grub_squash_read): Likewise.
15896 (grub_squash_mtime): Likewise.
15897 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
15898 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
15899 * util/grub-fstest.c (fstest): Likewise.
15901 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15903 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
15904 avoid accessing beyond the array.
15906 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15908 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
15910 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15912 Several AFFS fixes.
15914 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
15915 (GRUB_AFFS_FLAG_FFS): Removed.
15916 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
15917 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
15918 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
15919 (grub_fshelp_node): Make block 32-bit.
15920 Add block_cache and last_block_cache.
15921 (grub_affs_read_block): Fill and use block cache.
15922 (grub_affs_read_file): Removed.
15923 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
15925 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
15927 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
15929 (grub_affs_close): Free block cache.
15930 (grub_affs_read): Use grub_fshelp_read_file directly.
15932 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15934 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
15937 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15939 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
15941 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
15944 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15946 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
15948 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
15949 byteswap when needed.
15951 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15953 Fix FreeBSD compilation.
15955 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
15956 to avoid circular dependency.
15957 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
15958 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
15959 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
15961 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15963 Fix ZFS crypto error types.
15965 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
15966 (grub_gcm_decrypt): Likewise.
15967 (grub_zfs_load_key_real): Fix error code type. Handle possible error
15970 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15974 * Makefile.util.def (10_illumos): New script.
15975 * configure.ac: Set COND_HOST_ILLUMOS.
15976 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
15977 Support Illumos calls.
15978 (find_partition_start) [__sun__]: Likewise.
15979 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
15980 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
15981 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
15982 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
15984 * util/grub-probe.c (probe) [__sun__]: Do character check.
15985 * util/grub.d/10_illumos.in: New file.
15987 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15989 Support escaped commas in hostdisk.
15991 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
15992 (find_grub_drive): Use unescape_cmp.
15993 (make_device_name): Escape commas.
15995 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15997 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
15999 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16001 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16004 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16006 Support trampoline jumps on powerpc.
16008 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16010 (grub_dl_load_segments): Set mod->sz.
16011 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16013 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16015 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16017 (trampoline): New struct.
16018 (trampoline_template): New const.
16019 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16020 * include/grub/dl.h (grub_dl): Add sz element.
16021 [__powerpc__]: Follow __ia64__.
16022 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16023 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16024 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16025 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16027 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16029 ZFS crypto support.
16031 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16032 * grub-core/Makefile.core.def (zfscrypt): New module.
16033 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16034 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16035 it. All users updated.
16036 (grub_zfs_decrypt): New var.
16037 (grub_zfs_load_key): Likewise.
16038 (zio_checksum_functions): Add SHA256+MAC.
16039 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16040 (zio_read): Handle encrypted blocks.
16041 (zap_verify): Remove incorrect check.
16042 (fzap_iterate): Handle non-standard fzap.
16043 (zap_iterate): Likewise.
16044 (zap_iterate_u64): New function.
16045 (dnode_get_fullpath): Load keys.
16046 * grub-core/fs/zfs/zfscrypt.c: New file.
16047 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16048 (grub_crypto_ecb_encrypt): Make input const.
16049 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16050 (grub_crypto_ecb_encrypt): Make input const.
16051 (GRUB_CIPHER_AES): New macro.
16052 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16053 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16054 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16055 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16056 prefix. All users updated.
16057 (grub_zfs_add_key): New proto.
16058 (grub_zfs_decrypt): Likewise.
16059 (grub_zfs_load_key): Likewise.
16060 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16061 * util/grub-fstest.c (options): Add -K option.
16062 (argp_parser): Likewise.
16064 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16066 Support zle compression on ZFS.
16068 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16069 (decomp_table): Add zle.
16070 * include/grub/zfs/zio.h (zio_compress): Add zle.
16072 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16074 Support BtrFS embedding.
16076 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16077 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16078 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16079 * util/grub-setup.c (setup): Use fs embedding if available.
16080 Add additional sanity check.
16082 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16084 * util/grub-install.in: Fix condition for config_opt.
16086 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16088 Support third redundancy strip on raidz3.
16090 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16091 Return error on singularity. All users updated.
16092 (read_device): Don't stop on 3rd failure on raidz3.
16094 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16096 Support case-insensitive ZFS subvolumes.
16098 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16100 (zap_hash): Likewise.
16101 (name_cmp): New function.
16102 (zap_leaf_array_equal): New parameter case_insensitive.
16104 (zap_leaf_lookup): Likewise.
16105 (fzap_lookup): Likewise.
16106 (zap_lookup): Likewise.
16107 (dnode_get_path): New parameter case_insensitive. Retrieve case
16108 sensitiviness of a volume. All users updated.
16109 (dnode_get_fullpath): New parameter case_insensitive.
16111 (grub_zfs_dir): Set info.case_insensitiveness.
16113 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16115 Support second redundancy strip on raidz(2,3).
16117 * grub-core/fs/zfs/zfs.c (powx): New array.
16118 (powx_inv): Likewise.
16120 (xor_out): New function.
16121 (gf_mul): Likewise.
16122 (recovery): Likewise.
16123 (read_device): Use second redundancy strip.
16125 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16127 Use a power of generator representation of GF(256) multiplication group
16128 to save space time and complexity.
16130 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16131 (raid6_table2): Likewise.
16133 (powx_inv): Likewise.
16135 (grub_raid_block_mul): Replace with ...
16136 (grub_raid_block_mulx): ...this.
16137 (grub_raid6_init_table): Rewritten.
16138 (grub_raid6_recover): Use power of generator representation.
16140 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16142 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16143 for the right device.
16145 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16147 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16148 expected by grub-mkimage and it's more clear since there is no implicit
16151 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16153 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16155 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16157 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16159 * util/grub-mkrescue.in: Fix handling xorriso option.
16161 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16163 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16166 2011-11-03 crocket <crockabiscuit@gmail.com>
16168 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16170 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16172 XZ CRC64 and SHA256 support.
16174 * Makefile.util.def (libgrubmods): Add crc64.c.
16175 * grub-core/Makefile.core.def (crc64): New module.
16176 * grub-core/lib/crc64.c: New file.
16177 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16178 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16180 (MAX_HASH_SIZE): New define.
16181 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16182 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16183 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16184 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16185 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16186 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16187 Handle non-crc32 hashes.
16188 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16189 (dec_stream_header): Handle non-crc32 hashes.
16190 (dec_stream_footer): Likewise.
16191 (dec_block_header): Likewise.
16192 (dec_main): Likewise.
16193 (xz_dec_init): Likewise.
16194 (xz_dec_reset): Likewise.
16195 (xz_dec_end): Likewise.
16196 * util/import_gcry.py: Add CRC64 line.
16198 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16200 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16203 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16205 Make reiserfs label retrieval similar to other *_label functions.
16207 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16208 (REISERFS_MAX_LABEL_LENGTH): Removed.
16209 (REISERFS_LABEL_OFFSET): Likewise.
16210 (grub_reiserfs_label): Rewritten.
16212 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16214 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16217 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16219 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16221 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16223 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16224 drive failure on both raidz and raidz2.
16226 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16228 Fix RAIDZ(2) for >= 5 devices.
16230 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16231 asize argument. All users updated.
16233 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16237 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16238 (fill_vdev_info_real): Set ashift.
16239 (read_device): Rewrite RAIDZ part based on reverse engineering.
16241 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16243 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16244 don't report potentially unavialiable fields in debug output.
16245 (find_path): Fix double-free and memory leak.
16247 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16249 Read label on UFS1.
16251 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16252 (grub_ufs_fs): Always set .label.
16254 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16258 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16259 (grub_ufs_data): New field log2_blksz.
16260 (grub_ufs_read_file): Use shifts.
16261 (grub_ufs_mount): Check block size and logarithm it.
16263 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16265 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16268 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16270 Handle symlinks and long names on tar and cpio.
16272 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16273 (ATTR_FILE): Likewise.
16274 (ATTR_DIR): Likewise.
16275 (ATTR_LNK): Likewise.
16276 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16277 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16279 (grub_cpio_mount): Zero-fill data.
16280 (handle_symlink): New function.
16281 (grub_cpio_dir): Handle symlinks.
16282 (grub_cpio_open): Likewise.
16283 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16285 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16287 Fix iso9660 filename limitations and fix memory leaks.
16289 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16290 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16292 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16294 Fix JFS file name length limitations.
16296 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16297 (grub_jfs_diropen): Fix maximum filename length.
16298 (grub_jfs_getent): Fix filename length.
16299 (grub_jfs_lookup_symlink): Fix size checks.
16301 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16303 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16306 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16308 Leverage BFS implementation to read AFS.
16310 * Makefile.util.def (libgrubmods): Add afs.c.
16311 * grub-core/Makefile.core.def (afs): New module
16312 * grub-core/fs/afs.c: New file.
16313 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16315 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16317 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16319 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16321 * grub-core/fs/bfs.c: Run indent.
16323 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16325 BFS implementation based on the specification.
16327 * grub-core/fs/bfs.c: New file.
16328 * Makefile.util.def (libgrubmods): Add bfs.c.
16329 * grub-core/Makefile.core.def (bfs): New module.
16331 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16333 * util/grub-fstest.c (cmd_cp): Clarify error message.
16334 (cmd_cmp): Likewise.
16336 2011-10-30 Yves Blusseau <blusseau@zetam.org>
16338 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16341 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16343 Remove afs and befs because of copyright problem.
16345 * grub-core/fs/afs.c: Removed.
16346 * grub-core/fs/afs_be.c: Removed.
16347 * grub-core/fs/befs.c: Removed.
16348 * grub-core/fs/befs_be.c: Removed.
16349 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16350 * grub-core/Makefile.core.def (afs): Removed.
16351 (afs_be): Likewise.
16353 (befs_be): Likewise.
16355 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16357 Prefer rockridge over Joliet.
16359 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16361 (set_rockridge): ... here.
16362 (grub_iso9660_mount): Check rockridge on the primary label when
16363 discovering. Ignore Joliet if Rockridge is present.
16365 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16367 Use shifts in nilfs2.
16369 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16370 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16371 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16372 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16373 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16374 (grub_nilfs2_entries_per_block): Replaced with ...
16375 (grub_nilfs2_log_entries_per_block_log): ... this.
16376 (grub_nilfs2_blocks_per_group): Replaced with ...
16377 (grub_nilfs2_blocks_per_group_log): ... this.
16378 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
16379 (grub_nilfs2_blocks_per_desc_block_log): ... this.
16380 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
16381 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
16382 (grub_nilfs2_palloc_entry_offset): Replaced ...
16383 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
16384 (grub_nilfs2_dat_translate): Use shifts.
16385 (grub_nilfs2_read_inode): Likewise.
16386 (GRUB_MOD_INIT): Ensure that logs are correct.
16388 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16390 Use shifts in minix filesystem.
16392 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
16393 (GRUB_MINIX_ZONE2SECT): Likewise.
16394 (grub_minix_data): Replace block_size with log_block_size.
16395 (grub_minix_read_file): Use shifts.
16396 (grub_minix_mount): Check block size and take a logarithm.
16398 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16400 Use shifts in squash4.
16402 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
16403 (squash_mount): Check block size and take logarithm.
16404 (direct_read): Use shifts.
16406 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16408 Correct befs block counting logic.
16410 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
16411 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
16412 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
16413 (grub_afs_read_inode): Use block_shift.
16414 (RANGE_SHIFT): New definition.
16415 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
16416 unexpected conditions, use shifts and appropriate types.
16417 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
16419 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16421 * grub-core/disk/raid.c (scan_devices): Check partition.
16422 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16424 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16426 Support BFS (befs) UUID.
16428 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
16429 (grub_afs_small_data_element_header): New struct.
16430 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
16431 (grub_afs_read_attribute) [MODE_BFS]: New function.
16432 (grub_afs_iterate_dir): Allocate for complete inode.
16433 (grub_afs_mount): Likewise.
16434 (grub_afs_uuid) [MODE_BFS]: New function.
16435 (grub_afs_fs) [MODE_BFS]: Add .uuid.
16437 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16439 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
16440 (zfs_unmount): Fix memory leak.
16442 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16444 Support NTFS reparse points.
16446 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
16447 (symlink_descriptor): New struct.
16448 (grub_ntfs_read_symlink): New function.
16449 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
16450 (grub_ntfs_open): Likewise.
16452 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16454 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
16456 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16458 fstest xnu_uuid subcommand.
16460 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
16461 grub-core/commands/xnu_uuid.c.
16462 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
16463 (fstest): Handle xnu_uuid.
16464 (options): Document xnu_uuid.
16465 (argp_parser): Parse xnu_uuid.
16467 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16469 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
16470 -l argument. Add newline at the end if printing.
16471 (GRUB_MOD_INIT): Document -l.
16473 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16475 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
16477 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16479 ZFS multi-device and version 33 support.
16481 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
16482 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
16483 (grub_zfs_data): Add multidev-ice-related fields.
16484 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
16485 (dva_get_offset): Make dva const.
16486 (zfs_fetch_nvlist): New function.
16487 (fill_vdev_info_real): Likewise.
16488 (fill_vdev_info): Likewise.
16489 (check_pool_label): Likewise.
16490 (scan_disk): Likewise.
16491 (scan_devices): Likewise.
16492 (read_device): Likewise.
16493 (read_dva): Likewise.
16494 (zio_read_gang): Use read_dva.
16495 (zio_read_data): Likewise.
16496 (zap_leaf_lookup): Add missing endian conversion.
16497 (zap_verify): Add missing endian conversion. All users updated.
16498 (fzap_lookup): Likewise.
16499 (fzap_iterate): Likewise.
16500 (dnode_get_path): Handle SA bonus.
16501 (nvlist_find_value): Make input const. All users updated.
16502 (unmount_device): New function.
16503 (zfs_unmount): Use unmount_device.
16504 (zfs_mount): Use scan_disk.
16505 (zfs_mtime): New function.
16506 (grub_zfs_open): Handle system attributes.
16507 (fill_fs_info): Likewise.
16508 (grub_zfs_dir): Likewise.
16509 (grub_zfs_fs): Add mtime.
16510 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
16511 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
16512 (SA_MTIME_OFFSET): Likewise.
16513 (SA_SYMLINK_OFFSET): Likewise.
16514 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
16515 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
16516 (fstest): Support zfsinfo.
16517 (argp_parser): Likewise.
16519 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16521 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
16524 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16528 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
16529 sharing the same block. Iterate over correct number of indices.
16530 (dnode_get_path): Handle symlinks correctly.
16532 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16534 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
16536 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16538 Read label on HFS+.
16540 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
16541 (grub_hfsplus_btree_search): Fix types.
16542 (grub_hfsplus_label): Implement.
16544 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16546 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
16548 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16550 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
16552 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16554 Fix symlink handling on iso9660.
16556 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
16558 (grub_iso9660_susp_iterate): Accept zero-size iterate.
16559 (grub_iso9660_read_symlink): Moved most of code ...
16560 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
16562 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16564 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
16565 Use union to avoid breaking strict-aliasing rules.
16567 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16569 Support multi-extent iso files.
16571 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
16573 (grub_fshelp_node): Revamp. All users updated.
16574 (FLAG_*): New enum.
16575 (read_node): New function.
16576 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
16578 (grub_iso9660_mount): Don't attempt to read sua when there is none.
16579 (get_node_size): New function.
16580 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
16582 Fix memory leak on . and ..
16583 (grub_iso9660_read): Use read_node.
16584 (grub_iso9660_close): Free node.
16586 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16588 Fix tar 4G limit and handle paths containing dot.
16590 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
16591 (canonicalize): New function.
16592 (grub_cpio_find_file): Use canonicalize. Store offs in
16594 (grub_cpio_dir): Use grub_disk_addr_t.
16595 (grub_cpio_open): Likewise.
16597 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16599 Fix handling of uncompressed blocks on squashfs and break 4G limit.
16601 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
16603 (grub_squash_inode): Add long_file and block_size.
16604 (grub_squash_cache_inode): New struct.
16605 (grub_squash_dirent): Make types into enum.
16606 (SQUASH_TYPE_LONG_REGULAR): New type.
16607 (grub_squash_frag_desc): Add field size.
16608 (SQUASH_BLOCK_FLAGS): New enum.
16609 (grub_squash_data): Use grub_squash_cache_inode.
16610 (grub_fshelp_node): Make ino_chunk 64-bit.
16611 (read_chunk): Minor argument change. All users updated.
16612 (squash_mount): Use correct le_to_cpu.
16613 (grub_squash_open): Handle LONG_REGULAR.
16614 (direct_read): New function.
16615 (grub_squash_read_data): Handle blocks correctly.
16617 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16619 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
16621 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16623 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
16625 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16627 Fix 2G limit on ZFS.
16629 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
16631 (uberblock_verify): Likewise.
16632 (dmu_read): Likewise.
16633 (grub_zfs_read): Likewise. Remove invalid cast.
16635 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16637 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
16638 (grub_jfs_blkno): Fix incorrect shift.
16639 (grub_jfs_read_file): Use more appropriate types.
16641 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16643 Support triple indirect on minix2 and minix3.
16645 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
16646 Declare triple_indir_zone.
16647 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
16650 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16654 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
16655 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
16656 Rename ctime to mtime. All users updated.
16657 (grub_minix_get_file_block): Fix types and double indirect computations.
16659 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16661 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
16662 if no label is found.
16663 (grub_fat_iterate_dir): Fix file size type.
16664 (grub_fat_iterate_dir): Likewise.
16666 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16668 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
16670 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
16671 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
16673 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16675 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
16677 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16679 * util/import_gcry.py: Accept space between # and include.
16681 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16683 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
16685 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16687 Fine grainely disable warnings on lexer. Remove Wno-error on it.
16689 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
16690 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
16692 * grub-core/script/yylex.l: Add fine-grained #pragma.
16694 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16696 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
16697 New inline function.
16698 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
16700 (memset) [GRUB_UTIL]: Likewise.
16701 (memcmp) [GRUB_UTIL]: Likewise.
16703 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16705 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
16706 inline function rather than a define.
16708 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16710 * util/grub-setup.c: Add missing include.
16712 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16714 * util/ieee1275/grub-ofpathname.c: Add missing include.
16716 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16718 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
16719 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
16722 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16724 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
16727 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16729 * util/grub-install.in: Add datarootdir as per automake manual
16731 * util/grub-mknetdir.in: Likewise.
16733 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16735 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
16737 * util/grub.d/10_kfreebsd.in: Likewise.
16738 * util/grub.d/10_linux.in: Likewise.
16739 * util/grub.d/10_netbsd.in: Likewise.
16740 * util/grub.d/10_windows.in: Likewise.
16741 * util/grub.d/20_linux_xen.in: Likewise.
16743 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
16745 Remove redundant grub_kernel_image_size.
16747 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
16749 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
16750 the small code. It moves it only by few bytes but simplifies the code.
16751 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
16753 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
16754 (grub_kernel_image_size): Removed.
16755 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
16756 (grub_kernel_image_size): Removed.
16757 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
16758 compiled with Apple toolchain.
16759 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
16760 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
16761 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
16762 (grub_total_module_size): Likewise.
16763 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
16765 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
16766 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
16767 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16768 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
16769 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
16770 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
16771 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
16772 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
16774 (grub_total_module_size): Removed.
16775 * util/grub-mkimage.c (image_target_desc): Remove image_size.
16776 (image_targets): Likewise.
16777 Set .compressed_size to no field on sparc.
16778 (generate_image): Remove kernel_image_size handling.
16780 2011-10-19 Szymon Janc <szymon@janc.net.pl>
16782 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
16783 NULL pointer dereference.
16785 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16787 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
16788 done with a dedicated section.
16790 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
16791 Ensure the correct position of boot_path.
16792 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
16793 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
16795 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
16796 * include/grub/boot.h: Removed. All references removed.
16797 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
16799 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
16801 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16803 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
16806 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16808 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
16810 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16812 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
16813 Don't add the bogus brackets.
16815 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16819 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
16820 * grub-core/Makefile.core.def (exfat): New module.
16821 * grub-core/fs/exfat.c: New file.
16822 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
16823 (GRUB_FAT_ATTR_*): Make into an enum.
16824 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
16825 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
16826 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
16827 (GRUB_FAT_MAXFILE): Removed.
16828 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
16829 (grub_current_fat_bpb_t): New type.
16830 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
16831 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
16832 (grub_fat_dir_node_t): New type.
16833 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
16834 (fat_log2) [MODE_EXFAT]: Removed.
16835 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
16836 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
16837 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
16838 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
16839 (grub_fat_label) [MODE_EXFAT]: New function.
16840 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
16841 reserved_first_sector to 0.
16843 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16845 Move grub_reboot out of the kernel.
16847 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
16848 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
16849 * grub-core/lib/efi/reboot.c: ... here.
16850 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
16851 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
16852 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
16853 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
16854 * grub-core/lib/i386/reboot_trampoline.S: ... here.
16855 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
16856 * grub-core/lib/ieee1275/reboot.c: ... here.
16857 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
16858 * grub-core/lib/mips/arc/reboot.c: ... here.
16859 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
16860 * grub-core/lib/mips/loongson/reboot.c: ...here.
16861 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
16862 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
16863 * include/grub/emu/misc.h (grub_reboot): New function declaration.
16864 * include/grub/i386/reboot.h: New file.
16865 * include/grub/mips/loongson/ec.h: Fix includes.
16866 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
16867 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
16868 * grub-core/lib/i386/reboot.c: New file.
16870 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
16872 Make grub_prefix into module to fix the arbitrary limit and save
16875 * grub-core/kern/emu/main.c (grub_prefix): Removed.
16876 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
16877 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
16878 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
16879 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
16880 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
16881 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
16882 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
16883 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
16884 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
16885 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
16886 * include/grub/ia64/efi/kernel.h: Removed.
16887 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
16888 (grub_prefix): Removed.
16889 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
16890 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
16891 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
16892 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
16893 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
16894 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
16895 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
16896 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
16897 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
16898 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
16899 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
16900 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
16901 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
16902 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
16903 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
16904 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
16905 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
16906 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16907 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
16908 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
16909 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
16910 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
16911 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
16912 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
16913 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
16914 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
16915 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
16916 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
16917 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
16919 * util/grub-mkimage.c (image_target_desc): Removed prefix and
16921 (image_targets): Likewise.
16922 (generate_image): Put prefix as a module.
16924 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16926 Replace grub_module_iterate with FOR_MODULES.
16928 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
16929 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
16930 (grub_efi_modules_addr): ...this.
16931 * grub-core/kern/efi/init.c (grub_modbase): New variable.
16932 (grub_efi_init): Set grub_modbase.
16933 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
16934 (grub_modbase): New variable.
16935 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
16936 (grub_modbase): New variable.
16937 (grub_machine_init): Set grub_modbase.
16938 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
16939 (grub_modbase): New variable.
16940 (grub_machine_init): Set grub_modbase.
16941 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
16942 (grub_modbase): New variable.
16943 (grub_machine_init): Set grub_modbase.
16944 * grub-core/kern/main.c (grub_module_iterate): Remove.
16945 (grub_modules_get_end): Use grub_modbase.
16946 (grub_load_modules): Use FOR_MODULES.
16947 (grub_load_config): Likewise.
16948 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
16949 (grub_modbase): New variable.
16950 (grub_machine_init): Set grub_modbase.
16951 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
16952 (grub_modbase): New variable.
16953 (grub_machine_init): Set grub_modbase.
16954 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
16956 (grub_modbase): New variable.
16957 (grub_machine_init): Set grub_modbase.
16958 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
16959 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
16960 (grub_module_iterate): Likewise.
16961 (grub_modbase): New variable declaration.
16962 (FOR_MODULES): New macro.
16964 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16966 * configure.ac: Check for __ctzdi2 and __ctzsi2.
16967 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
16969 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16971 Fix few obvious type discrepancies.
16973 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
16974 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
16975 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
16977 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
16978 and connected types.
16979 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
16981 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
16982 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
16983 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
16984 and connected types.
16986 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16988 Fix python 3.x incompatibilities.
16990 * gentpl.py: Put brackets around print strings.
16991 * util/import_gcry.py: Open explicitly as utf-8.
16992 Use in instead of has_key.
16994 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16996 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
16997 (GRUB_XFS_INO_AGBITS): Make into inline function.
16998 (GRUB_XFS_INO_INOINAG): Likewise.
16999 (GRUB_XFS_INO_AG): Likewise.
17000 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17001 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17002 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17003 (GRUB_XFS_EXTENT_SIZE): Likewise.
17004 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17005 (GRUB_XFS_NEXT_DIRENT): Likewise.
17006 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17007 (grub_xfs_read_file): Fix offset type.
17009 2011-10-15 Robert Millan <rmh@gnu.org>
17011 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17013 2011-10-15 Robert Millan <rmh@gnu.org>
17015 Fix build problem on FreeBSD and GNU/kFreeBSD.
17017 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17019 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17021 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17023 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17025 (grub_hfsplus_btree_recoffset): Likewise.
17026 (grub_hfsplus_btree_recptr): Likewise.
17027 (grub_hfsplus_find_block): Likewise.
17028 (grub_hfsplus_btree_search): Likewise.
17029 (grub_hfsplus_read_block): Likewise.
17030 (grub_hfsplus_read_file): Likewise.
17031 (grub_hfsplus_mount): Likewise.
17032 (grub_hfsplus_btree_iterate_node): Likewise.
17033 (grub_hfsplus_btree_search): Likewise.
17034 (grub_hfsplus_iterate_dir): Likewise.
17035 (grub_hfsplus_read): A small code simplification.
17037 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17039 * grub-core/kern/emu/hostdisk.c
17040 (convert_system_partition_to_system_disk): Don't assume that children
17041 of mapper nodes are mapper nodes.
17043 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17045 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17046 * include/grub/misc.h (grub_isxdigit): New function.
17047 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17048 switched to grub_isxdigit.
17049 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17050 number starting with a letter.
17052 2011-10-09 Robert Millan <rmh@gnu.org>
17054 LVM support for FreeBSD and GNU/kFreeBSD.
17056 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17058 (LVM_DEV_MAPPER_STRING): Move from here ...
17059 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17060 * util/getroot.c: Include `<grub/util/lvm.h>'.
17061 (grub_util_get_dev_abstraction): Enable
17062 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17063 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17064 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17065 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17067 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17069 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17070 when LVM abstraction is required for ${GRUB_DEVICE}.
17072 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17074 Add support for LZO compression in GRUB:
17075 - import of minilzo library,
17076 - LZO decompression for btrfs,
17077 - lzop files decompression.
17079 * grub-core/io/lzopio.c: New file.
17080 * grub-core/lib/adler32.c: Likewise.
17081 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17082 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17083 * grub-core/lib/minilzo/minilzo.c: Likewise.
17084 * grub-core/lib/minilzo/minilzo.h: Likewise.
17085 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17086 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17087 grub-core/lib/minilzo/minilzo.c to common.
17088 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17089 cflags in cppflags.
17090 * grub-core/Makefile.core.def (btrfs): Likewise.
17091 * grub-core/Makefile.core.def (lzopio): New module.
17092 (adler32): Likewise.
17093 * grub-core/fs/btrfs.c: Include minilzo.h.
17094 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17095 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17096 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17097 (grub_btrfs_lzo_decompress): New function.
17098 (grub_btrfs_extent_read): Add support for LZO compression type.
17099 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17100 (GRUB_USHRT_MAX): Likewise.
17101 (GRUB_UINT_MAX): Likewise.
17102 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17103 (UINT_MAX): Likewise.
17104 (CHAR_BIT): Likewise.
17105 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17106 grub-core/lib/posix_wrap/limits.h
17107 (UCHAR_MAX): Likewise.
17108 * include/grub/file.h (grub_file_filter_id): New compression filter
17109 GRUB_FILE_FILTER_LZOPIO.
17110 * include/grub/file.h (grub_file_filter_id): Set
17111 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17112 * include/grub/types.h (grub_get_unaligned16): New function.
17113 (grub_get_unaligned32): Likewise.
17114 (grub_get_unaligned64): Likewise.
17115 * util/import_gcry.py (cryptolist): Add adler32.
17117 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17119 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17120 in perspective decreases the complexity of build system and fixes
17121 compilation right now.
17123 2011-10-01 Ales Nesrsta <starous@volny.cz>
17125 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17126 (fixed problem related to using UHCI with coreboot).
17128 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17130 * gentpl.py: Use Autogen macros so that the output template file
17131 (Makefile.tpl) size is reduced.
17133 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17135 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17138 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17140 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17141 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17143 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17145 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17148 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17150 Remove extra declaration of sleep for mingw32.
17152 * util/misc.c (sleep) [__MINGW32__]: Removed.
17153 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17155 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17157 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17159 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17161 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17162 (grub_netbsd_btinfo_bootwedge): New struct.
17163 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17165 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17167 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17169 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17172 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17174 Fix incorrect identifiers in bash-completion.
17176 * util/bash-completion.d/grub-completion.bash.in
17177 (_grub_mkpasswd-pbkdf2): Rename to ...
17178 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17179 (_grub_script-check): Rename to ...
17180 (_grub_script_check): ... this. All users updated.
17182 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17184 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17185 Return 0 if disk isn't biosdisk.
17187 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17189 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17191 * Makefile.util.def (grub-fstest): Likewise.
17193 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17195 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17196 Get sector size from disk label.
17198 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17200 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17201 */README* as well as README*.
17202 Reported by: Axel Beckert.
17204 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17206 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17207 case of less than 256 MiB of RAM.
17209 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17211 * grub-core/commands/wildcard.c (make_regex): Handle @.
17213 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17215 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17217 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17219 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17220 AC_LANG_CONFTEST macros.
17222 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17224 Add grub-fstest option to uncompress data for commands.
17226 * util/grub-fstest.c (uncompress): New var.
17227 (options): New option -u.
17229 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17231 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17232 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17234 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17236 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17237 file type was not recognized correctly (not gzip or corrupted).
17239 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17241 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17242 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17244 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17246 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17248 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17249 video_radeon_fuloong2e.
17250 * grub-core/video/radeon_fuloong2e.c: New file.
17251 * include/grub/video.h (grub_video_id_t): Add new ID
17252 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17254 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17256 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17258 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17259 that PRID matches the detected subplatform and reset the subplatform
17262 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17264 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17266 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17268 Fix PCI iterating on functions >= 4.
17270 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17271 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17273 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17274 (grub_pci_read): Fix bitmask.
17275 (grub_pci_read_word): Likewise.
17276 (grub_pci_read_byte): Likewise.
17277 (grub_pci_write): Likewise.
17278 (grub_pci_write_word): Likewise.
17279 (grub_pci_write_byte): Likewise.
17281 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17283 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17284 can still be specified in TARGET_CFLAGS)
17286 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17288 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17290 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17291 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17292 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17293 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17294 (FULOONG): Rename to ...
17295 (FULOONG2F): ... this. All users updated.
17296 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17297 (machtype_fuloong2f_str): ... this.
17298 (machtype_fuloong2e_str): New string.
17299 Check for machtype_fuloong2e_str.
17300 * grub-core/loader/mips/linux.c (loongson_machtypes)
17301 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17302 * grub-core/term/serial.c (loongson_defserial)
17303 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17304 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17305 loongson_defserial.
17306 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17308 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17309 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17310 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17311 to IMAGE_FULOONG2F_FLASH. All users updated.
17312 (image_targets): Rename images.
17313 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17315 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17317 Make enable of disk cache statistics code configurable.
17319 * configure.ac: --enable-cache-stats added.
17320 * config.h.in (DISK_CACHE_STATS): New define.
17321 * grub-core/Makefile.core.def (cacheinfo): New command.
17322 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17323 * grub-core/commands/cacheinfo.c: New file.
17324 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17325 moved to cacheinfo.c.
17326 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17328 * include/grub/disk.h: Likewise.
17330 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17332 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17333 * grub-core/Makefile.am: Likewise.
17335 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17337 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17340 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17342 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17344 (grub_jfs_lookup_symlink): Use correct starting inode.
17346 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17348 * util/grub-setup.c (main): Add missing gcry initialisation.
17350 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17352 Don't accept text modes on EFI when booting Linux.
17354 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17355 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17357 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
17358 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17360 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17361 use of "/path/.." as in grub-install for EFI as well as handling
17362 symlinks correctly.
17363 Fixes Debian bug #637768.
17365 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17367 * util/grub-probe.c: Remove duplicate #include.
17369 2011-08-10 Robert Millan <rmh@gnu.org>
17371 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17373 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17375 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17376 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17378 2011-08-03 Robert Millan <rmh@gnu.org>
17380 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
17381 la_array as packed.
17382 Reported by: Zachary Bedell
17384 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17386 * configure.ac: The Loongson port requires grub-mkfont due to its
17387 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
17390 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17392 * util/grub-install.in: Don't source grub-mkconfig_lib until after
17393 processing arguments (otherwise help2man fails when GRUB has not yet
17396 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17398 New script grub-mkstandalone.
17400 * Makefile.util.def (grub-mkstandalone): New script.
17401 * docs/man/grub-mkstandalone.h2m: New file.
17402 * util/grub-mkstandalone.in: Likewise.
17404 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17406 Support ATA disks with 4K sectors.
17408 * include/grub/ata.h (grub_ata): New member log_sector_size.
17409 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
17410 (grub_ata_identify): Read sector size.
17411 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
17413 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17415 * util/grub-install.in: Don't use uhci outside of x86.
17417 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17419 * util/grub-mkrescue.in: Add missing quotes.
17421 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17423 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
17426 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17428 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
17430 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17432 * include/grub/video.h: add missing EXPORT_FUND on
17433 grub_video_edid_checksum and grub_video_edid_preferred_mode.
17435 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17437 * include/grub/mips/kernel.h: Fix define conflict.
17439 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17441 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
17444 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
17446 Preferred resolution detection for VBE.
17448 * grub-core/video/video.c (grub_video_edid_checksum): New function.
17449 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
17450 the Flat Panel extension, in line with the X.org VESA driver.
17451 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
17453 (grub_vbe_bios_get_ddc_capabilities): Likewise.
17454 (grub_vbe_bios_read_edid): Likewise.
17455 (grub_vbe_get_preferred_mode): Likewise.
17456 (grub_video_vbe_setup): When the mode is "auto", try to get the
17457 preferred mode from VBE, and use the largest mode that is no larger
17458 than the preferred mode (some BIOSes expose a preferred mode that is
17459 not in their mode list!). If this fails, fall back to 640x480 as a
17460 safe conservative choice.
17461 (grub_video_vbe_get_edid): New function.
17462 (grub_video_vbe_adapter): Add get_edid.
17463 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
17464 (struct grub_video_adapter): Add get_edid.
17465 (grub_video_edid_checksum): Add prototype.
17466 (grub_video_edid_preferred_mode): Likewise.
17467 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
17470 * grub-core/commands/videoinfo.c (print_edid): New function.
17471 (grub_cmd_videoinfo): Print EDID if available.
17473 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
17474 is more appropriate on a wider range of platforms than 640x480.
17475 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
17478 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17480 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
17482 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17484 * po/POTFILES.in: Regenerate.
17486 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17488 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
17489 incorrect memory usage.
17491 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17493 * util/grub-install.in: Source grub-mkconfig_lib.
17495 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
17497 Remove getroot.c from core on emu platform.
17499 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
17501 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
17503 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
17504 * util/getroot.c (get_win32_path): ... here.
17505 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
17506 * util/getroot.c (fini_libzfs): ... here.
17507 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
17508 * util/getroot.c (grub_get_libzfs_handle): ... here.
17509 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
17511 * util/getroot.c (grub_find_zpool_from_dir): ... here.
17512 * grub-core/kern/emu/misc.c
17513 (grub_make_system_path_relative_to_its_root): Moved from here...
17514 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
17515 * grub-core/kern/emu/getroot.c: Moved from here ...
17516 * util/getroot.c: ... here. All users updated.
17517 * grub-core/kern/emu/raid.c: Moved from here ...
17518 * util/raid.c: ... here. All users updated.
17520 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
17522 * po/POTFILES.in: Regenerate.
17524 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17526 Fix compilation on GNU/Linux.
17528 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
17530 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
17531 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
17532 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
17534 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17535 2011-07-07 Michael Gorven <michael@gorven.za.net>
17536 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
17538 LUKS and GELI support.
17540 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
17541 grub-core/disk/luks.c, grub-core/disk/geli.c,
17542 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
17543 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
17544 grub-core/lib/arg.c.
17545 (libgrubmods.a): Remove gcrypts cflags and cppflags.
17546 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
17547 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
17548 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
17549 (grub-bin2h): Add libgcry.a.
17550 (grub-mkimage): Likewise.
17551 (grub-mkrelpath): Likewise.
17552 (grub-script-check): Likewise.
17553 (grub-editenv): Likewise.
17554 (grub-mkpasswd-pbkdf2): Likewise.
17555 (grub-pe2elf): Likewise.
17556 (grub-fstest): Likewise.
17557 (grub-mkfont): Likewise.
17558 (grub-mkdevicemap): Likewise.
17559 (grub-probe): Likewise.
17560 (grub-ofpath): Likewise.
17561 (grub-mklayout): Likewise.
17562 (example_unit_test): Likewise.
17563 (grub-menulst2cfg): Likewise.
17564 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
17565 * grub-core/Makefile.core.def (cryptodisk): New module.
17568 * grub-core/disk/AFSplitter.c: New file.
17569 * grub-core/disk/cryptodisk.c: Likewise.
17570 * grub-core/disk/geli.c: Likewise.
17571 * grub-core/disk/luks.c: Likewise.
17572 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
17574 (grub_util_get_dm_abstraction): New function.
17575 (grub_util_follow_gpart_up): Likewise.
17576 (grub_util_get_geom_abstraction): Likewise.
17577 (grub_util_get_dev_abstraction): Use new functions.
17578 (grub_util_pull_device): Pull GELI and LUKS.
17579 (grub_util_get_grub_dev): Handle LUKS and GELI.
17580 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
17581 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
17582 (follow_geom_up): Removed.
17583 (grub_util_fd_seek): New function.
17584 (open_device): Use grub_util_fd_seek.
17585 (nread): Rename to ..
17586 (grub_util_fd_read): ... this. All users updated.
17587 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
17588 (grub_crypto_cbc_decrypt): Likewise.
17589 (grub_crypto_hmac_write): Likewise.
17590 (grub_crypto_hmac_buffer): Likewise.
17591 (grub_password_get): Extend to util.
17592 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
17593 New member modname.
17594 (gcry_md_spec) [GRUB_UTIL]: Likewise.
17595 * include/grub/cryptodisk.h: New file.
17596 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
17597 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
17599 (grub_util_follow_gpart_up): New proto.
17600 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
17601 (grub_util_fd_read): Likewise.
17602 (grub_cryptodisk_cheat_mount): Likewise.
17603 (grub_util_cryptodisk_print_uuid): Likewise.
17604 (grub_util_get_fd_sectors): Likewise.
17605 * util/grub-fstest.c (mount_crypt): New var.
17606 (fstest): Mount crypto if requested.
17607 (options): New option -C.
17608 (argp_parser): Parse -C.
17609 (main): Init and fini gcry.
17610 * util/grub-install.in: Support cryptodisk install.
17611 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
17612 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
17614 (prepare_grub_to_access_device): Likewise.
17615 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
17616 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
17617 (probe_cryptodisk_uuid): New function.
17618 (probe_abstraction): Likewise.
17619 (probe): Use new functions.
17620 * util/import_gcry.py: Create Makefile.utilgcry.def.
17621 Add modname member.
17623 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17625 Lazy device scanning.
17627 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
17628 (grub-setup): Remove util/raid.c.
17629 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
17630 * grub-core/disk/lvm.c (scan_depth): New variable.
17631 (grub_lvm_iterate): Rescan if necessary.
17632 (find_lv): New function based on grub_lvm_open.
17633 (grub_lvm_open): Use find_lv. Rescan on error.
17634 (is_node_readable): New function.
17635 (is_lv_readable): Likewise.
17636 (grub_lvm_scan_device): Skip already found disks.
17637 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
17638 Stop if searched device is found and readable.
17639 * grub-core/disk/raid.c (inscnt): New variable.
17640 (scan_depth): Likewise.
17641 (scan_devices): New function based on grub_raid_register. Abort if
17642 looked for device is found.
17643 (grub_raid_iterate): Rescan if needed.
17644 (find_array): NEw function based on -grub_raid_open.
17645 (grub_raid_open): Use find_array and rescan.
17646 (insert_array): Set became_readable_at.
17647 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
17648 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
17650 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
17651 (grub_util_pull_device): New function.
17652 (grub_util_get_grub_dev): Call grub_util_pull_device.
17653 * util/raid.c: Moved to ..
17654 * grub-core/kern/emu/raid.c: ... here.
17655 (grub_util_raid_getmembers): New parameter "bootable".
17656 All users updated. Support 1.x.
17657 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
17659 * include/grub/disk.h (grub_disk_pull_t): New enum.
17660 (grub_disk_dev): Change iterate prototype.
17662 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
17664 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
17665 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
17666 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
17667 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
17669 * include/grub/util/raid.h: Removed.
17671 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
17673 * po/POTFILES.in: Regenerate.
17675 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
17677 Unify sparc init with other ieee1275.
17679 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
17680 instead of kern/sparc64/ieee1275/init.c.
17681 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
17682 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
17683 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
17684 grub/machine/kernel.h.
17685 (grub_ieee1275_original_stack) [__sparc__]: New variable.
17686 (grub_claim_heap) [__sparc__]: Use sparc version.
17687 (grub_machine_init): Moved args parsing to
17688 (grub_parse_cmdline): ...this.
17689 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
17690 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
17692 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
17694 Move BOOTP to separate file.
17696 * grub-core/Makefile.core.def (net): Add net/bootp.c.
17697 * grub-core/net/net.c: Move all BOOTP functions to
17698 * grub-core/net/bootp.c: ... here.
17700 Use frame interface on PXE.
17702 * grub-core/Makefile.core.def (pxecmd): Removed.
17703 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
17704 * grub-core/commands/i386/pc/pxecmd.c: Removed.
17705 * grub-core/i386/pc/pxe.c: Moved from here ...
17706 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
17707 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
17708 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
17710 EFI network support.
17712 * grub-core/Makefile.core.def (efinet): New module.
17713 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
17715 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
17717 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
17718 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
17719 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
17720 * grub-core/net/drivers/efi/efinet.c: New file.
17721 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
17722 (grub_efi_net_config): New extern var.
17724 Various cleanups and bugfixes.
17726 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
17728 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
17729 disk declared as partition.
17730 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
17732 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
17733 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
17734 (grub_debug_zalloc): Likewise.
17735 (grub_debug_realloc): Likewise.
17736 (grub_debug_memalign): Likewise.
17737 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
17738 Check that target is IPv4.
17739 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
17740 local-mac-address as fallback.
17741 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
17743 * grub-core/net/ip.c (ipchksum): Rename to ...
17744 (grub_net_ip_chksum): ... this. All users updated.
17745 (grub_net_recv_ip_packets): Special handling for DHCP.
17746 * util/grub-mkimage.c (generate_image): Zero-out aout header.
17748 Unify prefix handling
17750 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
17751 (grub_machine_get_bootlocation): ... this.
17752 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
17753 (grub_machine_get_bootlocation): ... this.
17754 (grub_prefix): New variable.
17756 (root_dev): New variable.
17758 (main): Use new variables.
17759 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
17761 (grub_machine_get_bootlocation): ... this.
17762 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
17763 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
17764 (grub_machine_get_bootlocation): ... this.
17765 (grub_machine_set_prefix): Removed.
17766 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
17767 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
17769 (grub_machine_get_bootlocation): ... this.
17770 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
17771 (grub_set_prefix_and_root): ... this. All users updated.
17772 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
17774 (grub_machine_get_bootlocation): ... this.
17775 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
17776 (grub_machine_get_bootlocation): New proto.
17777 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
17779 Less intrusive and more reliable seek on network implementation.
17781 * grub-core/kern/file.c (grub_file_net_seek): Removed.
17782 (grub_file_seek): Don't call grub_file_net_seek.
17783 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
17784 (grub_net_fs_read_real): .. this.
17785 (grub_net_seek_real): Use net->offset.
17786 (grub_net_fs_read): Seek if necessary.
17788 Unify IEEE1275 netwotk config with the other platforms.
17790 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
17792 (grub_machine_get_bootlocation): Support network.
17793 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
17794 Support type and device parsing.
17795 (grub_ieee1275_get_device_type): New function.
17796 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
17798 (grub_ieee1275_net_config_real): ... this.
17799 (grub_ofnet_probecards): Removed.
17800 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
17801 * include/grub/ieee1275/ofnet.h: Removed.
17802 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
17804 (grub_ieee1275_get_device_type): New function.
17806 Unify network device closing across platforms and make more robust.
17808 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
17810 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
17812 * grub-core/net/net.c (grub_net_network_level_interface_register):
17814 (grub_net_card_unregister): Close all interfaces.
17815 (receive_packets): Don't poll if no iterfaces are registered.
17817 (grub_net_fini_hw): New function.
17818 (grub_net_restore_hw): Likewise.
17819 (fini_hnd): New variable.
17820 (GRUB_MOD_INIT): Register preboot hook.
17821 (GRUB_MOD_FINI): Run and unregister preboot hook.
17823 Poll network cards when idle.
17825 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
17826 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
17827 * grub-core/net/net.c (receive_packets): Save last poll time.
17828 (grub_net_poll_cards_idle_real): New function.
17829 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
17830 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
17831 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
17833 Rename ofnet interfaces.
17835 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
17836 (grub_ofnet_findcards): Use ofnet_%s names.
17838 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
17840 Cleanup socket opening.
17842 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
17843 (grub_net_fs_close): Likewise.
17844 (grub_net_fs_read_real): Use eof member.
17845 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
17846 (+grub_net_udp_close): New inline function.
17848 * include/grub/net/tftp.h: Moved to the top of ...
17849 * grub-core/net/tftp.c: ... here.
17850 * include/grub/net/ip.h: Moved mostly to the top of ...
17851 * grub-core/net/ip.c: ... here.
17852 * include/grub/net/ethernet.h: Moved mostly to the top of ...
17853 * grub-core/net/ethernet.c: ... here.
17855 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
17857 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
17860 * include/grub/net/ip.h (ipv4_ini): Removed.
17861 (ipv4_fini): Likewise.
17863 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
17864 (grub_net_send_ip_packets): Likewise.
17866 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17868 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
17869 grub_read_cmos prototype.
17871 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17873 VGA text support in qemu-mips
17875 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
17876 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
17877 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
17879 * grub-core/kern/i386/qemu/init.c: Renamed to ...
17880 * grub-core/kern/vga_init.c: ... this.
17881 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
17882 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
17883 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
17885 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
17886 GRUB_MACHINE_PCI_IO_BASE.
17888 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17890 MIPS qemu flash support.
17892 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
17894 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
17895 (grub_machine_init): Probe memory if its size isn't known.
17896 * util/grub-mkimage.c (image_targets): Add flash targets.
17897 (generate_image): Handle flash targets.
17899 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17901 MIPS qemu at_keyboard support.
17903 * gentpl.py (videoinkernel): Add qemu-mips.
17904 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
17905 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
17906 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
17908 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
17909 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
17910 * grub-core/term/serial.c (grub_serial_register)
17911 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
17913 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17915 CMOS support on sparc.
17917 * gentpl.py (cmos): Add powerpc and sparc.
17918 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
17920 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
17921 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
17922 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
17923 grub_set_datetime_cmos.
17924 * grub-core/lib/ieee1275/cmos.c: New file.
17925 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
17926 (find_rtc): Set no_ieee1275_rtc on error.
17927 (grub_get_datetime): Call grub_get_datetime_cmos on error.
17928 (grub_set_datetime): Call grub_set_datetime_cmos on error.
17929 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
17930 fail. Move value to argument. All users updated
17931 (grub_cmos_write): Likewise.
17932 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
17933 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
17934 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
17935 grub_get_datetime_cmos and grub_set_datetime_cmos.
17937 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
17939 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
17940 sourcing grub-mkconfig_lib.
17941 * util/update-grub_lib.in: Likewise.
17942 * util/grub.d/00_header.in: Likewise.
17943 * util/grub.d/10_hurd.in: Likewise.
17944 * util/grub.d/10_kfreebsd.in: Likewise.
17945 * util/grub.d/10_linux.in: Likewise.
17946 * util/grub.d/10_netbsd.in: Likewise.
17947 * util/grub.d/10_windows.in: Likewise.
17948 * util/grub.d/20_linux_xen.in: Likewise.
17949 * util/grub.d/30_os-prober.in: Likewise.
17951 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
17953 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
17954 default_bg_color rather than black.
17955 (grub_gfxterm_fullscreen): Likewise.
17956 (grub_gfxterm_background_color_cmd): Save new background color in
17959 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17961 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
17963 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17965 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
17968 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17970 Chainloading on coreboot support.
17972 * grub-core/Makefile.core.def (chain): Add coreboot.
17973 * grub-core/loader/i386/coreboot/chainloader.c: New file.
17975 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17977 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
17980 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17982 Implement time command.
17984 * grub-core/Makefile.core.def (time): New module.
17985 * grub-core/commands/time.c: New file.
17986 * grub-core/script/parser.y: Remove "time" keyword.
17987 * grub-core/script/yylex.l: Likewise.
17989 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17991 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
17993 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17995 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
17996 when handling leftovers.
17998 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18000 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18001 so that help2man doesn't fail.
18003 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18005 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18006 type in pointers on sparc64.
18007 (get_card_packet): Likewise.
18009 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18011 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18013 (grub_cmd_videoinfo): Fetch current video mode.
18015 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18017 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18018 because of underlying system restrictions.
18020 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18022 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18025 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18027 Coreboot video support.
18029 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18031 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18032 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18034 * grub-core/kern/i386/int.S: ... here.
18035 * grub-core/video/i386/pc/vbe.c: Updated includes.
18036 * grub-core/video/i386/pc/vga.c: Likewise.
18037 * include/grub/i386/coreboot/memory.h
18038 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18039 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18040 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18041 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18042 Disable interrupts.
18043 * include/grub/i386/pc/vga.h: Removed. All users updated.
18045 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18047 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18048 definitions for dprintf.
18049 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18051 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18053 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18055 (get_card_packet): Likewise.
18057 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18059 Display the path of the file when file is not found
18061 * grub-core/fs/fat.c: Display the filename when file is not found.
18062 * grub-core/fs/fshelp.c: Likewise.
18063 * grub-core/fs/hfs.c: Likewise.
18064 * grub-core/fs/jfs.c: Likewise.
18065 * grub-core/fs/minix.c: Likewise.
18066 * grub-core/fs/ufs.c: Likewise.
18067 * grub-core/fs/btrfs.c: Likewise.
18068 * grub-core/commands/i386/pc/play.c: Likewise.
18070 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18072 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18073 pointer checks before calling grub_free().
18074 * grub-core/commands/wildcard.c (match_devices): Likewise.
18075 * grub-core/commands/wildcard.c (match_files): Likewise.
18076 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18077 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18078 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18079 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18080 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18081 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18082 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18083 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18084 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18086 2011-06-25 Patrick <p55@mailinator.com>
18088 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18090 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18092 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18093 (grub_pxe_send): Likewise.
18094 (GRUB_MOD_INIT): Fix types.
18096 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18098 * grub-core/io/xzio.c: Fix code style issues
18100 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18101 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18103 Network infrastructure.
18104 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18106 * include/grub/net/arp.h: New file.
18107 * include/grub/net/device.h: Likewise.
18108 * include/grub/net/ethernet.h: Likewise.
18109 * include/grub/net/ip.h: Likewise.
18110 * include/grub/net/netbuff.h: Likewise.
18111 * include/grub/net/tftp.h: Likewise.
18112 * include/grub/net/udp.h: Likewise.
18113 * include/grub/ieee1275/ofnet.h: Likewise.
18114 * include/grub/emu/export.h: Likewise.
18115 * include/grub/net.h: Likewise.
18116 * grub-core/net/arp.c: Likewise.
18117 * grub-core/net/ethernet.c: Likewise.
18118 * grub-core/net/ip.c: Likewise.
18119 * grub-core/net/udp.c: Likewise.
18120 * grub-core/net/tftp.c: Likewise.
18121 * grub-core/net/netbuff.c: Likewise.
18122 * grub-core/net/net.c: Likewise.
18123 * grub-core/net/drivers/emu/emunet.c: Likewise.
18124 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18125 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18127 * grub-core/Makefile.core.def (net): New module.
18130 (emunet): Likewise.
18131 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18133 * grub-core/kern/device.c (grub_net_open) : New variable.
18134 (grub_device_open): Handle network device.
18135 (grub_device_close): Likewise.
18136 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18137 (grub_grubnet_fini): Likewise.
18138 (grub_file_seek): Seek in network device.
18139 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18140 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18142 (grub_machine_fini): Call grub_grubnet_fini.
18143 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18145 (grub_ieee1275_get_aliasdevname): New function.
18146 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18147 Add unofficial Solaris network info.
18148 (grub_multiboot_make_mbi): Likewise.
18149 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18150 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18151 * include/grub/device.h (grub_fs): Removed.
18152 * include/grub/err.h (grub_err_t): Add network-related values.
18153 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18154 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18155 (grub_ieee1275_get_aliasdevname): New proto.
18156 * include/grub/net.h: Rewritten.
18158 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18160 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18163 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18165 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18166 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18167 it truncates the output.
18168 Reported by: Ximin Luo.
18170 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18172 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18174 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18176 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18177 partmap before abstraction.
18179 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18181 * util/grub-mkconfig_lib.in: Add missing quotes.
18183 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18185 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18186 old method if mountinfo would return /dev/root and /dev/root doesn't
18189 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18193 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18194 (decomp_table): Add zlib entries.
18195 (zio_read): USe 8 bits for compression function rather than 3.
18196 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18198 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18200 * grub-core/disk/ahci.c: Add missing license statements.
18201 * grub-core/fs/romfs.c: Likewise.
18202 * grub-core/lib/ia64/setjmp.S: Likewise.
18203 * grub-core/loader/i386/pc/freedos.c: Likewise.
18204 * grub-core/loader/ia64/efi/linux.c: Likewise.
18205 * grub-core/video/colors.c: Likewise.
18206 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18208 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18212 * grub-core/Makefile.core.def (ata_pthru): Removed.
18213 (ahci): New module.
18215 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18217 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18219 (grub_hdparm_do_check_powermode_cmd): Likewise.
18220 (grub_hdparm_do_smart_cmd): Likewise.
18221 (grub_hdparm_set_val_cmd): Likewise.
18222 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18223 * grub-core/disk/ahci.c: New file.
18224 * grub-core/disk/ata.c: Factor out the low-level part into ...
18225 * grub-core/disk/pata.c: ... here.
18226 * grub-core/disk/ata_pthru.c: Contents moved to ...
18227 * grub-core/disk/pata.c: ... here.
18228 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18229 (grub_scsi_iterate): Use grub_scsi_names.
18230 (grub_scsi_open): Likewise.
18231 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18232 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18233 (grub_ata_regs_t): New struct.
18234 (grub_disk_ata_pass_through_parms): Likewise.
18235 (grub_ata_device): Renamed to ...
18236 (grub_ata): ... this.
18237 (grub_ata_dev): New struct.
18238 Removed all low-level inline functions.
18239 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18240 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18241 iterate hooks and open. All users updated.
18242 * util/grub-install.in: Handle AHCI disk module.
18244 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18246 Add support for DRI and RSTn markers in JPEG files.
18248 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18249 (JPEG_MARKER_RST0): Likewise.
18250 (JPEG_MARKER_RST1): Likewise.
18251 (JPEG_MARKER_RST2): Likewise.
18252 (JPEG_MARKER_RST3): Likewise.
18253 (JPEG_MARKER_RST4): Likewise.
18254 (JPEG_MARKER_RST5): Likewise.
18255 (JPEG_MARKER_RST6): Likewise.
18256 (JPEG_MARKER_RST7): Likewise.
18257 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18258 (grub_jpeg_decode_dri): New function.
18259 (grub_jpeg_decode_sos): Move image data related part into
18260 grub_jpeg_decode_data function.
18261 (grub_jpeg_decode_data): New function.
18262 (grub_jpeg_reset): New function.
18263 (grub_jpeg_decode_jpeg): Handle new markers.
18265 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18267 * util/ieee1275/ofpath.c (check_sas): Close fd.
18268 (main): Free of_path.
18269 Reported by: David Volgyes <dvolgyes>.
18271 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18273 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18274 Reported by: David Volgyes <dvolgyes>.
18276 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18278 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18280 Reported by: David Volgyes <dvolgyes>.
18282 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18284 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18286 Reported by: David Volgyes <dvolgyes>.
18288 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18290 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18291 Prevent memory leak.
18293 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18295 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18296 (main): Close file.
18297 Reported by: David Volgyes <dvolgyes>.
18299 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18301 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18302 to continue if allocation is failed.
18304 Reported by: David Volgyes <dvolgyes>.
18306 2011-06-23 David Volgyes <dvolgyes>
18308 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18311 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18313 Fix spurious warning.
18315 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18316 (acorn_partition_map_find): Use .bin member.
18318 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18320 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18321 /dev/root as a valid device.
18323 2011-06-23 Jim Meyering <meyering@redhat.com>
18325 Avoid NULL deref in grub_device_open.
18327 * grub-core/kern/device.c (grub_device_open): Don't dereference
18328 a NULL pointer upon failed grub_env_get.
18330 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18332 Support non-512B sectors and agglomerate reads.
18334 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18335 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18336 (disk_io_guid): Removed.
18337 (make_devices): Locate solely by BlockIO.
18338 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18339 (grub_efidisk_read): Use read_blocks.
18340 (grub_efidisk_write): Use write_blocks.
18341 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18343 (get_safe_sectors): Handle non-512B sectors.
18344 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18346 (grub_biosdisk_write): Handle non-512B sectors.
18347 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18348 (grub_scsi_read): Remove special non-512B block handling (now handled
18350 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18351 and do sanity checks.
18352 (grub_disk_adjust_range): Handle non-512B sectors.
18353 (transform_sector): New function.
18354 (grub_disk_read_small): Likewise.
18355 (grub_disk_read): Rewritten.
18356 (grub_disk_write): Handle non-512B sectors.
18357 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18359 (open_device): Use log_sector_size.
18360 (grub_util_biosdisk_read): Likewise.
18361 (grub_util_biosdisk_write): Likewise.
18362 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18364 (pc_partition_map_embed): Likewise.
18365 * include/grub/disk.h (grub_disk): New field log_sector_size.
18366 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18367 (GRUB_DISK_CACHE_BITS): Increased to 6.
18368 * util/grub-fstest.c (fstest): New command testload.
18369 (argp_parser): Likewise.
18371 2011-06-16 Robert Millan <rmh@gnu.org>
18373 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18374 `ata' driver on kernel of FreeBSD 9.
18376 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18377 (get_ataraid_disk_name): New functions.
18378 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
18379 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
18380 get_ataraid_disk_name() and get_ada_disk_name().
18382 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
18384 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
18387 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
18389 * docs/grub.texi (Obtaining and Building GRUB): Substitute
18390 `ftp.gnu.org' for `alpha.gnu.org'.
18392 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18394 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
18395 partitions under /dev/disk/by-id/.
18397 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18399 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
18400 after ten consecutive open failures. Scanning all the way up to
18401 10000 is excessive and can cause serious performance problems in
18402 some configurations.
18403 Fixes Ubuntu bug #787461.
18405 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18407 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
18410 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
18411 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18413 Don't stat devices unless we have to.
18415 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
18416 dir == /dev/mapper.
18417 (grub_guess_root_device): Use already known os_dev if possible.
18418 * grub-core/kern/emu/hostdisk.c
18419 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
18420 if device is known to be a dm one.
18422 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
18424 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
18425 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
18426 Reported by: Pawel Tecza.
18428 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
18430 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
18431 (lsefisystab): Likewise.
18433 (lsefimmap): Likewise.
18434 (hdparm): Enable on qemu-mips.
18435 (setjmp): Add ia64 nodist.
18436 (serial): Simplify tags.
18438 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18440 * Makefile.util.def (grub-ofpathname): Install manual page.
18442 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18444 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
18446 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18448 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
18450 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18452 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
18455 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18457 Use full 64-bit division.
18459 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
18460 (grub_divmod64): ... this.
18461 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
18464 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18466 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
18469 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18471 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
18472 to avoid accidents when debugging with 'sh -x'.
18473 * grub-core/gensyminfo.sh.in: Likewise.
18474 * tests/example_scripted_test.in: Likewise.
18475 * tests/grub_cmd_regexp.in: Likewise.
18476 * tests/grub_script_blanklines.in: Likewise.
18477 * tests/grub_script_dollar.in: Likewise.
18478 * tests/grub_script_expansion.in: Likewise.
18479 * tests/grub_script_final_semicolon.in: Likewise.
18480 * tests/partmap_test.in: Likewise.
18481 * tests/util/grub-shell-tester.in: Likewise.
18482 * tests/util/grub-shell.in: Likewise.
18484 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18486 Move gfxmenu color handling to video, so that gfxterm can use it
18489 * grub-core/gfxmenu/named_colors.c: Move to ...
18490 * grub-core/video/colors.c: ... here. Rename
18491 grub_gui_get_named_color to grub_video_get_named_color.
18492 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
18493 * grub-core/video/colors.c (my_isxdigit): ... here.
18494 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
18496 * grub-core/video/colors.c (parse_hex_color_component): ... here.
18497 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
18499 * grub-core/video/colors.c (grub_video_parse_color): ... here.
18501 * include/grub/gui.h (grub_gui_color_t): Move to ...
18502 * include/grub/video.h (grub_video_rgba_color_t): ... here.
18503 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
18504 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
18505 * include/grub/gui.h (grub_gui_map_color): Move to ...
18506 * include/grub/video.h (grub_video_map_rgba_color): ... here.
18507 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
18509 * include/grub/video.h (grub_video_get_named_color): ... here.
18510 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
18511 * include/grub/video.h (grub_video_parse_color): ... here.
18513 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
18515 (gfxmenu): Remove gfxmenu/named_colors.c.
18516 (video) [videomodules]: Add video/colors.c.
18518 Add a background_color command.
18520 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
18522 (GRUB_MOD_INIT): Register background_color command.
18523 (GRUB_MOD_FINI): Unregister background_color command.
18524 (redraw_screen_rect): Allow blend/replace of text layer to be
18525 controlled independently from whether there is a background bitmap.
18526 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
18529 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18531 Patch BPB in ntldr and chainloader --bpb.
18533 * grub-core/fs/fat.c: Include grub/fat.h.
18534 (grub_fat_bpb): Moved to ...
18535 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
18536 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
18538 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
18540 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
18542 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
18544 (grub_chainloader_cmd): Patch BPB if --bpb is given.
18545 (GRUB_MOD_INIT): Show --bpb.
18546 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
18547 * grub-core/normal/main.c (features): New variable.
18548 (GRUB_MOD_INIT): Set feature_* variables.
18549 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
18551 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
18553 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18555 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
18558 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18560 FreeDOS direct loading support.
18562 * docs/grub.texi (Supported OS): Add FreeDOS.
18563 * grub-core/Makefile.core.def (freedos): New module.
18564 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
18566 (grub_relocator16_boot): Handle %ebx.
18567 * grub-core/lib/i386/relocator16.S: Likewise.
18568 * grub-core/loader/i386/pc/freedos.c: New file.
18570 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18572 Long Linux command line support.
18574 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
18575 (maximal_cmdline_size): New variable.
18576 (allocate_pages): Use maximal_cmdline_size.
18577 (grub_cmd_linux): Set and use maximal_cmdline_size.
18578 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
18579 (allocate_pages): Use maximal_cmdline_size.
18580 (grub_cmd_linux): Set and use maximal_cmdline_size.
18581 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
18582 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
18585 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18586 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18588 Improve devmapper support
18590 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
18591 (grub_util_is_lvm): New function.
18592 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
18593 than lvm if not dmraid.
18594 Handle mapped md nodes.
18595 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
18596 (grub_util_device_is_mapped): ... this. Make always available. All users
18598 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
18599 (convert_system_partition_to_system_disk): Handle lvm, mpath and
18601 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
18603 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18605 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
18607 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
18608 * grub-core/modinfo.sh.in: New file.
18609 * grub-core/Makefile.core.def (modinfo.sh): New script.
18610 * util/grub-mknetdir.in: Use modinfo.sh.
18611 * util/grub-mkrescue.in: Likewise.
18613 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18615 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
18616 Fix potential usage of Elf32 instead of Elf64 when compiling on
18617 32-bit architecture. Add endianness macros while on it.
18619 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18621 Use mipsel- rather than mips- in directories involving mipsel ports to
18622 allow both endiannesses coexist.
18624 * configure.ac: proparate target_cpu=mipsel rather than resetting to
18625 mips. All conditions adjusted.
18626 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
18628 * util/grub-install.in: Adjust conditions to take renaming into account.
18629 * util/grub-mkimage.c (image_targets): Likewise. New target
18630 mips-qemu_mips-elf for bigendian mips.
18632 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18634 Avoid unnecessary copying on MIPS.
18636 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
18637 early if src == dest.
18638 * util/grub-mkimage.c (generate_image): Arange for src == dest if
18639 compression is none.
18641 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18643 Reduce memory footprint on SGI by putting modules before the kernel
18644 as opposed to after.
18646 * grub-core/Makefile.core.def (kernel): Increase linking address.
18647 (none_decompress): Likewise.
18648 (xz_decompress): Likewise.
18649 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
18651 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
18653 (grub_arch_modules_addr): New function.
18654 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
18655 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
18656 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
18658 * grub-core/kern/mips/startup.S (total_size): Rename to ...
18659 (grub_total_modules_size): ... this. Make global.
18660 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
18661 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
18663 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
18664 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
18665 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
18666 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
18667 * util/grub-mkimage.c (image_target_desc): New flag
18668 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
18669 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
18670 (generate_image): Handle images with modules before kernel.
18672 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18674 Prevent potential loss of memory map by overwrite on qemu-mips.
18676 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
18677 Save ram size in $s4.
18678 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
18679 All users changed to grub_arch_memsize.
18680 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
18682 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
18683 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
18684 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
18687 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18689 * .bzrignore: Remove grub-dumpbios.
18691 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18693 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
18694 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
18695 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
18696 existing options which append).
18697 * docs/grub.texi (Simple configuration): Document new options.
18698 Reported by: Ian Jackson. Fixes Debian bug #617538.
18700 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18702 * util/grub-fstest.c (cmd_cat): New function.
18703 (fstest): Handle CMD_CAT.
18704 (options): Add cat.
18705 (argp_parser): Handle cat.
18707 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18709 * Makefile.util.def (grub-bin2h): Don't install.
18710 * docs/man/grub-bin2h.h2m: Remove.
18712 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18714 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
18717 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18719 Reenable qemu-mips port.
18721 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
18722 Fix small arc bug while on it.
18723 * gentpl.py: Handle qemu_mips.
18724 * grub-core/Makefile.am: Likewise.
18725 * grub-core/Makefile.core.def: Likewise.
18726 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
18727 inappropriate includes.
18728 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
18729 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
18730 * grub-core/kern/main.c (grub_modules_get_end)
18731 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
18732 * grub-core/kern/mips/qemu-mips: Moved to ..
18733 * grub-core/kern/mips/qemu_mips: ... this.
18734 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
18735 (grub_machine_init): Call terminfo_init and serial_init.
18736 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
18737 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
18739 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
18741 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
18742 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
18743 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
18744 * include/grub/mips/qemu_mips/cmos.h: New file.
18745 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
18746 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
18748 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
18749 Use correct mips-style address.
18750 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
18751 (GRUB_TICKS_PER_SECOND): Removed.
18752 (grub_get_rtc): Likewise.
18753 (grub_cpu_idle): Likewise.
18754 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
18756 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
18757 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
18758 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
18759 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
18760 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
18761 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
18762 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
18763 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
18765 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18769 * Makefile.util.def (libgrubmods.a): Add dvh.c.
18770 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
18772 * configure.ac: New target mips-arc.
18773 * gentpl.py: Likewise.
18774 * grub-core/Makefile.am: Likewise.
18775 * grub-core/Makefile.core.def: Likewise.
18776 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
18777 (none_decompress): Likewise.
18778 (lsdev): New module.
18779 (datetime): Use lib/arc/datetime.c on ARC.
18780 (part_dvh): New module.
18781 * grub-core/commands/arc/lsdev.c: New file.
18782 * grub-core/disk/arc/arcdisk.c: Likewise.
18783 * grub-core/kern/mips/arc/init.c: Likewise.
18784 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
18786 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
18788 (grub_arch_dl_relocate_symbols): Likewise.
18789 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
18790 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
18791 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
18793 * grub-core/lib/arc/datetime.c: New file.
18794 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
18795 pci.h on non-loongson.
18796 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
18797 (grub_linux_boot): Set unused registers to 0.
18798 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
18799 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
18800 * grub-core/mmap/mips/uppermem.c: ...here.
18801 * grub-core/partmap/dvh.c: New file.
18802 * grub-core/term/arc/console.c: Likewise.
18803 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
18804 (grub_terminfo_set_current): Add terminal "arc".
18805 (grub_terminfo_readkey): Support ARC sequences.
18806 * include/grub/arc/arc.h: New file.
18807 * include/grub/arc/console.h: Likewise.
18808 * include/grub/disk.h (grub_disk_dev_id): Add
18809 GRUB_DISK_DEVICE_ARCDISK_ID.
18810 * include/grub/mips/arc/kernel.h: New file.
18811 * include/grub/mips/arc/memory.h: Likewise.
18812 * include/grub/mips/arc/time.h: Likewise.
18813 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
18814 * include/grub/mips/kernel.h (grub_halt): ... here.
18815 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
18817 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
18818 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
18819 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
18820 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
18822 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
18824 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
18825 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
18826 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
18827 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
18828 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
18829 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
18830 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
18831 (grub_phys_addr_t): Moved from here ...
18832 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
18833 (grub_vtop): Moved from here ...
18834 * include/grub/mips/memory.h (grub_vtop): ... here.
18835 (grub_map_memory): Moved from here ...
18836 * include/grub/mips/memory.h (grub_map_memory): ... here.
18837 (grub_unmap_memory): Moved from here ...
18838 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
18839 (grub_machine_mmap_iterate): Moved from here ...
18840 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
18841 (grub_mmap_get_lower): Moved from here ...
18842 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
18843 (grub_mmap_get_upper): Moved from here ...
18844 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
18845 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
18847 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
18848 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
18850 * include/grub/mips/time.h (grub_get_rtc): ... here.
18851 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
18853 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
18854 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
18856 * include/grub/mips/time.h (grub_cpu_idle): ... here.
18857 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
18859 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
18860 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
18861 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
18862 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
18863 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
18864 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
18865 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
18866 (GRUB_MACHINE_LINK_ADDR): Likewise.
18867 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
18869 * util/grub-install.in: Run dvhtool on ARC.
18870 * util/grub-mkimage.c (image_targets): Add mips-arc.
18871 (generate_image): Handle ECOFF output for mips-arc.
18873 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18875 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
18878 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18880 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
18881 after enabling port.
18883 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18885 Skip incorrect USB devices.
18887 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
18889 * include/grub/usb.h (grub_usb_err_t): New enum value
18890 GRUB_USB_ERR_BADDEVICE.
18892 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18894 Fuloong video init support.
18896 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
18898 (grub_vga_read_arx): New function.
18899 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
18901 (framebuffer): New members io, mmioptr and mmiobase.
18902 (read_sis_cmd): New function.
18903 (write_sis_cmd): Likewise.
18904 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
18905 rather than 640x400.
18906 * grub-core/video/sis315_init.c: New file.
18908 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18910 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
18912 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
18913 to grub_dl_register_symbol.
18915 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18917 Fix compilation errors.
18919 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
18920 potentially unused.
18921 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
18922 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
18923 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
18924 to loongson machines.
18926 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18928 Several FS mtime support.
18930 * grub-core/fs/affs.c (grub_affs_time): New struct.
18931 (grub_affs_file): New field mtime.
18932 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
18933 type. Removed 'size'. New field 'di'. All users updated.
18934 (grub_affs_mount): Simplify checsum checking.
18935 (grub_affs_iterate_dir): New helper grub_affs_create_node.
18936 (grub_affs_dir): Handle mtime.
18937 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
18938 (grub_cpio_dir): Likewise.
18939 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
18940 (grub_hfs_filerec): New field mtime.
18941 (grub_hfs_dir): Handle mtime.
18942 (grub_hfs_mtime): New function.
18943 (grub_hfs_fs): Register grub_hfs_mtime.
18944 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
18945 (grub_iso9660_dir): New field mtime.
18946 (grub_fshelp_node): New field dirent.
18947 (iso9660_to_unixtime): New function.
18948 (iso9660_to_unixtime2): Likewise.
18949 (grub_iso9660_read_symlink): Use node->dirent.
18950 (grub_iso9660_iterate_dir): Likewise.
18951 (grub_iso9660_dir): Set mtime.
18952 (grub_iso9660_mtime): New function.
18953 (grub_iso9660_fs): Register grub_iso9660_mtime.
18954 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
18955 (grub_jfs_inode): New fields atime, ctime and mtime.
18956 (grub_jfs_dir): Set mtime.
18957 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
18958 * grub-core/fs/ntfs.c (list_file): Set mtime.
18959 (grub_ntfs_dir): Likewise.
18960 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
18961 (grub_reiserfs_iterate_dir): Set mtime.
18962 (grub_reiserfs_dir): Likewise.
18963 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
18964 (grub_fshelp_node): Likewise.
18965 (grub_sfs_iterate_dir): Set mtime.
18966 (grub_sfs_dir): Likewise.
18967 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
18968 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
18969 (grub_xfs_inode): New fields atime, mtime, ctime.
18970 (grub_xfs_dir): Set mtime.
18971 * include/grub/datetime.h (grub_datetime2unixtime): New function.
18972 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
18973 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
18975 Support UDF symlinks.
18977 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
18978 (grub_ufs_read_symlink): New function. All users updated.
18980 Check amiga partmap checksum.
18982 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
18983 (grub_amiga_partition): Likewise.
18984 (amiga_partition_map_checksum): New function.
18985 (amiga_partition_map_iterate): Check checksum.
18987 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18991 * Makefile.util.def (libgrubmods.a): Add romfs.
18992 * grub-core/Makefile.core.def (romfs): New module.
18993 * grub-core/fs/romfs.c: New file.
18995 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18997 Squashfs v4 support.
18999 * Makefile.util.def (libgrubmods.a): Add squash4.
19000 * grub-core/Makefile.core.def (squash4): New module.
19001 * grub-core/fs/squash4.c: New file.
19002 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19003 disk_input_start, disk_input.
19004 (get_byte): Handle disk_input.
19005 (grub_zlib_disk_read): New function.
19006 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19008 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19009 2011-05-15 Feiran Zheng <famcool@gmail.com>
19011 * Makefile.util.def (libgrubmods.a): Add minix3.
19012 * grub-core/Makefile.core.def (minix3): New module.
19013 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19014 (GRUB_MINIX_BSIZE): Removed.
19015 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19016 (grub_minix_ino_t): New type.
19017 (grub_minix_le_to_cpu_ino): New macro.
19018 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19019 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19020 (grub_minix_data): New field block_size.
19021 (grub_minix_read_file): Handle 64-bit correctly.
19022 * grub-core/fs/minix3.c: New file.
19024 2011-05-15 Tristan Gingold <gingold@free.fr>
19025 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19026 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19030 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19031 * configure.ac: Add ia64-efi target.
19032 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19033 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19034 * gentpl.py: Add ia64_efi platform.
19035 Rename x86_efi to efi and Add ia64-efi. All users updated.
19036 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19037 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19038 Remove kern/generic/rtc_get_time_ms.c on EFI.
19039 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19040 kern/ia64/dl_helper.c on ia64-efi.
19041 Add kern/emu/cache.c on emu.
19042 (linux): Use on loader/ia64/efi/linux.c on ia64.
19043 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19044 whether symbol is a function.
19045 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19046 (grub_symbol): New field 'isfunc'.
19047 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19048 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19049 (grub_dl_load_segments): Place all sections into the same region.
19050 [__ia64__]: Create trampolines and got.
19051 [GRUB_MACHINE_EMU]: Call mprotect.
19052 (grub_dl_resolve_symbols): Resolve symbol type as well.
19053 [__ia64__]: Create function descriptors.
19054 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19055 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19056 (grub_get_rtc): New function.
19057 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19058 * grub-core/kern/emu/cache.S: Renamed to ...
19059 * grub-core/kern/emu/cache_s.S: ... this.
19060 [__ia64__]: Add a nop.
19061 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19062 [__ia64__]: New function.
19063 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19064 * grub-core/kern/ia64/dl.c: New file.
19065 * grub-core/kern/ia64/dl_helper.c: Likewise.
19066 * grub-core/kern/ia64/efi/init.c: New file.
19067 * grub-core/kern/ia64/efi/startup.S: Likewise.
19068 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19069 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19070 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19071 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19072 * grub-core/loader/ia64/efi/linux.c: New file.
19073 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19074 (GRUB_MOD_DEP): Likewise.
19075 (grub_dl) [__ia64__]: New fields got and tramp.
19076 (grub_dl): New field 'base'.
19077 (grub_dl_register_symbol): New argument isfunc. All users updated.
19078 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19079 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19080 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19081 (grub_ia64_dl_get_tramp_got_size): New proto.
19082 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19083 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19084 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19085 * include/grub/efi/api.h: Skip call wrappers on ia64.
19086 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19087 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19088 * include/grub/elf.h (ELF_ST_INFO): New definition.
19089 * include/grub/ia64/efi/kernel.h: New file.
19090 * include/grub/ia64/efi/memory.h: Likewise.
19091 * include/grub/ia64/efi/time.h: Likewise.
19092 * include/grub/ia64/kernel.h: Likewise.
19093 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19094 * include/grub/ia64/time.h: New file.
19095 * include/grub/ia64/types.h: Likewise.
19096 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19097 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19099 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19100 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19101 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19102 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19104 (EFI64_HEADER_SIZE): New definition. All users updated.
19105 (image_targets): Add ia64-efi.
19106 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19107 jumpers_addr. All users updated.
19108 Create function descriptors.
19109 (count_funcs): New function.
19110 (unaligned_uint32): New struct.
19111 (MASK20): New definition.
19112 (MASK19): Likewise.
19113 (MASKF21): Likewise.
19114 (add_value_to_slot_20b): New function.
19115 (add_value_to_slot_21_real): Likewise.
19116 (add_value_to_slot_21): Likewise.
19117 (ia64_kernel_trampoline): New struct.
19118 (nopm): New variable.
19120 (make_trampoline): New function.
19121 (relocate_addresses): Handle ia64.
19122 (make_reloc_section): Likewise.
19123 (load_image): Likewise.
19125 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19127 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19128 warning. Move variables before code while on it.
19130 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19134 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19135 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19136 * grub-core/boot/mips/loongson/fuloong.S: New file.
19137 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19138 Explicitly init CS5536.
19139 [FULOONG]: Don't use serial until CS5536 is available.
19140 Set GPIO based on dumps.
19141 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19142 [FULOONG]: Handle GPIO and memory controller differences.
19143 Parse machine type in $a2.
19144 * grub-core/boot/mips/startup_raw.S: Determine and save the
19146 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19147 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19148 init on architecture type.
19149 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19150 SIS315E. Don't init at_keyboard on fuloong.
19151 (grub_halt): Support Fuloong.
19152 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19153 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19154 (loongson_machtypes): New array.
19155 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19157 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19158 config. All users updated. Handle CS5536 serial.
19159 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19160 default port on machine type. Register serial as inactive.
19161 * grub-core/video/sis315pro.c: New file.
19162 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19164 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19165 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19166 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19167 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19168 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19169 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19171 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19172 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19174 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19175 (grub_arch_machine): New extern var.
19176 * include/grub/mips/loongson/serial.h
19177 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19178 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19179 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19180 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19181 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19182 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19183 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19184 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19185 * include/grub/term.h (grub_term_register_input_inactive): New inline
19187 (grub_term_register_output_inactive): Likewise.
19188 * include/grub/video.h (grub_video_driver_id): New value
19189 GRUB_VIDEO_DRIVER_SIS315PRO.
19190 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19191 New field "names". All users updated.
19192 New field value IMAGE_FULOONG_FLASH.
19193 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19195 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19197 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19198 and add some clarification.
19200 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19202 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19203 platforms if kernel is compressed.
19205 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19207 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19208 unused modules since currently referrence counter isn't reliable and
19209 there isn't much memory to recover there anyway.
19211 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19213 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19214 rather than resetting it to allow modules to reference themselves
19217 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19219 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19220 counter on dependencies since grub_dl_unref already handles this.
19222 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19224 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19225 on error if not already done.
19227 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19229 Fix few potential memory misusage.
19231 * grub-core/font/font.c (load_font_index): Don't free char_index to
19233 (grub_font_load): Zero-fill font at alloc for safety.
19234 Close file on error.
19235 (free_font): Free bmp_idx.
19237 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19239 * docs/grub.texi (Installation): Fix several outdated claims.
19241 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19243 Handle module_license on windows.
19245 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19247 (insert_string): Make argument const char * instead of char *.
19248 (write_section_data): Handle long section names.
19249 Handle module_license.
19251 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19253 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19254 handle class-free menuentries.
19255 (grub_normal_add_menu_entry): Add a check to be sure.
19257 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19259 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19262 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19264 * configure.ac: Bump version to 1.99.
19266 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19268 Give ATA device a bit more time on first try in order to allow disks
19271 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19272 if dev->present is 1. Reset dev->present on failure.
19273 (grub_ata_device_initialize): Set dev->present to 1.
19274 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19275 (grub_ata_device): New member 'present'.
19277 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19279 * util/grub-mkimage.c (generate_image): Update hash.
19281 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19283 Flush caches on DMA memory.
19285 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19286 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19287 (grub_dma_free): Likewise.
19288 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19290 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19292 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19293 to avoid asm treating ld and sd as macros.
19295 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19297 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19300 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19302 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19303 grub_decompress_core since later would fail if grub_decompress_core
19306 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19308 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19309 R_MIPS_JALR since it's used by newer compiler.
19311 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19313 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19315 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19317 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19318 file_path to 0 for surety.
19319 (grub_chainloader_boot): Set exit_data to NULL.
19320 Unset the loader once done.
19321 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19323 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19325 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19326 unknown key into a dprintf.
19328 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19330 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19331 on first non-existant partition.
19333 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19335 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19337 Reported by: Mark Korenberg.
19339 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19341 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19344 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19346 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19347 before closing to ensure that it will be readable by grub-setup.
19349 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19351 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19352 (devpath_1): Use MAKE_PIWG_PATH.
19353 (devpath_2): Likewise.
19354 (devpath_3): Likewise.
19355 (devpath_4): Likewise.
19356 (devpath_5): Likewise.
19357 (devpath_6): Likewise.
19359 The appleldr.mod was checked that to be binary identical to previous
19362 2011-05-05 Zach <mikezackles>
19364 Support 2010 Macbooks.
19366 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19367 (devs): Add devpath_6.
19369 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19371 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19372 /dev/random. /dev/urandom is good enough for our purposes (salting).
19374 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19376 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19378 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19380 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
19383 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19385 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
19386 and not 0 on failure.
19388 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19390 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
19391 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
19392 disk; otherwise grub_fs_probe will not fall back to the next
19394 (grub_pxefs_open): Likewise, for consistency.
19395 Reported and tested by: Ezekiel Grave.
19397 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19399 * tests/partmap_test.in: Don't hardcode path to parted.
19400 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
19402 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
19404 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
19405 of `ls' to find out which devices are available.
19407 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19409 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
19410 than source address for efi mmap buffer.
19412 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19414 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
19415 wrong action on non-detecting the magic.
19417 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19419 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
19420 already supplied by another part of the module (fixes compilation on
19423 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19425 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
19426 match the one used by mdadm.
19428 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19430 * po/README: Add instructions for creating po/LINGUAS.
19432 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19434 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
19437 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
19438 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
19439 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
19440 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
19441 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
19442 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
19443 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
19444 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
19445 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
19446 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
19447 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
19448 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
19449 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
19450 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
19451 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
19452 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
19453 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
19454 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
19455 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
19456 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
19457 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
19458 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
19460 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19462 * grub-core/kern/emu/getroot.c
19463 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
19464 test that was incorrectly reintroduced in r3214.
19465 Reported by: Ian Dall. Fixes Savannah bug #33133.
19467 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19469 Fix stack pointer handling in 16-bit relocator.
19471 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
19472 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
19473 Fixes Ubuntu bug #683904.
19475 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19477 * configure.ac: Bump version to 1.99~rc2.
19479 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19481 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
19482 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
19483 * grub-core/lib/x86_64/setjmp.S: Likewise.
19484 * grub-core/lib/mips/setjmp.S: Likewise.
19485 * grub-core/lib/powerpc/setjmp.S: Likewise.
19486 * grub-core/lib/sparc64/setjmp.S: Likewise.
19488 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19490 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
19491 * grub-core/lib/efi/datetime.c: Likewise.
19493 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19495 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
19497 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
19498 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
19499 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
19501 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19503 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
19505 (grub_gfxterm_term_init): Likewise.
19507 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19509 Take into account the decorations the computing menu entry width.
19511 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
19512 (grub_gfxmenu_create_box): Register get_border_width.
19513 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
19515 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
19518 2011-04-18 Endres Puschner <code@e7p.de>
19520 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
19521 Don't skip first class.
19523 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19525 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
19527 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
19529 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19531 Complete 64-bit division support.
19533 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
19534 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
19535 * include/grub/misc.h (grub_divmod64): Rename to ...
19536 (grub_divmod64_full): ... this.
19537 (grub_divmod64): New inline function.
19539 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19541 * util/grub-mkimage.c (generate_image): Add forgotten comma.
19543 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19545 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
19546 performing the necessary test.
19548 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
19550 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
19551 (kfreebsd.elf): Likewise.
19552 (pc-chainloader.elf): Likewise.
19553 (ntldr.elf): Likewise.
19555 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
19557 Identify RAID by its UUID rather than (guessed) name.
19559 * grub-core/disk/raid.c (ascii2hex): New function.
19560 (grub_raid_open): Accept mduuid/%s specification.
19561 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
19562 (get_mdadm_uuid): ... this.
19563 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
19565 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
19567 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
19570 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
19572 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
19574 * util/grub.d/20_linux_xen.in: Likewise.
19576 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
19578 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
19579 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
19581 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
19582 Build a list of relevant visible mounts using the mnt_id and
19583 parent_mnt_id fields, and then scan that list at the end.
19585 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19587 * docs/grub.texi (normal): New section.
19588 (normal_exit): New section.
19589 (Embedded configuration): Add reference to normal.
19590 (GRUB only offers a rescue shell): Likewise.
19591 * docs/grub-dev.texi (Error Handling): Fix typo.
19593 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19595 * NEWS: Drop obsolete entry about probe-only btrfs support.
19597 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19599 * util/import_gcry.py: Fix typo.
19601 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19603 * NEWS: Add btrfs support.
19605 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19606 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
19608 BtrFS support. Written by me (Vladimir) with important bugfixes and
19609 even more important testing by Colin.
19611 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
19612 * grub-core/Makefile.core.def (btrfs): Add crc.c.
19613 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
19614 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
19615 mem_input_off and mem_input. All users updated to accept in-RAM input.
19616 (gzio_seek): New function.
19617 (test_zlib_header): Likewise.
19618 (grub_gzio_read): Likewise.
19619 (grub_zlib_decompress): Likewise.
19620 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
19621 Accept partial and non-virtual mounts.
19622 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
19623 avoid receiving /dev/dm-X as device.
19624 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
19625 Handle bind and partial mounts.
19626 * grub-core/lib/crc.c: New file.
19627 * include/grub/deflate.h: Likewise.
19628 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
19630 * include/grub/lib/crc.h: New file.
19632 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19634 Implement automatic module license checking according to new GNU
19637 * grub-core/kern/dl.c (grub_dl_check_license): New function.
19638 (grub_dl_load_core): Use grub_dl_check_license.
19639 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
19640 (GRUB_MOD_LICENSE): Likewise.
19641 (GRUB_MOD_DUAL_LICENSE): Likewise.
19642 All modules updated.
19644 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
19646 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
19647 reserved_first_sector to 1. btrfs reserves plenty of space for boot
19649 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
19651 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19653 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
19655 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19657 * util/grub-fstest.c (read_file): Report GRUB error if file opening
19660 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19662 * grub-core/kern/file.c (grub_file_open): Don't take into account the
19663 parenthesis in the middle of the filename.
19665 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19667 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
19668 rather than trying to put initrd way too high.
19669 Reported by: Ryan Lortie <desrt@desrt.ca>
19671 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19673 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
19674 improperly removed string.
19676 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19678 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
19680 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
19681 (open_device) Likewise.
19682 (grub_util_biosdisk_close): Likewise.
19683 Reported by: Mark Korenberg.
19685 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
19687 * util/grub-mkconfig_lib.in: Add missing quotes.
19689 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
19691 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
19694 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19696 Dynamically count the number of lines for the lower banner.
19698 * grub-core/normal/menu_entry.c (per_term_screen): New member
19700 (print_down): Use num_entries.
19701 (update_screen): Likewise.
19702 (grub_menu_entry_run): Set num_entries.
19703 * grub-core/normal/menu_text.c (menu_viewer_data): New member
19705 (grub_print_message_indented): Move real part to ...
19706 (grub_print_message_indented_real): ... here. Additional argument
19708 (draw_border): Additional argument num_entries.
19709 (print_message): Additional argument dry_run.
19710 (print_entries): Receive menu viewer data.
19711 (grub_menu_init_page): New argment num_entries.
19712 (menu_text_set_chosen_entry): Use num_entries.
19713 (grub_menu_try_text): Likewise.
19714 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
19716 (grub_ucs4_count_lines): New function.
19717 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
19718 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
19719 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
19720 (grub_term_border_height): Likewise.
19721 (grub_term_num_entries): Likewise.
19723 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19725 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
19726 Remove now unused string.
19728 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
19730 * docs/grub-dev.texi (Finding your way around): Update for 1.99
19732 (Getting started): GRUB is developed in Bazaar now, not Subversion.
19734 (Comment): Fix typo.
19735 (Getting started): General copy-editing.
19736 (Typical Development Experience): Likewise.
19737 (Error Handling): Likewise.
19738 (Video API): Likewise.
19740 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
19742 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
19745 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19747 * util/grub-mkimage.c (main): Handle special naming of yeeloong
19750 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
19752 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
19753 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
19756 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19758 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
19759 grub_strcpy since the lines aren't necessarily 0-terminated.
19761 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19763 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
19766 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19768 * grub-core/commands/probe.c (options): Argument to set isn't optional.
19769 (GRUB_MOD_INIT): DEVICE isn't optional.
19771 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19773 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
19774 word on new line if it's too long anyway. Fixes a hang.
19776 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19778 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
19780 * util/grub-setup.c (main): Reuse md device name if available.
19781 * util/raid.c (grub_util_raid_getmembers): Receive device name and
19782 not GRUB name as argument.
19783 Based on patch by: Florian Wagner <fwagner>.
19785 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19787 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
19788 Place mbi on low memory for better compatibility.
19790 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19792 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
19794 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19795 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
19797 * autogen.sh: Ensure that collate and ctype locale is C.
19798 * conf/Makefile.common: Likewise.
19800 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19802 * grub-core/normal/menu.c: Add missing include.
19804 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19806 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
19808 2011-04-08 Martin Zuther <mzuther@mzuther.de>
19810 * util/grub-mkconfig.in: Ignore emacsen backup.
19812 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19814 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
19816 (grub_util_biosdisk_close): Likewise.
19818 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19820 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
19821 const attribute and use grub_isdigit.
19823 2011-04-06 Andrey <dev_null@ukr.net>
19825 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
19828 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19830 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
19831 useful grub_dprintf's.
19833 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19835 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
19837 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19839 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
19841 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19843 Output errors if theme loading failed.
19845 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
19846 grub_gfxterm_fullscreen on error paths to ...
19847 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
19848 theme loading error.
19850 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19852 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
19853 space for older compilers.
19854 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
19856 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19858 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
19859 and report them as not RAID members since they are useless for GRUB.
19860 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19862 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19864 Increase LVM implementation robustness in order not to crash on
19865 configurations like pvmove. Previously code assumed that in some places
19866 only lvs or only pvs are used whereas it seems that they are used
19869 * grub-core/disk/lvm.c (read_node): New function.
19870 (read_lv): Use read_node.
19871 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
19872 Match volumes only at the end when all lvs are found. Take both
19873 pvs (first) and lvs (second) into account.
19874 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
19875 mirror_* into node_*. All users updated.
19876 (grub_lvm_stripe): Merge this ...
19877 (grub_lvm_mirror): ... and this ...
19878 (grub_lvm_node): ... into this. All users updated.
19880 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19882 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
19883 of function to allow further scanning for LVMs.
19885 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19887 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
19888 on failed seek as it breaks open fd reusage.
19890 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19892 * util/grub-install.in: Add a recommendation to use --recheck before
19895 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19897 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
19900 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19902 GRUB developper manual based on existing Internals section and
19903 contributions by the various authors with active copyright assignment.
19905 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
19906 * docs/font_char_metrics.png: New file.
19907 * docs/font_char_metrics.txt: Likewise.
19908 * docs/grub-dev.texi: Likewise.
19909 * docs/grub.texi (Internals): Move from here ...
19910 * docs/grub-dev.texi: ... here.
19912 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
19914 Store the loopback device as data on loopback grub_disk structures,
19915 rather than the file it points to. This fixes use of freed memory
19916 if an existing loopback device is replaced.
19918 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
19919 disk->data, not dev->file.
19920 (grub_loopback_read): Adjust file assignment to match.
19921 Fixes Ubuntu bug #742967.
19923 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
19925 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
19926 when replacing an existing device.
19928 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
19930 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
19931 memory corruptions.
19933 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
19935 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
19936 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
19937 (grub_jfs_read_inode): Likewise.
19938 (grub_jfs_opendir): Likewise. Remove now useless casts.
19939 (grub_jfs_getent): Likewise.
19940 Make ino a grub_uint32_t rather than int.
19941 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
19942 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
19943 division and module with bit operations.
19944 (grub_jfs_find_file): Make ino a grub_uint32_t.
19945 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
19947 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
19949 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
19950 warning. (This was in fact always initialised before use, but GCC
19951 wasn't smart enough to prove that.)
19952 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
19954 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
19956 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
19958 (efi_wrap_1): Likewise.
19959 (efi_wrap_2): Likewise.
19960 (efi_wrap_3): Likewise.
19961 (efi_wrap_4): Likewise.
19962 (efi_wrap_5): Likewise.
19963 (efi_wrap_6): Likewise.
19964 (efi_wrap_10): Likewise.
19965 Based on information by: Red Hat/Peter Jones.
19967 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
19969 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
19970 set-but-not-used variable.
19972 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
19974 * docs/grub.texi (Simple configuration): Be more explicit about
19975 GRUB_DEFAULT, and add an example.
19976 Reported by: Leslie Rhorer.
19978 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
19980 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
19983 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
19985 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
19986 * util/grub.d/20_linux_xen.in: Likewise.
19988 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19990 * util/grub.d/10_linux.in: Try alternative config filenames where
19991 we parse config file.
19992 * util/grub.d/20_linux_xen.in: Likewise.
19994 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
19996 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
19997 * util/grub.d/20_linux_xen.in: Likewise.
19999 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20001 * grub-core/disk/raid.c (insert_array): Add few potentially
20002 useful grub_util_info.
20003 (grub_raid_register): Likewise.
20005 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20007 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20008 Preserve partition number in mdadm code path.
20010 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20012 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20013 few potentially useful grub_util_info.
20015 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20017 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20019 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20021 * docs/grub.texi (default): Use @example rather than nested
20022 itemized lists to avoid breaking gendocs.
20024 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20026 * docs/grub.texi (Future): Update.
20028 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20030 * docs/grub.texi (Environment): New chapter.
20031 (Changes from GRUB Legacy): Link to "Environment block" section for
20032 details of limitations.
20033 (Simple configuration): Likewise. Link to documentation of gfxmode
20034 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20036 (Shell-like scripting): Note that normal variables are stored in the
20038 (gettext): Link to documentation of lang and locale_dir.
20039 (list_env): New section.
20040 (load_env): New section.
20041 (save_env): New section.
20043 (Reporting bugs): Fix typo.
20045 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20047 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20050 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20052 * grub-core/term/at_keyboard.c (set_scancodes)
20053 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20055 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20057 * docs/grub.texi (Menu-specific commands): Remove some semantics
20058 that were true in GRUB Legacy but not in GRUB 2.
20059 (submenu): New section.
20060 (false): New section.
20061 (read): New section.
20062 (true): New section.
20064 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20066 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20068 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20070 * docs/grub.texi (Simple configuration): Explain some of the
20071 current limitations of grub-mkconfig.
20072 Reported by: Leslie Rhorer.
20074 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20076 Old macs search for boot.efi rather than for bootia32.efi.
20078 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20079 * util/grub-mkrescue.in: Likewise.
20080 Suggested by: Peter Jones.
20082 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20084 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20086 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20088 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20089 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20090 (grub_lvm_mirror): New struct.
20091 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20092 (grub_lvm_iterate): Iterate only visible volumes.
20093 (grub_lvm_read): Factor out to ..
20094 (read_lv): ... this. Support mirrors.
20095 (grub_lvm_read): New wrapper function.
20096 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20097 stripped or mirrored.
20099 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20101 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20103 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20105 * docs/grub.texi (loopback): New section.
20107 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20109 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20112 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20114 * docs/grub.texi (BIOS installation): New section, partly based on
20115 previous text in other sections.
20116 (Installing GRUB using grub-install): Replace BIOS discussion with a
20118 (Images): Likewise.
20120 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20122 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20123 [HAVE_DIOCGDINFO]: Add safety checks.
20125 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20127 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20128 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20130 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20132 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20133 real_sb->size is zero (e.g. RAID-0), get the disk size from
20134 real_sb->data_size instead.
20135 Fixes Ubuntu bug #743136.
20137 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20139 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20140 printf clauses for printing size and start.
20142 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20144 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20145 Reported and tested by: Timothy Nikkel.
20147 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20149 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20150 (dirty_region_add_real): ... this.
20151 (dirty_region_add): Don't discard margin refresh when performing
20154 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20156 * grub-core/lib/relocator.c (allocate_regstart)
20157 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20158 terminals are capabple of malloc-free operation.
20159 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20160 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20162 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20164 * util/grub-setup.c: Copy the partition table zone if floppy support
20165 is disabled, even if no partition table is found.
20167 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20168 during POST if an invalid partition table is contained in the PBR
20169 of the active partition when GRUB is installed to a partition.
20171 2011-03-28 Colin Watson <cjwatson@debian.org>
20173 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20176 2011-03-28 Colin Watson <cjwatson@debian.org>
20178 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20179 to be specific about what kind of RAID device we're scanning for.
20181 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20183 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20184 return freed string.
20186 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20188 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20190 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20192 Use libgeom on FreeBSD to detect partitions.
20194 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20195 (grub-mkrelpath): Likewise.
20196 (grub-script-check): Likewise.
20197 (grub-editenv): Likewise.
20198 (grub-mkpasswd-pbkdf2): Likewise.
20199 (grub-fstest): Likewise.
20200 (grub-mkfont): Likewise.
20201 (grub-mkdevicemap): Likewise.
20202 (grub-probe): Likewise.
20203 (grub-setup): Likewise.
20204 (grub-ofpathname): Likewise.
20205 (grub-mklayout): Likewise.
20206 (example_unit_test): Likewise.
20207 (grub-menulst2cfg): Likewise.
20208 * grub-core/Makefile.core.def (grub-emu): Likewise.
20209 (grub-emu-lite): Likewise.
20210 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20211 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20212 define HAVE_DIOCGDINFO.
20213 (follow_geom_up) [FreeBSD]: New function.
20214 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20215 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20216 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20217 unconditionally of HAVE_DIOCGDINFO.
20219 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20221 Fix FreeBSD compilation problem.
20223 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20224 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20226 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20228 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20229 Switch back to page zero before loading a kernel, since some kernel
20230 drivers expect that.
20231 Thanks to: Felix Kuehling.
20233 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20235 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20236 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20237 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20239 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20241 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20242 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20244 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20246 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20247 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20248 malloc is disabled.
20250 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20252 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20253 for modules headers when counting the needed allocation size.
20255 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20257 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20258 if no ASCII character is found to prevent crash.
20260 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20262 * grub-core/video/bitmap.c (match_extension): Ignore case.
20264 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20266 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20268 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20270 * grub-core/script/parser.y: Declare "time" as valid argument.
20272 2011-03-23 Peter Jones <pjones@redhat.com>
20274 Fix incorrect assert failure reporting.
20276 * grub-core/tests/example_functional_test.c (example_test): Add
20278 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20279 (failure_start): ...this. Check that malloc succeeded.
20280 Don't call xvasprintf. Return failure struct.
20281 (failure_append_vtext): New function.
20282 (failure_append_text): Likewise.
20283 (add_failure): Likewise.
20284 (grub_test_assert_helper): Likewise.
20285 * include/grub/test.h (grub_test_assert_helper): New declaration.
20286 (grub_test_assert): Macro rewritten.
20288 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20290 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20292 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20294 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20296 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20298 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20299 into GRUB-style one.
20301 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20303 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20304 error and not grub_errno.
20305 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20307 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20309 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20310 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20312 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20314 * grub-core/efiemu/i386/pc/cfgtables.c
20315 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20316 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20317 (grub_xnu_unlock): Likewise.
20318 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20320 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20322 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20323 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20324 * grub-core/commands/hashsum.c (aliases): Likewise.
20325 * grub-core/commands/setpci.c (pci_registers): Likewise.
20326 * grub-core/disk/usbms.c (attach_hook): Likewise.
20327 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20328 (zio_checksum_table): Likewise.
20329 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20330 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20331 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20332 * grub-core/lib/relocator.c (leftovers): Likewise.
20333 (extra_blocks): Likewise.
20334 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20335 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20336 (modules_last): Likewise.
20337 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20338 (devices): Likewise.
20339 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20340 (modules_last): Likewise.
20341 * grub-core/normal/auth.c (users): Likewise.
20342 * grub-core/normal/context.c (initial_menu): Likewise.
20343 (current_menu): Likewise.
20344 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20345 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20346 (grub_serial_terminfo_input_template): Likewise.
20347 (grub_serial_terminfo_output_template): Likewise.
20348 (grub_serial_terminfo_input): Likewise.
20349 (grub_serial_terminfo_output): Likewise.
20350 (registered): Likewise.
20351 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20353 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20355 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20356 grub_video_mode_type_t.
20357 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20358 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20359 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20361 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20363 * util/grub-install.in: Correct the x86-64 name as x86_64.
20365 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
20367 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20368 initial chunk read from the kernel always includes GRUB's multiboot
20369 header, which is now outside the first sector.
20371 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20373 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20374 cached mmap_size, so that this works correctly when called multiple
20376 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20378 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20380 * docs/grub.texi (Simple configuration): Tidy up formatting.
20382 2011-03-07 Szymon Janc <szymon@janc.net.pl>
20384 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
20385 Set-but-not-used variable removed.
20387 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20389 Workaround yet another IEEE1275 bug.
20391 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
20392 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
20393 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
20394 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
20396 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20397 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
20399 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20401 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
20404 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
20406 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
20407 empty, since in that case we can only generate either nothing or a
20408 syntactically invalid configuration file.
20409 Reported by: Michal Suchanek. Fixes Debian bug #612898.
20411 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20413 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
20414 (Making a GRUB bootable CD-ROM): Likewise.
20415 (Invoking grub-mkrescue): New section.
20416 Reported by: Yann Dirson. Fixes Debian bug #612585.
20418 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20420 * util/grub-install.in: Remove unnecessary brackets from tr
20422 * util/grub.d/10_hurd.in: Likewise.
20423 * util/grub.d/10_kfreebsd.in: Likewise.
20424 * util/grub.d/10_linux.in: Likewise.
20425 * util/grub.d/20_linux_xen.in: Likewise.
20426 Reported by: Jamie Heilman. Fixes Debian bug #612564.
20428 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
20430 * include/grub/file.h (not_easly_seekable): Rename to ...
20431 (not_easily_seekable): ... this. Update all users.
20433 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
20435 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
20438 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
20440 * util/grub-mkimage.c (generate_image): Refuse to create the images
20441 bigger than the actual flash (512K) in Loongson machines. 512K is also
20442 the biggest chip supported by them.
20444 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20446 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
20448 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
20450 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
20451 super_offset field.
20453 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20455 * util/grub-install.in: Ignore install device on platforms
20456 where it doesn't make sense. Always use UUIDs except on pc, efi and
20458 Reported by: Daniel Kahn Gillmor.
20460 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20462 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
20464 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20466 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
20467 (iterate_real): Don't rely on partition being non-NULL.
20469 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20471 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
20472 supported platforms. Put a compile time assert for this rather than
20473 generate a warning with 32-bit shift.
20475 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20477 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
20478 logical expression more readable.
20480 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20482 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
20483 even if some elements have a name.
20484 Reported by: Alexander GQ Gerasiov.
20486 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
20488 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
20489 path unreadable if `grub-probe -t abstraction' fails, for example if
20490 memberlist fails on an LVM volume group.
20491 Reported by: Darius Jahandarie.
20493 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
20495 * docs/grub.texi (Simple configuration): Document
20496 GRUB_PRELOAD_MODULES.
20498 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
20500 * .bzrignore: Remove nonexistent grub-pbkdf2.
20502 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
20504 * configure.ac: Bump version to 1.99~rc1.
20506 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
20508 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
20511 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
20513 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
20516 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
20518 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
20520 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20522 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
20525 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20527 Fix compilation on cygwin.
20529 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
20530 -R .drectve on cygwin.
20531 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
20532 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
20533 (COND_CYGWIN): New condition.
20534 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
20535 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
20536 not @TARGET_OBJ2ELF@.
20537 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
20538 type to determine whether aux is to be used.
20540 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20542 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
20543 realpath'ed device string.
20544 Handle floppy (somewhat).
20545 Issue error in unknown case rather than garbage.
20546 Reported by: Axel Beckert.
20548 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20550 * util/grub.d/00_header.in (load_video): Handle the case when no video
20552 Thanks to: Axel Beckert.
20554 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20556 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
20557 variable. Fixes problem on big endian platforms.
20559 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20561 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
20562 It doesn't work well there.
20564 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20566 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
20568 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
20569 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
20572 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20574 Use alias->path rather than buggy "canon".
20576 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
20577 (ofdisk_hash_add): New argument curcan. All users updated.
20579 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
20581 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
20583 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20585 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
20586 loadmask before doing any calculations. Use correct type for offset.
20587 (grub_linux_load64): Likewise.
20589 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
20591 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
20593 (console_grub_equivalences_unshift): Likewise.
20594 Reported by: Daniel Dehennin.
20596 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20598 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
20599 (set_env_limn_ro): Likewise.
20600 (GRUB_MOD_INIT): Likewise.
20601 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
20602 ARRAY_SIZE while on it.
20603 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
20604 * grub-core/normal/context.c (grub_env_export): Move from here ...
20605 * grub-core/kern/env.c (grub_env_export): ... here.
20606 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
20608 * grub-core/kern/main.c (grub_main): Export root and prefix.
20609 * include/grub/env.h (grub_env_export): Export.
20610 Reported by: Seth Goldberg.
20612 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20614 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20615 Take into account space used by ELF sections and multiboot palette.
20616 Reported by: Grégoire Sutre.
20618 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20622 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20624 Pass more appropriate video id to Linux.
20626 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
20627 grub_video_get_driver_id and variable gfxpayloadforcelfb to
20629 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
20630 shift params->lfb_size.
20631 * include/grub/i386/linux.h: Make an enume out of have_vga values.
20633 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20635 * util/grub-menulst2cfg.c: Add missing include of misc.h.
20637 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20639 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
20640 separator and pass bootpath/devid even if only one of them is available.
20641 Reported by: Seth Goldberg.
20643 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20645 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
20646 implementations bug on them.
20648 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
20650 (filter_memory_map): Likewise.
20652 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20654 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
20655 Reported by: nebuchadnezzar.
20657 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20659 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
20660 Reported by: nebuchadnezzar.
20662 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20664 Submenu default support.
20666 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
20667 auto_boot. All users updated.
20669 Handle chosen and default with submenus.
20670 (grub_menu_execute_with_fallback): Declared static.
20671 Don't notify failure if autobooted. Upper level does it.
20672 (menuentry_eq): New function.
20673 (get_entry_number): Use menuentry_eq.
20674 (show_menu): New parameter "autobooted". All users updated.
20675 (grub_show_menu): Likewise.
20676 * include/grub/normal.h (grub_show_menu): Likewise.
20677 * include/grub/menu.h (grub_menu_execute_entry): Removed.
20678 (grub_menu_execute_with_fallback): Likewise.
20680 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20682 * util/grub-mklayout.c (usage): Update help text.
20684 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20686 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
20688 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20690 * util/grub-menulst2cfg.c (main): Trim the line.
20692 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20694 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
20695 (grub_machine_init): Don't check amount of low memory as reportedly
20696 INT 12h can be broken and if low memory is too low we wouldn't have
20697 gotten into grub_machine_init anyway.
20699 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20701 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
20702 (grub_machine_mmap_iterate): Take low memory into account
20704 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20706 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
20708 Reported by: TiCPU.
20710 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20712 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
20715 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
20717 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
20718 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
20720 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
20722 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
20723 openbsd and netbsd types being in part_bsd module.
20725 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20727 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
20728 (_FILE_OFFSET_BITS): Likewise.
20729 Reported by: Seth Goldberg.
20731 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20733 * configure.ac: Check for libdevmapper header.
20735 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20737 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
20739 (fzap_lookup): Likewise.
20740 (dnode_get): Likewise.
20741 (make_mdn): Likewise.
20742 (zfs_mount): Likewise.
20743 (fzap_iterate): Use temporary pointer to avoid aliasing.
20744 (grub_zfs_read): Likewise.
20745 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
20746 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
20747 pointers to avoid aliasing.
20748 (grub_cmd_xnu_kernel64): Likewise.
20749 (grub_xnu_load_driver): Likewise.
20751 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20753 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
20755 (grub_cmd_terminal_output): Likewise.
20756 Reported and tested by: Grégoire Sutre.
20758 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20760 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
20762 Reported and tested by: Grégoire Sutre.
20764 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20766 * configure.ac: Do CPU substitution even if it's specified explicitly.
20767 Reported and tested by: Alain Greppin.
20769 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20771 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
20772 Reported and tested by: Alain Greppin.
20774 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20776 Satisfy some bison versions need for inttypes.h.
20778 * grub-core/lib/posix_wrap/inttypes.h: New file.
20779 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
20780 (int16_t): Likewise.
20781 (int32_t): Likewise.
20782 (int64_t): Likewise.
20783 Reported and tested by: Alain Greppin.
20785 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20787 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
20788 Silence spurious warning.
20789 Reported and tested by: Alain Greppin.
20791 2011-01-07 Szymon Janc <szymon@janc.net.pl>
20793 * docs/grub.texi (Support automatic decompression): Update with xz
20794 decompression support.
20796 2011-01-07 Szymon Janc <szymon@janc.net.pl>
20798 Improve loaders' kernel command line handling.
20800 * grub-core/lib/cmdline.c: New file.
20801 * include/grub/lib/cmdline.h: Likewise.
20802 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
20803 grub_create_loader_cmdline to create kernel command line.
20804 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20805 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
20806 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
20807 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
20808 (linux): Add lib/cmdline.c on common.
20810 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20812 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
20813 inopos might be unaligned.
20815 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20817 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
20818 endian transformations.
20819 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20820 Based on report by: Doug Nazar.
20822 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
20824 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
20825 array->members[i].start_sector.
20826 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
20828 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20830 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
20831 Reported and tested by: Grégoire Sutre.
20833 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
20835 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
20836 avoid causing test failures by clearing the screen.
20838 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
20840 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20841 Fix prefix check to handle the case where dir ends with a slash
20842 (most significantly, "/" itself).
20843 Reported by: Michael Vogt.
20845 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20847 Run terminfo_cls on initing terminfo output to clear the screen and
20848 move the cursor to (0,0).
20850 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
20851 Call grub_terminfo_output_init.
20852 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
20853 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
20854 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
20856 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20858 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
20861 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20863 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
20866 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20868 The E820 type 5 is BADRAM, not EXEC_CODE.
20870 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
20871 (GRUB_E820_BADRAM): New define.
20872 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
20873 into reserved. Propagate BADRAM.
20874 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
20875 (GRUB_E820_BADRAM): New define.
20877 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20879 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
20880 Ignore the memory post-4G.
20881 (grub_relocator_firmware_alloc_region): Additional debug statement.
20883 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20885 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
20887 Reported by: David Pravec.
20889 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20891 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
20894 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20896 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
20898 (grub_reed_solomon_recover): Likewise.
20900 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20902 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
20904 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20906 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
20909 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
20911 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
20912 descriptions of extract_legacy_entries_source and
20913 extract_legacy_entries_configfile.
20914 Reported by: Seung Soo, Ha.
20916 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
20918 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
20919 on devices that do not implement function 0.
20921 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
20923 * grub-core/fs/hfsplus.c: Make parent unsigned.
20924 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
20926 (grub_hfsplus_cmp_extkey): Likewise
20928 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
20930 * util/grub-install.in: Correctly use bootloader_id and not
20931 GRUB_DISTRIBUTOR on efibootmgr line.
20933 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
20935 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
20937 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
20939 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
20940 Xen and reorder menu item wording to make it clearer that this entry
20941 will launch Xen. Print separate messages when loading Xen and
20944 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20946 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
20947 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
20948 loop in case of incorrect amiga partmap.
20950 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20952 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
20953 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
20956 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20958 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
20960 Reported by: crocket
20962 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20964 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
20966 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
20968 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20970 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
20972 (grub_cmd_xnu_kextdir): Likewise.
20973 (grub_cmd_xnu_splash): Likewise.
20975 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20977 Avoid using Reed-Solomon with 0 redundancy.
20979 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
20980 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
20982 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
20983 (grub_reed_solomon_recover): Likewise.
20985 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20987 Don't use disk subsystem in freebsd_boot.
20989 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
20990 (freebsd_biosdev): Likewise.
20991 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
20992 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
20994 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
20996 Handling of files of unknown size is currently limited. They can't be
20997 used e.g. for initrd or modules. Moreover gzip handling of not
20998 easily seekable files is buggy. Disable unknown file size for now. May
20999 be inefficient but works.
21001 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21002 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21004 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21006 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21009 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21011 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21013 2010-12-25 Shea Levy <shlevy>
21015 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21017 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21019 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21020 Windows Server 2008.
21021 Reported by: Devin Giddings.
21023 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21025 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21026 writing an error message because of async power management.
21027 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21028 (grub_reboot): Likewise.
21030 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21032 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21033 keep unit tests from failing when they shouldn't.
21035 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21037 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21038 previous patch increased the size of the RS code by 20 bytes (at
21039 least with gcc-4.4), so increase this by 20 bytes to match.
21040 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21042 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21044 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21045 scratch area. Make sure to initialise chosen in standalone mode as
21046 well as non-standalone.
21047 Reported by: Robert Hooker and Andy Whitcroft.
21048 Tested by: Andy Whitcroft.
21050 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21052 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21053 constructing a new unescaped string and passing it to grub_xputs in
21054 one go, rather than passing characters to grub_printf one at a time.
21056 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21058 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21059 initialising utf16.
21061 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21063 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21064 comment. Add an extra layer of quotation, requiring the output of
21065 this function to be used in a printf format string.
21066 (gettext_printf): New function.
21067 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21068 Extract translatable strings from here-documents and use a temporary
21069 variable instead, so that xgettext can find them.
21070 * util/grub.d/10_kfreebsd.in: Likewise.
21071 * util/grub.d/10_linux.in: Likewise.
21072 * util/grub.d/20_linux_xen.in: Likewise.
21074 * po/grub.d.sed: New file.
21075 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21076 arguments. Set c-format flags on all strings extracted from
21077 util/grub.d/ (xgettext refuses to include these itself for strings
21078 it extracted from a shell file, but these really are c-format).
21080 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21082 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21083 Avoid next pointing to nowhere.
21085 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21087 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21088 rather than assuming than rootblock is exactly in the middle.
21089 (grub_affs_label): Likewise.
21091 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21093 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21094 reserved_first_sector to 0.
21095 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21096 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21097 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21099 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21101 Fix handling of UTF-16 UDF labels.
21103 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21104 (read_string): .. here.
21105 (grub_udf_label): Use read_string.
21107 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21109 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21110 editor under argument scope.
21111 Reported by: Jordan Uggla
21113 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21115 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21117 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21119 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21120 line, and other keys scroll an entire page (previous handling was
21121 for \r and \n to scroll a page and other keys to scroll two lines).
21123 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21125 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21126 Set ptrdest to correct get_physical_target_address rather than
21127 incorrect get_virtual_current_address.
21129 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21131 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21132 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21134 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21136 * .bzrignore: Ignore grub-core/rs_decoder.S.
21138 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21140 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21141 .mo/.mo.gz opening sequence to ...
21142 (grub_mofile_open_lang): ... here.
21143 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21144 * util/grub.d/00_header.in (grub_lang): Include country part of
21146 Reported by: Mario Limonciello.
21148 2010-12-09 Robert Millan <rmh@gnu.org>
21150 * NEWS: Document addition of ZFS support.
21152 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21154 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21155 rather than `/ 2', as the latter requires -Wa,--divide which would
21156 require bumping our minimum binutils version.
21158 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21160 * util/grub-script-check.c (main): Print script line number on
21163 2010-12-01 Robert Millan <rmh@gnu.org>
21165 * grub-core/fs/zfs/zfs.c: New file.
21166 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21167 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21168 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21169 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21171 * include/grub/zfs/dmu.h: Likewise.
21172 * include/grub/zfs/dmu_objset.h: Likewise.
21173 * include/grub/zfs/dnode.h: Likewise.
21174 * include/grub/zfs/dsl_dataset.h: Likewise.
21175 * include/grub/zfs/dsl_dir.h: Likewise.
21176 * include/grub/zfs/sa_impl.h: Likewise.
21177 * include/grub/zfs/spa.h: Likewise.
21178 * include/grub/zfs/uberblock_impl.h: Likewise.
21179 * include/grub/zfs/vdev_impl.h: Likewise.
21180 * include/grub/zfs/zap_impl.h: Likewise.
21181 * include/grub/zfs/zap_leaf.h: Likewise.
21182 * include/grub/zfs/zfs.h: Likewise.
21183 * include/grub/zfs/zfs_acl.h: Likewise.
21184 * include/grub/zfs/zfs_znode.h: Likewise.
21185 * include/grub/zfs/zil.h: Likewise.
21186 * include/grub/zfs/zio.h: Likewise.
21187 * include/grub/zfs/zio_checksum.h: Likewise.
21189 * Makefile.util.def: Build ZFS into libgrubmods.
21190 * grub-core/Makefile.core.def: Build zfs.mod.
21192 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21194 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21196 * grub-core/commands/wildcard.c (match_files): Likewise.
21198 2010-11-30 Robert Millan <rmh@gnu.org>
21200 * grub-core/loader/i386/bsd.c
21201 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21202 whether kernel is loaded using grub_loader_is_loaded(), rather
21203 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21204 certain error conditions.
21206 2010-11-30 Robert Millan <rmh@gnu.org>
21208 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21209 (grub_cmd_echo): Call grub_refresh() after printing a message.
21211 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21213 Avoid using tricks for initialising endian variables.
21215 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21217 (GRUB_MOD_INIT): Don't byte-swap.
21218 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21219 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21220 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21221 (grub_swap_bytes32_compile_time): Likewise.
21222 (grub_cpu_to_le32_compile_time): Likewise.
21223 (grub_cpu_to_le16_compile_time): Likewise.
21225 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21227 * util/grub-setup.c (setup): Stop recommending --force. People who
21228 understand the dangers of blocklists are able to find this option
21229 anyway and the ones who don't shouldn't use it anyway.
21231 2010-11-26 Robert Millan <rmh@gnu.org>
21233 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21236 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21238 Fix LVM-on-RAID probing.
21240 * util/grub-probe.c (probe): Remember which disk was detected as
21241 RAID (perhaps an LVM physical volume). Use that disk's raidname
21242 rather than that of the top-level disk.
21244 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21246 Fix cmdline argument quotes for setparams command of menuentry
21249 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21250 quotes for arguments.
21251 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21252 grub_strchrsub function instead.
21254 * include/grub/misc.h (grub_strchrsub): New function.
21256 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21258 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21259 effort by skipping "." and ".." entries up-front.
21260 Suggested by: Michael Lazarev.
21262 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21264 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21265 ldflags to ldadd, to fix link line ordering.
21266 (none_decompress): Likewise.
21268 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21270 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21272 (grub-emu-lite): Remove kern/emu/cache.S.
21274 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21276 * util/deviceiter.c (compare_devices): If the by-id link for a
21277 device couldn't be resolved, fall back to sorting by the by-id link
21278 rather than segfaulting.
21279 Reported and tested by: Daniel Mierswa.
21281 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21283 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21284 ldflags, to fix link line ordering.
21286 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21288 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21289 linkers are picky about this.
21291 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21293 * grub-core/Makefile.am (command.lst): Adjust sed expression
21294 ordering so that extended and priority commands aren't treated as
21297 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21299 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21300 Remove byte-swapping function calls, which are not valid in
21301 structure initialisers.
21302 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21304 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21305 grub_gpt_partition_type_bios_boot.
21307 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21309 Fix test program build on GNU/kFreeBSD.
21311 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21312 $(LIBNVPAIR)' library dependencies.
21314 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21316 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21318 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21320 * util/grub-install.in: Remove excessive quoting that broke
21321 installations to RAID devices.
21323 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21325 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21326 bootloader version instead of 0.
21328 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21330 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21333 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21335 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21336 retrieve the metadat sector if size isn't known.
21337 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21339 2010-11-18 Robert Millan <rmh@gnu.org>
21341 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21342 with grub_memcmp().
21344 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21346 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21348 Reported by: Jordan Uggla.
21350 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21352 Make better UTF compliant.
21354 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21355 sequences as incorrect.
21356 (grub_is_valid_utf8): Likewise.
21357 (grub_utf8_to_ucs4): Likewise.
21358 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21359 (grub_ucs4_to_utf8_alloc): Likewise.
21360 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21362 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21364 Make legacy_source behave like source.
21366 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21368 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21370 2010-11-16 Colin Watson <cjwatson@debian.org>
21372 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21373 (-Wunused implies -Wunused-parameter, but not vice versa).
21375 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
21377 * configure.ac: Make error messages less confusing by testing for
21378 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
21379 accepted, but produces a diagnostic if something else is wrong).
21381 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21383 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
21384 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
21386 (grub_keyboard_controller_init)
21387 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
21388 read the initial state since controller isn't inited yet.
21390 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21392 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
21393 allocate_regbeg may need to create new chunk header.
21395 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21397 Fix quoting in legacy parser.
21399 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
21401 (grub_legacy_parse): Likewise.
21402 Reported by: Jordan Uggla.
21403 Tested by: Jordan Uggla.
21405 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21407 Don't add -lgcc on i386 and x86_64.
21409 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
21410 * conf/Makefile.common (LDADD_KERNEL): Likewise.
21411 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
21413 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21415 * configure.ac: Add -Wno-trampolines when supported.
21417 2010-11-14 Modestas Vainius <modax@debian.org>
21419 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
21422 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21424 Add generic logical block size support for UDF.
21426 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
21427 (GRUB_UDF_BLKSZ): Removed.
21428 (struct grub_udf_data): New field "lbshift" to hold the logical block
21429 size of the file system in log2 format. All users updated.
21430 (sblocklist): Change type to unsigned.
21431 (grub_udf_mount): Change type of "sblklist" to unsigned.
21432 Move AVDP search before VRS recognition, because the latter requires
21433 knowledge of the logical block size, which is detected during the
21435 Detect and validate logical block size during AVDP search, adding
21436 support for block sizes 512, 1024 and 4096.
21437 Make VRS recognition independent of block size.
21439 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21441 Properly handle deleted files on UDF.
21443 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
21444 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
21447 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21449 Support reading files larger than 2 GiB.
21451 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
21452 "offset" to grub_off_t.
21453 (grub_udf_read_file): Likewise for parameter "pos".
21455 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21457 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
21459 (Simple configuration): Refer to Changes from GRUB Legacy about
21460 save_env availability.
21462 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21464 * util/grub-install.in: Ignore empty partition table detection
21465 instead of trying to include part_ module.
21467 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21469 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
21470 LVM on RAID support.
21472 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21474 Properly define WORDS_BIGENDIAN in wrapped environments.
21476 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
21478 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
21480 Reported by: Manoel Rebelo Abranches.
21481 Tested by: Manoel Rebelo Abranches.
21483 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21485 * util/grub-mkconfig.in: Fix quoting.
21487 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21489 Support big ext2 files.
21491 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
21492 (grub_ext2_read_block): Support triple indirect blocks.
21493 (grub_ext2_read_file): Use 64-bit types and read size_high.
21494 (grub_ext2_open): Read size_high.
21495 Reported by: Ximin Luo.
21496 Tested by: Manoel Rebelo Abranches.
21498 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21500 * util/grub-install.in: Handle filenames containing spaces.
21501 Reported by: Jordan Uggla.
21502 Tested by: Jordan Uggla.
21504 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21506 * util/grub-mkconfig.in (grub_script_check): New variable.
21507 Use grub_script_check instead of grub-script-check.
21508 Reported by: Barry Jackson.
21510 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21512 * docs/grub.texi (menu): Correct the order.
21513 Reported by: D. Hugh Redelmeier.
21515 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
21517 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
21520 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
21522 * include/grub/elfload.h (grub_elf32_size): New parameter.
21524 Return maximum segments alignment.
21525 (grub_elf64_size): Likewise.
21526 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
21527 Return maximum segments alignment.
21528 (grub_elf64_size): Likewise.
21529 * grub-core/loader/powerpc/ieee1275/linux.c:
21530 (grub_linux_claimmap_iterate): New function. Uses the
21531 "available" property in the "memory" node for memory allocation
21532 for kernel in the PowerPC loader.
21533 (grub_linux_load32): Correctly find linux entry point offset.
21534 (grub_linux_load64): Likewise.
21536 2010-11-07 Robert Millan <rmh@gnu.org>
21538 On mips-yeeloong, build with -march=loongson2f when this flag is
21539 available (GCC >= 4.4).
21540 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
21542 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
21543 or otherwise add -march=mips3.
21545 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
21547 Suppress shell expansion on echo '*' and echo "*" like cases.
21548 Reported by: Jordan Uggla.
21550 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
21551 string arguments before shell expansion.
21552 * tests/grub_cmd_echo.in: New testcases.
21554 2010-11-07 Robert Millan <rmh@gnu.org>
21556 * conf/mips-qemu-mips.rmk: Remove stale file from previous
21559 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
21561 * grub-core/kern/emu/hostdisk.c
21562 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
21564 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21566 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
21567 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
21568 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
21570 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21572 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
21574 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21576 * util/grub-install.in: Replace useless recomendation to pass
21577 --modules with a recomendation to report a bug.
21579 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21581 Properly register serial terminfo.
21582 Reported by: Jordan Uggla
21584 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
21586 (grub_serial_terminfo_output_template): Likewise.
21587 (grub_cmd_serial): Register "serial" with terminfo.
21588 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
21589 grub_serial_terminfo_output.
21591 2010-11-05 Robert Millan <rmh@gnu.org>
21593 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
21596 2010-11-05 Robert Millan <rmh@gnu.org>
21598 On Yeeloong, pass machine type information to Linux.
21600 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
21601 (LOONGSON_MACHTYPE): New macro, set to
21602 "machtype=lemote-yeeloong-2f-8.9inches".
21603 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
21604 additional argument to Linux.
21606 2010-11-04 Robert Millan <rmh@gnu.org>
21608 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
21609 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
21610 (its SATA disks are detected as slaveless IDE master drives on
21612 Reported by Carsten Aulbert.
21614 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
21616 * util/bin2h.c (main): Fix spelling error in generated output.
21618 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
21620 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
21622 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21624 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
21625 vga= option is supplied.
21627 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21629 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
21630 * util/grub.d/10_kfreebsd.in: Likewise.
21631 * util/grub.d/10_linux.in: Likewise.
21632 * util/grub.d/20_linux_xen.in: Likewise.
21634 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21636 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
21637 argument as an argument to no-argument option.
21639 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21641 * util/grub.d/10_linux.in: Add missing load_video with explicit
21642 GRUB_GFXPAYLOAD_LINUX.
21644 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21646 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
21648 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21650 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
21651 elements with invlid index.
21652 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21653 * grub-core/disk/raid.c (insert_array): Automatically reallocate
21655 * include/grub/raid.h (grub_raid_member): New struct.
21656 (grub_raid_array): Transform devices and start_sector into usage of
21657 grub_raid_member. All users updated
21658 (allocated_devs): New member.
21660 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21662 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
21665 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
21667 NetBSD build fix for getline function conflict from gnulib.
21669 * Makefile.util.def (libgrubkern.a): New library for grub kernel
21670 components that depend on gnulib headers.
21671 (libgrubmods.a): Renamed from earlier libgrub.a.
21672 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
21674 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21676 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
21677 install rather than creating a broken install.
21679 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21681 * util/grub-setup.c (argp): Remove misleading example of installing to
21684 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21686 * util/grub-setup.c (setup): Clarify the error message.
21688 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21690 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
21692 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
21694 * grub-core/kern/emu/misc.c
21695 (grub_make_system_path_relative_to_its_root)
21696 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
21698 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
21700 * grub-core/kern/emu/misc.c
21701 (grub_make_system_path_relative_to_its_root): Revert r2882.
21703 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
21705 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
21706 useless field head. All users updated.
21707 (free_subchunk): Correct handling of IN_REGION subchunk.
21709 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
21711 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
21712 (Supported kernels): Likewise.
21714 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21716 Make mktemp invocations portable.
21718 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
21719 exit if mktemp fails.
21720 * tests/grub_script_blockarg.in: Likewise.
21721 * tests/partmap_test.in: Likewise.
21722 * tests/util/grub-shell-tester.in: Likewise.
21723 * tests/util/grub-shell.in: Likewise.
21724 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21725 * Makefile.am: Likewise, and chain shell commands with `&&'
21727 * util/grub-mkrescue.in: Use the same explicit template as above, and
21728 exit if mktemp fails.
21730 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
21732 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
21733 Linux kernel, reported by Dennis Schridde.
21735 2010-10-17 Szymon Janc <szymon@janc.net.pl>
21737 * grub-core/normal/auth.c (grub_auth_check_authentication):
21738 Set-but-not-used variable removed.
21740 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21742 * docs/grub.texi (GNU/Linux): Document APM unavailability with
21743 32-bit linux protocol.
21745 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21747 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
21748 cursor shape for sanity.
21750 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21752 * docs/grub.texi (Installation): Document buggy BIOS install.
21754 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21756 * docs/grub.texi (Installation): Indent.
21758 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21760 * util/grub-setup.c (setup): New parameter allow_floppy.
21761 (arguments): New member allow_floppy.
21762 (argp_parser): Handle --allow-floppy.
21763 (main): Pass allow_floppy.
21764 * util/grub-install.in: New option --allow-floppy passed though to
21767 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21769 * util/grub-install.in: Handle partitionless disks.
21771 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21773 * util/grub-setup.c (setup): Don't clean blocklists before readability
21776 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21778 * docs/grub.texi (Installation): Document embedding zone. Remove
21779 obsolete grub-install example.
21781 2010-10-16 Szymon Janc <szymon@janc.net.pl>
21783 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
21784 Set-but-not-used variable ifdef'ed.
21785 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
21786 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
21788 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
21789 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
21790 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
21791 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
21792 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
21793 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
21794 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
21795 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
21796 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
21797 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
21798 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
21801 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21803 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
21804 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
21807 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21809 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
21810 synonym to _S5_. Needed for some DSDTs.
21812 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21814 Userspace ACPI parser debugging.
21816 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
21817 headers and add relevant defines. Don't include standard headers.
21818 (main) [GRUB_DSDT_TEST]: New function.
21819 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
21820 Don't declare functions.
21822 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21824 Remove dead grub_efi_mm_fini.
21826 * grub-core/kern/efi/mm.c (allocated_page): Removed.
21827 (ALLOCATED_PAGES_SIZE): Likewise.
21828 (MAX_ALLOCATED_PAGES): Likewise.
21829 (allocated_pages): Likewise.
21830 (grub_efi_allocate_pages): Don't record allocated pages.
21831 (grub_efi_free_pages): Likewise.
21832 (grub_efi_mm_init): Likewise.
21833 (grub_efi_mm_fini): Removed.
21835 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21837 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
21838 (grub_efi_mm_init): Take into account the memory map size increase.
21840 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21842 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
21843 (serial_hw_put): Wait based on real time rather than port reads. Don't
21845 * include/grub/serial.h (grub_serial_port): New field broken.
21847 2010-10-16 Robert Millan <rmh@gnu.org>
21849 * grub-core/kern/emu/misc.c
21850 (grub_make_system_path_relative_to_its_root): Fix premature return
21851 when processing non-root ZFS filesystems.
21852 Reported by Sergio Talens-Oliag.
21854 2010-10-15 Robert Millan <rmh@gnu.org>
21856 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
21857 guarantee compressed ones are processed first.
21859 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21861 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
21862 grub_efiemu_autocore.
21864 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21866 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
21868 (grub_console_getkey): Use correct jae opcode rather than ja.
21870 2010-10-12 Robert Millan <rmh@gnu.org>
21872 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
21873 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
21874 variable. All references updated.
21876 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
21878 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
21880 Correctly distinguish mdraid flavours.
21882 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
21883 (insert_array): New argument raid.
21884 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
21885 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
21886 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
21888 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
21890 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
21891 handling of special keys.
21893 2010-10-02 Aleš Nesrsta <starous@volny.cz>
21895 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
21896 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
21898 2010-10-02 Aleš Nesrsta <starous@volny.cz>
21900 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
21901 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
21903 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
21904 Use right endpoint when querying descriptor.
21906 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
21908 Clear out 0x80 color bit on EFI.
21910 Reported by: decoder and meta tech.
21912 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
21913 (grub_console_setcolorstate): Clear out 0x80 bit.
21914 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
21915 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
21916 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
21918 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
21920 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
21923 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21925 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
21926 mo_file after freeing.
21928 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21930 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
21932 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21934 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
21937 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21939 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
21942 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21944 Put terminfo into core on ieee1275 and yeeloong (needed for console).
21946 * gentpl.py: New groups terminfoinkernel and terminfomodule.
21947 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
21948 and terminfo.h when needed.
21949 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
21950 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
21951 (terminfo): Enable only on terminfokernel.
21952 (extcmd): Likewise.
21953 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
21954 * include/grub/lib/arg.h: Likewise.
21955 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
21956 incorrect usage of ->.
21958 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21960 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
21961 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
21963 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21965 Fix coreboot compilation.
21967 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
21968 Take VBE info into account even if only text is supported.
21969 (fill_vbe_info): Take into account the case when only VGA text
21971 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
21972 on coreboot, multiboot and qemu.
21974 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21976 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
21978 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
21980 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21982 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
21985 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21987 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
21988 if they were BSD-style.
21990 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21992 * grub-core/boot/i386/pc/lnxboot.S: Replace
21993 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
21994 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
21996 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21998 Write embedding zone using Reed-Solomon.
22000 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22001 * grub-core/Makefile.am (rs_decoder.S): New target.
22002 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22003 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22004 (multiboot): Move to RS part.
22005 (post_reed_solomon): New label.
22006 (grub_boot_drive): Move to non-RS part since it's modified in memory
22008 Include rs_decoder.S.
22009 * grub-core/lib/reed_solomon.c: New file.
22010 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22012 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22013 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22014 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22015 * include/grub/partition.h (grub_partition_map): Change prototype of
22016 embed to allow returning additional sectors.
22017 * include/grub/reed_solomon.h: New file.
22018 * util/grub-setup.c (setup): Handle Reed-Solomon.
22020 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22022 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22023 i386 and x86-64 definedness tests.
22025 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22027 Fix generation of kernel_syms.lst
22029 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22032 2010-09-26 Robert Millan <rmh@gnu.org>
22034 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22036 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22037 the pool is an array of devices, iterate through it and return the
22038 first device that passes a stat() test (instead of blindly returning
22041 2010-09-26 Robert Millan <rmh@gnu.org>
22043 Build fixes for GNU/kFreeBSD.
22045 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22046 to programs that require ZFS conversion.
22047 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22048 kernels that don't have FLOPPY_MAJOR.
22050 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22052 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22054 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22056 Fix grub-emu build.
22058 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22059 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22060 mdraid09 and mdraid1x.
22062 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22064 Re-enable grub-extras.
22066 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22067 avoid confusing Automake. Run autogen only twice, once for the top
22068 level and once for grub-core. Add Makefile.util.def and
22069 Makefile.core.def from extra modules to the appropriate autogen
22070 invocations. If Makefile.common exists in an extra module, include
22071 it in both Makefile.util.am and grub-core/Makefile.core.am;
22072 similarly, include any Makefile.util.common file in Makefile.util.am
22073 and any Makefile.core.common file in grub-core/Makefile.core.am.
22074 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22075 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22076 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22077 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22079 * gentpl.py (gvar_add): Turn GVARS into a set.
22080 (global_variable_initializers): Sort global variables on output.
22081 (vars_init): New function.
22082 (first_time): Likewise.
22083 (library): Ensure that non-global variable initialisations are
22084 emitted before the first time we emit code for a library block.
22085 Append to variables rather than setting them. Only emit
22086 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22087 each conditional path.
22088 (program): installdir() emits an Autogen macro, so must be passed to
22089 var_add rather than gvar_add.
22091 (script): Likewise.
22092 (rules): New function, centralising handling for different target
22093 types. Set up Guile association lists for first_time and vars_init,
22094 and send most output to a diversion so that variable initialisations
22095 can be emitted first.
22096 (module_rules): Use new rules function.
22097 (kernel_rules): Likewise.
22098 (image_rules): Likewise.
22099 (library_rules): Likewise.
22100 (program_rules): Likewise.
22101 (script_rules): Likewise.
22102 (data_rules): Likewise.
22104 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22106 * .bzrignore: Add contrib and grub-core/contrib. Remove
22107 grub-core/Makefile.gcry.am.
22109 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22111 * grub-core/lib/LzFind.c: Add missing include.
22112 * grub-core/lib/LzmaEnc.c: Likewise.
22113 * grub-core/script/lexer.c: Likewise.
22114 * grub-core/script/yylex.l: Likewise.
22115 * util/grub-macho2img.c: Likewise.
22116 * util/grub-menulst2cfg.c: Likewise.
22117 * util/grub-mklayout.c: Likewise.
22118 * util/grub-mkpasswd-pbkdf2.c
22119 * util/grub-mkrelpath.c: Likewise.
22120 * util/resolve.c: Likewise.
22122 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22124 * Makefile.util.def (example_unit_test): Add
22125 grub-core/gnulib/libgnu.a.
22127 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22129 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22131 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22133 Support xz compression on yeeloong.
22135 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22136 * configure.ac: Check for LZMA.
22137 * grub-core/Makefile.core.def (xz_decompress): New target.
22138 (none_decompress): Likewise.
22139 * grub-core/boot/decompressor/minilib.c: New file.
22140 * grub-core/boot/decompressor/none.c: Likewise.
22141 * grub-core/boot/decompressor/xz.c: Likewise.
22142 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22143 * grub-core/kern/mips/cache_flush.S: Likewise.
22144 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22145 * grub-core/kern/mips/startup.S: Move first stage to ...
22146 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22148 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22149 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22150 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22151 Allocate statically.
22152 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22153 Allocate statically or use scratch. Don't check CRC32.
22154 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22155 Allocate statically. Don't check CRC32.
22156 * include/grub/decompressor.h: New file.
22157 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22159 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22160 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22161 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22162 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22163 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22164 * util/grub-mkimage.c (grub_compression_t): New type.
22165 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22166 (image_target_desc): New field default_compression.
22167 (image_targets): Adjust yeeloong targets.
22168 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22169 (compress_kernel): New parameter comp.
22170 (generate_image): Likewise. Handle new compression case.
22171 (options): New option --compression
22173 (main): Handle new option.
22175 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22177 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22179 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22181 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22182 typo in __i386__ conditional.
22184 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22186 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22189 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22191 Implement EFI and ACPI multiboot2 extensions.
22193 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22194 new tags as supported.
22195 (acpiv2_size): New function.
22196 (grub_multiboot_get_mbi_size): Take new tags into account.
22197 (grub_multiboot_make_mbi): Add new tags.
22198 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22200 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22202 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22203 Added missing configuration of USB device.
22205 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22207 * grub-core/normal/menu_entry.c (run): Make sure we always return
22210 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22212 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22213 NumberOfPages is UINT64 according to the UEFI specification, not
22214 UINTN. Fix printf format.
22216 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22218 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22219 `err' to grub_usb_err_t.
22220 Reported and tested by: KESHAV P.R.
22222 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22224 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22225 tpart non-const, so that we can assign to it. (Since this is a
22226 typedef, the constness refers to the pointer rather than what it
22229 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22231 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22232 $(top_srcdir)/grub-core/gnulib as well as
22233 $(top_builddir)/grub-core/gnulib.
22234 Reported by: KESHAV P.R.
22236 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22238 * util/grub-install.in: Fix the bootloader ID option to be
22239 consistently --bootloader-id, not --bootloader_id.
22240 Reported by: KESHAV P.R.
22242 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22244 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22245 check hash checksum." consistently translatable.
22247 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22249 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22252 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22254 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22255 (GRUB_MOD_INIT): Register sha1sum command.
22256 (GRUB_MOD_FINI): Unregister sha1sum command.
22258 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22260 Keep boot and grub directory names in sync with utils scripts
22262 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22263 * config.h.in: Add previous macros.
22264 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22265 * util/grub-install.in: Use $bootdir and $grubdir variables.
22267 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22269 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22270 convert partition names to disk names if the new `convert' parameter
22272 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22273 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22274 disk in its own right. This can happen with Xen disk images.
22276 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22278 * util/grub-editenv.c: Update strings to avoid warnings when generating
22280 * util/grub-setup.c: Likewise.
22282 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22284 * configure.ac: Change version to 1.99~beta0.
22286 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22288 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22290 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22292 * include/multiboot.h: Resynced with specification.
22293 * include/multiboot2.h: Likewise.
22295 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22297 Fix po directory handling.
22299 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22300 * grub-core/gnulib/Makefile.am: Import gettext module.
22301 * m4/gnulib-cache.m4: Likewise.
22302 * m4/gnulib-comp.m4: Likewise.
22303 * m4/gettext.m4: New file, from gnulib.
22304 * m4/glibc2.m4: Likewise.
22305 * m4/iconv.m4: Likewise.
22306 * m4/intdiv0.m4: Likewise.
22307 * m4/intl.m4: Likewise.
22308 * m4/intldir.m4: Likewise.
22309 * m4/intlmacosx.m4: Likewise.
22310 * m4/intmax.m4: Likewise.
22311 * m4/inttypes-pri.m4: Likewise.
22312 * m4/lcmessage.m4: Likewise.
22313 * m4/lib-ld.m4: Likewise.
22314 * m4/lib-link.m4: Likewise.
22315 * m4/lib-prefix.m4: Likewise.
22316 * m4/lock.m4: Likewise.
22317 * m4/nls.m4: Likewise.
22318 * m4/po.m4: Likewise.
22319 * m4/printf-posix.m4: Likewise.
22320 * m4/progtest.m4: Likewise.
22321 * m4/threadlib.m4: Likewise.
22322 * m4/uintmax_t.m4: Likewise.
22323 * m4/visibility.m4: Likewise.
22324 * po/Makefile.am: Remove.
22325 * po/Makefile.in.in: New file, from gettext.
22326 ($(DOMAIN).pot-update): Support POTFILES-shell.
22327 * po/Makevars: New file.
22328 * po/POTFILES-shell: Rename to ...
22329 * po/POTFILES-shell.in: ... this. Update.
22330 * po/POTFILES: Rename to ...
22331 * po/POTFILES.in: ... this. Update.
22332 * po/Rules-quot: New file, from gettext.
22333 * po/boldquot.sed: Likewise.
22334 * po/en@boldquot.header: Likewise.
22335 * po/en@quot.header: Likewise.
22336 * po/insert-header.sin: Likewise.
22337 * po/quot.sed: Likewise.
22338 * po/remove-potcdate.sin: Likewise.
22340 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22342 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22344 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22346 * util/grub.d/20_linux_xen.in: Use submenus.
22348 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22352 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22353 parameter submenu. All users updated.
22354 * grub-core/normal/main.c (free_menu): Rename to ...
22355 (grub_normal_free_menu): ... this. Made global.
22356 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22358 * grub-core/normal/menu_entry.c (screen): New field submenu.
22359 (make_screen): Set submenu.
22360 (run): Open new context if requested.
22361 * include/grub/menu.h (grub_menu_entry): New field submenu.
22362 * include/grub/normal.h (grub_normal_free_menu): New proto.
22364 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22366 Menu entries extractor.
22368 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22370 (GRUB_MOD_INIT): Register new variants.
22371 (GRUB_MOD_FINI): Unregister new variants.
22372 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22373 into grub_cmd_legacy_source.
22374 (grub_cmd_legacy_source): Implement extractor variants.
22375 (GRUB_MOD_INIT): Register new variants.
22376 (GRUB_MOD_FINI): Unregister new variants.
22377 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
22379 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
22380 search as an extractor.
22381 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
22382 test as an extractor.
22383 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
22385 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
22386 (grub_env_new_context): New function.
22387 (grub_env_context_open): Likewise.
22388 (grub_env_extractor_open): Likewise.
22389 (grub_env_extractor_close): Likewise.
22390 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22391 grub_extractor_level.
22392 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
22393 * include/grub/env.h (grub_env_extractor_open): New proto.
22394 (grub_env_extractor_close): Likewise.
22395 * include/grub/normal.h (grub_extractor_level): New external variable.
22397 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22399 Make cutmem accept a region specification.
22400 Suggested by: Samuel Thibault
22402 * grub-core/mmap/mmap.c (parsemem): New function.
22403 (grub_cmd_cutmem): Handle new arguments.
22405 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22407 New command cutmem.
22409 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
22410 (GRUB_MOD_INIT): Register new command.
22411 (GRUB_MOD_FINI): Unregister new command.
22413 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22415 Support some annoying BSD and Minix subpartitions.
22417 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
22418 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
22419 Properly handle concatenation.
22420 * grub-core/kern/device.c (grub_device_iterate): Likewise.
22421 * grub-core/normal/completion.c (iterate_partition): Likewise.
22422 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
22423 contain partition. All users updated.
22424 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
22426 (grub_openbsdlabel_partition_map): Likewise.
22427 (bsdlabel_partition_map_iterate): Rename to ..
22428 (iterate_real): ... this. New arguments sector, freebsd and pmap.
22429 (bsdlabel_partition_map_iterate): New function.
22430 (netopenbsdlabel_partition_map_iterate): Likewise.
22431 (netbsdlabel_partition_map_iterate): Likewise.
22432 (openbsdlabel_partition_map_iterate): Likewise.
22433 (GRUB_MOD_INIT): Register new partmaps.
22434 (GRUB_MOD_FINI): Unregister new partmaps.
22435 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
22436 (grub_partition_msdos_iterate): ... this. All users updated.
22437 Don't support embedding other than in a minix partition.
22438 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
22440 * include/grub/partition.h (grub_partition): New field msdostype.
22441 * util/grub-install.in: Handle openbsd and netbsd types being in
22444 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22446 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
22448 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
22449 * grub-core/Makefile.core.def (mdraid): Renamed to ...
22450 (mdraid09): ... this.
22451 (mdraid1x): New module.
22452 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
22453 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
22455 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22457 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
22460 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22462 * grub-core/commands/efi/lsefimmap.c: Correct header.
22465 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22467 * util/grub-editenv.c (argp_parser): Don't pass translated strings
22468 as printf format strings; the translations might contain '%' which
22469 could cause a crash.
22471 * util/grub-fstest.c (argp_parser): Likewise.
22472 * util/grub-setup.c (argp_parser): Likewise.
22475 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22477 Use argp in grub-fstest.
22479 * util/grub-fstest.c: Don't include getopt.h.
22481 (root): New variable.
22482 (args_count): Likewise.
22484 (num_disks): Likewise.
22485 (images): Likewise.
22487 (debug_str): Likewise.
22489 (options): Transformed to argp.
22491 (main): Split argument parsing into ...
22492 (argp_parser): ... this. Changed to argp format.
22493 (argp): New variable.
22494 (main): Use argp_parse.
22496 2010-09-20 Tristan Gingold <gingold@free.fr>
22497 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
22498 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22500 * grub-core/commands/efi/lsefimmap.c: New file.
22501 * grub-core/Makefile.core.def (lsefimmap): New module.
22502 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
22504 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22506 Pause the execution (10s max) if any errors are displayed so the user
22507 has a chance to see them.
22509 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
22510 (grub_print_error): Increment grub_err_printed_errors.
22511 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
22512 execution if any errors were displayed.
22513 (show_menu): Remove old code for pause.
22514 * grub-core/normal/menu_entry.c (run): Likewise.
22515 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
22517 (grub_normal_get_char_counter): Likewise.
22518 * include/grub/err.h (grub_err_printed_errors): New external variable.
22519 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
22521 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22523 Support multiboot VBE info.
22525 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22526 Take VBE info into account.
22527 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
22528 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
22529 Call fill_vbe_info when appropriate.
22530 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
22531 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
22533 (grub_multiboot_get_mbi_size): Take new tags into account.
22534 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
22535 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
22536 Call fill_vbe_tag when appropriate.
22537 (grub_multiboot_make_mbi): Properly align tags.
22538 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
22540 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
22542 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
22544 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22546 Suport manual terminal geometry specification.
22548 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
22549 Save state in grub_ofconsole_terminfo_output.
22550 (grub_ofconsole_term): Use grub_terminfo_getwh.
22551 (grub_ofconsole_getwh): Removed.
22552 * grub-core/term/serial.c (grub_serial_getwh): Removed.
22553 (grub_serial_term): Use grub_terminfo_getwh.
22554 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
22555 (options): New struct.
22556 (OPTION_*): New enum.
22557 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
22558 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
22560 (grub_terminfo_getwh): New proto.
22561 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
22563 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22565 Handle legacy "terminal" command.
22567 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
22569 (legacy_commands): Add terminal and title.
22570 (grub_legacy_parse): Handle terminal. Simplify title handling.
22572 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22574 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
22575 parameters overflow.
22577 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22579 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
22582 * docs/grub.texi (Shell-like scripting): Document `!'.
22583 (Network): Simplify using new i386-pc-pxe format. Mention
22588 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22590 * Makefile.am (SUBDIRS): Restore "."; it's important to force
22591 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
22594 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22596 * grub-core/commands/efi/lsefisystab.c: Correct header.
22597 * grub-core/commands/efi/lssal.c: Likewise.
22598 * grub-core/commands/testload.c: Likewise.
22600 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22602 * util/grub-mkrescue.in: Add explicit root argument to --set to
22603 prevent the UUID being interpreted as an argument to --set (matches
22604 previous change to prepare_grub_to_access_device).
22606 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22608 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
22609 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
22610 the verbosity of later #ifs.
22611 (find_partition_start): Define this function on FreeBSD too.
22612 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
22614 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
22617 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22619 * util/grub-editenv.c: Use argp instead of getopt.
22621 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22623 * util/grub-setup.c: Use argp instead of getopt.
22625 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22627 Use gnulib-tool to create gnulib source files.
22629 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
22630 grub-core/gnulib directories
22631 * .bzignore: Add **/.deps and autogenerated gnulib files
22632 * configure.ac: Assign auxiliary directory to build-aux, add invocation
22633 of gnulib macros, add grub-core/gnulib/Makefile
22634 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
22635 include m4 directory to aclocal.
22636 * Makefile.util.def: Remove direct compilation of gnulib source files
22637 and use the new grub-core/gnulib/libgnu.a.
22638 * build-aux/config.rpath: move config.rpath from top directory to
22640 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
22642 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
22643 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
22644 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
22646 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
22649 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22651 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
22652 grub-core/genmod.sh and grub-core/gensyminfo.sh
22654 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
22656 Add a test for echo command options.
22658 * tests/grub_cmd_echo.in: New test.
22659 * Makefile.util.def: Rules for new test.
22661 2010-09-20 Szymon Janc <szymon@janc.net.pl>
22663 Remove crc.mod and move crc command to hashsum.mod.
22664 Remove lib/crc.c - users updated to use gcrypt implementation.
22666 * grub-core/commands/crc.c: Removed.
22667 * grub-core/Makefile.core.def (crc): Module removed.
22668 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
22669 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
22670 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
22671 * grub-core/lib/crc.c: Removed.
22672 * include/grub/lib/crc.h: Removed.
22673 * Makefile.util.def (crc): Remove lib/crc.c
22674 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
22675 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
22676 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
22677 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
22678 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
22679 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
22681 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22683 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
22685 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22687 Split config.h for util and core.
22689 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
22690 (ADDR32): Likewise.
22691 (DATA32): Likewise.
22692 (BSS_START_SYMBOL): Likewise.
22693 (END_SYMBOL): Likewise.
22694 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
22695 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
22696 * config.h.in: New file.
22697 * configure.ac: Use config-util.h as config define file.
22698 Rename MACHINE into GRUB_MACHINE. All users updated.
22699 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
22701 (NESTED_FUNC_ATTR): Likewise.
22702 Substitue new variables.
22703 (COND_HAVE_ASM_USCORE): New conditional.
22704 * grub-core/Makefile.am (ASM_PREFIX): New variable.
22705 (kernel_syms.lst): Use ASM_PREFIX.
22706 * grub-core/kern/emu/console.c: Include config-util.h.
22707 * grub-core/kern/emu/misc.c: Likewise.
22708 * grub-core/kern/emu/mm.c: Likewise.
22709 * include/grub/emu/misc.h: Likewise.
22710 * include/grub/libgcc.h: Likewise.
22712 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22714 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
22716 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
22717 Fix GRUB_TERM_KEY_* constants usage.
22718 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
22720 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22722 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
22724 * grub-core/bus/usb/uhci.c: Remove empty define.
22725 (grub_uhci_check_transfer): Add missing cast.
22726 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
22728 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
22730 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
22732 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22734 * grub-core/Makefile.core.def (legacycfg): Add
22735 lib/i386/pc/vesa_modes_table.c on emu.
22737 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
22739 Reduce number of temporary files generated by build system.
22741 * grub-core/gencmdlist.sh: Removed.
22742 * grub-core/genfslist.sh: Removed.
22743 * grub-core/genhandlerlist.sh: Removed.
22744 * grub-core/genmodsrc.sh: Removed.
22745 * grub-core/genpartmaplist.sh: Removed.
22746 * grub-core/genparttoollist.sh: Removed.
22747 * grub-core/gentermiinallist.sh: Removed.
22748 * grub-core/genvideolist.sh: Removed.
22750 * grub-core/genmod.sh.in: New file.
22751 * grub-core/gensyminfo.sh.in: New file.
22753 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
22754 * conf/Makefile.extra-dist: Update with new files.
22755 * gentpl.py: Remove rules related to unnecessary temporary files.
22756 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
22758 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
22760 * grub-core/bus/usb/uhci.c: Remove empty #define.
22761 * grub-core/genmoddep.awk: Updated with new syminfo format.
22762 * util/bash-completion.d/Makefile.am: Add config.log to
22765 2010-09-19 Yves Blusseau <blusseau@zetam.org>
22767 * Makefile.util.def: Add forgotten $(LIBINTL) library.
22769 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
22771 * util/grub-mkconfig.in: Check the config script for syntax errors
22774 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
22775 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22777 * Makefile.util.def (grub-install): Use util/grub-install.in on all
22779 * util/grub-install.in: Add EFI and IEEE1275 support.
22780 * util/i386/efi/grub-install.in: Removed.
22781 * util/ieee1275/grub-install.in: Likewise.
22783 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22785 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
22786 (grub_cmd_cmosclean): Likewise.
22787 (GRUB_MOD_INIT): Register command cmosclean.
22788 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
22789 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
22791 2010-09-18 Carles Pina i Estany <carles@pina.cat>
22792 2010-09-18 Aleš Nesrsta <starous@volny.cz>
22793 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22795 Add keyboard layouts support.
22797 * Makefile.util.def (grub-mklayout): New file.
22798 (grub-kbdcomp): New script.
22799 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
22800 Add keyboard_layouts.h.
22801 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
22802 commands/boot.c on yeeloong.
22803 (keylayouts): New module.
22804 * grub-core/bus/usb/ohci.c
22805 * grub-core/bus/usb/uhci.c
22806 * grub-core/bus/usb/usbhub.c (rescan): New variable.
22807 (grub_usb_add_hub): Poll interrupt pipe for device handling.
22808 (attach_root_port): Likewise.
22809 (poll_nonroot_hub): Likewise.
22810 (grub_usb_poll_devices): Likewise.
22811 (detach_device): Close transfer.
22812 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
22814 (grub_usb_bulk_setup_readwrite): Likewise.
22815 (grub_usb_bulk_finish_readwrite): Likewise.
22816 * grub-core/commands/keylayouts.c: New file.
22817 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
22818 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
22820 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
22821 support scancode 2.
22822 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
22823 * include/grub/keyboard_layouts.h: New file.
22824 * util/grub-mklayout.c: New file.
22825 * util/grub-kbdcomp.in: Likewise.
22827 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22829 Unify memory types.
22831 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
22832 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
22834 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
22835 (grub_upper_mem): Likewise.
22836 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
22837 * include/grub/memory.h (grub_memory_type_t): New enum.
22840 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22842 * grub-core/Makefile.core.def (lsapm): New module.
22843 * grub-core/commands/i386/pc/lsapm.c: New file.
22844 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
22845 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
22847 * include/grub/i386/pc/apm.h: New file.
22848 * include/multiboot.h (multiboot_apm_info): New struct.
22850 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22852 GRUB-legacy configuration file support.
22854 * Makefile.util.def (grub-menulst2cfg): New util.
22855 * docs/man/grub-menulst2cfg.h2m: New file.
22856 * grub-core/Makefile.core.def (legacycfg): New module.
22857 * grub-core/commands/legacycfg.c: New file.
22858 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
22859 (grub_normal_add_menu_entry): ... this.
22860 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
22861 (grub_normal_set_password): ...this.
22862 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
22863 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
22864 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
22865 * grub-core/lib/legacy_parse.c: New file.
22866 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
22867 * include/grub/i386/pc/vesa_modes_table.h: New file.
22868 * include/grub/legacy_parse.h: Likewise.
22869 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
22870 * util/grub-menulst2cfg.c: New file.
22872 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
22874 * grub-core/kern/emu/hostdisk.c
22875 (convert_system_partition_to_system_disk): Initialise node.
22877 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
22879 * grub-core/kern/emu/hostdisk.c
22880 (convert_system_partition_to_system_disk): Fix devmapper memory pool
22882 Reported and based on patch by: Modestas Vainius.
22884 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
22886 Fix DM-RAID probing with recent versions of device-mapper udev
22889 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
22890 canonicalise device paths under /dev/mapper/.
22891 (convert_system_partition_to_system_disk): Compare the
22892 uncanonicalised path to /dev/mapper/ rather than the canonicalised
22893 path, since device nodes under /dev/mapper/ are often symlinks.
22895 2010-09-17 Yves Blusseau <blusseau@zetam.org>
22897 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
22899 2010-09-16 Yves Blusseau <blusseau@zetam.org>
22901 * configure.ac: Avoid some annoying error messages if freetype-config
22902 program is not found.
22904 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
22906 Support RAID on virtio devices, and others.
22908 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
22910 [__MINGW32__] (grub_find_device): ... this.
22911 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
22912 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
22913 reasonable default if dir is NULL.
22914 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
22916 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
22917 (grub_guess_root_device): Update callers.
22918 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
22920 * util/raid.c (grub_util_getdiskname): Remove.
22921 (grub_util_raid_getmembers): Use grub_find_device rather than
22922 grub_util_getdiskname.
22924 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
22926 * docs/grub.texi (serial): Remove obsolete comment about GRUB
22927 needing to be compiled with serial support.
22928 (ls): Indicate that multiple files are accepted.
22929 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
22930 indicate that multiple files are accepted.
22932 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
22934 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
22935 libgrub_a_init.c, and util/bash-completion.d/grub.
22937 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22939 * util/grub-setup.c (setup): Fix incorrect container semantics.
22941 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22943 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
22945 Reported by: J. Nick Terry
22947 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22949 Move embedding routines to partmap sources files.
22951 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
22952 [GRUB_UTIL]: New variable.
22953 (gpt_partition_map_iterate): Set part.parent.
22954 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
22955 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
22956 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
22958 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
22959 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
22960 (grub_partition_map) [GRUB_UTIL]: New field embed.
22961 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
22962 (setup): Use ->embed.
22964 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22966 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
22968 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
22969 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
22971 2010-09-15 Yves Blusseau <blusseau@zetam.org>
22973 Add function to get completions from usage.
22975 * util/bash-completion.d/grub-completion.bash.in: Add function to get
22976 completions from usage. Use LC_ALL=C to get options properly.
22978 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22980 * grub-core/gnulib/basename-lgpl.c: Imported.
22981 * grub-core/gnulib/basename.c: Likewise.
22982 * grub-core/gnulib/dirname-lgpl.c: Likewise.
22983 * grub-core/gnulib/dirname.c: Likewise.
22984 * grub-core/gnulib/dirname.h: Likewise.
22985 * grub-core/gnulib/stripslash.c: Likewise.
22987 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22989 * grub-core/gnulib/error.c: Resynced.
22990 * grub-core/gnulib/getopt.c: Likewise.
22991 * grub-core/gnulib/getopt_int.h: Likewise.
22992 * grub-core/gnulib/regex.h: Likewise.
22993 * grub-core/gnulib/regex_internal.c: Likewise.
22994 * grub-core/gnulib/regex_internal.h: Likewise.
22996 2010-09-15 Szymon Janc <szymon@janc.net.pl>
22998 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
22999 CRC calculations and validity checks.
23000 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23003 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23005 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23007 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23009 Fix incorrect echo options handling.
23010 Reported by: Yves Blusseau.
23012 * include/grub/command.h (grub_command_flags_t): New flags
23013 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23014 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23015 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23017 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23019 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23021 (GRUB_COMMAND_FLAG_MENU): Likewise.
23022 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23023 (GRUB_COMMAND_FLAG_TITLE): Removed.
23024 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23025 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23026 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23027 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23028 (grub_command_flags_t): New enum. All users updated.
23030 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23032 Fix solaris compilation.
23034 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23035 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23036 (grub-emu-list): Likewise.
23038 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23040 Remove deprecated root command.
23042 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23045 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23047 * util/i386/pc/grub-setup.c: Merge this ...
23048 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23049 * util/grub-setup.c: ... into this.
23050 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23053 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23055 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23058 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23060 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23063 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23065 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23066 explicit root argument to set to prevent UUID to be interpreted as
23069 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23071 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23073 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23075 Don't export grub_gate_a20.
23077 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23078 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23080 (grub_gate_a20): ... this. All users updated.
23081 * include/grub/i386/pc/init.h: Removed. All users updated.
23083 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23085 Create euro.pf2 which supports most European languages.
23087 * Makefile.am (grubdata_DATA): Add euro.pf2.
23088 (euro.pf2): New target.
23089 (CLEANFILES): Add euro.pf2.
23091 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23093 * configure.ac: Disable emu-usb by default to prevent inadvertent
23096 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23098 Disable usbserial on grub-emu since our libusb code isn't good enough
23101 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23102 (usbserial_pl2303): Likewise.
23103 (usbserial_ftdi): Likewise.
23105 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23107 * include/grub/disk.h (grub_disk): Remove has_partitions.
23109 * disk/loopback.c (grub_loopback): Remove has_partitions.
23111 (options): Remove partitions. All users updated.
23112 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23113 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23114 actual partition table is found.
23116 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23118 Remove readability checks (too many false negatives).
23120 * util/grub-install.in: Remove readability checks.
23121 * util/grub-mkconfig.in: Likewise.
23122 * util/grub.d/10_hurd.in: Likewise.
23123 * util/grub.d/10_kfreebsd.in: Likewise.
23124 * util/grub.d/10_linux.in: Likewise.
23125 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23128 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23130 Enable acpi shutdown on all ACPI platforms.
23132 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23133 on coreboo, multiboot and EFI.
23134 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23135 (grub_acpi_halt): Likewise.
23136 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23137 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23138 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23139 * grub-core/lib/i386/halt.c (grub_halt)
23140 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23142 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23144 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23147 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23149 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23150 * grub-core/video/efi_uga.c: Likewise.
23152 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23154 Filter devaliases and never open same device twice.
23156 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23157 (last_ihandle): Likewise.
23158 (ofdisk_hash_ent): New member shortest.
23159 (ofdisk_hash_add): Add canonical path too.
23160 (scan): New function.
23161 (grub_ofdisk_iterate): Iterate over hashed entries.
23162 (compute_dev_path): Don't add :0.
23163 (grub_ofdisk_open): Don't really open the disk.
23164 (grub_ofdisk_close): Avoid closing unrelated disk.
23165 (grub_ofdisk_read): Implement reopen logic.
23166 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23168 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23171 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23175 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23176 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23177 right address. Add sparc64_ieee1275_ldflags.
23178 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23179 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23180 to grub_host_to_target_addr
23181 (load_image): Likewise.
23183 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23185 * grub-core/normal/completion.c (complete_file): Handle device
23187 Fix based on patch by Doug Nazar.
23189 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23191 grub-mknetdir script.
23193 * Makefile.util.def (grub-mknetdir): New module.
23194 * tests/util/grub-shell.in: Support boot=net
23195 * util/grub-mknetdir.in: New file.
23197 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23199 videoinfo on non-vbe.
23201 * grub-core/Makefile.core.def (vbeinfo): Removed.
23202 (vbetest): Removed.
23203 (videoinfo): New module.
23204 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23205 * grub-core/commands/i386/pc/vbetest.c: Removed.
23206 * grub-core/commands/videoinfo.c: New file.
23207 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23209 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23211 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23212 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23213 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23214 mode_number. New parameter mode. All users updated.
23215 (grub_video_gop_iterate): New function.
23216 (grub_video_efi_gop): New member iterate.
23217 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23218 (grub_vbe_set_video_mode): Remove setting useless fields.
23219 (vbe2videoinfo): New function.
23220 (grub_video_vbe_iterate): Likewise.
23221 (grub_video_vbe_setup): Use vbe2videoinfo.
23222 (grub_video_vbe_print_adapter_specific_info): New function.
23223 (grub_video_vbe_adapter): New fields iterate and
23224 print_adapter_specific_info.
23225 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23227 (grub_video_mode_info): New field mode_number.
23228 (grub_video_adapter): New fields iterate and
23229 print_adapter_specific_info.
23231 2010-09-13 Tristan Gingold <gingold@free.fr>
23232 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23233 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23235 * grub-core/commands/efi/lsefisystab.c: New file.
23236 * grub-core/commands/efi/lssal.c: Likewise.
23237 * grub-core/Makefile.core.def (lsacpi): New module.
23238 (lsefisystab): Likewise.
23239 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23240 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23241 (grub_efi_sal_system_table): New struct.
23242 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23243 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23244 (grub_efi_sal_system_table_platform_features): Likewise.
23245 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23246 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23247 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23248 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23250 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23252 Support explicit user claim that a device is BIOS-visible.
23254 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23255 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23256 * grub-core/kern/emu/hostdisk.c
23257 (convert_system_partition_to_system_disk): Support mdX.
23258 (find_system_device): New parameter add. All users updated.
23259 (grub_util_biosdisk_is_present): New function.
23260 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23263 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23265 Search hints support.
23267 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23270 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23272 Bash completion script for util commands
23274 * Makefile.am: Add util/bash-completion.d directory
23275 * configure.ac: Likewise.
23276 * util/bash-completion.d/Makefile.am: New file.
23277 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23279 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23281 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23282 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23283 Reported by: Yves Blusseau.
23285 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23287 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23288 partition size and offset.
23290 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23292 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23294 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23296 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23298 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23300 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23301 (grub_xvasprintf): Likewise.
23303 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23305 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23307 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23309 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23310 args ending with NULL.
23312 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23314 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23317 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23319 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23321 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23323 Shutdown using ACPI.
23325 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23326 * grub-core/commands/acpihalt.c: New file.
23327 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23328 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23329 (grub_acpi_halt): New proto.
23330 (GRUB_ACPI_SLP_EN): New const.
23331 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23332 (GRUB_ACPI_OPCODE_*): New enum.
23333 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23335 2010-09-11 Tristan Gingold <gingold@free.fr>
23336 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
23337 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23339 * commands/lsacpi.c: New file.
23340 * grub-core/Makefile.core.def (lsacpi): New module.
23341 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23342 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23343 (grub_acpi_madt_entry_header): New struct.
23344 (grub_acpi_madt): Likewise.
23345 (grub_acpi_madt_entry_interrupt_override): Likewise.
23346 (grub_acpi_madt_entry_sapic): Likewise.
23347 (grub_acpi_madt_entry_lsapic): Likewise.
23348 (grub_acpi_madt_entry_platform_int_source): Likewise.
23349 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23350 (PRIuGRUB_UINT32_T): Likewise.
23351 (PRIxGRUB_UINT64_T): Likewise.
23353 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23355 Implement loading palette on ieee1275_fb.
23357 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23358 (have_setcolors): Likewise.
23359 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23360 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23361 (grub_video_ieee1275_set_palette): Implement.
23363 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23364 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
23366 * util/grub-install.in (grub_partition): New variable.
23367 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23368 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23369 Fixes a bug reported by Yves Blusseau.
23371 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23375 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23376 =grub_cpu_flush_cache on all mips and not only yeeloong.
23377 * configure.ac (COND_mips): New conditional.
23378 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
23380 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
23381 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
23382 [GRUB_LINKER_HAVE_INIT]: New function.
23383 (grub_emu_post_init): Likewise.
23384 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
23385 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
23386 * include/grub/cache.h (_mips): Include mips/cache.h.
23387 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
23388 LVM and RAID prototypes.
23389 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
23390 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
23393 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23395 * util/grub-install.in: Don't try to verify core.img until after
23396 running grub-mkimage to create it.
23398 2010-09-10 Robert Millan <rmh@gnu.org>
23400 * util/grub.d/10_hurd.in: Add misc readability checks.
23401 * util/grub.d/10_kfreebsd.in: Likewise.
23402 * util/grub.d/10_linux.in: Likewise.
23404 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23406 * util/grub-install.in: ${imgext} won't be defined here until the
23407 install branch is merged. For the meantime, only verify core.img on
23408 i386-pc and sparc64-ieee1275 platforms.
23410 2010-09-10 Robert Millan <rmh@gnu.org>
23412 Solaris support in grub_find_zpool_from_dir(). Thanks
23413 Seth Goldberg for referring to getextmntent() facility.
23415 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
23417 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
23419 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
23420 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
23421 method for finding zpool name.
23423 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23425 grub-fstest needs the host and hostfs modules while other utilities
23426 actively require those modules to be absent, so grub-fstest needs
23427 its own initialisation and finalisation code.
23429 * Makefile.am (grub_fstest.pp): New target.
23430 (grub_fstest_init.lst): Likewise.
23431 (grub_fstest_init.c): Likewise.
23432 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
23434 2010-09-10 Robert Millan <rmh@gnu.org>
23436 * configure.ac: Check for `struct statfs.f_fstypename' and
23437 `struct statfs.f_mntfromname'.
23439 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
23440 kFreeBSD-specific code.
23442 2010-09-10 Robert Millan <rmh@gnu.org>
23444 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
23445 on ZFS. Now non-main filesystems are supported as / too.
23447 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
23449 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
23450 and grub-core/disk/host.c to ...
23451 (grub-fstest): ... here. Having the host disk implementation
23452 present confuses grub-probe and other utility programs.
23454 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
23455 when writing to a file, not when writing to stdout.
23457 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
23459 * tests/partmap_test.in: New test for partitions.
23460 * Makefile.util.def: Rules for new test.
23462 2010-09-09 Robert Millan <rmh@gnu.org>
23464 * util/grub-probe.c (probe): Fix a pair of unhandled error
23467 2010-09-09 Robert Millan <rmh@gnu.org>
23469 Basic Btrfs support (detection and UUID).
23471 * grub-core/fs/btrfs.c: New file.
23472 * Makefile.util.def (library): Register btrfs.c.
23473 * grub-core/Makefile.core.def: Likewise.
23475 2010-09-08 Robert Millan <rmh@gnu.org>
23477 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
23478 with (optional) parameters to specify device and relative path.
23479 * util/grub-install.in: Use is_path_readable_by_grub() to
23480 verify readability of a few critical files.
23481 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
23482 verify readability of grub.cfg.new.
23484 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
23486 Split minix.mod into minix.mod and minix2.mod.
23488 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
23489 * grub-core/Makefile.core.def (minix2): New module.
23490 * grub-core/fs/minix.c: Use definitions instead of runtime version
23492 * grub-core/fs/minix2.c: New file.
23494 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23496 Add new --boot-directory option to replace --root-directory
23498 * util/grub-install.in: Add new --boot-directory option
23499 * util/grub-reboot.in: Likewise.
23500 * util/grub-set-default.in: Likewise.
23502 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23504 * util/grub-mkconfig.in: Use new variable.
23506 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23508 * configure.ac: Define some useful variables.
23510 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
23512 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
23513 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
23514 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
23515 Use terminfo and don't use cursor-on/cursor-off unless it's known
23517 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
23518 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
23520 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
23522 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
23523 starts with "(,", fill the drive containing the loaded image in
23524 between those two characters, but expect that a full partition
23525 specification including partition map names will follow.
23527 2010-09-08 Robert Millan <rmh@gnu.org>
23529 * configure.ac: Remove `--enable-grub-fstest' option.
23530 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
23532 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
23533 `grub-fstest' instead of `grub-probe' for readability verification.
23534 * util/grub-probe.c (probe): Remove readability verification kludge.
23536 2010-09-08 Robert Millan <rmh@gnu.org>
23538 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
23539 initializing `GRUB_FS'.
23541 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
23543 Not command (!) support to GRUB script.
23545 * tests/grub_script_not.in: New test.
23546 * Makefile.util.def: Rules for new test.
23548 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23549 ! command as a special case.
23550 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
23552 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23554 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
23557 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23559 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
23561 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23563 * docs/grub.texi (Shell-like scripting): Documentation for break,
23564 continue, shift and return commands.
23566 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
23568 Rename CD-ROM to cd on BIOS.
23570 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
23572 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
23574 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23576 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
23577 * util/grub-probe.c (main): Likewise.
23578 * util/i386/pc/grub-setup.c (main): Likewise.
23579 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
23580 Reported and debugged by: alexxy
23582 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23584 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
23587 2010-09-05 Jo Shields <directhex@apebox.org>
23589 * util/grub.d/30_os-prober.in: Add missing classes.
23591 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23593 * docs/grub.texi (Theme file format): Document new position format.
23595 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23597 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
23598 a table. Use @code instead of @verbatim.
23600 2010-09-05 Colin D Bennett <colin@gibibit.com>
23602 Gfxmenu documentation.
23604 * docs/grub.texi (Theme file format): New chapter.
23606 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23608 * grub-core/Makefile.core.def (xzio): New module.
23609 * grub-core/io/xzio.c: New file.
23610 * grub-core/lib/xzembed/xz.h: New file (from xembed).
23611 * grub-core/lib/xzembed/xz_config.h: Likewise.
23612 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
23613 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
23614 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
23615 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
23616 * grub-core/lib/xzembed/xz_private.h: Likewise.
23617 * grub-core/lib/xzembed/xz_stream.h: Likewise.
23618 * include/grub/file.h (grub_file_filter_id): New compression filter
23619 GRUB_FILE_FILTER_XZIO.
23621 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23623 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
23624 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
23627 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23629 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
23630 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
23632 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23634 Uncompressed checksum support.
23636 * grub-core/commands/hashsum.c (options): Add option --uncompress.
23637 (check_list): New parameter uncompress.
23638 (grub_cmd_hashsum): Handle --uncompress.
23640 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23642 Reintroduce testload.
23644 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
23646 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
23647 (GRUB_MOD_INIT): New function.
23648 (GRUB_MOD_FINI): Likewise.
23649 * grub-core/Makefile.core.def (testload): New module.
23651 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23653 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
23654 (uint8_t): New type.
23655 (uint16_t): Likewise.
23656 (uint32_t): Likewise.
23657 (uint64_t): Likewise.
23659 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23661 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
23663 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23665 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
23667 (grub_gzfile_open): Removed. All users updated.
23668 (GRUB_MOD_INIT): New function.
23669 (GRUB_MOD_FINI): Likewise.
23670 * grub-core/kern/file.c (grub_file_filters_all): New variable.
23671 (grub_file_filters_enabled): Likewise.
23672 (grub_file_open): Handle filters.
23673 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
23674 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
23675 * include/grub/file.h (grub_file_filter_id_t): New type.
23676 (grub_file_filter_t): Likewise.
23677 (grub_file_filters_all): New extern variable.
23678 (grub_file_filters_enabled): Likewise.
23679 (grub_file_filter_register): New inline function.
23680 (grub_file_filter_unregister): Likewise.
23681 (grub_file_filter_disable): Likewise.
23682 (grub_file_filter_disable_compression): Likewise.
23683 * include/grub/gzio.h: Removed.
23685 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23687 Filename expansion support for wildcards in GRUB script.
23689 * tests/grub_script_expansion.in: New test.
23690 * Makefile.util.def: Rule for new test.
23692 * grub-core/commands/wildcard.c: New file, implements filename
23693 expansion support for GRUB script.
23694 * grub-core/Makefile.core.def: Rule update for regexp.mod.
23695 * grub-core/script/argv.c: Cosmetic changes.
23696 * grub-core/script/execute.c (grub_script_arglist_to_argv):
23697 Refactored to perform wildcard expansion on arguments.
23698 * include/grub/script_sh.h (grub_script_wildcard_translator): New
23701 * tests/util/grub-shell.in: Fix quoting for read input.
23703 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23705 Support for updating environment variables with matched substrings
23708 * tests/grub_cmd_regexp.in: New test.
23709 * Makefile.util.def: Rule for new test.
23711 * grub-core/commands/regexp.c: New option -s to update environment
23712 variables with regexp matches.
23714 2010-09-04 Szymon Janc <szymon@janc.net.pl>
23716 * include/grub/file.h (grub_file): New member not_easly_seekable.
23717 (grub_file_seekable): New inline function.
23718 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
23720 (grub_gzio_open): Set not_easly_seekable.
23721 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
23722 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
23724 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23726 Support for options to appear multiple times on cmdline.
23728 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
23729 * grub-core/commands/extcmd.c: Support for repeatable option.
23730 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
23731 repeatable option support.
23733 Refactor menuentry into a regular command.
23735 * grub-core/commands/menuentry.c: New file, menuentry command
23737 * grub-core/Makefile.core.def: Rule update for normal.mod.
23738 * grub-core/normal/main.c: Moved menuentry creation to
23739 grub-core/commands/menuentry.c.
23740 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
23741 (grub_menu_execute_entry_real): Removed.
23742 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
23744 (grub_script_execute_menuentry): Removed.
23745 * grub-core/script/parser.y (menuentry): Removed.
23746 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
23747 * grub-core/script/yylex.l (menuentry): Removed.
23748 * include/grub/menu.h (grub_menu_init): New prototype.
23749 (grub_menu_fini): New prototype.
23750 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
23751 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
23752 (grub_script_execute_sourcecode): New prototype.
23754 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23756 "return" command for GRUB script functions.
23758 * tests/grub_script_return.in: New test.
23759 * Makefile.util.def: Rules for new test.
23761 * grub-core/script/execute.c (grub_script_return): New function.
23762 * grub-core/script/main.c: Register/unregister return commaond.
23763 * include/grub/script_sh.h (grub_script_return): New prototype.
23765 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23767 "setparams" command to update positional parameters.
23769 * tests/grub_script_setparams.in: New test.
23770 * Makefile.util.def: Rules for new test.
23772 * grub-core/script/argv.c (grub_script_argv_make): New function.
23773 * grub-core/script/execute.c (replace_scope): New function.
23774 (grub_script_setparams): New function.
23775 * grub-core/script/lexer.c: Remove unused variables.
23776 * grub-core/script/main.c: Register/unregister setparams command.
23777 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
23778 (grub_script_setparams): New prototype.
23780 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23782 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
23785 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23787 Support for passing block of commands as an argument to extcmds.
23789 * Makefile.util.def: Rules for new test.
23790 * tests/grub_script_blockarg.in: New test.
23791 * grub-core/tests/test_blockarg.c: New file, block argument
23792 command used in the test.
23794 * include/grub/extcmd.h (grub_extcmd_context): New struct.
23795 (grub_register_extcmd_prio): New function prototype.
23796 (grub_extcmd_dispatcher): New function prototype.
23797 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
23799 * include/grub/script_sh.h (struct grub_script): New members
23800 `children', `next_siblings' and `refcnt' for block arguments and
23801 reference counting.
23802 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
23803 (grub_script_arg): New member `script' for block argument.
23804 (grub_script_argv): New member `script' for block argument.
23805 (grub_parser_param): New member `scripts' for block argument.
23806 (grub_script_mem_free): New extern function prototype.
23807 (grub_script_ref): New function prototype.
23808 (grub_script_unref): New function prototype.
23810 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
23811 extcmd form to support block arguments.
23812 * grub-core/script/argv.c: Block arguments support.
23813 * grub-core/script/execute.c: Likewise.
23814 * grub-core/script/lexer.c: Likewise.
23815 * grub-core/script/main.c: Likewise.
23816 * grub-core/script/script.c: Likewise.
23817 * grub-core/script/parser.y: Likewise. New `block' and `block0'
23820 * grub-core/commands/acpi.c: Update extcmd implementations with
23821 grub_extcmd_context_t.
23822 * grub-core/commands/cat.c: Likewise.
23823 * grub-core/commands/echo.c: Likewise.
23824 * grub-core/commands/extcmd.c: Likewise.
23825 * grub-core/commands/hashsum.c: Likewise.
23826 * grub-core/commands/hdparm.c: Likewise.
23827 * grub-core/commands/help.c: Likewise.
23828 * grub-core/commands/hexdump.c: Likewise.
23829 * grub-core/commands/i386/cpuid.c: Likewise.
23830 * grub-core/commands/i386/pc/drivemap.c: Likewise.
23831 * grub-core/commands/i386/pc/halt.c: Likewise.
23832 * grub-core/commands/i386/pc/sendkey.c: Likewise.
23833 * grub-core/commands/iorw.c: Likewise.
23834 * grub-core/commands/keystatus.c: Likewise.
23835 * grub-core/commands/loadenv.c: Likewise.
23836 * grub-core/commands/ls.c: Likewise.
23837 * grub-core/commands/lspci.c: Likewise.
23838 * grub-core/commands/memrw.c: Likewise.
23839 * grub-core/commands/probe.c: Likewise.
23840 * grub-core/commands/search_wrap.c: Likewise.
23841 * grub-core/commands/setpci.c: Likewise.
23842 * grub-core/commands/sleep.c: Likewise.
23843 * grub-core/disk/loopback.c: Likewise.
23844 * grub-core/hello/hello.c: Likewise.
23845 * grub-core/loader/i386/bsd.c: Likewise.
23846 * grub-core/loader/xnu.c: Likewise.
23847 * grub-core/term/gfxterm.c: Likewise.
23848 * grub-core/term/serial.c: Likewise.
23849 * grub-core/tests/lib/functional_test.c: Likewise.
23851 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23853 Multi-line quoted strings support.
23855 * grub-core/script/lexer.c (append_newline): Removed.
23856 (grub_script_lexer_yywrap): Refactored.
23857 (grub_script_lexer_init): Refactored.
23858 * grub-core/script/yylex.l (yywrap): New function.
23859 (grub_lexer_resplit): New function.
23860 (grub_lexer_unput): New function.
23861 * include/grub/script_sh.h (grub_lexer_param): New members, unput
23863 * tests/grub_script_echo1.in: Added few more testcases.
23865 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
23867 * grub-core/kern/misc.c: Don't add abort alias in utils.
23868 Reported by: echoline.
23870 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
23872 Add missing files into "make dist" tarball for other platforms.
23874 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
23875 * conf/Makefile.common (dist_noinst_DATA): New variable.
23876 * conf/Makefile.extra-dist: Added missing make dist files.
23877 * grub-core/Makefile.core.def: Likewise.
23879 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
23881 Compress grub_prefix.
23883 * grub-core/boot/i386/pc/lnxboot.S: Use
23884 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
23885 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
23886 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
23887 GRUB_MACHINE_PREFIX_END. All users updated.
23888 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
23889 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
23891 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
23892 * util/grub-mkimage.c (image_target_desc): Change data_end to
23893 prefix_end. All users updated.
23895 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
23897 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
23899 (grub_openbsd_boot): Likewise.
23900 (grub_netbsd_boot): Likewise.
23901 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
23902 (grub_xnu_boot): Likewise.
23904 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23906 * configure.ac: Clean LIBS variable after tests.
23908 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
23910 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
23912 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23914 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
23915 echo if libdevmapper will be used.
23917 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
23919 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
23920 constant for the same file.
23922 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23924 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
23926 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
23928 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
23931 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
23933 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
23934 required by the boot protocol.
23936 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
23937 ebp and edi members.
23938 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
23939 state.ebp and state.edi.
23940 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
23941 %ebp and %edi according to grub_relocator32_ebp and
23942 grub_relocator32_edi respectively.
23943 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
23946 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23948 Add i386-pc-pxe image target.
23950 * util/grub-mkimage.c (image_target_desc): New enum value
23952 (image_targets): New target i386-pc-pxe.
23953 (generate_image): Handle i386-pc-pxe image.
23955 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23959 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
23960 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
23962 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
23963 (grub_pxe_pxenv): Correct type.
23965 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
23967 * NEWS: Document most of the important changes since 1.98.
23969 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
23971 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
23972 generated manual page) a little.
23974 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
23976 * docs/grub.texi: Add myself as an author.
23978 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
23980 * Makefile.util.def (libgrub.a): Add missing sunpc.
23981 Reported by: Seth Goldberg.
23983 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23985 Interrupt wrapping and code simplifications.
23987 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
23988 x86_noieee1275 which are functionaly equivalent in this case.
23989 (grub-install): Make source on each platform explicit. Enable on
23991 * gentpl.py (x86_efi_pc): Removed group.
23992 (x86_noefi): Likewise.
23993 (i386_noefi): Likewise.
23994 (x86_noieee1275): Likewise.
23995 (i386_noieee1275): Likewise.
23996 (i386_noefi_noieee1275): Likewise.
23997 (i386_pc_qemu_coreboot): Likewise.
23998 (i386_coreboot_multiboot): Likewise.
23999 (i386_pc_coreboot_multiboot_qemu): Likewise.
24000 (x86_noefi_mips): Likewise.
24001 (noieee1275): Likewise.
24002 (ieee1275_mips): Likewise.
24003 (noemu_noieee1275): Likewise.
24006 (videoinkernel): Likewise.
24007 (videomodules): Likewise.
24008 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24009 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24010 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24011 include/grub/loader.h, include/grub/msdos_partition.h,
24012 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24013 include/grub/machine/console.h, include/grub/machine/vga.h,
24014 include/grub/machine/vbe.h, include/grub/machine/init.h,
24015 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24016 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24017 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24018 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24019 * grub-core/Makefile.core.def (kernel): Explicit the source for
24020 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24021 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24022 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24023 Use videoinkernel tag.
24024 (usb): Enable on all usb.
24025 (usbserial_common): Likewise.
24026 (usbserial_pl2303): Likewise.
24027 (usbserial_ftdi): Likewise.
24028 (uhci): Enable on all x86.
24029 (ohci): Enable on all pci.
24030 (cmostest): Enable on all CMOS.
24031 (acpi): Include commands/acpi.c on all platforms.
24032 (halt): Add relevant lib/*/halt.c.
24033 (hdparm): Enable on all pci.
24035 (usbtest): Enable on all usb.
24036 (ata): Enable on all pci.
24037 (ata_pthru): Likewise.
24038 (usbms): Enable on all usb.
24039 (usb_keyboard): Likewise.
24040 (font): Use tag videomodules.
24042 (datetime): Use tag cmos. Enable on all noemu.
24043 (mmap): Use tags common and x86.
24044 (gfxterm): Use tag videomodules.
24045 (bitmap): Likewise.
24046 (bitmap_scale): Likewise.
24047 (video_fb): Likewise.
24049 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24050 adjust padding accordingly. All users updated.
24051 (grub_ohci_transaction): Fix bad format specification.
24052 (GRUB_MOD_INIT): Add asserts for struct size.
24053 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24054 (grub_alloc_td): Likewise.
24055 (grub_free_queue): Likewise.
24056 (grub_uhci_transfer): Likewise.
24057 (grub_uhci_transaction): Fix bad format specification.
24058 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24059 (grub_usb_bulk_readwrite): Likewise.
24060 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24061 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24063 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24065 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24066 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24067 Transformed into C.
24068 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24069 Moved from here ...
24070 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24071 ... here. Transformed into C. Made static.
24072 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24073 Moved from here ...
24074 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24075 ... here. Transformed into C. Made static.
24076 * grub-core/kern/i386/pc/startup.S
24077 (grub_biosdisk_check_int13_extensions): Moved from here ...
24078 * grub-core/disk/i386/pc/biosdisk.c
24079 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24081 * grub-core/kern/i386/pc/startup.S
24082 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24083 * grub-core/disk/i386/pc/biosdisk.c
24084 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24085 Transformed into C. Made static.
24086 * grub-core/kern/i386/pc/startup.S
24087 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24088 * grub-core/disk/i386/pc/biosdisk.c
24089 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24090 Transformed into C. Made static.
24091 * grub-core/kern/i386/pc/startup.S
24092 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24093 * grub-core/disk/i386/pc/biosdisk.c
24094 (grub_biosdisk_get_diskinfo_standard): ... here.
24095 Transformed into C. Made static.
24096 * grub-core/kern/i386/pc/startup.S
24097 (grub_biosdisk_get_num_floppies): Moved from here ...
24098 * grub-core/disk/i386/pc/biosdisk.c
24099 (grub_biosdisk_get_num_floppies): ... here.
24100 Transformed into C. Made static.
24101 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24103 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24104 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24105 Transformed into C. Made static.
24106 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24107 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24108 Transformed into C. Made static.
24109 * grub-core/kern/i386/ieee1275/init.c: Removed.
24110 * grub-core/kern/i386/misc.S: Likewise.
24111 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24112 Splitted from here ...
24113 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24114 Transformed into C. Made static. All users updated.
24115 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24116 Transformed into C. Made static. All users updated.
24117 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24119 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24120 Transformed into C. Made static. All users updated.
24121 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24123 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24124 Transformed into C. Made static. All users updated.
24125 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24126 Removed (replaced by C version).
24127 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24129 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24130 Transformed into C. Made static.
24131 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24133 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24134 ... here. Transformed into C.
24135 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24137 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24138 ... here. Transformed into C.
24139 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24141 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24142 ... here. Transformed into C. Made static.
24143 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24145 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24146 ... here. Transformed into C.
24147 * grub-core/kern/i386/pc/startup.S
24148 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24149 * grub-core/video/i386/pc/vbe.c
24150 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24151 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24153 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24154 ... here. Transformed into C.
24155 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24157 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24158 ... here. Transformed into C.
24159 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24161 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24162 ... here. Transformed into C.
24163 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24165 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24166 ... here. Transformed into C.
24167 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24169 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24170 ... here. Transformed into C. Made static.
24171 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24173 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24174 ... here. Transformed into C. Made static.
24175 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24177 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24178 ... here. Transformed into C. Made static.
24179 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24180 pxe_rm_entry as third argument.
24181 (grub_bios_interrupt): New function.
24182 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24183 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24184 of calling grub_stop.
24185 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24186 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24187 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24188 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24189 * grub-core/lib/i386/halt.c: Moved from here ...
24190 * grub-core/lib/i386/halt.c: ... here.
24191 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24192 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24193 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24195 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24196 * include/grub/i386/coreboot/init.h: Removed.
24197 * include/grub/i386/multiboot/init.h: Likewise.
24198 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24199 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24200 * include/grub/i386/pc/int.h: New file.
24201 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24202 (grub_pxe_scan): Removed.
24203 (grub_pxe_call): Update prototype.
24204 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24206 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24207 * include/grub/i386/qemu/init.h: Removed.
24208 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24210 (grub_halt): Likewise.
24211 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24212 (grub_reboot): Likewise.
24213 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24214 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24215 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24217 2010-08-30 Robert Millan <rmh@gnu.org>
24219 * NEWS: Document addition of ZFS support in `grub-install' and
24222 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24224 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24227 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24229 Remove leftover embedding of font objects.
24231 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24232 * util/grub-install.in (font): Removed.
24233 * util/grub-mkimage.c (generate_image): Remove font support. All users
24236 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24238 Remove leftover embedding of font objects.
24240 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24241 * util/grub-install.in (font): Removed.
24242 * util/grub-mkimage.c (generate_image): Remove font support. All users
24245 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24247 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24248 Reported by: Ian Turner
24250 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24252 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24253 timeout to avoid indefinite boot stalling.
24255 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24257 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24258 (grub_env_write_color_highlight): Likewise.
24260 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24262 * grub-core/normal/term.c (print_more): Return to normal and not
24263 to standard state after printing "---MORE---".
24265 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24267 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24268 Mask out the bit 0x80 since it has other meaning that specifiing color.
24270 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24272 New relocator. Allows for more kernel support and more straightforward
24275 * Makefile.am (BOOTTARGET): New variable.
24276 (QEMU32): Likewise.
24277 (linux.init.x86_64): New target.
24278 (linux.init.i386): Likewise.
24279 (multiboot.elf): Likewise.
24280 (kfreebsd.elf): Likewise.
24281 (kfreebsd.aout): Likewise.
24282 (pc-chainloader.elf): Likewise.
24283 (pc-chainloader.bin): Likewise.
24284 (ntldr.elf): Likewise.
24285 (ntldr.bin): Likewise.
24286 (multiboot2.elf): Likewise.
24287 (kfreebsd.init.x86_64): Likewise.
24288 (kfreebsd.init.i386): Likewise.
24289 (knetbsd.init.i386): Likewise.
24290 (kopenbsd.init.i386): Likewise.
24291 (knetbsd.init.x86_64): Likewise.
24292 (kopenbsd.init.x86_64): Likewise.
24293 (linux-initramfs.i386): Likewise.
24294 (linux-initramfs.x86_64): Likewise.
24295 (kfreebsd-mfsroot.i386.img): Likewise.
24296 (knetbsd.image.i386): Likewise.
24297 (kopenbsd.image.i386): Likewise.
24298 (kopenbsd.image.x86_64): Likewise.
24299 (knetbsd.miniroot-image.i386.img): Likewise.
24300 (kfreebsd-mfsroot.x86_64.img): Likewise.
24301 (knetbsd.image.x86_64): Likewise.
24302 (knetbsd.miniroot-image.x86_64.img): Likewise.
24303 (kfreebsd-mfsroot.i386.gz): Likewise.
24304 (bootcheck-kfreebsd-i386): Likewise.
24305 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24306 (bootcheck-kfreebsd-x86_64): Likewise.
24307 (knetbsd.miniroot-image.i386.gz): Likewise.
24308 (bootcheck-knetbsd-i386): Likewise.
24309 (bootcheck-kopenbsd-i386): Likewise.
24310 (bootcheck-kopenbsd-x86_64): Likewise.
24311 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24312 (bootcheck-knetbsd-x86_64): Likewise.
24313 (bootcheck-linux-i386): Likewise.
24314 (bootcheck-linux-x86_64): Likewise.
24315 (bootcheck-linux16-i386): Likewise.
24316 (bootcheck-linux16-x86_64): Likewise.
24317 (bootcheck-multiboot): Likewise.
24318 (bootcheck-multiboot2): Likewise.
24319 (bootcheck-kfreebsd-aout): Likewise.
24320 (bootcheck-pc-chainloader): Likewise.
24321 (bootcheck-ntldr): Likewise.
24322 (CLEANFILES): Add new targets.
24323 (BOOTCHECKS): New variable.
24324 (.PHONY): Add bootchecks.
24325 (SUCCESSFUL_BOOT_STRING): New variable.
24326 (BOOTCHECK_TIMEOUT): Likewise.
24327 (bootcheck): New target
24328 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24329 * configure.ac: Correct efiemu excuse.
24330 * docs/grub.texi (Supported kernels): New chapter.
24331 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24332 include/grub/mm_private.h. Simplify inclusion of
24333 include/grub/boot.h, include/grub/loader.h
24334 and include/grub/msdos_partition.h
24335 (KERNEL_HEADER_FILES) [i386_coreboot]:
24336 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24337 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24338 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24339 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24340 include/grub/machine/loader.h.
24341 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24342 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24344 (pci.mod): Enable on i386-multiboot.
24345 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24346 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24348 (relocator.mod): Rewritten.
24349 (aout.mod): Enable on all x86.
24350 (bsd.mod): Likewise.
24351 (ntldr.mod): New module.
24352 (linux.mod): Use loader/i386/linux.c on all x86.
24353 (xnu.mod): Enable on all x86.
24354 (vga_text.mod): disable on EFI and QEMU.
24355 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24356 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24357 * grub-core/efiemu/loadcore.c: Likewise.
24358 * grub-core/efiemu/main.c: Likewise.
24359 (grub_efiemu_exit_boot_services): Removed.
24360 (grub_efiemu_finish_boot_services): Likewise.
24361 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24363 * grub-core/efiemu/i386/nocfgtables.c: New file.
24364 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24365 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24366 (grub_efi_finish_boot_services): Moved from here ...
24367 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24368 Fille finish memory map and related data.
24369 (finish_mmap_buf): New variable.
24370 (grub_efi_uintn_t finish_mmap_size): Likewise.
24371 (grub_efi_uintn_t finish_key): Likewise.
24372 (grub_efi_uintn_t finish_desc_size): Likewise.
24373 (grub_efi_uint32_t finish_desc_version): Likewise.
24374 (grub_efi_is_finished): Likewise.
24375 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24377 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
24378 (grub_elf64_phdr_iterate): Likewise.
24379 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
24380 (grub_os_area_size): Likewise.
24381 (grub_machine_init): Don't reserve os area.
24382 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
24383 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
24384 * grub-core/kern/i386/loader.S: Removed.
24385 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
24386 (grub_os_area_size): Likewise.
24387 (grub_machine_init): Don't reserve os area.
24388 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
24389 Don't call grub_dl_unload_all.
24390 Don't include loader.S.
24391 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
24392 Declare the memory after _end as available.
24393 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
24394 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
24395 (GRUB_MM_ALLOC_MAGIC): Moved from here...
24396 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
24397 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
24398 * include/grub/mm_private.h (grub_mm_header): ... here.
24399 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
24400 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
24401 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
24402 (grub_mm_region): ..here. Removed addr. Added pre_size.
24404 * grub-core/kern/mm.c (base): Renamed to ...
24405 (grub_mm_base): ... this. Made global.
24406 (grub_real_malloc): Alloc from end of region.
24407 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
24408 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
24409 * grub-core/kern/powerpc/cache_flush.S: ... here.
24410 * grub-core/lib/efi/relocator.c: New file.
24411 * grub-core/lib/i386/relocator.c: Rewritten.
24412 * grub-core/lib/i386/relocator16.S: New file.
24413 * grub-core/lib/i386/relocator32.S: Likewise.
24414 * grub-core/lib/i386/relocator64.S: Likewise.
24415 * grub-core/lib/i386/relocator_asm.S: Rewritten.
24416 * grub-core/lib/i386/relocator_common.S: New file.
24417 * grub-core/lib/ieee1275/relocator.c: Likewise.
24418 * grub-core/lib/mips/relocator.c: Rewritten.
24419 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
24420 stylistic adjustments.
24421 * grub-core/lib/powerpc/relocator.c: New file.
24422 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
24423 * grub-core/lib/relocator.c: Rewritten.
24424 * grub-core/lib/x86_64/relocator_asm.S: New file.
24425 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
24426 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
24427 (bsd_tag): New struct.
24428 (tags): New variable.
24429 (tags_last): Likewise.
24430 (netbsd_module): New struct.
24431 (netbsd_mods): New variable.
24432 (netbsd_mods_last): Likewise.
24433 (openbsd_opts): New parameter "serial".
24434 (OPENBSD_SERIAL_ARG): New definition.
24435 (netbsd_opts): New parameter "serial".
24436 (NETBSD_SERIAL_ARG): New definition.
24437 (grub_freebsd_add_meta): Reorganised into ...
24438 (grub_bsd_add_meta): ...this. All users updated.
24439 (grub_freebsd_add_mmap): Reorganised into ...
24440 (generate_e820_mmap): ...this...
24441 (grub_bsd_add_mmap): ...and this. All users updated.
24442 (grub_freebsd_list_modules): Use tags.
24443 (grub_netbsd_add_meta_module): New function.
24444 (grub_netbsd_list_modules): Likewise.
24445 (grub_freebsd_boot): Use relocator and finish EFI.
24446 (grub_openbsd_boot): Likewise.
24447 (grub_netbsd_setup_video): New function.
24448 (grub_netbsd_add_modules): Likewise.
24449 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
24451 (grub_bsd_unload): Unload tags.
24452 (grub_bsd_load_aout): Use relocator.
24453 (grub_bsd_elf32_size_hook): New function.
24454 (grub_bsd_elf32_hook): Use relocator.
24455 (grub_bsd_elf64_size_hook): New function.
24456 (grub_bsd_elf64_hook): Use relocator.
24457 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
24458 (grub_bsd_load): Zero-out openbsd_ramdisk.
24459 (grub_bsd_load): Use relocator.
24460 (grub_cmd_openbsd): Support serial.
24461 (grub_cmd_netbsd): Support modules.
24462 (grub_cmd_freebsd_module): Use relocator.
24463 (grub_netbsd_module_load): New function.
24464 (grub_cmd_netbsd_module): Likewise.
24465 (grub_cmd_openbsd_ramdisk): Likewise.
24466 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
24468 (GRUB_MOD_FINI): Unregister new commands.
24469 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
24470 (grub_freebsd_load_elfmodule_obj): Use relocator.
24471 (grub_freebsd_load_elfmodule): Likewise.
24472 (grub_freebsd_load_elf_meta): Likewise.
24473 (grub_netbsd_load_elf_meta): New function.
24474 (grub_openbsd_find_ramdisk): Likewise.
24475 * grub-core/loader/i386/bsd_helper.S: Removed.
24476 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
24477 * grub-core/loader/i386/bsd_trampoline.S: Removed.
24478 * grub-core/loader/i386/efi/linux.c: Likewise.
24479 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
24480 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
24481 (DEFAULT_VIDEO_MODE): Likewise.
24482 (real_mode_target): New variable.
24483 (prot_mode_target): Likewise.
24484 (initrd_mem_target): Likewise.
24485 (relocator): Likewise.
24486 (efi_mmap_buf): Likewise.
24487 (efi_mmap_size): Likewise.
24488 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
24489 (free_pages): Use relocator.
24490 (allocate_pages): Account for efi_mmap and use relocator. Return error.
24491 (grub_linux_setup_video): Return error.
24492 (grub_linux_trampoline_start): Removed.
24493 (grub_linux_trampoline_end): Likewise.
24494 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
24495 andd video parameters depending on firmware.
24496 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
24497 [GRUB_MACHINE_EFI]: Pass EFI parameters.
24498 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
24499 (grub_cmd_initrd): Use relocator.
24500 * grub-core/loader/i386/linux_trampoline.S: Removed.
24501 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
24502 (elf_sec_entsize): Likewise.
24503 (elf_sec_shstrndx): Likewise.
24504 (elf_sections): Likewise.
24505 (grub_multiboot_load): Use relocator.
24506 (grub_multiboot_get_mbi_size): Account for sections.
24507 (grub_multiboot_make_mbi): Use relocator and support sections.
24508 (grub_multiboot_add_elfsyms): New function.
24509 (grub_multiboot_free_mbi): Free sections.
24510 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
24511 (grub_linux_real_target): Likewise.
24512 (grub_linux_real_chunk): Likewise.
24513 (grub_linux16_prot_size): Likewise.
24514 (grub_linux16_boot): Use relocator.
24515 (grub_linux_unload): Unload relocator.
24516 (grub_cmd_linux): Use relocator.
24517 (grub_cmd_initrd): Likewise.
24518 * grub-core/loader/i386/pc/ntldr.c: New file.
24519 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
24520 Don't try to guess CPU frequency.
24521 (grub_xnu_set_video): Stretch bitmap.
24522 (grub_xnu_boot): Use relocator.
24523 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
24524 (grub_linux_unload): Free relocator.
24525 (grub_linux_load32): Use relocator.
24526 (grub_linux_load64): Likewise.
24527 (grub_cmd_initrd): Likewise.
24528 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
24529 (grub_multiboot_unload): Unload relocator.
24530 (grub_cmd_multiboot): Use relocator.
24531 (grub_cmd_module): Likewise.
24532 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
24533 Use relocator and support sections.
24534 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
24535 (elf_sec_entsize): Likewise.
24536 (elf_sec_shstrndx): Likewise.
24537 (elf_sections): Likewise.
24538 (grub_multiboot_load): Use relocator.
24539 (grub_multiboot_get_mbi_size): Account for sections.
24540 (grub_multiboot_make_mbi): Use relocator and support sections.
24541 (grub_multiboot_add_elfsyms): New function.
24542 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
24543 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
24544 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
24545 Prototype changed. All users updated.
24546 (grub_xnu_align_heap): Simplified.
24547 (grub_xnu_writetree_toheap): Likewise.
24548 (grub_xnu_unload): Unload relocator.
24549 (grub_cmd_xnu_kernel): Use relocator.
24550 (grub_cmd_xnu_kernel64): Likewise.
24551 (grub_xnu_register_memory): Simplified.
24552 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
24553 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
24555 (grub_console_checkkey): Likewise.
24556 (grub_console_getkey): Likewise.
24557 (grub_console_getwh): Likewise.
24558 (grub_console_getxy): Likewise.
24559 (grub_console_gotoxy): Likewise.
24560 (grub_console_cls): Likewise.
24561 (grub_console_setcolorstate): Likewise.
24562 (grub_console_setcursor): Likewise.
24563 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
24564 * grub-core/tests/boot/kbsd.init-i386.S: New file.
24565 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
24566 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
24567 * grub-core/tests/boot/kernel-8086.S: Likewise.
24568 * grub-core/tests/boot/kernel-i386.S: Likewise.
24569 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
24570 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
24571 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
24572 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
24573 * grub-core/tests/boot/knetbsd.cfg: Likewise.
24574 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
24575 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
24576 * grub-core/tests/boot/linux.cfg: Likewise.
24577 * grub-core/tests/boot/linux.init-i386.S: Likewise.
24578 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
24579 * grub-core/tests/boot/linux16.cfg: Likewise.
24580 * grub-core/tests/boot/multiboot.cfg: Likewise.
24581 * grub-core/tests/boot/multiboot2.cfg: Likewise.
24582 * grub-core/tests/boot/ntldr.cfg: Likewise.
24583 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
24584 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
24585 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
24587 * include/grub/dl.h (grub_dl_unload_all): Removed.
24588 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
24589 (grub_efi_finish_boot_services): Change prototype.
24590 (grub_efi_is_finished): New variable.
24591 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
24593 (grub_efiemu_finish_boot_services): Removed.
24594 (grub_machine_efiemu_init_tables): New prototype.
24595 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
24596 (grub_elf64_phdr_iterate): Likewise.
24597 * include/grub/i386/bsd.h: Include relocator.h.
24598 (freebsd_tag_header): New struct.
24599 (grub_openbsd_bios_mmap): Removed.
24600 (grub_unix_real_boot): Removed.
24601 (grub_freebsd_load_elfmodule32): Changed prototype.
24602 (grub_freebsd_load_elfmodule_obj64): Likewise.
24603 (grub_freebsd_load_elf_meta32): Likewise.
24604 (grub_freebsd_load_elf_meta64): Likewise.
24605 (grub_freebsd_add_meta): Removed.
24606 (grub_netbsd_load_elf_meta32): New prototype.
24607 (grub_netbsd_load_elf_meta64): Likewise.
24608 (grub_bsd_add_meta): Likewise.
24609 (grub_openbsd_ramdisk_descriptor): New struct.
24610 (grub_openbsd_find_ramdisk32): New prototype.
24611 (grub_openbsd_find_ramdisk64): Likewise.
24612 * include/grub/i386/coreboot/loader.h: Removed.
24613 * include/grub/i386/efi/loader.h: Likewise.
24614 * include/grub/i386/ieee1275/loader.h: Likewise.
24615 * include/grub/i386/linux.h (linux_kernel_header): Change void *
24617 * include/grub/i386/loader.h: Removed.
24618 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
24620 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
24621 (grub_phys_addr_t): New type.
24622 (grub_vtop): New inline function.
24623 (grub_map_memory): Likewise.
24624 (grub_unmap_memory): Likewise.
24625 * include/grub/i386/multiboot/loader.h: Removed.
24626 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
24627 (NETBSD_BTINFO_CONSOLE): New definition.
24628 (NETBSD_BTINFO_SYMTAB): Likewise.
24629 (NETBSD_BTINFO_MODULES): Likewise.
24630 (NETBSD_BTINFO_FRAMEBUF): Likewise.
24631 (grub_netbsd_bootinfo): New struct.
24632 (grub_netbsd_btinfo_common): Use explicit bitsize.
24633 (grub_netbsd_btinfo_mmap_entry): Removed.
24634 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
24635 (grub_netbsd_btinfo_bootdisk): New struct.
24636 (grub_netbsd_btinfo_symtab): Likewise.
24637 (grub_netbsd_btinfo_serial): Likewise.
24638 (grub_netbsd_btinfo_modules): Likewise.
24639 (grub_netbsd_btinfo_framebuf): Likewise.
24640 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
24641 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
24643 (grub_openbsd_bootargs): Use explicit bitsize.
24644 (grub_openbsd_bootarg_console): New struct.
24645 (GRUB_OPENBSD_COM_MAJOR): New definition.
24646 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
24647 * include/grub/i386/pc/efiemu.h: Removed.
24648 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
24649 * include/grub/i386/qemu/loader.h: Removed.
24650 * include/grub/i386/relocator.h: Rewritten.
24651 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
24652 * include/grub/mips/memory.h: New file.
24653 * include/grub/mips/multiboot.h: Rewritten.
24654 * include/grub/mips/relocator.h: Rewritten.
24655 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
24656 (grub_vtop): New function.
24657 (grub_map_memory): Likewise.
24658 (grub_unmap_memory): Likewise.
24659 * include/grub/misc.h (ALIGN_DOWN): New definition.
24660 * include/grub/mm.h (grub_mm_check_real): New proto.
24661 (GRUB_MM_CHECK): New definition.
24662 * include/grub/mm_private.h: New file.
24663 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
24664 (grub_multiboot_get_mbi_size): Removed.
24665 (grub_multiboot_make_mbi): Change prottype.
24666 (grub_multiboot_set_accepts_video): New proto.
24667 (grub_multiboot_add_elfsyms): Likewise.
24668 (grub_multiboot_payload_eip): New variable.
24669 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
24671 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
24673 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
24674 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
24675 * include/grub/powerpc/ieee1275/loader.h: Removed.
24676 * include/grub/powerpc/memory.h: New file.
24677 * include/grub/powerpc/relocator.h: Likewise.
24678 * include/grub/relocator.h: Likewise.
24679 * include/grub/relocator_private.h: Likewise.
24680 * include/grub/sparc64/ieee1275/loader.h: Removed.
24681 * include/grub/x86_64/memory.h: New file.
24682 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
24683 (grub_xnu_heap_malloc): Likewise.
24684 (grub_xnu_heap_real_start): Removed.
24685 (grub_xnu_heap_start): Likewise.
24686 (grub_xnu_relocator): New variable.
24687 (grub_xnu_heap_target_start): Likewise.
24688 * tests/util/grub-shell.in: Support non-pc.
24689 * util/grub-mkimage.c (image_targets): Fix multiboot target.
24691 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24693 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
24695 (grub_bidi_logical_to_visual): Check that malloc succeded.
24696 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
24698 (grub_xputs_normal): Likewise.
24700 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24702 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
24705 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24707 * grub-core/efiemu/runtime/efiemu.sh: Removed.
24709 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24711 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
24713 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24715 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
24718 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
24720 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
24722 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24724 * grub-core/normal/term.c (print_more): Fix a memory leak.
24725 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
24726 (grub_xputs_normal): Likewise.
24728 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24730 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
24731 the begining of the string
24733 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24735 * grub-core/script/script.c (grub_script_parse): Free parsed on
24738 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24740 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
24743 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24745 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
24748 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24750 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
24751 (scroll_up): Fix a memory leak.
24753 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24755 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
24758 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
24760 Handle USB pendrives exposed as floppies.
24762 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
24764 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
24765 Check for partitions on all devices.
24767 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24769 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
24770 (readkey): Likewise.
24772 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
24774 Multiple variable names support to "export" command.
24776 * normal/context.c (grub_cmd_export): "export" command supports
24777 multiple variable names.
24779 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
24781 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
24782 --target=drive output to Mach device name.
24784 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
24786 New Automake based build system for GRUB.
24788 * ABOUT-NLS: New file.
24789 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
24790 in Makefile.util.def file.
24791 * Makefile.util.def: New file. Autogen build definitions file for
24793 * conf/Makefile.common: New file. Common variables for GRUB host
24794 utils and target modules.
24795 * conf/Makefile.extra-dist: New file. Extra files for make dist.
24796 * docs/Makefile.am: New file. Automake file for docs.
24797 * gentpl.py: New file. Python script to generate Autogen
24799 * grub-core/Makefile.am: New file. GRUB target modules' rules
24800 that doesn't fit in Makefile.core.def file.
24801 * grub-core/Makefile.core.def: New file. Autogen build
24802 definitions file for GRUB target modules.
24803 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
24804 specific setjmp.S file.
24805 * po/Makefile.am: New file.
24807 * .bzrignore: New ignores.
24808 * INSTALL: New requirements, without Ruby.
24809 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
24810 * autogen.sh: Updated to invoke autogen as necessary.
24811 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
24812 and defines for Automake conditionals.
24813 * geninit.sh: Refactoring.
24815 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
24817 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
24820 * include/grub/test.h: Fix functional test modules' naming.
24821 * grub-core/tests/example_functional_test.c: Fix test module name.
24823 * util/misc.c: Hosted versions' of grub functions for libgrub.a
24824 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
24825 * util/grub-editenv.c: Likewise.
24826 * util/grub-fstest.c: Likewise.
24827 * util/grub-mkdevicemap.c: Likewise.
24828 * util/grub-mkfont.c: Likewise.
24829 * util/grub-mkimage.c: Likewise.
24830 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24831 * util/grub-probe.c: Likewise.
24832 * util/grub-script-check.c: Likewise.
24833 * util/i386/pc/grub-setup.c: Likewise.
24834 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24836 * tests/util/grub-shell.in: Fix override directory path.
24837 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
24838 * util/import_gcry.py: Create Makefile.gcry.def file instead.
24840 * util/lvm.c: Update #includes.
24841 * util/raid.c: Likewise.
24842 * util/resolve.c: Likewise.
24843 * grub-core/bus/emu/pci.c: Likewise.
24844 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
24845 * grub-core/lib/posix_wrap/string.h: Likewise.
24846 * grub-core/kern/emu/main.c: Likewise.
24848 * grub-core/gensymlist.sh: New file. Script for generating kernel
24850 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
24852 * grub-core/gentrigtables.c: Fix unused variable warnings.
24854 * Makefile.in: Removed.
24855 * conf/any-emu.rmk: Removed.
24856 * conf/common.rmk: Removed.
24857 * conf/i386-coreboot.rmk: Removed.
24858 * conf/i386-efi.rmk: Removed.
24859 * conf/i386-ieee1275.rmk: Removed.
24860 * conf/i386-multiboot.rmk: Removed.
24861 * conf/i386-pc.rmk: Removed.
24862 * conf/i386-qemu.rmk: Removed.
24863 * conf/i386.rmk: Removed.
24864 * conf/mips-yeeloong.rmk: Removed.
24865 * conf/mips.rmk: Removed.
24866 * conf/powerpc-ieee1275.rmk: Removed.
24867 * conf/sparc64-ieee1275.rmk: Removed.
24868 * conf/tests.rmk: Removed.
24869 * conf/x86-efi.rmk: Removed.
24870 * conf/x86_64-efi.rmk: Removed.
24871 * gendistlist.sh: Removed.
24872 * geninitheader.sh: Removed.
24873 * genkernsyms.sh.in: Removed.
24874 * genmk.rb: Removed.
24875 * gensymlist.sh.in: Removed.
24876 * mkinstalldirs: Removed.
24878 * grub-core/boot: ... to here.
24880 * grub-core/bus: ... to here.
24881 * commands: Moved ...
24882 * grub-core/commands: ... to here.
24884 * grub-core/disk: ... to here.
24885 * efiemu: Moved ...
24886 * grub-core/efiemu: ... to here.
24888 * grub-core/font: ... to here.
24890 * grub-core/fs: ... to here.
24891 * gencmdlist.sh: Moved ...
24892 * grub-core/gencmdlist.sh: ... to here.
24893 * genemuinit.sh: Moved ...
24894 * grub-core/genemuinit.sh: ... to here.
24895 * genemuinitheader.sh: Moved ...
24896 * grub-core/genemuinitheader.sh: ... to here.
24897 * genfslist.sh: Moved ...
24898 * grub-core/genfslist.sh: ... to here.
24899 * genhandlerlist.sh: Moved ...
24900 * grub-core/genhandlerlist.sh: ... to here.
24901 * genmoddep.awk: Moved ...
24902 * grub-core/genmoddep.awk: ... to here.
24903 * genmodsrc.sh: Moved ...
24904 * grub-core/genmodsrc.sh: ... to here.
24905 * genpartmaplist.sh: Moved ...
24906 * grub-core/genpartmaplist.sh: ... to here.
24907 * genparttoollist.sh: Moved ...
24908 * grub-core/genparttoollist.sh: ... to here.
24909 * genterminallist.sh: Moved ...
24910 * grub-core/genterminallist.sh: ... to here.
24911 * gentrigtables.c: Moved ...
24912 * grub-core/gentrigtables.c: ... to here.
24913 * genvideolist.sh: Moved ...
24914 * grub-core/genvideolist.sh: ... to here.
24915 * gettext: Moved ...
24916 * grub-core/gettext: ... to here.
24917 * gfxmenu: Moved ...
24918 * grub-core/gfxmenu: ... to here.
24919 * gnulib: Moved ...
24920 * grub-core/gnulib: ... to here.
24922 * grub-core/hello: ... to here.
24924 * grub-core/hook: ... to here.
24926 * grub-core/io: ... to here.
24928 * grub-core/kern: ... to here.
24930 * grub-core/lib: ... to here.
24931 * loader: Moved ...
24932 * grub-core/loader: ... to here.
24934 * grub-core/mmap: ... to here.
24935 * normal: Moved ...
24936 * grub-core/normal: ... to here.
24937 * partmap: Moved ...
24938 * grub-core/partmap: ... to here.
24939 * parttool: Moved ...
24940 * grub-core/parttool: ... to here.
24941 * script: Moved ...
24942 * grub-core/script: ... to here.
24944 * grub-core/term: ... to here
24945 * tests/example_functional_test.c: Moved ...
24946 * grub-core/tests/example_functional_test.c: ... to here.
24947 * tests/lib/functional_test.c: Moved ...
24948 * grub-core/tests/lib/functional_test.c: ... to here.
24949 * tests/lib/test.c: Moved ...
24950 * grub-core/tests/lib/test.c: ... to here.
24952 * grub-core/video: ... to here.
24954 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
24956 Replace --enable-grub-emu-modules with grub-emu-lite.
24958 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
24961 * include/grub/emu/misc.h (grub_emu_init): New prototype.
24962 * kern/emu/full.c: New file. For grub-emu specific initialization.
24963 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
24964 * kern/emu/main.c: Call initialization function grub_emu_init.
24966 * Makefile.in: Include grub-emu-lite in install.
24967 * commands/parttool.c: Use grub_no_autoload to differentiate
24968 between grub-emu and grub-emu-lite.
24969 * include/grub/misc.h: New variable grub_no_autoload.
24971 * conf/any-emu.rmk: New rules for grub-emu-lite.
24972 * configure.ac: Remove --enable-grub-emu-modules.
24973 * genmk.rb: Cleanup unnecessary rules.
24974 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
24976 * normal/main.c: Don't load list files on grub-emu-lite.
24977 * util/misc.c (grub_arch_sync_caches): Removed.
24979 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
24981 * kern/mips/startup.S (grub_prefix): Update comment to refer to
24982 grub-mkimage rather than grub-mkelfimage.
24983 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
24985 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
24987 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
24988 a key after CapsLock or NumLock. It's just a qemu bug.
24990 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
24992 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
24993 needed by libusb wrapper.
24995 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
24997 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
24999 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25001 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25002 --nounzip is passed.
25004 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25006 USB hotunplugging and USB serial support.
25008 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25009 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25010 (grub_uhci_transfer): Respect timeout and set *actual.
25011 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25012 non-standard length.
25013 (grub_usb_device_attach): Autoload modules.
25014 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25015 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25016 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25018 (grub_usb_add_hub): Fill nports and children.
25019 (attach_root_port): Receive hub instead of controller.
25020 All users updated. Fill hub->devices.
25021 (grub_usb_root_hub): Allocate hub->devices.
25022 (detach_device): New function.
25023 (poll_nonroot_hub): Fill children and detach devices.
25024 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25025 actual arguments. All users updated.
25026 (grub_usb_bulk_read_extended): New function.
25027 * bus/usb/serial/common.c: New file.
25028 * bus/usb/serial/ftdi.c: Likewise.
25029 * bus/usb/serial/pl2303.c: Likewise.
25030 * commands/terminal.c (handle_command): Support wildcard.
25031 * commands/usbtest.c: Output "Unknown" instead of empty string.
25032 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25033 (usbserial_common_mod_SOURCES): New variable.
25034 (usbserial_common_mod_CFLAGS): Likewise.
25035 (usbserial_common_mod_LDFLAGS): Likewise.
25036 (pkglib_MODULES): Add usbserial_pl2303.mod.
25037 (usbserial_pl2303_mod_SOURCES): New variable.
25038 (usbserial_pl2303_mod_CFLAGS): Likewise.
25039 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25040 (pkglib_MODULES): Add usbserial_ftdi.mod.
25041 (usbserial_ftdi_mod_SOURCES): New variable.
25042 (usbserial_ftdi_mod_CFLAGS): Likewise.
25043 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25044 (pkglib_MODULES): Add serial.mod.
25045 (serial_mod_SOURCES): New variable.
25046 (serial_mod_CFLAGS): Likewise.
25047 (serial_mod_LDFLAGS): Likewise.
25048 * conf/i386-pc.rmk: Likewise.
25049 * conf/mips-yeeloong.rmk: Likewise.
25050 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25051 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25052 * disk/usbms.c (first_available_slot): New variable.
25053 (grub_usbms_attach): Don't reuse free slots due to potential cache
25055 * include/grub/serial.h: Moved to ..
25056 * include/grub/ns8250.h: ...this.
25057 * include/grub/serial.h: New file.
25058 * include/grub/term.h (grub_term_poll_usb): New variable.
25059 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25060 readkey. All users updated.
25061 (grub_terminfo_output_state): Pass term to put.
25062 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25063 (grub_usb_controller_dev): Add timeout and actual arguments to
25064 transfer. All users updated.
25065 (grub_usb_interface): New field detach_data.
25066 (grub_usb_device): New fields children and nports.
25067 (grub_usb_ep_type_t): New type.
25068 (grub_usb_get_ep_type): New function.
25069 (grub_usb_bulk_read_extended): Likewise.
25070 * include/grub/usbdesc.h (grub_usb_desc): New type.
25071 * include/grub/usbserial.h: New file.
25072 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25073 * kern/term.c (grub_term_poll_usb): New variable.
25074 (grub_getkey): Call grub_term_poll_usb if set.
25075 (grub_checkkey): Likewise.
25076 (grub_getkeystatus): Likewise.
25077 * term/serial.c: Moved controller-specific parts to ...
25078 * term/ns8250.c: ... here.
25079 * term/serial.c: Mostly rewritten.
25080 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25083 2010-08-20 Robert Millan <rmh@gnu.org>
25085 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25086 a separate module and maybe other interesting combinations.
25088 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25089 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25090 (kfreebsd_entry): Add generic filesystem module load routine.
25091 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25093 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25095 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25096 "numcenter" (I misunderstood the purpose of this entry).
25097 * docs/grub.texi (sendkey): Likewise.
25099 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25101 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25102 status flag options; simply omitting the option is equivalent and
25103 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25104 (keysym_table): Rename "num5numlock" to "numlock".
25105 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25106 can uniformly say that only the last of multiple `sendkey'
25107 invocations has any effect.
25108 * docs/grub.texi (sendkey): New section.
25110 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25112 * commands/i386/pc/sendkey.c (options): Fix three typos.
25114 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25116 Implement sendkey support.
25118 * commands/i386/pc/sendkey.c: New file.
25119 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25120 (sendkey_mod_SOURCES): New variable.
25121 (sendkey_mod_CFLAGS): Likewise.
25122 (sendkey_mod_LDFLAGS): Likewise.
25124 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25126 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25127 fix warnings from Autoconf.
25129 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25131 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25132 to avoid false positives with some assemblers that output things
25133 like "someprefix_func" as part of their output.
25135 2010-08-15 Robert Millan <rmh@gnu.org>
25137 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25139 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25140 grub_get_libzfs_handle() errors.
25142 2010-08-14 Robert Millan <rmh@gnu.org>
25144 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25145 filesystem is not ZFS.
25147 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25149 Fix for misspelled color names defaulting to black/black (bug
25150 reported by Doug Nazar)
25152 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25153 status to prototype.
25154 * normal/color.c (grub_parse_color_name_pair): Return failure
25156 (grub_env_write_color_normal): Ignore bad color names.
25157 (grub_env_write_color_highlight): Likewise.
25158 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25160 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25162 "shift" command support to GRUB script.
25164 * include/grub/script_sh.h (grub_script_shift): New prototype.
25165 * script/execute.c (grub_script_shift): New function.
25166 * script/main.c (grub_script_init): Register shift command.
25167 (grub_script_fini): Unregister shift command.
25168 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25170 * tests/grub_script_shift.in: New testcase.
25171 * conf/tests.rmk: Rules for new testcase.
25173 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25175 "continue" command support to GRUB script.
25177 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25178 (grub_script_break): Continue support.
25179 * script/main.c (grub_script_init): Register continue command.
25180 (grub_script_fini): Unregister continue command.
25182 * tests/grub_script_continue.in: New testcase.
25183 * conf/tests.rmk: Rules for new testcase.
25185 2010-08-12 BVK Chaitanya <bvk@dbook>
25187 "break" command support to GRUB script.
25189 * conf/common.rmk: Rule updates to grub-script-check.
25190 * include/grub/misc.h (grub_min): New function.
25191 * include/grub/script_sh.h (grub_script_init): New prototype.
25192 (grub_script_fini): New prototype.
25193 (grub_script_break): New prototype.
25194 * script/main.c (grub_script_init): New function.
25195 (grub_script_fini): New function.
25196 * script/execute.c (grub_script_break): New function.
25197 * normal/main.c: Calls to grub_script_{init,fini}.
25198 * util/grub-script-check.c (grub_script_break): New function.
25200 * tests/grub_script_break.in: New testcase.
25201 * conf/tests.rmk: Rules for new test case.
25203 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25205 Function parameters support to GRUB script.
25207 * script/yylex.l (VARIABLE): Regular expression update.
25208 * script/function.c (grub_script_function_call): Moved ...
25209 * script/execute.c (grub_script_function_call): ... to here.
25210 (grub_script_execute_arglist_to_argv): Removed.
25211 (grub_script_arglist_to_argv): New function.
25212 * script/argv.c: New file.
25213 (grub_script_argv_free): New function.
25214 (grub_script_argv_next): Likewise.
25215 (grub_script_argv_append): Likewise.
25216 (grub_script_argv_split_append): Likewise.
25217 * include/grub/script_sh.h (grub_script_argv): New struct.
25218 (grub_script_argv_free): New function.
25219 (grub_script_argv_next): Likewise.
25220 (grub_script_argv_append): Likewise.
25221 (grub_script_argv_split_append): Likewise.
25223 * conf/common.rmk (normal.mod): New source script/argv.c.
25225 * tests/grub_script_echo1.in: More tests.
25226 * tests/grub_script_vars1.in: Likewise.
25227 * tests/grub_script_functions.in: New test case.
25228 * conf/tests.rmk: Rules for new testcase.
25230 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25232 Remove grub_script_cmdblock struct.
25234 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25235 * script/parser.y: Likewise.
25236 * script/execute.c: Rename cmdblock suffix to cmdlist.
25237 * script/script.c: Likewise.
25238 * util/grub-script-check.c: Likewise.
25240 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25242 * .bzrignore: add grub-macho2img
25244 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25246 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25248 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25250 Remove the dump of sm712 initialisation sequence.
25252 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25253 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25254 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25255 (GRUB_VGA_CR_*): Added many registers.
25256 (GRUB_VGA_SR_*): Likewise.
25257 (GRUB_VGA_GR_*): Likewise.
25258 (grub_vga_write_arx): New function.
25259 (grub_video_hw_config): New struct.
25260 (grub_vga_set_geometry): New function.
25261 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25262 GRUB_PCI_CLASS_SUBCLASS_VGA.
25263 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25264 * video/sm712.c (grub_sm712_write_reg): New function
25265 (grub_sm712_read_reg): Likewise.
25266 (grub_sm712_sr_write): Likewise.
25267 (grub_sm712_gr_write): Likewise.
25268 (grub_sm712_cr_write): Likewise.
25269 (grub_sm712_write_arx): Likewise.
25270 (grub_sm712_cr_shadow_write): Likewise.
25271 (grub_sm712_write_dda_lookup): Likewise.
25272 (grub_video_sm712_setup): Initialise the video rather then
25273 blindly replay the dump.
25274 (main) [TEST]: Add a routine to be able to compile as standalone for
25276 * video/sm712_init.c (sm712_init): Removed.
25277 (sm712_sr_seq1): New array.
25278 (sm712_sr_seq2): Likewise.
25280 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25282 * include/grub/vga.h: Add missing grub/pci.h include.
25284 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25286 * util/grub-macho2img.c (main): fix typo
25288 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25290 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25291 (grub_vga_gr_read): Likewise.
25292 (grub_vga_cr_write): Likewise.
25293 (grub_vga_cr_read): Likewise.
25294 (grub_vga_sr_write): Likewise.
25295 (grub_vga_sr_read): Likewise.
25296 (grub_vga_palette_read): Likewise.
25297 (grub_vga_palette_write): Likewise.
25298 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25299 (grub_sm712_sr_read): New function.
25300 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25301 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25303 2010-08-09 Robert Millan <rmh@gnu.org>
25305 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25306 out unused variables on non-ZFS build.
25308 2010-08-08 Robert Millan <rmh@gnu.org>
25310 Fix path generation for sub-filesystems in ZFS.
25312 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25315 2010-08-08 Robert Millan <rmh@gnu.org>
25317 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25319 2010-08-08 Robert Millan <rmh@gnu.org>
25321 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25322 exist, issue a proper error message (rely on `ls' for translated
25325 2010-08-08 Robert Millan <rmh@gnu.org>
25327 Fix grub-probe invocation.
25329 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25331 2010-08-04 Robert Millan <rmh@gnu.org>
25333 * configure.ac: Remove checks for getfsstat() and getmntany().
25334 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25335 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25336 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25337 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25338 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25340 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25341 via find_mount_point_from_dir() and getfsstat() / getmntany().
25343 2010-08-04 Robert Millan <rmh@gnu.org>
25345 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25346 (grub_find_zpool_from_mount_point): Merge into ...
25347 (grub_find_zpool_from_dir): ... this.
25348 * kern/emu/misc.c: Likewise.
25351 (grub_make_system_path_relative_to_its_root): Replace
25352 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25353 with grub_find_zpool_from_dir().
25354 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25356 2010-08-04 Robert Millan <rmh@gnu.org>
25358 Support OpenSolaris in ZFS device resolution.
25360 * configure.ac: Check for getmntany().
25361 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25362 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25365 2010-08-03 Robert Millan <rmh@gnu.org>
25367 Fix grub-emu build.
25369 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25370 * include/grub/emu/misc.h: ... here.
25372 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25373 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25375 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25376 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25377 (grub_get_libzfs_handle): Move to ...
25378 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
25379 (grub_get_libzfs_handle): ... here.
25381 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
25383 * script/execute.c (grub_script_execute_cmdline): Check for NULL
25384 as command name case.
25386 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
25388 * disk/raid.c (insert_array): Select unique numbers for named arrays
25389 as well, for use as keys in the disk cache.
25391 2010-08-01 Robert Millan <rmh@gnu.org>
25393 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
25394 kFreeBSD device name, except on ZFS where the filesystem label is
25396 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
25397 `/boot/zfs/zpool.cache'.
25398 Set mountfrom kernel variable using ${kfreebsd_device}.
25400 2010-08-01 Robert Millan <rmh@gnu.org>
25402 Make it even harder to use uninitialized `libzfs_handle' (and
25403 make the interface a bit simpler).
25405 * include/grub/util/misc.h (grub_util_init_libzfs)
25406 (libzfs_handle): Remove.
25407 (grub_get_libzfs_handle): New prototype.
25409 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
25411 (grub_util_init_libzfs): Remove.
25412 (grub_get_libzfs_handle): New function.
25414 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
25415 grub_get_libzfs_handle() to obtain a libzfs handle instead of
25416 accessing `libzfs_handle' directly.
25418 2010-08-01 Robert Millan <rmh@gnu.org>
25420 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25421 (grub_find_zpool_from_mount_point): New function prototypes.
25423 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
25424 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
25426 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
25427 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
25428 `static' attribute.
25430 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
25431 finding zpool from mount point into ...
25432 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
25434 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
25435 requested path is part of a ZFS pool, use
25436 grub_find_zpool_from_mount_point() to detect its filesystem name,
25437 and generate a path with `/fsname@path' syntax.
25439 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25441 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
25442 (void) rather than () so that this is a proper prototype.
25444 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25446 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
25448 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25450 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
25451 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
25453 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25455 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
25457 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25459 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
25461 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25463 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
25464 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
25465 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
25466 disable gfxpayload.
25467 (Shell-like scripting): Add real content.
25468 (Serial terminal): Suggest `terminal_input serial; terminal_output
25469 serial' rather than putting the two commands on separate lines,
25470 since console input will be inoperative after the first command.
25471 (menuentry): Document --class, --users, and --hotkey options.
25472 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
25473 Vladimir Serbinenko).
25475 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25476 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25478 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
25480 2010-08-01 Robert Millan <rmh@gnu.org>
25482 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25483 (grub_find_zpool_from_mount_point): New function prototypes.
25485 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
25486 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
25488 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
25489 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
25490 `static' attribute.
25492 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
25493 finding zpool from mount point into ...
25494 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
25496 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
25497 requested path is part of a ZFS pool, use
25498 grub_find_zpool_from_mount_point() to detect its filesystem name,
25499 and generate a path with `/fsname@path' syntax.
25501 2010-08-01 Robert Millan <rmh@gnu.org>
25503 Prevent accidental use of uninitialized libzfs_handle.
25505 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
25506 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
25507 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
25509 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25511 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
25512 util/grub.d/10_linux.in). Fixes Debian bug #591093.
25514 2010-08-01 Robert Millan <rmh@gnu.org>
25516 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
25518 2010-07-31 Robert Millan <rmh@gnu.org>
25520 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
25522 2010-07-31 Robert Millan <rmh@gnu.org>
25524 * kern/emu/misc.c: Add missing license header.
25526 2010-07-31 Robert Millan <rmh@gnu.org>
25528 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
25530 * include/grub/util/libnvpair.h: Include `<config.h>'.
25531 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
25532 declaring libnvpair prototypes ourselves.
25533 * include/grub/util/libzfs.h: Include `<config.h>'.
25534 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
25535 declaring libzfs prototypes ourselves.
25537 (libzfs_handle): Moved to ...
25538 * include/grub/util/misc.h (libzfs_handle): ... here.
25539 Include `<grub/util/libzfs.h>'.
25541 2010-07-30 Robert Millan <rmh@gnu.org>
25543 * include/grub/emu/misc.h: Add missing license header.
25545 2010-07-30 Robert Millan <rmh@gnu.org>
25547 Enable `grub-probe -t device' resolution on ZFS.
25549 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
25550 * include/grub/util/libnvpair.h: New file.
25551 * include/grub/util/libzfs.h: New file.
25553 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
25554 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
25555 `<grub/util/libnvpair.h>'.
25556 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
25558 (find_mount_point_from_dir): New static function.
25559 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
25561 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
25562 find_root_device_from_libzfs() before ressorting to find_root_device().
25564 * include/grub/util/misc.h (grub_util_init_libzfs): New function
25566 * util/misc.c: Include `<grub/util/libzfs.h>'.
25567 (grub_util_init_libzfs): New function.
25568 [HAVE_LIBZFS] (libzfs_handle): New global variable.
25569 [HAVE_LIBZFS] (fini_libzfs): New static function.
25570 (grub_util_init_libzfs): New function.
25571 * util/grub-probe.c (main): Call grub_util_init_libzfs().
25573 2010-07-30 Robert Millan <rmh@gnu.org>
25575 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
25576 (xmalloc, xrealloc, xstrdup, xasprintf): Add
25577 `warn_unused_result' attribute.
25578 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
25579 (grub_xasprintf, grub_xvasprintf): Likewise.
25580 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
25582 2010-07-29 Robert Millan <rmh@gnu.org>
25584 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
25585 (probe): Handle `PRINT_FS_LABEL'.
25586 (main): Handle `-t fs_label'.
25588 2010-07-29 Robert Millan <rmh@gnu.org>
25590 * configure.ac: Remove grub-mkisofs checks.
25592 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
25594 * util/ieee1275/grub-install.in: Don't use empty grub_device.
25595 Reported by: Lennart Sorensen.
25597 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25599 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
25600 prior to terminal_input/terminal_output separation. It's been over 1.5
25601 years and those versions weren't widely deployed.
25603 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
25605 * disk/raid.c (insert_array): Don't count named arrays when looking
25606 for unused array numbers.
25607 Reported and tested by: Michael Guntsche.
25609 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25611 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
25612 implementation of this so that grub-emu links again, with a note
25613 that this should support hotplugging in the future.
25615 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25617 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
25619 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25621 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
25623 (grub_loopback_close): Remove empty function.
25624 (grub_loopback_dev): Remove close method.
25626 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25628 Disable EFI cursor when the EFI console becomes inactive.
25630 * term/efi/console.c (grub_efi_console_init): New function.
25631 (grub_efi_console_fini): New function.
25632 (grub_console_term_output): Register init and fini methods.
25634 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25636 * tests/util/grub-shell-tester.in: Remove bashism and declare as
25639 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25641 * disk/loopback.c (grub_loopback): Replace filename with file.
25642 (delete_loopback): Handle new semantics.
25643 (grub_cmd_loopback): Likewise.
25644 (grub_loopback_iterate): Likewise.
25645 (grub_loopback_close): Likewise.
25647 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25649 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
25651 Reported by: Tito Keitel.
25653 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25655 * docs/grub.texi (Naming convention): Document new naming convention.
25657 2010-07-20 Vadim Solomin <vadic052@gmail.com>
25658 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25660 Generate device.map in something closer to the old ordering.
25662 * util/deviceiter.c (struct device): New declaration.
25663 (compare_file_names): Rename to ...
25664 (compare_devices): ... this. Sort by kernel name in preference to
25665 the stable by-id name, but keep the latter as a fallback comparison.
25666 Update header comment.
25667 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
25668 of `struct device' rather than of plain file names.
25670 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
25672 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
25675 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25677 * commands/acpi.c (setup_common_tables): Use sizeof instead of
25679 (setv1table): Likewise.
25681 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25683 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
25684 removing the homehost if present.
25685 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
25686 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
25687 removing the homehost if present.
25688 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
25690 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
25692 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
25693 parameter. Set its pointer target to 0.
25694 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
25695 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
25696 `data_offset' value from the superblock for 1.x metadata.
25697 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
25698 data on the device.
25699 (insert_array): Record the start sector of data on the device.
25700 (grub_raid_register): Pass start_sector parameters to
25701 grub_raid_list->detect and insert_array.
25702 * include/grub/raid.h (struct grub_raid_array): Add start_sector
25704 (struct grub_raid): Add start_sector parameter to `detect'.
25706 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
25707 __attribute__ ((packed)), leaving a comment.
25708 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
25709 (grub_mdraid_detect_09): ... here and ...
25710 (grub_mdraid_detect_1x): ... here.
25712 2010-07-20 Peter Henn <peter.henn@web.de>
25714 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
25715 chunk size and disk size, which are already given as sector counts
25716 as distinct from the 0.90 units. Fetch the correct device number
25717 from the role table instead of using the table index.
25719 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
25721 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
25722 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
25723 (WriteMostly1): New macro.
25724 Set array->name to NULL for metadata format 0.90. Add support for
25725 metadata 1.x. Fix some comments.
25726 * disk/raid.c (): Add support for name based RAID arrays. Fix a
25728 * util/getroot.c (grub_util_get_grub_dev): Add support for
25729 /dev/md/name style devices.
25731 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25733 * .bzrignore: Ignore 20_linux_xen.
25735 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
25737 * util/import_unicode.py: Remove unnecessary imports.
25739 2010-07-17 Aleš Nesrsta <starous@volny.cz>
25741 Hotplugging and USB hub support.
25743 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
25744 (grub_ohci): Likewise.
25745 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
25746 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
25747 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
25748 (GRUB_OHCI_CTRL_EDS): Likewise.
25749 (GRUB_OHCI_BULK_EDS): Likewise.
25750 (GRUB_OHCI_TDS): Likewise.
25751 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
25752 (grub_ohci_ed_phys2virt): New function.
25753 (grub_ohci_virt_to_phys): Likewise.
25754 (grub_ohci_td_phys2virt): Likewise.
25755 (grub_ohci_td_virt2phys): Likewise.
25756 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
25758 (grub_ohci_find_ed): New function.
25759 (grub_ohci_alloc_td): Likewise.
25760 (grub_ohci_free_td): Likewise.
25761 (grub_ohci_free_tds): Likewise.
25762 (grub_ohci_transfer): Use previously allocated memory.
25763 (grub_ohci_portstatus): Reset status changed bit.
25764 (grub_ohci_detect_dev): Supply status changed.
25765 (grub_ohci_fini_hw): Free memory.
25766 (grub_ohci_restore_hw): Reallocate memory.
25767 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
25768 Reset status change.
25769 (grub_uhci_detect_dev): Supply status_change.
25770 * bus/usb/usb.c (attach_hooks): New var.
25771 (grub_usb_device_attach): New function.
25772 (grub_usb_register_attach_hook_class): Likewise.
25773 (grub_usb_unregister_attach_hook_class): Likewise.
25774 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
25775 (grub_usb_add_hub): Reset connection changed bit.
25776 (attach_root_port): New function.
25777 (grub_usb_root_hub): Likewise.
25778 (poll_nonroot_hub): Likewise.
25779 (grub_usb_poll_devices): Likewise.
25780 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
25781 * disk/usbms.c (grub_usbms_open): Use device hooks.
25782 (grub_usbms_iterate) :Poll devices.
25783 (grub_usbms_finddevs): Split into ...
25784 (grub_usbms_attach): ... this ...
25785 (grub_usbms_attach): ... and this.
25786 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
25788 (grub_usb_interface): New fields attached and detach_hook.
25789 (grub_usb_attach_hook_class): New type.
25790 (grub_usb_attach_desc): New struct.
25791 (grub_usb_register_attach_hook_class): New function.
25792 (grub_usb_unregister_attach_hook_class): Likewise.
25793 (grub_usb_poll_devices): Likewise.
25794 (grub_usb_device_attach): Likewise.
25795 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
25796 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
25798 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25800 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
25801 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
25802 delta determination style. Works with most NetBSD partitions too.
25804 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25806 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
25807 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
25809 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25811 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
25813 2010-07-14 Anton Blanchard <anton@samba.org>
25815 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
25818 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
25820 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
25822 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
25824 * kern/partition.c (grub_partition_check_containment): New function to
25825 check that a partition is physically contained in a parent. Since
25826 offsets are relative (and non-negative), this reduces to checking that
25827 the partition ends before its parent.
25828 (grub_partition_map_probe): Discard out-of-range sub-partitions.
25829 (grub_partition_iterate): Likewise.
25830 * include/grub/partition.h (grub_partition_map): Slightly more detailed
25832 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
25833 partitions that start before their parent, and add debug printfs.
25835 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
25837 * Makefile.in (.SUFFIX): Spell correctly, as ...
25838 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
25839 bare module name without `.mod', e.g. `test') tried to invoke a
25842 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
25844 * README: Point to the Info manual.
25846 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
25848 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
25849 2nd superblock position from partition size.
25851 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
25853 * Makefile.in (MAINTAINER_CLEANFILES): Remove
25854 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
25855 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
25858 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25860 Restructure SCSI .id handling.
25861 Reported and tested by: Aleš Nesrsta.
25863 * disk/ata.c (grub_atapi_close): Removed. All users updated.
25864 (grub_atapi_dev): Changed .name to "ata". New field .id.
25865 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
25866 (grub_usbms_dev): New field .id.
25867 * disk/scsi.c (grub_scsi_iterate): Generate name.
25868 (grub_scsi_open): Parse name.
25869 * include/grub/scsi.h (grub_make_scsi_id): New function.
25870 (grub_scsi_dev): Change iterate and open to number instead of naming
25871 busses. All users updated.
25872 (grub_scsi): Remove name. Add .bus.
25874 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25876 * commands/help.c (grub_cmd_help): Fix a typo.
25878 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25880 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
25881 Reported and tested by: Colin Watson.
25883 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25885 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
25888 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
25890 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
25892 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
25894 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
25897 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25899 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
25900 and disk/raid6_recover.c.
25901 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
25902 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
25904 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25906 * term/gfxterm.c (repaint_schedulded): Rename to ...
25907 (repaint_scheduled): ... this. Update all callers.
25908 (repaint_was_schedulded): Rename to ...
25909 (repaint_was_scheduled): ... this. Update all callers.
25911 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25913 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
25914 which we expect to be handled by upper layers.
25916 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
25918 * bus/usb/usbhub.c: #include time.h header.
25920 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25922 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
25923 entry_name also for entries without stat blocks (e.g. ".."); fixes
25924 corruption of the first entry in a directory.
25926 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25928 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
25929 after setting gfxterm as the active terminal. GRUB_BACKGROUND
25930 doesn't work otherwise.
25932 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
25934 * docs/grub.texi (Features): Update list of supported file systems.
25935 (GNU/Linux): Update for GRUB 2.
25936 (Serial terminal): Remove mention of --disable-serial, which was a
25937 GRUB Legacy configure option. Update instructions to use
25938 `terminal_input' and `terminal_output' rather than `terminal'.
25939 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
25940 configuration' and `Installing GRUB using grub-install'.
25941 (Menu entry editor): Update for GRUB 2.
25942 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
25943 Document new -a, -u, and -v options.
25944 (initrd): New section.
25945 (initrd16): New section.
25946 (linux): New section.
25947 (linux16): New section.
25948 (search): The `var' argument to `--set' is optional.
25949 (GRUB only offers a rescue shell): Go into a little more detail on
25952 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
25954 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
25956 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
25958 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
25959 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
25961 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
25963 * util/i386/pc/grub-setup.c (setup): Rename prefix to
25964 install_prefix, in line with install_dos_part and install_bsd_part.
25965 Add new prefix variable, which is copied to install_prefix after
25966 comparing core.img in memory with the one read from disk in the
25967 no-embedding case, and use that rather than overwriting
25968 install_prefix immediately when installing to a partition.
25969 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
25972 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
25974 * configure.ac: Avoid == in test command, it's not portable.
25975 * util/grub.d/30_os-prober.in: Likewise.
25977 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
25979 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
25981 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
25983 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
25984 multiple (top-level) partmaps.
25986 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25988 * util/i386/efi/grub-install.in: Don't use empty grub_device.
25989 Reported by: Tino Keitel.
25991 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25993 Bidi and diacritics support.
25995 * Makefile.in (widthspec.bin): New target.
25996 (widthspec.h): Likewise.
25997 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
25998 * autogen.sh: Generate unidata.c.
25999 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26000 * commands/ls.c (grub_ls_list_devices): Likewise.
26001 (grub_ls_list_files): Likewise.
26002 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26003 (grub_mini_cmd_lsmod): Likewise.
26004 * commands/read.c: Likewise.
26005 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26006 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26007 * lib/arg.c (grub_arg_show_help): Likewise.
26008 * lib/crypto.c (grub_password_get): Likewise.
26009 * normal/auth.c (grub_username_get): Likewise.
26010 * normal/misc.c (grub_normal_print_device_info): Likewise.
26011 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26012 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26013 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26014 (normal/charset.c_DEPENDENCIES): New variable.
26015 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26016 (pkglib_MODULES): Remove charset.mod.
26017 (charset_mod_SOURCES): Removed.
26018 (charset_mod_CFLAGS): Likewise.
26019 (charset_mod_LDFLAGS): Likewise.
26020 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26021 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26023 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26024 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26025 (kernel_img_HEADERS): Add terminfo.h.
26026 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26027 Fill ->font. Reverse ascii bitmaps.
26028 (grub_font_get_xheight): New function.
26029 * font/font.c (grub_font_get_string_width): Moved from here ...
26030 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26031 * font/font.c (grub_font_draw_string): Moved from here ...
26032 * gfxmenu/font.c (grub_font_draw_string): ... here.
26033 * font/font.c (grub_font_dup_glyph): New function.
26034 (grub_font_blit_glyph): Likewise.
26035 (grub_font_blit_glyph_mirror): Likewise.
26036 (blit_comb): Likewise.
26037 (grub_font_construct_dry_run): Likewise.
26038 (grub_font_get_constructed_device_width): Likewise.
26039 (grub_font_construct_glyph): Likewise.
26040 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26041 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26042 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26043 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26044 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26045 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26046 (grub_font_get_xheight): New proto.
26047 (grub_font_get_constructed_device_width): Likewise.
26048 (grub_font_construct_glyph): Likewise.
26049 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26050 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26051 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26052 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26053 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26054 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26055 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26056 (grub_console_getcharwidth): Likewise.
26057 * include/grub/misc.h (grub_xputs): New proto.
26058 (grub_puts): Inlined.
26059 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26060 (grub_normal_get_line_counter): Removed.
26061 (grub_install_newline_hook): Likewise.
26062 (grub_normal_get_char_counter): New proto.
26063 (grub_normal_reset_more): Likewise.
26064 (grub_xputs_normal): Likewise.
26065 * include/grub/powerpc/ieee1275/console.h: Removed.
26066 * include/grub/sparc64/ieee1275/console.h: Likewise.
26067 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26068 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26069 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26070 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26071 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26072 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26073 (grub_term_input): Pass reference to self. All users updated.
26074 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26075 Pass reference to self. New fields normal_color, highlight_color and
26076 data. All users updated.
26077 (grub_putchar): Removed.
26078 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26079 (grub_unicode_estimate_width): New function.
26080 (grub_term_getcharwidth): Add defaults.
26081 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26082 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26083 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26084 (grub_cls): Remove EXPORT_FUNC.
26085 (grub_setcolorstate): Inline.
26086 (grub_newline_hook): Removed.
26087 * include/grub/terminfo.h: Rewritten. All users updated.
26088 * include/grub/unicode.h: New file.
26089 * include/grub/video.h (grub_video_signed_rect): New type.
26090 * kern/emu/console.c (grub_console_highlight_color): Removed.
26091 (grub_console_normal_color): Likewise.
26092 (grub_console_standard_color): Made static.
26093 (grub_ncurses_putchar): Remove mapping.
26094 (grub_ncurses_getcharwidth): Removed.
26095 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26096 (grub_ncurses_setcolor): Removed.
26097 (grub_ncurses_getcolor): Likewise.
26098 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26099 (grub_console_putchar): ... this.
26100 (grub_console_putchar): Handle argument difference.
26101 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26102 console_init_early and console_init_lately.
26103 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26104 * kern/misc.c (grub_puts): Removed.
26105 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26106 (grub_vsnprintf_real): Remove str = NULL support.
26107 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26108 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26109 * kern/term.c (grub_putcode): Renamed to ...
26110 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26111 (grub_putchar): Removed.
26112 (grub_xputs_dumb): New function.
26113 (grub_xputs): New variable.
26114 * lib/charset.c: Move from here ...
26115 * normal/charset.c: ... to here.
26116 (grub_ucs4_to_utf8): New function.
26117 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26118 (join_types): New variable.
26119 (unpack_join): New function.
26120 (bidi_types): New variable.
26121 (unpack_bidi): New function.
26122 (get_bidi_type): Likewise.
26123 (get_join_type): Likewise.
26124 (is_mirrored): Likewise.
26125 (grub_unicode_get_comb_type): Likewise.
26126 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26127 (is_type_after): Likewise.
26128 (grub_unicode_aglomerate_comb): Likewise.
26129 (bidi_line_wrap): Likewise.
26130 (grub_bidi_line_logical_to_visual): Likewise.
26131 (grub_bidi_logical_to_visual): Likewise.
26132 (grub_unicode_mirror_code): Likewise.
26133 (grub_unicode_shape_code): Likewise.
26134 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26135 Don't use grub_putchar.
26136 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26137 (grub_normal_reader_init): Likewise.
26138 (grub_xputs_saved): New variable.
26139 (GRUB_MOD_INIT): Set grub_xputs.
26140 (GRUB_MOD_FINI): Restore grub_xputs.
26141 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26142 (menu_init): Avoid printing gfxmenu error.
26143 (show_menu): Use grub_normal_get_char_counter.
26144 * normal/menu_entry.c (update_screen): Fix out-of-array.
26145 (complete): Avoid NULL dereferencing.
26146 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26147 * normal/menu_text.c (print_spaces): Removed.
26148 (grub_print_ucs4): Likewise.
26149 (grub_print_message_indented): Use grub_print_ucs4.
26150 (print_message): Use grub_putcode.
26151 (print_entry): Hanlde diacritics.
26152 * normal/term.c (term_state): New type.
26153 (grub_more_lines): Removed.
26154 (term_states): New variable.
26155 (grub_normal_line_counter): Renamed to ..
26156 (grub_normal_char_counter): ...this. All users updated.
26157 (grub_normal_get_line_counter): Renamed to ...
26158 (grub_normal_get_char_counter): ... this.
26159 (grub_normal_reset_more): New function.
26160 (process_newline): Removed.
26161 (print_more): New function.
26162 (grub_install_newline_hook): Removed.
26163 (map_code): New function.
26164 (grub_puts_terminal): Use grub_print_ucs4.
26165 (putglyph): New function.
26166 (putcode_real): Likewise.
26167 (grub_putcode): Use putcode_real.
26168 (get_maxwidth): New function.
26169 (get_startwidth): Likewise.
26170 (print_ucs4_terminal): Likewise.
26171 (find_term_state): Likewise.
26172 (put_glyphs_terminal): Likewise.
26173 (print_backlog): Likewise.
26174 (print_ucs4_real): Likewise.
26175 (grub_print_ucs4): Likewise.
26176 (grub_xputs_normal): Likewise.
26177 * term/efi/console.c (grub_console_putchar): Output diacritics.
26178 (grub_console_getcharwidth): Removed.
26179 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26180 * term/gfxterm.c (clear_char): Free chars.
26181 (scroll_up): Avoid leaking memory.
26182 (grub_gfxterm_putchar): Support diacritics.
26183 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26184 * term/i386/pc/console.c (grub_console_term_output): Declare as
26185 GRUB_TERM_CODE_TYPE_VGA.
26186 * term/i386/pc/vga.c (grub_vga_term): Declare as
26187 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26188 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26189 GRUB_TERM_CODE_TYPE_VGA.
26190 * term/i386/vga_common.c (map_char): Removed.
26191 (grub_console_putchar): Likewise.
26192 (grub_console_getcharwidth): Likewise.
26193 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26194 (colors): Reordered to match terminfo.
26195 (grub_ofconsole_normal_color): Removed.
26196 (grub_ofconsole_writeesc): Likewise.
26197 (grub_ofconsole_highlight_color): Likewise.
26198 (grub_ofconsole_getcharwidth): Likewise.
26199 (grub_ofconsole_setcolorstate): Likewise.
26200 (grub_ofconsole_setcolor): Likewise.
26201 (grub_ofconsole_getcolor): Likewise.
26202 (grub_ofconsole_readkey): Renamed to ...
26203 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26205 (grub_ofconsole_checkkey): Removed.
26206 (grub_ofconsole_getkey): Likewise.
26207 (grub_ofconsole_getxy): Likewise.
26208 (grub_ofconsole_gotoxy): Likewise.
26209 (grub_ofconsole_cls): Likewise.
26210 (grub_ofconsole_refresh): Likewise.
26211 (grub_ofconsole_terminfo_input): New struct.
26212 (grub_ofconsole_terminfo_output): Likewise.
26213 (grub_ofconsole_term_input): Use terminfo.
26214 (grub_ofconsole_term_output): Likewise.
26215 (grub_console_init): Split into ...
26216 (grub_console_init_early): ...this and ...
26217 (grub_console_init_lately): ...this. Use terminfo.
26218 (grub_ofconsole_putchar): Renamed to ...
26219 (put): ... this. Remove mapping.
26220 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26221 * term/serial.c: Simplify using terminfo.
26224 (keep_track): Likewise.
26225 (registered): Likewise.
26226 (input_buf): Likewise.
26227 (npending): Likewise.
26228 (serial_translate_key_sequence): Likewise.
26229 (fill_input_buf): Likewise.
26230 (grub_serial_checkkey): Likewise.
26231 (grub_serial_getkey): Likewise.
26232 (grub_serial_getxy): Likewise.
26233 (grub_serial_gotoxy): Likewise.
26234 (grub_serial_putchar): Likewise.
26235 (grub_serial_cls): Likewise.
26236 (grub_serial_setcolorstate): Likewise.
26237 (grub_serial_setcursor): Likewise.
26238 (serial_hw_init): Use serial_hw_fetch.
26239 (grub_serial_terminfo_input): New variable.
26240 (grub_serial_terminfo_output): Likewise.
26241 (grub_serial_term_input): Use terminfo.
26242 (grub_serial_term_output): Likewise.
26243 * term/terminfo.c (putstr): Use put.
26244 (grub_terminfo_all_free): New function
26245 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26246 (grub_terminfo_output_register): New function.
26247 (grub_terminfo_output_unregister): Likewise.
26248 (grub_terminfo_getxy): Likewise.
26249 (grub_terminfo_readkey): Likewise.
26250 (grub_terminfo_checkkey): Likewise.
26251 (grub_terminfo_getkey): Likewise.
26252 (grub_terminfo_input_init): Likewise.
26253 (print_terminfo): Likewise.
26254 (grub_cmd_terminfo): Handle encoding.
26255 (grub_terminfo_gotoxy): Track position.
26256 (grub_terminfo_cls): Likewise.
26257 (grub_terminfo_putchar): Likewise.
26258 (grub_terminfo_setcolorstate): Handle colors
26259 (grub_terminfo_cursor_on): This ...
26260 (grub_terminfo_cursor_off): ... and this merged into ...
26261 (grub_terminfo_setcursor): ... this.
26262 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26263 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26264 * unicode/BidiMirroring.txt: Likewise.
26265 * unicode/UnicodeData.txt: Likewise.
26266 * unicode/COPYING: Likewise.
26267 * util/grub-editenv.c (grub_putchar): Removed.
26268 (grub_xputs_real): New function.
26269 (grub_xputs): New variable.
26270 * util/grub-fstest.c (grub_putchar): Removed.
26271 (grub_xputs_real): New function.
26272 (grub_xputs): New variable.
26273 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26274 (grub_xputs_real): New function.
26275 (grub_xputs): New variable.
26276 * util/grub-probe.c (grub_putchar): Removed.
26277 (grub_xputs_real): New function.
26278 (grub_xputs): New variable.
26279 * util/grub-script-check.c (grub_putchar): Removed.
26280 (grub_xputs_real): New function.
26281 (grub_xputs): New variable.
26282 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26283 (grub_xputs_real): New function.
26284 (grub_xputs): New variable.
26285 * util/import_unicode.py: New file.
26286 * util/grub-mkfont.c (ft_errmsgs): New array.
26287 (grub_glyph_info): Make bitmap a pointer.
26288 (file_formats): New type WIDTH_SPEC.
26289 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26290 (options): Add width-spec.
26292 (add_char): Renamed to ...
26293 (add_glyph): ... this.
26294 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26295 (glyph_replace): New type.
26296 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26297 (add_char): New function.
26298 (add_subst): Likewise.
26299 (process_cursive): Likewise.
26300 (add_font): Handle GSUB.
26301 (write_font_width_spec): New function.
26302 (main): Sort glyphs.
26303 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26304 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26305 * kern/term.c (grub_cls): Moved from here...
26306 * normal/term.c (grub_cls): ... here.
26308 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26310 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26311 suitable for using within the format argument of printf when
26312 converting grub_size_t.
26313 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26314 "x" to convert grub_size_t arguments.
26316 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26318 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26320 (list_get_minimal_size): Take selection box into account.
26322 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26324 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26327 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26329 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26330 devices when iterating over /dev/disk/by-id; they will be handled
26331 later if appropriate, which they aren't always (e.g. LVM).
26333 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26335 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26336 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26338 (grub_halt): Likewise.
26339 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26341 (grub_halt): Don't return, even if all of shut-down, power-off, and
26344 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26346 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26347 arguments, not three.
26349 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26351 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26352 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26353 LVM-on-RAID is handled correctly.
26355 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26357 * docs/grub.texi (Changes from GRUB Legacy): New section.
26358 (Future): Fix typo.
26360 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26362 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26363 grub.d/README accidentally ends up executable for one reason or
26364 another. Ignore it.
26366 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26368 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26369 (gpt_partition_map_iterate): Support non-512B sectors.
26371 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26373 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26374 Tested by: Seth Goldberg.
26376 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26378 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
26379 Properly align mbi.
26380 Reported by: Seth Goldberg.
26382 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26384 * util/grub-mkrescue.in: Avoid module duplication.
26386 2010-07-01 Sean Finney <seanius@seanius.net>
26388 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
26390 2010-07-01 Sean Finney <seanius@seanius.net>
26392 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
26394 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26396 * disk/lvm.c (grub_lvm_checkvalue): New function.
26397 (grub_lvm_check_flag): Likewise.
26399 2010-07-01 Robert Millan <rmh@gnu.org>
26401 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
26402 Support 'p' as partition separator on kernel of FreeBSD (used
26404 (grub_util_biosdisk_get_grub_dev): Likewise.
26406 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26408 Yeeloong firmware port.
26410 * boot/mips/yeeloong/fwstart.S: New file.
26411 * bus/cs5536.c (gpiodump): New const.
26412 (set_io_space): New function.
26413 (set_iod): Likewise.
26414 (set_p2d): Likewise.
26415 (grub_cs5536_init_geode): Likewise.
26416 * commands/mips/yeeloong/lsspd.c: New file.
26417 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
26418 (serial_mod_SOURCES): New variable.
26419 (serial_mod_CFLAGS): Likewise.
26420 (serial_mod_LDFLAGS): Likewise.
26421 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
26422 term/terminfo.c and term/tparm.c.
26423 (pkglib_IMAGES): Add fwstart.img.
26424 (fwstart_img_SOURCES): New variable.
26425 (fwstart_img_CFLAGS): Likewise.
26426 (fwstart_img_ASFLAGS): Likewise.
26427 (fwstart_img_LDFLAGS): Likewise.
26428 (fwstart_img_FORMAT): Likewise.
26429 (pkglib_MODULES): Add lsspd.mod.
26430 (lsspd_mod_SOURCES): New variable.
26431 (lsspd_mod_CFLAGS): Likewise.
26432 (lsspd_mod_LDFLAGS): Likewise.
26433 (pkglib_MODULES): Add halt.mod.
26434 (halt_mod_SOURCES): New variable.
26435 (halt_mod_CFLAGS): Likewise.
26436 (halt_mod_LDFLAGS): Likewise.
26437 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
26438 (serial_mod_SOURCES): Removed.
26439 (serial_mod_CFLAGS): Likewise.
26440 (serial_mod_LDFLAGS): Likewise.
26441 * disk/ata.c (check_device): New function.
26442 (grub_ata_device_initialize): Use check_device.
26443 (grub_ata_iterate): Recheck devices.
26444 (grub_ata_open): Likewise.
26445 (grub_atapi_iterate): Likewise.
26446 (grub_atapi_open): Likewise.
26447 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
26448 (GRUB_ATA_CH1_PORT1): Likewise.
26449 (GRUB_ATA_CH0_PORT2): Likewise.
26450 (GRUB_ATA_CH1_PORT2): Likewise.
26451 * include/grub/mips/loongson.h: New file.
26452 * include/grub/mips/yeeloong/ec.h: Likewise.
26453 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
26454 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
26455 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
26456 * include/grub/misc.h (grub_halt): Declare as noreturn.
26457 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
26458 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
26459 (UART_ENABLE_FIFO_TRIGGER1): New definition.
26460 (UART_ENABLE_DTRRTS): Likewise.
26461 (UART_ENABLE_MODEM): Removed.
26462 (UART_ENABLE_OUT2): New const.
26463 * include/grub/term.h (grub_term_register_input_active): New function.
26464 (grub_term_register_output_active): Likewise.
26465 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
26467 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
26468 (init_pci): New function.
26469 (grub_machine_init): Execute platform init when firmware. Init serial.
26470 (grub_halt): Implement.
26471 (grub_exit): Likewise.
26472 (grub_reboot): Likewise.
26473 * term/serial.c (serial_hw_init): Update macros.
26474 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
26475 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
26476 (image_targets): New target mipsel-yeeloong-flash.
26477 (generate_image): Support IMAGE_YEELOONG_FLASH.
26478 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
26479 (grub_video_sm712_setup): Init card.
26480 (grub_video_sm712_set_palette): Removed.
26481 * video/sm712_init.c: New file.
26483 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
26485 * Makefile.in (install-local): Temporarily prepend $(builddir) to
26486 PATH when running help2man and then run it on the unadorned
26487 executable names, rather than passing $(builddir)/* paths to
26488 help2man. This avoids the build directory ending up in generated
26491 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
26493 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
26494 to avoid accidents when debugging with 'sh -x'.
26495 * util/grub-mkrescue.in: Likewise.
26496 * util/grub.d/00_header.in: Likewise.
26497 * util/grub.d/10_hurd.in: Likewise.
26498 * util/grub.d/10_kfreebsd.in: Likewise.
26499 * util/grub.d/10_linux.in: Likewise.
26500 * util/grub.d/10_netbsd.in: Likewise.
26501 * util/grub.d/10_windows.in: Likewise.
26502 * util/grub.d/20_linux_xen.in: Likewise.
26503 * util/grub.d/30_os-prober.in: Likewise.
26504 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26506 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
26508 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
26509 last character in the buffer.
26510 Reported by: Vladimir Serbinenko.
26512 2010-06-29 Robert Millan <rmh@gnu.org>
26514 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
26515 (Command-line and menu entry commands): Document `badram' command.
26517 2010-06-28 Robert Millan <rmh@gnu.org>
26519 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
26520 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
26521 command using ${GRUB_BADRAM} as parameter.
26523 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26525 * docs/grub.texi (Device map): New section.
26526 (Themes): New section (stub).
26527 * Makefile.in (docs/grub.info): The info documentation now builds
26528 without errors. Make sure it stays that way.
26530 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26532 Use normal parser for menu entries.
26533 Reported by: Thomas Frauendorfer
26535 * include/grub/parser.h (grub_parser_execute): Don't export.
26536 * normal/menu.c (grub_menu_execute_entry_real): New function.
26537 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
26539 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26541 * docs/grub.texi (Embedded configuration): New section (replacing
26542 old "Preset Menu" stub).
26543 (Images): New section.
26544 (configfile): Note that any menu entries defined in `file' are shown
26547 2010-06-28 Josh Triplett <josh@joshtriplett.org>
26549 * mmap/i386/pc/mmap_helper.S: Set CF on return.
26551 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26553 * util/grub-install.in: Add --debug-image= option.
26555 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26557 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
26560 * util/deviceiter.c (check_device): Rename to ...
26561 (check_device_readable_unique): ... this. Update all callers.
26562 Maintain and check a list of which devices (by canonicalized name)
26563 have already been seen.
26564 (clear_seen_devices): New function.
26565 (compare_file_names) [__linux__]: New function.
26566 (grub_util_iterate_devices): Clear the list of seen devices on exit
26567 and (just in case) on entry.
26568 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
26569 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
26570 seen-devices list, superseded by general code in check_device.
26572 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26574 * commands/cat.c (options): New variable.
26575 (grub_cmd_cat): Parse options. If the --dos option is given, print
26576 DOS-style "\r\n" line endings as simple newlines (Debian bug
26578 (GRUB_MOD_INIT): Use extcmd.
26579 (GRUB_MOD_FINI): Likewise.
26580 * docs/grub.texi (cat): Document --dos.
26582 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26584 XEN with Linux grub-mkconfig support.
26586 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
26587 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
26588 GRUB_CMDLINE_XEN_DEFAULT.
26589 * util/grub.d/20_linux_xen.in: New file.
26591 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26593 Initialise VGA video on qemu ourselves.
26595 * boot/i386/qemu/boot.S: Don't call 0xc000.
26596 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
26597 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
26598 (kernel_img_HEADERS): Add pci.h.
26599 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
26600 * configure.ac: Force unifont on qemu and yeeloong.
26601 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
26602 (grub_vga_palette_write): Use correct register.
26603 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
26604 Call grub_qemu_init_cirrus.
26605 * kern/i386/qemu/init.c: New file.
26606 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
26608 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
26610 2010-06-26 Pavel Roskin <proski@gnu.org>
26612 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
26615 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
26617 * docs/grub.texi (Simple configuration): Explain that
26618 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
26619 set to `true' to disable their respective recovery entries, not
26622 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
26624 Make the `source' command slightly faster.
26626 * normal/main.c (grub_normal_execute): Don't re-read list files when
26629 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
26631 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
26632 field position and mask size to red fields from mode_info, not
26634 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
26635 Remove redundant tag->common.framebuffer_type assignment.
26636 Reported by: Seth Goldberg.
26638 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
26640 Sync up other versions of the Linux loader with Robert Millan's
26641 change of 2010-01-09, "Make loader output a bit more user-friendly".
26643 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
26645 (grub_cmd_linux): Likewise.
26646 (grub_cmd_initrd): Likewise.
26647 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
26648 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
26650 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
26652 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
26653 larger than MEMORY_MAP_SIZE.
26655 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
26657 Fix parallel build.
26659 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
26661 * script/parser.y: #include grub_script.tab.h header.
26663 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26665 Support >3GiB and <16MiB RAM in i386-qemu.
26667 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
26668 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
26669 (grub_lower_mem): Removed.
26670 (grub_upper_mem): Likewise.
26671 (mem_size): Made static.
26672 (above_4g): New variable.
26673 (grub_machine_mmap_init): Detect small mem_size and above_4g.
26674 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
26677 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26679 Cirrus 5446 and Bochs video cards support.
26681 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
26683 (video_cirrus_mod_SOURCES): New variable.
26684 (video_cirrus_mod_CFLAGS): Likewise.
26685 (video_cirrus_mod_LDFLAGS): Likewise.
26686 (video_bochs_mod_SOURCES): Likewise.
26687 (video_bochs_mod_CFLAGS): Likewise.
26688 (video_bochs_mod_LDFLAGS): Likewise.
26689 * include/grub/vga.h: New file.
26690 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
26691 (grub_video_fb_set_page_t): New type.
26692 (grub_video_fb_setup): New prototype.
26693 (grub_video_fb_swap_buffers): Likewise.
26694 (grub_video_fb_get_info_and_fini): Likewise.
26695 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
26696 (CRTC_DATA_PORT): Likewise.
26697 (CRTC_CURSOR): Likewise.
26698 (CRTC_CURSOR_ADDR_HIGH): Likewise.
26699 (CRTC_CURSOR_ADDR_LOW): Likewise.
26700 (CRTC_CURSOR_DISABLE): Likewise.
26701 (update_cursor): Use grub_vga_cr_write.
26702 (grub_vga_text_setcursor): Likewise.
26703 * video/bochs.c: New file.
26704 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
26705 (palette): Likewise.
26706 (palette_size): Likewise.
26707 (framebuffer): New variable.
26708 (grub_video_fb_init): Use 'framebuffer'.
26709 (grub_video_fb_fini): Likewise.
26710 (grub_video_fb_get_info): Likewise.
26711 (grub_video_fb_get_palette): Likewise.
26712 (grub_video_fb_set_palette): Likewise.
26713 (grub_video_fb_set_viewport): Likewise.
26714 (grub_video_fb_get_viewport): Likewise.
26715 (grub_video_fb_map_color): Likewise.
26716 (grub_video_fb_map_rgb): Likewise.
26717 (grub_video_fb_map_rgba): Likewise.
26718 (grub_video_fb_unmap_color): Likewise.
26719 (grub_video_fb_unmap_color_int): Likewise.
26720 (grub_video_fb_fill_rect): Likewise.
26721 (grub_video_fb_blit_bitmap): Likewise.
26722 (grub_video_fb_blit_render_target): Likewise.
26723 (grub_video_fb_scroll): Likewise.
26724 (grub_video_fb_create_render_target): Likewise.
26725 (grub_video_fb_doublebuf_blit_init): Likewise.
26726 (grub_video_fb_set_active_render_target): Handle doublebuffering.
26727 (doublebuf_pageflipping_update_screen): New function.
26728 (doublebuf_pageflipping_init): Likewise.
26729 (grub_video_fb_setup): Likewise.
26730 (grub_video_fb_swap_buffers): Likewise.
26731 (grub_video_fb_get_info_and_fini): Likewise.
26732 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
26734 (doublebuf_pageflipping_commit): Restructured into ...
26735 (doublebuf_pageflipping_set_page): ... this.
26736 (doublebuf_pageflipping_update_screen): Removed.
26737 (doublebuf_pageflipping_init): Likewise.
26738 (double_buffering_init): Likewise.
26739 (grub_video_vbe_setup): Use grub_video_fb_setup.
26740 (grub_video_vbe_swap_buffers): Removed.
26741 (grub_video_vbe_set_active_render_target): Likewise.
26742 (grub_video_vbe_get_active_render_target): Likewise.
26743 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
26744 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
26745 grub_video_fb_set_active_render_target and
26746 grub_video_fb_get_active_render_target.
26747 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
26748 (SEQUENCER_DATA_PORT): Likewise.
26749 (MAP_MASK_REGISTER): Likewise.
26750 (CRTC_ADDR_PORT): Likewise.
26751 (CRTC_DATA_PORT): Likewise.
26752 (START_ADDR_HIGH_REGISTER): Likewise.
26753 (START_ADDR_LOW_REGISTER): Likewise.
26754 (GRAPHICS_ADDR_PORT): Likewise.
26755 (GRAPHICS_DATA_PORT): Likewise.
26756 (READ_MAP_REGISTER): Likewise.
26757 (INPUT_STATUS1_REGISTER): Likewise.
26758 (INPUT_STATUS1_VERTR_BIT): Likewise.
26759 (get_map_mask): Use grub_vga_sr_read.
26760 (set_map_mask): Use grub_vga_sr_write.
26761 (set_read_map): Use grub_vga_gr_write.
26762 (set_start_address): Use grub_vga_cr_write.
26763 * video/sm712.c (framebuffer): Remove leftover fields.
26765 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
26767 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
26768 setting GRUB_VIDEO_BACKEND. Make it available as a user override
26769 instead. Replace the gfxterm backend check with a check that
26770 ${GRUB_PREFIX}/video.lst is non-empty.
26771 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
26773 (load_video): New generated function. Call it before loading
26774 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
26775 * util/grub.d/10_linux.in (linux_entry): Call load_video.
26776 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
26777 * docs/grub.texi (Simple configuration): Document
26778 GRUB_VIDEO_BACKEND.
26780 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26782 Use video functions in linux and xnu loaders.
26784 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
26785 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
26786 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
26787 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
26788 loader/i386/pc/linux.c.
26789 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
26790 (find_line_len): Removed.
26791 (find_framebuf): Likewise.
26792 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
26793 * loader/i386/efi/xnu.c: Removed.
26794 * loader/i386/pc/xnu.c: Moved from here...
26795 * loader/i386/xnu.c: ...here.
26797 Enable priorities in video drivers.
26799 * include/grub/video.h (grub_video_adapter_prio_t): New type.
26800 (grub_video_adapter): New field prio.
26801 (grub_video_register): Respect prio when inserting.
26802 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
26803 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
26804 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
26805 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
26806 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
26807 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
26808 * video/sm712.c (grub_video_sm712_adapter): Likewise.
26812 * include/grub/video.h (grub_video_driver_id_t): New value
26813 GRUB_VIDEO_DRIVER_SDL.
26814 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
26816 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26818 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
26819 argument to printf.
26820 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26822 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26824 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
26825 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26827 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26829 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
26830 directly, and recommend grub-install instead.
26831 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26833 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26835 Fix i386-pc prefix handling with nested partitions (Debian bug
26836 #585068). Note that the case where the core image is booted using
26837 multiboot and relocated from its original location still requires
26840 * kern/i386/pc/init.c (make_install_device): If the prefix starts
26841 with "(,", fill the boot drive in between those two characters, but
26842 expect that a full partition specification including partition map
26844 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
26845 specified, write a prefix without the drive name but including a
26846 full partition specification.
26848 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
26850 * util/grub-mkconfig.in: Ignore non-option arguments, for
26851 compatibility with older versions (before 2010-06-12) which did the
26852 same. In particular, this makes it easier to ship an update-grub
26853 wrapper which is compatible with that used with GRUB Legacy (Debian
26856 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26858 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
26859 for manual page generation.
26861 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26863 * po/POTFILES: Remove leftover commands/handler.c.
26865 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
26867 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
26868 left this script non-functional.
26870 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
26872 * docs/man/grub-emu.h2m: New file.
26874 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
26876 * docs/grub.texi (Commands): Document reduced command set in rescue
26878 (cpuid): New section.
26880 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
26882 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
26883 new partition naming style.
26884 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
26886 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
26888 Add "-o grub.iso" like cmdline options support.
26890 * util/grub-install.in: Improve cmdline option parsing.
26891 * util/grub-mkconfig.in: Likewise.
26892 * util/grub-mkrescue.in: Likewise.
26893 * util/grub-reboot.in: Likewise.
26894 * util/grub-set-default.in: Likewise.
26895 * util/i386/efi/grub-install.in: Likewise.
26896 * util/ieee1275/grub-install.in: Likewise.
26897 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26899 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
26901 * .bzrignore: Ignore 41_custom.
26903 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
26905 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
26907 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
26909 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
26910 prototype declarations.
26912 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
26913 generating fs, partmap, and video lists.
26914 * include/grub/fs.h (grub_fs_register): Omit prototype if
26915 GRUB_LST_GENERATOR is defined.
26916 * include/grub/partition.h (grub_partition_map_register): Likewise.
26917 * include/grub/video.h (grub_video_register): Likewise.
26919 2010-06-12 Javier Martín <lordhabbit@gmail.com>
26921 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
26923 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
26925 * util/grub-mkrescue.in: Support --xorriso argument.
26927 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26929 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
26930 Suggested by: Thomas Schmitt.
26932 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26934 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
26935 Suggested by: Thomas Schmitt.
26937 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26939 custom.cfg support.
26941 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
26942 * util/grub.d/41_custom.in: New file.
26944 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
26946 * util/grub-mkrescue.in (make_image): Remove sh module, which has
26947 been merged back into normal.
26949 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
26951 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
26952 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
26954 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
26956 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
26957 when generating manual pages.
26958 * docs/man/grub-bin2h.h2m: New file.
26959 * docs/man/grub-editenv.h2m: New file.
26960 * docs/man/grub-fstest.h2m: New file.
26961 * docs/man/grub-install.h2m: New file.
26962 * docs/man/grub-macho2img.h2m: New file.
26963 * docs/man/grub-mkconfig.h2m: New file.
26964 * docs/man/grub-mkdevicemap.h2m: New file.
26965 * docs/man/grub-mkfont.h2m: New file.
26966 * docs/man/grub-mkimage.h2m: New file.
26967 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
26968 * docs/man/grub-mkrelpath.h2m: New file.
26969 * docs/man/grub-mkrescue.h2m: New file.
26970 * docs/man/grub-ofpathname.h2m: New file.
26971 * docs/man/grub-pe2elf.h2m: New file.
26972 * docs/man/grub-probe.h2m: New file.
26973 * docs/man/grub-reboot.h2m: New file.
26974 * docs/man/grub-script-check.h2m: New file.
26975 * docs/man/grub-set-default.h2m: New file.
26976 * docs/man/grub-setup.h2m: New file.
26978 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
26980 Use FOR_* macros instead of *_iterate whenever possible.
26982 * commands/handler.c: Removed.
26983 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
26984 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
26985 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26986 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
26987 (grub_probe_SOURCES): Remove kern/parser.c.
26988 (util/grub-script-check.c_DEPENDENCIES): Removed.
26989 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
26990 and grub_script_check_init.c.
26991 (grub_script_check_init.lst): Removed.
26992 (grub_script_check_init.h): Likewise.
26993 (grub_script_check_init.c): Likewise.
26994 (pkglib_MODULES): Remove handler.mod and sh.mod.
26995 (handler_mod_SOURCES): Removed.
26996 (handler_mod_CFLAGS): Likewise.
26997 (handler_mod_LDFLAGS): Likewise.
26998 (normal_mod_SOURCES): Remove normal/handler.c.
26999 Add script/main.c, script/script.c, script/execute.c,
27000 script/function.c, script/lexer.c, grub_script.tab.c
27001 and grub_script.yy.c.
27002 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27003 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27004 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27005 (grub_setup_SOURCES): Remove kern/parser.c.
27006 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27007 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27008 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27009 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27010 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27011 (grub_setup_SOURCES): Remove kern/parser.c.
27012 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27013 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27014 * include/grub/command.h (grub_command_iterate): Removed.
27015 (FOR_COMMANDS): New macro.
27016 * include/grub/dl.h (grub_dl): New member next.
27017 (grub_dl_iterate): Removed.
27018 (grub_dl_head): New variable declaration.
27019 (FOR_DL_MODULES): New macro.
27020 * include/grub/fs.h: Include list.h.
27021 (grub_fs): Make next first element.
27022 (grub_fs_list): New variable declaration.
27023 (grub_fs_register): Make inline.
27024 (grub_fs_unregister): Likewise.
27025 (grub_fs_iterate): Removed.
27026 (FOR_FILESYSTEMS): New macro.
27027 * include/grub/handler.h: Removed.
27028 * include/grub/list.h (grub_list_hook_t): Removed.
27029 (grub_list_test_t): Likewise.
27030 (grub_list_pop): Likewise.
27031 (grub_list_iterate): Likewise.
27032 (grub_list_insert): Likewise.
27033 (FOR_LIST_ELEMENTS): New macro.
27034 * include/grub/parser.h (grub_parser_class): Removed.
27035 (grub_parser_register): Likewise.
27036 (grub_parser_unregister): Likewise.
27037 (grub_parser_get_current): Likewise.
27038 (grub_parser_set_current): Likewise.
27039 (grub_register_rescue_parser): Likewise.
27040 (grub_rescue_parse_line): New function.
27041 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27042 * include/grub/script_sh.h (grub_script_function_list): New variable
27044 (FOR_SCRIPT_FUNCTIONS): New macro.
27045 (grub_script_function_iterate): Removed.
27046 (grub_normal_parse_line): New prototype.
27047 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27048 (FOR_DISABLED_TERM_INPUTS): Likewise.
27049 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27050 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27051 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27053 (grub_video_register): Inline.
27054 (grub_video_unregister): Likewise.
27055 (grub_video_adapter_list): New variable declaration.
27056 (grub_video_iterate): Removed.
27057 (FOR_VIDEO_ADAPTERS): New macro.
27058 * kern/dl.c (grub_dl_list): Removed. All users updated.
27059 (grub_dl_iterate): Removed.
27060 * kern/fs.c (grub_fs_list): Make global.
27061 (grub_fs_register): Removed.
27062 (grub_fs_unregister): Likewise.
27063 (grub_fs_iterate): Likewise.
27064 * kern/handler.c: Removed.
27065 * kern/list.c (grub_list_pop): Removed.
27066 (grub_list_iterate): Likewise.
27067 (grub_list_insert): Likewise.
27068 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27069 (grub_prio_list_insert): Don't use grub_list_insert.
27070 * kern/main.c (grub_register_rescue_parser): Don't call
27071 grub_register_rescue_parser.
27072 * kern/parser.c (grub_parser_class): Removed.
27073 (grub_parser_execute): Use grub_rescue_parse_line.
27074 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27075 (grub_rescue_parser): Removed.
27076 (grub_register_rescue_parser): Likewise.
27077 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27078 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27079 (grub_auth_check_authentication): Likewise.
27080 * normal/completion.c (iterate_command): Removed.
27081 (grub_normal_do_completion): Use FOR_COMMANDS.
27082 * normal/handler.c: Removed.
27083 * normal/main.c (read_config_file): Remove parser changing.
27084 (grub_normal_execute): Don't call read_handler_list.
27085 (grub_normal_read_line_real): Statically allocate prompt.
27086 (grub_cmdline_run): Use grub_normal_parse_line.
27087 (GRUB_MOD_FINI): Don't call free_handler_list.
27088 * normal/menu_entry.c (run): Likewise.
27089 * script/function.c (grub_script_function_list): Make global.
27090 (grub_script_function_iterate): Removed.
27091 * script/main.c (grub_normal_parse_line): Make global.
27092 (grub_sh_parser): Removed.
27093 (GRUB_MOD_INIT): Likewise.
27094 (GRUB_MOD_FINI): Likewise.
27095 * tests/lib/functional_test.c (grub_functional_test): Use
27097 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27098 (grub_test_run): Use FOR_LIST_ELEMENTS.
27099 * tests/lib/unit_test.c (main): Likewise.
27100 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27102 * util/grub-fstest.c (grub_term_input_class): Removed.
27103 (grub_term_output_class): Likewise.
27104 * util/grub-probe.c: Likewise.
27105 * util/i386/pc/grub-setup.c: Likewise.
27106 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27107 * util/grub-script-check.c (main): Don't call grub_init_all and
27109 * video/video.c (grub_video_adapter_list): Make global.
27110 (grub_video_register): Removed.
27111 (grub_video_unregister): Likewise.
27112 (grub_video_iterate): Likewise.
27114 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27116 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27117 reported by Henrique Ferreiro.
27119 2010-06-09 Robert Millan <rmh@gnu.org>
27121 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27122 ones, when both are available.
27124 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27126 Make --version uniform and avoid hard-coded program name.
27128 * util/grub-mkimage.c (main): Use `program_name' instead of
27130 * util/i386/pc/grub-setup.c (main): Likewise.
27131 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27132 * util/grub-install.in: Save the basename of $0 in $self, and use the
27133 latter in informational messages. Use the same format for --version
27134 as the binary programs.
27135 * util/grub-mkconfig.in: Likewise.
27136 * util/grub-mkrescue.in: Likewise.
27137 * util/grub-reboot.in: Likewise.
27138 * util/grub-set-default.in: Likewise.
27139 * util/i386/efi/grub-install.in: Likewise.
27140 * util/ieee1275/grub-install.in: Likewise.
27141 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27143 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27145 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27146 embedding area. Use <= instead of == when checking for non-emptiness.
27148 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27150 * configure.ac: Add `.' to the directories searched for unifont.
27152 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27154 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27157 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27159 * docs/grub.texi (History): Expand to cover GRUB 2.
27160 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27161 commands, not `terminal'.
27162 (serial): Likewise.
27163 (terminal_input): New section.
27164 (terminal_output): New section.
27165 (uppermem): New section (stub).
27166 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27168 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27170 * docs/grub.texi (Security): Menu entries are unrestricted by
27171 default, not restricted to superusers as I had previously thought.
27172 Reword to account for this.
27174 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27176 * kern/emu/misc.c (device_mapper_null_log): New function.
27177 (grub_device_mapper_supported): New function.
27178 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27180 * kern/emu/hostdisk.c (find_partition_start): Check whether
27181 device-mapper is supported before trying to use it.
27182 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27184 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27186 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27187 (File name syntax): Likewise.
27188 (help): --all is no longer supported in GRUB 2. Be more precise
27189 about pattern matching.
27191 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27193 * normal/completion.c (grub_normal_do_completion): When completing
27194 arguments to "set" and the current word contains an equals sign,
27195 skip to after the equals sign before starting completion.
27197 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27199 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27201 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27203 * docs/grub.texi (Network): New section.
27204 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27205 `(nd)' as in GRUB Legacy.
27206 (pxe_unload): New section.
27208 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27210 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27211 in the rescue shell, so recommend using `set' instead. Thanks,
27214 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27216 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27217 (password): New section.
27218 (password_pbkdf2): New section.
27219 (search): New section.
27220 (Security): New section.
27221 (Troubleshooting): New section, currently very incomplete.
27222 (Invoking grub-mkpasswd-pbkdf2): New section.
27223 (Internals): New section, currently very incomplete.
27225 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27227 * util/grub.d/00_header.in: Add some more quoting (of
27228 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27230 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27232 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27234 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27235 to `count', fixing variable shadowing that broke the -c option.
27237 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27239 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27240 in case they contain spaces.
27242 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27244 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27245 "part_" to partmap module names, in line with grub-install.
27246 Reported by: Jindřich Makovička (Debian bug #584426).
27248 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27250 * util/grub-mkimage.c: Make target-related error messages slightly
27251 more helpful; -O talks about "format". Explicitly point to the use
27252 of -O if no target is specified.
27253 Reported by: Didier Raboud (Debian bug #584415).
27255 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27257 * INSTALL: Document several build requirements for optional features
27258 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27260 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27262 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27263 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27264 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27266 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27268 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27269 Thanks to Jordan Uggla for spotting this.
27271 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27273 Finally make USB usable.
27275 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27276 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27277 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27278 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27279 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27280 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27281 (GRUB_OHCI_FSMPS): Likewise.
27282 (GRUB_OHCI_PERIODIC_START): Likewise.
27283 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27284 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27285 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27286 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27287 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27288 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27289 (grub_ohci_transaction): Likewise.
27290 (grub_ohci_transfer): Improve condition detection algorithms.
27291 Handle toggle property. Program the transactions correctly.
27292 Improve error handling. Various important fixups.
27293 (grub_ohci_portstatus): Put register writes in right order.
27294 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27295 (grub_uhci_transfer): Don't show "failed" message on success.
27296 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27298 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27299 determine its size.
27300 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27301 before initialization is completed. Use IN direction for empty
27302 transfers. Use last_trans and compute toggle.
27303 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27304 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27305 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27306 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27307 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27308 (grub_usb_device): Increase toggle to 256.
27309 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27310 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27311 GRUB_USBMS_SUBCLASS_SFF8070.
27312 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27313 (grub_scsi_inquiry): New member page and alloc_length.
27314 (grub_scsi_request_sense): New structure.
27315 (grub_scsi_request_sense_data): Likewise.
27316 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27318 * disk/scsi.c (grub_scsi_request_sense): New function.
27319 (grub_scsi_test_unit_ready): Likewise.
27320 (grub_scsi_inquiry): Fill new fields.
27321 (grub_scsi_read_capacity): Likewise.
27322 (grub_scsi_read10): Add request sense at the end.
27323 (grub_scsi_read12): Likewise.
27324 (grub_scsi_write10): Likewise.
27325 (grub_scsi_write12): Likewise.
27326 (grub_scsi_open): Add Test Unit Ready.
27327 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27328 Support additional subclasses. Con't clear halt yet. Activate the
27329 proper config. Calculate LUNs correctly.
27330 (grub_usbms_transfer): Various important fixups.
27332 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27334 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27335 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27336 (grub_ohci_fini_hw): New function.
27337 (grub_ohci_restore_hw): Likewise.
27338 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27339 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27340 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27342 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27344 Dedicated DMA allocations.
27346 * bus/pci.c (grub_memalign_dma32): New function
27347 (grub_dma_free): Likewise.
27348 (grub_dma_get_virt): Likewise.
27349 (grub_dma_get_phys): Likewise.
27350 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27351 (grub_ohci_pci_iter): Use dma32_alloc.
27352 (grub_ohci_transfer): Likewise.
27353 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27354 (grub_usb_bulk_readwrite): Likewise.
27355 * include/grub/pci.h: Add declarations.
27357 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27361 * bus/cs5536.c: New file.
27362 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27363 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27364 (cs5536_mod_SOURCES): New variable.
27365 (cs5536_mod_CFLAGS): Likewise.
27366 (cs5536_mod_LDFLAGS): Likewise.
27367 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27369 (kernel_img_SOURCES): Add bus/cs5536.c.
27370 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27372 (usb_mod_SOURCES): New variable.
27373 (usb_mod_CFLAGS): New variable.
27374 (usb_mod_LDFLAGS): New variable.
27375 (usbtest_mod_SOURCES): New variable.
27376 (usbtest_mod_CFLAGS): New variable.
27377 (usbtest_mod_LDFLAGS): New variable.
27378 (ohci_mod_SOURCES): New variable.
27379 (ohci_mod_CFLAGS): New variable.
27380 (ohci_mod_LDFLAGS): New variable.
27381 (usbms_mod_SOURCES): New variable.
27382 (usbms_mod_CFLAGS): New variable.
27383 (usbms_mod_LDFLAGS): New variable.
27384 (usb_keyboard_mod_SOURCES): New variable.
27385 (usb_keyboard_mod_CFLAGS): New variable.
27386 (usb_keyboard_mod_LDFLAGS): New variable.
27387 * include/grub/smbus.h: New file.
27388 * include/grub/cs5536.h: New file.
27390 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27392 * util/grub.d/00_header.in: Add safety check to make sure that
27393 ${locale_dir} exists before trying to probe it.
27395 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27397 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
27398 per the GNU Coding Standards; this is now too obscure to be worth
27401 (chainloader): Remove cross-reference to `SCO UnixWare'.
27403 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27405 * docs/grub.texi (Chain-loading): New section.
27406 (DOS/Windows): New section, borrowed from GRUB Legacy with details
27407 adjusted for GRUB 2.
27408 (SCO UnixWare): Likewise.
27410 (chainloader): Add reference to `Block list syntax'.
27411 (drivemap): New section.
27412 (parttool): New section.
27414 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27416 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
27418 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
27419 (Installing GRUB using grub-install): Remove reference to the grub
27420 shell; mention `grub-mkimage' and `grub-setup' instead.
27421 (Invoking grub-install): Likewise.
27422 (Interface): Add reference to `Menu entry editor'.
27423 (serial): Remove `--device' option.
27425 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27427 * docs/grub.texi (Configuration): New section, documenting
27428 configuration file generation using grub-mkconfig. I've left a slot
27429 for documenting the full shell scripting format but have not yet
27430 started on writing that up.
27431 (Invoking grub-mkconfig): New section.
27433 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27435 * docs/grub.texi (direntry): Remove grub-terminfo reference.
27436 (GNU GRUB manual): Likewise.
27437 (General commands): Update description of `terminfo' for GRUB 2.
27439 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27441 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
27442 (GRUB_MOD_INIT): Fix capitalisation.
27443 * docs/grub.texi (Command-line and menu entry commands): Document
27444 gettext and gptsync commands.
27446 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27448 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
27449 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
27451 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
27453 Add btrfs probing support, currently only in the single-device case.
27455 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
27457 (grub_guess_root_device): Call find_root_device_from_mountinfo
27458 before looking in /dev.
27460 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27462 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
27463 GRUB_DISK_SIZE_UNKNOWN.
27464 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
27466 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
27468 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
27469 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
27470 corrupted or not synced properly.
27472 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27474 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
27475 Reported by: Seth Goldberg.
27477 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27479 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
27481 Reported by: Seth Goldberg.
27483 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27485 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
27486 Reported by: Seth Goldberg.
27488 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27490 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
27491 64-bit address as signed on MIPS.
27493 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
27495 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
27496 to the empty string.
27498 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
27500 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
27502 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
27503 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
27504 * kern/misc.c (__enable_execute_stack): Disable on
27507 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
27509 Make grub-probe work with symbolic links under /dev/mapper as well
27510 as with real block devices. The Linux world seems to be (at best)
27511 in transition here, and GRUB shouldn't get caught in the middle.
27513 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
27516 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27518 * util/grub-script-check.c (main): Ensure defined behaviour on empty
27519 input files (in which case exit zero).
27521 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27523 * kern/emu/misc.c (canonicalize_file_name): realpath can still
27524 return NULL for various reasons even if it has a maximum-length
27525 buffer: for example, there might be a symlink loop, or the path
27526 might exceed PATH_MAX. If this happens, return NULL.
27528 2010-05-27 Robert Millan <rmh@gnu.org>
27530 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
27531 partmap module to handle cross-partmap setups.
27532 Reported by Orestes Mas. Gràcies!
27534 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27536 * util/grub-mkrescue.in: Initialise override_dir rather than
27537 assuming that it's unset or empty in the environment.
27539 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
27541 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
27542 variable index into p_index to suppress a warning with -Wshadow.
27544 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
27546 * INSTALL: Added flex >= 2.5.35 requirement.
27548 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27550 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
27552 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27556 * commands/i386/cmostest.c: New file.
27557 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
27558 (cmostest_mod_SOURCES): New variable.
27559 (cmostest_mod_CFLAGS): Likewise.
27560 (cmostest_mod_LDFLAGS): Likewise.
27561 * conf/i386-pc.rmk: Likewise.
27562 * docs/grub.texi (Vendor power-on keys): New section.
27563 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
27564 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
27565 and GRUB_BUTTON_CMOS_ADDRESS.
27566 * util/grub.d/00_header.in: Handle powering-on by separate button.
27568 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27570 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
27571 Removed drawing_scrollbar argument. All users updated
27573 Reported by Jo Shields
27575 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27577 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
27578 buffer since gfxterm handles double repaint.
27580 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27582 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
27583 * term/gfxterm.c (real_scroll): Likewise.
27585 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27587 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
27588 before calling BIOS.
27590 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27592 * include/grub/i18n.h: Always enable grub_gettext.
27594 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27596 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
27597 partition naming style.
27599 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
27601 * util/grub-mkconfig.in: Fix handling of -o so that it works when
27602 not the first option.
27604 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
27606 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
27608 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
27610 * util/misc.c: Move inclusion of <limits.h> to ...
27611 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
27613 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
27615 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
27616 Fix merge error in NetBSD code.
27617 (find_partition_start) [__NetBSD__]: Likewise.
27619 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
27621 Fix grub-mkrescue usage unit testing.
27623 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
27625 2010-05-18 Christian Franke <franke@computer.org>
27627 * util/grub.d/10_windows.in: Use path names instead of
27628 drive letters to prevent warning from Cygwin 1.7.
27629 Add drivemap command to menuentry if needed.
27631 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
27633 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
27634 gnumach and gnumach.gz.
27636 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27638 * include/grub/i18n.h (gettext): Inline instead of using #define.
27639 (grub_gettext): Likewise.
27642 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27644 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
27645 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
27646 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
27647 (main): Add a slash after pkglibdirroot.
27649 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27651 * util/grub-install.in: Add missing "in" keyword.
27653 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27655 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
27656 Reported by: Seth Goldberg.
27658 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27660 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
27662 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
27664 * configure.ac: Check for Linux device-mapper support.
27666 * util/hostdisk.c (device_is_mapped): New function.
27667 (find_partition_start): New function, partly broken out from
27668 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
27669 device-mapper support added.
27670 (linux_find_partition): Use find_partition_start.
27671 (convert_system_partition_to_system_disk): Add `st' argument.
27672 Support Linux /dev/mapper/* devices if device-mapper support is
27673 available; only DM-RAID devices are understood at present.
27674 (find_system_device): Add `st' argument. Pass it to
27675 convert_system_partition_to_system_disk.
27676 (grub_util_biosdisk_get_grub_dev): Pass stat result to
27677 find_system_device and convert_system_partition_to_system_disk. Use
27678 find_partition_start.
27680 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
27681 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
27682 * util/deviceiter.c [__linux__]: Define MINOR.
27683 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
27684 * util/mkdevicemap.c (grub_putchar): New function.
27685 (grub_getkey): New function.
27686 (grub_refresh): New function.
27687 (main): Set debug=all if -v -v is used.
27689 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
27691 Fix build with non-GNU libcs.
27693 * util/misc.c (canonicalize_file_name): Move to ...
27694 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
27695 grub_make_system_path_relative_to_its_root.
27697 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
27699 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
27700 we handle finding grub-mkimage. Default to finding grub-mkimage in
27701 ${bindir} with program_transform_name applied, and provide a
27702 --grub-mkimage option to override this.
27704 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
27706 Remove grub-mkisofs.
27708 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
27709 (grub_mkisofs_SOURCES): Removed.
27710 (grub_mkisofs_CFLAGS): Removed.
27711 * util/mkisofs/defaults.h: Removed.
27712 * util/mkisofs/eltorito.c: Likewise.
27713 * util/mkisofs/exclude.h: Likewise.
27714 * util/mkisofs/hash.c: Likewise.
27715 * util/mkisofs/include/: Likewise.
27716 * util/mkisofs/include/fctldefs.h: Likewise.
27717 * util/mkisofs/include/mconfig.h: Likewise.
27718 * util/mkisofs/include/prototyp.h: Likewise.
27719 * util/mkisofs/include/statdefs.h: Likewise.
27720 * util/mkisofs/iso9660.h: Likewise.
27721 * util/mkisofs/joliet.c: Likewise.
27722 * util/mkisofs/match.c: Likewise.
27723 * util/mkisofs/match.h: Likewise.
27724 * util/mkisofs/mkisofs.c: Likewise.
27725 * util/mkisofs/mkisofs.h: Likewise.
27726 * util/mkisofs/msdos_partition.h: Likewise.
27727 * util/mkisofs/multi.c: Likewise.
27728 * util/mkisofs/name.c: Likewise.
27729 * util/mkisofs/rock.c: Likewise.
27730 * util/mkisofs/tree.c: Likewise.
27731 * util/mkisofs/write.c: Likewise.
27733 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
27735 Unify grub-mkimage accross platforms.
27737 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
27738 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
27739 (grub_mkelfimage_SOURCES): Removed.
27740 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
27741 (util/grub-mkimage.c_DEPENDENCIES): .. this.
27742 (bin_UTILITIES): Add grub-mkimage.
27743 (grub_mkimage_SOURCES): New variable.
27744 (kernel_img_HEADERS): Remove machine/kernel.h.
27745 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
27746 (pkglib_PROGRAMS): Add kernel.img.
27747 (kernel_img_HEADERS): Add machine/kernel.h.
27748 (kernel_img_FORMAT): Removed.
27749 (bin_UTILITIES): Remove grub-mkimage.
27750 (grub_mkimage_SOURCES): Removed.
27751 (grub_mkimage_CFLAGS): Likewise.
27752 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27753 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
27754 (pkglib_PROGRAMS): Add kernel.img.
27755 (bin_UTILITIES): Remove grub-mkimage.
27756 (grub_mkimage_SOURCES): Removed.
27757 (grub_mkimage_CFLAGS): Likewise.
27758 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27759 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
27760 (pkglib_PROGRAMS): Add kernel.img.
27761 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
27762 (pkglib_PROGRAMS): Add kernel.img.
27763 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
27764 (grub_mkimage_SOURCES): Removed.
27765 (grub_mkimage_CFLAGS): Likewise.
27766 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27767 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
27768 (pkglib_PROGRAMS): Add kernel.img.
27769 (bin_UTILITIES): Remove grub-mkimage.
27770 (grub_mkimage_SOURCES): Removed.
27771 (grub_mkimage_CFLAGS): Likewise.
27772 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27773 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
27774 (grub_mkimage_SOURCES): Removed.
27775 (grub_mkimage_CFLAGS): Likewise.
27776 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27777 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
27778 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
27779 (grub_pe32_optional_header): ... this.
27780 (grub_pe64_optional_header): ... and this. All users updated.
27781 (GRUB_PE32_PE32_MAGIC): Split into ..
27782 (GRUB_PE32_PE32_MAGIC): .. this.
27783 (GRUB_PE32_PE64_MAGIC): .. and this.
27784 (GRUB_PE32_SIGNATURE_SIZE): New definition.
27785 * include/grub/elf.h (PT_GNU_STACK): New definition.
27786 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
27787 * include/grub/i386/efi/kernel.h: Likewise.
27788 * include/grub/i386/kernel.h: Likewise.
27789 * include/grub/i386/pc/kernel.h: Likewise.
27790 * include/grub/i386/qemu/boot.h: Likewise.
27791 * include/grub/mips/kernel.h: Likewise.
27792 * include/grub/mips/qemu-mips/kernel.h: Likewise.
27793 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27794 * include/grub/powerpc/kernel.h: Likewise.
27795 * include/grub/sparc64/ieee1275/boot.h: Likewise.
27796 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27797 * include/grub/sparc64/kernel.h: Likewise.
27798 * include/grub/x86_64/efi/kernel.h: Likewise.
27799 * include/grub/x86_64/kernel.h: Likewise.
27800 * include/grub/offsets.h: New file.
27801 * include/grub/kernel.h (grub_module_info): Split into ...
27802 (grub_module_info32): ... this.
27803 (grub_module_info64): ... and this.
27804 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
27805 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
27806 (grub_boot_blocklist): Moved from here ...
27807 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
27808 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
27809 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
27810 * include/grub/types.h (grub_target_to_host16): Removed.
27811 (grub_target_to_host32): Likewise.
27812 (grub_target_to_host64): Likewise.
27813 (grub_host_to_target16): Likewise.
27814 (grub_host_to_target32): Likewise.
27815 (grub_host_to_target64): Likewise.
27816 (grub_host_to_target_addr): Likewise.
27818 Support grub-mkrescue for efi, coreboot and qemu.
27820 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
27821 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
27822 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
27823 * util/grub-mkrawimage.c: Moved from here ...
27824 * util/grub-mkimage.c: ... here. All users updated.
27825 (ALIGN_ADDR): Use image_target.
27826 (TARGET_NO_FIELD): New const.
27827 (image_target_desc): New type.
27828 (image_targets): New array.
27829 (grub_target_to_host64): Use image_target.
27830 (grub_target_to_host32): Likewise.
27831 (grub_target_to_host16): Likewise.
27832 (grub_host_to_target64): Likewise.
27833 (grub_host_to_target32): Likewise.
27834 (grub_host_to_target16): Likewise.
27835 (grub_host_to_target_addr): Likewise.
27836 (generate_image): Handle multiimage.
27837 (main): Require -O parameter. All users updated.
27838 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
27839 util/efi/grub-mkimage.c
27840 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
27841 New option --rom-directory.
27843 * util/i386/efi/grub-mkimage.c: Removed.
27844 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
27845 (grub_target_to_host32): Likewise.
27846 (grub_target_to_host64): Likewise.
27847 (grub_host_to_target16): Likewise.
27848 (grub_host_to_target32): Likewise.
27849 (grub_host_to_target64): Likewise.
27850 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
27851 (grub_target_to_host32): Likewise.
27852 (grub_target_to_host64): Likewise.
27853 (grub_host_to_target16): Likewise.
27854 (grub_host_to_target32): Likewise.
27855 (grub_host_to_target64): Likewise.
27857 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
27859 Source tree is reorganized for emu build.
27861 * include/grub/util/console.h: Move from here...
27862 * include/grub/emu/console.h: ...to here.
27863 * include/grub/util/getroot.h: Move from here...
27864 * include/grub/emu/getroot.h: ...to here.
27865 * include/grub/util/hostdisk.h: Move from here...
27866 * include/grub/emu/hostdisk.h: ...to here.
27867 * util/console.c: Move from here...
27868 * kern/emu/console.c: ...to here.
27869 * util/getroot.c: Move from here...
27870 * kern/emu/getroot.c: ...to here.
27871 * util/grub-emu.c: Move from here...
27872 * kern/emu/main.c: ...to here.
27873 * util/hostdisk.c: Move from here...
27874 * kern/emu/hostdisk.c: ...to here.
27875 * util/hostfs.c: Move from here...
27876 * kern/emu/hostfs.c: ...to here.
27877 * util/mm.c: Move from here...
27878 * kern/emu/mm.c: ...to here.
27879 * util/pci.c: Move from here...
27880 * bus/emu/pci.c: ...to here.
27881 * util/sdl.c: Move from here...
27882 * video/emu/sdl.c: ...to here.
27883 * util/time.c: Move from here...
27884 * kern/emu/time.c: ...to here.
27885 * util/usb.c: Move from here...
27886 * bus/usb/emu/usb.c: ...to here.
27888 * include/grub/emu/misc.h: New header for grub-emu functions.
27889 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
27891 * conf/any-emu.rmk: Rule updates for above renames.
27892 * conf/common.rmk: Likewise.
27893 * conf/i386-pc.rmk: Likewise.
27894 * conf/i386-qemu.rmk: Likewise.
27895 * conf/mips.rmk: Likewise.
27896 * conf/sparc64-ieee1275.rmk: Likewise.
27897 * conf/x86-efi.rmk: Likewise.
27899 * disk/lvm.h: #include updates for above renames.
27900 * util/grub-mkrelpath.c: Likewise.
27901 * util/grub-probe.c: Likewise.
27902 * util/i386/pc/grub-setup.c: Likewise.
27903 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27904 * kern/emu/console.c: Likewise.
27905 * kern/emu/getroot.c: Likewise.
27906 * kern/emu/hostdisk.c: Likewise.
27907 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
27909 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
27910 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
27911 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
27912 * util/misc.c: Remove grub-emu functions.
27914 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
27917 Reported by: Thorsten Grützmacher.
27919 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
27921 (circprog_set_property): Register and unregister timeout hook.
27922 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
27923 (label_destroy): Free template. and unregister hook.
27924 (label_set_state): New function.
27925 (label_set_property): Handle templates and hooks.
27926 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
27928 (progress_bar_set_property): Register and unregister timeout hook.
27929 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
27930 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
27931 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
27932 (update_timeout_visit): Removed.
27933 (update_timeouts): New function.
27934 (redraw_timeouts): Likewise.
27935 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
27936 (grub_gfxmenu_clear_timeout): Likewise.
27937 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
27938 (grub_gfxmenu_timeout_notify): Likewise.
27939 (grub_gfxmenu_timeout_notifications): New external variable.
27940 (grub_gfxmenu_timeout_register): New function.
27941 (grub_gfxmenu_timeout_unregister): Likewise.
27943 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
27945 Transform (broken) vga terminal into (working) vga video driver.
27947 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
27948 video/i386/pc/vga.c.
27949 * include/grub/video.h (grub_video_driver_id):
27950 Add GRUB_VIDEO_DRIVER_VGA.
27951 * term/i386/pc/vga.c: Renamed to ...
27952 * video/i386/pc/vga.c: ...this
27953 (DEBUG_VGA): Removed.
27954 (CHAR_WIDTH): Likewise.
27955 (CHAR_HEIGHT): Likewise.
27956 (TEXT_WIDTH): Likewise.
27957 (TEXT_HEIGHT): Likewise.
27958 (DEFAULT_FG_COLOR): Likewise.
27959 (DEFAULT_BG_COLOR): Likewise.
27960 (colored_char): Likewise.
27963 (cursor_state): Likewise.
27964 (fg_color): Likewise.
27965 (bg_color): Likewise.
27966 (text_buf): Likewise.
27969 (framebuffer): New variable.
27970 (set_read_map): Disabled.
27971 (setup): New variable.
27972 (is_target): Likewise.
27973 (grub_vga_mod_init): Likewise.
27974 (grub_vga_mod_fini): Likewise.
27975 (check_vga_mem): Likewise.
27976 (write_char): Likewise.
27977 (write_cursor): Likewise.
27978 (scroll_up): Likewise.
27979 (grub_vga_putchar): Likewise.
27980 (grub_vga_getcharwidth): Likewise.
27981 (grub_vga_getwh): Likewise.
27982 (grub_vga_getxy): Likewise.
27983 (grub_vga_gotoxy): Likewise.
27984 (grub_vga_cls): Likewise.
27985 (grub_vga_setcolorstate): Likewise.
27986 (grub_vga_setcursor): Likewise.
27987 (grub_video_vga_init): New function.
27988 (grub_video_vga_setup): Likewise.
27989 (grub_video_vga_fini): Likewise.
27990 (update_target): Likewise.
27991 (grub_video_vga_blit_bitmap): Likewise.
27992 (grub_video_vga_blit_render_target): Likewise.
27993 (grub_video_vga_set_active_render_target): Likewise.
27994 (grub_video_vga_get_active_render_target): Likewise.
27995 (grub_video_vga_swap_buffers): Likewise.
27996 (grub_video_vga_set_palette): Likewise.
27997 (grub_video_vga_get_info_and_fini): Likewise.
27998 (grub_vga_term): Removed.
27999 (grub_video_vga_adapter): New variable.
28000 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28001 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28003 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28005 * video/readers/jpeg.c: Indented.
28007 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28009 Various jpeg cleanups.
28011 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28012 (grub_jpeg_decode_quan_table): Use sizeof.
28013 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28015 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28017 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28018 tables. Ignore non-last ac bit.
28019 (grub_jpeg_decode_quan_table): Likewise.
28021 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28023 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28024 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28025 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28026 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28027 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28028 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28030 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28032 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28035 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28037 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28039 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28041 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28044 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28046 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28049 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28051 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28054 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28056 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28058 2010-05-01 Christian Franke <franke@computer.org>
28060 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28061 Remove broken Cygwin path conversion.
28062 * util/misc.c: [__CYGWIN__] Add include and define.
28063 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28065 (make_system_path_relative_to_its_root): Simplify loop, replace early
28067 [__CYGWIN__] Add conversion to win32 path.
28068 Include "/" case in trailing slash removal.
28070 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28072 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28073 Reported by: Seth Goldberg
28075 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28077 * commands/help.c (grub_cmd_help): Fix a typo.
28078 Reported by: Seth Goldberg
28080 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28082 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28084 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28085 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28086 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28087 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28088 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28089 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28090 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28091 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28092 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28093 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28094 * normal/context.c (GRUB_MOD_INIT): Likewise.
28095 * normal/main.c (GRUB_MOD_INIT): Likewise.
28096 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28097 * term/serial.c (GRUB_MOD_INIT): Likewise.
28098 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28100 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28102 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28105 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28107 * commands/iorw.c: New file.
28108 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28109 (iorw_mod_SOURCES): New variable.
28110 (iorw_mod_CFLAGS): Likewise.
28111 (iorw_mod_LDFLAGS): Likewise.
28113 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28117 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28118 * normal/main.c (hotkey_aliases): New variable.
28119 (grub_normal_add_menu_entry): Parse "--hotkey".
28120 * normal/menu_text.c (run_menu): Handle hotkeys.
28122 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28124 * kern/i386/coreboot/init.c (grub_machine_init): Call
28125 grub_machine_mmap_init on qemu.
28127 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28129 * boot/i386/qemu/boot.S: Add a missing .code16.
28131 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28133 Use LBIO on coreboot.
28135 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28136 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28137 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28139 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28140 grub_machine_mmap_init on coreboot.
28141 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28142 GRUB_LINUXBIOS_MEMBER_LINK.
28143 (grub_machine_mmap_iterate): Fix declaration.
28144 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28146 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28148 Split coreboot and multiboot ports.
28150 * conf/i386-multiboot.rmk: New file.
28151 * configure.ac: Add multiboot port.
28152 * include/grub/i386/multiboot/boot.h: New file.
28153 * include/grub/i386/multiboot/console.h: Likewise.
28154 * include/grub/i386/multiboot/init.h: Likewise.
28155 * include/grub/i386/multiboot/kernel.h: Likewise.
28156 * include/grub/i386/multiboot/loader.h: Likewise.
28157 * include/grub/i386/multiboot/memory.h: Likewise.
28158 * include/grub/i386/multiboot/serial.h: Likewise.
28159 * include/grub/i386/multiboot/time.h: Likewise.
28160 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28161 * loader/multiboot.c: Likewise.
28162 * loader/multiboot_mbi2.c: Likewise.
28163 * util/grub-mkrescue.in: Generate multiboot rescue.
28165 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28167 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28169 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28171 Merge handling of input and output terminals. Fix a hang.
28173 * commands/terminal.c (abstract_terminal): New struct.
28174 (handle_command): New function. Based on grub_cmd_terminal_input.
28175 (grub_cmd_terminal_input): Use handle_command.
28176 (grub_cmd_terminal_output): Use handle_command.
28178 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28180 Fix comment handling.
28182 * tests/grub_script_comments.in: New testcase.
28183 * conf/tests.rmk: Rules for new testcase.
28184 * script/yylex.l: Updated flex rules.
28186 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28188 * docs/grub.texi (play): Document that zero pitches produce rests.
28189 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28192 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28194 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28197 2010-04-26 Christian Franke <franke@computer.org>
28199 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28200 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28201 (grub_get_prefix): Remove function.
28202 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28203 make_system_path_relative_to_its_root ().
28204 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28206 2010-04-24 Christian Franke <franke@computer.org>
28208 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28209 (kernel_img_LDFLAGS): Remove -static-libgcc.
28211 2010-04-24 Christian Franke <franke@computer.org>
28213 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28214 and CHECK_END_SYMBOL if grub-emu is built.
28215 Unset TARGET_OBJ2ELF if grub-emu is built
28216 without module support.
28218 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28222 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28223 (grub_fstest_SOURCES): Likewise.
28224 (pkglib_MODULES): Add nilfs2.mod.
28225 (nilfs2_mod_SOURCES): New variable.
28226 (nilfs2_mod_CFLAGS): Likewise.
28227 (nilfs2_mod_LDFLAGS): Likewise.
28228 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28229 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28230 * fs/nilfs2.c: New file.
28232 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28234 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28237 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28239 Add grub-mkconfig support for NetBSD.
28241 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28242 * util/grub-mkconfig.in: export new NetBSD specific variables.
28243 * po/POTFILES-shell: added 10_netbsd.in.
28244 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28246 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28248 Fix emu build with grub-emu-pci and grub-emu-modules.
28250 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28252 * include/grub/libpciaccess.h: New file.
28253 * conf/any-emu.rmk: Update kernel headers for emu build.
28255 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28257 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28259 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28261 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28263 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28265 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28266 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28267 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28268 util/ieee1275/ofpath.c.
28269 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28270 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28271 * include/grub/sparc64/ieee1275/boot.h
28272 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28273 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28274 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28275 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28277 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28278 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28279 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28282 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28284 * util/grub-mkconfig.in: Corrected two == equality tests.
28285 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28286 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28287 expect a number appended to it.
28288 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28289 expects a number appended to it.
28291 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28293 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28295 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28297 * util/hostdisk.c (make_device_name): Change to new partition naming.
28299 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28301 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28303 2010-04-17 Christian Franke <franke@computer.org>
28305 * Makefile.in: Add missing localedir setting.
28307 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28309 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28310 mistake in r2156. Noticed by Anthony Fok.
28312 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28314 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28316 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28318 Fix a spurious, uninitialized variable warning.
28320 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28321 Initialize variable, shdr.
28322 (grub_freebsd_load_elfmodule): Likewise.
28323 (grub_freebsd_load_elf_meta): Likewise.
28325 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28327 Fix for escaped dollar in double quoted strings.
28329 * script/yylex.l: Updated flex rules.
28330 * conf/tests.rmk: Rule for new testcase.
28331 * tests/grub_script_dollar.in: New testcase.
28333 2010-04-13 Carles Pina i Estany <carles@pina.cat>
28334 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
28336 Enclose all translated strings in grub.cfg in single quotes, and
28337 escape them appropriately (Ubuntu bug #552921).
28339 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28340 * util/grub.d/10_hurd.in: Use it.
28341 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28342 * util/grub.d/10_linux.in (linux_entry): Likewise.
28344 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28346 Fix cygwin compilation.
28348 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28349 * include/grub/misc.h (__register_frame_info)
28350 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28351 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28352 * kern/misc.c (__register_frame_info)
28353 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28354 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28356 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28358 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28360 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28362 Unify libgcc processing.
28364 * Makefile.in (kernel_img_LDFLAGS): New variable.
28365 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28366 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28368 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28369 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28370 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28371 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28372 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28373 overwriting. Remove -lgcc and -static-libgcc
28374 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28375 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28376 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28377 (kernel_img_LDFLAGS): Append instead of overwriting.
28378 Remove -lgcc and -static-libgcc
28379 * conf/sparc64-ieee1275.rmk: Likewise.
28380 * include/grub/powerpc/libgcc.h: Move to ...
28381 * include/grub/libgcc.h: .. this.
28382 * include/grub/libgcc.h: Don't export most of the function on x86.
28383 (__bswapsi2): New export.
28384 (__bswapdi2): Likewise.
28385 * include/grub/mips/libgcc.h: Removed.
28386 * include/grub/sparc64/libgcc.h: Likewise.
28388 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28390 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
28391 disk_info_msg (conflicts with gettexting into languages with cases).
28393 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
28395 Add grub-probe support for NetBSD.
28397 * util/getroot.c (find_root_device): Convert block device to
28398 character device on NetBSD.
28399 * util/probe.c (probe): Require character device on NetBSD.
28400 * util/hostdisk.c: NetBSD specific headers.
28401 (configure_device_driver): new function to tune device driver
28402 parameters (currently only for NetBSD floppy driver).
28403 (grub_util_biosdisk_open): NetBSD specific code (get disk size
28404 via disklabel ioctl).
28405 (open_device): call configure_device_driver on NetBSD.
28406 (convert_system_partition_to_system_disk): NetBSD specific code.
28407 (device_is_wholedisk): Likewise.
28408 (grub_util_biosdisk_get_grub_dev): Likewise.
28409 (make_device_name): Fixed a typo in bsd_part_str.
28410 * configure.ac: check for opendisk() and getrawpartition() on
28411 NetBSD and set LIBUTIL.
28412 * Makefile.in: add LIBUTIL to LIBS.
28414 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28418 * util/grub-script-check.c: Better help message.
28420 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28424 * configure.ac: Flex version check.
28425 * conf/common.rmk: Add -Wno-error to sh.mod.
28426 * script/yylex.l: Remove all #pragma.
28428 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28430 * include/grub/util/misc.h (canonicalise_file_name): Add missing
28432 Reported by: Seth Goldberg.
28434 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28436 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
28437 Rename "module" to "module2".
28438 Reported by: Seth Goldberg.
28440 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28442 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
28444 Reported by: Seth Goldberg.
28446 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28448 * lib/posix_wrap/locale.h: Add missing file.
28449 Reported by: Seth Goldberg.
28451 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28453 grub-emu module load support.
28455 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
28456 NO_DYNAMIC_MODULES switched to this.
28457 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
28458 (CFLAGS): Likewise.
28459 * conf/any-emu.rmk: Generate symlist.
28460 (kernel_img_HEADERS): Add util/datetime.h.
28461 (kernel_img_HEADERS) [sdl]: Add sdl.h.
28462 (kernel_img_HEADERS) [libusb]: Add libusb.h.
28463 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
28464 kern/$(target_cpu)/cache.S.
28465 * configure.ac (grub-emu-modules): New option.
28466 * genmk.rb: Handle multiple source lists.
28467 * include/grub/sdl.h: New file.
28468 * include/grub/libusb.h: Likewise.
28469 * util/grub-emu.c (main): Hanle (host) root.
28470 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
28471 GRUB_ERR_UNKNOWN_DEVICE.
28472 * util/misc.c: Move mm functions to ...
28473 * util/mm.c: ... here. All users updated.
28475 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28477 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
28478 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
28480 (maintainer-clean): Remove libgcrypt-grub.
28482 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28484 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
28486 2010-04-09 EFI Coder <eficoder@hotmail.com>
28488 * normal/menu_text.c (print_message): Clean up the message and show
28489 the Fn information when on EFI
28490 * term/efi/console.c (grub_console_checkkey): Add F4 support.
28492 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28494 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
28496 * normal/crypto.c (read_crypto_list): Likewise.
28497 * normal/dyncmd.c (read_command_list): Likewise.
28498 * normal/term.c (read_terminal_list): Likewise.
28499 * normal/main.c (read_lists): Use explicit prefix.
28500 (read_lists_hook): Use read_lists.
28501 (grub_normal_execute): Likewise.
28503 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28505 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
28506 Reported by: Thomas Schmitt.
28507 Add -no-emul-boot to grub-mkisofs parameters.
28509 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28511 * font/font.c: Indented.
28513 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
28515 Elif support to GRUB script (by Deepak Vankadaru).
28517 * tests/grub_script_if.in: New testcase.
28518 * conf/tests.rmk: Rule for new testcase.
28519 * script/parser.y: Grammar rules for elif.
28521 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
28523 While and until loops support to GRUB script.
28525 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
28526 (grub_script_create_cmdwhile): New function prototype.
28527 (grub_script_execute_cmdwhile): New function prototype.
28528 * script/execute.c (grub_script_execute_cmdwhile): New function.
28529 * script/parser.y (command): New commands.
28530 (whilecmd): New grammar rule.
28531 (untilcmd): New grammar rule.
28532 * script/script.c (grub_script_create_cmdwhile): New function.
28533 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
28536 * tests/grub_script_while1.in: New testcase.
28537 * conf/tests.rmk: Rule for new testcase.
28539 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28541 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
28544 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
28546 GRUB_BACKGROUND support.
28548 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
28549 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
28551 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28553 Load fonts and modules for gfxmenu in grub-mkconfig.
28554 Idea by: Mario Vazquez
28556 * util/grub.d/00_header.in: Load pf2 and image modules.
28558 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28560 grub-mkconfig multiple terminal support.
28562 * util/grub-mkconfig.in: Handle multiple terminals correctly.
28563 * util/grub.d/00_header.in: Likewise.
28565 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28567 * Makefile.in: Specify files explicitly instead of using $< and $@ since
28568 we use cd $(srcdir).
28570 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
28572 * util/grub.d/10_linux.in: Only use the first word of
28573 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
28574 spaces in GRUB_DISTRIBUTOR.
28575 * util/grub.d/10_kfreebsd.in: Likewise.
28576 * util/grub.d/10_hurd.in: Likewise.
28578 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
28580 Fix unit testing framework for Qemu 0.12.
28582 * tests/util/grub-shell.in: Remove -serial stdio option.
28584 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
28586 POSIX header file wrappers.
28588 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
28590 * lib/posix_wrap/ctype.h: Likewise.
28591 * lib/posix_wrap/errno.h: Likewise.
28592 * lib/posix_wrap/langinfo.h: Likewise.
28593 * lib/posix_wrap/limits.h: Likewise.
28594 * lib/posix_wrap/localcharset.h: Likewise.
28595 * lib/posix_wrap/stdint.h: Likewise.
28596 * lib/posix_wrap/stdio.h: Likewise.
28597 * lib/posix_wrap/stdlib.h: Likewise.
28598 * lib/posix_wrap/string.h: Likewise.
28599 * lib/posix_wrap/sys/types.h: Likewise.
28600 * lib/posix_wrap/unistd.h: Likewise.
28601 * lib/posix_wrap/wchar.h: Likewise.
28602 * lib/posix_wrap/wctype.h: Likewise.
28603 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
28604 (grub_script.yy.h): Likewise.
28605 * script/yylex.l: Remove POSIX emulation #defines.
28606 * Makefile.in (POSIX_CFLAGS): New variable.
28607 (GNULIB_UTIL_CFLAGS): Likewise.
28611 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
28612 (regexp_mod_SOURCES): New variable.
28613 (regexp_mod_CFLAGS): Likewise.
28614 (regexp_mod_LDFLAGS): Likewise.
28615 * commands/regexp.c: New file.
28616 * gnulib/regcomp.c: New file. Imported from gnulib.
28617 * gnulib/regex.c: Likewise.
28618 * gnulib/regex_internal.c: Likewise.
28619 * gnulib/regex_internal.h: Likewise.
28620 * gnulib/regexec.c: Likewise.
28621 * gnulib/regex.h: Likewise.
28623 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28625 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
28626 unsupported video mode types.
28628 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28630 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
28632 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28634 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
28635 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
28637 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
28639 Remove unused grub_vga_get_font.
28641 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
28642 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
28644 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28646 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
28647 * include/grub/misc.h: Likewise.
28649 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28651 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
28652 for which failure is fatal.
28654 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28656 * util/grub-install.in: Use mkdir -p to create grub directory.
28657 * util/i386/efi/grub-install.in: Likewise.
28658 * util/ieee1275/grub-install.in: Likewise.
28660 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28662 * Makefile.in (LEX): new variable.
28664 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28666 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
28667 `=' and added double quotes on operands of this equality test.
28669 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
28671 * Makefile.in (uninstall): Remove a leftover debug echo.
28672 Reported by: Grégoire Sutre
28674 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
28676 MIPS multiboot2 support.
28678 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
28679 (multiboot2_mod_SOURCES): New variable.
28680 (multiboot2_mod_CFLAGS): Likewise.
28681 (multiboot2_mod_LDFLAGS): Likewise.
28682 (multiboot2_mod_ASFLAGS): Likewise.
28683 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
28685 (MULTIBOOT_ENTRY_REGISTER): Likewise.
28686 (MULTIBOOT_MBI_REGISTER): Likewise.
28687 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
28688 (MULTIBOOT_ELF32_MACHINE): Likewise.
28689 (MULTIBOOT_ELF64_MACHINE): Likewise.
28690 * include/grub/mips/multiboot.h: New file.
28691 * include/grub/video.h (grub_video_driver_id): New type
28692 GRUB_VIDEO_DRIVER_SM712.
28693 (grub_video_get_info_and_fini): Export.
28694 (grub_video_get_palette): Likewise.
28695 (grub_video_get_driver_id): Likewise.
28696 * include/multiboot2.h: Resynced with spec.
28697 * loader/i386/multiboot.c: Moved from here ...
28698 * loader/multiboot.c: ... here. All users updated.
28699 (grub_multiboot_boot): Use platform-specific macros.
28700 * loader/i386/multiboot_elfxx.c: Moved from here ...
28701 * loader/multiboot_elfxx.c: ... here. All users updated.
28702 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
28703 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
28704 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
28706 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
28708 Import gnulib argp module.
28710 * gnulib/argp-ba.c: New file.
28711 * gnulib/argp-eexst.c: Likewise.
28712 * gnulib/argp-fmtstream.c: Likewise.
28713 * gnulib/argp-fmtstream.h: Likewise.
28714 * gnulib/argp-fs-xinl.c: Likewise.
28715 * gnulib/argp-help.c: Likewise.
28716 * gnulib/argp-namefrob.h: Likewise.
28717 * gnulib/argp-parse.c: Likewise.
28718 * gnulib/argp-pin.c: Likewise.
28719 * gnulib/argp-pv.c: Likewise.
28720 * gnulib/argp-pvh.c: Likewise.
28721 * gnulib/argp-version-etc.c: Likewise.
28722 * gnulib/argp-version-etc.h: Likewise.
28723 * gnulib/argp-xinl.c: Likewise.
28724 * gnulib/argp.h: Likewise.
28726 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
28728 * kern/device.c (grub_device_iterate): Clear errors after failed
28731 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
28733 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
28734 returned by firmware.
28736 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
28738 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
28739 compilation on coreboot and qemu
28741 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
28743 * include/multiboot2.h: Resync with spec.
28745 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
28747 Multiboot2 tag support
28749 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
28750 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
28751 Remove loader/multiboot_loader.c.
28752 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
28753 (grub_multiboot2_real_boot): Likewise.
28754 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
28755 (grub_get_multiboot_mmap_count): New proto.
28756 (grub_fill_multiboot_mmap): Likewise.
28757 (grub_multiboot_set_video_mode): Likewise.
28758 (grub_multiboot_set_console): Likewise.
28759 (grub_multiboot_load): Likewise.
28760 (grub_multiboot_load_elf): Likewise.
28761 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
28762 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
28763 * include/multiboot.h: Resynced with specification.
28764 * include/multiboot2.h: Resynced with specification.
28765 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
28766 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
28767 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
28768 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
28770 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
28771 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
28772 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
28774 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
28776 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
28777 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
28779 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
28780 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
28781 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
28783 * loader/i386/multiboot_mbi2.c: New file.
28785 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
28787 Resync with gnulib.
28789 * Makefile.in (GNULIB_CFLAGS): New variable.
28790 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
28791 (grub_script_check_CFLAGS): New variable.
28792 * gnulib/alloca.h: Resync with gnulib.
28793 * gnulib/error.c: Likewise.
28794 * gnulib/error.h: Likewise.
28795 * gnulib/fnmatch.c: Likewise.
28796 * gnulib/fnmatch_loop.c: Likewise.
28797 * gnulib/getdelim.c: Likewise.
28798 * gnulib/getline.c: Likewise.
28799 * gnulib/getopt.c: Likewise.
28800 * gnulib/getopt1.c: Likewise.
28801 * gnulib/getopt_int.h: Likewise.
28802 * gnulib/gettext.h: Likewise.
28803 * gnulib/progname.c: Likewise.
28804 * gnulib/progname.h: Likewise.
28806 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
28808 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
28809 which is the case with --disabled-nls.
28811 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
28812 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
28813 * util/misc.c: Likewise.
28814 * util/mkisofs/mkisofs.c: Likewise.
28815 * util/mkisofs/mkisofs.h: Likewise.
28817 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
28819 Simplify Apple CC support.
28821 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
28822 Add 0 byte at the end not to have a symbol with empty target.
28823 * mmap/i386/pc/mmap_helper.S: Likewise.
28824 * genmk.rb: Ignore errors 2030 and 2050.
28825 * kern/i386/pc/startup.S: Use LOCAL when possible.
28827 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
28829 Testcase and the fix for final semicolon on cmdline.
28831 * tests/grub_script_final_semicolon.in: New testcase.
28832 * conf/tests.rmk: Rules for the new testcase.
28833 * script/parser.y: Grammar fix.
28835 2010-03-26 BVK Chaitanya <bvk@localhost>
28837 Blank lines testcase for GRUB script.
28839 * tests/grub_script_blanklines.in: New testcase.
28840 * conf/tests.rmk: Rules for the new testcase.
28842 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28844 Don't use __FILE__.
28846 * genmk.rb: Add -DGRUB_FILE to all C targets.
28847 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
28848 * include/grub/list.h: Likewise.
28849 * include/grub/misc.h: Likewise.
28850 * include/grub/mm.h: Likewise.
28851 * include/grub/test.h: Likewise.
28852 * kern/mm.c: Likewise.
28853 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
28855 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28857 Sunpc partitions support.
28859 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
28860 (grub_fstest_SOURCES): Likewise.
28861 (pkglib_MODULES): Add part_sunpc.mod.
28862 (part_sunpc_mod_SOURCES): New variable.
28863 (part_sunpc_mod_CFLAGS): Likewise.
28864 (part_sunpc_mod_LDFLAGS): Likewise.
28865 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
28866 * partmap/sunpc.c: New file.
28868 2010-03-26 BVK Chaitanya <bvk@localhost>
28870 For loop support to GRUB script.
28872 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
28873 (grub_script_create_cmdfor): New function prototype.
28874 (grub_script_execute_cmdfor): New function prototype.
28875 * script/execute.c (grub_script_execute_cmdfor): New function.
28876 * script/parser.y (command): New for command.
28877 (forcmd): New grammar rule.
28878 * script/script.c (grub_script_create_cmdfor): New function.
28879 * util/grub-script-check.c (grub_script_execute_cmdfor): New
28881 * tests/grub_script_for1.in: New testcase.
28882 * conf/tests.rmk: Rules for new testcase.
28884 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28888 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
28889 'partition' is NULL, grub_partition_get_start already does that.
28890 * commands/loadenv.c (check_blocklists): Likewise.
28891 (write_blocklists): Likewise.
28892 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
28893 (grub_fstest_SOURCES): Likewise.
28894 (pkglib_MODULES): Add part_bsd.mod.
28895 (part_bsd_mod_SOURCES): New variable.
28896 (part_bsd_mod_CFLAGS): Likewise.
28897 (part_bsd_mod_LDFLAGS): Likewise.
28898 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
28899 (grub_emu_SOURCES): Likewise.
28900 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28901 * include/grub/bsdlabel.h: New file.
28902 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
28904 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
28905 (grub_partition_map_list): New variable.
28906 (grub_partition_map_register): Inline.
28907 (grub_partition_map_unregister): Likewise.
28908 (FOR_PARTITION_MAPS): New macro.
28909 (grub_partition_map_iterate): Removed.
28910 (grub_partition_get_start): Handle nested partitions.
28911 * include/grub/msdos_partition.h: Remove bsd-related entries.
28912 (grub_pc_partition): Remove.
28913 * kern/disk.c (grub_disk_close): Free partition data.
28914 (grub_disk_adjust_range): Handle nested partitions.
28915 * kern/partition.c (grub_partition_map_probe): New function.
28916 (grub_partition_probe): Parse name to number, handle subpartitions.
28917 (get_partmap): New function.
28918 (grub_partition_iterate): Handle subpartitions.
28919 (grub_partition_get_name): Likewise.
28920 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
28921 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
28922 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
28923 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
28925 (acorn_partition_map_probe): Remove.
28926 (acorn_partition_map_get_name): Likewise.
28927 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
28929 Set 'index' to 0 since there can be only one partition entry per sector.
28930 (amiga_partition_map_probe): Remove.
28931 (amiga_partition_map_get_name): Likewise.
28932 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
28934 Set 'offset' and 'index' to real positions of partitions.
28935 (apple_partition_map_probe): Remove.
28936 (apple_partition_map_get_name): Likewise.
28937 * partmap/bsdlabel.c: New file.
28938 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
28940 Allocate 'data' so it can be correctly freed.
28941 Set 'index' to offset inside sector.
28942 (gpt_partition_map_probe): Remove.
28943 (gpt_partition_map_get_name): Likewise.
28944 * partmap/msdos.c (grub_partition_parse): Remove.
28945 (pc_partition_map_iterate): Don't force raw access.
28947 Make 'ext_offset' a local variable.
28948 (pc_partition_map_probe): Remove.
28949 (pc_partition_map_get_name): Remove.
28950 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
28952 (sun_partition_map_probe): Remove.
28953 (sun_partition_map_get_name): Likewise.
28954 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
28955 (grub_pcpart_type): Likewise.
28956 * util/hostdisk.c (open_device): Handle new numbering scheme.
28957 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
28958 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
28959 * util/grub-probe.c (probe_partmap): Handle nested paritions.
28960 * util/grub-install.in: Insert all subpartition modules.
28961 * util/ieee1275/grub-install.in: Likewise.
28963 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
28965 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
28968 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
28970 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
28972 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
28974 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
28975 match where 'make install' puts them.
28976 * util/i386/efi/grub-install.in: Likewise.
28978 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
28980 * .bzrignore: Add gentrigtables, grub-script-check,
28981 grub_script_check_init.c, grub_script_check_init.h, and
28984 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
28986 * kern/parser.c: Indented.
28988 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
28990 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
28992 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
28994 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
28995 alpha_mask_size == 0 case.
28997 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
28999 GRUB shell lexer and parser improvements.
29001 * conf/any-emu.rmk: Build rule updates.
29002 * conf/common.rmk: Likewise.
29003 * conf/i386-coreboot.rmk: Likewise.
29004 * conf/i386-efi.rmk: Likewise.
29005 * conf/i386-ieee1275.rmk: Likewise.
29006 * conf/i386-pc.rmk: Likewise.
29007 * conf/powerpc-ieee1275.rmk: Likewise.
29008 * conf/x86_64-efi.rmk: Likewise.
29010 * configure.ac: Configure check for flex.
29012 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29014 (grub_lexer_param): Struct member updates.
29015 (grub_parser_param): Likewise.
29016 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29017 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29018 (grub_script_lexer_init): Prototype update.
29019 (grub_script_lexer_record_start): Likewise.
29020 (grub_script_lexer_record_stop): Likewise.
29021 (grub_script_lexer_yywrap): New function prototype.
29022 (grub_script_lexer_fini): Likewise.
29023 (grub_script_execute_argument_to_string): Removed by...
29024 (grub_script_execute_argument_to_argv): ...better version.
29026 * script/execute.c (ROUND_UPTO): New macro.
29027 (grub_script_execute_cmdline): Out of memory fixes.
29028 (grub_script_execute_menuentry): Likewise.
29029 (grub_script_execute_argument_to_string): Removed. Update all
29031 (grub_script_execute_argument_to_argv): ...better version.
29032 * script/function.c (grub_script_function_create): Use
29033 grub_script_execute_argument_to_argv instead of
29034 grub_script_execute_argument_to_string.
29036 * script/lexer.c (check_varstate): Removed.
29037 (check_textstate): Removed.
29038 (grub_script_lexer_record_start): Likewise.
29039 (grub_script_lexer_record_stop): Likewise.
29040 (recordchar): Replaced with...
29041 (grub_script_lexer_record): ...new function.
29042 (nextchar): Removed.
29043 (grub_script_lexer_init): Rewritten.
29044 (grub_script_yylex): Rewritten.
29045 (append_newline): New function.
29046 (grub_script_lexer_yywrap): New function.
29047 (grub_script_lexer_fini): New function.
29048 (grub_script_yyerror): Sets error flag.
29050 * script/yylex.l: New file.
29051 (grub_lexer_yyfree): Wrapper for flex yyffre.
29052 (grub_lexer_yyalloc): Likewise.
29053 (grub_lexer_yyrealloc): Likewise.
29054 * script/parser.y: Refactored.
29056 * script/script.c (grub_script_arg_add): Out of memory fixes.
29057 (grub_script_add_arglist): Likewise.
29058 (grub_script_create_cmdline): Likewise.
29059 (grub_script_create_cmdmenu): Likewise.
29060 (grub_script_add_cmd): Likewise.
29061 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29062 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29065 * tests/grub_script_echo1.in: New testcase.
29066 * tests/grub_script_vars1.in: New testcase.
29067 * tests/grub_script_echo_keywords.in: New testcase.
29069 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29071 Remove some redundancy in build system.
29073 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29074 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29075 (TARGET_LDFLAGS): Add -nostdlib.
29076 (TARGET_IMG_LDFLAGS): Likewise.
29077 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29078 anything since mmap isn't available.
29079 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29081 (pkglib_MODULES): Remove reboot.mod.
29082 (reboot_mod_SOURCES): Removed.
29083 (reboot_mod_CFLAGS): Likewise.
29084 (reboot_mod_LDFLAGS): Likewise.
29085 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29086 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29087 (DEFSYMFILES): Add kernel_syms.lst.
29088 (kernel_img_HEADERS): Add common headers.
29089 (symlist.c): New target.
29090 (kernel_syms.lst): Likewise.
29091 (pkglib_MODULES): Add memdisk.mod.
29092 (memdisk_mod_SOURCES): New variable.
29093 (memdisk_mod_CFLAGS): Likewise.
29094 (memdisk_mod_LDFLAGS): Likewise.
29095 (pkglib_MODULES): Add reboot.mod.
29096 (reboot_mod_SOURCES): New variable.
29097 (reboot_mod_CFLAGS): Likewise.
29098 (reboot_mod_LDFLAGS): Likewise.
29099 (pkglib_MODULES): Add date.mod.
29100 (date_mod_SOURCES): New variable.
29101 (date_mod_CFLAGS): Likewise.
29102 (date_mod_LDFLAGS): Likewise.
29103 (pkglib_MODULES): Add datehook.mod.
29104 (datehook_mod_SOURCES): New variable.
29105 (datehook_mod_CFLAGS): Likewise.
29106 (datehook_mod_LDFLAGS): Likewise.
29107 (pkglib_MODULES): Add lsmmap.mod.
29108 (lsmmap_mod_SOURCES): New variable.
29109 (lsmmap_mod_CFLAGS): Likewise.
29110 (lsmmap_mod_LDFLAGS): Likewise.
29111 (pkglib_MODULES): Add boot.mod.
29112 (boot_mod_SOURCES): New variable.
29113 (boot_mod_CFLAGS): Likewise.
29114 (boot_mod_LDFLAGS): Likewise.
29115 * conf/i386-coreboot.rmk: Removed redundant parts.
29116 * conf/i386-ieee1275.rmk: Likewise.
29117 * conf/i386-pc.rmk: Likewise.
29118 * conf/mips-yeeloong.rmk: Likewise.
29119 * conf/mips.rmk: Likewise.
29120 * conf/powerpc-ieee1275.rmk: Likewise.
29121 * conf/sparc64-ieee1275.rmk: Likewise.
29122 * conf/x86_64-efi.rmk: Likewise.
29123 * conf/i386-coreboot.rmk: Moved qemu parts ..
29124 * conf/i386-qemu.rmk: ... here
29125 * conf/i386-efi.rmk: Moved common parts to...
29126 * conf/x86-efi.rmk: ... here.
29127 * conf/i386.rmk: Added modules common to all x86 variants.
29128 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29129 * disk/memdisk.c: Remove grub/machine/kernel.h.
29130 * gensymlist.sh.in: Include symbol.h.
29131 * hook/datehook.c: Correct module name.
29132 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29133 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29134 * include/grub/i386/efi/serial.h: New file.
29135 * include/grub/x86_64/efi/serial.h: Likewise.
29136 * util/time.c: Likewise.
29137 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29139 2010-03-14 Colin King <colin.king@ubuntu.com>
29140 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29142 Shrink the pre-partition-table part of boot.img by eight bytes.
29144 * boot/i386/pc/boot.S (ERR): New macro.
29145 (chs_mode): Use ERR.
29146 (geometry_error): Likewise.
29147 (hd_probe_error): Remove. This is only used once, so we wrwite
29149 (read_error): Instead of printing read_error_string, just set up
29150 %si and fall through to ...
29151 (error_message): ... this new function, also used by ERR.
29153 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29155 Speed up consecutive hostdisk operations on the same device.
29157 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29158 (grub_util_biosdisk_open): Initialise disk->data.
29159 (struct linux_partition_cache): New structure.
29160 (linux_find_partition): Cache partition start positions; these are
29161 expensive to compute on every read and write.
29162 (open_device): Cache open file descriptor in disk->data, so that we
29163 don't have to reopen it and flush the buffer cache for consecutive
29164 operations on the same device.
29165 (grub_util_biosdisk_close): New function.
29166 (grub_util_biosdisk_dev): Set `close' member.
29168 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29169 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29170 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29171 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29172 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29174 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29176 Compile parts of grub-emu as modules.
29178 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29179 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29180 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29181 (all-local): Add $(GRUB_EMU).
29182 (install-local): Install $(GRUB_EMU).
29183 (uninstall): Uninstall $(GRUB_EMU).
29184 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29185 * kern/dl.c: Likewise.
29186 * commands/sleep.c: Not include machine/time.h.
29187 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29188 (COMMON_CFLAGS): Likewise.
29189 (sbin_UTILITIES): Remove grub-emu.
29190 (grub_emu_SOURCES): Removed.
29191 (kernel_img_RELOCATABLE): New variable.
29192 (pkglib_PROGRAMS): Add kernel.img.
29193 (kernel_img_SOURCES): New variable
29194 (kernel_img_CFLAGS): Likewise.
29195 (kernel_img_LDFLAGS): Likewise.
29196 (TARGET_NO_STRIP): Likewise.
29197 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29198 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29199 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29200 (grub-emu): New target.
29201 (GRUB_EMU): New variable.
29202 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29203 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29204 * loader/xnu.c: Likewise.
29205 * include/grub/pci.h: Likewise.
29206 * genemuinit.sh: New file.
29207 * genemuinitheader.sh: Likewise.
29208 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29209 Support TARGET_NO_DYNAMIC_MODULES.
29210 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29211 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29212 * disk/loopback.c: Likewise.
29213 * font/font_cmd.c: Likewise.
29214 * partmap/acorn.c: Likewise.
29215 * partmap/amiga.c: Likewise.
29216 * partmap/apple.c: Likewise.
29217 * partmap/gpt.c: Likewise.
29218 * partmap/msdos.c: Likewise.
29219 * partmap/sun.c: Likewise.
29220 * parttool/msdospart.c: Likewise.
29221 * term/gfxterm.c: Likewise.
29222 * video/bitmap.c: Likewise.
29223 * video/readers/jpeg.c: Likewise.
29224 * video/readers/png.c: Likewise.
29225 * video/readers/tga.c: Likewise.
29226 * video/video.c: Likewise.
29227 * util/grub-emu.c (read_command_list): Removed.
29228 (main): Don't call util_init_nls.
29229 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29230 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29232 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29234 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29235 date.mod, datehook.mod.
29236 (datetime_mod_SOURCES): New variable.
29237 (datetime_mod_CFLAGS): Likewise.
29238 (datetime_mod_LDFLAGS): Likewise.
29239 (date_mod_SOURCES): Likewise.
29240 (date_mod_CFLAGS): Likewise.
29241 (date_mod_LDFLAGS): Likewise.
29242 (datehook_mod_SOURCES): Likewise.
29243 (datehook_mod_CFLAGS): Likewise.
29244 (datehook_mod_LDFLAGS): Likewise.
29245 * conf/sparc64-ieee1275.rmk: Likewise.
29246 * lib/ieee1275/datetime.c: New file.
29248 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29250 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29251 (ieee1275_fb_mod_SOURCES): New variable.
29252 (ieee1275_fb_mod_CFLAGS): Likewise.
29253 (ieee1275_fb_mod_LDFLAGS): Likewise.
29254 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29256 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29257 (HEAP_MAX_ADDR): Likewise.
29258 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29260 Correct stop condition.
29261 (grub_ieee1275_devices_iterate): New function.
29262 * video/ieee1275.c: New file.
29264 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29266 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29268 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29270 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29271 SCRATCH_PAD_DISKBOOT as scratch.
29272 (bootit): Pass Openfirmware pointer in %o4.
29273 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29275 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29276 with util/grub-mkrawimage.c.
29277 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29278 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29279 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29280 (grub_aout_load) [GRUB_UTIL]: Likewise.
29281 * include/grub/kernel.h (grub_modules_get_end): New proto.
29282 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29283 (SCRATCH_PAD_BOOT): New definition.
29284 (SCRATCH_PAD_DISKBOOT): Likewise.
29285 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29286 * include/grub/sparc64/ieee1275/ieee1275.h
29287 (grub_ieee1275_original_stack): New variable
29288 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29290 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29291 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29292 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29293 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29294 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29295 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29296 (grub_platform_image_format_t): New type.
29297 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29298 * kern/main.c (grub_modules_get_end)
29299 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29300 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29301 (codestart): Switch stacks.
29302 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29304 (grub_heap_init): Use grub_modules_get_end.
29305 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29307 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29309 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29311 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29313 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29315 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29317 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29320 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29322 * genmoddep.awk: Output all missing symbols and not only first.
29324 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29326 * NEWS: Put the date of 1.98 release.
29328 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29330 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29333 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29335 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29336 completition in the middle of string.
29338 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29340 * util/grub-mkrescue.in: Use mktemp with explicit template.
29342 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29344 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29346 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29348 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29351 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29353 Fix FreeBSD compilation.
29355 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29356 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29358 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29360 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29362 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29364 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29366 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29368 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29370 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29372 Support relative image path in theme file.
29374 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29375 (image_set_property): Handle theme_dir and relative path.
29377 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29379 * configure.ac: Alias amd64 to x86_64.
29381 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29383 * NEWS: mention multiboot on EFI.
29385 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29387 * kern/main.c (grub_load_modules): Handle errors from init functions of
29390 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29392 * normal/autofs.c (autoload_fs_module): Handle errors.
29394 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29396 Disable linux.mod on qemu-mips since it's not functional and leads
29397 to compilation failure.
29399 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
29400 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
29401 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
29402 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
29403 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
29404 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
29405 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
29406 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
29407 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
29408 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
29409 Reported by: BVK Chaitanya
29411 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
29413 * INSTALL: Add gettext as a dependency and add qemu to a new section
29414 "Prerequisites for make-check".
29416 2010-03-04 Christian Franke <franke@computer.org>
29418 * util/grub-pe2elf.c: Add missing include "progname.h".
29420 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29422 * normal/crypto.c (read_crypto_list): Fix a typo.
29423 Reported by: Seth Goldberg.
29425 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29427 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
29428 Reported by: Seth Goldberg.
29430 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29432 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
29435 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29437 * genmk.rb: Remove terminal*.lst in make clean.
29438 Reported by: Seth Goldberg.
29440 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29442 * util/i386/efi/grub-install.in: Copy gettext files.
29444 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29446 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
29448 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29450 Wait for user entry basing on presence of output rather than on errors.
29452 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
29453 (grub_install_newline_hook): Likewise.
29454 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
29455 * normal/menu.c (show_menu): Check line_counter to determine presence
29457 * normal/term.c (grub_normal_line_counter): New variable.
29458 (grub_normal_get_line_counter): New function.
29459 (grub_install_newline_hook): Likewise.
29461 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29463 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
29465 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29467 * configure.ac: Update version to 1.98.
29469 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
29471 * util/grub.d/10_linux.in (linux_entry): Don't default to
29472 gfxpayload=keep if Linux doesn't support video handover.
29474 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
29476 Don't compile video modules on yeeloong since video subsystem is part
29479 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
29480 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
29481 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
29482 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
29483 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
29484 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
29485 * include/grub/bitmap_scale.h: Likewise.
29486 * include/grub/bufio.h: Likewise.
29487 * include/grub/font.h: Likewise.
29488 * include/grub/gfxterm.h: Likewise.
29489 * include/grub/video.h: Likewise.
29490 * include/grub/vbe.h: Don't include video_fb.h.
29491 * video/i386/pc/vbe.c: Include video_fb.h.
29492 * commands/i386/pc/vbetest.c: Include video.h.
29494 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
29496 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
29497 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
29498 default entry if GRUB_SAVEDEFAULT=true. This allows using
29499 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
29500 saving a new default on every boot.
29502 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
29504 * normal/crypto.c (read_crypto_list): Fix a memory leak.
29505 * normal/term.c (read_terminal_list): Likewise.
29506 * normal/main.c (grub_normal_init_page): Likewise.
29507 (grub_normal_read_line_real): Likewise.
29509 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
29511 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
29513 Reported by: Seth Goldberg.
29515 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
29517 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
29518 duplicate declaration of `start'.
29520 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
29522 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
29524 Reported by: Georgy Buranov
29526 2010-02-20 Carles Pina i Estany <carles@pina.cat>
29528 * util/grub-mkrawimage.c (usage): Change string formatting to
29531 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
29533 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
29536 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
29538 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
29539 Reported by: Michael Suchanek.
29541 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
29543 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
29544 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
29546 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
29548 Remove any reference to non-free fonts.
29550 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
29551 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
29552 uses non-free components.
29553 * font/font.c (grub_font_get_name): Remove example name.
29554 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
29555 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
29556 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
29557 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
29559 2010-02-16 Georgy Buranov <gburanov@gmail.com>
29561 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
29563 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
29565 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
29567 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
29569 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
29571 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
29573 * gensymlist.sh.in: Use TARGET_CC instead of CC.
29575 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29577 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
29578 * docs/grub.texi (Command-line and menu entry commands): Document play
29581 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29583 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
29584 parse arguments as inline tempo and notes. Move code for playing notes
29586 (play): ... new function.
29588 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29590 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
29591 grub_uint16_t instead of short.
29592 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
29593 disk from little endian to cpu endianness.
29595 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
29597 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
29598 GRUB_TICKS_PER_SECOND instead of 120.
29600 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29602 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
29603 escape sequence after \e.
29605 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29607 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
29608 non-ASCII characters.
29610 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29612 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
29613 set root in single quotes to prevent \, from being unescaped.
29615 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29617 Prevent unknown commands from stopping menuentry execution.
29619 * script/execute.c (grub_script_execute_cmdline): Print error after
29622 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29624 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
29625 Reported by: Pavel Pisa.
29627 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29629 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
29631 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29633 Merge grub_ieee1275_map_physical into grub_map and rename to
29636 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
29637 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
29639 * kern/ieee1275/openfw.c (grub_map): Rename to ...
29640 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
29642 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
29644 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29646 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
29647 opening and not after.
29649 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29651 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
29654 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29656 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
29657 (alloc_phys): Use ALIGN_UP instead of align_addr.
29659 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29661 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
29663 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29665 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
29667 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29669 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
29672 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29674 Fix over-4GiB seek on sparc64.
29676 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
29677 Replace pos_i and pos_lo with pos. All users updated.
29678 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
29680 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
29682 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
29685 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29687 * util/grub-mkrawimage.c (main): Call set_program_name.
29689 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29691 Properly align 64-bit targets.
29693 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
29694 (generate_image): Use ALIGN_ADDR.
29696 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29698 Properly create cross-endian images.
29700 * include/grub/types.h (grub_host_to_target_addr): New macro
29701 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
29703 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29705 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
29707 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29709 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
29711 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
29712 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
29713 (grub_linux_boot): Divide by 64K when on VESA.
29715 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29717 Support GRUB_GFXPAYLOAD_LINUX.
29719 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
29720 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
29722 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29724 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
29725 to show messages instead of discarding them.
29726 Process errors after executing command and not before. Keep old method
29729 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
29731 * configure.ac: Check for ft2build.h.
29733 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29735 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
29737 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29739 * genkernsyms.sh.in: Use TARGET_CC.
29741 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
29745 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29747 * include/grub/multiboot2.h: Remove leftover file.
29748 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
29749 * include/grub/partition.h [GRUB_UTIL]: Likewise.
29751 2010-02-07 Yves Blusseau <blusseau@zetam.org>
29753 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
29755 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29757 Fix warnings in grub-emu when compiling with maximum warning options.
29759 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
29760 (grub_arch_modules_addr): Return 0 and not NULL.
29761 * util/misc.c (ENABLE_RELOCATABLE): New definition.
29762 (xstrdup): Use newstr instead of dup.
29763 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
29764 of disk to dsk to avoid shadowing.
29765 (find_free_slot): Fix prototype.
29766 * util/getroot.c (grub_util_is_dmraid): Make static.
29767 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
29768 Add missing prototype.
29769 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
29771 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29773 * loader/i386/linux.c (grub_linux_setup_video): Handle error
29776 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29778 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
29781 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29783 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
29784 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
29785 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
29786 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
29787 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
29788 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
29790 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29792 * include/grub/err.h (grub_err_printf): Don't export.
29794 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29796 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
29798 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29800 * include/grub/i18n.h (grub_gettext_dummy): Removed.
29801 * kern/misc.c (grub_gettext_dummy): Make static.
29803 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29805 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
29807 * kern/term.c (grub_putchar): Likewise.
29809 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29811 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
29812 buggy hook call and memory leak.
29814 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29816 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
29818 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29820 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
29822 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29824 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
29826 Return grub_errno on allocation error.
29828 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29830 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
29832 2010-02-06 Yves Blusseau <blusseau@zetam.org>
29834 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
29835 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
29837 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29839 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
29841 (grub_pxefs_open): Likewise.
29843 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29845 * util/grub.d/10_hurd.in: Add --class information to menuentries.
29846 * util/grub.d/10_kfreebsd.in: Likewise.
29847 * util/grub.d/10_linux.in: Likewise.
29849 2010-02-06 Colin D Bennett <colin@gibibit.com>
29851 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
29852 (gfxmenu_mod_SOURCES): New variable.
29853 (gfxmenu_mod_CFLAGS): Likewise.
29854 (gfxmenu_mod_LDFLAGS): Likewise.
29855 * include/grub/term.h (grub_term_set_current_output): Declare
29857 * docs/gfxmenu-theme-example.txt: New file.
29858 * gfxmenu/gfxmenu.c: Likewise.
29859 * gfxmenu/gui_box.c: Likewise.
29860 * gfxmenu/gui_canvas.c: Likewise.
29861 * gfxmenu/gui_circular_progress.c: Likewise.
29862 * gfxmenu/gui_image.c: Likewise.
29863 * gfxmenu/gui_label.c: Likewise.
29864 * gfxmenu/gui_list.c: Likewise.
29865 * gfxmenu/gui_progress_bar.c: Likewise.
29866 * gfxmenu/gui_string_util.c: Likewise.
29867 * gfxmenu/gui_util.c: Likewise.
29868 * gfxmenu/icon_manager.c: Likewise.
29869 * gfxmenu/model.c: Likewise.
29870 * gfxmenu/named_colors.c: Likewise.
29871 * gfxmenu/theme_loader.c: Likewise.
29872 * gfxmenu/view.c: Likewise.
29873 * gfxmenu/widget-box.c: Likewise.
29874 * include/grub/gfxmenu_model.h: Likewise.
29875 * include/grub/gfxmenu_view.h: Likewise.
29876 * include/grub/gfxwidgets.h: Likewise.
29877 * include/grub/gui.h: Likewise.
29878 * include/grub/gui_string_util.h: Likewise.
29879 * include/grub/icon_manager.h: Likewise.
29881 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29883 Agglomerate scrolling in gfxterm.
29885 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
29886 (grub_virtual_screen_setup): Initialise 'total_screen'.
29887 (write_char): Split to ...
29888 (paint_char): ... this ...
29889 (write_char): ... and this.
29890 (paint_char): Handle delayed scrolling.
29891 (draw_cursor): Likewise.
29892 (scroll_up): Split to ...
29893 (real_scroll): ... this ...
29894 (scroll_up): ... and this.
29895 (real_scroll): Handle multi-line scroll and draw below-the-bottom
29897 (grub_gfxterm_refresh): Call real_scroll.
29899 2010-02-06 Colin D Bennett <colin@gibibit.com>
29901 * include/grub/misc.h (grub_iscntrl): New inline function.
29902 (grub_isalnum): Likewise.
29903 (grub_strtol): Likewise.
29905 2010-02-06 Colin D Bennett <colin@gibibit.com>
29907 * normal/menu_text.c (get_entry_number): Move from here ...
29908 * normal/menu.c (get_entry_number): ... moved here.
29909 * include/grub/menu.h (grub_menu_get_default_entry_index):
29911 * normal/menu.c (grub_menu_get_default_entry_index): New function.
29912 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
29913 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
29914 (grub_menu_viewer_should_return): Likewise.
29915 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
29916 * normal/menu_text.c (run_menu): Enable menu switching.
29917 * normal/menu_viewer.c (should_return): New variable.
29918 (menu_viewer_changed): Likewise.
29919 (grub_menu_viewer_show_menu): Handle menu viewer changes.
29920 (grub_menu_viewer_should_return): New function.
29921 (menuviewer_write_hook): Likewise.
29922 (grub_menu_viewer_init): Likewise.
29924 2010-02-06 Colin D Bennet <colin@gibibit.com>
29925 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29927 Support for gfxterm in a window.
29929 * include/grub/gfxterm.h: New file.
29930 * include/grub/video.h (struct grub_video_rect): New declaration.
29931 (grub_video_rect_t): Likewise.
29932 * term/gfxterm.c (struct grub_gfxterm_window): New type.
29933 (refcount): New variable.
29934 (render_target): Likewise.
29935 (window): Likewise.
29936 (repaint_callback): Likewise.
29937 (grub_virtual_screen_setup): Use 'render_target'.
29938 (init_window): New function.
29939 (grub_gfxterm_init_window): Likewise.
29940 (grub_gfxterm_init): Check reference counter.
29942 (destroy_window): New function.
29943 (grub_gfxterm_destroy_window): Likewise.
29944 (grub_gfxterm_fini): Check reference counter.
29945 Use destroy_window.
29946 (redraw_screen_rect): Restore viewport.
29947 Use 'render_target' and 'window'.
29948 Call 'repaint_callback'.
29949 (write_char): Use 'render_target'.
29950 (draw_cursor): Likewise.
29951 (scroll_up): Restore viewport.
29952 Use 'render_target' and 'window'.
29953 Call 'repaint_callback'.
29954 (grub_gfxterm_cls): Likewise.
29955 (grub_gfxterm_refresh): Use 'window'.
29956 (grub_gfxterm_set_repaint_callback): New function.
29957 (grub_gfxterm_background_image_cmd): Use 'window'.
29958 (grub_gfxterm_get_term): New function.
29959 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
29961 2010-02-06 Colin D Bennett <colin@gibibit.com>
29963 Bitmap scaling support.
29965 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
29966 (bitmap_scale_mod_SOURCES): New variable.
29967 (bitmap_scale_mod_CFLAGS): Likewise.
29968 (bitmap_scale_mod_LDFLAGS): Likewise.
29969 * include/grub/bitmap_scale.h: New file.
29970 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
29971 (background_image_cmd_options): New variable.
29972 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
29973 (cmd): Rename and change type to ...
29974 (background_image_cmd_handle): ... this. All users updated.
29975 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
29976 * video/bitmap_scale.c: New file.
29978 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29982 * Makefile.in (LIBSDL): New variable.
29983 (enable_grub_emu_sdl): Likewise.
29984 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
29985 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
29986 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
29987 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
29988 * util/sdl.c: New file.
29990 2010-02-06 Colin D Bennett <colin@gibibit.com>
29991 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29993 Double buffering support.
29995 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
29996 * include/grub/video.h: Update comment.
29997 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
29999 (grub_video_fb_doublebuf_blit_init): New prototype.
30000 * term/gfxterm.c (scroll_up): Support double buffering.
30001 (grub_gfxterm_refresh): Likewise.
30002 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30003 (grub_video_fb_doublebuf_blit_init): Likewise.
30004 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30005 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30006 'displayed_page', 'render_page' and 'update_screen'.
30007 (grub_video_vbe_fini): Free offscreen buffer.
30008 (doublebuf_pageflipping_commit): New function.
30009 (doublebuf_pageflipping_update_screen): Likewise.
30010 (doublebuf_pageflipping_init): Likewise.
30011 (double_buffering_init): Likewise.
30012 (grub_video_vbe_setup): Enable doublebuffering.
30013 (grub_video_vbe_swap_buffers): Implement.
30014 (grub_video_vbe_set_active_render_target): Handle double buffering.
30015 (grub_video_vbe_get_active_render_target): Likewise.
30016 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30017 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30018 (grub_video_vbe_enable_double_buffering): Likewise.
30019 (grub_video_vbe_swap_buffers): Use update_screen.
30020 (grub_video_set_mode): Use double buffering.
30022 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30024 * maintainance/gentrigtables.py: Remove.
30025 * lib/trig.c: Likewise.
30027 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30029 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30031 (trigtables.c): New rule.
30032 (gentrigtables): Likewise.
30033 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30035 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30037 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30040 2010-02-06 Colin D Bennet <colin@gibibit.com>
30042 Trigonometry support.
30044 * include/grub/trig.h: New file.
30045 * lib/trig.c: Likewise.
30046 * maintainance/gentrigtables.py: Likewise.
30047 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30048 (trig_mod_SOURCES): New variable.
30049 (trig_mod_CFLAGS): Likewise.
30050 (trig_mod_LDFLAGS): Likewise.
30052 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30054 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30057 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30059 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30062 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30064 * util/hostdisk.c (open_device): Don't use partition device when reading
30065 before the partition.
30066 (grub_util_biosdisk_read): Don't read from partition and before the
30067 partition in single operation.
30068 (grub_util_biosdisk_write): Don't write to partition and before the
30069 partition in single operation.
30071 2010-02-03 Torsten Landschoff <torsten@debian.org>
30073 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30076 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30078 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30080 (grub_biosdisk_write): Refuse to write to CDROM.
30082 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30084 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30086 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30088 * font/font.c (find_glyph): Check that bmp_idx is available before
30090 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30091 with (font == NULL).
30093 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30095 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30097 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30099 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30100 * util/grub-script-check.c (getline): Fix empty lines case.
30102 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30104 * Makefile.in (check): Exit with fail status when one of the tests
30106 * tests/example_functional_test.c (example_test): Fix reversed assert.
30107 * tests/example_unit_test.c (example_test): Likewise.
30109 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30111 * util/grub.d/10_linux.in: This script does not use any of the
30112 contents of gettext.sh, only the external command `gettext', so stop
30113 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30114 the same prefix as GRUB.)
30115 * util/grub.d/10_kfreebsd.in: Likewise.
30117 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30119 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30122 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30124 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30127 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30129 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30130 having a 4KiB and not 32KiB buffer size.
30132 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30134 * util/hostfs.c: Include `<errno.h>'.
30135 (grub_hostfs_read): Handle errors from fseeko() and fread().
30137 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30139 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30140 loop when using read hooks on files whose size isn't sector-aligned.
30142 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30144 Remove unused parameter.
30146 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30147 (grub_iso9660_open): Remove initialization of `data->length'.
30149 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30151 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30152 memleak conditions.
30154 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30156 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30157 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30159 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30161 * util/bin2h.c (usage): Fix warning (space after backslash).
30163 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30165 * font/font.c: Include `grub/fontformat.h.
30166 Remove font file format constants.
30167 (grub_font_load): Use the new macros.
30168 * include/grub/fontformat.h: New file.
30169 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30170 (write_font_pf2): Use the new macros.
30172 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30174 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30177 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30179 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30181 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30182 (_start): Macroify `0x7F'.
30184 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30185 (make_install_device): Use "(pxe)" as fallback prefix when booting
30188 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30190 * configure.ac: Reset LIBS after check for libgcc symbols.
30192 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30194 * util/hostdisk.c (open_device): Add trailing newline to debug
30197 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30199 * configure.ac: Check for `limits.h'.
30200 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30202 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30204 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30205 capitalize error strings.
30207 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30209 * util/grub.d/10_hurd.in: Add a recovery mode.
30211 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30213 * configure.ac: Check for libgcc symbols with -nostdlib.
30215 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30217 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30219 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30221 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30222 stack since heap may be unavailable at that point.
30223 (grub_ofconsole_gotoxy): Likewise.
30225 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30227 * configure.ac: Check for _restgpr_14_x.
30228 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30229 and _savegpr_* prototypes.
30231 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30233 Use generic grub_reboot() for i386-efi.
30235 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30236 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30237 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30239 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30241 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30242 presence of "prefix" variable as it breaks when normal.mod is
30245 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30247 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30248 stack since heap is unavailable at that point.
30250 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30252 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30253 (grub_freebsd_bootinfo): Rewritten.
30254 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30256 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30258 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30260 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30262 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30265 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30267 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30268 around for handling "/" to the correct fix. Fix a memory leak. Use
30269 xstrdup instead of strdup.
30271 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30273 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30275 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30277 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30279 * font/font.c (struct grub_font): New member 'bmp_idx'.
30280 (font_init): Initialise 'bmp_idx'.
30281 (load_font_index): Fill 'bmp_idx'.
30282 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30284 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30286 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30289 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30291 Move context handling out of the kernel.
30293 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30294 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30295 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30296 * conf/i386-efi.rmk: Likewise.
30297 * conf/i386-ieee1275.rmk: Likewise.
30298 * conf/i386-pc.rmk: Likewise.
30299 * conf/powerpc-ieee1275.rmk: Likewise.
30300 * conf/sparc64-ieee1275.rmk: Likewise.
30301 * conf/x86_64-efi.rmk: Likewise.
30302 * include/grub/env.h: Include grub/menu.h.
30303 (grub_env_var_type): Removed.
30304 (grub_env_var): Replaced field 'type' with 'global'.
30305 (grub_env_find): New prototype.
30306 (grub_env_context_open): Remove EXPORT_FUNC.
30307 (grub_env_context_close): Likewise.
30308 (grub_env_export): Likewise.
30309 (grub_env_set_data_slot): Removed.
30310 (grub_env_get_data_slot): Likewise.
30311 (grub_env_unset_data_slot): Likewise.
30312 (grub_env_unset_menu): New prototype.
30313 (grub_env_set_menu): Likewise.
30314 (grub_env_get_menu): Likewise.
30315 * include/grub/env_private.h: New file.
30316 * include/grub/normal.h (grub_context_init): New prototype.
30317 (grub_context_fini): Likewise.
30318 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30319 * normal/context.c (grub_cmd_export): ... to here.
30320 * kern/env.c: Include env_private.h.
30321 (HASHSZ): Moved to include/grub/env_private.h.
30322 (grub_env_context): Likewise.
30323 (grub_env_sorted_var): Likewise.
30324 (current_context): Renamed from this ...
30325 (grub_current_context): ...to this. 'static' removed. All users updated.
30326 (grub_env_find): Removed 'static'.
30327 (grub_env_context_open): Moved to normal/context.c.
30328 (grub_env_context_close): Likewise.
30329 (grub_env_export): Likewise.
30330 (mangle_data_slot_name): Removed.
30331 (grub_env_set_data_slot): Likewise.
30332 (grub_env_get_data_slot): Likewise.
30333 (grub_env_unset_data_slot): Likewise.
30334 * kern/main.c (grub_set_root_dev): Don't export root.
30335 It will be done later.
30336 (grub_main): Don't export prefix.
30337 It will be done later.
30338 * normal/context.c: New file.
30339 * normal/main.c (free_menu): Use grub_env_unset_menu.
30340 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30341 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30342 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30343 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30345 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30349 * commands/setpci.c: New file.
30350 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30351 (setpci_mod_SOURCES): New variable.
30352 (setpci_mod_CFLAGS): Likewise.
30353 (setpci_mod_LDFLAGS): Likewise.
30355 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30357 Byte-addressable PCI configuration space.
30359 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30361 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30362 GRUB_PCI_REG_CACHELINE.
30363 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30364 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30365 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30366 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30367 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30368 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30369 grub_pci_make_address.
30370 (lock_rom_area): Likewise.
30371 * commands/lspci.c (grub_lspci_iter): Use macroses
30372 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30373 of grub_pci_make_address.
30374 * disk/ata.c (grub_ata_pciinit): Likewise.
30375 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30376 (GRUB_PCI_REG_VENDOR): Likewise.
30377 (GRUB_PCI_REG_DEVICE): Likewise.
30378 (GRUB_PCI_REG_COMMAND): Likewise.
30379 (GRUB_PCI_REG_STATUS): Likewise.
30380 (GRUB_PCI_REG_REVISION): Likewise.
30381 (GRUB_PCI_REG_CLASS): Likewise.
30382 (GRUB_PCI_REG_CACHELINE): Likewise.
30383 (GRUB_PCI_REG_LAT_TIMER): Likewise.
30384 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
30385 (GRUB_PCI_REG_BIST): Likewise.
30386 (GRUB_PCI_REG_ADDRESSES): Likewise.
30387 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30388 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30389 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30390 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30391 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30392 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30393 (GRUB_PCI_REG_CIS_POINTER): Likewise.
30394 (GRUB_PCI_REG_SUBVENDOR): Likewise.
30395 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
30396 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
30397 (GRUB_PCI_REG_CAP_POINTER): Likewise.
30398 (GRUB_PCI_REG_IRQ_LINE): Likewise.
30399 (GRUB_PCI_REG_IRQ_PIN): Likewise.
30400 (GRUB_PCI_REG_MIN_GNT): Likewise.
30401 (GRUB_PCI_REG_MAX_LAT): Likewise.
30402 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
30403 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
30404 * video/efi_uga.c (find_framebuf): Likewise.
30405 * video/sm712.c (grub_video_sm712_setup): Likewise.
30406 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
30409 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30411 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
30412 can be reliably determined to be supported.
30414 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30416 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
30417 that VESA is supported.
30418 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
30421 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30423 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
30425 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30427 * util/misc.c (make_system_path_relative_to_its_root): Work around
30428 special-casing of "/", as previous incarnation of this routine did.
30430 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30432 Fix any-emu compilation.
30434 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
30435 * grub_bin2h_SOURCES: New variable.
30437 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30439 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
30441 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30443 * util/grub.d/00_header.in: Fix handling of locale_dir.
30445 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30447 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
30448 as possible unifont location (Gentoo).
30449 Reported by: Alexander Brüning
30451 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30453 Don't try to generate lists for kernel.img.
30455 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
30456 (pkglib_MODULES): Remove kernel.img.
30457 (kernel_img_EXPORTS): Removed.
30458 (kernel_img_RELOCATABLE): New variable.
30459 * conf/x86_64-efi.rmk: Likewise.
30460 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
30462 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30464 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
30465 grub_xasprintf or grub_snprintf.
30466 (grub_vsprintf): Likewise.
30467 (grub_snprintf): New proto.
30468 (grub_vsnprintf): Likewise.
30469 (grub_xasprintf): Likewise.
30470 (grub_xvasprintf): Likewise.
30471 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
30472 (grub_sprintf): Removed.
30473 (grub_vsnprintf): New function.
30474 (grub_snprintf): Likewise.
30475 (grub_xvasprintf): Likewise.
30476 (grub_xasprintf): Likewise.
30477 (grub_vsprintf): Renamed to ...
30478 (grub_vsnprintf_real): ...this. New argument max_len.
30480 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
30482 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
30483 fix grub-script-check warning.
30485 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30487 * include/grub/font.h (grub_font_load): Fix prototype.
30489 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30491 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
30493 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30495 * include/grub/x86_64/at_keyboard.h: New file.
30497 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30499 * loader/mips/linux.c: Include missing grub/i18n.h.
30501 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30503 * normal/menu.c (notify_execution_failure): Clarify error message.
30505 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30507 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
30508 return value (and revert all return statements). Update users.
30510 2010-01-20 Dan Merillat <debian@dan.merillat.org>
30512 * kern/device.c (grub_device_iterate): Allocate new part_ent
30513 structure based on sizeof (*p) rather than sizeof (p->next), to
30514 account for structure padding.
30516 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
30517 disk is NULL, which might happen for LVM physical volumes with no
30520 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30522 * loader/mips/linux.c (grub_cmd_initrd)
30523 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
30525 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30527 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
30528 (grub_video_video_init, grub_video_bitmap_init)
30529 (grub_font_manager_init, grub_term_gfxterm_init)
30530 (grub_at_keyboard_init): New extern declarations.
30531 (grub_machine_init): Initialize gfxterm and at_keyboard.
30533 * kern/main.c (grub_main): Revert grub_printf delay kludge.
30535 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
30536 `gfxterm.mod' into core image.
30538 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30539 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30540 (kernel_img_FORMAT): Copy to ...
30542 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30543 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30544 (kernel_img_FORMAT): ... here, and ...
30546 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30547 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30548 (kernel_img_FORMAT): ... here.
30550 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
30551 and input (at_keyboard) terminals in kernel.
30552 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
30554 (pkglib_MODULES): Remove `pci.mod'.
30555 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
30556 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
30557 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
30558 (at_keyboard_mod_LDFLAGS): Remove variables.
30560 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
30562 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
30564 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
30566 * include/grub/mips/libgcc.h: Only export symbols for functions
30567 that libgcc provides.
30569 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
30573 * bus/bonito.c: New file.
30574 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
30575 GRUB_PCI_NUM_DEVICES.
30576 * term/i386/pc/serial.c: Move to ...
30577 * term/serial.c: ... here. All users updated.
30578 * util/i386/pc/grub-mkimage.c: Move to ...
30579 * util/grub-mkrawimage.c: ... here. All users updated.
30580 * term/i386/pc/at_keyboard.c: Move to ...
30581 * term/at_keyboard.c: ... here. All users updated.
30582 * conf/mips-qemu-mips.rmk: New file.
30583 * conf/mips-yeeloong.rmk: Likewise.
30584 * conf/mips.rmk: Likewise.
30585 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
30587 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
30589 (grub_ata_pciinit): Support CS5536.
30590 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
30591 * font/font_cmd.c (loadfont_command): Open file before passing it to
30593 (pseudo_file_read): New function.
30594 (pseudo_file_close): Likewise.
30595 (pseudo_fs): New structure.
30596 (load_font_module): New function.
30597 (GRUB_MOD_INIT(font_manager)): Load embedded font.
30598 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
30599 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
30600 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
30601 * include/grub/i386/at_keyboard.h: Split into ...
30602 * include/grub/at_keyboard.h: ... this ...
30603 * include/grub/i386/at_keyboard.h: ... and this.
30604 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
30606 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
30608 (grub_elf64_size): Likewise.
30609 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
30611 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
30612 * include/grub/i386/coreboot/serial.h: Rewritten.
30613 * include/grub/i386/ieee1275/serial.h: Include
30614 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
30615 * include/grub/i386/pc/serial.h: Moved from here ...
30616 * include/grub/serial.h: ... to here. All users updated.
30617 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
30618 (GRUB_PCI_NUM_BUS): Likewise.
30619 (GRUB_PCI_NUM_DEVICES): Likewise.
30620 (grub_pci_device_map_range): Add missing volatile keyword.
30621 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
30622 * include/grub/mips/at_keyboard.h: New file.
30623 * include/grub/mips/cache.h: Likewise.
30624 * include/grub/mips/io.h: Likewise.
30625 * include/grub/mips/kernel.h: Likewise.
30626 * include/grub/mips/libgcc.h: Likewise.
30627 * include/grub/mips/pci.h: Likewise.
30628 * include/grub/mips/qemu-mips/boot.h: Likewise.
30629 * include/grub/mips/qemu-mips/kernel.h: Likewise.
30630 * include/grub/mips/qemu-mips/loader.h: Likewise.
30631 * include/grub/mips/qemu-mips/memory.h: Likewise.
30632 * include/grub/mips/qemu-mips/serial.h: Likewise.
30633 * include/grub/mips/qemu-mips/time.h: Likewise.
30634 * include/grub/mips/relocator.h: Likewise.
30635 * include/grub/mips/time.h: Likewise.
30636 * include/grub/mips/types.h: Likewise.
30637 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
30638 * include/grub/mips/yeeloong/boot.h: Likewise.
30639 * include/grub/mips/yeeloong/kernel.h: Likewise.
30640 * include/grub/mips/yeeloong/loader.h: Likewise.
30641 * include/grub/mips/yeeloong/memory.h: Likewise.
30642 * include/grub/mips/yeeloong/pci.h: Likewise.
30643 * include/grub/mips/yeeloong/serial.h: Likewise.
30644 * include/grub/mips/yeeloong/time.h: Likewise.
30645 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
30646 * kern/elf.c (grub_elf32_size): New parameter. All users
30648 (grub_elf64_size): Likewise.
30649 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
30650 Load modules before saying "Welcome to GRUB!".
30651 Call grub_refresh after saying "Welcome to GRUB!".
30652 * kern/mips/cache.S: New file.
30653 * kern/mips/cache_flush.S: Likewise.
30654 * kern/mips/dl.c: Likewise.
30655 * kern/mips/init.c: Likewise.
30656 * kern/mips/qemu-mips/init.c: Likewise.
30657 * kern/mips/startup.S: Likewise.
30658 * kern/mips/yeeloong/init.c: Likewise.
30659 * kern/term.c (grub_putcode): Handle NULL terminal.
30660 (grub_getcharwidth): Likewise.
30661 (grub_getkey): Likewise.
30662 (grub_checkkey): Likewise.
30663 (grub_getkeystatus): Likewise.
30664 (grub_getxy): Likewise.
30665 (grub_getwh): Likewise.
30666 (grub_gotoxy): Likewise.
30667 (grub_cls): Likewise.
30668 (grub_setcolorstate): Likewise.
30669 (grub_setcolor): Likewise.
30670 (grub_getcolor): Likewise.
30671 (grub_refresh): Likewise.
30672 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
30673 (write_jump): Add hatch nop.
30674 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
30675 * lib/mips/setjmp.S: New file.
30676 * loader/mips/linux.c: Likewise.
30677 * term/i386/pc/at_keyboard.c: Move from here ...
30678 * term/at_keyboard.c: ... to here.
30679 * term/i386/pc/serial.c: Moved from here ...
30680 * term/serial.c: ... to here. All users updated.
30681 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
30682 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
30683 (serial_translate_key_sequence): Avoid deadlock.
30684 (grub_serial_getkey): Handle backspace.
30685 (grub_serial_putchar): Fix newline handling.
30686 * util/i386/pc/grub-mkimage.c: Move from here ...
30687 * util/grub-mkrawimage.c: ... to here. All users updated.
30688 (generate_image): New parameters 'font_path' and 'format'.
30689 Support embedding font.
30690 Use grub_host_to_target* instead of grub_cpu_to_le*.
30691 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
30692 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
30693 (options): New option "--font".
30695 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
30696 (main): Handle "--font".
30697 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
30698 (grub_virtual_screen_setup): Set bg_color_display.
30699 (redraw_screen_rect): Use bg_color_display instead of incorrect
30701 (grub_gfxterm_cls): Likewise.
30702 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
30703 Support embedding config file.
30704 (add_segments): Likewise.
30705 (options): New option "--config".
30706 (main): Handle "--config".
30707 * video/sm712.c: New file.
30709 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30711 Fix parallel builds.
30713 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
30714 font.c depend on ascii.h).
30716 2010-01-12 Carles Pina i Estany <carles@pina.cat>
30718 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
30720 2010-01-11 Carles Pina i Estany <carles@pina.cat>
30722 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
30723 By default: disabled.
30724 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
30727 2010-01-10 Carles Pina i Estany <carles@pina.cat>
30729 * font/font.c: Update copyright years.
30730 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
30732 2010-01-10 Carles Pina i Estany <carles@pina.cat>
30734 * font/font.c: Include `ascii.h'.
30735 (ASCII_BITMAP_SIZE): New macro.
30736 (ascii_font_glyph): Define.
30737 (ascii_glyph_lookup): New function.
30738 (grub_font_get_string_width): Change comment. If glyph not found, use
30739 ascii_glyph_lookup.
30740 (grub_font_get_glyph_with_fallback): If glyph not available returns
30741 ascii_glyph_lookup.
30742 * util/grub-mkfont.c (file_formats): New enum.
30743 (options): Add `ascii-bitmaps' new option.
30744 (usage): Add `asii-bitmaps' new option.
30745 (write_font_ascii_bitmap): New function.
30746 (write_font): Rename to ...
30747 (write_font_p2): ... this. Remove print_glyphs call.
30748 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
30749 used. Call print_glyphs.
30750 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
30752 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
30754 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
30755 (grub_bin2h_SOURCES): New variable.
30756 * util/bin2h.c: New file.
30758 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30760 * include/multiboot.h: Resynced with spec.
30761 * include/multiboot2.h: Likewise.
30762 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
30763 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
30765 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30767 * include/grub/term.h (grub_term_register_input,
30768 grub_term_register_output): Check return of terminal init()
30769 routines, and abort if errors are raised.
30771 * commands/terminal.c: Update copyright year.
30773 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30775 * commands/terminal.c (grub_cmd_terminal_input)
30776 (grub_cmd_terminal_output): Check return of terminal init()
30777 routines, and abort if errors are raised.
30779 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
30781 * include/grub/i386/bsd.h: Fix include pathes.
30783 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
30785 Add missing *BSD copyright headers.
30787 * include/grub/aout.h: Add BSD licence.
30788 * include/grub/i386/bsd.h: Parts under different licences moved to ...
30789 * include/grub/i386/freebsd_linker.h: ... here,
30790 * include/grub/i386/freebsd_reboot.h: ... here,
30791 * include/grub/i386/netbsd_bootinfo.h: ... here,
30792 * include/grub/i386/netbsd_reboot.h: ... here,
30793 * include/grub/i386/openbsd_bootarg.h: ... here,
30794 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
30795 licence to each file.
30797 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30799 * acinclude.m4: Remove `nop' assembly instruction; it's not
30800 implemented by all architectures.
30802 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30804 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
30805 ELILO. This is no longer necessary.
30807 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
30809 Added new tool, grub-scrit-check to verify grub.cfg syntax.
30811 * util/grub-script-check.c: grub-script-check tool.
30812 * conf/common.rmk: Make rules for grub-script-check.
30814 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30816 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
30817 spotting it back in 2008. Shame on me for forgetting he did.
30819 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
30821 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30823 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
30824 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
30825 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
30826 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
30827 (GRUB_VIDEO_TYPE_EFI): Rename to ...
30828 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
30830 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
30832 * include/grub/test.h: Add license header.
30833 * tests/example_functional_test.c: Likewise.
30834 * tests/example_unit_test.c: Likewise.
30835 * tests/lib/functional_test.c: Likewise.
30836 * tests/lib/test.c: Likewise.
30837 * tests/lib/unit_test.c: Likewise.
30839 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
30841 Use flag-based instead of hook-based video mode selection and "auto"
30844 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
30845 (grub_video_set_mode): Changed prototype. All users updated.
30846 (grub_video_check_mode_flag): New inline function.
30847 * video/video.c (parse_modespec): New function.
30848 (grub_video_set_mode): Parse flags and keywords.
30850 2010-01-17 Carles Pina i Estany <carles@pina.cat>
30852 * util/misc.c (grub_util_info): Fix the order of the parameters in a
30855 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
30857 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
30859 2010-01-16 Carles Pina i Estany <carles@pina.cat>
30861 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
30863 * util/grub-emu.c (usage): Likewise.
30864 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
30865 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30866 * util/i386/pc/grub-mkimage.c (usage): Likewise.
30867 * util/i386/pc/grub-setup.c (usage): Likewise.
30869 2010-01-16 Carles Pina i Estany <carles@pina.cat>
30871 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
30873 (grub_util_info): Likewise.
30874 (grub_util_error): Likewise.
30875 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
30876 and/or new lines in `grub_util_warna', `grub_util_info',
30877 `grub_util_error' calls.
30878 * util/getroot.c: Likewise.
30879 * util/grub-editenv.c: Likewise.
30880 * util/grub-emu.c: Likewise.
30881 * util/grub-fstest.c: Likewise.
30882 * util/grub-mkdevicemap.c: Likewise.
30883 * util/grub-mkfont.c: Likewise.
30884 * util/grub-mkpasswd-pbkdf2.c: Likewise.
30885 * util/grub-mkrelpath.c: Likewise.
30886 * util/grub-pe2elf.c: Likewise.
30887 * util/grub-probe.c: Likewise.
30888 * util/hostdisk.c: Likewise.
30889 * util/i386/efi/grub-mkimage.c: Likewise.
30890 * util/i386/pc/grub-mkimage.c: Likewise.
30891 * util/i386/pc/grub-setup.c: Likewise.
30892 * util/ieee1275/ofpath.c: Likewise.
30893 * util/mkisofs/eltorito.c: Likewise.
30894 * util/mkisofs/rock.c: Likewise.
30895 * util/mkisofs/write.c: Likewise.
30896 * util/raid.c: Likewise.
30897 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
30898 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30900 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30902 Enable multiboot on non-pc.
30904 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
30905 multiboot.mod and multiboot2.mod to ...
30906 * conf/i386.rmk (pkglib_MODULES): ... here.
30907 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
30909 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
30910 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
30912 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
30913 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
30915 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
30916 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
30918 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
30919 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
30921 (ata_mod_SOURCES): Removed.
30922 (ata_mod_CFLAGS): Likewise.
30923 (ata_mod_LDFLAGS): Likewise.
30924 (relocator_mod_SOURCES): Removed.
30925 (relocator_mod_CFLAGS): Likewise.
30926 (relocator_mod_ASFLAGS): Likewise.
30927 (relocator_mod_LDFLAGS): Likewise.
30929 * include/grub/x86_64/multiboot.h: New file.
30930 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
30933 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30935 Video multiboot support.
30937 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
30939 * include/multiboot.h: Resynced with multiboot specification.
30940 * include/multiboot2.h: Likewise.
30941 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
30942 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
30943 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
30944 (HAS_VGA_TEXT): Likewise.
30945 (accepts_video): New variable.
30946 (grub_multiboot_set_accepts_video): New function.
30947 (grub_multiboot_get_mbi_size): Account for video structures.
30948 (set_video_mode): New function.
30949 (retrieve_video_parameters): Likewise.
30950 (grub_multiboot_make_mbi): Fill video fields.
30952 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30956 * include/grub/video.h (grub_video_driver_id): New type.
30957 (grub_video_adapter): New member 'id'. All users updated.
30958 (grub_video_get_driver_id): New proto.
30959 * video/video.c (grub_video_get_driver_id): New function.
30961 2010-01-14 Carles Pina i Estany <carles@pina.cat>
30963 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
30966 2010-01-14 Carles Pina i Estany <carles@pina.cat>
30968 * normal/cmdline.c (print_completion): Gettextizze.
30970 2001-01-14 Carles Pina i Estany <carles@pina.cat>
30972 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
30974 2010-01-14 Carles Pina i Estany <carles@pina.cat>
30976 * gettext/gettext.c (grub_gettext_translate): Push and pop
30978 (grub_gettext_delete_list): Change comment style.
30979 * kern/err.c (grub_error): Gettextizze.
30980 (grub_fatal): Gettextizze.
30982 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
30984 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
30985 (grub_linux16_real_boot): ... this.
30986 * kern/i386/loader.S: Likewise.
30987 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
30988 (grub_linux16_boot): New function. Switches to text mode and calls
30989 grub_linux16_real_boot().
30991 * loader/i386/bsd.c: Include `<grub/video.h>'.
30992 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
30993 text mode before calling grub_unix_real_boot().
30995 * loader/i386/multiboot.c: Include `<grub/video.h>'.
30996 (grub_multiboot_boot): Switch to text mode before calling
30997 grub_relocator32_boot().
30999 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31000 (grub_chainloader_boot): Switch to text mode before calling
31001 grub_chainloader_real_boot().
31003 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31004 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31006 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31009 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31010 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31012 * util/grub.d/00_header.in: Define a "savedefault" function for use
31014 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31016 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31017 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31019 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31020 saved_entry if boot_once is unset.
31021 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31022 previous saved entry (i.e. grub-reboot).
31024 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31026 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31028 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31030 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31032 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31034 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31036 * util/grub-reboot.in: Fix --version output.
31037 * util/grub-set-default.in: Likewise.
31039 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31041 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31044 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31046 * util/grub.d/00_header.in: Quote the value assigned to `default',
31047 in case it contains spaces.
31049 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31051 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31052 `save_default_entry' call from the macosx case to the linux case.
31054 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31055 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31057 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31058 in `chosen' environment variable.
31059 * normal/menu_text.c (get_entry_number): Check if the variable
31060 matches the title of a menu entry.
31061 (run_menu): Pass menu to get_entry_number.
31063 * util/grub-reboot.in: New file.
31064 * util/grub-set-default.in: New file.
31065 * conf/common.rmk (grub-reboot): New utility.
31066 (grub-set-default): New utility.
31068 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31069 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31070 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31071 move it to `saved_entry' for the next boot. Load environment on
31073 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31074 * util/grub.d/10_hurd.in: Likewise.
31075 * util/grub.d/10_linux.in (linux_entry): Likewise.
31076 * util/grub.d/10_windows.in: Likewise.
31077 * util/grub.d/30_os-prober.in: Likewise.
31079 * util/grub-install.in: Create environment block.
31080 * util/i386/efi/grub-install.in: Likewise.
31081 * util/ieee1275/grub-install.in: Likewise.
31082 * util/sparc64/ieee1275/grub-install.in: Likewise.
31084 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31086 Unit testing framework for GRUB.
31088 * Makefile.in: Test framework build rules for 'make check'.
31089 * conf/tests.rmk: Build rules for individual tests and framework.
31091 * include/grub/test.h: Header file for whitebox tests.
31092 * tests/lib/functional_test.c: Framework support for whitebox
31094 * tests/lib/test.c: Common whitebox testing code for unit and
31096 * tests/lib/unit_test.c: Framework support for whitebox unit
31099 * tests/util/grub-shell-tester.in: Support utility for grub-script
31101 * tests/util/grub-shell.in: Utility to execute grub-script
31102 commands in a Qemu instance.
31104 * tests/example_functional_test.c: Example whitebox functional
31106 * tests/example_grub_script_test.in: Example grub-script test.
31107 * tests/example_scripted_test.in: Example scripted test.
31108 * tests/example_unit_test.c: Example whitebox unit test.
31110 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31112 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31113 Add loader/i386/multiboot_mbi.c.
31114 (multiboot2_mod_SOURCES): Likewise.
31115 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31116 (multiboot2_mod_SOURCES): Likewise.
31117 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31118 (grub_multiboot_make_mbi): Likewise.
31119 (grub_multiboot_free_mbi): Likewise.
31120 (grub_multiboot_init_mbi): Likewise.
31121 (grub_multiboot_add_module): Likewise.
31122 (grub_multiboot_set_bootdev): Likewise.
31123 * loader/i386/multiboot.c (mbi): Removed.
31124 (mbi_dest): Likewise.
31125 (alloc_mbi): New variable.
31126 (grub_multiboot_payload_size): Removed. All users updated.
31127 (grub_multiboot_pure_size): New variable.
31128 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31129 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31130 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31131 (grub_fill_multiboot_mmap): Likewise.
31132 (grub_multiboot_get_bootdev): Likewise.
31133 (grub_multiboot): Use multiboot_mbi functions.
31134 * loader/i386/multiboot_mbi.c: New file.
31136 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31138 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31139 it would result in module crash.
31141 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31143 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31144 (grub_ofconsole_getwh): Split to ...
31145 (grub_ofconsole_getwh): ... this.
31146 (grub_ofconsole_dimensions): ...and this.
31147 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31149 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31151 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31153 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31155 * loader/i386/pc/multiboot2.c: Removed stalled file.
31157 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31159 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31160 Reported by: Grégoire Sutre
31162 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31164 * util/misc.c (canonicalize_file_name): New function.
31165 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31166 instead of realpath().
31168 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31170 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31171 and make it clearer that it's optional. Based on confusion
31174 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31176 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31177 in premature implicit newline.
31179 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31181 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31182 which resulted in garbled command line at the end of screen.
31184 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31186 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31187 initialization with similar approach as with other Linux loaders.
31189 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31191 Fix i386-ieee1275 build.
31193 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31194 and grub_term_height() for video_{width,height} initialization.
31196 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31198 Fix grub-emu build.
31200 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31202 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31203 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31205 Support for multiple terminals.
31207 * Makefile.in (pkglib_DATA): terminal.lst.
31208 (terminal.lst): New target.
31209 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31210 (GRUB_MOD_INIT(handler)): Likewise.
31211 (GRUB_MOD_FINI(handler)): Likewise.
31212 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31213 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31214 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31215 (grub_cmd_sleep): Use grub_term_save_pos.
31216 * commands/terminal.c: New file.
31217 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31218 commands/terminal.c and lib/charset.c.
31219 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31220 (pkglib_MODULES): Add terminal.mod.
31221 (terminal_mod_SOURCES): New variable.
31222 (terminal_mod_CFLAGS): Likewise.
31223 (terminal_mod_LDFLAGS): Likewise.
31224 * genhandlerlist.sh: Don't handle terminals.
31225 * genmk.rb: Generate terminal-*.lst.
31226 * genterminallist.sh: New file.
31227 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31228 (grub_is_valid_utf8): Likewise.
31229 (grub_utf8_to_ucs4_alloc): Likewise.
31230 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31231 (grub_menu_register_viewer): Changed argument.
31232 (grub_menu_try_text): New proto.
31233 (grub_gfxmenu_try_hook): New declaration.
31234 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31235 (grub_menu_init_page): Additional argument term.
31236 (grub_normal_init_page): Likewise.
31237 (grub_cmdline_get): Arguments simplified.
31238 (grub_utf8_to_ucs4_alloc): Removed.
31239 (grub_print_ucs4): Additional argument term.
31240 (grub_getstringwidth): Likewise.
31241 (grub_print_message_indented): Likewise.
31242 (grub_menu_text_register_instances): New proto.
31243 (grub_show_menu): Likewise.
31244 (read_terminal_list): Likewise.
31245 (grub_set_more): Likewise.
31246 * include/grub/parser.h: Include handler.h.
31247 * include/grub/reader.h: Rewritten.
31248 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31249 (GRUB_TERM_WIDTH): Changed to function.
31250 (GRUB_TERM_HEIGHT): Likewise.
31251 (GRUB_TERM_BORDER_WIDTH): Likewise.
31252 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31253 (GRUB_TERM_NUM_ENTRIES): Likewise.
31254 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31255 (GRUB_TERM_CURSOR_X): Likewise.
31256 (grub_term_input_class): Likewise.
31257 (grub_term_output_class): Likewise.
31258 (grub_term_outputs_disabled): New declaration.
31259 (grub_term_inputs_disabled): Likewise.
31260 (grub_term_outputs): Likewise.
31261 (grub_term_inputs): Likewise.
31262 (grub_term_register_input): Rewritten.
31263 (grub_term_register_output): Likewise.
31264 (grub_term_unregister_input): Likewise.
31265 (grub_term_unregister_output): Likewise.
31266 (FOR_ACTIVE_TERM_INPUTS): New macro.
31267 (FOR_DISABLED_TERM_INPUTS): Likewise.
31268 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31269 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31270 * include/grub/terminfo.h: Add oterm argument to all protypes.
31271 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31272 Use grub_rescue_run.
31273 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31275 * kern/reader.c: Removed. All users updated.
31276 * kern/rescue_reader.c (grub_rescue_init): Removed.
31277 (grub_rescue_reader): Likewise.
31278 (grub_register_rescue_reader): Likewise.
31279 (grub_rescue_run): New function based on kern/reader.c.
31280 * kern/term.c: Adapted for multiterm.
31281 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31282 (grub_is_valid_utf8): Likewise.
31283 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31284 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31286 * loader/i386/linux.c (grub_linux_boot): Likewise.
31287 * normal/auth.c (grub_username_get): New function.
31288 (grub_auth_check_authentication): Use grub_username_get.
31289 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31290 * normal/color.c: Adapt for multiterm.
31291 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31292 (grub_normal_init_page): Additional argument term.
31293 (read_lists): Call read_terminal_lists.
31294 (grub_enter_normal_mode): Call grub_cmdline_run.
31295 Handle grub_normal_exit_level.
31296 (grub_cmd_normal): Make reentrant.
31297 (grub_cmd_normal_exit): New function.
31298 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31299 * normal/menu.c: Adapt for multiterm.
31300 * normal/menu_entry.c: Likewise.
31301 * normal/menu_text.c: Likewise.
31302 * normal/menu_viewer.c: Removed. All users updated.
31303 * normal/term.c: New file.
31304 * util/console.c: Change order of includes to workaround a bug in
31306 * term/terminfo.c: New argument oterm on all exported functions.
31308 * util/grub-editenv.c (grub_term_input_class): Removed.
31309 (grub_term_output_class): Likewise.
31311 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31313 Make loader output a bit more user-friendly.
31315 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31316 is being loaded. Likewise for the Hurd.
31318 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31319 that kernel of FreeBSD ${version} is being loaded.
31321 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31323 (grub_cmd_initrd): Likewise.
31324 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31325 that Linux ${version} is being loaded. Likewise for initrd.
31327 2010-01-09 Carles Pina i Estany <carles@pina.cat>
31329 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31331 2010-01-08 Carles Pina i Estany <carles@pina.cat>
31333 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31334 (GRUB_MOD_INIT): Gettextizze.
31335 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31336 (GRUB_MOD_INIT): Gettextizze.
31337 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31338 (grub_cmd_linux): Capitalise Linux.
31339 (GRUB_MOD_INIT): Gettextizze.
31340 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31341 (grub_cmd_linux): Capitalise Linux.
31342 (GRUB_MOD_INIT): Gettextizze.
31343 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31344 (grub_cmd_linux): Capitalise Linux.
31345 (GRUB_MOD_INIT): Gettextizze.
31346 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31347 (GRUB_MOD_INIT): Gettextizze.
31348 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31349 (grub_cmd_linux): Capitalise Linux.
31350 (GRUB_MOD_INIT): Gettextizze.
31351 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31352 (grub_cpu_xnu_init): Gettextizze.
31353 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31354 (GRUB_MOD_INIT): Gettextizze.
31355 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31356 (GRUB_MOD_INIT): Gettextizze.
31357 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31358 (grub_linux_load64): Capitalise Linux.
31359 (GRUB_MOD_INIT): Gettextizze.
31360 * loader/xnu.c: Include `<grub/i18n.h>'.
31361 (GRUB_MOD_INIT): Gettextizze.
31362 * po/POTFILES: Add `loader/efi/appleloader.c',
31363 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31364 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31365 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31366 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31367 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31368 and `loader/xnu.c'.
31370 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31372 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31374 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31376 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31377 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
31378 * util/mkisofs/mkisofs.c (main): Readjust --version output.
31380 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31382 Reset Multiboot 2 support. New loader implements the draft in
31383 /branches/multiboot2 and shares as much code as possible with the
31384 production Multiboot 1 implementation.
31386 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
31387 * loader/multiboot2.c: Likewise.
31388 * loader/i386/multiboot_helper.S: Likewise.
31389 * include/multiboot2.h: Replace with latest version from the draft
31390 in /branches/multiboot2.
31392 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
31393 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
31394 and `loader/multiboot2.c'.
31395 (pkglib_MODULES): Add `multiboot2.mod'.
31396 (multiboot2_mod_SOURCES): New variable.
31397 (multiboot2_mod_LDFLAGS): Likewise.
31398 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
31400 * conf/i386-pc.rmk: Likewise.
31402 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31403 (multiboot_mod_SOURCES): Remove variable.
31404 (multiboot_mod_LDFLAGS): Likewise.
31405 (multiboot_mod_CFLAGS): Likewise.
31407 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
31408 `<multiboot2.h>' instead of `<multiboot.h>'.
31409 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
31410 (MULTIBOOT_HEADER_MAGIC): New macros.
31412 * loader/multiboot_loader.c (module_version_status): Remove variable.
31413 (find_multi_boot2_header): Remove function.
31414 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
31415 logic. Always check for the Multiboot version we're compiling for.
31416 (grub_cmd_module_loader): Likewise.
31417 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
31418 command instead of `multiboot'.
31420 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31422 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
31423 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
31426 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31427 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31429 Fix breakage introduced with previous commit.
31431 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
31433 * normal/handler.c (read_handler_list): Revert part of previous commit
31434 affecting this file.
31435 * normal/main.c (read_lists): Move read_handler_list() call back to ...
31436 (grub_normal_execute): ... here.
31438 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31440 Merge prefix-redefinition-fix branch.
31442 * normal/autofs.c (read_fs_list): Make function capable of being
31443 run multiple times, gracefuly replacing the previous data
31445 * normal/dyncmd.c (read_command_list): Likewise.
31446 * normal/handler.c (read_handler_list): Likewise.
31447 * normal/main.c (read_lists): New function. Calls all the
31448 list reading functions.
31449 (grub_normal_execute): Use read_lists() instead of calling all
31450 list reading functions explicitly. Register read_lists() as a
31451 variable hook attached to ${prefix}.
31453 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31455 Merge crypto branch.
31457 * Makefile.in (pkglib_DATA): Add crypto.lst.
31458 (crypto.lst): New target.
31459 * commands/hashsum.c: New file.
31460 * commands/password.c (check_password): Use grub_crypto_memcmp.
31461 * commands/password_pbkdf2.c: New file.
31462 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
31463 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
31464 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
31465 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
31466 -I$(srcdir)/lib/libgcrypt_wrap.
31467 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
31468 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
31469 password_pbkdf2.mod.
31470 (crypto_mod_SOURCES): New variable.
31471 (crypto_mod_CFLAGS): Likewise.
31472 (crypto_mod_LDFLAGS): Likewise.
31473 (hashsum_mod_SOURCES): New variable.
31474 (hashsum_mod_CFLAGS): Likewise.
31475 (hashsum_mod_LDFLAGS): Likewise.
31476 (pbkdf2_mod_SOURCES): New variable.
31477 (pbkdf2_mod_CFLAGS): Likewise.
31478 (pbkdf2_mod_LDFLAGS): Likewise.
31479 (password_pbkdf2_mod_SOURCES): New variable.
31480 (password_pbkdf2_mod_CFLAGS): Likewise.
31481 (password_pbkdf2_mod_LDFLAGS): Likewise.
31482 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
31483 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
31484 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
31485 Include conf/gcry.rmk.
31486 * include/grub/auth.h: Rewritten.
31487 * include/grub/crypto.h: New file.
31488 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
31489 * include/grub/normal.h (read_crypto_list): New prototype.
31490 * lib/crypto.c: New file.
31491 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
31492 * lib/pbkdf2.c: Likewise.
31493 * normal/auth.c (grub_auth_strcmp): Removed.
31494 (grub_iswordseparator): Likewise.
31495 (grub_auth_strword): Likewise.
31496 (is_authenticated): Use grub_strword.
31497 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
31498 and grub_strword. Pass entered password to authentication callback.
31499 * normal/crypto.c: New file.
31500 * normal/main.c: Call read_crypto_list.
31501 * util/grub-mkpasswd-pbkdf2.c: New file.
31502 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
31504 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
31506 Fix descent and ascent calculation.
31508 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
31509 (options): New option "asce".
31511 (add_char): Ignore invalid glyphs for descent calculation.
31512 Calculate ascent from actual content.
31513 (print_glyphs): Use 'asce'.
31514 (write_font): Likewise. Allow ascent override.
31515 (main): Handle "asce" option.
31517 2010-01-06 Carles Pina i Estany <carles@pina.cat>
31519 * kern/err.c: Include `<grub/i18n.h>'.
31520 (grub_print_error): Add full stop. Gettextizze.
31521 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
31522 (grub_bsd_load_elf): Capitalise ELF.
31523 (grub_cmd_freebsd_loadenv): Add `s' in error string.
31524 (grub_cmd_freebsd_module): Likewise.
31525 (grub_cmd_freebsd_module_elf): Likewise.
31526 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
31528 2010-01-06 Carles Pina i Estany <carles@pina.cat>
31530 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
31531 * commands/search_file.c (HELP_MESSAGE): New macro.
31532 * commands/search_label.c (HELP_MESSAGE): Likewise.
31533 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
31534 * po/POTFILES: Add `commands/search_file.c',
31535 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
31536 `commands/search.c'.
31538 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
31540 * config.rpath: Update from Gnulib.
31542 2010-01-05 Yves Blusseau <blusseau@zetam.org>
31544 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
31546 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
31548 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
31550 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31552 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
31553 arguments to fread so that we get a return value in bytes, rather
31554 than something that will normally be rounded down to 0.
31555 Adjust error handling to avoid producing garbage when size_t is not
31556 the same size as long long.
31558 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31560 * util/mkisofs/write.c (padblock_write): Check return value of
31563 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
31565 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
31568 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
31570 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
31572 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
31573 instead of manual alignment.
31574 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
31575 verbose). Avoid attempts to read past end of the device
31576 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
31577 but GRUB_DISK_CACHE_SIZE may exceed that).
31579 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
31581 * commands/crc.c (grub_cmd_crc): Abort on read errors.
31582 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
31585 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
31587 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
31589 (grub_efi_piwg_device_path): New structure
31590 (grub_efi_piwg_device_path_t): New type.
31591 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
31592 (devpath_1): Transform to a structure. All users updated.
31593 (devpath_2): Likewise.
31594 (devpath_3): Likewise.
31595 (devpath_4): Likewise.
31596 (devpath_5): Likewise.
31598 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
31600 * loader/efi/appleloader.c: Restored. Update all users.
31602 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31604 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
31606 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
31607 (struct boot_blocklist): Move from here ...
31608 * include/grub/i386/pc/boot.h [ASM_FILE]
31609 (struct grub_boot_blocklist): ... to here. Update all users.
31610 (setup): Only initialize `start' member of `first_block'
31611 structure. Add assert() calls to verify the other members.
31613 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
31614 (generate_image): Fix broken blocklist length initialization.
31615 Add assert() call to verify blocklist `segment' field.
31617 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31619 * loader/efi/appleloader.c: Remove. Update all users.
31621 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31623 * boot/i386/pc/boot.S: Update copyright year.
31624 * boot/i386/pc/cdboot.S: Likewise.
31625 * boot/i386/pc/diskboot.S: Likewise.
31626 * boot/i386/pc/lnxboot.S: Likewise.
31627 * boot/i386/pc/pxeboot.S: Likewise.
31628 * bus/pci.c: Likewise.
31629 * commands/cmp.c: Likewise.
31630 * commands/help.c: Likewise.
31631 * commands/hexdump.c: Likewise.
31632 * commands/i386/pc/halt.c: Likewise.
31633 * commands/i386/pc/play.c: Likewise.
31634 * commands/i386/pc/vbeinfo.c: Likewise.
31635 * commands/ls.c: Likewise.
31636 * commands/test.c: Likewise.
31637 * disk/dmraid_nvidia.c: Likewise.
31638 * disk/i386/pc/biosdisk.c: Likewise.
31639 * disk/ieee1275/nand.c: Likewise.
31640 * disk/ieee1275/ofdisk.c: Likewise.
31641 * disk/lvm.c: Likewise.
31642 * disk/raid.c: Likewise.
31643 * disk/raid6_recover.c: Likewise.
31644 * disk/scsi.c: Likewise.
31645 * fs/affs.c: Likewise.
31646 * fs/cpio.c: Likewise.
31647 * fs/ext2.c: Likewise.
31648 * fs/hfs.c: Likewise.
31649 * fs/iso9660.c: Likewise.
31650 * fs/ntfs.c: Likewise.
31651 * fs/sfs.c: Likewise.
31652 * fs/udf.c: Likewise.
31653 * fs/ufs.c: Likewise.
31654 * fs/xfs.c: Likewise.
31655 * gencmdlist.sh: Likewise.
31656 * genmk.rb: Likewise.
31657 * include/grub/disk.h: Likewise.
31658 * include/grub/efi/api.h: Likewise.
31659 * include/grub/efi/efi.h: Likewise.
31660 * include/grub/efi/pe32.h: Likewise.
31661 * include/grub/elf.h: Likewise.
31662 * include/grub/fs.h: Likewise.
31663 * include/grub/i386/at_keyboard.h: Likewise.
31664 * include/grub/i386/pc/memory.h: Likewise.
31665 * include/grub/i386/pc/vbe.h: Likewise.
31666 * include/grub/i386/pci.h: Likewise.
31667 * include/grub/i386/tsc.h: Likewise.
31668 * include/grub/ieee1275/ieee1275.h: Likewise.
31669 * include/grub/ntfs.h: Likewise.
31670 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
31671 * include/grub/sparc64/libgcc.h: Likewise.
31672 * include/grub/symbol.h: Likewise.
31673 * include/grub/types.h: Likewise.
31674 * include/multiboot2.h: Likewise.
31675 * io/gzio.c: Likewise.
31676 * kern/device.c: Likewise.
31677 * kern/disk.c: Likewise.
31678 * kern/efi/efi.c: Likewise.
31679 * kern/efi/mm.c: Likewise.
31680 * kern/elf.c: Likewise.
31681 * kern/file.c: Likewise.
31682 * kern/i386/dl.c: Likewise.
31683 * kern/i386/pc/init.c: Likewise.
31684 * kern/i386/pc/startup.S: Likewise.
31685 * kern/ieee1275/ieee1275.c: Likewise.
31686 * kern/ieee1275/init.c: Likewise.
31687 * kern/main.c: Likewise.
31688 * kern/mm.c: Likewise.
31689 * kern/powerpc/dl.c: Likewise.
31690 * kern/sparc64/dl.c: Likewise.
31691 * kern/x86_64/dl.c: Likewise.
31692 * lib/hexdump.c: Likewise.
31693 * loader/efi/appleloader.c: Likewise.
31694 * loader/i386/ieee1275/linux.c: Likewise.
31695 * loader/i386/pc/chainloader.c: Likewise.
31696 * loader/i386/pc/linux.c: Likewise.
31697 * loader/i386/pc/multiboot2.c: Likewise.
31698 * loader/ieee1275/multiboot2.c: Likewise.
31699 * loader/multiboot2.c: Likewise.
31700 * loader/multiboot_loader.c: Likewise.
31701 * loader/powerpc/ieee1275/linux.c: Likewise.
31702 * normal/completion.c: Likewise.
31703 * normal/menu_entry.c: Likewise.
31704 * partmap/apple.c: Likewise.
31705 * util/grub.d/10_hurd.in: Likewise.
31706 * util/hostfs.c: Likewise.
31707 * video/readers/png.c: Likewise.
31709 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
31711 * include/grub/misc.h (GNUC_PREREQ): New macro.
31712 (ATTRIBUTE_ERROR): New macro.
31713 * include/grub/list.h (grub_bad_type_cast_real): Use
31716 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31718 * normal/menu_text.c (print_message): Change messages.
31720 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31722 * normal/menu_entry.c (store_completion): Gettextizze.
31724 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31726 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
31728 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31730 * po/POTFILES: Sort correctly.
31732 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31734 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
31735 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
31736 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
31738 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
31739 summary. Gettextizze the strings.
31740 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
31741 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
31742 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
31744 (GRUB_MOD_INIT): Remove command name from summary.
31745 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
31747 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
31748 * term/i386/pc/serial.c (options): Add full stops.
31749 (GRUB_MOD_INIT): Remove command name from the summary.
31751 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31753 * commands/acpi.c: Gettextizze help strings and/or options. Include
31754 `grub/i18n.h' if needed.
31755 * commands/blocklist.c: Likewise.
31756 * commands/boot.c: Likewise.
31757 * commands/cat.c: Likewise.
31758 * commands/cmp.c: Likewise.
31759 * commands/configfile.c: Likewise.
31760 * commands/crc.c: Likewise.
31761 * commands/date.c: Likewise.
31762 * commands/echo.c: Likewise.
31763 * commands/efi/fixvideo.c: Likewise.
31764 * commands/efi/loadbios.c: Likewise.
31765 * commands/gptsync.c: Likewise.
31766 * commands/halt.c: Likewise.
31767 * commands/handler.c: Likewise.
31768 * commands/hdparm.c: Likewise.
31769 * commands/hexdump.c: Likewise.
31770 * commands/i386/cpuid.c: Likewise.
31771 * commands/i386/pc/drivemap.c: Likewise.
31772 * commands/i386/pc/halt.c: Likewise.
31773 * commands/i386/pc/pxecmd.c: Likewise.
31774 * commands/i386/pc/vbeinfo.c: Likewise.
31775 * commands/i386/pc/vbetest.c: Likewise.
31776 * commands/ieee1275/suspend.c: Likewise.
31777 * commands/keystatus.c: Likewise.
31778 * commands/loadenv.c: Likewise.
31779 * commands/ls.c: Likewise.
31780 * commands/lsmmap.c: Likewise.
31781 * commands/lspci.c: Likewise.
31782 * commands/memrw.c: Likewise.
31783 * commands/minicmd.c: Likewise.
31784 * commands/parttool.c: Likewise.
31785 * commands/password.c: Likewise.
31786 * commands/probe.c: Likewise.
31787 * commands/read.c: Likewise.
31788 * commands/reboot.c: Likewise.
31789 * commands/search.c: Likewise.
31790 * commands/sleep.c: Likewise.
31791 * commands/test.c: Likewise.
31792 * commands/true.c: Likewise.
31793 * commands/usbtest.c: Likewise.
31794 * commands/videotest.c: Likewise.
31795 * commands/xnu_uuid.c: Likewise.
31796 * disk/loopback.c: Likewise.
31797 * hello/hello.c: Likewise.
31798 * loader/i386/bsd.c: Likewise.
31799 * term/i386/pc/serial.c: Likewise.
31800 * po/POTFILES: Add new files.
31802 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
31804 * term/i386/pc/at_keyboard.c
31805 (keyboard_controller_wait_untill_ready): Rename to ...
31806 (keyboard_controller_wait_until_ready): ... this. Update all users.
31808 2010-01-01 Carles Pina i Estany <carles@pina.cat>
31810 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
31811 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
31812 string using string width.
31813 * normal/menu_text.c (grub_print_message_indented): Use
31814 grub_print_spaces and not print_spaces.
31815 (print_timeout): Likewise.
31816 (print_spaces): Move to...
31817 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
31819 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
31821 Import from Gnulib.
31823 * gnulib/getdelim.c: New file.
31824 * gnulib/getline.c: Likewise.
31826 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
31828 * include/grub/list.h (grub_assert_fail): Removed.
31829 (grub_bad_type_cast_real): New function.
31830 (grub_bad_type_cast): New macro.
31831 (GRUB_AS_LIST): Use grub_bad_type_cast.
31832 (GRUB_AS_LIST_P): Likewise.
31833 (GRUB_AS_NAMED_LIST): Likewise.
31834 (GRUB_AS_NAMED_LIST_P): Likewise.
31835 (GRUB_AS_PRIO_LIST): Likewise.
31836 (GRUB_AS_PRIO_LIST_P): Likewise.
31837 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
31839 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
31841 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
31844 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
31846 * configure.ac: Check for TARGET_CFLAGS initialization before we
31847 initialize it ourselves (sigh).
31848 Move a few modifications to TARGET_CFLAGS to be unconditional
31849 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
31852 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
31853 * term/i386/pc/at_keyboard.c
31854 (keyboard_controller_wait_untill_ready): Likewise.
31855 (keyboard_controller_led): Rename `led_status' paramter to avoid
31858 2009-12-28 Carles Pina i Estany <carles@pina.cat>
31860 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
31863 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31865 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
31867 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31869 * normal/menu_text.c (grub_print_message_indented): Prevent
31870 past-the-end-of-array dereference.
31872 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31874 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
31875 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
31877 2009-12-27 Carles Pina i Estany <carles@pina.cat>
31879 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
31880 * normal/main.c (grub_normal_read_line): Remove a space from the
31883 2009-12-27 Carles Pina i Estany <carles@pina.cat>
31885 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
31886 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31887 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
31888 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
31889 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31890 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31891 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31893 2009-12-26 Carles Pina i Estany <carles@pina.cat>
31895 * video/readers/jpeg.c (cmd): Declare.
31896 (grub_cmd_jpegtest): Use `grub_command_t' type.
31897 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31899 (GRUB_MOD_FINI): Use `cmd' to unregister.
31900 * video/readers/png.c (cmd): Declare.
31901 (grub_cmd_pngtest): Use `grub_command_t' type.
31902 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31904 (GRUB_MOD_FINI): Use `cmd' to unregister.
31905 * video/readers/tga.c (cmd): Declare.
31906 (grub_cmd_tgatest): Use `grub_command_t' type.
31907 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31909 (GRUB_MOD_FINI): Use `cmd' to unregister.
31911 2009-12-26 Carles Pina i Estany <carles@pina.cat>
31913 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
31915 * kern/corecmd.c (grub_register_core_commands): Likewise.
31916 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
31917 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
31918 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
31919 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31920 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
31921 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
31922 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
31923 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
31924 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31925 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31926 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31927 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
31928 * normal/handler.c (insert_handler): Likewise.
31929 * normal/main.c (GRUB_MOD_INIT): Likewise.
31930 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
31932 2009-12-26 Carles Pina i Estany <carles@pina.cat>
31934 * commands/help.c (grub_cmd_help): Print the command name before the
31936 (GRUB_MOD_INIT): Remove command name from the summary.
31937 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
31939 * lib/arg.c (find_long): Print the command name before the summary.
31940 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
31942 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
31943 * commands/cat.c (GRUB_MOD_INIT): Likewise.
31944 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
31945 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
31946 * commands/crc.c (GRUB_MOD_INIT): Likewise.
31947 * commands/date.c (GRUB_MOD_INIT): Likewise.
31948 * commands/echo.c (GRUB_MOD_INIT): Likewise.
31949 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
31950 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
31951 * commands/handler.c (GRUB_MOD_INIT): Likewise.
31952 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
31953 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
31954 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
31955 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
31956 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
31957 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
31958 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
31959 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
31960 * commands/ls.c (GRUB_MOD_INIT): Likewise.
31961 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
31962 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
31963 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
31964 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
31965 * commands/password.c (GRUB_MOD_INIT): Likewise.
31966 * commands/probe.c (GRUB_MOD_INIT): Likewise.
31967 * commands/read.c (GRUB_MOD_INIT): Likewise.
31968 * commands/search.c (GRUB_MOD_INIT): Likewise.
31969 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
31970 * commands/test.c (GRUB_MOD_INIT): Likewise.
31971 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
31972 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
31973 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
31974 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
31975 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
31976 * lib/arg.c (GRUB_MOD_INIT): Likewise.
31977 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
31978 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
31979 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31980 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
31981 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
31982 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
31983 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
31984 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
31986 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
31988 Use search command for preliminar UUID search.
31990 * commands/search.c: Split into ...
31991 * commands/search_wrap.c: ...this
31992 * commands/search.c: ...and this.
31993 * commands/search_file.c: New file.
31994 * commands/search_label.c: New file.
31995 * commands/search_uuid.c: New file.
31996 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
31997 Add commands/search_wrap.c, commands/search_file.c,
31998 commands/search_label.c and commands/search_uuid.c.
31999 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32000 (search_mod_SOURCES): Set to commands/search_wrap.c.
32001 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32003 (search_fs_file_mod_SOURCES): New variable.
32004 (search_fs_file_mod_CFLAGS): Likewise.
32005 (search_fs_file_mod_LDFLAGS): Likewise.
32006 (search_label_mod_SOURCES): Likewise.
32007 (search_label_mod_CFLAGS): Likewise.
32008 (search_label_mod_LDFLAGS): Likewise.
32009 (search_fs_uuid_mod_SOURCES): New variable.
32010 (search_fs_uuid_mod_CFLAGS): Likewise.
32011 (search_fs_uuid_mod_LDFLAGS): Likewise.
32012 (fs_file_mod_SOURCES): Removed.
32013 (fs_file_mod_CFLAGS): Likewise.
32014 (fs_file_mod_LDFLAGS): Likewise.
32015 (fs_uuid_mod_SOURCES): Removed.
32016 (fs_uuid_mod_CFLAGS): Likewise.
32017 (fs_uuid_mod_LDFLAGS): Likewise.
32018 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32019 Set to util/grub-install.in.
32020 * disk/fs_file.c: Removed.
32021 * disk/fs_uuid.c: Likewise.
32022 * include/grub/search.h: New file.
32023 * util/grub-install.in: Handle sparc64.
32024 Create and use load.cfg.
32025 * util/sparc64/ieee1275/grub-install.in: Removed.
32027 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32029 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32030 Ignore return status if CF is cleared.
32031 (grub_biosdisk_get_diskinfo_standard): Likewise.
32033 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32035 * term/i386/pc/at_keyboard.c
32036 (keyboard_controller_wait_untill_ready): New function.
32037 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32038 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32039 for keyboard polling, rather than duplicate the same loop. This
32040 saves a few bytes in code size.
32042 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32044 Support for (pxe[:server[:gateway]]) syntax and
32045 use environment variable for PXE.
32047 * commands/i386/pc/pxecmd.c (options): Removed.
32048 (print_ip): Removed.
32049 (grub_cmd_pxe): Removed
32050 (grub_cmd_pxe_unload): New function.
32051 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32052 (grub_pxe_your_ip): Made static.
32053 (grub_pxe_default_server_ip): Likewise.
32054 (grub_pxe_default_gateway_ip): Likewise.
32055 (grub_pxe_blksize): Likewise.
32056 (parse_ip): New function.
32057 (grub_pxe_open): Support server and gateway specification.
32058 (grub_pxe_close): Free disk->data.
32059 (grub_pxefs_open): Use disk->data.
32060 (grub_pxefs_read): Likewise.
32061 (grub_env_write_readonly): New function.
32062 (set_mac_env): Likewise.
32063 (set_env_limn_ro): Likewise.
32064 (parse_dhcp_vendor): Likewise.
32065 (grub_pxe_detect): Set the environment variables.
32066 (set_ip_env): New function.
32067 (write_ip_env): Likewise.
32068 (grub_env_write_pxe_default_server): Likewise.
32069 (grub_env_write_pxe_default_gateway): Likewise.
32070 (grub_env_write_pxe_blocksize): Likewise.
32071 (GRUB_MOD_INIT(pxe)): Set environment variables.
32072 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32073 (grub_pxe_mac_addr_t): ... this. All users updated.
32074 (grub_pxe_your_ip): Removed.
32075 (grub_pxe_server_ip): Likewise.
32076 (grub_pxe_gateway_ip): Likewise.
32077 (grub_pxe_blksize): Likewise.
32079 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32081 * commands/help.c: Include `<grub/i18n.h>'.
32082 (grub_cmd_help): Gettextizze.
32083 (GRUB_MOD_INIT): Likewise.
32084 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32085 (GRUB_MOD_INIT): Gettextizze.
32086 * commands/search.c: Include `<grub/i18n.h>'.
32087 (options): Gettextizze.
32088 (GRUB_MOD_INIT): Gettextizze.
32089 * lib/arg.c: Include `<grub/i18n.h>'.
32090 (help_options): Gettextizze.
32091 (find_long): Likewise.
32092 (grub_arg_show_help): Likewise.
32093 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32094 (read_command_list): Gettextizze.
32095 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32096 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32098 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32100 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32101 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32102 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32103 (led_status): New variable.
32104 (keyboard_controller_led): New function.
32105 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32106 update led status for caps lock, num lock and scroll lock.
32108 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32110 * util/hostdisk.c (open_device): Fix a comment.
32112 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32114 * util/grub-install.in (host_os): New variable.
32115 * util/i386/efi/grub-install.in (host_os): Likewise.
32117 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32119 * util/mkisofs/write.c (padblock_write): Abort when given an
32120 excedingly large embed image, instead of silently truncating it.
32122 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32124 * include/multiboot.h: Indentation fixes.
32126 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32128 * include/multiboot.h (struct multiboot_aout_symbol_table)
32129 (struct multiboot_elf_section_header_table): New structure
32130 declarations (stolen from GRUB Legacy).
32131 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32134 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32135 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32138 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32140 * include/multiboot.h: Make comments src2texi-friendly.
32142 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32144 For consistency with [multiboot]/docs/boot.S.
32146 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32147 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32148 (MULTIBOOT_MAGIC2): Rename from this ...
32149 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32151 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32153 * include/multiboot.h: Remove `<grub/types.h>'.
32154 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32155 types. Update all users.
32157 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32159 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32160 `couldn't' and `can not' by `cannot'.
32161 * commands/i386/pc/drivemap.c: Likewise.
32162 * disk/ata.c: Likewise.
32163 * disk/ieee1275/nand.c: Likewise.
32164 * fs/affs.c: Likewise.
32165 * fs/fat.c: Likewise.
32166 * fs/hfs.c: Likewise.
32167 * fs/hfsplus.c: Likewise.
32168 * fs/iso9660.c: Likewise.
32169 * fs/jfs.c: Likewise.
32170 * fs/minix.c: Likewise.
32171 * fs/reiserfs.c: Likewise.
32172 * fs/sfs.c: Likewise.
32173 * fs/udf.c: Likewise.
32174 * fs/ufs.c: Likewise.
32175 * fs/xfs.c: Likewise.
32176 * loader/powerpc/ieee1275/linux.c: Likewise.
32177 * loader/sparc64/ieee1275/linux.c: Likewise.
32178 * util/grub-probe.c: Likewise.
32179 * util/misc.c: Likewise.
32181 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32183 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32185 * commands/acpi.c: Likewise.
32186 * commands/blocklist.c: Likewise.
32187 * commands/efi/loadbios.c: Likewise.
32188 * commands/i386/pc/drivemap.c: Likewise.
32189 * commands/loadenv.c: Likewise.
32190 * commands/memrw.c: Likewise.
32191 * commands/password.c: Likewise.
32192 * commands/videotest.c: Likewise.
32193 * disk/ata.c: Likewise.
32194 * disk/ata_pthru.c: Likewise.
32195 * disk/dmraid_nvidia.c: Likewise.
32196 * disk/ieee1275/nand.c: Likewise.
32197 * disk/ieee1275/ofdisk.c: Likewise.
32198 * disk/loopback.c: Likewise.
32199 * disk/lvm.c: Likewise.
32200 * disk/mdraid_linux.c: Likewise.
32201 * disk/raid.c: Likewise.
32202 * disk/raid6_recover.c: Likewise.
32203 * disk/scsi.c: Likewise.
32204 * efiemu/main.c: Likewise.
32205 * efiemu/mm.c: Likewise.
32206 * efiemu/pnvram.c: Likewise.
32207 * efiemu/symbols.c: Likewise.
32208 * font/font.c: Likewise.
32209 * fs/cpio.c: Likewise.
32210 * fs/hfsplus.c: Likewise.
32211 * fs/iso9660.c: Likewise.
32212 * fs/jfs.c: Likewise.
32213 * fs/minix.c: Likewise.
32214 * fs/ntfs.c: Likewise.
32215 * fs/ntfscomp.c: Likewise.
32216 * fs/reiserfs.c: Likewise.
32217 * fs/ufs.c: Likewise.
32218 * fs/xfs.c: Likewise.
32219 * gettext/gettext.c: Likewise.
32220 * include/grub/auth.h: Likewise.
32221 * kern/elf.c: Likewise.
32222 * kern/file.c: Likewise.
32223 * kern/ieee1275/init.c: Likewise.
32224 * kern/ieee1275/mmap.c: Likewise.
32225 * kern/ieee1275/openfw.c: Likewise.
32226 * kern/powerpc/dl.c: Likewise.
32227 * kern/sparc64/dl.c: Likewise.
32228 * lib/arg.c: Likewise.
32229 * loader/i386/bsd.c: Likewise.
32230 * loader/i386/bsdXX.c: Likewise.
32231 * loader/i386/efi/linux.c: Likewise.
32232 * loader/i386/efi/xnu.c: Likewise.
32233 * loader/i386/ieee1275/linux.c: Likewise.
32234 * loader/i386/linux.c: Likewise.
32235 * loader/i386/multiboot.c: Likewise.
32236 * loader/i386/pc/linux.c: Likewise.
32237 * loader/i386/pc/multiboot2.c: Likewise.
32238 * loader/i386/xnu.c: Likewise.
32239 * loader/ieee1275/multiboot2.c: Likewise.
32240 * loader/macho.c: Likewise.
32241 * loader/machoXX.c: Likewise.
32242 * loader/multiboot2.c: Likewise.
32243 * loader/multiboot_loader.c: Likewise.
32244 * loader/powerpc/ieee1275/linux.c: Likewise.
32245 * loader/sparc64/ieee1275/linux.c: Likewise.
32246 * loader/xnu.c: Likewise.
32247 * loader/xnu_resume.c: Likewise.
32248 * mmap/i386/pc/mmap.c: Likewise.
32249 * normal/menu_viewer.c: Likewise.
32250 * partmap/acorn.c: Likewise.
32251 * partmap/amiga.c: Likewise.
32252 * partmap/apple.c: Likewise.
32253 * script/lexer.c: Likewise.
32254 * term/gfxterm.c: Likewise.
32255 * term/i386/pc/serial.c: Likewise.
32256 * term/i386/pc/vga.c: Likewise.
32257 * term/ieee1275/ofconsole.c: Likewise.
32258 * term/terminfo.c: Likewise.
32259 * video/bitmap.c: Likewise.
32260 * video/efi_gop.c: Likewise.
32261 * video/efi_uga.c: Likewise.
32262 * video/fb/video_fb.c: Likewise.
32263 * video/i386/pc/vbe.c: Likewise.
32264 * video/readers/tga.c: Likewise.
32265 * video/video.c: Likewise.
32267 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32269 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32270 * commands/lspci.c: Likewise.
32271 * commands/probe.c: Likewise.
32272 * commands/xnu_uuid.c: Likewise.
32273 * conf/i386-coreboot.rmk: Likewise.
32274 * conf/i386-efi.rmk: Likewise.
32275 * conf/i386-ieee1275.rmk: Likewise.
32276 * conf/i386-pc.rmk: Likewise.
32277 * conf/powerpc-ieee1275.rmk: Likewise.
32278 * conf/sparc64-ieee1275.rmk: Likewise.
32279 * conf/x86_64-efi.rmk: Likewise.
32280 * fs/i386/pc/pxe.c: Likewise.
32281 * gettext/gettext.c: Likewise.
32282 * include/grub/efi/graphics_output.h: Likewise.
32283 * include/grub/i386/pc/memory.h: Likewise.
32284 * kern/env.c: Likewise.
32285 * kern/i386/qemu/startup.S: Likewise.
32286 * lib/i386/pc/biosnum.c: Likewise.
32287 * lib/i386/relocator.c: Likewise.
32288 * lib/i386/relocator_asm.S: Likewise.
32289 * lib/relocator.c: Likewise.
32290 * loader/i386/bsd.c: Likewise.
32291 * loader/i386/multiboot.c: Likewise.
32292 * loader/i386/pc/chainloader.c: Likewise.
32293 * loader/i386/xnu.c: Likewise.
32294 * loader/xnu.c: Likewise.
32295 * normal/main.c: Likewise.
32296 * normal/menu_text.c: Likewise.
32297 * util/getroot.c: Likewise.
32298 * util/grub-mkconfig_lib.in: Likewise.
32299 * util/grub.d/00_header.in: Likewise.
32300 * util/i386/pc/grub-mkimage.c: Likewise.
32301 * util/mkisofs/eltorito.c: Likewise.
32302 * util/mkisofs/exclude.h: Likewise.
32303 * util/mkisofs/hash.c: Likewise.
32304 * util/mkisofs/iso9660.h: Likewise.
32305 * util/mkisofs/joliet.c: Likewise.
32306 * util/mkisofs/mkisofs.c: Likewise.
32307 * util/mkisofs/mkisofs.h: Likewise.
32308 * util/mkisofs/multi.c: Likewise.
32309 * util/mkisofs/name.c: Likewise.
32310 * util/mkisofs/rock.c: Likewise.
32311 * util/mkisofs/tree.c: Likewise.
32312 * util/mkisofs/write.c: Likewise.
32313 * video/efi_gop.c: Likewise.
32315 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32317 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32320 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32322 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32323 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32325 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32327 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32328 (GRUB_MOD_INIT(memrw)): Update help line.
32330 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32332 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32333 Use grub_extcmd_t. All users updated.
32334 (options): New variable.
32335 (grub_cmd_read): Restructure for readability. Support "-v" option.
32336 (grub_cmd_write): Restructure for readability.
32338 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32340 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32342 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32344 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32345 with the actual contents of the correspondending make variable.
32346 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32347 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32348 specifying `*.lst' and `efiemu??.o'
32350 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32352 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32353 after function name.
32354 Noticed by Rene Engelhard <rene@debian.org>.
32356 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32358 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32359 (options): New variable.
32360 (iospace): Likewise.
32361 (grub_lspci_iter): List IO spaces if "-i" was given.
32362 (grub_cmd_lspci): Parse options.
32363 (GRUB_MOD_INIT(lspci)): Use extcmd.
32364 (GRUB_MOD_FINI(lspci)): Likewise.
32366 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32368 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32369 `function' keyword.
32370 Patch by Tony Mancill <tmancill@debian.org>.
32372 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32374 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32375 (grub_uhci_portstatus): Likewise.
32376 (grub_uhci_portstatus): Add necessary delay.
32377 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
32379 2009-12-21 Carles Pina i Estany <carles@pina.cat>
32381 * commands/acpi.c (options): Fix capitalizations and/or full stops.
32382 (GRUB_MOD_INIT): Likewise.
32383 * commands/boot.c (GRUB_MOD_INIT): Likewise.
32384 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
32385 * commands/echo.c (options): Fix capitalizations and/or full stops.
32386 * commands/efi/loadbios.c (enable_rom_area): Likewise.
32387 (enable_rom_area): Likewise.
32388 (GRUB_MOD_INIT): Likewise.
32389 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32390 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
32391 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32392 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
32393 * commands/hexdump.c (options): Likewise.
32394 * commands/i386/cpuid.c (options): Likewise.
32395 (GRUB_MOD_INIT): Likewise.
32396 * commands/i386/pc/drivemap.c (options): Likewise.
32397 (GRUB_MOD_INIT): Likewise.
32398 * commands/i386/pc/halt (options): Likewise.
32399 (GRUB_MOD_INIT): Likewise.
32400 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32401 * commands/i386/pc/pxecmd.c (options): Likewise.
32402 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
32403 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
32404 * commands/keystatus.c (options): Likewise.
32405 (GRUB_MOD_INIT): Likewise.
32406 * commands/loadenv.c (options): Likewise.
32407 * commands/ls.c (options): Likewise.
32408 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32409 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32410 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32411 * commands/parttool.c (helpmsg): Likewise.
32412 * commands/probe.c (options): Likewise.
32413 * commands/read.c (GRUB_MOD_INIT): Likewise.
32414 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
32415 * commands/search.c (options): Likewise.
32416 * commands/sleep.c (options): Likewise.
32417 * commands/test.c (GRUB_MOD_INIT): Likewise.
32418 * commands/true.c (GRUB_MOD_INIT): Likewise.
32419 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
32420 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
32421 * lib/arg.c (help_options): Likewise.
32422 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
32424 * po/POTFILES: Add `commands/loadenv.c'.
32426 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
32428 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
32429 instead of specifying them explicit.
32431 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32433 * NEWS: Add grub-probe support for GNU/Hurd.
32435 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32437 * NEWS: gettext was added after 1.97.
32439 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32441 * util/mkisofs/msdos_partition.h: New file (based on
32442 include/grub/msdos_partition.h).
32443 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
32444 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
32445 (ld_options, main): Recognize --protective-msdos-label.
32446 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
32447 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
32448 (padblock_write): If `use_protective_msdos_label' is set, patch a
32449 protective DOS-style label in the output image.
32451 * util/grub-mkrescue.in: Use --protective-msdos-label.
32453 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32455 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
32458 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32460 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
32462 (ld_options, main): Recognize `--embedded-boot'.
32463 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
32465 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
32466 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
32467 (padblock_write): Likewise. Rewrite to support embedded boot image.
32469 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
32470 for BIOS-based disk boot instead of only ElTorito.
32472 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32474 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
32475 build (not needed for bootstrap).
32477 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32479 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
32480 from i386-pc build (not needed for bootstrap).
32481 Rewrite a pair of strings.
32483 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32485 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
32487 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
32489 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
32491 2009-12-21 Andreas Born <futur.andy@googlemail.com>
32493 * kern/env.c (grub_env_context_open): Mark exported variable for
32496 2009-12-21 Andreas Born <futur.andy@googlemail.com>
32498 * kern/env.c (grub_env_export): Create nonexistent variables before
32501 2009-12-20 Carles Pina i Estany <carles@pina.cat>
32503 * include/grub/auth.h: Include `<grub/i18n.h>'.
32504 (GRUB_GET_PASSWORD): Gettextizze string.
32505 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
32507 (grub_utf8_to_ucs4_alloc): Fix indentation.
32508 (grub_print_ucs4): Likewise.
32509 (grub_getstringwidth): Likewise.
32510 (print_message_indented): New declaration.
32511 * normal/auth.c: Include `<grub/i18n.h>'.
32512 (grub_auth_check_authentication): Gettexttize string.
32513 * normal/cmdline.c: Include `<grub/i18n.h>'.
32514 (grub_cmdline_get): Gettextizze.
32515 * normal/color.c: Include `<grub/i18n.h>'.
32516 (grub_parse_color_name_pair): Gettexttize strings.
32517 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
32518 string (use `print_message_indented').
32519 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
32520 `include/grub/normal.h'.
32521 (print_message_indented): Renamed to ...
32522 (grub_print_message_indented): ... this. Remove `static' qualifer (now
32523 used in normal/main.c).
32524 (print_message): Use `grub_print_message_indented' instead of
32525 `print_message_indented'.
32526 (print_timeout): Likewise.
32527 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
32528 (grub_normal_print_device_info): Gettexttize strings.
32529 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
32531 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
32533 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
32534 of arguments. Return number of tokens and not arguments. All users
32537 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
32539 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
32540 non-MSDOS paritions.
32542 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
32544 * include/grub/types.h (UNUSED): Removed since it conflicts with
32545 NetBSD headers. All users changed to direct __attribute__ ((unused)).
32546 Reported by Grégoire Sutre.
32548 2009-12-19 Carles Pina i Estany <carles@pina.cat>
32550 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
32551 (grub_print_ucs4_alloc): Likewise.
32552 (grub_getstringwidth): Likewise.
32553 * normal/main.c (grub_normal_init_page): Gettextize version string.
32554 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
32555 (getstringwidth): Renamed to ...
32556 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
32557 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
32558 (grub_print_ucs4): Remove `static' qualifer (now used in
32560 * po/POTFILES: Add normal/main.c.
32562 2009-12-19 Carles Pina i Estany <carles@pina.cat>
32564 * normal/menu_text.c (STANDARD_MARGIN): New macro.
32565 (print_message_indented): Add `margin_left' and `margin_right'
32567 (print_message): Update `print_message_indented' calls. Adds '\n' to the
32569 (print_timeout): Use `print_message_indented' to print the message.
32570 Deletes `second_stage' parameter.
32571 (run_menu): Update `print_timeout' calls.
32573 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32575 Fix console palette on OpenFirmware.
32577 * term/ieee1275/ofconsole.c (MAX): Removed.
32578 (colors): Redone based on VGA palette.
32579 (grub_ofconsole_setcolor): Discard brightness bit since only 8
32580 colors are supported.
32581 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
32583 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32585 Fix potential EfiEmu double prepare.
32587 * efiemu/main.c (prepared): New variable
32588 (grub_efiemu_unload): Set prepare to '0'.
32589 (grub_efiemu_prepare): Return if already prepared. Set prepared.
32591 set_virtual_address_map support.
32593 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
32595 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
32597 (grub_efiemu_crc32): Likewise.
32598 (grub_efiemu_crc64): Likewise.
32599 (grub_efiemu_set_virtual_address_map): Likewise.
32600 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
32602 (grub_autoefi_set_virtual_address_map): Likewise.
32603 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
32604 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
32605 Restructure flow to accomodate it.
32606 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
32607 (grub_efiemu_crc): Recompute CRC32.
32608 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
32609 (efiemu_ptv_relocated): ... this. Made global. All users updated.
32610 * efiemu/symbols.c (relocated_handle): New variable.
32611 (grub_efiemu_free_syms): Free relocated_handle.
32612 (grub_efiemu_alloc_syms): Allocate relocated_handle.
32613 (grub_efiemu_write_sym_markers): New function.
32614 (grub_efiemu_set_virtual_address_map): Likewise.
32616 Newer XNU parameters.
32618 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
32619 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
32620 (grub_xnu_fill_devicetree): New prototype.
32621 (grub_xnu_heap_real_start): New variable.
32622 * loader/xnu.c (get_name_ptr): New function.
32623 (grub_xnu_load_driver): Fill namelen and name.
32625 64-bit xnu support.
32627 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
32628 and 'loader/macho64.c'.
32629 * conf/i386-pc.rmk: Likewise.
32630 * conf/x86_64-efi.rmk: Likewise.
32631 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
32632 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
32633 * include/grub/macho.h (grub_macho_segment64): New structure.
32634 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
32635 (grub_macho_size32): ... to this.
32636 (grub_macho32_get_entry_point): Renamed from ...
32637 (grub_macho_get_entry_point32): ... to this.
32638 (grub_macho_contains_macho64): New prototype.
32639 (grub_macho_size64): Likewise.
32640 (grub_macho_get_entry_point64): Likewise.
32641 (grub_macho32_load): Renamed from ...
32642 (grub_macho_load32): ... to this.
32643 (grub_macho32_filesize): Renamed from ...
32644 (grub_macho_filesize32): ... to this.
32645 (grub_macho32_readfile): Renamed from ...
32646 (grub_macho_readfile32): ... to this.
32647 (grub_macho_filesize64): New prototype.
32648 (grub_macho_readfile64): Likewise.
32649 (grub_macho_parse32): Likewise.
32650 (grub_macho_parse64): Likewise.
32651 * loader/macho.c: Split into ...
32652 * loader/machoXX.c: ... and this. Replace 32 with XX.
32653 * loader/macho32.c: New file.
32654 * loader/macho64.c: Likewise.
32655 * loader/xnu.c (grub_xnu_is_64bit): New variable.
32656 (grub_cmd_xnu_kernel): Make 32-bit only.
32657 (grub_cmd_xnu_kernel64): New function.
32658 (grub_xnu_load_driver): Support Mach-O 64.
32659 (grub_cmd_xnu_mkext): Likewise.
32660 * util/grub.d/30_os-prober.in (osx_entry): New function.
32661 Generate entries for 64-bit boot too.
32663 Eliminate ad-hoc tree format in XNU and EfiEmu.
32665 * efiemu/main.c (grub_efiemu_prepare): Update comment.
32666 * efiemu/pnvram.c: Rewritten to use environment variables.
32669 Inline utf16_to_utf8.
32671 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
32672 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
32674 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
32676 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
32677 * commands/usbtest.c (grub_usb_get_string): ... move here.
32678 (usb_print_str): Fix error handling.
32679 * include/grub/usb.h (grub_usb_get_string): Remove.
32681 UTF-8 to UTF-16 transformation.
32683 * conf/common.rmk (pkglib_MODULES): Add charset.mod
32684 (charset_mod_SOURCES): New variable.
32685 (charset_mod_CFLAGS): Likewise.
32686 (charset_mod_LDFLAGS): Likewise.
32687 * include/grub/utf.h: New file.
32688 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
32690 Support for device properties.
32692 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
32693 (grub_xnu_devprop_device_header): Likewise.
32694 (grub_xnu_devprop_device_descriptor): Likewise.
32695 (grub_xnu_devprop_add_device): New prototype.
32696 (grub_xnu_devprop_remove_device): Likewise.
32697 (grub_xnu_devprop_remove_property): Likewise.
32698 (grub_xnu_devprop_add_property_utf8): Likewise.
32699 (grub_xnu_devprop_add_property_utf16): Likewise.
32700 (grub_cpu_xnu_init): Likewise.
32701 (grub_cpu_xnu_fini): Likewise.
32702 (grub_cpu_xnu_unload): Likewise.
32703 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
32704 (property_descriptor): Likewise.
32705 (devices): New variable.
32706 (grub_xnu_devprop_remove_property): New function.
32707 (grub_xnu_devprop_add_device): Likewise.
32708 (grub_xnu_devprop_remove_device): Likewise.
32709 (grub_xnu_devprop_add_property): Likewise.
32710 (grub_xnu_devprop_add_property_utf8): Likewise.
32711 (grub_xnu_devprop_add_property_utf16): Likewise.
32712 (hextoval): Likewise.
32713 (grub_cpu_xnu_fill_devprop): Likewise.
32714 (grub_cmd_devprop_load): Likewise.
32715 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
32716 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
32717 (cmd_devprop_load): New variable.
32718 (grub_cpu_xnu_init): New function.
32719 (grub_cpu_xnu_fini): Likewise.
32720 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
32721 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
32722 (grub_cmd_xnu_devtree): Likewise.
32723 (hextoval): New function.
32724 (unescape): Likewise.
32725 (grub_xnu_fill_devicetree): Likewise.
32727 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
32728 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
32730 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32732 Workaround for broken ATI VBE.
32734 * video/i386/pc/vbe.c (last_set_mode): New variable.
32735 (grub_vbe_set_video_mode): Set 'last_set_mode'.
32736 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
32737 (grub_video_vbe_setup): Don't check for reserved flag.
32739 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
32741 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
32742 the `find' command.
32744 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
32746 UUID support for HFS.
32748 * fs/hfs.c (grub_hfs_uuid): New function.
32749 (grub_hfs_fs): New value .uuid.
32750 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
32752 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
32754 Fix a segfault with parsing unknown long options.
32756 * util/grub-mkrelpath.c (options): Zero terminate it.
32758 2009-12-13 Carles Pina i Estany <carles@pina.cat>
32760 * include/grub/misc.h (grub_puts): New declaration.
32761 (grub_puts_): Likewise.
32762 * kern/misc.c (grub_puts): New definition.
32763 (grub_puts_): Likewise.
32765 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
32767 * util/grub-probe.c (probe): Improve error message.
32769 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
32771 * loader/i386/multiboot_elfxx.c
32772 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
32775 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
32777 Relocator framework
32779 * loader/i386/xnu_helper.S: Removed. All users updated.
32780 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
32781 (relocator_mod_SOURCES): New variable.
32782 (relocator_mod_CFLAGS): Likewise.
32783 (relocator_mod_LDFLAGS): Likewise.
32784 (relocator_mod_ASFLAGS): Likewise.
32785 * conf/x86_64.rmk: Likewise.
32786 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
32787 (grub_multiboot_payload_entry_offset): Likewise.
32788 (grub_multiboot_forward_relocator): Likewise.
32789 (grub_multiboot_forward_relocator_end): Likewise.
32790 (grub_multiboot_backward_relocator): Likewise.
32791 (grub_multiboot_backward_relocator_end): Likewise.
32792 (grub_multiboot_payload_eip): New variable.
32793 (grub_multiboot_payload_orig): Likewise.
32794 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
32795 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
32796 * include/grub/i386/memory.h
32797 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
32798 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
32799 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
32800 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
32801 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
32802 * include/grub/i386/relocator.h: New file.
32803 * include/grub/x86_64/relocator.h: Likewise.
32804 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
32805 (XNU_RELOCATOR): New macro.
32806 (grub_xnu_launcher_start): Remove.
32807 (grub_xnu_launcher_end): Likewise.
32808 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
32809 (grub_xnu_heap_real_start): Remove.
32810 (grub_xnu_heap_start): Change to void *. All users updated.
32811 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
32812 * lib/i386/relocator.c: New file.
32813 * lib/i386/relocator_asm.S: Likewise.
32814 * lib/i386/relocator_backward.S: Likewise.
32815 * lib/mips/relocator.c: Likewise.
32816 * lib/mips/relocator_asm.S: Likewise.
32817 * lib/relocator.c: Likewise.
32818 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
32820 (playground): Likewise.
32821 (grub_multiboot_payload_orig): New variable.
32822 (grub_multiboot_payload_dest): Likewise.
32823 (grub_multiboot_payload_size): Likewise.
32824 (grub_multiboot_payload_eip): Likewise.
32825 (grub_multiboot_payload_esp): Likewise.
32826 (grub_multiboot_boot): Use grub_relocator32_boot.
32827 (grub_multiboot_unload): Free relocators.
32828 (grub_multiboot): Setup stack. Use relocators.
32829 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
32830 (grub_multiboot_load_elfXX): Use relocators.
32831 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
32832 (grub_multiboot_payload_size): Likewise.
32833 (grub_multiboot_payload_dest): Likewise.
32834 (grub_multiboot_payload_entry_offset): Likewise.
32835 (grub_multiboot_forward_relocator): Likewise.
32836 (grub_multiboot_backward_relocator): Likewise.
32837 (grub_multiboot_real_boot): Likewise.
32838 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
32839 (grub_xnu_entry_point): Likewise.
32840 (grub_xnu_arg1): Likewise.
32841 (grub_xnu_stack): Likewise.
32842 (grub_xnu_launch): Removed.
32843 (grub_xnu_boot_resume): New function.
32844 (grub_xnu_boot): Use relocators.
32845 * loader/i386/xnu_helper.S: Removed.
32846 * loader/xnu.c (grub_xnu_heap_start): New variable.
32847 (grub_xnu_heap_size): Likewise.
32848 (grub_xnu_heap_malloc): Use relocators.
32849 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
32851 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
32853 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
32856 2009-12-13 Carles Pina i Estany <carles@pina.cat>
32858 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
32859 GRUB_ERR_NONE before calling grub_env_set.
32861 2009-12-12 Robert Millan <rmh@aybabtu.com>
32863 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
32864 * genmk.rb (video): New variable.
32865 (CLEANFILES, VIDEOFILES): Add #{video}.
32866 (#{video}): New target rule.
32867 * genvideolist.sh: New file.
32868 * Makefile.in (pkglib_DATA): Add video.lst.
32869 (video.lst): New target rule.
32870 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
32872 * util/grub.d/30_os-prober.in: Replace `vbe' with
32873 ${GRUB_VIDEO_BACKEND}.
32875 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
32877 * THANKS: Add David Miller.
32879 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
32881 libpciaccess support.
32883 * Makefile.in (LIBPCIACCESS): New variable.
32884 (enable_grub_emu_pci): Likewise.
32885 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
32886 util/pci.c and commands/lspci.c.
32887 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
32888 * configure.ac (grub-emu-pci): New option.
32889 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
32890 (grub_pci_device_unmap_range): Likewise.
32891 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
32892 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
32893 (grub_pci_address_t) [!GRUB_UTIL]: New type.
32894 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
32895 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
32896 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
32897 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
32898 * include/grub/pciutils.h: New file.
32899 * util/pci.c: Likewise.
32901 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
32903 * util/misc.c: Don't include <errno.h> twice.
32905 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
32907 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
32908 name in an error message.
32909 (grub_biosdisk_rw): Likewise.
32911 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32913 Eliminate NTFS 4Gib barrier.
32915 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
32916 (read_run_data): Likewise.
32917 (grub_ntfs_read_run_list): Likewise.
32918 (grub_ntfs_read_block): Likewise.
32919 (grub_ntfs_iterate_dir): Likewise.
32920 (read_mft): Likewise.
32921 (read_data): Likewise.
32923 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
32924 to avoid 64-bit division
32925 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
32926 (grub_ntfs_rlst): Use grub_disk_addr_t.
32928 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32930 Eliminate grub-fstest 4Gib barrier.
32932 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
32933 (read_file): Fix error reporting.
32935 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32937 Eliminate hexdump 4Gib barrier.
32939 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
32940 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
32942 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32944 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
32947 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
32949 Remove miscellaneous files in distclean target.
32951 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
32953 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
32955 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
32956 if they're already set. This resolves the conflict between my
32957 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
32958 fixing the --grub-probe option again.
32959 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
32960 change on 2009-10-06, so that we now once again source
32961 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
32963 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
32965 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
32966 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
32967 `util/devicemap.c'.
32969 2009-12-08 Carles Pina i Estany <carles@pina.cat>
32971 * include/grub/misc.h (grub_printf_): New declaration.
32972 * kern/misc.c (grub_printf_): New definition.
32973 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
32974 instead of `grub_printf' and `_'.
32975 * normal/menu_entry.c (store_completion): Likewise.
32977 (grub_menu_entry_run): Likewise.
32978 * normal/menu_text.c (grub_wait_after_message): Likewise.
32979 (notify_booting): Likewise.
32980 (notify_fallback): Likewise.
32981 (notify_execution_failure): Likewise.
32983 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
32985 * configure.ac: Check for vasprintf.
32986 * util/misc.c (asprintf): Move allocation from here ...
32987 (vasprintf): ... to here. New function.
32988 (xasprintf): New function.
32989 * include/grub/util/misc.h (vasprintf, xasprintf): Add
32991 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
32992 * util/grub-mkfont.c (write_font): Likewise.
32993 * util/grub-probe.c (probe): Likewise.
32994 * util/hostdisk.c (make_device_name): Likewise.
32996 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
32998 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
32999 anything even prefixed with 'cdrom' as a cdrom.
33001 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33003 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33006 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33008 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33009 grub_gettext_msg_list.
33010 (grub_gettext_gettranslation_from_position): Return const char *
33012 (grub_gettext_translate): Add the translated strings into a list,
33013 returns from the list if existing there.
33014 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33015 (grub_gettext_delete_list): Delete the list.
33016 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33017 lang environment variable is changed.
33018 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33020 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33022 Rename kernel.mod to kernel.img.
33024 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33025 (kernel_mod_EXPORTS): Rename to ...
33026 (kernel_img_EXPORTS): ... this.
33027 (kernel_mod_SOURCES): Rename to ...
33028 (kernel_img_SOURCES): ... this.
33029 (kernel_mod_HEADERS): Rename to ...
33030 (kernel_img_HEADERS): ... this. All users updated.
33031 (kernel_mod_CFLAGS): Rename to ...
33032 (kernel_img_CFLAGS): ... this.
33033 (kernel_mod_ASFLAGS): Rename to ...
33034 (kernel_img_ASFLAGS): ... this.
33035 (kernel_mod_LDFLAGS): Rename to ...
33036 (kernel_img_LDFLAGS): ... this.
33037 * conf/x86_64-efi.rmk: Likewise.
33038 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33039 (read_kernel_image): ... this. All users updated.
33040 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33042 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33044 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33045 (print_spaces): New function.
33046 (grub_print_ucs4): New function.
33047 (getstringwidth): New function.
33048 (print_message_indented): New function.
33049 (print_message): Gettexttize strings using print_message_indented.
33050 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33052 (get_entry_number): Gettextize and uses dynamic terminal width.
33053 (notify_booting, notify_fallback, notify_execution_failure):
33055 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33058 (grub_menu_entry_run): Likewise.
33059 * PO/POTFILES: Add normal/menu_entry.c.
33061 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33063 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33065 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33067 * util/grub-install.in: Install gettext .mo files.
33068 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33070 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33072 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33075 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33077 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33078 non-firmware-dependant one in realmode.S takes precedence.
33080 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33082 * commands/halt.c: Replace misc arch-specific headers with
33084 * commands/reboot.c: Likewise.
33085 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33087 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33088 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33089 (kernel_img_SOURCES): ... to here.
33091 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33092 * include/grub/i386/pc/init.h: Likewise.
33093 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33094 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33096 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33098 * include/grub/i386/halt.h: Remove.
33099 * include/grub/i386/reboot.h: Likewise.
33101 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33103 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33105 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33106 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33107 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33109 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33110 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33111 (usage): Add missing comma in printf.
33113 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33115 Use the same reboot approach on i386 coreboot and qemu as we do on
33118 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33119 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33120 * kern/i386/reboot.c: Remove.
33121 * include/grub/i386/reboot.h (grub_reboot): Export function.
33122 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33123 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33124 0xf000:0xfff0 instead of 0xffff:0x0000.
33125 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33126 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33128 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33130 Fix $srcdir != $objdir build.
33132 * Makefile.in (po/%.po): Rewrite as ...
33133 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33135 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33137 Fix GNU/Hurd grub-install crash.
33138 * util/grub-probe.c (probe): Try to access `path' only when it is not
33141 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33143 Correct module naming.
33145 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33146 (GRUB_MOD_INIT(efi_uga)): ... to this
33147 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33148 (GRUB_MOD_FINI(efi_uga)): ... to this
33149 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33150 (GRUB_MOD_INIT(efi_gop)): ... to this
33151 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33152 (GRUB_MOD_FINI(efi_gop)): ... to this
33154 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33156 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33158 (usage): Translate `arg' strings using gettext().
33159 Thanks to Jordi Mallach for the suggestion.
33161 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33163 GOP support. Based on patch from Bean
33164 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33166 * video/efi_gop.c: New file.
33167 * include/grub/efi/graphics_output.h: Likewise.
33168 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33169 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33171 * conf/x86_64-efi.rmk: Likewise.
33173 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33175 Rename efi_fb to efi_uga.
33177 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33179 (efi_fb_mod_SOURCES): Rename this ...
33180 (efi_uga_mod_SOURCES): ... to this.
33181 (efi_fb_mod_CFLAGS): Rename this ...
33182 (efi_uga_mod_CFLAGS): ... to this.
33183 (efi_fb_mod_LDFLAGS): Rename this ...
33184 (efi_uga_mod_LDFLAGS): ... to this.
33185 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33187 (efi_fb_mod_SOURCES): Rename this ...
33188 (efi_uga_mod_SOURCES): ... to this.
33189 (efi_fb_mod_CFLAGS): Rename this ...
33190 (efi_uga_mod_CFLAGS): ... to this.
33191 (efi_fb_mod_LDFLAGS): Rename this ...
33192 (efi_uga_mod_LDFLAGS): ... to this.
33193 * video/efi_fb.c: Move this ...
33194 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33196 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33198 * po/README: New file. Explain our PO file workflow.
33200 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33202 * po/ChangeLog: Remove. Move relevant entries back to ...
33203 * ChangeLog: ... here.
33204 * po/ca.po: Remove (now handled by TLP).
33205 * po/id.po: Likewise.
33206 * po/zh_CN.po: Likewise.
33207 * Makefile.in (LINGUAS): Initialize in a way that supports
33210 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33212 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33213 reliing on po/LINGUAS.
33214 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33215 (po/%.po): ... this.
33217 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33219 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33220 (main): Use `program_name' instead of nonexistent `progname'.
33222 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33224 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33225 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33227 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33229 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33231 * conf/i386-efi.rmk: Likewise.
33232 * conf/i386-ieee1275.rmk: Likewise.
33233 * conf/powerpc-ieee1275.rmk: Likewise.
33234 * conf/sparc64-ieee1275.rmk: Likewise.
33235 * conf/x86_64-efi.rmk: Likewise.
33237 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33239 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33241 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33243 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33245 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33247 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33248 (grub_mkdevicemap_SOURCES): New variable.
33249 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33250 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33251 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33252 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33253 (grub_mkdevicemap_SOURCES): Remove.
33254 * conf/i386-efi.rmk: Likewise.
33255 * conf/i386-ieee1275.rmk: Likewise.
33256 * conf/i386-pc.rmk: Likewise.
33257 * conf/powerpc-ieee1275.rmk: Likewise.
33258 * conf/sparc64-ieee1275.rmk: Likewise.
33259 * conf/x86_64-efi.rmk: Likewise.
33260 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33261 (usage): Fix strings to use `program_name'.
33262 (main): Initialize gettext.
33263 * util/grub-editenv.c: Likewise.
33264 * util/grub-emu.c: Likewise.
33265 * util/grub-fstest.c: Likewise.
33266 * util/grub-mkdevicemap.c: Likewise.
33267 * util/grub-mkfont.c: Likewise.
33268 * util/grub-mkrelpath.c: Likewise.
33269 * util/grub-pe2elf.c: Likewise.
33270 * util/grub-probe.c: Likewise.
33271 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33272 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33273 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33275 * util/misc.c: Include `"progname.h"'.
33276 (progname): Remove variable.
33277 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33279 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33281 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33282 printf and print a newline after the menuentry header line.
33283 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33285 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33287 autoconf >= 2.60 support $(localedir).
33289 * INSTALL: Note that autoconf 2.60 is required.
33290 * configure.ac (AC_PREREQ): Bump to 2.60.
33291 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33292 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33294 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33296 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33299 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33301 * normal/main.c (grub_normal_read_line): Fix off-by-one
33304 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33306 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33307 "parser.grub" in grub_command_execute() call.
33309 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33311 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33312 * conf/i386-efi.rmk: Likewise.
33313 * conf/i386-ieee1275.rmk: Likewise.
33314 * conf/i386-pc.rmk: Likewise.
33315 * conf/powerpc-ieee1275.rmk: Likewise.
33316 * conf/sparc64-ieee1275.rmk: Likewise.
33317 * conf/x86_64-efi.rmk: Likewise.
33318 * gettext/gettex.c: Include <grub/i18n.h>.
33319 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33321 * include/grub/i18n.h: ... to here
33322 * include/grub/i18n.h: ... to here.
33323 * kern/misc.c: Include <grub/i18n.h>
33324 (grub_gettext_dummy): Move above user.
33326 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33328 * util/Makefile.in (install-local): Convert a `for' into a normal
33331 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33333 * autogen.sh: Add automake call.
33334 * config.guess: Remove.
33335 * config.sub: Likewise.
33336 * install-sh: Likewise.
33338 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33340 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33342 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33344 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33345 function to a normal shell `for'.
33347 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33349 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33351 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33353 * util/grub-mkrelpath.c: New file.
33354 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33355 (grub_mkrelpath_SOURCES): New variable.
33356 * include/grub/util/misc.h: New function prototype.
33357 * util/misc.c (make_system_path_relative_to_its_root): New function.
33359 * util/grub-mkconfig_lib.in (bindir): New variable.
33360 (grub_mkrelpath): Likewise.
33361 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33363 * util/probe.c (probe): Make the file path relative to its root.
33364 Change a info message to use the GRUB path. Enable again the
33365 check if we can read the file with GRUB facilities.
33367 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33370 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33372 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33375 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33377 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
33380 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33382 * util/getroot.c (grub_util_is_dmraid): New function.
33383 (grub_util_get_dev_abstraction): Treat dmraid and multipath
33384 devices as normal ones, not as LVM.
33386 2009-11-23 Carles Pina i Estany <carles@pina.cat>
33388 * conf/common.rmk: Add grub-gettext_lib target and updates
33389 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
33391 * gettext/gettext.c: New file. (Reads mo files).
33392 * include/grub/file.h (grub_file_pread): New prototype.
33393 * include/grub/i18n.h (_): New prototype.
33394 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
33396 * kern/misc.c (grub_gettext_dummy): New function.
33397 * normal/menu_text.c: Include <grub/i18n.h>.
33398 * normal/menu_text.c (print_timeout): Gettexttize string.
33399 * normal/menu_text.c (print_message): Gettexttize string.
33400 * po/POTFILES: Add `normal/menu_text.c'.
33401 * po/ca.po: Add new translations.
33402 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
33403 gettext module and defines locale_dir and lang in grub.cfg.
33404 * NEWS: Add gettext support.
33406 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33408 * util/hostdisk.c: Include `<grub/i18n.h>'.
33409 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
33410 (make_device_name): Rewrite using asprintf.
33411 (convert_system_partition_to_system_disk): Replace 0 with NULL.
33412 (find_system_device): If a device is not found, generate one just
33413 by reusing the OS path name.
33414 (read_device_map): Make it permissible for device.map not to exist.
33416 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33418 * script/sh/execute.c: Move from here ...
33419 * script/execute.c: ... to here. Update all users.
33420 * script/sh/function.c: Move from here ...
33421 * script/function.c: ... to here. Update all users.
33422 * script/sh/lexer.c: Move from here ...
33423 * script/lexer.c: ... to here. Update all users.
33424 * script/sh/main.c: Move from here ...
33425 * script/main.c: ... to here. Update all users.
33426 * script/sh/parser.y: Move from here ...
33427 * script/parser.y: ... to here. Update all users.
33428 * script/sh/script.c: Move from here ...
33429 * script/script.c: ... to here. Update all users.
33431 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33433 * configure.ac: Detect all `emu' platforms. Define
33434 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
33435 --enable-grub-emu logic. Disable include/grub/machine
33436 symlink on `emu' platforms.
33438 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
33439 * gensymlist.sh.in: Likewise.
33441 * include/grub/i386/coreboot/machine.h: Remove file.
33442 * include/grub/i386/efi/machine.h: Likewise.
33443 * include/grub/i386/ieee1275/machine.h: Likewise.
33444 * include/grub/i386/pc/machine.h: Likewise.
33445 * include/grub/i386/qemu/machine.h: Likewise.
33446 * include/grub/powerpc/ieee1275/machine.h: Likewise.
33447 * include/grub/sparc64/ieee1275/machine.h: Likewise.
33448 * include/grub/x86_64/efi/machine.h: Likewise.
33450 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
33451 * commands/halt.c: Likewise.
33452 * commands/reboot.c: Likewise.
33453 * include/grub/autoefi.h: Likewise.
33454 * include/grub/i386/at_keyboard.h: Likewise.
33455 * include/grub/i386/kernel.h: Likewise.
33456 * include/grub/i386/loader.h: Likewise.
33457 * include/grub/i386/pc/memory.h: Likewise.
33458 * kern/dl.c: Likewise.
33459 * kern/i386/coreboot/init.c: Likewise.
33460 * loader/i386/bsd.c: Likewise.
33461 * loader/i386/linux.c: Likewise.
33462 * loader/multiboot_loader.c: Likewise.
33463 * term/i386/pc/serial.c: Likewise.
33464 * term/usb_keyboard.c: Likewise.
33466 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
33467 `<grub/machine/machine.h>'
33468 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
33469 * util/misc.c: Remove `<grub/machine/machine.h>' and
33470 `<grub/machine/time.h>'.
33472 * Makefile.in (enable_grub_emu): Remove variable.
33473 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
33475 * conf/any-emu.rmk: New file.
33476 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
33477 (grub_emu_init.c): Move from here ...
33478 * conf/any-emu.rmk: ... to here.
33480 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
33481 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
33482 * conf/any-emu.rmk: ... to here.
33484 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33486 * include/grub/parser.h (grub_parser_register): Document need
33487 of `name' parameter.
33488 * normal/main.c (grub_normal_read_line): Simplify prompt string.
33489 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
33492 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33494 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
33496 * include/grub/i18n.h (N_): New macro.
33497 * util/mkisofs/mkisofs.h: Likewise.
33498 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
33500 (usage): Use gettext() to translate help strings when printing them.
33502 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33504 Based on patch from Bean
33505 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33507 * video/efi_fb.c: New file.
33508 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
33509 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33511 * conf/x86_64-efi.rmk: Likewise.
33513 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
33515 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
33516 * util/i386/pc/grub-setup.c: Likewise.
33518 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
33520 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
33522 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
33523 file_get_storage_info to implement grub_guess_root_device.
33525 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33527 * Makefile.in (target): Use make's builtin $(shell) function
33528 instead of calling directly $(SHELL) to create the locale directories,
33529 inside the $(foreach) function.
33531 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33533 * util/grub-mkrescue.in: Print an error and usage if output option
33534 has not been given.
33536 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33538 Patch from Loïc Minier <loic.minier@ubuntu.com>.
33539 * util/grub.d/30_os-prober.in: Cope with Linux entries where
33540 root and /boot are on different devices.
33542 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33544 Fix build for srcdir != objdir.
33546 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
33547 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
33549 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
33550 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
33551 reference for input.
33553 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33555 * util/grub-mkrescue.in: Use source directory direcly (without copiing
33556 or hardlinking it). Remove -J option, Joliet is not compatible with
33557 multiple source directories.
33559 2009-11-21 Carles Pina i Estany <carles@pina.cat>
33560 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33562 * util/grub-mkrescue.in: Recognize `--override-directory' option.
33563 (process_input_dir): New function. Process an arbitrary input
33565 Misc adjustments to support both "override mode" and system-wide mode.
33567 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
33569 * configure.ac (UNIFONT_BDF): Rename to ...
33570 (FONT_SOURCE): ... this. Update all users.
33572 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
33574 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
33575 to the list of unifont files to look for.
33577 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33579 Patch from Joe Auricchio <jauricchio@gmail.com>
33580 * commands/minicmd.c (grub_mini_cmd_clear): New function.
33581 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
33582 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
33584 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
33586 * Makefile.in (install-local): Add a missing backslash.
33588 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
33590 * include/grub/x86_64/io.h: New file.
33592 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33594 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
33595 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
33596 Include `"progname.h"'.
33597 (main): Initialize gettext.
33598 * util/i386/pc/grub-setup.c: Gettexttize.
33599 * util/i386/pc/grub-mkimage.c: Likewise.
33601 * Makefile.in (po/*.po): Redefine as ...
33602 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
33604 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
33606 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33608 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
33609 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
33610 (program_name): Remove.
33611 (main): Initialize gettext support.
33612 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
33613 Include `<libintl.h>'.
33616 * util/mkisofs/eltorito.c: Gettexttize.
33617 * util/mkisofs/joliet.c: Likewise.
33618 * util/mkisofs/mkisofs.c: Likewise.
33619 * util/mkisofs/multi.c: Likewise.
33620 * util/mkisofs/rock.c: Likewise.
33621 * util/mkisofs/tree.c: Likewise.
33622 * util/mkisofs/write.c: Likewise.
33624 * po/POTFILES: Update with new files.
33626 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33628 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
33629 * util/mkisofs/iso9660.h: Likewise.
33630 * util/mkisofs/joliet.c: Likewise.
33631 * util/mkisofs/mkisofs.c: Likewise.
33632 * util/mkisofs/mkisofs.h: Likewise.
33633 * util/mkisofs/rock.c: Likewise.
33634 * util/mkisofs/tree.c: Likewise.
33635 * util/mkisofs/write.c: Likewise.
33637 * util/mkisofs/eltorito.c (rcsid): Remove.
33638 * util/mkisofs/hash.c: Likewise.
33639 * util/mkisofs/joliet.c: Likewise.
33640 * util/mkisofs/name.c: Likewise.
33641 * util/mkisofs/rock.c: Likewise.
33642 * util/mkisofs/tree.c: Likewise.
33643 * util/mkisofs/write.c: Likewise.
33645 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33647 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
33648 instead of static allocation.
33649 * util/mkisofs/match.h: Likewise.
33651 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33653 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
33654 and `util/grub.d/10_linux.in'.
33655 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
33656 translatable Shell files.
33658 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33660 * Makefile.in ($(srcdir)/aclocal.m4): New target.
33662 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33664 * INSTALL: Document Automake is needed for bootstrap.
33665 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
33666 * util/grub.d/10_kfreebsd.in (bindir): New variable.
33667 Add gettext initialization.
33668 (kfreebsd_entry): Make menuentry output translatable.
33670 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33672 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
33673 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
33674 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
33675 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
33676 (LINGUAS): Auto-generate using `po/LINGUAS'.
33677 * po/LINGUAS: New file.
33679 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33681 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
33683 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
33684 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
33685 bindtextdomain() calls for gettext initialization.
33687 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33689 * gnulib/progname.c: New file (imported from Gnulib).
33690 * gnulib/progname.h: Likewise.
33691 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33692 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
33693 (usage): Replace `progname' with `program_name'.
33694 (main): Use set_program_name() for program name initialization.
33696 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33698 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
33700 * Makefile.in (CPPFLAGS): ... to here.
33702 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33704 * aclocal.m4: Move from here ...
33705 * acinclude.m4: ... to here.
33706 * autogen.sh: Add call to `aclocal'.
33707 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
33709 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33711 * Makefile.in (CLEANFILES): Add `po/*.mo'.
33712 (LINGUAS): New variable.
33713 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
33714 (install-local): Install MO files.
33715 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
33716 * include/grub/i18n.h: New file.
33717 * po/POTFILES: New file.
33718 * po/ca.po: New file.
33719 * util/grub.d/10_linux.in (bindir): New variable.
33720 Add gettext initialization.
33721 (linux_entry): Make menuentry output translatable.
33722 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
33723 (usage): Make --help output translatable.
33724 (main): Initialize gettext.
33726 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33728 * import_gcry.py: New file (written by Vladimir with minor
33730 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
33732 * INSTALL: Document that Python is required for bootstrap.
33734 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33736 Import ciphers from libgcrypt 1.4.4.
33738 * lib/libgcrypt/cipher/ChangeLog
33739 * lib/libgcrypt/cipher/ac.c
33740 * lib/libgcrypt/cipher/arcfour.c
33741 * lib/libgcrypt/cipher/bithelp.h
33742 * lib/libgcrypt/cipher/blowfish.c
33743 * lib/libgcrypt/cipher/camellia-glue.c
33744 * lib/libgcrypt/cipher/camellia.c
33745 * lib/libgcrypt/cipher/camellia.h
33746 * lib/libgcrypt/cipher/cast5.c
33747 * lib/libgcrypt/cipher/cipher.c
33748 * lib/libgcrypt/cipher/crc.c
33749 * lib/libgcrypt/cipher/des.c
33750 * lib/libgcrypt/cipher/dsa.c
33751 * lib/libgcrypt/cipher/ecc.c
33752 * lib/libgcrypt/cipher/elgamal.c
33753 * lib/libgcrypt/cipher/hash-common.c
33754 * lib/libgcrypt/cipher/hash-common.h
33755 * lib/libgcrypt/cipher/hmac-tests.c
33756 * lib/libgcrypt/cipher/md.c
33757 * lib/libgcrypt/cipher/md4.c
33758 * lib/libgcrypt/cipher/md5.c
33759 * lib/libgcrypt/cipher/primegen.c
33760 * lib/libgcrypt/cipher/pubkey.c
33761 * lib/libgcrypt/cipher/rfc2268.c
33762 * lib/libgcrypt/cipher/rijndael-tables.h
33763 * lib/libgcrypt/cipher/rijndael.c
33764 * lib/libgcrypt/cipher/rmd.h
33765 * lib/libgcrypt/cipher/rmd160.c
33766 * lib/libgcrypt/cipher/rsa.c
33767 * lib/libgcrypt/cipher/seed.c
33768 * lib/libgcrypt/cipher/serpent.c
33769 * lib/libgcrypt/cipher/sha1.c
33770 * lib/libgcrypt/cipher/sha256.c
33771 * lib/libgcrypt/cipher/sha512.c
33772 * lib/libgcrypt/cipher/tiger.c
33773 * lib/libgcrypt/cipher/twofish.c
33774 * lib/libgcrypt/cipher/whirlpool.c
33776 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33778 Fix build for systems without error().
33780 * gnulib/error.c: New file (imported from Gnulib).
33781 * gnulib/error.h: Likewise.
33782 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
33783 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
33784 (this variable is now used by error()).
33786 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
33788 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
33789 instead of relying that char is signed.
33791 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
33793 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
33794 blocksize different from specified.
33795 (grub_pxefs_read): Likewise.
33797 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
33799 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
33801 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
33802 (grub_ata_readwrite): Likewise. Update 2 format strings.
33803 (grub_atapi_read): Likewise.
33805 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
33806 * conf/i386.rmk (pkglib_MODULES): ... to here ...
33807 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
33808 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
33809 (ata_mod_LDFLAGS): Move from here ...
33810 * conf/i386.rmk: ... to here ...
33811 * conf/x86_64-efi.rmk: ... and here.
33812 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
33813 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
33815 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33817 Relicense multiboot.h, with RMS' blessing.
33819 * include/multiboot.h: Change to X11 license.
33821 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
33823 Support --version in grub-mkisofs.
33825 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
33826 (OPTION_VERSION): New macro.
33827 (ld_options): Recognize --version.
33828 (usage): Move `program_name' from here ...
33829 (program_name): ... to here. Add `static' qualifier.
33830 (main): Recognize `OPTION_VERSION'.
33832 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
33834 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
33835 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
33837 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
33839 Fix help2man generation for mkisofs.
33841 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
33842 (usage): Send output to stdout (rather than stderr).
33844 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
33846 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
33847 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
33848 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
33849 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
33850 (bin_SCRIPTS): Add `grub-mkfloppy'.
33851 (grub_mkfloppy_SOURCES): New variable.
33853 * util/grub-mkrescue.in: New file.
33854 * util/i386/pc/grub-mkfloppy.in: New file.
33856 * util/i386/coreboot/grub-mkrescue.in: Remove.
33857 * util/i386/pc/grub-mkrescue.in: Remove.
33859 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33861 * include/grub/multiboot.h (struct grub_multiboot_header): Move
33863 * include/multiboot.h (struct multiboot_header): ... to here. Update
33865 * include/grub/multiboot.h (struct grub_multiboot_info): Move
33867 * include/multiboot.h (struct multiboot_info): ... to here. Update
33869 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
33871 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
33873 * include/grub/multiboot.h (struct grub_mod_list): Move
33875 * include/multiboot.h (struct multiboot_mod_list): ... to here.
33878 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33880 * include/multiboot2.h (multiboot_word): Rename from this ...
33881 (multiboot2_word): ... to this. Update all users.
33882 (multiboot_header): Rename from this ...
33883 (multiboot2_header): ... to this. Update all users.
33884 (multiboot_tag_header): Rename from this ...
33885 (multiboot2_tag_header): ... to this. Update all users.
33886 (multiboot_tag_start): Rename from this ...
33887 (multiboot2_tag_start): ... to this. Update all users.
33888 (multiboot_tag_name): Rename from this ...
33889 (multiboot2_tag_name): ... to this. Update all users.
33890 (multiboot_tag_module): Rename from this ...
33891 (multiboot2_tag_module): ... to this. Update all users.
33892 (multiboot_tag_memory): Rename from this ...
33893 (multiboot2_tag_memory): ... to this. Update all users.
33894 (multiboot_tag_unused): Rename from this ...
33895 (multiboot2_tag_unused): ... to this. Update all users.
33896 (multiboot_tag_end): Rename from this ...
33897 (multiboot2_tag_end): ... to this. Update all users.
33899 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33901 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
33902 this platform we should support Multiboot1 first.
33904 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
33905 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
33906 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
33908 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
33910 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
33911 of write calls (converting them to fwrite() if they aren't already).
33912 (get_torito_desc): Likewise.
33913 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
33915 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
33917 * util/i386/pc/grub-install.in: Move from here ...
33918 * util/grub-install.in: ... to here. Update all users.
33920 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
33922 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
33924 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
33926 Support for El Torito without floppy emulation.
33928 * util/mkisofs/eltorito.c: Include `<errno.h>'.
33929 (init_boot_catalog): Improve error handling.
33930 (get_torito_desc): Don't use floppy emulation unless requested by
33931 user. Patch boot information table when requested via
33932 `-boot-info-table'.
33933 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
33934 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
33935 (use_boot_info_table): New variables.
33936 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
33937 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
33938 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
33939 `--eltorito-emul-floppy'.
33940 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
33941 and `OPTION_ELTORITO_EMUL_FLOPPY'.
33942 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
33943 (use_boot_info_table, get_731): New prototypes.
33944 * util/mkisofs/write.c (get_731): New function.
33946 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
33948 Fix the generation of the man page.
33950 * util/pc/i386/grub-install.in: Source
33951 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33953 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
33955 Large file support for grub-mkisofs.
33957 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
33958 * util/mkisofs/mkisofs.c (next_extent, last_extent)
33959 (session_start): Upgrade type to `uint64_t'. Update all users.
33960 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
33961 (struct directory_entry): Upgrade type of `starting_block' and
33962 `size' to `uint64_t'. Update all users.
33963 (struct deferred): Remove unused structure.
33964 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
33966 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
33967 file is larger than `UINT32_MAX'.
33968 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
33969 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
33971 (struct deferred_write): Upgrade type of `extent' and `size' to
33972 `uint64_t'. Update all users.
33973 (last_extent_written): Upgrade type to `uint64_t'. Update all
33975 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
33976 Update all users. Upgrade type of `remain' to `int64_t' and
33977 `use' to `size_t'. Use error() to handle fread() errors.
33978 (write_files): Rely on write_one_file() rather than calling
33979 xfwrite() directly.
33981 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
33983 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
33985 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33987 * util/mkisofs/fnmatch.c: Remove.
33988 * util/mkisofs/getopt1.c: Likewise.
33989 * util/mkisofs/getopt.c: Likewise.
33990 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
33991 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
33992 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
33993 `gnulib/getopt1.c' and `gnulib/getopt.c'.
33994 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
33996 * configure.ac: Detect `mingw32msvc' host_os.
33997 Check for lstat(), getuid() and getgid().
33999 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34000 instances of `u_char' with `uint8_t'.
34002 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34003 [!HAVE_GETUID] (getuid): New function (stub).
34004 [!HAVE_GETGID] (getgid): Likewise.
34005 [!HAVE_LSTAT] (lstat): Likewise.
34006 [!S_IROTH] (S_IROTH): New macro (dummy).
34007 [!S_IRGRP] (S_IRGRP): Likewise.
34009 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34011 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34012 conditional expression).
34014 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34016 Import from Gnulib.
34018 * gnulib/fnmatch.c: New file.
34019 * gnulib/fnmatch.h: Likewise.
34020 * gnulib/fnmatch_loop.c: Likewise.
34021 * gnulib/getopt.c: Likewise.
34022 * gnulib/getopt.h: Likewise.
34023 * gnulib/getopt1.c: Likewise.
34024 * gnulib/getopt_int.h: Likewise.
34025 * gnulib/gettext.h: Likewise.
34027 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34029 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34030 * normal/handler.c (read_handler_list): Likewise.
34032 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34036 * kern/command.c (grub_register_command_prio): Use
34037 grub_zalloc() instead of explicitly zeroing data.
34038 * kern/list.c: Include `<grub/mm.h>'.
34039 (grub_named_list_find): Replace `0' with `NULL'.
34040 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34041 (fs_module_list): Change type to `grub_named_list_t'. Update all
34043 * normal/dyncmd.c (read_command_list): Add space between function
34044 call and parenthesis.
34045 * normal/handler.c (read_handler_list): Likewise.
34047 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34049 * normal/auth.c (punishment_delay): Moved from here ...
34050 (grub_auth_strcmp): ... to here (inside function).
34052 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34054 * include/grub/list.h (struct grub_named_list): Remove `const'
34055 qualifier from `name'.
34056 (struct grub_prio_list): Likewise.
34058 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34060 * normal/auth.c: Include `<grub/time.h>'.
34061 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34063 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34065 * normal/auth.c (punishment_delay): New variable.
34066 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34067 (grub_auth_check_authentication): Punish failed login attempts with
34068 an incremental (2^N) delay.
34070 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34072 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34073 path with $(srcdir).
34075 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34077 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34079 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34081 * util/i386/coreboot/grub-mkrescue.in: New file.
34082 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34085 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34086 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34087 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34089 * util/mkisofs/defaults.h: New file.
34090 * util/mkisofs/eltorito.c: Likewise.
34091 * util/mkisofs/exclude.h: Likewise.
34092 * util/mkisofs/fnmatch.c: Likewise.
34093 * util/mkisofs/getopt.c: Likewise.
34094 * util/mkisofs/getopt1.c: Likewise.
34095 * util/mkisofs/hash.c: Likewise.
34096 * util/mkisofs/include/fctldefs.h: Likewise.
34097 * util/mkisofs/include/mconfig.h: Likewise.
34098 * util/mkisofs/include/prototyp.h: Likewise.
34099 * util/mkisofs/include/statdefs.h: Likewise.
34100 * util/mkisofs/iso9660.h: Likewise.
34101 * util/mkisofs/joliet.c: Likewise.
34102 * util/mkisofs/match.c: Likewise.
34103 * util/mkisofs/match.h: Likewise.
34104 * util/mkisofs/mkisofs.c: Likewise.
34105 * util/mkisofs/mkisofs.h: Likewise.
34106 * util/mkisofs/multi.c: Likewise.
34107 * util/mkisofs/name.c: Likewise.
34108 * util/mkisofs/rock.c: Likewise.
34109 * util/mkisofs/tree.c: Likewise.
34110 * util/mkisofs/write.c: Likewise.
34112 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34114 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34117 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34119 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34120 `grub-mkimage' (and use $0 when possible).
34122 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34124 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34125 error message for excessively large memory map.
34127 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34129 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34132 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34134 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34135 message for coreboot users.
34137 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34139 Fix build with GNU gold.
34141 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34142 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34143 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34145 * aclocal.m4: Likewise.
34147 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34149 * configure.ac (AC_PREREQ): Bump to 2.59d.
34150 * INSTALL: Make it more clear when Autoconf and Ruby are
34151 needed and when to run `./autogen.sh'.
34153 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34155 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34158 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34160 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34162 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34164 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34165 giving it to GNU Mach.
34167 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34169 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34170 GNU partition number to get internal GRUB partition number.
34172 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34174 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34175 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34177 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34179 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34180 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34183 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34185 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34187 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34191 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34192 `-isystem=$(srcdir)/include'.
34194 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34196 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34197 checked (grub-install doesn't currently rely on it).
34199 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34203 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34204 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34205 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34206 * conf/i386-ieee1275.rmk: Likewise.
34207 * conf/i386-pc.rmk: Likewise.
34208 * conf/powerpc-ieee1275.rmk: Likewise.
34209 * conf/sparc64-ieee1275.rmk: Likewise.
34210 * conf/x86_64-efi.rmk: Likewise.
34212 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34214 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34216 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34218 * include/grub/misc.h: Stop checking for APPLE_CC.
34220 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34222 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34223 doesn't cause an infinite call loop.
34225 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34227 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34230 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34232 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34234 * Makefile.in: Likewise.
34236 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34238 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34240 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34242 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34244 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34246 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34248 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34250 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34252 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34254 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34256 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34257 in $(MAKEINFO) invocation. This makes it clear in output that
34258 errors are being ignored.
34260 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34262 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34264 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34265 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34266 * conf/i386-ieee1275.rmk: Likewise.
34267 * conf/i386-pc.rmk: Likewise.
34268 * conf/powerpc-ieee1275.rmk: Likewise.
34269 * conf/sparc64-ieee1275.rmk: Likewise.
34270 * conf/x86_64-efi.rmk: Likewise.
34272 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34274 * util/grub-editenv.c (main): If only a command is given, use
34275 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34276 (usage): FILENAME is now optional and has a default.
34278 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34280 Improve grub-mkconfig performance when there are several menu
34281 entries on a single filesystem.
34283 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34284 prepare_grub_to_access_device.
34285 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34286 * util/grub.d/30_os-prober.in: Likewise.
34288 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34290 * util/grub.d/10_freebsd.in: Remove.
34291 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34292 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34294 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34296 * docs/grub.cfg: Fix example usage of *BSD loaders.
34298 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34300 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34301 grub_util_error() call.
34303 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34305 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34306 `reserved_first_sector' member.
34307 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34308 `reserved_first_sector' to 1.
34309 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34310 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34311 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34312 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34313 filesystems which begin at first sector.
34314 (options): New option --skip-fs-probe.
34315 (main): Handle --skip-fs-probe and pass it to setup().
34317 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34319 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34320 (memset): Fix function prototype.
34322 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34323 2009-10-25 Vasily Averin <vvs@parallels.com>
34325 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34326 `dirent.direntlen == 0'.
34328 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34330 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34332 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34334 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34336 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34337 `__trampoline_setup' and `__ucmpdi2'.
34338 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34339 that libgcc provides.
34341 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34343 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34344 * include/grub/sparc64/libgcc.h (memset): Likewise.
34345 * include/grub/misc.h (memset, memcmp): New function prototypes.
34347 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34349 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34351 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34353 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34355 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34356 * docs/grub.cfg: Compensate for recent change in multiboot
34357 loader (since 2009-08-14 it won't pass filename to payload).
34358 * util/grub.d/10_hurd.in: Likewise.
34360 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
34362 * config.guess: Update to latest version from config git
34364 * config.sub: Likewise.
34366 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34368 Fix build on sparc64.
34370 * configure.ac: Perform checks for libgcc symbols before
34371 adding `-nostdlib' to LDFLAGS.
34373 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34375 Let user specify OpenBSD root device.
34377 * loader/i386/bsd.c (openbsd_root): New variable.
34378 (openbsd_opts): New option 'root'.
34379 (OPENBSD_ROOT_ARG): New macro.
34380 (grub_openbsd_boot): Use 'openbsd_root'.
34381 (grub_cmd_openbsd): Fill 'openbsd_root'.
34383 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34385 * NEWS: Misc adjustments.
34387 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34389 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
34391 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34393 * configure.ac: Bump version to 1.97.
34395 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
34397 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
34398 -mno-3dnow on x86 architectures. Some toolchains enable these
34399 features by default, but they rely on registers that aren't enabled
34400 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
34402 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
34404 Make entry text a bit more readable.
34406 * util/grub.d/10_linux.in: Add `with' before `Linux'.
34408 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34410 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
34412 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34414 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
34417 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34419 * configure.ac: Add missing dollar.
34421 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34423 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
34425 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
34426 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
34428 * include/grub/sparc64/libgcc.h: Likewise. Use
34429 preprocessor conditionals.
34431 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
34433 * conf/common.rmk (grub-dumpbios): Remove rule.
34434 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
34435 * util/grub-dumpbios.in: Remove file.
34437 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
34439 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
34440 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
34442 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
34443 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
34446 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
34447 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
34448 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
34449 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
34452 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
34454 * term/tparm.c: Switch to GPLv3.
34456 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
34458 * include/grub/i386/cpuid.h: Add header protection.
34460 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
34462 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
34464 * include/grub/i386/cpuid.h: New file.
34465 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
34466 (has_longmode): Rename to ...
34467 (grub_cpuid_has_longmode): ... this. Update all users. Remove
34468 `static' attribute.
34469 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
34470 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
34471 on a CPU that doesn't implement AMD64 instruction set.
34473 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
34475 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
34476 that version.texi is rebuilt on version number changes.
34478 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
34480 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
34483 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
34485 * util/i386/pc/grub-install.in: Source
34486 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
34487 that the --grub-probe option will work.
34488 * util/sparc64/ieee1275/grub-install.in: Likewise.
34490 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
34492 * configure.ac: Bump version to 1.97~beta4.
34494 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
34496 Resync grub-mkdevicemap in x86_64-efi.
34498 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
34499 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
34500 `util/devicemap.c'.
34502 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
34504 * util/grub-editenv.c (create_envblk_file): Write new block with a
34505 .new suffix and then rename it into place, to ensure atomic
34508 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
34510 Do not automatically install headers.
34512 * Makefile.in (include_DATA): Remove. Update all users.
34514 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
34516 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
34517 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
34519 * util/osdetect.lua: Remove.
34520 * script/lua/lauxlib.c: Likewise.
34521 * script/lua/ldebug.c: Likewise.
34522 * script/lua/grub_main.c: Likewise.
34523 * script/lua/lauxlib.h: Likewise.
34524 * script/lua/ldebug.h: Likewise.
34525 * script/lua/ltablib.c: Likewise.
34526 * script/lua/liolib.c: Likewise.
34527 * script/lua/lstrlib.c: Likewise.
34528 * script/lua/lualib.h: Likewise.
34529 * script/lua/ldo.c: Likewise.
34530 * script/lua/ldump.c: Likewise.
34531 * script/lua/ldo.h: Likewise.
34532 * script/lua/loslib.c: Likewise.
34533 * script/lua/lundump.c: Likewise.
34534 * script/lua/grub_lib.c: Likewise.
34535 * script/lua/ldblib.c: Likewise.
34536 * script/lua/lundump.h: Likewise.
34537 * script/lua/lmem.c: Likewise.
34538 * script/lua/grub_lib.h: Likewise.
34539 * script/lua/lmathlib.c: Likewise.
34540 * script/lua/lstate.c: Likewise.
34541 * script/lua/ltm.c: Likewise.
34542 * script/lua/lvm.c: Likewise.
34543 * script/lua/lmem.h: Likewise.
34544 * script/lua/lstate.h: Likewise.
34545 * script/lua/ltm.h: Likewise.
34546 * script/lua/ltable.c: Likewise.
34547 * script/lua/lvm.h: Likewise.
34548 * script/lua/llex.c: Likewise.
34549 * script/lua/lgc.c: Likewise.
34550 * script/lua/grub_lua.h: Likewise.
34551 * script/lua/loadlib.c: Likewise.
34552 * script/lua/lfunc.c: Likewise.
34553 * script/lua/lopcodes.c: Likewise.
34554 * script/lua/lparser.c: Likewise.
34555 * script/lua/ltable.h: Likewise.
34556 * script/lua/llex.h: Likewise.
34557 * script/lua/lgc.h: Likewise.
34558 * script/lua/lfunc.h: Likewise.
34559 * script/lua/lbaselib.c: Likewise.
34560 * script/lua/lopcodes.h: Likewise.
34561 * script/lua/lparser.h: Likewise.
34562 * script/lua/lzio.c: Likewise.
34563 * script/lua/linit.c: Likewise.
34564 * script/lua/lobject.c: Likewise.
34565 * script/lua/llimits.h: Likewise.
34566 * script/lua/lstring.c: Likewise.
34567 * script/lua/lzio.h: Likewise.
34568 * script/lua/lapi.c: Likewise.
34569 * script/lua/lcode.c: Likewise.
34570 * script/lua/lua.h: Likewise.
34571 * script/lua/lobject.h: Likewise.
34572 * script/lua/lstring.h: Likewise.
34573 * script/lua/lapi.h: Likewise.
34574 * script/lua/lcode.h: Likewise.
34575 * script/lua/luaconf.h: Likewise.
34577 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
34579 * docs/grub.texi (Command-line and menu entry commands): Document
34580 date and echo commands.
34582 2009-09-24 Pavel Roskin <proski@gnu.org>
34584 * include/grub/kernel.h (struct grub_module_header): Remove
34585 `grub_module_header_types'. Make `type' unsigned. Make `size'
34586 32-bit on all platforms.
34587 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
34588 8-bit field. Use grub_host_to_target32() for `size'.
34589 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
34590 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
34591 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
34593 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34595 Fix "lost keypress" bug in at_keyboard.
34597 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
34598 Checks for readyness of input buffer (without flushing it).
34599 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
34600 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
34602 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34604 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
34605 size check within GRUB_MACHINE_PCBIOS section.
34607 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34609 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
34611 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
34612 KEYBOARD_ISREADY check.
34613 (grub_at_keyboard_checkkey): Rename to ...
34614 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
34615 Remove gratuitous cast.
34617 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
34619 * configure.ac: Call AC_PROG_MKDIR_P.
34620 * Makefile.in (docs/stamp-vti): Create docs directory. Create
34621 version.texi in $(builddir) rather than $(srcdir).
34622 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
34623 to makeinfo's @include search path.
34625 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
34627 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
34629 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
34631 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
34634 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
34636 Build info documentation. Some code borrowed from Automake.
34638 * configure.ac: Check for makeinfo.
34639 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
34640 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
34642 (MOSTLYCLEANFILES): Add vti.tmp.
34643 (docs/version.texi, docs/stamp-vti): Update automatically.
34644 (docs/grub.info): Build info documentation. Use --force and ignore
34646 (all-local): Add $(INFOS).
34647 (install-local): Install info files.
34648 (uninstall): Uninstall info files.
34649 * docs/version.texi: Remove from revision control. This file is
34650 automatically generated on build now.
34651 * gendistlist.sh: Add `*.info'.
34653 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
34655 * kern/term.c: Fix indentation.
34657 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
34659 * util/hostdisk.c: Fix a comment.
34661 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
34663 Fix regression introduced in r2539.
34665 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
34668 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
34670 * util/grub.d/30_os-prober.in: Don't throw away stderr from
34671 os-prober. Under normal operation, it does not print anything to
34672 stderr; if it does, we need to debug it, and throwing away stderr
34673 makes that excessively difficult.
34675 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
34677 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
34679 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
34681 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
34682 AC_LANG_PROGRAM from autoconf.
34683 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
34684 prototypes (fixes warning).
34686 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
34687 `--disable-werror' was used.
34689 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
34691 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
34692 uninitialized `lastaddr'.
34694 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
34696 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
34698 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
34700 * commands/test.c (get_fileinfo): Return immediately if
34701 grub_fs_probe fails.
34703 2009-09-14 José Martínez <xosemp@gmail.com>
34705 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
34707 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
34709 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
34712 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
34714 * configure.ac: Remove --enable-grub-pe2elf. Only build
34715 grub-pe2elf when needed by the build system itself.
34716 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
34718 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34720 * configure.ac: Bump version to 1.97~beta3.
34721 * docs/version.texi: Likewise.
34723 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34725 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
34726 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
34728 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
34729 (grub_linux_setup_video): ... to here (with some adjustments).
34731 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34733 Fix memory corruption issue (spotted by Colin Watson).
34735 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
34736 causing returned size to be stored in an incorrect memory location.
34737 Fix use of uninitialized value when storing the returned size.
34739 2009-09-12 Yves Blusseau <blusseau@zetam.org>
34741 Change clean rules to properly remove files
34743 * genmk.rb: add new clean rules
34744 * Makefile.in (clean): add the new targets
34745 (mostlyclean): likewise
34747 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
34749 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
34751 * fs/ntfs.c (init_file): Understand 64-bit sizes for
34752 non-resident files.
34754 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
34756 * configure.ac: Don't look for help2man when cross-compiling. Fixes
34757 part of bug #27349.
34759 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
34761 * util/grub-mkconfig.in: Make the created config mode 400 and
34762 print a warning if it fails.
34764 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
34766 * util/grub.d/40_custom.in: Ask user to type custom entries below
34767 comment, rather than below 'exec tail' line.
34769 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
34771 * util/grub.d/40_custom.in: Make sure that the explanatory text is
34772 visible in grub.cfg.
34774 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
34776 * util/grub.d/40_custom.in: Make it a little clearer how to use this
34779 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
34781 * docs/grub.cfg: Add an example menu entry for memtest86+.
34783 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
34785 * config.guess: Update to latest version from config git.
34786 * config.sub: Likewise.
34788 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
34790 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
34791 unknown-command case. Fixes bug #27320.
34793 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
34795 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
34796 `help' if the command exists.
34798 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
34800 * INSTALL: Require GCC 4.1.3 or later.
34802 2009-09-06 Yves Blusseau <blusseau@zetam.org>
34804 * Makefile.in (RMKFILES): add i386-qemu.rmk
34805 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
34806 $(srcdir)/stamp-h.in
34808 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
34810 * util/grub-probe.c (probe): Comment out buggy codepath, which
34811 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
34812 should be re-enabled after 1.97.
34814 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
34816 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
34819 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
34821 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
34822 unnecessary calls to grub_error.
34824 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
34826 * NEWS: Mention `keystatus' and Unicode fonts.
34828 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
34830 * configure.ac: Bump version to 1.97~beta2.
34831 * docs/version.texi: Likewise.
34833 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
34835 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
34836 containing unwind information in some cases where it previously did
34837 not. Use -fno-dwarf2-cfi-asm if available to restore the old
34838 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
34841 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
34843 Embedding loadenv module into grub-emu
34845 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
34847 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
34848 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
34849 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
34850 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
34851 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
34852 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
34854 2009-09-03 Magnus Granberg <zorry@ume.nu>
34856 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
34857 include -fPIE in the default specs.
34858 * configure.ac: Check if pie_possible is yes and add -fno-PIE
34861 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
34863 * INSTALL: Note that GNU Bison 2.3 or later is required.
34865 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
34867 * kern/i386/pc/startup.S: Fix typo.
34869 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
34871 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
34874 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
34876 * docs/grub.texi (Naming convention): Describe one-based partition
34878 (Device syntax): Likewise.
34879 (File name syntax): Likewise.
34880 (Block list syntax): Likewise.
34881 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
34883 (File name syntax): Likewise.
34884 (Command-line and menu entry commands): Document acpi, blocklist,
34885 crc, export, insmod, keystatus, ls, set, and unset commands.
34887 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
34889 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
34890 to avoid implying that only one of --shift, --ctrl, or --alt may be
34893 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
34895 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
34896 rather than comparing against S_IFREG, which will almost never work.
34898 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
34900 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
34901 (write_blocklists): Likewise.
34903 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
34905 * script/lua/grub_lua.h (fputs): Supply a format string as the first
34906 argument to grub_printf.
34908 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
34910 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
34913 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
34915 * kern/file.c (grub_file_read): Spelling fix
34917 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
34919 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
34920 loading of headers in some cases.
34922 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
34924 * configure.ac: Bump version to 1.97~beta1.
34925 * docs/version.texi: Likewise.
34927 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
34929 * include/grub/i386/xnu.h: Add license header.
34930 include grub/err.h explicitly.
34932 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
34934 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
34935 to `ufs' in the vfs.root.mountfrom kernel parameter.
34937 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
34939 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
34941 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
34942 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
34944 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
34945 `ARRAY_SIZE' macro.
34947 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34949 * kern/file.c (grub_file_read): Check offset.
34950 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
34951 * fs/jfs.c (grub_jfs_read_file): Likewise.
34952 * fs/ntfs.c (grub_ntfs_read): Likewise.
34953 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
34954 * fs/minix.c (grub_minix_read_file): Correct offset check.
34955 * fs/ufs.c (grub_ufs_read_file): Likewise.
34957 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
34959 * term/i386/pc/console.c (bios_data_area): Cast
34960 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
34962 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34964 1-bit optimised blitters.
34966 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
34968 (grub_video_fbblit_replace_24bit_1bit): Likewise.
34969 (grub_video_fbblit_replace_16bit_1bit): Likewise.
34970 (grub_video_fbblit_replace_8bit_1bit): Likewise.
34971 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
34972 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
34973 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
34974 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
34976 (grub_video_fbblit_replace_24bit_1bit): Likewise.
34977 (grub_video_fbblit_replace_16bit_1bit): Likewise.
34978 (grub_video_fbblit_replace_8bit_1bit): Likewise.
34979 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
34980 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
34981 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
34982 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
34984 * video/video.c (grub_video_get_blit_format): Return
34985 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
34987 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
34989 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
34990 the first argument to grub_printf.
34992 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
34993 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
34995 Add `getkeystatus' terminal method. Add a new `keystatus' command
34998 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
34999 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35000 modifier key bitmasks.
35001 (struct grub_term_input): Add `getkeystatus' member.
35002 (grub_getkeystatus): Add prototype.
35003 * kern/term.c (grub_getkeystatus): New function.
35005 * include/grub/i386/pc/memory.h
35006 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35007 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35009 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35010 (grub_console_term_input): Set `getkeystatus' member.
35011 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35013 (grub_usb_keyboard_getreport): Likewise.
35014 (grub_usb_keyboard_checkkey): Likewise.
35015 (grub_usb_keyboard_getkeystatus): New function.
35016 (grub_usb_keyboard_term): Set `getkeystatus' member.
35018 * commands/keystatus.c: New file.
35019 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35020 (keystatus_mod_SOURCES): New variable.
35021 (keystatus_mod_CFLAGS): Likewise.
35022 (keystatus_mod_LDFLAGS): Likewise.
35023 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35024 commands/keystatus.c.
35025 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35026 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35027 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35028 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35029 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35030 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35032 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35034 Split befs.mod and afs.mod into *_be.mod and *.mod
35036 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35037 (grub_fstest_SOURCES): Likewise.
35038 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35039 (afs_be_mod_SOURCES): New variable.
35040 (afs_be_mod_CFLAGS): Likewise.
35041 (afs_be_mod_LDFLAGS): Likewise.
35042 (befs_be_mod_SOURCES): Likewise.
35043 (befs_be_mod_CFLAGS): Likewise.
35044 (befs_be_mod_LDFLAGS): Likewise.
35045 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35046 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35047 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35048 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35049 (grub_emu_SOURCES): Likewise.
35050 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35051 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35052 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35053 * fs/afs_be.c: New file.
35054 * fs/befs_be.c: New file.
35055 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35056 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35057 (U16): Replaced with ...
35058 (grub_afs_to_cpu16): ...this. All users updated.
35059 (U32): Replaced with ...
35060 (grub_afs_to_cpu32): ...this. All users updated.
35061 (U64): Replaced with ...
35062 (grub_afs_to_cpu64): ...this. All users updated.
35063 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35064 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35065 (grub_afs_validate_sblock): Check only one endianness.
35066 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35067 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35068 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35069 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35070 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35071 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35072 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35073 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35075 2009-08-26 Bean <bean123ch@gmail.com>
35077 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35079 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35080 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35081 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35083 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35085 NetBSD memory map support.
35087 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35088 (grub_netbsd_btinfo_mmap_header): New structure.
35089 (grub_netbsd_btinfo_mmap_entry): Likewise.
35090 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35092 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35094 Enable bsd.mod on coreboot.
35096 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35097 (bsd_mod_SOURCES): New variable.
35098 (bsd_mod_CFLAGS): Likewise.
35099 (bsd_mod_LDFLAGS): Likewise.
35100 (bsd_mod_ASFLAGS): Likewise.
35101 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35102 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35104 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35106 Cleanup NetBSD root support.
35108 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35109 grub_bsd_get_device.
35112 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35114 * util/grub.d/00_header.in: Move check for the video backend of
35115 gfxterm from here ...
35116 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35117 a suitable video backend.
35119 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35121 Fix breakage in grub-setup.
35123 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35124 "msdos_partition_map".
35126 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35128 Fix breakage in normal/auth.c.
35130 * normal/auth.c (grub_iswordseparator): New function.
35132 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35134 Authentication support.
35136 * commands/password.c: New file.
35137 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35138 (password_mod_SOURCES): New variable.
35139 (password_mod_CFLAGS): Likewise.
35140 (password_mod_LDFLAGS): Likewise.
35141 (normal_mod_SOURCES): Add normal/auth.c.
35142 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35144 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35145 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35146 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35147 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35148 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35149 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35150 * include/grub/auth.h: New file.
35151 * include/grub/err.h (grub_err_t): New enum value
35152 GRUB_ERR_ACCESS_DENIED.
35153 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35155 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35156 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35158 * normal/auth.c: New file.
35159 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35160 (grub_cmdline_run): Don't allow to go to command line without
35162 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35163 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35164 menuentry without superuser rights.
35165 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35166 user isn't a superuser.
35168 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35170 Save space by inlining misc.c functions.
35172 * kern/misc.c (grub_iswordseparator): Made static.
35173 * kern/misc.c (grub_strcat): Moved from here ...
35174 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35175 * kern/misc.c (grub_strncat): Moved from here ...
35176 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35177 * kern/misc.c (grub_strcasecmp): Moved from here ...
35178 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35179 * kern/misc.c (grub_strncasecmp): Moved from here ...
35180 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35181 * kern/misc.c (grub_isalpha): Moved from here ...
35182 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35183 * kern/misc.c (grub_isdigit): Moved from here ...
35184 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35185 * kern/misc.c (grub_isgraph): Moved from here ...
35186 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35187 * kern/misc.c (grub_tolower): Moved from here ...
35188 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35190 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35192 * script/sh/function.c (grub_script_function_find): Cut error message
35193 not to flood terminal.
35194 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35196 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35198 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35200 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35201 `report' grub_uint8_t *.
35202 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35203 Use a 50-millisecond timeout rather than just repeating
35204 grub_usb_keyboard_getreport 50 times.
35205 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35207 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35209 Rename *_partition_map to part_*
35211 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35212 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35213 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35214 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35216 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35218 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35219 * util/grub-probe.c (probe_partmap): Don't transform partition name
35220 to get module name.
35222 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35224 Fix OpenBSD and NetBSD support.
35226 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35227 memory address conflict.
35228 (OPENBSD_MMAP_ACPI): New definition.
35229 (OPENBSD_MMAP_NVS): Likewise.
35230 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35231 and OPENBSD_MMAP_NVS.
35232 Add memory map terminator
35233 Explicit cast when calling grub_unix_real_boot.
35234 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35236 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35238 Let user specify NetBSD root device.
35240 * loader/i386/bsd.c (netbsd_root): New variable.
35241 (netbsd_opts): New option 'root'.
35242 (NETBSD_ROOT_ARG): New macro.
35243 (grub_netbsd_boot): Use 'netbsd_root'.
35244 (grub_bsd_unload): Free 'netbsd_root'.
35245 (grub_cmd_netbsd): Fill 'netbsd_root'.
35247 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35249 Support for 64-bit NetBSD.
35251 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35252 point when booting non-FreeBSD.
35254 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35256 Support --no-smp and --no-acpi for NetBSD.
35258 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35259 (NETBSD_AB_NOACPI): Likewise.
35260 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35261 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35263 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35265 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35267 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35268 errors. Call grub_error when needed.
35270 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35272 * commands/search.c (search_fs): Try searching without autoload first.
35273 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35274 filesystem module explicitly for faster booting.
35276 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35278 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35280 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35282 * util/grub.d/30_os-prober.in: Disable os-prober if
35283 `GRUB_DISABLE_OS_PROBER' was set to true.
35285 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35287 * partmap/pc.c: Rename to ...
35288 * partmap/msdos.c: ... this. Update all users.
35289 (grub_pc_partition_map): Rename to ...
35290 (grub_msdos_partition_map): ... this. Update all users.
35292 * parttool/pcpart.c: Rename to ...
35293 * parttool/msdospart.c: ... this. Update all users.
35295 * include/grub/pc_partition.h: Rename to ...
35296 * include/grub/msdos_partition.h: ... this. Update all users.
35297 (grub_pc_partition_bsd_entry): Rename to ...
35298 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35299 (grub_pc_partition_disk_label): Rename to ...
35300 (grub_msdos_partition_disk_label): ... this. Update all users.
35301 (grub_pc_partition_entry): Rename to ...
35302 (grub_msdos_partition_entry): ... this. Update all users.
35303 (grub_pc_partition_mbr): Rename to ...
35304 (grub_msdos_partition_mbr): ... this. Update all users.
35305 (grub_pc_partition): Rename to ...
35306 (grub_msdos_partition): ... this. Update all users.
35307 (grub_pc_partition_is_empty): Rename to ...
35308 (grub_msdos_partition_is_empty): ... this. Update all users.
35309 (grub_pc_partition_is_extended): Rename to ...
35310 (grub_msdos_partition_is_extended): ... this. Update all users.
35311 (grub_pc_partition_is_bsd): Rename to ...
35312 (grub_msdos_partition_is_bsd): ... this. Update all users.
35314 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35315 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35316 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35317 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35318 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35319 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35320 (gpt_mod_LDFLAGS): Rename to ...
35321 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35322 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35323 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35324 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35325 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35326 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35327 (part_gpt_mod_LDFLAGS): ... this.
35328 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35329 `pcpart.mod' to `msdospart.mod'.
35330 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35332 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35333 (msdospart_mod_LDFLAGS): ... this.
35335 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35337 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35338 (openbsd_opts): Likewise.
35339 (netbsd_opts): Likewise.
35340 (freebsd_flags): Added 0 terminator.
35341 (openbsd_flags): Likewise.
35342 (netbsd_flags): Likewise.
35343 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35344 (grub_cmd_freebsd): Transformed into extended command.
35345 (grub_cmd_openbsd): Likewise.
35346 (grub_cmd_netbsd): Likewise.
35347 (cmd_freebsd): Changed type to grub_extcmd_t.
35348 (cmd_openbsd): Likewise.
35349 (cmd_netbsd): Likewise.
35350 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35351 grub_cmd_openbsd as extended commands.
35352 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35353 cmd_netbsd and cmd_openbsd
35355 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35357 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35359 2009-08-21 Pavel Roskin <proski@gnu.org>
35361 * Makefile.in (install-local): When checking if a file is in the
35362 build directory, use "test -e" to detect symlinks.
35364 * Makefile.in (install-local): Remove all files in
35365 $(DESTDIR)$(pkglibdir) before installing new files there.
35367 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35369 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35372 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35374 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35375 explicitly specified by the user.
35377 2009-08-18 Pavel Roskin <proski@gnu.org>
35379 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
35380 grub_uint8_t pointer for data.
35381 * include/grub/fbutil.h (struct grub_video_fbblit_info):
35383 * video/fb/fbutil.c: Remove unnecessary casts.
35385 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35389 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
35390 (grub_vbe_set_video_mode): Save active mode info
35391 only after setting the mode.
35392 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
35395 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35397 Rename variables for clarity.
35399 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
35400 (active_vbe_mode_info): ... this. All users updated.
35401 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
35403 (initial_mode): Rename to ...
35404 (initial_vbe_mode): ... this. All users updated.
35405 (mode_in_use): Rename to ..
35406 (vbe_mode_in_use): ... this. All users updated.
35407 (mode_list): Rename to ..
35408 (vbe_mode_list): ... this. All users updated.
35409 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
35410 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
35411 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
35412 'mode_list_size' to 'vbe_mode_list_size'.
35413 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
35414 'best_mode_info' to 'best_vbe_mode_info' and
35415 'best_mode' to 'best_vbe_mode'
35417 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35419 Remove duplicate grub_video_fb_get_video_ptr.
35421 * include/grub/fbutil.h (get_data_ptr): Rename to ...
35422 (grub_video_fb_get_video_ptr): ... this.
35423 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
35424 * video/fb/fbutil.c: Add comment about addressing.
35425 (get_data_ptr): Rename to ...
35426 (grub_video_fb_get_video_ptr): ... this. All users updated.
35427 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
35429 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35431 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
35432 grub_dprintf() that was just added.
35434 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35436 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
35437 (DEFAULT_VIDEO_MODE): Remove macros.
35438 (grub_linux_boot): Remove assumption that Linux has FB support,
35439 and use "text" as default video mode.
35441 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
35443 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
35445 * fs/fat.c (grub_fat_read_data): Likewise.
35447 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35449 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
35451 (grub_module): Likewise.
35453 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35455 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
35456 mbi->cmdline but free playground.
35458 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35460 Handle group offset on UFS1.
35462 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
35463 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
35465 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35467 Split ufs.mod into ufs1.mod and ufs2.mod.
35469 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
35470 (grub_fstest_SOURCES): Likewise.
35471 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
35472 (ufs_mod_SOURCES): Remove.
35473 (ufs_mod_CFLAGS): Likewise.
35474 (ufs_mod_LDFLAGS): Likewise.
35475 (ufs1_mod_SOURCES): New variable.
35476 (ufs1_mod_CFLAGS): Likewise.
35477 (ufs1_mod_LDFLAGS): Likewise.
35478 (ufs2_mod_SOURCES): New variable.
35479 (ufs2_mod_CFLAGS): Likewise.
35480 (ufs2_mod_LDFLAGS): Likewise.
35481 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
35482 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
35484 (grub_emu_SOURCES): Likewise.
35485 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35486 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35487 (grub_setup_SOURCES): Likewise.
35488 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35489 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
35490 (grub_setup_SOURCES): Likewise.
35491 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
35493 * fs/ufs2.c: New file.
35494 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
35496 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35500 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
35501 subsystem at the end.
35502 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
35503 (video_fb_mod_SOURCES): New variable.
35504 (video_fb_mod_CFLAGS): Likewise.
35505 (video_fb_mod_LDFLAGS): Likewise.
35506 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
35507 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
35508 * video/i386/pc/vbeblit.c: Moved from here ...
35509 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
35510 * video/i386/pc/vbefill.c: Moved from here ...
35511 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
35512 * video/i386/pc/vbeutil.c: Moved from here ...
35513 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
35514 * include/grub/i386/pc/vbeblit.h: Moved from here ...
35515 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
35516 * include/grub/i386/pc/vbefill.h: Moved from here ...
35517 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
35518 * include/grub/i386/pc/vbeutil.h: Moved from here ...
35519 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
35520 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
35521 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
35522 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
35523 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
35524 (grub_video_adapter): Added 'get_info_and_fini'.
35525 (grub_video_get_info_and_fini): New prototype.
35526 (grub_video_set_mode): make modestring const char *.
35527 * loader/i386/linux.c (grub_linux_setup_video): Use
35528 grub_video_get_info_and_fini.
35529 (grub_linux_boot): Move modesetting just before booting.
35530 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
35531 grub_video_get_info_and_fini.
35532 * video/i386/pc/vbe.c: Moved framebuffer part ...
35533 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
35534 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
35535 grub_video_fbstd_colors and grub_video_fb_set_palette.
35536 (grub_video_vbe_init): Clear 'framebuffer' variable and use
35537 grub_video_fb_init.
35538 (grub_video_vbe_fini): Use grub_video_fb_fini.
35539 (grub_video_vbe_setup): Use framebuffer.render_target instead of
35540 render_target and use grub_video_fb_set_active_render_target and
35541 grub_video_fb_set_palette.
35542 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
35543 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
35544 (grub_video_vbe_adapter): Use framebuffer.
35545 * video/video.c (grub_video_get_info_and_fini): New function.
35546 (grub_video_set_mode): Make modestring const char *.
35547 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
35548 values are already initialised.
35550 2009-08-14 Pavel Roskin <proski@gnu.org>
35552 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
35554 * boot/i386/pc/diskboot.S: Likewise.
35555 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
35556 sectors allow compilation on MacOSX.
35557 * conf/i386-pc.rmk: Enable unconditional compilation of
35560 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
35562 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
35563 * util/grub.d/00_header.in: Enter interruptible sleep if
35564 GRUB_HIDDEN_TIMEOUT is set.
35566 2009-08-13 Yves Blusseau <blusseau@zetam.org>
35568 * include/grub/symbol.h: Add the LOCAL macro.
35569 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
35570 starting with "L_".
35572 2009-08-13 Pavel Roskin <proski@gnu.org>
35574 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
35575 any modern compilers we support.
35577 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
35578 Use local labels starting with "L_" so that Apple assembler
35579 knows they are local.
35581 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
35583 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
35584 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
35585 (bsd_kernel_types): ... this enum.
35587 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
35588 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
35589 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
35591 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
35592 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
35593 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
35596 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
35598 * util/grub-dumpdevtree: Moved from here ...
35599 * util/i386/efi/grub-dumpdevtree: ... to here.
35600 (hexify): New function. Converts a string to its hex version.
35601 Generate hex versions of "efi" and "device-properties" by calling
35602 hexify() on the ASCII strings rather than by hardcoding numbers.
35604 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
35606 * fs/jfs.c: Update copyright year.
35608 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
35610 * util/grub.d/00_header.in: Fix a comment.
35611 * util/grub.d/10_linux.in: Likewise.
35612 * util/grub.d/10_windows.in: Likewise.
35613 * util/grub.d/10_hurd.in: Likewise.
35615 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
35617 * util/grub-mkconfig.in: Allow the user to specify the used font
35620 2009-08-08 Pavel Roskin <proski@gnu.org>
35622 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
35623 available, xfs.mod needs it now.
35625 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
35626 the "g" modifier in sed when the intention is to strip something
35627 once. This fixes comparison of kernels with multiple dashes.
35629 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
35630 on it. Add missing space before closing bracket. Fix
35631 misleading formatting.
35633 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35635 * docs/grub.texi: Major overhaul. Remove all sections that are
35636 specific to GRUB Legacy, or mostly composed of Legacy-specific
35639 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35641 * docs/version.texi: New file. Provides version information for
35644 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35646 * docs/grub.texi: Update CVS information to SVN.
35647 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
35649 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35651 * util/grub-mkconfig.in: Remove a wrong `fi'.
35653 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35655 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
35656 (grub_jfs_uuid): New function.
35657 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
35659 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35661 * util/grub-mkconfig_lib.in (font_path): Move the functionality
35663 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
35664 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
35666 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35668 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
35669 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
35672 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
35673 not just "vmlinu[zx]".
35674 Moved from here ...
35675 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
35678 * util/grub.d/10_linux.in (find_latest): Moved from here ...
35679 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
35682 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35684 * util/grub.d/10_freebsd.in: Use an absolute device path for
35685 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
35687 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
35689 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
35690 handling of multiple abstraction modules.
35692 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
35694 Fix a bug resulting in black screen when loading Linux using a
35697 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
35700 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
35701 (grub_vbe_bios_getset_dac_palette_width): New function.
35702 (grub_vbe_bios_get_dac_palette_width)
35703 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
35704 grub_vbe_bios_getset_dac_palette_width()).
35706 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
35707 check for return status.
35708 (grub_vbe_get_video_mode_info): When getting information for a packed
35709 mode (<= 8 bpp), obtain DAC palette width using
35710 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
35711 {red,green,blue}_mark_size.
35713 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
35715 * commands/search.c (options): Fix help output to match actual code.
35717 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
35719 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
35722 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
35724 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
35725 on XFS or ReiserFS.
35727 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
35729 Support Apple partition map with sector size different from 512 bytes.
35731 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
35732 (apple_partition_map_iterate): Respect 'aheader.blocksize'
35733 and 'apart.partmap_size'.
35735 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
35736 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
35740 * commands/i386/cpuid.c (options): New variable.
35741 (grub_cmd_cpuid): Return real error.
35742 (GRUB_MOD_INIT(cpuid)): Declare options.
35744 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
35746 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
35749 2009-07-31 Bean <bean123ch@gmail.com>
35751 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
35753 (grub_fshelp_node): Move inode field to the end.
35754 (grub_xfs_data): Remove inode field.
35755 (grub_xfs_inode_block): Calculate inode size using sblock.
35756 (grub_xfs_inode_offset): Likewise.
35757 (grub_xfs_read_inode): Calculate inode size using sblock.
35758 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
35759 (grub_xfs_iterate_dir): Calculate inode size using sblock.
35760 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
35761 to match inode size.
35762 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
35763 not accessible when data is null.
35764 (grub_xfs_open): Likewise.
35766 2009-07-31 Bean <bean123ch@gmail.com>
35768 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
35769 Don't change pv->disk if it's already set.
35771 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
35772 (grub_raid_register): ... here.
35773 (grub_raid_rescan): Removed.
35775 * include/grub/raid.h (grub_raid_rescan): Removed.
35777 * util/grub-fstest.c: Remove include file <grub/raid.h>.
35778 (fstest): Replace grub_raid_rescan with module fini function followed
35781 * util/grub-probe.c: Add include file <grub/raid.h>.
35782 (probe_raid_level): New function.
35783 (probe): Detect abstraction by walking the disk device, support two
35784 level of abstraction (LVM on RAID) when detecting partition map.
35786 2009-07-31 Pavel Roskin <proski@gnu.org>
35788 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
35789 to grub_zalloc(), it was erroneous.
35790 Reported by Bean <bean123ch@gmail.com>
35792 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
35794 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
35795 embedding zone, not only the first one.
35797 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
35799 * term/gfxterm.c (clear_char): New function.
35800 (grub_virtual_screen_setup): Use clear_char.
35801 (scroll_up): Likewise.
35802 (grub_virtual_screen_cls): Likewise.
35804 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
35806 * util/deviceiter.c (get_acceleraid_disk_name): New static
35808 (grub_util_iterate_devices): Handle Accelraid devices.
35809 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
35811 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
35813 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
35814 separator for the suggested gfxpayload string (';' collides with the
35815 parser and needs escaping).
35817 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
35819 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
35820 Clear direction flag before jumping to OS.
35821 (grub_multiboot2_real_boot): Likewise.
35823 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
35825 * util/i386/pc/grub-install: Fix parsing of --disk-module
35828 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
35830 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
35833 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
35835 * util/grub-mkconfig.in (package_version): New variable.
35836 Use it do display the version.
35838 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
35840 * kern/file.c (grub_file_open): Revert to previous check with
35843 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
35845 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
35846 from help line. It's out of sync with code.
35848 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
35850 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
35851 entries on failed boot.
35853 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
35855 * kern/file.c (grub_file_open): Fix an error check.
35857 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
35859 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
35860 partition map couldn't be identified.
35862 2009-07-23 Pavel Roskin <proski@gnu.org>
35864 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
35865 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
35866 case of little endian words becomes just an optimization.
35867 Respect const modifier.
35868 (md5_final): Use code that doesn't depend on endianness.
35870 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
35871 to avoid loss of upper bits if align is unsigned and shorter
35874 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
35876 UUID support for UFS
35878 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
35879 (grub_ufs_uuid): New function.
35880 (grub_ufs_fs): add .uuid
35882 2009-07-21 Pavel Roskin <proski@gnu.org>
35884 * kern/dl.c (grub_dl_check_header): Make static.
35886 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
35888 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
35889 add drivemap for Vista. It breaks Windows 7.
35891 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
35893 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
35896 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35900 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
35901 (grub_fstest_SOURCES): Likewise.
35902 (pkglib_MODULES): Add befs.mod.
35903 (befs_mod_SOURCES): New variable.
35904 (befs_mod_CFLAGS): Likewise.
35905 (befs_mod_LDFLAGS): Likewise.
35906 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35907 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35908 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35909 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35910 (grub_setup_SOURCES): Likewise.
35911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35912 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35913 (grub_setup_SOURCES): Likewise.
35914 * fs/befs.c: New file.
35915 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
35916 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
35917 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
35918 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
35919 (B_KEY_INDEX_ALIGN): New declaration.
35920 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
35921 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
35922 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
35923 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
35924 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
35925 (grub_afs_mount) [MODE_BFS]: Likewise.
35926 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
35927 (grub_afs_fs): Use GRUB_AFS_FSNAME
35928 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
35929 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
35930 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
35931 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
35933 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
35935 * util/getroot.c (find_root_device): Add support for MacOSX.
35936 * util/hostdisk.c: Likewise.
35938 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35940 * font/font.c (find_glyph): Check whether a font is present to avoid
35941 segmentation fault.
35943 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
35945 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
35947 2009-07-20 Pavel Roskin <proski@gnu.org>
35949 * configure.ac: Trim excessively wordy excuses.
35951 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35953 Add symlink, mtime and label support to AtheFS.
35955 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
35956 (grub_afs_iterate_dir): Handle symlinks.
35957 (grub_afs_open): Use grub_afs_read_symlink.
35958 (grub_afs_dir): Likewise.
35960 (grub_afs_label): New function.
35961 (grub_afs_fs): Add grub_afs_label.
35962 (grub_afs_read_symlink): New function.
35964 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35966 Fix AtheFS support.
35968 * fs/afs.c: Fix comments style.
35969 (grub_afs_blockrun): Declare as packed.
35970 (grub_afs_datastream): Likewise.
35971 (grub_afs_bnode): Likewise.
35972 (grub_afs_btree): Likewise.
35973 (grub_afs_sblock): Likewise.
35974 Declare `name' as char.
35975 (grub_afs_inode): Declare as packed.
35976 Change void *vnode to grub_uint32_t unused.
35977 (grub_afs_iterate_dir): Check that key_size is positive.
35978 (grub_afs_mount): Don't read superblock twice.
35979 (grub_afs_dir): Don't free node in case of error,
35980 grub_fshelp_find_file already handles this.
35981 (grub_afs_open): Likewise.
35983 2009-07-19 Pavel Roskin <proski@gnu.org>
35985 * Makefile.in: Remove LIBLZO and enable_lzo.
35986 * conf/i386-pc.rmk: Remove lzo support.
35987 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
35988 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
35990 * kern/i386/pc/lzo1x.S: Remove.
35991 * kern/i386/pc/startup.S: Remove lzo support.
35992 * util/i386/pc/grub-mkimage.c: Likewise.
35994 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
35996 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
35997 * fs/xfs.c (grub_xfs_dir): Likewise.
35998 * fs/afs.c (grub_afs_dir): Likewise.
35999 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36000 (grub_iso9660_open): Likewise.
36001 * fs/jfs.c (grub_jfs_open): Likewise.
36002 * fs/ext2.c (grub_ext2_dir): Likewise.
36003 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36004 * script/sh/lexer.c (grub_script_yylex): Likewise.
36006 2009-07-16 Pavel Roskin <proski@gnu.org>
36008 * configure.ac: Never add "-c" to CFLAGS.
36010 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36012 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36013 grub_cv_cc_efiemu should be used.
36015 * configure.ac: Typo fixes.
36017 * kern/mm.c (grub_zalloc): New function.
36018 (grub_debug_zalloc): Likewise.
36019 * include/grub/mm.h: Declare grub_zalloc() and
36020 grub_debug_zalloc().
36021 * util/misc.c (grub_zalloc): New function.
36022 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36023 instead of grub_malloc(), remove unneeded initializations.
36024 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36025 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36026 * commands/parttool.c (grub_cmd_parttool): Likewise.
36027 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36028 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36029 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36030 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36031 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36032 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36033 (grub_cmd_efiemu_pnvram): Likewise.
36034 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36035 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36036 (grub_iso9660_iterate_dir): Likewise.
36037 * fs/jfs.c (grub_jfs_opendir): Likewise.
36038 * fs/ntfs.c (list_file): Likewise.
36039 (grub_ntfs_mount): Likewise.
36040 * kern/disk.c (grub_disk_open): Likewise.
36041 * kern/dl.c (grub_dl_load_core): Likewise.
36042 * kern/elf.c (grub_elf_file): Likewise.
36043 * kern/env.c (grub_env_context_open): Likewise.
36044 (grub_env_set): Likewise.
36045 (grub_env_set_data_slot): Likewise.
36046 * kern/file.c (grub_file_open): Likewise.
36047 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36048 * loader/i386/multiboot.c (grub_module): Likewise.
36049 * loader/xnu.c (grub_xnu_create_key): Likewise.
36050 (grub_xnu_create_value): Likewise.
36051 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36052 (read_config_file): Likewise.
36053 * normal/menu_entry.c (make_screen): Likewise.
36054 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36055 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36056 * script/sh/script.c (grub_script_parse): Likewise.
36057 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36058 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36059 * video/readers/png.c (grub_png_output_byte): Likewise.
36060 (grub_video_reader_png): Likewise.
36062 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36064 Enable all targets that can be built by default
36066 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36067 grub-mkfont and grub-fstest if they can be built
36069 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36071 Fix hang and segmentation fault in grub-emu-usb
36073 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36074 * util/usb.c (grub_libusb_devices): likewise
36075 (grub_libusb_init): rename to ...
36076 (GRUB_MOD_INIT (libusb)):...this
36077 (grub_libusb_fini): rename to ..
36078 (GRUB_MOD_FINI (libusb)):...this
36079 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36080 * include/grub/disk.h (grub_raid_init): removed, it's useless
36081 (grub_raid_fini): likewise
36082 (grub_lvm_init): likewise
36083 (grub_lvm_fini): likewise
36084 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36087 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36091 * Makefile.in (LIBUSB): new macro
36092 * genmk.rb (Utility/print_tail): new method
36093 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36094 (top level): call util.print_tail at the end.
36096 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36098 Make FreeBSD accept zpool.cache
36100 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36101 type is /boot/zfs/zpool.cache
36103 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36107 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36108 correct wrong typedef
36109 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36111 2009-07-15 Pavel Roskin <proski@gnu.org>
36113 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36114 * kern/disk.c (struct grub_disk_cache): Likewise.
36116 * commands/probe.c (options): Typo fix.
36118 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36119 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36121 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36123 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36124 the end of "Error" to make the message more readable.
36126 * boot/i386/pc/boot.S (kernel_segment): Remove.
36127 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36130 * boot/i386/pc/boot.S (boot_version): Remove.
36131 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36134 * include/grub/i386/pc/boot.h: Sort all offsets.
36135 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36136 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36137 * boot/i386/pc/boot.S: Assert location of every offset listed in
36138 include/grub/i386/pc/boot.h.
36140 2009-07-13 Pavel Roskin <proski@gnu.org>
36142 * include/grub/i386/coreboot/machine.h: Rename
36143 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36144 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36145 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36147 * kern/dl.c: Force native word size to suppress warnings when
36148 compiling grub-emu.
36150 * kern/device.c (grub_device_iterate): Change struct part_ent to
36151 hold the name, not a pointer to it. Use one grub_malloc() per
36152 partition, not two. Free partition_name if grub_malloc() fails.
36153 Set ents to NULL only before grub_partition_iterate() is called.
36155 2009-07-11 Bean <bean123ch@gmail.com>
36157 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36160 2009-07-10 Bean <bean123ch@gmail.com>
36161 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36163 * kern/ieee1275/openfw.c (grub_children_iterate)
36164 (grub_devalias_iterate): Fix size evaluation for property or path
36165 strings, which was broken since r2132.
36167 2009-07-07 Pavel Roskin <proski@gnu.org>
36169 * commands/search.c (search_file): Merge into ...
36170 (search_fs): ... this. Accept search type as argument.
36171 (grub_cmd_search): Pass search type to search_fs().
36173 * include/grub/util/console.h: New file.
36174 * util/console.c: Use it instead of grub/machine/console.h.
36175 * util/grub-emu.c: Likewise.
36177 * lib/arg.c (find_long_option): Remove.
36178 (find_long): Add `len' argument, make `s' const char *.
36179 (grub_arg_parse): Parse long options in place, not in a
36182 2009-07-06 Pavel Roskin <proski@gnu.org>
36184 * commands/search.c (search_fs): Fix potential NULL pointer
36187 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36190 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36192 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36195 2009-07-05 Pavel Roskin <proski@gnu.org>
36197 * include/grub/i386/linux.h (struct linux_kernel_params):
36198 Restore padding3, it's still needed.
36200 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36202 * util/osdetect.lua: Likewise.
36204 2009-07-05 Bean <bean123ch@gmail.com>
36206 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36208 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36209 (grub_lua_getenv): Likewise.
36210 (grub_lua_setenv): Likewise.
36211 (save_errno): New function.
36212 (push_result): Likewise.
36213 (grub_lua_enum_device): Likewise.
36214 (grub_lua_enum_file): Likewise.
36215 (grub_lua_file_open): Likewise.
36216 (grub_lua_file_close): Likewise.
36217 (grub_lua_file_seek): Likewise.
36218 (grub_lua_file_read): Likewise.
36219 (grub_lua_file_getline): Likewise.
36220 (grub_lua_file_getsize): Likewise.
36221 (grub_lua_file_getpos): Likewise.
36222 (grub_lua_file_eof): Likewise.
36223 (grub_lua_file_exist): Likewise.
36224 (grub_lua_add_menu): Likewise.
36226 * script/lua/grub_lua.h (isupper): New inline function.
36227 (islower): Likewise.
36228 (ispunct): Likewise.
36229 (isxdigit): Likewise.
36230 (strcspn): Change to normal function.
36231 (strpbkr): New function declaration.
36232 (memchr): Likewise.
36234 * script/lua/grub_main.c (scan_str): New function.
36235 (strcspn): Likewise.
36236 (strpbrk): Likewise.
36237 (memchr): Likewise.
36239 * script/lua/linit.c (lualibs): Enable the string library.
36241 * util/osdetect.lua: New file.
36243 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36245 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36246 `capabilities' member.
36248 2009-07-02 Pavel Roskin <proski@gnu.org>
36250 * genparttoollist.sh: Add missing newline at the end.
36252 2009-07-01 Pavel Roskin <proski@gnu.org>
36254 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36256 * util/hostdisk.c (open_device): Remove `const' from
36257 `sysctl_size', as sysctlbyname() can change it (in this case it
36258 doesn't actually happen).
36260 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36261 using signed long int constants.
36263 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36264 constant to avoid a warning on FreeBSD.
36266 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36269 * Makefile.in: Install include/grub/machine symlink.
36271 * Makefile.in: When installing symlinks, use "cp -fR", which
36272 works on FreeBSD and MacOSX.
36273 From Yves Blusseau <cl7m42e02@sneakemail.com>
36275 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36276 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36278 * util/misc.c: Move grub_reboot() and grub_halt() ...
36279 * util/grub-emu.c: ... here. Make main_env static.
36280 * include/grub/util/misc.h: Remove main_env.
36282 * kern/mm.c: Use correct format to print size_t.
36284 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36285 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36286 * kern/powerpc/dl.c: Likewise.
36287 * kern/sparc64/dl.c: Likewise.
36288 * kern/x86_64/dl.c: Likewise.
36290 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36292 Fix grub-emu build on sparc64-ieee1275.
36294 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36295 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36297 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36299 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36300 (grub_reboot, grub_halt): New functions.
36302 * util/i386/pc/misc.c: Delete. Update all users.
36303 * util/sparc64/ieee1275/misc.c: Likewise.
36304 * util/powerpc/ieee1275/misc.c: Likewise.
36306 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36308 * conf/i386.rmk (setjmp_mod_SOURCES)
36309 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36310 * conf/common.rmk (setjmp_mod_SOURCES)
36311 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36312 to use $(target_cpu).
36313 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36314 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36315 * conf/powerpc-ieee1275.rmk: Likewise.
36316 * conf/sparc64-ieee1275.rmk: Likewise.
36318 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36319 $(target_cpu) for kern/$(target_cpu)/dl.c.
36320 * conf/i386-efi.rmk: Likewise.
36321 * conf/i386-ieee1275.rmk: Likewise.
36322 * conf/x86_64-efi.rmk: Likewise.
36323 * conf/i386-coreboot.rmk: Likewise.
36324 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36325 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36326 kern/$(target_cpu)/cache.S.
36327 * conf/sparc64-ieee1275.rmk: Likewise.
36329 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36331 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36332 type to `grub_uint8_t', and adjust `padding9' accordingly.
36334 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36336 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36338 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36339 assembly in final jump, using register constraints.
36341 (grub_linux_boot): For text mode, initialize `have_vga' using
36342 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36344 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36345 right before the final jump.
36347 Set `video_mode' to 0x3.
36349 Document initialization of `video_page', `video_mode' and
36352 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36354 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36355 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
36356 and set GRUB_LINUX_FLAG_QUIET appropriately.
36358 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36360 Fix build on Debian / sparc.
36362 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36364 2009-06-28 Pavel Roskin <proski@gnu.org>
36366 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36369 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36371 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36373 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36376 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36380 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
36381 file can't be opened. grub_file_open() is already supposed to set
36382 grub_errno / grub_errmsg appropriately.
36383 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36385 2009-06-27 Pavel Roskin <proski@gnu.org>
36386 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36388 * include/grub/dl.h: Include grub/elf.h.
36389 (struct grub_dl): Add symtab field.
36390 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
36391 GRUB_MODULES_MACHINE_READONLY.
36392 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
36393 of the header for read-only modules.
36394 (grub_dl_unload): Free mod->symtab for read-only modules.
36395 * kern/i386/dl.c: Use mod->symtab.
36396 * kern/powerpc/dl.c: Likewise.
36397 * kern/sparc64/dl.c: Likewise.
36398 * kern/x86_64/dl.c: Likewise.
36400 * conf/i386-qemu.rmk: New file.
36401 * kern/i386/qemu/startup.S: Likewise.
36402 * kern/i386/qemu/mmap.c: Likewise.
36403 * boot/i386/qemu/boot.S: Likewise.
36404 * include/grub/i386/qemu/time.h: Likewise.
36405 * include/grub/i386/qemu/serial.h: Likewise.
36406 * include/grub/i386/qemu/kernel.h: Likewise.
36407 * include/grub/i386/qemu/console.h: Likewise.
36408 * include/grub/i386/qemu/boot.h: Likewise.
36409 * include/grub/i386/qemu/init.h: Likewise.
36410 * include/grub/i386/qemu/machine.h: Likewise.
36411 * include/grub/i386/qemu/loader.h: Likewise.
36412 * include/grub/i386/qemu/memory.h: Likewise.
36414 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
36415 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
36416 [qemu] (pkglib_IMAGES): Add `boot.img'.
36417 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
36418 [qemu] (boot_img_FORMAT): New variables.
36419 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
36420 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
36421 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
36422 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
36423 [qemu] (kernel_img_FORMAT): New variables.
36425 * configure.ac: Recognise `i386-qemu'.
36427 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
36428 (for no compression).
36429 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
36430 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
36431 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
36432 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
36435 2009-06-27 Pavel Roskin <proski@gnu.org>
36437 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
36439 * efiemu/prepare32.c: Likewise.
36440 * efiemu/prepare64.c: Likewise.
36442 2009-06-26 Pavel Roskin <proski@gnu.org>
36444 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
36445 * include/grub/elf.h: Define symbols without "32" or "64" based
36446 on GRUB_TARGET_WORDSIZE.
36447 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
36448 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
36450 * efiemu/loadcore64.c: Likewise.
36451 * loader/i386/bsd32.c: Likewise.
36452 * loader/i386/bsd64.c: Likewise.
36453 * kern/dl.c: Remove own ELF definitions.
36454 * util/i386/efi/grub-mkimage.c: Likewise.
36456 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
36458 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
36459 segment 0x0 unconditionally, because the reference generated by
36460 GAS is an absolute address.
36462 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36464 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
36465 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
36467 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36469 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
36470 indexes. Check for -f explicitly.
36471 (search_file): Improve error message.
36472 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
36474 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36476 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
36477 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
36479 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36481 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
36482 * conf/i386-ieee1275.rmk: Likewise.
36483 * conf/i386-coreboot.rmk: Likewise.
36485 * kern/i386/pc/startup.S (grub_stop): Remove function.
36486 * kern/i386/ieee1275/startup.S: Likewise.
36487 * kern/i386/coreboot/startup.S: Likewise.
36488 * kern/i386/misc.S (grub_stop): New function.
36490 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36492 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
36493 * kern/i386/realmode.S (real_to_prot): ... to here.
36495 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36497 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
36499 (kernel_elf_SOURCES): Rename to ...
36500 (kernel_img_SOURCES): ... this.
36501 (kernel_elf_HEADERS): Rename to ...
36502 (kernel_img_HEADERS): ... this. Update all users.
36503 (kernel_elf_ASFLAGS): Rename to ...
36504 (kernel_img_ASFLAGS): ... this.
36505 (kernel_elf_CFLAGS): Rename to ...
36506 (kernel_img_CFLAGS): ... this.
36507 (kernel_elf_LDFLAGS): Rename to ...
36508 (kernel_img_LDFLAGS): ... this.
36509 * conf/i386-coreboot.rmk: Likewise.
36510 * conf/powerpc-ieee1275.rmk: Likewise.
36512 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
36515 2009-06-21 Pavel Roskin <proski@gnu.org>
36517 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
36518 to match nested functions.
36519 * loader/sparc64/ieee1275/linux.c: Likewise.
36521 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
36523 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
36525 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
36526 all i386 platforms.
36528 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
36530 Fix asm file handling on ELF, and remove workarounds.
36532 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
36533 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
36534 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
36535 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
36537 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
36539 Load BSD ELF modules
36541 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
36542 and loader/i386/bsd64.c
36543 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
36544 (FREEBSD_MODTYPE_ELF_MODULE): New definition
36545 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
36546 (grub_freebsd_load_elfmodule32): New declaration
36547 (grub_freebsd_load_elfmoduleobj64): Likewise
36548 (grub_freebsd_load_elf_meta32): Likewise
36549 (grub_freebsd_load_elf_meta64): Likewise
36550 (grub_freebsd_add_meta): Likewise
36551 (grub_freebsd_add_meta_module): Likewise
36552 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
36553 (grub_freebsd_add_meta_module): Likewise and move module-specific
36554 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
36555 (grub_cmd_freebsd): Add elf-kernel specific parts
36556 based on grub_freebsd_add_meta_module
36557 (grub_cmd_freebsd_module): Add type parsing moved from
36558 grub_freebsd_add_meta_module
36559 (grub_cmd_freebsd_module_elf): New function
36560 (cmd_freebsd_module_elf): New variable
36561 (GRUB_MOD_INIT): Register freebsd_module_elf
36562 * loader/i386/bsd32.c: New file
36563 * loader/i386/bsd64.c: Likewise
36564 * loader/i386/bsdXX.c: Likewise
36565 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
36566 (grub_elf64_load): Likewise
36567 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
36569 (grub_elf64_load_hook_t): Likewise
36571 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
36573 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
36575 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
36576 don't write a menu entry for recovery mode.
36578 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
36580 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
36581 after it's no longer needed.
36583 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
36585 * include/grub/i386/loader.h (grub_linux_prot_size)
36586 (grub_linux_tmp_addr, grub_linux_real_addr)
36587 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
36588 GRUB_MACHINE_PCBIOS.
36589 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
36590 common grub_util_info() call to ...
36591 (generate_image): ... here.
36592 Fix use of uninitialized memory, comparison of signed with
36593 unsigned integers and memory leak.
36594 Remove bogus module address message.
36596 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
36598 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
36600 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
36602 2009-06-19 Pavel Roskin <proski@gnu.org>
36604 * configure.ac: Remove stray AC_MSG_CHECKING.
36606 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
36608 * disk/scsi.c (grub_scsi_open): use continue instead of big if
36610 2009-06-18 Pavel Roskin <proski@gnu.org>
36612 * conf/common.rmk: Add fs_file.mod.
36613 * disk/fs_file.c: New file.
36614 * include/grub/disk.h (enum grub_disk_dev_id): Add
36615 GRUB_DISK_DEVICE_FILE_ID.
36617 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36619 Fix build with Apple's toolchain. Part 2
36621 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
36624 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36626 Fix build with Apple's toolchain. Part 1
36628 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
36630 * configure.ac: remove a leftover AC_MSG_RESULT
36631 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
36634 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36638 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
36639 (decomp_block): initialize ch
36640 use grub_memcpy instead of memcpy
36642 2009-06-17 Pavel Roskin <proski@gnu.org>
36644 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
36645 version, use declarations needed to use vga_text as the startup
36648 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
36649 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
36651 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
36652 and grub_at_keyboard_fini(), it's done on module load and
36655 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
36657 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
36658 file can't be found.
36659 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36661 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
36663 Fix newline handling
36665 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
36666 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
36667 (grub_script_yylex): don't segfault on unterminated script
36668 newline terminates command and variable
36670 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
36672 avoid double grub_adjust_range call. Bug reported by David Simner
36674 * kern/disk.c (grub_disk_write): change to raw disk access before
36677 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
36679 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
36680 spaces, for the benefit of help2man.
36681 * util/i386/efi/grub-mkimage.c (usage): Likewise.
36683 2009-06-16 Pavel Roskin <proski@gnu.org>
36685 * kern/i386/halt.c: Include grub/machine/init.h.
36686 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
36688 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
36690 * util/grub.d/30_os-prober.in: Use ${root} in the generated
36691 drivemap menuentry.
36693 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
36695 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
36698 2009-06-16 Pavel Roskin <proski@gnu.org>
36700 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
36701 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
36702 save %dx, we only need %dl and we never change it.
36703 * boot/i386/pc/cdboot.S: Don't set the root drive.
36704 * boot/i386/pc/pxeboot.S: Likewise.
36705 * include/grub/i386/pc/boot.h: Remove
36706 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
36707 GRUB_BOOT_MACHINE_DRIVE_CHECK.
36708 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
36709 * kern/i386/pc/init.c (make_install_device): Remove references
36710 to grub_root_drive.
36711 * kern/i386/pc/startup.S: Likewise.
36712 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
36714 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
36718 * commands/xnu_uuid.c: new file
36719 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
36720 (xnu_uuid_mod_SOURCES): new variable
36721 (xnu_uuid_mod_CFLAGS): likewise
36722 (xnu_uuid_mod_LDFLAGS): likewise
36723 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
36724 * conf/i386-ieee1275.rmk: likewise
36725 * conf/i386-pc.rmk: likewise
36726 * conf/powerpc-ieee1275.rmk: likewise
36727 * conf/sparc64-ieee1275.rmk: likewise
36728 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
36730 2009-06-16 Pavel Roskin <proski@gnu.org>
36732 * configure.ac: Avoid '==' in test command, it's not portable.
36734 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
36738 * commands/probe.c: new file
36739 * conf/common.rmk (pkglib_MODULES): add probe.mod
36740 (probe_mod_SOURCES): new variable
36741 (probe_mod_CFLAGS): likewise
36742 (probe_mod_LDFLAGS): likewise
36743 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
36744 * conf/i386-ieee1275.rmk: likewise
36745 * conf/i386-pc.rmk: likewise
36746 * conf/powerpc-ieee1275.rmk: likewise
36747 * conf/sparc64-ieee1275.rmk: likewise
36749 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
36751 Fix handling of string like \"hello\" and "a
36754 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
36755 (grub_script_yylex): fix parsing of quoting, escaping and newline
36757 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
36759 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
36762 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
36764 * util/grub-mkconfig.in: Fix parsing of --output option.
36766 2009-06-12 Pavel Roskin <proski@gnu.org>
36768 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
36769 genmk.rb don't need to be generated or installed.
36771 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
36773 * commands/i386/pc/drivemap_int13h.S: add more comments
36775 2009-06-11 Pavel Roskin <proski@gnu.org>
36777 * Makefile.in (uninstall): Uninstall manuals.
36779 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
36780 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
36781 and update-grub_lib in two places.
36782 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
36784 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
36785 a compiler warning.
36787 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
36788 `entry_lo' to fix variable shadowing.
36790 2009-06-11 Christian Franke <franke@computer.org>
36792 * kern/misc.c (__enable_execute_stack): Add missing return type
36793 to prevent gcc warning.
36795 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
36797 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
36799 2009-06-11 Pavel Roskin <proski@gnu.org>
36801 * Makefile.in: Don't rely on any scripts being executable.
36802 Always use $(SHELL) to run shell scripts.
36804 * configure.ac: Always define ___main if using -nostdlib. This
36805 fixes tests on Cygwin.
36807 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
36811 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
36812 is in bytes and not in blocks
36814 2009-06-11 Pavel Roskin <proski@gnu.org>
36816 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
36819 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
36821 * util/grub.d/30_os-prober.in: Fix a comment. Source
36822 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
36823 to set the root device. Place drivemap command in the generated
36826 2009-06-11 Pavel Roskin <proski@gnu.org>
36828 * configure.ac: Remove host_m32. Issues with 64-bit utilities
36829 have long been resolved.
36831 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
36833 * util/grub.d/10_linux.in: Capitalise "Linux".
36835 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
36837 2009-06-11 Pavel Roskin <proski@gnu.org>
36839 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
36840 fix a gcc warning and ensure that the function won't ever exit.
36842 * kern/i386/ieee1275/init.c: Add missing prototype for
36843 grub_stop_floppy().
36845 * loader/ieee1275/multiboot2.c [__i386__]: Include
36846 grub/cpu/multiboot.h.
36848 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
36849 casts to short - they are not portable and cause warnings. Fix
36850 use of uninitialized values in input_buf. Use ARRAY_SIZE.
36852 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
36856 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
36858 (grub_get_root_biosnumber_saved): new variable
36859 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
36860 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
36861 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
36862 %dx after the call if necessary
36863 * conf/common.rmk (pkglib_MODULES): remove boot.mod
36864 (boot_mod_SOURCES): remove
36865 (boot_mod_CFLAGS): remove
36866 (boot_mod_LDFLAGS): remove
36867 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
36868 (boot_mod_SOURCES): new variable
36869 (boot_mod_CFLAGS): likewise
36870 (boot_mod_LDFLAGS): likewise
36871 * conf/i386-efi.rmk: likewise
36872 * conf/i386-ieee1275.rmk: likewise
36873 * conf/i386-pc.rmk: likewise
36874 * conf/powerpc-ieee1275.rmk: likewise
36875 * conf/sparc64-ieee1275.rmk: likewise
36876 * conf/x86_64-efi.rmk: likewise
36877 * include/grub/i386/pc/biosnum.h: new file
36878 * lib/i386/pc/biosnum.c: likewise
36879 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
36880 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
36881 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
36883 2009-06-10 Pavel Roskin <proski@gnu.org>
36885 * io/gzio.c (test_header): Don't reuse one buffer for all data.
36886 Use separate variables. Read only the file size at the end, but
36887 not the checksum that we don't use.
36889 * kern/file.c (grub_file_read): Use void pointer for the buffer.
36890 Adjust all callers.
36892 * kern/ieee1275/openfw.c: Remove libc includes.
36893 * kern/ieee1275/cmain.c: Likewise.
36894 * include/grub/ieee1275/ieee1275.h: Likewise.
36896 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
36899 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
36901 * Makefile.in: Remove all trailing whitespace.
36902 * conf/i386-pc.rmk: Likewise.
36903 * conf/powerpc-ieee1275.rmk: Likewise.
36904 * conf/sparc64-ieee1275.rmk: Likewise.
36905 * docs/grub.texi: Likewise.
36906 * docs/texinfo.tex: Likewise.
36907 * disk/fs_uuid.c: Likewise.
36908 * disk/lvm.c: Likewise.
36909 * disk/scsi.c: Likewise.
36910 * disk/ata.c: Likewise.
36911 * disk/ieee1275/ofdisk.c: Likewise.
36912 * disk/i386/pc/biosdisk.c: Likewise.
36913 * disk/host.c: Likewise.
36914 * disk/raid.c: Likewise.
36915 * disk/efi/efidisk.c: Likewise.
36916 * disk/usbms.c: Likewise.
36917 * disk/memdisk.c: Likewise.
36918 * disk/loopback.c: Likewise.
36919 * kern/powerpc/dl.c: Likewise.
36920 * kern/device.c: Likewise.
36921 * kern/dl.c: Likewise.
36922 * kern/sparc64/dl.c: Likewise.
36923 * kern/ieee1275/ieee1275.c: Likewise.
36924 * kern/term.c: Likewise.
36925 * kern/fs.c: Likewise.
36926 * kern/i386/dl.c: Likewise.
36927 * kern/i386/pc/startup.S: Likewise.
36928 * kern/i386/pc/init.c: Likewise.
36929 * kern/i386/pc/mmap.c: Likewise.
36930 * kern/i386/pc/lzo1x.S: Likewise.
36931 * kern/i386/ieee1275/init.c: Likewise.
36932 * kern/i386/realmode.S: Likewise.
36933 * kern/i386/tsc.c: Likewise.
36934 * kern/partition.c: Likewise.
36935 * kern/corecmd.c: Likewise.
36936 * kern/file.c: Likewise.
36937 * kern/efi/efi.c: Likewise.
36938 * kern/efi/init.c: Likewise.
36939 * kern/efi/mm.c: Likewise.
36940 * kern/main.c: Likewise.
36941 * kern/err.c: Likewise.
36942 * kern/env.c: Likewise.
36943 * kern/disk.c: Likewise.
36944 * kern/generic/millisleep.c: Likewise.
36945 * kern/generic/rtc_get_time_ms.c: Likewise.
36946 * kern/misc.c: Likewise.
36947 * kern/parser.c: Likewise.
36948 * genmk.rb: Likewise.
36949 * configure.ac: Likewise.
36950 * boot/i386/pc/diskboot.S: Likewise.
36951 * boot/i386/pc/pxeboot.S: Likewise.
36952 * boot/i386/pc/boot.S: Likewise.
36953 * boot/i386/pc/lnxboot.S: Likewise.
36954 * boot/i386/pc/cdboot.S: Likewise.
36955 * parttool/pcpart.c: Likewise.
36956 * video/readers/tga.c: Likewise.
36957 * video/video.c: Likewise.
36958 * video/bitmap.c: Likewise.
36959 * lib/envblk.c: Likewise.
36960 * lib/i386/setjmp.S: Likewise.
36961 * fs/xfs.c: Likewise.
36962 * fs/afs.c: Likewise.
36963 * fs/fat.c: Likewise.
36964 * fs/ntfs.c: Likewise.
36965 * fs/udf.c: Likewise.
36966 * fs/affs.c: Likewise.
36967 * fs/iso9660.c: Likewise.
36968 * fs/hfs.c: Likewise.
36969 * fs/fshelp.c: Likewise.
36970 * fs/ext2.c: Likewise.
36971 * fs/jfs.c: Likewise.
36972 * fs/reiserfs.c: Likewise.
36973 * fs/hfsplus.c: Likewise.
36974 * fs/minix.c: Likewise.
36975 * fs/cpio.c: Likewise.
36976 * fs/sfs.c: Likewise.
36977 * fs/ufs.c: Likewise.
36978 * efiemu/prepare.c: Likewise.
36979 * efiemu/loadcore_common.c: Likewise.
36980 * efiemu/runtime/efiemu.sh: Likewise.
36981 * efiemu/runtime/efiemu.S: Likewise.
36982 * efiemu/runtime/efiemu.c: Likewise.
36983 * efiemu/pnvram.c: Likewise.
36984 * efiemu/main.c: Likewise.
36985 * efiemu/i386/pc/cfgtables.c: Likewise.
36986 * efiemu/i386/loadcore64.c: Likewise.
36987 * efiemu/i386/loadcore32.c: Likewise.
36988 * efiemu/loadcore.c: Likewise.
36989 * efiemu/symbols.c: Likewise.
36990 * efiemu/mm.c: Likewise.
36991 * include/grub/autoefi.h: Likewise.
36992 * include/grub/datetime.h: Likewise.
36993 * include/grub/term.h: Likewise.
36994 * include/grub/hfs.h: Likewise.
36995 * include/grub/lvm.h: Likewise.
36996 * include/grub/i386/tsc.h: Likewise.
36997 * include/grub/i386/linux.h: Likewise.
36998 * include/grub/i386/xnu.h: Likewise.
36999 * include/grub/i386/efiemu.h: Likewise.
37000 * include/grub/i386/pc/biosdisk.h: Likewise.
37001 * include/grub/i386/pc/memory.h: Likewise.
37002 * include/grub/i386/pc/vbe.h: Likewise.
37003 * include/grub/parttool.h: Likewise.
37004 * include/grub/video.h: Likewise.
37005 * include/grub/memory.h: Likewise.
37006 * include/grub/fs.h: Likewise.
37007 * include/grub/partition.h: Likewise.
37008 * include/grub/xnu.h: Likewise.
37009 * include/grub/efi/api.h: Likewise.
37010 * include/grub/efi/pe32.h: Likewise.
37011 * include/grub/efi/memory.h: Likewise.
37012 * include/grub/multiboot.h: Likewise.
37013 * include/grub/usbdesc.h: Likewise.
37014 * include/grub/multiboot2.h: Likewise.
37015 * include/grub/acpi.h: Likewise.
37016 * include/grub/efiemu/efiemu.h: Likewise.
37017 * include/grub/disk.h: Likewise.
37018 * include/grub/ieee1275/ieee1275.h: Likewise.
37019 * include/grub/net.h: Likewise.
37020 * include/grub/machoload.h: Likewise.
37021 * include/grub/macho.h: Likewise.
37022 * include/multiboot.h: Likewise.
37023 * genmoddep.awk: Likewise.
37024 * normal/main.c: Likewise.
37025 * normal/menu_entry.c: Likewise.
37026 * normal/menu_viewer.c: Likewise.
37027 * normal/completion.c: Likewise.
37028 * normal/cmdline.c: Likewise.
37029 * normal/misc.c: Likewise.
37030 * normal/datetime.c: Likewise.
37031 * bus/usb/usbtrans.c: Likewise.
37032 * bus/usb/ohci.c: Likewise.
37033 * bus/usb/uhci.c: Likewise.
37034 * bus/usb/usb.c: Likewise.
37035 * mmap/efi/mmap.c: Likewise.
37036 * mmap/i386/pc/mmap_helper.S: Likewise.
37037 * mmap/i386/pc/mmap.c: Likewise.
37038 * mmap/i386/mmap.c: Likewise.
37039 * mmap/i386/uppermem.c: Likewise.
37040 * mmap/mmap.c: Likewise.
37041 * commands/acpi.c: Likewise.
37042 * commands/echo.c: Likewise.
37043 * commands/blocklist.c: Likewise.
37044 * commands/loadenv.c: Likewise.
37045 * commands/usbtest.c: Likewise.
37046 * commands/boot.c: Likewise.
37047 * commands/parttool.c: Likewise.
37048 * commands/search.c: Likewise.
37049 * commands/cat.c: Likewise.
37050 * commands/i386/pc/play.c: Likewise.
37051 * commands/i386/pc/drivemap.c: Likewise.
37052 * commands/i386/pc/vbeinfo.c: Likewise.
37053 * commands/i386/pc/acpi.c: Likewise.
37054 * commands/i386/pc/vbetest.c: Likewise.
37055 * commands/ls.c: Likewise.
37056 * commands/cmp.c: Likewise.
37057 * commands/test.c: Likewise.
37058 * commands/efi/acpi.c: Likewise.
37059 * commands/gptsync.c: Likewise.
37060 * commands/help.c: Likewise.
37061 * partmap/amiga.c: Likewise.
37062 * partmap/apple.c: Likewise.
37063 * partmap/acorn.c: Likewise.
37064 * partmap/pc.c: Likewise.
37065 * partmap/sun.c: Likewise.
37066 * partmap/gpt.c: Likewise.
37067 * script/sh/lexer.c: Likewise.
37068 * script/sh/function.c: Likewise.
37069 * font/font.c: Likewise.
37070 * font/font_cmd.c: Likewise.
37071 * loader/powerpc/ieee1275/linux.c: Likewise.
37072 * loader/efi/chainloader.c: Likewise.
37073 * loader/multiboot_loader.c: Likewise.
37074 * loader/macho.c: Likewise.
37075 * loader/i386/multiboot.c: Likewise.
37076 * loader/i386/linux.c: Likewise.
37077 * loader/i386/pc/linux.c: Likewise.
37078 * loader/i386/pc/multiboot2.c: Likewise.
37079 * loader/i386/pc/chainloader.c: Likewise.
37080 * loader/i386/pc/xnu.c: Likewise.
37081 * loader/i386/bsd_trampoline.S: Likewise.
37082 * loader/i386/efi/linux.c: Likewise.
37083 * loader/i386/multiboot_elfxx.c: Likewise.
37084 * loader/i386/bsd_helper.S: Likewise.
37085 * loader/i386/bsd.c: Likewise.
37086 * loader/i386/linux_trampoline.S: Likewise.
37087 * loader/i386/xnu_helper.S: Likewise.
37088 * loader/i386/xnu.c: Likewise.
37089 * loader/i386/bsd_pagetable.c: Likewise.
37090 * loader/i386/multiboot_helper.S: Likewise.
37091 * loader/xnu.c: Likewise.
37092 * loader/xnu_resume.c: Likewise.
37093 * io/gzio.c: Likewise.
37094 * term/efi/console.c: Likewise.
37095 * term/terminfo.c: Likewise.
37096 * term/ieee1275/ofconsole.c: Likewise.
37097 * term/i386/pc/serial.c: Likewise.
37098 * term/i386/pc/vesafb.c: Likewise.
37099 * term/i386/pc/vga.c: Likewise.
37100 * term/usb_keyboard.c: Likewise.
37101 * term/gfxterm.c: Likewise.
37102 * aclocal.m4: Likewise.
37103 * util/lvm.c: Likewise.
37104 * util/grub.d/30_os-prober.in: Likewise.
37105 * util/grub.d/10_hurd.in: Likewise.
37106 * util/console.c: Likewise.
37107 * util/grub-macho2img.c: Likewise.
37108 * util/grub-probe.c: Likewise.
37109 * util/hostfs.c: Likewise.
37110 * util/i386/pc/grub-mkimage.c: Likewise.
37111 * util/i386/pc/grub-setup.c: Likewise.
37112 * util/i386/efi/grub-mkimage.c: Likewise.
37113 * util/grub-mkconfig.in: Likewise.
37114 * util/raid.c: Likewise.
37115 * util/resolve.c: Likewise.
37116 * util/grub-mkdevicemap.c: Likewise.
37117 * util/grub-emu.c: Likewise.
37118 * util/getroot.c: Likewise.
37119 * util/hostdisk.c: Likewise.
37120 * util/usb.c: Likewise.
37121 * util/grub-editenv.c: Likewise.
37122 * util/misc.c: Likewise.
37124 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37126 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37127 `genparttoollist.sh'.
37128 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37129 Add `*.sh' to the list find searches for and change `mdate.sh'
37132 2009-06-10 Pavel Roskin <proski@gnu.org>
37134 * include/grub/multiboot2.h: Provide compatibility defines for
37136 * include/multiboot2.h: Include stdint.h only if needed, using
37138 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37140 * loader/ieee1275/multiboot2.c: Likewise.
37141 * loader/multiboot2.c: Likewise.
37142 * loader/multiboot_loader.c: Likewise.
37144 * configure.ac: Use -nostdlib when probing for the target. It
37145 should not be required to have libc for the target.
37147 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37148 they fail without libc headers for the target.
37149 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37151 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37152 preprocessor conditionals.
37154 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37155 build system doesn't need to be aware of the tar.c internals.
37157 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37159 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37161 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37163 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37164 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37166 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37168 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37169 aren't available if ata.mod gets used.
37171 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37173 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37174 initialising controller.
37175 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37177 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37179 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37180 to choose between ata and biosdisk module on i386-pc.
37182 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37184 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37185 Subclass and Programming Interface fields in terms of the 3 byte
37186 Class Code register.
37187 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37189 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37190 interface is OHCI. Add grub_dprintf for symmetry with
37192 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37193 interface is UHCI. Add interf variable for programming
37194 interface. Print interface with class/subclass.
37196 * bus/usb/ohci.c: Set interf with correct field.
37198 * bus/usb/uhci.c: Remove unneeded doubled lines.
37199 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37200 Remove whitespace inside comment.
37202 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37204 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37205 as fallback an equivalent option without depth.
37207 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37209 Not fail if unable to retrieve C/H/S on LBA disks
37211 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37212 if unable to retrieve C/H/S on LBA disks
37214 2009-06-08 Pavel Roskin <proski@gnu.org>
37216 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37219 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37221 * Makefile.in (uninstall): Remove all $lib_DATA files.
37223 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37225 Bugfix: install on partitionless device
37227 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37230 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37232 * Makefile.in (uninstall): Remove all $include_DATA files.
37234 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37236 * commands/true.c: New file. Implement the true and false commands.
37237 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37238 (true_mod_SOURCES): New variable.
37239 (true_mod_CFLAGS): Likewise.
37240 (true_mod_LDFLAGS): Likewise.
37242 2009-06-05 Colin D Bennett <colin@gibibit.com>
37244 Optimized font character lookup using binary search instead of linear
37245 search. Fonts now are required to have the character index ordered by
37248 * font/font.c (load_font_index): Verify that fonts have ordered
37250 (find_glyph): Use binary search instead of linear search to find a
37251 character in a font.
37253 2009-06-05 Michael Scherer <misc@mandriva.org>
37255 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37256 uses case sensitive btree.
37257 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37258 only for case insensitive filesystems.
37260 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37262 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37263 * conf/common.rmk (search_mod_CFLAGS): likewise
37265 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37267 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37268 compensate a compiler bug
37270 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37272 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37275 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37277 Definitions for creating asm symbols with Apple's CC
37279 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37280 [APPLE_CC] (VARIABLE): likewise
37282 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37284 Disable lnxboot.img when compiled
37287 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37288 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37289 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37290 [! APPLE_CC] (CODE_LENG): skip
37291 [! APPLE_CC] (setup_sects): likewise
37292 [! APPLE_CC]: skip filling
37294 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37296 Address in trampolines based on 32-bit registers when compiled
37299 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37301 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37303 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37305 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37307 * kern/misc.c [APPLE_CC] (memcpy): new function
37308 [APPLE_CC] (memmove): likewise
37309 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37310 (memcpy): define alias conditionally on !APPLE_CC
37313 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37314 APPLE_CC are defined
37315 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37316 (grub_assert_fail): make prototype conditional
37318 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37320 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37322 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37324 (CLEANFILES): add grub-macho2img
37325 (grub_macho2img_SOURCES): new variable
37326 * kern/i386/pc/startup.S (bss_start): new variable
37327 (bss_end): likewise
37328 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37329 * util/grub-macho2img.c: new file
37331 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37333 Use objconv when compiling with Apple's CC
37335 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37336 (efiemu64.o): likewise
37337 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37338 when compiling with Apple's CC
37339 (efiemu64_s.o): likewise
37340 * configure.ac: check for objconv when compiling with Apple's CC
37341 * genmk.rb: use objconv for modules when compiled with Apple's CC
37343 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37345 Define segment as well as section when compiling with
37348 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37349 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37350 (efiemu_convert_pointer): likewise
37351 (efiemu_set_virtual_address_map): likewise
37352 (efiemu_convert_pointer): likewise
37353 (efiemu_getcrc32): likewise
37354 (init_crc32_table): likewise
37355 (reflect): likewise
37356 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37357 (GRUB_MOD_DEP): likewise
37359 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37361 Allow a compilation without -mcmodel=large
37363 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37364 when compiled without -mcmodel=large
37365 (filter_memory_map): remove memory post 4 GiB when compiled
37366 without -mcmodel=large
37367 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
37368 TARGET_CFLAGS when -mcmodel=large isn't supported
37370 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37372 Remove nested functions in efiemu core
37374 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
37376 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37378 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
37380 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
37382 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
37384 (grub_cpu_is_tsc_supported): likewise
37385 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
37387 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37389 Absolute addressing through constant with Apple's cc
37391 * kern/i386/pc/startup.S: Define necessary constants
37392 and address through it when using ABS with Apple's CC
37393 * boot/i386/pc/diskboot.S: likewise
37394 * boot/i386/pc/boot.S: likewise
37395 * boot/i386/pc/lnxboot.S: likewise
37396 * boot/i386/pc/cdboot.S: likewise
37397 * mmap/i386/pc/mmap_helper.S: likewise
37398 * commands/i386/pc/drivemap_int13h.S: likewise
37400 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37402 Check if compiler is apple cc
37404 * Makefile.in (ASFLAGS): new variable
37405 (TARGET_ASFLAGS): likewise
37406 (TARGET_MODULE_FORMAT): likewise
37407 (TARGET_APPLE_CC): likewise
37408 (OBJCONV): likewise
37409 (TARGET_IMG_CFLAGS): likewise
37410 (TARGET_CPPFLAGS): add includedir
37411 * configure.ac: call grub_apple_cc and grub_apple_target_cc
37412 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
37413 Check for linker script only if compiler isn't Apple's CC
37414 (TARGET_MODULE_FORMAT): set
37415 (TARGET_APPLE_CC): likewise
37416 (TARGET_ASFLAGS): likewise
37417 (ASFLAGS): likewise
37418 Check for objcopy only if compiler isn't Apple's CC
37419 Check for BSS symbol only if compiler isn't Apple's CC
37420 * genmk.rb: adapt nm options if we use Apple's utils
37421 * aclocal.m4 (grub_apple_cc): new test
37422 (grub_apple_target_cc): likewise
37424 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37426 Simplify sed expressions and improve awk
37428 * Makefile.in (install-local): simplify sed expression
37429 * gencmdlist.sh: likewise
37430 * genmoddep.awk: avoid adding module as a dependency of itself
37432 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37434 Add missing start symbols
37436 * boot/i386/pc/boot.S: add start
37437 * boot/i386/pc/pxeboot.S: likewise
37439 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37441 Fix wrong assumptions with grub-mkimage on EFI
37443 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
37444 (relocate_addresses): consider both r_addend and value at offset
37445 (make_mods_section): zerofill modinfo and header
37446 (convert_elf): write prefix here
37448 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37450 Use .asciz instead of .string
37452 * i386/pc/diskboot.S: use .asciz instead of .string
37453 * i386/pc/boot.S: likewise
37454 * include/grub/dl.h (GRUB_MOD_DEP): likewise
37455 (GRUB_MOD_NAME): likewise
37457 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37461 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
37462 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
37463 (grub_video_setup): remove
37464 (grub_video_set_mode): new prototype
37465 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
37467 (linux_vesafb_res): compile only on PCBIOS
37468 (grub_linux_boot): support gfxpayload
37469 * loader/i386/pc/xnu.c (video_hook): new function
37470 (grub_xnu_set_video): support gfxpayload
37471 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
37472 (DEFAULT_VIDEO_HEIGHT): likewise
37473 (DEFAULT_VIDEO_FLAGS): likewise
37474 (DEFAULT_VIDEO_MODE): new definition
37475 (video_hook): new function
37476 (grub_gfxterm_init): use grub_video_set_mode
37477 * util/grub.d/30_os-prober.in: remove explicit modesetting before
37479 * video/video.c (grub_video_setup): removed
37480 (grub_video_set_mode): new function based on grub_gfxterm_init and
37483 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37485 Avoid calling biosdisk in drivemap
37487 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
37488 (revparse_biosdisk): likewise
37489 (list_mappings): derive name from id directly
37490 (grub_cmd_drivemap): use tryparse_diskstring
37492 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37496 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
37497 (grub_lexer_param): add tokenonhold
37498 (grub_script_create_cmdline): remove cmdline. All callers updated
37499 (grub_script_function_create): make functionname
37500 grub_script_arg. All callers updated
37501 (grub_script_execute_argument_to_string): new prototype
37502 * kern/parser.c (state_transitions): reorder
37503 (grub_parser_cmdline_state): fix a bug and make more compact
37504 * script/sh/execute.c (grub_script_execute_argument_to_string):
37506 (grub_script_execute_cmdline): use new format
37507 * script/sh/function.c (grub_script_function_create): make functionname
37508 grub_script_arg. All callers updated
37509 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
37510 (grub_script_yylex): remove
37511 (grub_script_yylex2): renamed to ...
37512 (grub_script_yylex): ...renamed
37513 parse the expressions like a${b}c
37514 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
37515 (GRUB_PARSER_TOKEN_VAR): remove
37516 (GRUB_PARSER_TOKEN_NAME): likewise
37517 ("if"): declare as typeless
37518 ("while"): likewise
37519 ("function"): likewise
37524 (argument): likewise
37525 (script): accept empty scripts and make exit on error
37526 (arguments): use GRUB_PARSER_TOKEN_ARG
37527 (function): likewise
37528 (command): move error handling to script
37529 (menuentry): move grub_script_lexer_ref before
37530 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
37531 argument. All callers updated
37533 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
37535 Prevent GRUB from probing floppies during boot.
37537 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
37538 * commands/search.c (options): Add --no-floppy.
37539 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
37540 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
37541 --no-floppy when searching for UUIDs.
37543 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
37545 Simplify the code duplication in commands/search.c.
37547 * commands/search.c (search_label, search_fs_uuid): Merge into ...
37548 (search_fs): ... this. Update all users.
37550 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
37552 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
37554 2009-05-28 Pavel Roskin <proski@gnu.org>
37556 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
37557 Remove the original symlink explicitly.
37559 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
37560 just one slash. That's how grub_fshelp_find_file() does it.
37562 2009-05-26 Pavel Roskin <proski@gnu.org>
37564 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
37567 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
37570 2009-05-25 Christian Franke <franke@computer.org>
37572 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
37574 (grub_atapi_identify): Add wait after drive select.
37575 (grub_ata_identify): Do more strict status register check before
37576 calling grub_atapi_identify (). Suppress error message if status
37577 register is 0x00 after command failure. Add status register
37578 check after PIO read to avoid bogus identify due to stuck DRQ.
37579 Thanks to Pavel Roskin for testing.
37580 (grub_device_initialize): Remove unsafe status register check.
37581 Thanks to 'phcoder' for problem report and patch.
37582 Prevent sign extension in debug message.
37584 2009-05-23 Colin D Bennett <colin@gibibit.com>
37586 Cleaned up `include/grub/normal.h'. Grouped prototypes by
37587 definition file, and functions defined in `normal/menu.c' have had
37588 their prototypes moved to `include/grub/menu.h' for consistency.
37590 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
37592 (grub_menu_get_entry): Likewise.
37593 (grub_menu_get_timeout): Likewise.
37594 (grub_menu_set_timeout): Likewise.
37595 (grub_menu_execute_entry): Likewise.
37596 (grub_menu_execute_with_fallback): Likewise.
37597 (grub_menu_entry_run): Likewise.
37599 * include/grub/normal.h: Re-ordered and grouped function
37600 prototypes by file that the function is defined in.
37601 (grub_menu_execute_callback): Removed; moved to menu.h.
37602 (grub_menu_get_entry): Likewise.
37603 (grub_menu_get_timeout): Likewise.
37604 (grub_menu_set_timeout): Likewise.
37605 (grub_menu_execute_entry): Likewise.
37606 (grub_menu_execute_with_fallback): Likewise.
37607 (grub_menu_entry_run): Likewise.
37608 (grub_menu_addentry): Renamed from this ...
37609 (grub_normal_add_menu_entry): ... to this.
37611 * normal/main.c (grub_menu_addentry): Renamed from this ...
37612 (grub_normal_add_menu_entry): ... to this.
37614 * script/sh/execute.c (grub_script_execute_menuentry): Update
37615 reference to renamed grub_menu_addentry function.
37617 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
37619 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
37621 2009-05-22 Pavel Roskin <proski@gnu.org>
37623 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
37624 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
37625 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
37626 compiling for the i386 targets, but not for the utilities.
37628 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
37630 (grub_root_drive): Likewise.
37631 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
37633 (grub_root_drive): Change size to byte.
37634 (grub_start_addr): Remove.
37635 (grub_end_addr): Likewise.
37636 (grub_apm_bios_info): Likewise.
37638 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
37640 * normal/i386: Remove.
37641 * normal/powerpc: Likewise.
37642 * normal/sparc64: Likewise.
37643 * normal/x86_64: Likewise.
37645 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
37647 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
37648 * loader/i386/linux_trampoline.S: Fix indentation
37649 * loader/i386/xnu_helper.S: Likewise
37651 2009-05-18 Colin D Bennett <colin@gibibit.com>
37653 Display error messages when parsing a Lua statement fails.
37654 Previously, executing a syntactically invalid statement like
37655 ")foo" or "bar;" would silently fail.
37657 * script/lua/grub_main.c (handle_lua_error): New function.
37658 (grub_lua_parse_line): Improved reporting of Lua parser and
37661 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
37663 Remove -Werror which causes build to fail on some systems
37665 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
37666 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
37667 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
37669 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
37671 trampoline for linux on 64-bit platform
37673 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
37674 loader/i386/efi/linux_trampoline.S
37675 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
37677 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
37679 * loader/i386/linux_trampoline.S: moved here
37680 * loader/i386/efi/linux.c (allocate_pages): reserve space for
37682 (jumpvector): removed
37683 (grub_linux_trampoline_start): new declaration
37684 (grub_linux_trampoline_end): likewise
37685 (grub_linux_boot): use trampoline when on 64-bit platform
37686 * loader/i386/linux.c: likewise
37688 2009-05-16 Pavel Roskin <proski@gnu.org>
37690 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
37691 const to avoid a warning.
37692 (grub_lua_setenv): Likewise.
37693 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
37694 lmsg to fix a warning.
37696 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
37698 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
37699 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37700 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
37701 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37702 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
37703 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37704 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
37705 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37707 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
37709 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
37711 2009-05-16 Bean <bean123ch@gmail.com>
37713 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
37714 (lua_mod_SOURCES): New variable.
37715 (lua_mod_CFLAGS): Likewise.
37716 (lua_mod_LDFLAGS): Likewise.
37718 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
37719 (setjmp_mod_SOURCES): New variable.
37720 (setjmp_mod_CFLAGS): Likewise.
37721 (setjmp_LDFLAGS): Likewise.
37723 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
37724 (setjmp_mod_SOURCES): New variable.
37725 (setjmp_mod_CFLAGS): Likewise.
37726 (setjmp_LDFLAGS): Likewise.
37728 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
37729 (setjmp_mod_SOURCES): New variable.
37730 (setjmp_mod_CFLAGS): Likewise.
37731 (setjmp_LDFLAGS): Likewise.
37733 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
37734 (setjmp_mod_SOURCES): New variable.
37735 (setjmp_mod_CFLAGS): Likewise.
37736 (setjmp_LDFLAGS): Likewise.
37738 * normal/i386/setjmp.S: Moved from here ...
37739 * lib/i386/setjmp.S: ... Moved here
37740 * normal/x86_64/setjmp.S: Moved from here ...
37741 * lib/x86_64/setjmp.S: ... Moved here
37742 * normal/powerpc/setjmp.S: Moved from here ...
37743 * lib/powerpc/setjmp.S: ... Moved here
37744 * normal/sparc64/setjmp.S: Moved from here ...
37745 * lib/sparc64/setjmp.S: ... Moved here
37747 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
37748 returns_twice in mingw.
37750 * script/lua/grub_lib.c: New file.
37751 * script/lua/grub_lib.h: Likewise.
37752 * script/lua/grub_lua.h: Likewise.
37753 * script/lua/grub_main.c: Likewise.
37754 * script/lua/lapi.c: Likewise.
37755 * script/lua/lapi.h: Likewise.
37756 * script/lua/lauxlib.c: Likewise.
37757 * script/lua/lauxlib.h: Likewise.
37758 * script/lua/lbaselib.c: Likewise.
37759 * script/lua/lcode.c: Likewise.
37760 * script/lua/lcode.h: Likewise.
37761 * script/lua/ldblib.c: Likewise.
37762 * script/lua/ldebug.c: Likewise.
37763 * script/lua/ldebug.h: Likewise.
37764 * script/lua/ldo.c: Likewise.
37765 * script/lua/ldo.h: Likewise.
37766 * script/lua/ldump.c: Likewise.
37767 * script/lua/lfunc.c: Likewise.
37768 * script/lua/lfunc.h: Likewise.
37769 * script/lua/lgc.c: Likewise.
37770 * script/lua/lgc.h: Likewise.
37771 * script/lua/linit.c: Likewise.
37772 * script/lua/liolib.c: Likewise.
37773 * script/lua/llex.c: Likewise.
37774 * script/lua/llex.h: Likewise.
37775 * script/lua/llimits.h: Likewise.
37776 * script/lua/lmathlib.c: Likewise.
37777 * script/lua/lmem.c: Likewise.
37778 * script/lua/lmem.h: Likewise.
37779 * script/lua/loadlib.c: Likewise.
37780 * script/lua/lobject.c: Likewise.
37781 * script/lua/lobject.h: Likewise.
37782 * script/lua/lopcodes.c: Likewise.
37783 * script/lua/lopcodes.h: Likewise.
37784 * script/lua/loslib.c: Likewise.
37785 * script/lua/lparser.c: Likewise.
37786 * script/lua/lparser.h: Likewise.
37787 * script/lua/lstate.c: Likewise.
37788 * script/lua/lstate.h: Likewise.
37789 * script/lua/lstring.c: Likewise.
37790 * script/lua/lstring.h: Likewise.
37791 * script/lua/lstrlib.c: Likewise.
37792 * script/lua/ltable.c: Likewise.
37793 * script/lua/ltable.h: Likewise.
37794 * script/lua/ltablib.c: Likewise.
37795 * script/lua/ltm.c: Likewise.
37796 * script/lua/ltm.h: Likewise.
37797 * script/lua/lua.h: Likewise.
37798 * script/lua/luaconf.h: Likewise.
37799 * script/lua/lualib.h: Likewise.
37800 * script/lua/lundump.c: Likewise.
37801 * script/lua/lundump.h: Likewise.
37802 * script/lua/lvm.c: Likewise.
37803 * script/lua/lvm.h: Likewise.
37804 * script/lua/lzio.c: Likewise.
37805 * script/lua/lzio.h: Likewise.
37807 2009-05-16 Bean <bean123ch@gmail.com>
37809 * include/grub/kernel.h (grub_module_header_types): Add type
37812 * kern/main.c (grub_load_config): New function.
37813 (grub_main): Call grub_load_config to read boot config.
37815 * grub-mkimage (generate_image): New parameter config_path.
37816 (options): New option --config.
37817 (main): Parse --config option, and pass it to generate_image.
37819 2009-05-14 Christian Franke <franke@computer.org>
37821 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
37822 This fixes build on Cygwin.
37824 2009-05-14 Pavel Roskin <proski@gnu.org>
37826 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
37827 jump. This saves two bytes, so the typical case of 2 swapped
37828 drives would fit 32 bytes.
37830 2009-05-13 Pavel Roskin <proski@gnu.org>
37832 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
37833 grub_uint32_t to avoid a warning.
37835 * loader/i386/linux.c (allocate_pages): When assigning
37836 real_mode_mem, cast through grub_size_t to fix a warning. The
37837 code already makes sure that the value would fit a pointer.
37838 (grub_linux_setup_video): Cast render_target->data to
37839 grub_size_t to fix a warning.
37841 2009-05-13 Javier Martín <lordhabbit@gmail.com>
37843 * commands/i386/pc/drivemap.c: New file - implement drivemap
37845 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
37846 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
37848 2009-05-13 Pavel Roskin <proski@gnu.org>
37850 * util/i386/pc/grub-setup.c (setup): Remove unused variable
37851 embedding_area_exists.
37853 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
37855 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
37856 it easier to understand / work with.
37857 Improve warning messages for cases where there's no embedding area,
37858 or when it is too small (or core.img too large).
37860 2009-05-13 Pavel Roskin <proski@gnu.org>
37862 * loader/i386/pc/multiboot2.c: Add necessary includes for
37863 grub_multiboot2_real_boot().
37865 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
37866 PX record is always little-endian. We only need the lower 2
37869 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
37870 facilitate code reuse.
37871 (grub_cpio_mount): Use "struct head", not a char buffer. This
37872 fixes a warning reported by gcc 4.4.
37874 * kernel/disk.c (grub_disk_read): Use void pointer for the
37876 (grub_disk_write): Use const void pointer for the buffer.
37877 Adjust all callers. Remove unnecessary casts.
37879 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
37881 * util/i386/pc/grub-install.in: Update copyright year.
37883 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
37887 * commands/gptsync.c: new file
37888 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
37889 (gptsync_mod_SOURCES): new variable
37890 (gptsync_mod_CFLAGS): likewise
37891 (gptsync_mod_LDFLAGS): likewise
37892 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
37894 (GRUB_PC_PARTITION_TYPE_HFS): likewise
37895 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
37896 * conf/i386-ieee1275.rmk: likewise
37897 * conf/i386-pc.rmk: likewise
37898 * conf/powerpc-ieee1275.rmk: likewise
37900 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
37904 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
37905 (grub_dl_ref): likewise
37907 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
37909 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
37910 split in two functions (one for msdos and one for gpt).
37912 2009-05-08 Pavel Roskin <proski@gnu.org>
37914 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
37917 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
37918 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
37919 Initialize them with -1. Add sanity check for bad1. Eliminate
37922 2009-05-08 David S. Miller <davem@davemloft.net>
37924 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
37926 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
37928 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
37931 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
37933 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
37934 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
37936 2009-05-05 David S. Miller <davem@davemloft.net>
37938 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
37940 2009-05-05 Pavel Roskin <proski@gnu.org>
37942 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
37943 of grub_dl_ref() and grub_dl_unref().
37944 * commands/parttool.c: Remove preprocessor conditionals around
37945 grub_dl_ref() and grub_dl_unref().
37946 * fs/affs.c: Likewise.
37947 * fs/afs.c: Likewise.
37948 * fs/cpio.c: Likewise.
37949 * fs/ext2.c: Likewise.
37950 * fs/fat.c: Likewise.
37951 * fs/hfs.c: Likewise.
37952 * fs/hfsplus.c: Likewise.
37953 * fs/iso9660.c: Likewise.
37954 * fs/jfs.c: Likewise.
37955 * fs/minix.c: Likewise.
37956 * fs/ntfs.c: Likewise.
37957 * fs/reiserfs.c: Likewise.
37958 * fs/sfs.c: Likewise.
37959 * fs/udf.c: Likewise.
37960 * fs/ufs.c: Likewise.
37961 * fs/xfs.c: Likewise.
37962 * include/grub/dl.h: Likewise.
37963 * loader/xnu.c: Likewise.
37965 2009-05-04 Pavel Roskin <proski@gnu.org>
37967 * commands/acpi.c: Remove unused variable my_mod.
37968 * partmap/amiga.c: Likewise.
37969 * partmap/apple.c: Likewise.
37970 * partmap/gpt.c: Likewise.
37971 * partmap/pc.c: Likewise.
37972 * partmap/sun.c: Likewise.
37973 * term/gfxterm.c: Likewise.
37974 * term/i386/pc/vesafb.c: Likewise.
37975 * term/i386/pc/vga.c: Likewise.
37977 2009-05-04 David S. Miller <davem@davemloft.net>
37979 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
37980 pointer args to grub_ieee1275_get_property().
37982 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
37984 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
37985 devices, and do not traverse down under controller nodes.
37987 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
37988 (grub_ofdisk_open): Use it to un-escape "," characters.
37989 * kern/disk.c (find_part_sep): New.
37990 (grub_disk_open): Use it to find the first non-escaped ','
37991 character in the disk name.
37992 * util/ieee1275/devicemap.c (escape_of_path): New.
37993 (grub_util_emit_devicemap_entry): Use it.
37994 * util/sparc64/ieee1275/grub-install.in: Update script to
37995 strip partition specifiers properly by not triggering on
37996 '\' escaped ',' characters.
37998 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38000 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38002 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38004 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38005 on documentation from Wikipedia).
38007 2009-05-04 Pavel Roskin <proski@gnu.org>
38009 * disk/ata.c: Spelling fixes.
38010 * disk/raid.c: Likewise.
38011 * disk/usbms.c: Likewise.
38012 * disk/dmraid_nvidia.c: Likewise.
38013 * kern/ieee1275/openfw.c: Likewise.
38014 * kern/ieee1275/init.c: Likewise.
38015 * kern/ieee1275/cmain.c: Likewise.
38016 * boot/i386/pc/cdboot.S: Likewise.
38017 * video/readers/png.c: Likewise.
38018 * video/i386/pc/vbe.c: Likewise.
38019 * fs/udf.c: Likewise.
38020 * fs/hfs.c: Likewise.
38021 * fs/reiserfs.c: Likewise.
38022 * efiemu/runtime/efiemu.c: Likewise.
38023 * efiemu/main.c: Likewise.
38024 * efiemu/mm.c: Likewise.
38025 * include/grub/elf.h: Likewise.
38026 * include/grub/xnu.h: Likewise.
38027 * include/grub/usbdesc.h: Likewise.
38028 * include/grub/usb.h: Likewise.
38029 * include/grub/script_sh.h: Likewise.
38030 * include/grub/lib/LzmaEnc.h: Likewise.
38031 * include/grub/efiemu/efiemu.h: Likewise.
38032 * include/grub/command.h: Likewise.
38033 * normal/menu.c: Likewise.
38034 * normal/main.c: Likewise.
38035 * normal/datetime.c: Likewise.
38036 * bus/usb/uhci.c: Likewise.
38037 * mmap/i386/uppermem.c: Likewise.
38038 * mmap/mmap.c: Likewise.
38039 * commands/acpi.c: Likewise.
38040 * commands/test.c: Likewise.
38041 * partmap/apple.c: Likewise.
38042 * font/font.c: Likewise.
38043 * loader/sparc64/ieee1275/linux.c: Likewise.
38044 * loader/macho.c: Likewise.
38045 * loader/i386/bsd_trampoline.S: Likewise.
38046 * loader/i386/bsd.c: Likewise.
38047 * loader/xnu.c: Likewise.
38048 * term/i386/pc/vesafb.c: Likewise.
38049 * term/usb_keyboard.c: Likewise.
38050 * util/resolve.c: Likewise.
38051 * util/getroot.c: Likewise.
38053 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38055 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38057 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38059 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38062 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38064 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38065 parameter only available on BIOS.
38067 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38069 Removed wrong semicolon in declaration
38071 * grub/misc.h (grub_dprintf): remove semicolon
38073 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38075 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38076 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38077 is done by grub_cmd_linux() now).
38078 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38079 restore video to text mode.
38080 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38081 indicates lack of "vga=" parameter. "vga=0" is mapped to
38082 `GRUB_LINUX_VID_MODE_NORMAL'.
38084 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38086 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38087 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38088 and `normal/script.c'. Add `kern/rescue_reader.c',
38089 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38090 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38091 `grub_script.tab.c'.
38093 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38094 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38095 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38096 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38097 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38099 * Makefile.in: Remove duplicated 2008 in Copyright line.
38101 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38103 * util/misc.c (grub_util_warn): New function. Emits a warning
38105 * include/grub/util/misc.h (grub_util_warn): New declaration.
38107 * util/i386/pc/grub-install.in: Understand --force and pass it down
38110 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38112 (setup): Improve error messages and add warnings when requested to
38113 install in odd layouts. Refuse to install using blocklists unless
38116 2009-05-04 martin f. krafft <madduck@madduck.net>
38118 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38120 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38122 Updated copyright year
38124 * fs/hfsplus.c: updated copyright year
38126 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38130 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38131 in the space previously used by unused3
38132 (grub_hfsplus_uuid): new function
38133 (grub_hfsplus_fs): added uuid field
38135 2009-05-03 Pavel Roskin <proski@gnu.org>
38137 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38138 suppress warnings. It's no longer needed.
38139 * disk/host.c: Likewise.
38140 * disk/ata_pthru.c: Likewise.
38141 * disk/loopback.c: Likewise.
38142 * hook/datehook.c: Likewise.
38143 * parttool/pcpart.c: Likewise.
38144 * fs/i386/pc/pxe.c: Likewise.
38145 * fs/ntfscomp.c: Likewise.
38146 * efiemu/main.c: Likewise.
38147 * mmap/mmap.c: Likewise.
38148 * commands/crc.c: Likewise.
38149 * commands/hexdump.c: Likewise.
38150 * commands/hdparm.c: Likewise.
38151 * commands/acpi.c: Likewise.
38152 * commands/echo.c: Likewise.
38153 * commands/minicmd.c: Likewise.
38154 * commands/blocklist.c: Likewise.
38155 * commands/memrw.c: Likewise.
38156 * commands/loadenv.c: Likewise.
38157 * commands/usbtest.c: Likewise.
38158 * commands/lsmmap.c: Likewise.
38159 * commands/boot.c: Likewise.
38160 * commands/parttool.c: Likewise.
38161 * commands/configfile.c: Likewise.
38162 * commands/search.c: Likewise.
38163 * commands/ieee1275/suspend.c: Likewise.
38164 * commands/cat.c: Likewise.
38165 * commands/i386/pc/pxecmd.c: Likewise.
38166 * commands/i386/pc/play.c: Likewise.
38167 * commands/i386/pc/halt.c: Likewise.
38168 * commands/i386/pc/vbeinfo.c: Likewise.
38169 * commands/i386/pc/vbetest.c: Likewise.
38170 * commands/lspci.c: Likewise.
38171 * commands/date.c: Likewise.
38172 * commands/handler.c: Likewise.
38173 * commands/ls.c: Likewise.
38174 * commands/test.c: Likewise.
38175 * commands/cmp.c: Likewise.
38176 * commands/efi/loadbios.c: Likewise.
38177 * commands/efi/fixvideo.c: Likewise.
38178 * commands/halt.c: Likewise.
38179 * commands/help.c: Likewise.
38180 * commands/reboot.c: Likewise.
38181 * hello/hello.c: Likewise.
38182 * script/sh/main.c: Likewise.
38183 * loader/xnu.c: Likewise.
38184 * term/terminfo.c: Likewise.
38185 * term/i386/pc/serial.c: Likewise.
38186 * term/usb_keyboard.c: Likewise.
38188 2009-05-03 David S. Miller <davem@davemloft.net>
38190 * normal/menu.c: Include grub/parser.h
38192 2009-05-03 Pavel Roskin <proski@gnu.org>
38194 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38196 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38197 Suggested by Javier Martín <lordhabbit@gmail.com>
38199 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38200 efiemu??.o doesn't exist.
38201 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38204 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38206 FreeBSD 64-bit support
38208 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38209 and loader/i386/bsd_trampoline.S
38210 (bsd_mod_ASFLAGS): new variable
38211 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38212 (FREEBSD_MODTYPE_KERNEL64): likewise
38213 (grub_bsd64_trampoline_start): likewise
38214 (grub_bsd64_trampoline_end): likewise
38215 (grub_bsd64_trampoline_selfjump): likewise
38216 (grub_bsd64_trampoline_gdt): likewise
38217 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38218 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38219 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38220 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38221 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38223 * loader/i386/bsd_pagetable.c: new file
38224 * loader/i386/bsd_trampoline.S: likewise
38225 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38226 (ALIGN_VAR): likewise
38227 (entry_hi): new variable
38228 (kern_end_mdofs): likewise
38229 (is_64bit): likewise
38230 (grub_freebsd_add_meta): use ALIGN_VAR
38231 (grub_e820_mmap): new declaration
38232 (grub_freebsd_add_mmap): new function
38233 (grub_freebsd_add_meta_module): support 64 bit kernels
38234 (grub_freebsd_list_modules): use ALIGN_VAR
38235 (gdt_descriptor): new declaration
38236 (grub_freebsd_boot): support 64 bit kernels
38237 (grub_bsd_elf64_hook): new function
38238 (grub_bsd_load_elf): support elf64
38240 2009-05-03 Bean <bean123ch@gmail.com>
38242 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38243 after we get the result of if statement.
38245 2009-05-03 Bean <bean123ch@gmail.com>
38247 * Makefile.in (enable_efiemu): New variable.
38249 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38251 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38253 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38254 path, add -mno-red-zone option.
38255 (efiemu64_s.o): Likewise.
38256 (efiemu64.o): Use macro $^ for source file.
38258 * configure.ac (--enable-efiemu): New option.
38260 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38264 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38265 (pkglib_MODULES): add xnu.mod
38266 (xnu_mod_SOURCES): new variable
38267 (xnu_mod_CFLAGS): likewise
38268 (xnu_mod_LDFLAGS): likewise
38269 (xnu_mod_ASFLAGS): likewise
38270 * conf/i386-pc.rmk: likewise
38271 * conf/x86_64-efi.rmk: likewise
38272 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38274 * include/grub/i386/macho.h: new file
38275 * include/grub/i386/xnu.h: likewise
38276 * include/grub/macho.h: likewise
38277 * include/grub/machoload.h: likewise
38278 * include/grub/x86_64/macho.h: likewise
38279 * include/grub/x86_64/xnu.h: likewise
38280 * include/grub/xnu.h: likewise
38281 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38282 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38283 * loader/i386/efi/xnu.c: new file
38284 * loader/i386/pc/xnu.c: likewise
38285 * loader/i386/xnu.c: likewise
38286 * loader/i386/xnu_helper.S: likewise
38287 * loader/macho.c: likewise
38288 * loader/xnu.c: likewise
38289 * loader/xnu_resume.c: likewise
38290 * util/grub-dumpdevtree: likewise
38291 * include/grub/i386/pit.h: include grub/err.h
38292 (grub_pit_wait): export
38293 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38295 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38299 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38300 _linux_efi, linux_efi.
38301 new files in grub-emu
38302 new targets efiemu32.o and efiemu64.o
38303 * loader/linux_normal_efiemu.c: likewise
38304 * loader/i386/efi/linux.c: added preliminary efiemu support
38305 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38307 * include/grub/autoefi.h: new file
38308 * include/grub/i386/efiemu.h: likewise
38309 * include/grub/i386/pc/efiemu.h: likewise
38310 * include/grub/efi/api.h: add LL suffix when necessary
38311 new definitions relating to tables
38312 * include/grub/efiemu/efiemu.h: new file
38313 * include/grub/efiemu/runtime.h: likewise
38314 * efiemu/prepare.c: likewise
38315 * efiemu/loadcore_common.c: likewise
38316 * efiemu/loadcore64.c: likewise
38317 * efiemu/runtime/efiemu.sh: likewise
38318 * efiemu/runtime/efiemu.S: likewise
38319 * efiemu/runtime/efiemu.c: likewise
38320 * efiemu/runtime/config.h: likewise
38321 * efiemu/prepare32.c: likewise
38322 * efiemu/main.c: likewise
38323 * efiemu/modules/pnvram.c: likewise
38324 * efiemu/modules/i386: likewise
38325 * efiemu/modules/i386/pc: likewise
38326 * efiemu/modules/acpi.c: likewise
38327 * efiemu/i386/pc/cfgtables.c: likewise
38328 * efiemu/i386/loadcore64.c: likewise
38329 * efiemu/i386/loadcore32.c: likewise
38330 * efiemu/prepare64.c: likewise
38331 * efiemu/loadcore.c: likewise
38332 * efiemu/symbols.c: likewise
38333 * efiemu/mm.c: likewise
38334 * efiemu/loadcore32.c: likewise
38336 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38340 * commands/acpi.c: new file
38341 * commands/i386/pc/acpi.c: likewise
38342 * commands/efi/acpi.c: likewise
38343 * include/grub/acpi.h: likewise
38344 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38345 (acpi_mod_SOURCES): new variable
38346 (acpi_mod_CFLAGS): likewise
38347 (acpi_mod_LDFLAGS): likewise
38348 * conf/i386-efi.rmk: likewise
38349 * conf/x86_64-efi.rmk: likewise
38351 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38353 Missing part from mmap patch
38355 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38356 (grub_mmap_unregister)
38357 (grub_mmap_free_and_unregister): use grub_mmap_register
38359 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38363 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38364 * loader/i386/linux.c (find_mmap_size): likewise
38365 (allocate_pages): likewise
38366 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38367 (grub_fill_multiboot_mmap): likewise
38368 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38369 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38370 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38371 (OPENBSD_MMAP_RESERVED): likewise
38372 * include/grub/i386/pc/memory.h: include grub/memory.h
38373 (grub_lower_mem): removed
38374 (grub_upper_mem): likewise
38375 (GRUB_MACHINE_MEMORY_ACPI): new definition
38376 (GRUB_MACHINE_MEMORY_NVS): likewise
38377 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
38378 (GRUB_MACHINE_MEMORY_HOLE): likewise
38379 (grub_machine_mmap_register): likewise
38380 (grub_machine_mmap_unregister): likewise
38381 (grub_machine_get_upper): likewise
38382 (grub_machine_get_lower): likewise
38383 (grub_machine_get_post64): likewise
38384 * include/grub/i386/efi/memory.h: new file
38385 * include/grub/x86_64/efi/memory.h: likewise
38386 * include/grub/efi/memory.h: likewise
38387 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
38388 (mmap_mod_SOURCES): new variable
38389 (mmap_mod_LDFLAGS): likewise
38390 (mmap_mod_ASFLAGS): likewise
38391 * conf/i386-coreboot.rmk: likewise
38392 * conf/i386-ieee1275.rmk: likewise
38393 * conf/i386-efi.rmk: likewise
38394 * conf/x86_64-efi.rmk: likewise
38395 * include/grub/types.h (UINT_TO_PTR): new macro
38396 (PTR_TO_UINT32): likewise
38397 (PTR_TO_UINT64): likewise
38398 * include/grub/memory.h: new file
38399 * mmap/i386/pc/mmap.c: likewise
38400 * mmap/i386/pc/mmap_helper.S: likewise
38401 * mmap/i386/uppermem.c: likewise
38402 * mmap/mmap.c: likewise
38403 * mmap/efi/mmap.c: likewise
38404 * kern/i386/coreboot/init.c (grub_machine_init): don't use
38406 * kern/i386/pc/init.c (grub_lower_mem): removed variable
38407 (grub_upper_mem): likewise
38408 (grub_machine_init): don't use grub_upper_mem,
38409 make grub_lower_mem local
38410 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
38411 grub_mmap_iterate and grub_mmap_get_upper
38412 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
38414 2009-05-02 Bean <bean123ch@gmail.com>
38416 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
38417 script/sh/parser.y.
38418 (pkglib_MODULES): Add normal.mod and sh.mod.
38419 (normal_SOURCES): New variable.
38420 (normal_mod_CFLAGS): Likewise.
38421 (normal_mod_LDFLAGS): Likewise.
38422 (sh_mod_SOURCES): Likewise.
38423 (sh_mod_CFLAGS): Likewise.
38424 (sh_mod_LDFLAGS): Likewise.
38426 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
38427 script/sh/lexer.c_DEPENDENCIES.
38428 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
38429 kern/rescue_reader.c and kern/rescue_parser.c.
38430 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
38431 (grub_emu_SOURCES): Change source files.
38432 (pkglib_MODULES): Remove normal.mod.
38433 (normal_SOURCES): Removed.
38434 (normal_mod_CFLAGS): Likewise.
38435 (normal_mod_LDFLAGS): Likewise.
38436 * conf/i386-coreboot.rmk: Likewise.
38437 * conf/i386-efi.rmk: Likewise.
38438 * conf/i386-ieee1276.rmk: Likewise.
38439 * conf/powerpc-ieee1275.rmk: Likewise.
38440 * conf/sparc64-ieee1275.rmk: Likewise.
38441 * conf/x86_64-efi.rmk: Likewise.
38443 * include/grub/command.h (grub_command_execute): New inline function.
38445 * include/grub/menu.h (grub_menu_entry): Removed commands field.
38447 * include/grub/normal.h: Remove <grub/setjmp.h>.
38448 (grub_fs_module_list): Moved to normal/autofs.c.
38449 (grub_exit_env): Removed.
38450 (grub_command_execute): Likewise.
38451 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
38453 (read_command_list): New function declaration.
38454 (read_fs_list): Likewise.
38456 * include/parser.h: Include <grub/reader.h>.
38457 (grub_parser_split_cmdline): Change type of getline parameter.
38458 (grub_parser): New structure.
38459 (grub_parser_class): New variable.
38460 (grub_parser_execute): New function declaration.
38461 (grub_register_rescue_parser): Likewise.
38462 (grub_parser_register): New inline function.
38463 (grub_parser_unregister): Likewise.
38464 (grub_parser_get_current): Likewise.
38465 (grub_parser_set_current): Likewise.
38467 * include/grub/reader.h: New file.
38468 * kern/reader.c: Likewise.
38469 * kern/rescue_parser.c: Likewise.
38470 * kern/rescue_reader.c: Likewise.
38471 * normal/autofs.c: Likewise.
38472 * normal/dyncmd.c: Likewise.
38474 * include/grub/rescue.h: Removed.
38475 * normal/command.h: Likewise.
38477 * include/grub/script.h: Moved to ...
38478 * include/grub/script_sh.h: ... Moved here.
38479 * normal/execute.c: Moved to ...
38480 * script/sh/execute.c: ... Moved here.
38481 * normal/function.c: Moved to ...
38482 * script/sh/function.c: ... Moved here.
38483 * normal/lexer.c: Moved to ...
38484 * script/sh/lexer.c: ... Moved here.
38485 * normal/parser.y: Moved to ...
38486 * script/sh/parser.y: ... Moved here.
38487 * normal/script.c: Moved to ...
38488 * script/sh/script.c: ... Moved here.
38490 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
38492 (grub_exit_env): Removed.
38493 (fs_module_list): Moved to normal/autofs.c.
38494 (grub_file_getline): Don't handle comment here.
38495 (free_menu): Skip removed field entry->commands.
38496 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
38498 (read_config_file): Removed nested parameter, change getline function.
38499 (grub_enter_normal_mode): Removed.
38500 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
38501 (read_command_list): Likewise.
38502 (autoload_fs_module): Moved to normal/autofs.c.
38503 (read_fs_list): Likewise.
38504 (reader_nested): New variable.
38505 (grub_normal_execute): Run parser.sh to switch to sh parser.
38506 (grub_cmd_rescue): Removed.
38507 (cmd_normal): Removed.
38508 (grub_cmd_normal): Unregister itself at the beginning. Don't register
38510 (grub_cmdline_run): New function.
38511 (grub_normal_reader_init): Likewise.
38512 (grub_normal_read_line): Likewise.
38513 (grub_env_write_pager): Likewise.
38514 (cmdline): New variable.
38515 (grub_normal_reader): Likewise.
38516 (GRUB_MOD_INIT): Register normal reader and set as current, register
38517 pager hook, register normal command with grub_register_command_prio,
38518 so that it won't show up in command.lst.
38519 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
38520 grub_fs_autoload_hook.
38522 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
38523 (grub_menu_execute_entry): Replace grub_script_execute with
38524 grub_parser_execute, change parameter to grub_command_execute.
38526 * normal/menu_text.c: Remove <grub/script.h>.
38528 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
38529 and <grub/parser.h>.
38530 (run): Change editor_getline to use new parser interface. Change
38531 parameter to grub_command_execute.
38533 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
38534 <grub/reader.h> and <grub/parser.h>.
38535 (grub_load_normal_mode): Execute normal command.
38536 (grub_main): Call grub_register_core_commands,
38537 grub_register_rescue_parser and grub_register_rescue_reader, use
38538 grub_reader_loop to enter input loop.
38540 * kern/parser.c (grub_parser_split_cmdline): Change type of
38542 (grub_parser_class): New variable.
38543 (grub_parser_execute): New function.
38545 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
38546 * loader/multiboot2.c: Likewise.
38547 * loader/sparc64/ieee1275/linux.c: Likewise.
38549 * util/grub-emu.c (read_command_list): New dummy function.
38551 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
38553 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
38554 count to 16 for CCISS and IDA.
38556 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
38558 * normal/menu_text.c (grub_wait_after_message): Print a newline
38559 after waiting for user input.
38561 * loader/i386/linux.c: Include `<grub/normal.h>'.
38562 (grub_cmd_linux): Improve the error message about `ask' mode, by
38563 waiting for user input so it's not missed (we can do this, since
38564 user requested interaction).
38566 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38568 Added missing lst to grub-mkrescue
38570 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
38571 and ${input_dir}/parttool.lst
38573 2009-04-30 David S. Miller <davem@davemloft.net>
38575 * util/hostdisk.c (device_is_wholedisk): New function.
38576 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
38577 zero only if device_is_wholedisk() returns true.
38579 * util/hostdisk.c (convert_system_partition_to_system_disk):
38580 Handle virtual disk devices named /dev/vdiskX as found on sparc
38583 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
38584 lettered partition specifier is found, convert to numbered.
38586 2009-04-29 David S. Miller <davem@davemloft.net>
38588 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
38589 * include/grub/sparc64/ieee1275/memory.h: Likewise.
38591 * normal/command.c: Add missing newline at end of file.
38593 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
38595 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
38596 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
38597 grub_ofdisk_read): Likewise, and deal similarly with the fact that
38598 ihandles have a 32-bit type but need to be stored in a "void *".
38600 2009-04-28 Pavel Roskin <proski@gnu.org>
38602 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
38603 not disk. Adjust all dependencies.
38604 (grub_fs_uuid_close): Use grub_device_close(), not
38607 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
38608 parent's partition, don't copy it by reference, as it gets freed
38611 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
38613 Preboot hooks support
38615 * commands/boot.c (struct grub_preboot_t): new declaration
38616 (preboots_head): new variable
38617 (preboots_tail): likewise
38618 (grub_loader_register_preboot_hook): new function
38619 (grub_loader_unregister_preboot_hook): likewise
38620 (grub_loader_set): launch preboot hooks
38621 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
38622 (grub_loader_register_preboot_hook): new declaration
38623 (grub_loader_unregister_preboot_hook): likewise
38625 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
38629 * disk/scsi.c (grub_scsi_open): added missing cast when
38630 calling grub_dprintf
38632 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
38634 Bug and warning fixes
38636 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
38638 * commands/test.c (test_parse): fixed bug with file tests and corrected
38639 declaration of find_file
38641 2009-04-26 Pavel Roskin <proski@gnu.org>
38643 * Makefile.in: Don't install empty manual pages if help2man is
38644 missing. Use help2man option for output, not shell redirection.
38646 2009-04-26 David S. Miller <davem@davemloft.net>
38648 * util/grub-mkdevicemap.c (make_device_map): Add missing
38649 NESTED_FUNC_ATTR to process_device().
38651 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
38655 * commands/test.c: rewritten to use bash-like test
38657 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
38659 Parttool autoloading and improvements
38661 * Makefile.in (pkglib_DATA): add parttool.lst
38662 (parttool.lst): new target
38663 * genmk.rb: generate parttool-*
38664 (CLEANFILES): add #{parttool}
38665 (PARTTOOLFILES): new variable
38666 * genparttoollist.sh: new file
38667 * parttool/pcpart.c (grub_pcpart_boot): more feedback
38668 (grub_pcpart_type): likewise
38669 * commands/parttool.c (helpmsg): new variable
38670 (grub_cmd_parttool): output help if not enough arguments are supplied
38672 (GRUB_MOD_INIT(parttool)): use helpmsg
38674 2009-04-24 David S. Miller <davem@davemloft.net>
38676 Avoiding opening same device multiple times in device iterator.
38678 * kern/device.c: (grub_device_iterate): Define struct part_ent,
38679 and use it to build a list of partitions in iterate_disk() and
38680 iterate_partition().
38682 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
38685 * disk/ieee1275/nand.c (grub_nand_iterate): Return
38686 grub_devalias_iterate() result instead of unconditional 0.
38687 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
38688 Also, capture hook return value, either directly or via
38689 grub_children_iterate(), and propagate to caller.
38690 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
38691 grub_children_iterate): Return value is now 'int' instead of
38693 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
38694 like a proper iterator, stopping when hooks return non-zero.
38695 (grub_devalias_iterate): Likewise.
38697 2009-04-23 David S. Miller <davem@davemloft.net>
38699 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
38701 2009-04-22 David S. Miller <davem@davemloft.net>
38703 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
38704 is larger than address_cells, use that value for address_cells too.
38706 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
38707 IEEE1275_MAX_PATH_LEN): Define.
38708 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
38709 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
38710 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
38711 'devtype'. Explicitly NULL terminate devalias expansion.
38713 * util/sparc64/ieee1275/misc.c: New file.
38714 * util/sparc64/ieee1275/grub-setup.c: New file.
38715 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
38716 * util/sparc64/ieee1275/grub-mkimage.c: New file.
38717 * util/sparc64/ieee1275/grub-install.in: New file.
38718 * util/ieee1275/ofpath.c: New file.
38719 * util/ieee1275/devicemap.c: New file.
38720 * util/devicemap.c: New file.
38721 * util/deviceiter.c: New file.
38722 * kern/sparc64/ieee1275/init.c: New file.
38723 * include/grub/util/ofpath.h: New file.
38724 * include/grub/util/deviceiter.h: New file.
38725 * util/grub-mkdevicemap.c: Include deviceiter.h.
38726 Implement using grub_util_emit_devicemap_entry and
38727 grub_util_iterate_devices.
38728 * conf/i386-corebook.rmk: Build util/deviceiter.c and
38729 util/devicemap.c into grub-mkdevicemap
38730 * conf/i386-efi.rmk: Likewise.
38731 * conf/i386-ieee1275.rmk: Likewise.
38732 * conf/i386-pc.rmk: Likewise.
38733 * conf/powerpc-ieee1275.rmk: Likewise.
38734 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
38735 images and installation utilities. Build kernel as image
38736 instead of as elf binary. Use common rules as much as possible.
38738 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
38740 Correct GPT definition
38742 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38745 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
38747 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
38749 2009-04-19 David S. Miller <davem@davemloft.net>
38751 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
38752 (grub_rescue_cmd_linux): Rename to...
38753 (grub_cmd_linux): and fix prototype.
38754 (grub_rescue_cmd_initrd): Rename to...
38755 (grub_cmd_initrd): and fix prototype.
38756 (cmd_linux, cmd_initrd): New.
38757 (GRUB_MOD_INIT(linux)): Use grub_register_command().
38758 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
38760 2009-04-17 Pavel Roskin <proski@gnu.org>
38762 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
38764 (grub_ohci_transfer): Likewise.
38766 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
38768 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
38769 return without a value. Fix inconsistent indentation.
38771 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
38772 match struct grub_fs.
38774 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
38775 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
38776 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38777 * commands/lspci.c (grub_lspci_iter): Likewise.
38779 2009-04-16 Bean <bean123ch@gmail.com>
38781 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
38784 2009-04-15 Pavel Roskin <proski@gnu.org>
38786 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
38787 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
38788 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
38791 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
38793 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
38794 that no multiple data or metadata areas are supported and `Unknown
38797 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
38799 Move loader out of the kernel
38801 * kern/loader.c: moved to ...
38802 * commands/boot.c: ... moved here
38803 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
38804 * commands/boot.c (grub_cmd_boot): moved here. All users updated
38805 * include/grub/kernel.h (grub_machine_fini): export
38806 * include/grub/loader.h (grub_loader_is_loaded): update declaration
38807 (grub_loader_set): likewise
38808 (grub_loader_unset): likewise
38809 (grub_loader_boot): likewise
38810 * conf/common.rmk: new module boot.mod
38811 (pkglib_MODULES): add boot.mod
38812 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
38813 (grub_emu_SOURCES): likewise
38814 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
38815 (grub_emu_SOURCES): likewise
38816 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
38817 (grub_emu_SOURCES): likewise
38818 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
38819 (grub_emu_SOURCES): likewise
38820 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
38821 (grub_emu_SOURCES): likewise
38822 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
38823 (grub_emu_SOURCES): likewise
38824 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
38825 (grub_emu_SOURCES): likewise
38827 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
38829 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
38831 * kern/misc.c (grub_itoa): Removed function
38832 (grub_ltoa): likewise
38833 (grub_vsprintf): use grub_lltoa
38835 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
38839 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
38840 * conf/i386-coreboot.rmk: likewise
38841 * conf/i386-ieee1275.rmk: likewise
38842 * conf/powerpc-ieee1275.rmk: likewise
38844 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
38846 * INSTALL: Add that `./autogen.sh' needs to be run before
38849 2009-04-14 Bean <bean123ch@gmail.com>
38851 * Makefile.in (pkglib_DATA): Add handler.lst.
38852 (handler.lst): New rule.
38854 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
38855 * conf/i386-coreboot.rmk: Likewise.
38856 * conf/i386-ieee1275.rmk: Likewise.
38857 * conf/i386-efi.rmk: Likewise.
38858 * conf/x86_64-efi.rmk: Likewise.
38859 * conf/powerpc-ieee1275.rmk: Likewise.
38860 * conf/sparc64-ieee1275.rmk: Likewise.
38862 * genhandlerlist.sh: New file.
38864 * genmk.rb: Add rules to generate handler.lst.
38866 * include/grub/normal.h (grub_file_getline): New function definition.
38867 (read_handler_list): Likewise.
38868 (free_handler_list): Likewise.
38870 * include/grub/term.h (grub_term_register_input): Add name parameter
38871 for auto generation of handler.lst.
38872 (grub_term_register_output): Likewise.
38874 * normal/handler.c: New file.
38876 * normal/main.c (get_line): Renamed to grub_file_getline.
38877 (read_config_file): Use the newly renamed grub_file_getline.
38878 (read_command_list): Likewise.
38879 (read_fs_list): Likewise.
38880 (grub_normal_execute): Call read_handler_list to parse handler.lst.
38881 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
38883 * term/efi/console.c (grub_console_init): Add name parameter for auto
38884 generation of handler.lst.
38885 * term/gfxterm.c: Likewise.
38886 * term/i386/pc/at_keyboard.c: Likewise.
38887 * term/i386/pc/console.c: Likewise.
38888 * term/i386/pc/serial.c: Likewise.
38889 * term/i386/pc/vesafb.c: Likewise.
38890 * term/i386/pc/vga.c: Likewise.
38891 * term/i386/pc/vga_text.c: Likewise.
38892 * term/ieee1275/ofconsole.c: Likewise.
38893 * term/usb_keyboard.c: Likewise.
38895 2009-04-14 Bean <bean123ch@gmail.com>
38897 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
38898 properly with null character.
38900 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
38902 * configure: Remove.
38903 * config.h.in: Likewise.
38904 * stamp-h.in: Likewise.
38905 * DISTLIST: Likewise.
38906 * conf/common.mk: Likewise.
38907 * conf/i386-coreboot.mk: Likewise.
38908 * conf/i386-efi.mk: Likewise.
38909 * conf/i386-ieee1275.mk: Likewise.
38910 * conf/i386.mk: Likewise.
38911 * conf/i386-pc.mk: Likewise.
38912 * conf/powerpc-ieee1275.mk: Likewise.
38913 * conf/sparc64-ieee1275.mk: Likewise.
38914 * conf/x86_64-efi.mk: Likewise.
38916 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
38919 2009-04-14 John Stanley <jpsinthemix@verizon.net>
38920 David S. Miller <davem@davemloft.net>
38922 * util/hostdisk.c (make_device_name): Fix buffer length
38925 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
38927 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
38928 <sys/param.h> and <sys/sysctl.h>.
38929 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
38930 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
38931 opening the device and reset them afterwards.
38933 2009-04-13 Pavel Roskin <proski@gnu.org>
38935 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
38936 Reported by John Stanley <jpsinthemix@verizon.net>
38938 2009-04-13 Robert Millan <rmh@aybabtu.com>
38940 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
38941 that name for menuentries when appropriate.
38943 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
38945 * util/grub.d/10_freebsd.in: Add a missing `fi'.
38947 2009-04-13 Robert Millan <rmh@aybabtu.com>
38949 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
38950 to Linux, simply abort telling the user it's no longer supported.
38952 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
38954 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
38955 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
38956 `freebsd_loadenv' only when devices.hints exist.
38958 2009-04-13 Pavel Roskin <proski@gnu.org>
38960 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
38962 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
38964 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
38966 (grub_drive): Likewise.
38968 2009-04-13 David S. Miller <davem@davemloft.net>
38970 * kern/sparc64/ieee1275/ieee1275.c: New file.
38971 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
38972 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
38973 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
38974 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
38975 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
38976 grub_ieee1275_alloc_physmem): Declare new exported functions.
38978 * include/grub/sparc64/ieee1275/loader.h: New file.
38979 * include/grub/sparc64/ieee1275/memory.h: Likewise.
38980 * include/grub/sparc64/kernel.h: Likewise.
38981 * loader/sparc64/ieee1275/linux.c: Likewise.
38983 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
38984 (grub_fstest_SOURCES): Likewise.
38986 * util/hostdisk.c (make_device_name): Do not make any assumptions
38987 about the length of drive names.
38989 * kern/dl.c (grub_dl_load_file): Close file immediately when
38990 we are done using it.
38992 2009-04-12 David S. Miller <davem@davemloft.net>
38994 * kern/misc.c (grub_ltoa): Fix cast when handling negative
38995 values. Noticed by Pavel Roskin.
38997 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39000 * genmk.rb: Add more flexible image type specification, also
39001 pass --strip-unneeded to objcopy.
39002 * conf/i386-pc.rmk: Use *_FORMAT.
39003 * conf/i386-pc.mk: Rebuilt.
39005 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39006 (OFDISK_HASH_SZ): Define.
39007 (ofdisk_hash): New hash table.
39008 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39009 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39010 instead of device phandle which is not unique.
39012 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39013 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39014 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39015 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39016 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39017 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39018 GRUB_KERNEL_MACHINE_DATA_END): Define.
39019 (grub_kernel_image_size, grub_total_module_size): Declare.
39021 2009-04-12 Pavel Roskin <proski@gnu.org>
39023 * configure.ac: Change the logic when we check for target tools.
39024 Do it when the target is specified and it's different from the
39025 specified value of the host.
39027 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39029 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39030 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39031 GNU/kFreeBSD. Check if a device is a character device. Use
39032 DIOCGMEDIASIZE to get the size.
39033 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39034 support for GNU/kFreeBSD.
39035 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39036 is a character device instead of a block device. Add support for
39037 FreeBSD device names.
39039 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39040 is a character device instead of a block device.
39042 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39043 is a character device instead of a block device.
39045 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39047 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39048 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39049 FreeBSD. Check if a device is a character device. Use
39050 DIOCGMEDIASIZE to get the size.
39051 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39052 support for FreeBSD.
39053 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39054 is a character device instead of a block device. Add support for
39055 FreeBSD device names.
39057 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39058 a character device instead of a block device.
39059 (grub_util_check_char_device): New function.
39061 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39062 a character device instead of a block device.
39064 * include/grub/util/getroot.h (grub_util_check_char_device): New
39067 2009-04-11 David S. Miller <davem@davemloft.net>
39069 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39071 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39072 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39073 function, if present.
39074 (__bswapdi2): Likewise.
39076 * include/grub/sparc64/ieee1275/boot.h: New file.
39077 * boot/sparc64/ieee1275/boot.S: Likewise.
39078 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39080 * kern/misc.c (grub_ltoa): New function.
39081 (grub_vsprintf): Use it to format 'long' integers.
39083 2009-04-10 David S. Miller <davem@davemloft.net>
39085 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39086 slots are of type grub_ieee1275_cell_t.
39087 (grub_nand_read): Likewise.
39088 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39089 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39090 macros are used to compare values in arg/ret block of the call.
39091 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39092 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39093 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39094 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39095 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39096 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39097 grub_ieee1275_close, grub_ieee1275_set_property,
39098 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39099 grub_ieee1275_cell_t.
39100 * kern/ieee1275/openfw.c (grub_map): Likewise.
39101 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39102 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39104 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39105 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39106 (grub_devalias_iterate): Likewise.
39108 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39112 * fs/ufs.c (INODE_NBLOCKS): new definition
39113 (struct grub_ufs_dirent): added fields for non-BSD dirents
39114 (grub_ufs_get_file_block): fixed double indirect handling
39115 (grub_ufs_lookup_symlink): use more robust way to determine whether
39117 (grub_ufs_find_file): support for non-BSD dirents
39118 (grub_ufs_dir): support for non-BSD dirents
39120 2009-04-10 Bean <bean123ch@gnail.com>
39122 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39123 attribute, otherwise the size would be wrong for i386 platform.
39125 * include/grub/pci.h (grub_pci_read_word): New inline function.
39126 (grub_pci_read_byte): Likewise.
39127 (grub_pci_write): Likewise.
39128 (grub_pci_write_word): Likewise.
39129 (grub_pci_write_byte): Likewise.
39131 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39133 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39134 (find_framebuf): Scan pci to locate the frame buffer address.
39136 * commands/efi/fixvideo.c: New file.
39138 * commands/efi/loadbios.c: Likewise.
39140 * commands/memrw.c: Likewise.
39142 * util/grub-dumpbios.in: Likewise.
39144 * conf/common.rmk (grub-dumpbios): New utility.
39145 (pkglib_MODULES): New module memrw.mod.
39146 (memrw_mod_SOURCE): New macro.
39147 (memrw_mod_CFLAGS): Likewise.
39148 (memrw_mod_LDFLAGS): Likewise.
39150 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39152 (loadbios_mod_SOURCE): New macro.
39153 (loadbios_mod_CFLAGS): Likewise.
39154 (loadbios_mod_LDFLAGS): Likewise.
39155 (fixvideo_mod_SOURCE): Likewise.
39156 (fixvideo_mod_CFLAGS): Likewise.
39157 (fixvideo_mod_LDFLAGS): Likewise.
39159 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39161 (loadbios_mod_SOURCE): New macro.
39162 (loadbios_mod_CFLAGS): Likewise.
39163 (loadbios_mod_LDFLAGS): Likewise.
39164 (fixvideo_mod_SOURCE): Likewise.
39165 (fixvideo_mod_CFLAGS): Likewise.
39166 (fixvideo_mod_LDFLAGS): Likewise.
39168 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39170 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39172 2009-04-07 David S. Miller <davem@davemloft.net>
39174 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39175 support for R_SPARC_OLO10 relocations. Fix compile warning for
39176 R_SPARC_WDISP30 case.
39177 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39179 2009-04-06 Pavel Roskin <proski@gnu.org>
39181 * include/grub/misc.h (ARRAY_SIZE): New macro.
39182 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39184 * loader/i386/linux.c (allocate_pages): Use free_pages().
39185 (grub_linux_unload): Don't use free_pages().
39186 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39187 wrong index. Treat all other modes as text modes.
39188 (grub_cmd_linux): Initialize vid_mode unconditionally to
39189 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39191 * commands/help.c (print_command_help): Use cmd->prio, not
39192 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39194 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39198 * parttool/pcpart.c: new file
39199 * commands/parttool.c: likewise
39200 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39201 (parttool_mod_SOURCES): new variable
39202 (parttool_mod_CFLAGS): likewise
39203 (parttool_mod_LDFLAGS): likewise
39204 (pcpart_mod_SOURCES): likewise
39205 (pcpart_mod_CFLAGS): likewise
39206 (pcpart_mod_LDFLAGS): likewise
39207 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39208 and parttool/pcpart.c
39209 * conf/i386-efi.rmk: likewise
39210 * conf/i386-ieee1275.rmk: likewise
39211 * conf/i386-pc.rmk: likewise
39212 * conf/powerpc-ieee1275.rmk: likewise
39213 * conf/sparc64-ieee1275.rmk: likewise
39214 * conf/x86_64-ieee1275.rmk: likewise
39216 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39218 Support for mtime and further expandability of dir command
39220 * include/grub/lib/datetime.h: moved to ...
39221 * include/grub/datetime.h: ... moved here and added
39222 declaration of grub_unixtime2datetime. All users updated
39223 * include/grub/fs.h: new syntax for dir and mtime functions in
39225 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39226 and GRUB_FSHELP_FLAGS_MASK
39227 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39228 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39229 (grub_ext2_mtime): new function
39230 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39231 (grub_hfsplus_mtime): new function
39232 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39233 (GRUB_UFS_ATTR_FILE): likewise
39234 (GRUB_UFS_ATTR_LNK): likewise
39235 (struct grub_ufs_sblock): new fields mtime
39236 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39238 (grub_ufs_dir): mtime support
39239 (grub_ufs_mtime): new function
39240 * fs/affs.c (grub_affs_dir): use new dir syntax
39241 * fs/afs.c (grub_afs_dir): likewise
39242 * fs/cpio.c (grub_cpio_dir): likewise
39243 * fs/fat.c (grub_fat_find_dir): likewise
39244 * fs/hfs.c (grub_hfs_dir): likewise
39245 * fs/iso9660.c (grub_iso9660_dir): likewise
39246 * fs/jfs.c (grub_jfs_dir): likewise
39247 * fs/minix.c (grub_minix_dir): likewise
39248 * fs/ntfs.c (grub_ntfs_dir): likewise
39249 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39250 * fs/sfs.c (grub_sfs_dir): likewise
39251 * fs/xfs.c (grub_xfs_dir): likewise
39252 * util/hostfs.c (grub_hostfs_dir): likewise
39253 * lib/datetime.c: moved to ...
39254 * normal/datetime.c: ... moved here
39255 (grub_unixtime2datetime): new function
39256 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39257 * normal/completion.c (iterate_dir): use new dir syntax
39258 * normal/misc.c (grub_normal_print_device_info): tell the
39259 last modification time of a volume
39260 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39261 * conf/common.rmk: added lib/datetime.c to ls.mod
39262 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39263 (normal_mod_SOURCES): likewise
39264 (datetime_mod_SOURCES): Removed lib/datetime.c
39265 * conf/i386-efi.rmk: likewise
39266 * conf/i386-ieee1275.rmk: likewise
39267 * conf/i386-pc.rmk: likewise
39268 * conf/powerpc-ieee1275.rmk: likewise
39269 * conf/sparc64-ieee1275.rmk: likewise
39270 * conf/x86_64-efi.rmk: likewise
39272 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39274 Trim trailing spaces in FAT label and support mtools-like labels
39276 * fs/fat.c (grub_fat_iterate_dir): New function based
39277 on grub_fat_find_dir
39278 (grub_fat_find_dir): use grub_fat_iterate_dir
39279 (grub_fat_label): likewise
39281 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39283 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39285 remove extraneous kernel_elf_HEADERS
39287 2009-04-04 Bean <bean123ch@gnail.com>
39289 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39291 * util/misc.c: Likewise.
39293 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39295 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39296 instead of grub_printf.
39298 2009-04-03 Robert Millan <rmh@aybabtu.com>
39300 * loader/i386/linux.c (grub_linux_setup_video): Fill
39301 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39302 values from `mode info' structure instead of hardcoded
39305 2009-04-01 Pavel Roskin <proski@gnu.org>
39307 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39309 * genmk.rb: Likewise.
39310 * configure.ac: Likewise.
39312 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39314 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39315 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39317 2009-04-01 David S. Miller <davem@davemloft.net>
39319 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39320 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39321 (grub_setjmp): Mark with 'returns_twice' attribute.
39322 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39323 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39324 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39326 2009-04-01 Robert Millan <rmh@aybabtu.com>
39328 Reapply fix from 2008-07-28 which was accidentally reverted; also
39329 perform the same fix to a similar check in same function.
39331 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39332 with the same number are found, just use issue a warning with
39333 grub_dprintf(), as this error has been reported to be non-fatal.
39335 2009-03-31 Pavel Roskin <proski@gnu.org>
39337 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39338 for cross-compilation.
39340 2009-03-30 Robert Millan <rmh@aybabtu.com>
39342 Fix i386-ieee1275 build.
39344 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39345 Remove declaration.
39347 2009-03-30 Pavel Roskin <proski@gnu.org>
39349 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39350 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39351 zero-terminated, rely only on the strlen value. Fix comparison
39352 of strings differing in length.
39354 2009-03-30 Robert Millan <rmh@aybabtu.com>
39356 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39357 checking for abi version. Improve error messages on BIOS to notify
39358 user about `linux16' command.
39360 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39364 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39365 in case of collision
39366 * disk/scsi.c (grub_scsi_open): free scsi in case of error
39368 2009-03-29 Robert Millan <rmh@aybabtu.com>
39370 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39371 set `vid_mode' accordingly.
39372 (grub_linux_boot): Process `vid_mode' and set video mode.
39374 2009-03-29 Robert Millan <rmh@aybabtu.com>
39376 * util/grub.d/10_linux.in (linux_entry): New function.
39377 Factorize generation of Linux boot entries.
39379 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
39381 Make the format of Environment Block plain text. The boot loader
39382 part is not tested well yet.
39384 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
39386 (envblk): Likewise.
39387 (usage): Remove "info" and "clear". Add "unset". Update the
39388 description of "set", as this does not delete variables any
39390 (create_envblk_file): Complete rewrite.
39391 (open_envblk_file): Likewise.
39392 (cmd_info): Removed.
39393 (cmd_list): Likewise.
39394 (cmd_set): Likewise.
39395 (cmd_clear): Likewise.
39396 (list_variables): New function.
39397 (write_envblk): Likewise.
39398 (set_variables): Likewise.
39399 (unset_variables): Likewise.
39400 (main): Complete rewrite.
39402 * commands/loadenv.c (buffer): Removed.
39403 (envblk): Likewise.
39404 (open_envblk_file): New function.
39405 (read_envblk_file): Complete rewrite.
39406 (grub_cmd_load_env): Likewise.
39407 (grub_cmd_list_env): Likewise.
39408 (struct blocklist): New struct.
39409 (free_blocklists): New function.
39410 (check_blocklists): Likewise.
39411 (write_blocklists): Likewise.
39412 (grub_cmd_save_env): Complete rewrite.
39414 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
39415 a plain text signature.
39416 (GRUB_ENVBLK_MAXLEN): Removed.
39417 (struct grub_envblk): Complete rewrite.
39418 (grub_envblk_find): Removed.
39419 (grub_envblk_insert): Likewise.
39420 (grub_envblk_open): New prototype.
39421 (grub_envblk_set): Likewise.
39422 (grub_envblk_delete): Put const to VALUE.
39423 (grub_envblk_iterate): Put const to NAME and VALUE.
39424 (grub_envblk_close): New prototype.
39425 (grub_envblk_buffer): New inline function.
39426 (grub_envblk_size): Likewise.
39428 * lib/envblk.c: Include grub/mm.h.
39429 (grub_env_find): Removed.
39430 (grub_envblk_open): New function.
39431 (grub_envblk_close): Likewise.
39432 (escaped_value_len): Likewise.
39433 (find_next_line): Likewise.
39434 (grub_envblk_insert): Removed.
39435 (grub_envblk_set): New function.
39436 (grub_envblk_delete): Complete rewrite.
39437 (grub_envblk_iterate): Likewise.
39439 2009-03-28 Robert Millan <rmh@aybabtu.com>
39441 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
39442 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
39443 variables. Use 16-bit loader.
39444 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
39446 * kern/i386/loader.S (grub_linux_boot): Rename to ...
39447 (grub_linux16_boot): ... this. Update all users.
39448 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
39449 (grub_linux_boot): ... this. Update all users.
39451 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
39452 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
39453 commands to `linux16' and `initrd16'.
39454 (GRUB_MOD_FINI(linux)): Rename to ...
39455 (GRUB_MOD_FINI(linux16)): ... this.
39457 2009-03-24 Pavel Roskin <proski@gnu.org>
39459 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
39460 not just for compilation.
39462 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
39464 Move multiboot helper out of kernel
39466 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
39467 `loader/i386/multiboot_helper.S'.
39468 * conf/i386-coreboot.rmk: Likewise
39469 * conf/i386-ieee1275.rmk: Likewise
39471 * kern/i386/loader.S: Move multiboot helpers from here...
39472 * loader/i386/multiboot_helper.S: ...moved here
39473 * include/grub/i386/loader.h: Move declarations of multiboot
39474 helpers from here...
39475 * include/grub/i386/multiboot.h: ...moved here
39476 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
39478 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39480 * kern/env.c (grub_env_context_open): Added an argument to specify
39481 whether a new context inherits exported variables from current
39482 one. This is useful when making a sandbox to interpret a config
39484 All callers updated.
39486 * include/grub/env.h (grub_env_context_open): Updated the prototype.
39488 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39490 * kern/env.c (grub_env_context_close): Fix memory leaks.
39492 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39494 * normal/main.c (grub_normal_execute): Added an argument
39495 BATCH to specify if an interactive interface should be provided
39496 after reading a config file.
39497 All callers updated.
39498 (read_command_list): Prevent being executed twice.
39499 (read_fs_list): Likewise.
39501 * include/grub/normal.h (grub_normal_execute): Updated the
39504 2009-03-22 Pavel Roskin <proski@gno.org>
39506 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
39508 * kern/i386/pc/startup.S: Likewise.
39509 * kern/i386/efi/startup.S: Likewise.
39510 * kern/i386/ieee1275/startup.S: Likewise.
39511 * kern/i386/coreboot/startup.S: Likewise.
39512 * kern/x86_64/efi/startup.S: Likewise.
39514 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
39515 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
39516 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
39518 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
39520 Bugfixes in multiboot for bugs uncovered by solaris kernel.
39522 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
39524 Use vaddr of correct segment for entry_point.
39526 2009-03-21 Bean <bean123ch@gmail.com>
39528 * commands/blocklist.c: Add include file <grub/command.h>, remove
39529 <grub/normal.h> and <grub/arg.h>.
39530 (grub_cmd_blocklist): Use the new command interface.
39531 (GRUB_MOD_INIT): Likewise.
39532 (GRUB_MOD_FINI): Likewise.
39533 * commands/boot.c: Likewise.
39534 * commands/cat.c: Likewise.
39535 * commands/cmp.c: Likewise.
39536 * commands/configfile.c: Likewise.
39537 * commands/crc.c: Likewise.
39538 * commands/echo.c: Likewise.
39539 * commands/halt.c: Likewise.
39540 * commands/handler.c: Likewise.
39541 * commands/hdparm.c: Likewise.
39542 * commands/help.c: Likewise.
39543 * commands/hexdump.c: Likewise.
39544 * commands/loadenv.c: Likewise.
39545 * commands/ls.c: Likewise.
39546 * commands/lsmmap.c: Likewise.
39547 * commands/lspci.c: Likewise.
39548 * commands/loadenv.c: Likewise.
39549 * commands/read.c: Likewise.
39550 * commands/reboot.c: Likewise.
39551 * commands/search.c: Likewise.
39552 * commands/sleep.c: Likewise.
39553 * commands/test.c: Likewise.
39554 * commands/usbtest.c: Likewise.
39555 * commands/videotest.c: Likewise.
39556 * commands/i386/cpuid.c: Likewise.
39557 * commands/i386/pc/halt.c: Likewise.
39558 * commands/i386/pc/play.c: Likewise.
39559 * commands/i386/pc/pxecmd.c: Likewise.
39560 * commands/i386/pc/vbeinfo.c: Likewise.
39561 * commands/i386/pc/vbetest.c: Likewise.
39562 * commands/ieee1275/suspend.c: Likewise.
39563 * disk/loopback.c: Likewise.
39564 * font/font_cmd.c: Likewise.
39565 * hello/hello.c: Likewise.
39566 * loader/efi/appleloader.c: Likewise.
39567 * loader/efi/chainloader.c: Likewise.
39568 * loader/i386/bsd.c: Likewise.
39569 * loader/i386/efi/linux.c: Likewise.
39570 * loader/i386/ieee1275/linux.c: Likewise.
39571 * loader/i386/linux.c: Likewise.
39572 * loader/i386/pc/chainloader.c: Likewise.
39573 * loader/i386/pc/linux.c: Likewise.
39574 * loader/powerpc/ieee1275/linux.c: Likewise.
39575 * loader/multiboot_loader.c: Likewise.
39576 * term/gfxterm.c: Likewise.
39577 * term/i386/pc/serial.c: Likewise.
39578 * term/terminfo.c: Likewise.
39580 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
39581 * term/i386/pc/vga.c: Likewise.
39582 * video/readers/jpeg.c: Likewise.
39583 * video/readers/png.c: Likewise.
39584 * video/readers/tga.c: Likewise.
39586 * util/grub-fstest (cmd_loopback): Removed.
39587 (cmd_blocklist): Likewise.
39588 (cmd_ls): Likewise.
39589 (grub_register_command): Likewise.
39590 (grub_unregister_command): Likewise.
39591 (execute_command): Use grub_command_find to locate command and execute
39594 * include/grub/efi/chainloader.h: Removed.
39595 * loader/efi/chainloader_normal.c: Likewise.
39596 * loader/i386/bsd_normal.c: Likewise.
39597 * loader/i386/pc/chainloader_normal.c: Likewise.
39598 * loader/i386/pc/multiboot_normal.c: Likewise.
39599 * loader/linux_normal.c: Likewise.
39600 * loader/multiboot_loader_normal.c: Likewise.
39601 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39603 * gencmdlist.sh: Scan new registration command grub_register_extcmd
39604 and grub_register_command_p1.
39606 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
39607 kern/command.c, lib/arg.c and commands/extcmd.c.
39608 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
39609 (minicmd_mod_SOURCES): New variable.
39610 (minicmd_mod_CFLAGS): Likewise.
39611 (minicmd_mod_LDFLAGS): Likewise.
39612 (extcmd_mod_SOURCES): Likewise.
39613 (extcmd_mod_CFLAGS): Likewise.
39614 (extcmd_mod_LDFLAGS): Likewise.
39615 (boot_mod_SOURCES): Removed.
39616 (boot_mod_CFLAGS): Likewise.
39617 (boot_mod_LDFLAGS): Likewise.
39619 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
39621 (kernel_img_HEADERS): Add command.h.
39622 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
39623 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
39625 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
39626 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
39627 remove the corresponding normal mode command.
39628 (normal_mod_SOURCES): Remove normal/arg.c.
39629 * conf/i386-coreboot.rmk: Likewise.
39630 * conf/i386-efi.rmk: Likewise.
39631 * conf/i386-ieee1275.rmk: Likewise.
39632 * conf/powerpc-ieee1275.rmk: Likewise.
39633 * conf/x86_64-efi.rmk: Likewise.
39635 * include/grub/arg.h: Move from here ...
39636 * include/grub/lib/arg.h: ... to here.
39638 * normal/arg.c: Move from here ...
39639 * lib/arg.c: ... to here.
39641 * commands/extcmd.c: New file.
39642 * commands/minicmd.c: Likewise.
39643 * include/grub/command.h: Likewise.
39644 * include/grub/extcmd.h: Likewise.
39645 * kern/command.c: Likewise.
39646 * kern/corecmd.c: Likewise.
39648 * kern/list.c (grub_list_iterate): Return int instead of void.
39649 (grub_list_insert): New function.
39650 (grub_prio_list_insert): Likewise.
39652 * kern/rescue.c (grub_rescue_command): Removed.
39653 (grub_rescue_command_list): Likewise.
39654 (grub_rescue_register_command): Likewise.
39655 (grub_rescue_unregister_command): Likewise.
39656 (grub_rescue_cmd_boot): Move to minicmd.c
39657 (grub_rescue_cmd_help): Likewise.
39658 (grub_rescue_cmd_info): Likewise.
39659 (grub_rescue_cmd_boot): Likewise.
39660 (grub_rescue_cmd_testload): Likewise.
39661 (grub_rescue_cmd_dump): Likewise.
39662 (grub_rescue_cmd_rmmod): Likewise.
39663 (grub_rescue_cmd_lsmod): Likewise.
39664 (grub_rescue_cmd_exit): Likewise.
39665 (grub_rescue_print_devices): Moved to corecmd.c.
39666 (grub_rescue_print_files): Likewise.
39667 (grub_rescue_cmd_ls): Likewise.
39668 (grub_rescue_cmd_insmod): Likewise.
39669 (grub_rescue_cmd_set): Likewise.
39670 (grub_rescue_cmd_unset): Likewise.
39671 (attempt_normal_mode): Use grub_command_find to get normal module.
39672 (grub_enter_rescue_mode): Use grub_register_core_commands to register
39673 commands, remove grub_rescue_register_command calls.
39675 * normal/command.c (grub_register_command): Removed.
39676 (grub_unregister_command): Likewise.
39677 (grub_command_find): Likewise.
39678 (grub_iterate_commands): Likewise.
39679 (rescue_command): Likewise.
39680 (export_command): Moved to corecmd.c.
39681 (set_command): Removed.
39682 (unset_command): Likewise.
39683 (insmod_command): Likewise.
39684 (rmmod_command): Likewise.
39685 (lsmod_command): Likewise.
39686 (grub_command_init): Likewise.
39688 * normal/completion.c (iterate_command): Use cmd->prio to check for
39690 (complete_arguments): Use grub_extcmd_t structure to find options.
39691 (grub_normal_do_completion): Change function grub_iterate_commands to
39692 grub_command_iterate.
39694 * normal/execute.c (grub_script_execute_cmd): No need to parse
39697 * normal/main.c (grub_dyncmd_dispatcher): New function.
39698 (read_command_list): Register unload commands as dyncmd.
39699 (grub_cmd_normal): Use new command interface, register rescue,
39700 unregister normal at entry, register normal, unregister rescue at exit.
39702 * include/grub/list.h (grub_list_test_t): New type.
39703 (grub_list_iterate): Return int instead of void.
39704 (grub_list_insert): New function.
39705 (GRUB_AS_NAMED_LIST_P): New macro.
39706 (GRUB_AS_PRIO_LIST): Likewise.
39707 (GRUB_AS_PRIO_LIST_P): Likewise.
39708 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
39709 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
39710 (grub_prio_list): New structure.
39711 (grub_prio_list_insert): New function.
39712 (grub_prio_list_remove): New inline function.
39714 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
39715 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
39716 (GRUB_COMMAND_FLAG_MENU): Likewise.
39717 (GRUB_COMMAND_FLAG_BOTH): Likewise.
39718 (GRUB_COMMAND_FLAG_TITLE): Likewise.
39719 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
39720 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
39721 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
39722 (grub_command): Likewise.
39723 (grub_register_command): Likewise.
39724 (grub_command_find): Likewise.
39725 (grub_iterate_commands): Likewise.
39726 (grub_command_init): Likewise.
39727 (grub_arg_parse): Likewise.
39728 (grub_arg_show_help): Likewise.
39730 * include/grub/rescue.h (grub_rescue_register_command): Removed.
39731 (grub_rescue_unregister_command): Likewise.
39733 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
39734 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
39735 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
39737 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
39738 grub_rescue_cmd_initrd.
39739 * include/grub/i386/loader.h: Likewise.
39740 * include/grub/x86_64/loader.h: Likewise.
39742 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
39744 2009-03-21 Bean <bean123ch@gmail.com>
39746 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
39747 instead of stat in mingw environment.
39749 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
39751 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
39753 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
39756 2009-03-21 Bean <bean123ch@gmail.com>
39758 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
39759 out of range error.
39761 2009-03-18 Michel Dänzer <michel@daenzer.net>
39763 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
39764 checking inode flags for EXT4_EXTENTS_FLAG.
39766 2009-03-18 Robert Millan <rmh@aybabtu.com>
39768 * loader/i386/linux.c: Include `<grub/video.h>' and
39769 `<grub/i386/pc/vbe.h>'..
39770 (grub_linux_setup_video): New function. Loosely based on the EFI one.
39771 (grub_linux32_boot): Attempt to configure video settings with
39772 grub_linux_setup_video().
39773 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
39774 to avoid grub_console_fini() which would step out of graphical mode
39777 2009-03-14 Robert Millan <rmh@aybabtu.com>
39779 Fix build on powerpc.
39780 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
39782 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
39784 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
39785 background image command.
39787 2009-03-12 Colin D Bennett <colin@gibibit.com>
39789 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
39790 (grub_gfxterm_putchar): Extract pairs of identical calls to
39791 draw_cursor out of conditional blocks.
39793 2009-03-11 Pavel Roskin <proski@gnu.org>
39795 * fs/hfs.c (grub_hfs_strncasecmp): New function.
39796 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
39798 2009-03-11 Robert Millan <rmh@aybabtu.com>
39800 * loader/i386/multiboot_elfxx.c
39801 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
39803 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
39805 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
39808 2009-03-11 Robert Millan <rmh@aybabtu.com>
39810 * loader/i386/multiboot.c (code_size): New variable.
39811 (grub_multiboot): Define offsets by adding to `code_size' rather
39812 than subtracting from `grub_multiboot_payload_size'. Provide
39813 4-byte alignment to MBI and others by increasing
39814 `boot_loader_name_length' appropriately.
39816 * loader/i386/multiboot_elfxx.c
39817 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
39819 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
39821 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
39824 2009-03-08 Robert Millan <rmh@aybabtu.com>
39826 Make loader/i386/linux.c usable on i386-pc again.
39828 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
39830 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
39833 2009-03-07 Bean <bean123ch@gmail.com>
39835 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
39838 2009-03-06 Robert Millan <rmh@aybabtu.com>
39840 Fix display issue on terminals with screen size other than 80x25
39841 (e.g. gfxterm with resolution higher than 640x480).
39843 * normal/main.c (grub_normal_init_page): Display title text in a
39844 position relative to the center of the terminal instead of relying
39845 on a hardcoded offset.
39847 2009-03-04 Robert Millan <rmh@aybabtu.com>
39849 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
39852 * Makefile.in (host_kernel): New variable.
39853 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
39854 scripts instead of just the windows one.
39855 * configure.ac: Initialize and AC_SUBST `host_kernel'.
39857 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
39859 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
39861 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39862 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39863 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39865 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39866 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39868 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
39870 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
39871 or if there's no space for the disk label and print the partition number on a
39874 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
39876 * util/misc.c: Include <time.h>.
39877 (grub_millisleep): New function.
39879 2009-03-04 Bean <bean123ch@gmail.com>
39881 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
39882 another option -mno-red-zone.
39884 * commands/handler.c: Change module description.
39886 * kern/handler.c: Add missing space at the end of description line.
39888 * kern/list.c: Likewise.
39890 2009-03-03 Robert Millan <rmh@aybabtu.com>
39892 Move more components to the relocation area, and fix mbi pointer
39893 handling to use the destination rather than the origin (thanks to
39894 Vladimir Serbinenko for spotting).
39896 * loader/i386/multiboot.c (mbi_dest): New variable.
39897 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
39898 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
39901 2009-03-01 Bean <bean123ch@gmail.com>
39903 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
39904 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
39905 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
39906 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
39908 * loader/i386/efi/linux.c (acpi_guid): New variable.
39909 (acpi_guid): Likewise.
39910 (EBDA_SEG_ADDR): New constant.
39911 (LOW_MEM_ADDR): Likewise.
39912 (FAKE_EBDA_SEG): Likewise.
39913 (fake_bios_data): New function.
39914 (grub_linux_boot): Call fake_bios_data.
39916 2009-03-01 Bean <bean123ch@gmail.com>
39918 * commands/terminal.c: Removed.
39920 * commands/handler.c: New file.
39922 * include/grub/list.h: Likewise.
39924 * include/grub/handler.h: Likewise.
39926 * kern/list.c: Likewise.
39928 * kern/handler.c: Likewise.
39930 * kern/term.h: Include header file <grub/handler.h>.
39931 (grub_term_input): Move next field to the beginning.
39932 (grub_term_output): Likewise.
39933 (grub_term_input_class): New variable.
39934 (grub_term_output_class): Likewise.
39935 (grub_term_register_input): Changed to inline function.
39936 (grub_term_register_output): Likewise.
39937 (grub_term_unregister_input): Likewise.
39938 (grub_term_unregister_output): Likewise.
39939 (grub_term_set_current_input): Likewise.
39940 (grub_term_set_current_output): Likewise.
39941 (grub_term_get_current_input): Likewise.
39942 (grub_term_get_current_output): Likewise.
39943 (grub_term_iterate_input): Removed.
39944 (grub_term_iterate_output): Likewise.
39946 * kern/term.c (grub_term_list_input): Removed.
39947 (grub_term_list_output): Likewise.
39948 (grub_term_input_class): New variable.
39949 (grub_term_output_class): Likewise.
39950 (grub_cur_term_input): Change variable as macro.
39951 (grub_cur_term_output): Likewise.
39952 (grub_term_register_input): Removed.
39953 (grub_term_register_output): Likewise.
39954 (grub_term_unregister_input): Likewise.
39955 (grub_term_unregister_output): Likewise.
39956 (grub_term_set_current_input): Likewise.
39957 (grub_term_set_current_output): Likewise.
39958 (grub_term_iterate_input): Likewise.
39959 (grub_term_iterate_output): Likewise.
39960 (grub_term_get_current_input): Likewise.
39961 (grub_term_get_current_output): Likewise.
39963 * util/grub-editenv.c: Include header file <grub/handler.h>.
39964 (grub_term_get_current_input): Removed.
39965 (grub_term_get_current_output): Likewise.
39966 (grub_term_input_class): New variable.
39967 (grub_term_output_class): Likewise.
39969 * util/grub-fstest.c (grub_term_get_current_input): Removed.
39970 (grub_term_get_current_output): Likewise.
39971 (grub_term_input_class): New variable.
39972 (grub_term_output_class): Likewise.
39974 * util/grub-probe.c (grub_term_get_current_input): Removed.
39975 (grub_term_get_current_output): Likewise.
39976 (grub_term_input_class): New variable.
39977 (grub_term_output_class): Likewise.
39979 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
39980 (grub_term_get_current_output): Likewise.
39981 (grub_term_input_class): New variable.
39982 (grub_term_output_class): Likewise.
39984 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
39985 (terminal_mod_SOURCES): Likewise.
39986 (terminal_mod_CFLAGS): Likewise.
39987 (terminal_mod_LDFLAGS): Likewise.
39989 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
39991 (kernel_img_SOURCES): Add list.c and handler.c.
39992 (kernel_img_HEADERS): Add list.h and handler.h.
39994 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
39996 (kernel_mod_SOURCES): Add list.c and handler.c.
39997 (kernel_mod_HEADERS): Add list.h and handler.h.
39999 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40001 (kernel_elf_SOURCES): Add list.c and handler.c.
40002 (kernel_elf_HEADERS): Add list.h and handler.h.
40004 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40006 (kernel_elf_SOURCES): Add list.c and handler.c.
40007 (kernel_elf_HEADERS): Add list.h and handler.h.
40009 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40011 (kernel_mod_SOURCES): Add list.c and handler.c.
40012 (kernel_mod_HEADERS): Add list.h and handler.h.
40014 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40016 (kernel_elf_SOURCES): Add list.c and handler.c.
40017 (kernel_elf_HEADERS): Add list.h and handler.h.
40019 2009-02-27 Robert Millan <rmh@aybabtu.com>
40021 Factorize elf32 / elf64 code in Multiboot loader. This will
40022 prevent it from getting out of sync again.
40024 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40025 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40026 grub_multiboot_load_elf64): Move from here ...
40027 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40028 grub_multiboot_load_elf): ... to here (new file).
40030 2009-02-27 Robert Millan <rmh@aybabtu.com>
40032 * util/grub.d/10_linux.in: Rename "single-user mode" to
40035 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40037 Don't leak in SCSI code.
40038 * disk/scsi.c (grub_scsi_close): free `scsi'.
40040 2009-02-27 Robert Millan <rmh@aybabtu.com>
40042 * loader/i386/pc/multiboot.c: Move from here ...
40043 * loader/i386/multiboot.c: ... to here. Update all users.
40045 2009-02-27 Robert Millan <rmh@aybabtu.com>
40047 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40048 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40050 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40052 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40055 2009-02-27 Robert Millan <rmh@aybabtu.com>
40057 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40058 `0x' qualifier as 0 when base is specified as parameter).
40060 2009-02-24 Bean <bean123ch@gmail.com>
40062 * configure.ac: Check for -mcmodel=large in x86_64 target.
40064 * include/grub/efi/api.h (efi_call_10): New macro.
40065 (efi_wrap_10): New function.
40067 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40068 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40069 (GRUB_PE32_REL_BASED_LOW): Likewise.
40070 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40071 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40072 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40073 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40074 (GRUB_PE32_REL_BASED_REL): Likewise.
40075 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40076 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40077 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40079 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40082 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40083 (efi_wrap_10): New function.
40085 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40087 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40088 MB/MBP model (NV chipset).
40089 (devdata_devs): Add devpath_5 to the list.
40091 * load/i386/efi/linux.c (video_base): Remove variable.
40092 (RGB_MASK): New macro.
40093 (RGB_MAGIC): Likewise.
40094 (LINE_MIN): Likewise.
40095 (LINE_MAX): Likewise.
40096 (FBTEST_STEP): Likewise.
40097 (FBTEST_COUNT): Likewise.
40098 (fb_list): New variable.
40099 (grub_find_video_card): Remove function.
40100 (find_framebuf): New function.
40101 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40104 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40105 problem for x86_64.
40107 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40109 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40111 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40114 2009-02-22 Robert Millan <rmh@aybabtu.com>
40116 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40117 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40118 in our relocation, instead of using it directly from heap. Also
40119 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40121 2009-02-21 Robert Millan <rmh@aybabtu.com>
40123 Implement USB keyboard support (based on patch by Marco Gerards)
40125 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40126 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40127 (usb_keyboard_mod_LDFLAGS): New variables.
40129 * term/usb_keyboard.c: New file.
40131 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40133 Corrected wrong declaration
40135 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40137 2009-02-14 Christian Franke <franke@computer.org>
40139 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40140 (grub_lspci_iter): Print class code and programming interface byte.
40142 2009-02-14 Christian Franke <franke@computer.org>
40144 * gendistlist.sh: Ignore `.svn' directories.
40146 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40148 * fs/fat.c: Add 2009 to Copyright line.
40150 2009-02-14 Christian Franke <franke@computer.org>
40152 * commands/hdparm.c: New file. Provides `hdparm' command
40153 which sends ATA commands via grub_disk_ata_pass_through ().
40155 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40157 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40158 and <grub/cpu/io.h> to include/grub/ata.h.
40159 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40160 (GRUB_CDROM_SECTOR_SIZE): Remove.
40161 (GRUB_ATA_*): Move to include/grub/ata.h.
40162 (GRUB_ATAPI_*): Likewise.
40163 (enum grub_ata_commands): Likewise.
40164 (enum grub_ata_timeout_milliseconds): Likewise.
40165 (struct grub_ata_device): Likewise.
40166 (grub_ata_regset): Likewise.
40167 (grub_ata_regget): Likewise.
40168 (grub_ata_regset2): Likewise.
40169 (grub_ata_regget2): Likewise.
40170 (grub_ata_check_ready): Likewise.
40171 (grub_ata_wait_not_busy): Remove static, exported in
40172 include/grub/ata.h.
40173 (grub_ata_wait_drq): Likewise.
40174 (grub_ata_pio_read): Likewise.
40176 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40177 function for hdparm.mod.
40179 * include/grub/ata.h: New file, contains declarations from
40181 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40183 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40184 (grub_disk_ata_pass_through): New exported variable.
40186 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40188 2009-02-13 Colin D Bennett <colin@gibibit.com>
40190 Support multiple fallback entries, and provide an API to support
40191 executing default+fallback menu entries. Renamed the `terminal' menu
40194 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40195 variable declaration.
40196 (grub_menu_execute_callback): New structure declaration.
40197 (grub_menu_execute_callback_t): New typedef.
40198 (grub_menu_execute_with_fallback): New function declaration.
40199 (grub_menu_get_entry): Likewise.
40200 (grub_menu_get_timeout): Likewise.
40201 (grub_menu_set_timeout): Likewise.
40203 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40205 * normal/menu.c (grub_wait_after_message): Moved to
40206 `normal/menu_text.c'.
40207 (draw_border): Likewise.
40208 (print_message): Likewise.
40209 (print_entry): Likewise.
40210 (print_entries): Likewise.
40211 (grub_menu_init_page): Likewise.
40212 (get_entry_number): Likewise.
40213 (print_timeout): Likewise.
40214 (run_menu): Likewise.
40215 (grub_menu_execute_entry): Likewise.
40216 (show_text_menu): Likewise.
40217 (get_and_remove_first_entry_number): New function.
40218 (grub_menu_execute_with_fallback): Likewise.
40219 (get_entry): Renamed to ...
40220 (grub_menu_get_entry): .. this and made it global.
40221 (get_timeout): Renamed to ...
40222 (grub_menu_get_timeout): ... this and made it global.
40223 (set_timeout): Renamed to ...
40224 (grub_menu_set_timeout): ... this and made it global.
40225 (grub_normal_terminal_menu_viewer): Renamed to ...
40226 (grub_normal_text_menu_viewer): ... this.
40228 * normal/menu_text.c: New file. Extracted text-menu-specific code
40229 from normal/menu.c.
40231 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40232 (normal_mod_SOURCES): Likewise.
40234 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40235 (normal_mod_SOURCES): Likewise.
40237 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40238 (normal_mod_SOURCES): Likewise.
40240 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40241 (normal_mod_SOURCES): Likewise.
40243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40244 (normal_mod_SOURCES): Likewise.
40246 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40247 (normal_mod_SOURCES): Likewise.
40249 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40250 (normal_mod_SOURCES): Likewise.
40252 2009-02-11 Robert Millan <rmh@aybabtu.com>
40254 * util/grub.d/00_header.in: Update old reference to `font' command.
40256 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40258 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40260 Based on patch from Javier Martín.
40262 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40264 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40265 to avoid false positives with FAT.
40266 (grub_fstest_SOURCES): Likewise.
40267 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40268 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40269 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40270 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40271 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40272 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40274 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40276 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40277 bpb.version_specific.fat12_or_fat16.fstype and
40278 bpb.version_specific.fat32.fstype.
40280 2009-02-08 Robert Millan <rmh@aybabtu.com>
40282 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40284 2009-02-08 Robert Millan <rmh@aybabtu.com>
40286 * Makefile.in (host_os, host_cpu): New variables.
40287 (target_os): Remove. Update all users.
40289 2009-02-08 Marco Gerards <marco@gnu.org>
40291 * Makefile.in (enable_grub_emu_usb): New variable.
40292 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40293 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40294 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40295 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40296 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40297 `usbtest.mod' and `usbms.mod'.
40298 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40299 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40300 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40301 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40302 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40305 * disk/usbms.c: New file.
40307 * include/grub/usb.h: Likewise.
40309 * include/grub/usbtrans.h: Likewise.
40311 * include/grub/usbdesc.h: Likewise.
40313 * bus/usb/usbtrans.c: Likewise.
40315 * bus/usb/ohci.c: Likewise.
40317 * bus/usb/uhci.c: Likewise.
40319 * bus/usb/usbhub.c: Likewise.
40321 * bus/usb/usb.c: Likewise.
40323 * commands/usbtest.c: Likewise.
40325 * util/usb.c: Likewise.
40327 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40329 * configure.ac: Test for libusb presence.
40331 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40333 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40335 * kern/mm.c: Add more comments.
40337 2009-02-08 Robert Millan <rmh@aybabtu.com>
40339 Patch from Javier Martín.
40340 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40341 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40343 2009-02-08 Robert Millan <rmh@aybabtu.com>
40345 * fs/cpio.c: Split tar functionality to ...
40346 * fs/tar.c: ... here (new file). Update all users.
40348 2009-02-07 Robert Millan <rmh@aybabtu.com>
40350 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40351 backward-incompatible features.
40353 Based on patch from Javier Martín, with some adjustments.
40355 2009-02-07 Michael Scherer <misc@mandriva.org>
40357 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40359 2009-02-07 Robert Millan <rmh@aybabtu.com>
40361 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40362 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40363 after the RAID stuff.
40365 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40367 Fixes problem when running vbetest command as reported by
40368 Vladimir Serbinenko <phcoder@gmail.com>.
40370 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40372 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
40374 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40375 /dev/md/NpN style mdraid devices.
40377 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40379 * util/unifont2pff.rb: Remove.
40381 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40383 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
40386 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40388 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
40389 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40390 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40391 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40392 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40393 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40394 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40396 2009-02-02 Christian Franke <franke@computer.org>
40398 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
40400 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
40402 * INSTALL: Note that we now require at least autoconf 2.59 and
40403 that LZO is optional.
40405 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40407 Base on patch on bug #24154 created by Tomas Tintera
40408 <trosos@seznam.cz>.
40410 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
40412 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40414 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
40415 <bero@arklinux.org>.
40417 * normal/parser.y (script_init): Add missing semicolon.
40419 2009-01-31 Colin D Bennett <colin@gibibit.com>
40421 * normal/main.c: Add include to grub/menu_viewer.h.
40422 (free_menu_entry_classes): Added.
40423 (grub_normal_menu_addentry): Added class property handling.
40424 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
40425 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
40427 * normal/menu_viewer.c: New file.
40429 * normal/menu.c (run_menu_entry): Renamed to ...
40430 (grub_menu_execute_entry): ... this and made it as global.
40431 (grub_menu_run): Renamed to ...
40432 (show_text_menu): ... this and made it local.
40433 (show_text_menu): Adapt to new function names.
40434 (grub_normal_terminal_menu_viewer): New global variable.
40436 * include/grub/menu.h: New file.
40438 * include/grub/menu_viewer.h: New file.
40440 * include/grub/normal.h: Added include to grub/menu.h.
40441 (grub_menu_entry): Moved to include/grub/menu.h.
40442 (grub_menu_entry_t): Likewise.
40443 (grub_menu): Likewise.
40444 (grub_menu_t): Likewise.
40445 (grub_normal_terminal_menu_viewer): Added.
40446 (grub_menu_execute_entry): Likewise.
40447 (grub_menu_run): Removed.
40449 * DISTLIST: Added include/grub/menu.h.
40450 Added include/grub/menu_viewer.h.
40451 Added normal/menu_viewer.c.
40453 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
40455 * normal/execute.c (grub_script_execute_menuentry): Changed to use
40456 arglist for menutitle arguments.
40458 * normal/main.c (grub_normal_menu_addentry): Likewise.
40460 * normal/parser.y (menuentry): Likewise.
40462 * normal/script.c (grub_script_create_cmdmenu): Likewise.
40464 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
40465 (grub_script_create_cmdmenu): Likewise.
40467 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
40469 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
40472 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
40474 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
40476 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
40478 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40480 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40482 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40484 2009-01-30 Christian Franke <franke@computer.org>
40486 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
40487 in option help text.
40489 2009-01-27 Pavel Roskin <proski@gnu.org>
40491 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
40493 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
40495 * commands/lsmmap.c: Add include to grub/machine/memory.h.
40497 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
40499 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
40500 unregister function.
40502 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
40504 * disk/scsi.c (grub_scsi_read): Fix sign problem.
40506 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
40508 * util/grub-mkfont.c (usage): Fix typo.
40510 * util/elf/grub-mkimage.c (load_modules): Fix warning.
40512 2009-01-26 Daniel Mierswa <impulze@impulze.org>
40514 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
40516 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
40518 * kern/misc.c (grub_strcasecmp): New function.
40519 (grub_strcasecmp): Use grub_size_t instead of int for length.
40521 * include/grub/misc.h: Update function prototypes.
40523 2009-01-26 Robert Millan <rmh@aybabtu.com>
40525 * configure.ac: Fix cross-compilation check.
40527 2009-01-22 Christian Franke <franke@computer.org>
40529 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
40530 (precision) digit string. Allow `.format2' without `format1' (width).
40531 Limit input chars for `%s' output to `format2' if specified. This is
40532 compatible with standard printf ().
40534 2009-01-22 Christian Franke <franke@computer.org>
40536 * disk/ata.c (grub_ata_wait_status): Replace by ...
40537 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
40538 other status bits may be invalid while BSY is asserted.
40539 (grub_ata_check_ready): New function.
40540 (grub_ata_cmd): Removed.
40541 (grub_ata_wait_drq): New function.
40542 (grub_ata_strncpy): Remove inline.
40543 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
40544 and error check now done by grub_ata_wait_drq ().
40545 (grub_ata_pio_write): Likewise.
40546 (grub_atapi_identify): Set DEV before check for !BSY. Use
40547 grub_ata_wait_drq () to wait for data.
40548 (grub_ata_device_initialize): Add status register check to
40549 detect missing SATA slave devices. Add debug messages.
40550 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
40551 (grub_atapi_packet): Set DEV before check for !BSY. Replace
40552 transfer loop by grub_ata_pio_write ().
40553 (grub_ata_identify): Set DEV before check for !BSY. Use
40554 grub_ata_wait_drq () to wait for data.
40555 (grub_ata_setaddress): Set DEV before check for !BSY.
40556 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
40557 read/write in one loop. Fix invalid command on write. Fix incomplete
40558 command on (size % batch) == 0. Add missing error check after write of
40559 last block. Add debug messages.
40560 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
40562 2009-01-19 Christian Franke <franke@computer.org>
40564 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
40565 (GRUB_ATAPI_IREASON_*): Likewise.
40566 (grub_ata_pio_write): Fix timeout error return.
40567 (grub_atapi_identify): Add grub_ata_wait () after cmd.
40568 (grub_atapi_wait_drq): New function.
40569 (grub_atapi_packet): New parameter `size'.
40570 Use grub_atapi_wait_drq () and direct write instead of
40571 grub_ata_pio_write ().
40572 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
40573 reads the number of bytes requested by the device for each DRQ
40575 (grub_atapi_write): Remove old implementation, return not
40576 implemented instead.
40578 2009-01-19 Christian Franke <franke@computer.org>
40580 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
40581 of 512 to calculate data size.
40582 (grub_scsi_read12): Likewise.
40583 (grub_scsi_write10): Likewise.
40584 (grub_scsi_write12): Likewise.
40585 (grub_scsi_read): Adjust size according to blocksize.
40586 Add checks for invalid blocksize and unaligned transfer.
40588 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
40590 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
40592 * term/gfxterm.c (write_char): Fix background rendering for wide
40595 2009-01-19 Robert Millan <rmh@aybabtu.com>
40597 * config.guess: Update to latest version from config git.
40598 * config.sub: Likewise.
40600 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
40602 * Makefile.in: Change font compilation to use new grub-mkfont instead
40605 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
40606 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
40607 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40608 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40609 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
40610 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
40611 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
40612 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
40613 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
40615 2009-01-16 Christian Franke <franke@computer.org>
40617 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
40618 (enum grub_ata_timeout_milliseconds): New enum.
40619 (grub_ata_wait_status): Add parameter milliseconds.
40620 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
40621 recovery from timed-out commands.
40622 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
40623 return grub_errno instead of REG_ERROR.
40624 (grub_ata_pio_write): Add parameter milliseconds.
40625 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
40626 Pass milliseconds to grub_ata_wait_status () and
40627 grub_ata_pio_read ().
40628 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
40629 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
40630 grub_ata_wait_status (). Fix IDENTIFY timeout check.
40631 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
40632 It is not suitable for device detection, because DEV bit is ignored,
40633 the command may run too long, and not all devices set the signature
40635 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
40636 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
40637 Fix device selection, DEV bit must be set first to address the registers
40638 of the correct device.
40639 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
40640 grub_ata_pio_read/write ().
40641 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
40642 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
40644 2009-01-13 Carles Pina i Estany <carles@pina.cat>
40646 * util/grub-editenv.c (main): Use fseeko(), not fseek().
40648 2009-01-13 Bean <bean123ch@gmail.com>
40650 * util/grub-mkfont.c (write_font): forget to remove some debug code.
40652 2009-01-13 Bean <bean123ch@gmail.com>
40654 * Makefile.in: (enable_grub_mkfont): New variable.
40655 (freetype_cflags): Likewise.
40656 (freetype_libs): Likewise.
40658 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
40659 (grub_mkfont_SOURCES): New variable.
40660 (grub_mkfont_CFLAGS): Likewise.
40661 (grub_mkfont_LDFLAGS): Likewise.
40663 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
40664 library if `--enable-grub-mkfont' is requested.
40665 (enable_grub_mkfont): New variable.
40666 (freetype_cflags): Likewise.
40667 (freetype_libs): Likewise.
40669 * util/grub-mkfont.c: New file.
40671 2009-01-12 Christian Franke <franke@computer.org>
40673 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
40674 mode check. Fix setting of compat_use[].
40676 2009-01-10 Robert Millan <rmh@aybabtu.com>
40678 Update a few copyright years which we forgot to do in 2008 (only for
40679 files whose changes made in 2008 were copyright-significant)
40681 * Makefile.in: Add 2008 to Copyright line.
40682 * disk/ieee1275/ofdisk.c: Likewise.
40683 * disk/efi/efidisk.c: Likewise.
40684 * kern/dl.c: Likewise.
40685 * kern/sparc64/ieee1275/init.c: Likewise.
40686 * kern/mm.c: Likewise.
40687 * kern/efi/mm.c: Likewise.
40688 * boot/i386/pc/boot.S: Likewise.
40689 * genfslist.sh: Likewise.
40690 * fs/iso9660.c: Likewise.
40691 * fs/hfs.c: Likewise.
40692 * fs/jfs.c: Likewise.
40693 * fs/minix.c: Likewise.
40694 * fs/ufs.c: Likewise.
40695 * gensymlist.sh.in: Likewise.
40696 * genkernsyms.sh.in: Likewise.
40697 * include/grub/misc.h: Likewise.
40698 * include/grub/types.h: Likewise.
40699 * include/grub/symbol.h: Likewise.
40700 * include/grub/elf.h: Likewise.
40701 * include/grub/kernel.h: Likewise.
40702 * include/grub/disk.h: Likewise.
40703 * include/grub/dl.h: Likewise.
40704 * include/grub/i386/linux.h: Likewise.
40705 * include/grub/i386/pc/biosdisk.h: Likewise.
40706 * include/grub/efi/api.h: Likewise.
40707 * include/grub/efi/pe32.h: Likewise.
40708 * include/grub/util/misc.h: Likewise.
40709 * normal/execute.c: Likewise.
40710 * normal/arg.c: Likewise.
40711 * normal/completion.c: Likewise.
40712 * normal/lexer.c: Likewise.
40713 * normal/parser.y: Likewise.
40714 * normal/misc.c: Likewise.
40715 * commands/i386/pc/vbeinfo.c: Likewise.
40716 * commands/hexdump.c: Likewise.
40717 * commands/terminal.c: Likewise.
40718 * commands/ls.c: Likewise.
40719 * commands/help.c: Likewise.
40720 * partmap/pc.c: Likewise.
40721 * loader/efi/chainloader.c: Likewise.
40722 * loader/multiboot_loader.c: Likewise.
40723 * loader/i386/pc/multiboot2.c: Likewise.
40724 * term/efi/console.c: Likewise.
40725 * term/i386/pc/serial.c: Likewise.
40726 * util/lvm.c: Likewise.
40727 * util/console.c: Likewise.
40728 * util/i386/efi/grub-mkimage.c: Likewise.
40729 * util/raid.c: Likewise.
40731 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
40733 * commands/videotest.c: Removed include to grub/machine/memory.h.
40735 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
40736 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
40737 (video_mod_SOURCES): Removed.
40738 (video_mod_CFLAGS): Likewise.
40739 (video_mod_LDFLAGS): Likewise.
40740 (gfxterm_mod_SOURCES): Likewise.
40741 (gfxterm_mod_CFLAGS): Likewise.
40742 (gfxterm_mod_LDFLAGS): Likewise.
40743 (videotest_mod_SOURCES): Likewise.
40744 (videotest_mod_CFLAGS): Likewise.
40745 (videotest_mod_LDFLAGS): Likewise.
40746 (bitmap_mod_SOURCES): Likewise.
40747 (bitmap_mod_CFLAGS): Likewise.
40748 (bitmap_mod_LDFLAGS): Likewise.
40749 (tga_mod_SOURCES): Likewise.
40750 (tga_mod_CFLAGS): Likewise.
40751 (tga_mod_LDFLAGS): Likewise.
40752 (jpeg_mod_SOURCES): Likewise.
40753 (jpeg_mod_CFLAGS): Likewise.
40754 (jpeg_mod_LDFLAGS): Likewise.
40755 (png_mod_SOURCES): Likewise.
40756 (png_mod_CFLAGS): Likewise.
40757 (png_mod_LDFLAGS): Likewise.
40759 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
40760 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
40761 (video_mod_SOURCES): Added.
40762 (video_mod_CFLAGS): Likewise.
40763 (video_mod_LDFLAGS): Likewise.
40764 (videotest_mod_SOURCES): Likewise.
40765 (videotest_mod_CFLAGS): Likewise.
40766 (videotest_mod_LDFLAGS): Likewise.
40767 (bitmap_mod_SOURCES): Likewise.
40768 (bitmap_mod_CFLAGS): Likewise.
40769 (bitmap_mod_LDFLAGS): Likewise.
40770 (tga_mod_SOURCES): Likewise.
40771 (tga_mod_CFLAGS): Likewise.
40772 (tga_mod_LDFLAGS): Likewise.
40773 (jpeg_mod_SOURCES): Likewise.
40774 (jpeg_mod_CFLAGS): Likewise.
40775 (jpeg_mod_LDFLAGS): Likewise.
40776 (png_mod_SOURCES): Likewise.
40777 (png_mod_CFLAGS): Likewise.
40778 (png_mod_LDFLAGS): Likewise.
40779 (gfxterm_mod_SOURCES): Likewise.
40780 (gfxterm_mod_CFLAGS): Likewise.
40781 (gfxterm_mod_LDFLAGS): Likewise.
40783 * term/gfxterm.c: Removed include to grub/machine/memory.h,
40784 grub/machine/console.h.
40786 2009-01-04 Jerone Young <jerone@gmail.com>
40788 Make on screen instructions clearer
40790 Based on patch created by Jidanni <jidanni@jidanni.org>
40792 * normal/menu.c: print clearer instructions on the screen
40794 2009-01-02 Colin D Bennett <colin@gibibit.com>
40798 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
40799 build system and fixed gfxterm.c to work with different sized fonts.
40801 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
40803 * configure: Re-generated.
40805 * DISTLIST: Removed font/manager.c.
40807 Added font/font_cmd.c.
40809 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
40812 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
40814 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
40816 * kern/term.c: Changed users of grub_utf8_to_ucs4.
40818 * normal/menu.c: Likewise.
40820 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
40821 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
40823 * include/grub/font.h: Replaced with new file.
40825 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
40826 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
40827 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
40828 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
40829 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
40830 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
40831 fg_red, fg_green, fg_blue, fg_alpha.
40832 (grub_video_adapter): Removed blit_glyph.
40833 (grub_video_blit_glyph): Removed.
40835 * font/manager.c: Removed file.
40837 * font/font.c: New file.
40839 * font/font_cmd.c: Likewise.
40841 * video/video.c (grub_video_blit_glyph): Removed.
40843 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
40844 (grub_video_vbe_map_rgba): Likewise.
40845 (grub_video_vbe_unmap_color_int): Likewise.
40846 (grub_video_vbe_blit_glyph): Removed.
40847 (grub_video_vbe_adapter): Removed blit_glyph.
40849 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
40850 (get_pixel): Likewise.
40851 (set_pixel): Likewise.
40853 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
40855 * term/gfxterm.c: Adapted to new font engine.
40857 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
40859 * term/i386/pc/vga.c: Likewise.
40861 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
40863 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
40865 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40867 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40869 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
40871 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
40873 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
40875 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
40877 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
40879 * util/grub.d/00_header.in: Changed to use new loadfont command.
40881 * util/grub-mkconfig_lib.in: Changed font extension.
40883 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
40885 * util/getroot.c (grub_util_get_grub_dev): Add support for
40886 /dev/md/dNNpNN style partitionable mdraid devices.
40888 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
40890 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
40891 at a time limit of the PXE TFTP API correctly.
40892 (grub_pxefs_close): Likewise.
40894 2008-11-29 Robert Millan <rmh@aybabtu.com>
40896 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
40897 grub_ata_device_initialize() calls.
40899 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
40901 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
40903 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
40905 2008-11-28 Robert Millan <rmh@aybabtu.com>
40907 Fix build on powerpc-ieee1275. Based on patch created by
40908 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
40909 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
40910 `kern/ieee1275/mmap.c'.
40911 * include/grub/powerpc/ieee1275/memory.h: New file.
40913 Provide grub-install on coreboot.
40914 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
40915 (grub_install_SOURCES): New variable.
40916 * util/i386/pc/grub-install.in: Add a few condition checks to make it
40917 usable on coreboot.
40919 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
40921 * util/grub-fstest.c (grub_term_get_current_input): Change return type
40922 to `grub_term_input_t'.
40923 (grub_term_get_current_output): Change return type to
40924 `grub_term_output_t'.
40926 2008-11-22 Robert Millan <rmh@aybabtu.com>
40928 Fix breakage on coreboot due to declaration mismatch.
40929 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
40930 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
40931 grub_vga_text_cls().
40933 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
40934 comments. Avoid copying one more byte than necessary (just in case).
40936 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
40937 to 0x200000 (avoids trouble with some OFW implementations, and matches
40938 with the one in Yaboot).
40939 Reported by Manoel Abranches
40941 2008-11-20 Robert Millan <rmh@aybabtu.com>
40943 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
40944 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
40946 * util/grub-mkconfig_lib.in (grub_warn): New function.
40947 (convert_system_path_to_grub_path): Use grub_warn() when issuing
40948 warnings, to obtain consistent formatting.
40949 * util/grub.d/00_header.in: Likewise.
40950 * util/update-grub_lib.in: Likewise.
40952 * loader/i386/linux.c (allocate_pages): Fix a warning.
40953 Move comment text to `#error' stanza.
40955 Harmonize ieee1275's grub_available_iterate() with the generic
40956 grub_machine_mmap_iterate() interface (fixes a recently-introduced
40957 build problem on i386-ieee1275):
40958 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
40959 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
40960 parameter `type'. Update all users of this function.
40961 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
40962 `kern/ieee1275/mmap.c'.
40963 * kern/ieee1275/init.c
40964 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
40966 (grub_machine_mmap_iterate): ... this.
40967 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
40968 return type to `grub_err_t'. Update all implementations of this
40969 function prototype.
40970 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
40973 Add `lsmmap' command (lists firmware-provided memory map):
40974 * commands/lsmmap.c: New file.
40975 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
40976 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
40978 * conf/powerpc-ieee1275.rmk: Likewise.
40979 * conf/i386-coreboot.rmk: Likewise.
40980 * conf/i386-ieee1275.rmk: Likewise.
40982 2008-11-19 Robert Millan <rmh@aybabtu.com>
40984 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
40985 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
40986 constraints to initrd allocation (based on code from
40987 loader/i386/pc/linux.c). Without them, initrd was allocated too high
40988 for Linux to find it.
40990 2008-11-14 Robert Millan <rmh@aybabtu.com>
40992 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
40993 order to cope with duplicate slashes.
40995 2008-11-14 Robert Millan <rmh@aybabtu.com>
40997 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
40998 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
40999 don't want to mess with lower memory, because it is used in the Linux
41002 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41003 an appropriate place in lower memory, between 0x10000 and 0x90000,
41004 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41005 is in our heap (probably as a result of it being corrupted during
41006 decompression). Add #error instance with comment to explain why this
41007 loader isn't currently usable on PC/BIOS.
41009 2008-11-14 Robert Millan <rmh@aybabtu.com>
41011 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41012 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41014 2008-11-12 Robert Millan <rmh@aybabtu.com>
41016 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41018 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41019 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41021 * include/grub/i386/pc/memory.h: ... to here.
41023 2008-11-12 Robert Millan <rmh@aybabtu.com>
41025 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41028 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41029 (grub_console_cur_color, grub_console_real_putchar)
41030 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41031 (grub_console_setcolorstate, grub_console_setcolor)
41032 (grub_console_getcolor): Move from here ...
41033 * include/grub/i386/vga_common.h: ... to here (new file).
41035 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41036 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41037 `<grub/i386/io.h>'.
41038 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41039 `<grub/i386/vga_common.h>'.
41041 2008-11-12 Robert Millan <rmh@aybabtu.com>
41043 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41044 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41045 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41047 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41048 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41050 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41051 grub_console_init() with call to grub_vga_text_init().
41052 (grub_machine_fini): Replace call to
41053 grub_console_fini() with call to grub_vga_text_fini() and
41054 grub_at_keyboard_fini().
41056 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41057 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41058 (grub_console_setcolorstate, grub_console_setcolor)
41059 (grub_console_getcolor): New function prototypes.
41061 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41062 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41063 (grub_vga_text_setcursor): Static-ize.
41064 (grub_vga_text_term): New structure.
41065 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41067 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41068 (grub_console_cur_color, grub_console_standard_color)
41069 (grub_console_normal_color, grub_console_highlight_color)
41070 (map_char, grub_console_putchar, grub_console_getcharwidth)
41071 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41072 (grub_console_getcolor): Move from here ...
41073 * term/i386/vga_common.c: ... to here (same function names).
41075 2008-11-12 Robert Millan <rmh@aybabtu.com>
41077 Use newly-added Multiboot support in coreboot.
41079 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41080 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41082 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41083 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41084 (codestart): Store the MBI in `startup_multiboot_info' when we're
41085 being loaded using Multiboot.
41087 * kern/i386/coreboot/init.c (grub_machine_init): Move
41088 grub_at_keyboard_init() call to beginning of function (useful for
41089 debugging). Call grub_machine_mmap_init() before attempting to use
41090 grub_machine_mmap_iterate().
41091 (grub_lower_mem, grub_upper_mem): Move from here ...
41092 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41095 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41096 function prototype.
41098 2008-11-12 Robert Millan <rmh@aybabtu.com>
41100 Fix a regression introduced by the at_keyboard.mod split. Because
41101 some terminals are default on some platforms and non-default on
41102 others, the first terminal being registered determines which is
41103 going to be default.
41105 * kern/term.c (grub_term_register_input): If this is the first
41106 terminal being registered, set it as the current one.
41107 (grub_term_register_output): Likewise.
41109 * term/efi/console.c (grub_console_init): Do not call
41110 grub_term_set_current_output() or grub_term_set_current_input().
41111 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41112 * term/i386/pc/console.c (grub_console_init): Likewise.
41113 (grub_console_fini): Do not call grub_term_set_current_input()
41114 (but leave grub_term_set_current_output() to restore text mode).
41116 2008-11-10 Robert Millan <rmh@aybabtu.com>
41118 * util/grub.d/00_header.in: Add backward compatibility check for
41119 versions of terminal.mod that don't understand `terminal_input' or
41122 2008-11-09 Robert Millan <rmh@aybabtu.com>
41124 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41125 `terminal_input' / `terminal_output', not `terminal'.
41127 2008-11-08 Robert Millan <rmh@aybabtu.com>
41129 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41130 (DISTCLEANFILES): Add `build_env.mk'.
41132 2008-11-08 Robert Millan <rmh@aybabtu.com>
41134 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41135 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41136 members. Update all users.
41137 * util/console.c (grub_ncurses_term): Split in ...
41138 (grub_ncurses_term_input): ... this, and ...
41139 (grub_ncurses_term_output): ... this. Update all users.
41140 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41142 2008-11-08 Robert Millan <rmh@aybabtu.com>
41144 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41145 (PKGDATA): Add $(pkgdata_SRCDIR).
41146 (pkglib_BUILDDIR): New variable.
41147 (pkgdata_SRCDIR): New variable.
41148 (build_env.mk): New target.
41149 (include_DATA): New variable.
41150 (install-local): Install $(include_DATA) files in $(includedir).
41152 2008-11-07 Pavel Roskin <proski@gnu.org>
41154 * gendistlist.sh: Use C locale for sorting to ensure consistent
41155 output on all systems.
41157 * util/grub.d/00_header.in: Remove incorrect space before
41160 2008-11-07 Robert Millan <rmh@aybabtu.com>
41162 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41164 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41165 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41166 (based on find_multi_boot1_header).
41167 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41168 using find_multi_boot2_header(), and abort if neither Multiboot or
41169 Multiboot headers were found.
41171 2008-11-07 Robert Millan <rmh@aybabtu.com>
41173 Modularize at_keyboard.mod:
41175 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41176 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41177 (at_keyboard_mod_LDFLAGS): New variables.
41179 Actual terminal split:
41181 * include/grub/term.h (struct grub_term): Split in ...
41182 (struct grub_term_input): ... this, and ...
41183 (struct grub_term_output): ... this. Update all users.
41184 (grub_term_set_current): Split in ...
41185 (grub_term_set_current_input): ... this, and ...
41186 (grub_term_set_current_output): ... this.
41187 (grub_term_get_current): Split in ...
41188 (grub_term_get_current_input): ... this, and ...
41189 (grub_term_get_current_output): ... this.
41190 (grub_term_register): Split in ...
41191 (grub_term_register_input): ... this, and ...
41192 (grub_term_register_output): ... this.
41193 (grub_term_unregister): Split in ...
41194 (grub_term_unregister_input): ... this, and ...
41195 (grub_term_unregister_output): ... this.
41196 (grub_term_iterate): Split in ...
41197 (grub_term_iterate_input): ... this, and ...
41198 (grub_term_iterate_output): ... this.
41200 * kern/term.c (grub_term_list): Split in ...
41201 (grub_term_list_input): ... this, and ...
41202 (grub_term_list_output): ... this. Update all users.
41203 (grub_cur_term): Split in ...
41204 (grub_cur_term_input): ... this, and ...
41205 (grub_cur_term_output): ... this. Update all users.
41206 (grub_term_set_current): Split in ...
41207 (grub_term_set_current_input): ... this, and ...
41208 (grub_term_set_current_output): ... this.
41209 (grub_term_get_current): Split in ...
41210 (grub_term_get_current_input): ... this, and ...
41211 (grub_term_get_current_output): ... this.
41212 (grub_term_register): Split in ...
41213 (grub_term_register_input): ... this, and ...
41214 (grub_term_register_output): ... this.
41215 (grub_term_unregister): Split in ...
41216 (grub_term_unregister_input): ... this, and ...
41217 (grub_term_unregister_output): ... this.
41218 (grub_term_iterate): Split in ...
41219 (grub_term_iterate_input): ... this, and ...
41220 (grub_term_iterate_output): ... this.
41222 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41223 a check for input and one for output (and only attempt to get keys
41224 from user when input works).
41226 * util/grub-probe.c (grub_term_get_current): Split in ...
41227 (grub_term_get_current_input): ... this, and ...
41228 (grub_term_get_current_output): ... this.
41229 * util/grub-fstest.c: Likewise.
41230 * util/i386/pc/grub-setup.c: Likewise.
41231 * util/grub-editenv.c: Likewise.
41233 Portability adjustments:
41235 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41236 `term/i386/pc/at_keyboard.c'.
41237 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41238 grub_keyboard_controller_init() (now handled by terminal .init).
41239 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41240 grub_at_keyboard_init().
41241 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41242 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41243 at_keyboard.mod via input terminal interface).
41244 * include/grub/i386/coreboot/console.h: Convert into a stub for
41245 `<grub/i386/pc/console.h>'.
41247 Migrate full terminals to new API:
41249 * term/efi/console.c (grub_console_term): Split into ...
41250 (grub_console_term_input): ... this, and ...
41251 (grub_console_term_output): ... this. Update all users.
41252 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41253 (grub_ofconsole_init): Split into ...
41254 (grub_ofconsole_init_input): ... this, and ...
41255 (grub_ofconsole_init_output): ... this.
41256 (grub_ofconsole_term): Split into ...
41257 (grub_ofconsole_term_input): ... this, and ...
41258 (grub_ofconsole_term_output): ... this. Update all users.
41259 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41260 (grub_serial_term_input): ... this, and ...
41261 (grub_serial_term_output): ... this. Update all users.
41262 * term/i386/pc/console.c (grub_console_term): Split into ...
41263 (grub_console_term_input): ... this, and ...
41264 (grub_console_term_output): ... this. Update all users.
41265 (grub_console_term_input): Only enable it on PC/BIOS platform.
41266 (grub_console_init): Remove grub_keyboard_controller_init() call.
41268 Migrate input terminals to new API:
41270 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41271 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41272 i386-specific anyway).
41273 (grub_console_checkkey): Rename to ...
41274 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41276 (grub_keyboard_controller_orig): New variable.
41277 (grub_console_getkey): Rename to ...
41278 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41280 (grub_keyboard_controller_init): Static-ize. Save original
41281 controller value so that it can be restored ...
41282 (grub_keyboard_controller_fini): ... here (new function).
41283 (grub_at_keyboard_term): New structure.
41284 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41287 Migrate output terminals to new API:
41289 * term/i386/pc/vga.c (grub_vga_term): Change type to
41290 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41291 members. Update all users.
41292 * term/gfxterm.c (grub_video_term): Change type to
41293 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41294 members. Update all users.
41295 * include/grub/i386/pc/console.h (grub_console_checkkey)
41296 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41299 Migrate `terminal' command and userland tools to new API:
41301 * commands/terminal.c (grub_cmd_terminal): Split into ...
41302 (grub_cmd_terminal_input): ... this, and ...
41303 (grub_cmd_terminal_output): ... this.
41304 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41305 `terminal_input' and `terminal_output'.
41306 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41307 `terminal_input' / `terminal_output' API.
41308 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41309 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41310 provided ${GRUB_TERMINAL}, convert it).
41312 2008-11-04 Robert Millan <rmh@aybabtu.com>
41314 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41316 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41318 2008-11-03 Bean <bean123ch@gmail.com>
41320 * kern/elf.c (grub_elf32_load): Revert to previous code.
41321 (grub_elf64_load): Likewise.
41323 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41325 2008-11-01 Robert Millan <rmh@aybabtu.com>
41327 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41328 (TARGET_CPPFLAGS): Likewise.
41329 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41331 2008-11-01 Carles Pina i Estany <carles@pina.cat>
41333 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41335 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41337 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41338 addition of objects until the code is not going to be able to fail.
41340 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41342 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41343 (add a missing NULL check, and correct them by moving the pointer
41344 operations after the actual check).
41346 2008-10-29 Robert Millan <rmh@aybabtu.com>
41348 * util/i386/pc/grub-install.in: Handle empty string as output from
41349 make_system_path_relative_to_its_root().
41351 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41353 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41354 circular metadata worst case scenario. If the metadata is circular
41355 then copy the wrap in place.
41356 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41357 project lib/format_text/layout.h
41358 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41360 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41362 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
41364 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41366 * util/update-grub_lib.in: Mention filename in warning message.
41368 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41370 * NEWS: Update for rename of update-grub to grub-mkconfig.
41372 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41374 * util/update-grub_lib.in: Copy to ...
41375 * util/grub-mkconfig_lib.in: ... this. Update all users.
41376 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
41377 * util/update-grub.in: Rename to ...
41378 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
41379 option. Add `--output' option to allow users to specify the generated
41380 configuration file. Default to stdout.
41381 (update_grub_dir): Rename to ...
41382 (grub_mkconfig_dir): ... this.
41383 (grub_cfg): Default to an empty string.
41384 * conf/common.rmk (update-grub): Rename to ...
41385 (grub-mkconfig): ... this.
41386 (update-grub_lib): Copy to ...
41387 (grub-mkconfig_lib): ... this.
41388 (update-grub_SCRIPTS): Copy to ...
41389 (grub-mkconfig_SCRIPTS): ... this. Update all users.
41390 (update-grub_DATA): Rename to ...
41391 (grub-mkconfig_DATA): ... this.
41393 2008-09-28 Robert Millan <rmh@aybabtu.com>
41395 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
41396 to `modified'. Add the real `created' field.
41397 (grub_iso9660_uuid): Use `modified' rather than `created' for
41398 constructing the UUID.
41400 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
41402 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
41403 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
41405 2008-09-28 Bean <bean123ch@gmail.com>
41407 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
41408 Thanks to Christian Franke for finding this bug.
41410 2008-09-25 Robert Millan <rmh@aybabtu.com>
41412 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
41413 instances of grub_util_get_disk_name() (see previous commit).
41415 2008-09-25 Robert Millan <rmh@aybabtu.com>
41417 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
41418 `util/i386/get_disk_name.c'.
41419 * conf/i386-efi.rmk: Likewise.
41420 * conf/x86_64-efi.rmk: Likewise.
41421 * conf/i386-coreboot.rmk: Likewise.
41422 * conf/i386-ieee1275.rmk: Likewise.
41423 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
41424 `util/ieee1275/get_disk_name.c'.
41425 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
41426 * util/ieee1275/get_disk_name.c: Remove file.
41427 * util/i386/get_disk_name.c: Remove file.
41428 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
41429 "hd%d" for device.map entries, rather than using
41430 grub_util_get_disk_name().
41432 2008-09-24 Carles Pina i Estany <carles@pina.cat>
41434 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
41436 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
41438 2008-09-24 Carles Pina i Estany <carles@pina.cat>
41440 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
41442 (GRUB_TERM_PPAGE): Changed to 0x4900.
41444 2008-09-24 Robert Millan <rmh@aybabtu.com>
41446 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
41447 macros (they were i386-pc specific).
41448 * include/grub/sparc64/ieee1275/console.h: Likewise.
41449 * include/grub/efi/console.h: Likewise.
41451 2008-09-22 Bean <bean123ch@gmail.com>
41453 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
41454 resident and in attribute list.
41456 * include/grub/ntfs.h (BMP_LEN): Removed.
41458 2008-09-22 Bean <bean123ch@gmail.com>
41460 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
41461 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
41463 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
41464 error occurs, as grub_disk_open will call grub_disk_close, which will
41465 call p->close (scsi).
41467 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
41469 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
41470 (AC_PREREQ): Bumped to 2.59.
41471 (AC_TRY_COMPILE): Replace obsolete macro with ...
41472 (AC_COMPILE_IFELSE): ... this.
41473 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
41474 (AC_LINK_IFELSE): ... this.
41476 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
41478 * autogen.sh: Add a call to `gendistlist.sh'.
41480 2008-09-19 Christian Franke <franke@computer.org>
41482 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
41483 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
41484 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
41485 Export __enable_execute_stack() to modules.
41486 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
41489 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
41491 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
41494 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
41496 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
41497 #include <grub/util/hostdisk.h>.
41499 2008-09-08 Robert Millan <rmh@aybabtu.com>
41501 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
41502 segments when their filesz is zero (grub_file_read() interprets
41503 zero-size as "read until EOF", which results in memory corruption).
41504 Use `lowest_segment' rather than 0 for calculating the current
41505 segment load address.
41507 2008-09-08 Robert Millan <rmh@aybabtu.com>
41509 * util/hostdisk.c (open_device): Replace a grub_util_info() call
41510 with grub_dprintf("hostdisk", ...), as it was so verbose that it
41511 clobbered useful information.
41513 2008-09-08 Robert Millan <rmh@aybabtu.com>
41515 * include/grub/util/biosdisk.h: Move to ...
41516 * include/grub/util/hostdisk.h: ... here. Update all users.
41517 * util/biosdisk.c: Move to ...
41518 * util/hostdisk.c: ... here. Update all users.
41520 2008-09-07 Robert Millan <rmh@aybabtu.com>
41522 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
41524 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
41525 and length can be stored directly in the `mbi->mmap_addr' and
41526 `mbi->mmap_length' struct fields.
41528 2008-09-07 Robert Millan <rmh@aybabtu.com>
41530 * conf/i386.rmk: New file. Provides declaration for building
41532 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
41533 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
41535 Include `conf/i386.mk'.
41536 * conf/i386-efi.rmk: Likewise.
41537 * conf/x86_64-efi.rmk: Likewise.
41538 * conf/i386-coreboot.rmk: Likewise.
41539 * conf/i386-ieee1275.rmk: Likewise.
41541 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
41543 Based on patch created by Colin D Bennett <colin@gibibit.com>.
41544 Adds optimization support for BGR based modes.
41546 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
41547 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
41548 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41549 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41550 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41551 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41552 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41553 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41554 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41555 (grub_video_i386_vbeblit_index_index): Likewise.
41556 (grub_video_i386_vbeblit_replace_directN): Added.
41557 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
41558 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
41559 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
41560 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
41561 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
41562 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
41563 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
41564 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
41565 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
41566 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
41567 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
41568 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
41569 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
41571 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
41572 (grub_video_i386_vbefill_R8G8B8): Likewise.
41573 (grub_video_i386_vbefill_index): Likewise.
41574 (grub_video_i386_vbefill_direct32): Added.
41575 (grub_video_i386_vbefill_direct24): Likewise.
41576 (grub_video_i386_vbefill_direct16): Likewise.
41577 (grub_video_i386_vbefill_direct8): Likewise.
41579 * include/grub/video.h (grub_video_blit_format): Removed
41580 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
41581 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
41582 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
41583 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
41584 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
41586 * video/video.c (grub_video_get_blit_format): Updated to use new
41587 blit formats. Added handling for 16 bit color modes.
41589 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
41591 (common_blitter): Updated to use new blitters.
41593 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
41595 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
41596 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41597 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41598 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41599 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41600 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41601 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41602 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41603 (grub_video_i386_vbeblit_index_index): Likewise.
41604 (grub_video_i386_vbeblit_replace_directN): Added.
41605 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
41606 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
41607 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
41608 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
41609 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
41610 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
41611 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
41612 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
41613 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
41614 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
41615 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
41616 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
41617 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
41619 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
41620 (grub_video_i386_vbefill_R8G8B8): Likewise.
41621 (grub_video_i386_vbefill_index): Likewise.
41622 (grub_video_i386_vbefill_direct32): Added.
41623 (grub_video_i386_vbefill_direct24): Likewise.
41624 (grub_video_i386_vbefill_direct16): Likewise.
41625 (grub_video_i386_vbefill_direct8): Likewise.
41627 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
41630 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
41633 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
41636 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
41639 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
41641 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
41644 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
41646 * fs/iso9660.c (grub_iso9660_date): New structure.
41647 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
41648 (grub_iso9660_uuid): New function.
41650 2008-09-05 Bean <bean123ch@gmail.com>
41652 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
41654 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
41655 insensitive bit for names in Win32 and Win32 & DOS namespace.
41657 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
41659 * include/grub/types.h (LONG_MAX): Likewise.
41661 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
41663 * util/getroot.c: Include <config.h>.
41664 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
41665 add support for /dev/md/N devices and handle LVM double dash escaping.
41667 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
41669 * config.guess: Update to latest version from config git.
41670 * config.sub: Likewise.
41672 2008-09-03 Robert Millan <rmh@aybabtu.com>
41674 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
41675 `disk->total_sectors'.
41677 2008-09-01 Colin D Bennett <colin@gibibit.com>
41679 * include/grub/normal.h: Fixed incorrect comment for
41680 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
41682 2008-09-01 Colin D Bennett <colin@gibibit.com>
41684 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
41685 values with defines.
41687 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
41688 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
41689 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
41690 (GRUB_VBE_MODEATTR_COLOR): Likewise.
41691 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
41692 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
41693 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
41694 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
41695 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
41696 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
41697 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
41698 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
41699 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
41700 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
41701 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
41702 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
41703 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
41704 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
41705 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
41707 2008-08-31 Robert Millan <rmh@aybabtu.com>
41709 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
41711 (grub_multiboot): Fix a few warnings.
41713 2008-08-31 Robert Millan <rmh@aybabtu.com>
41715 * loader/i386/pc/multiboot.c: Update comment not to say that
41716 boot_device support is unimplemented.
41718 2008-08-31 Robert Millan <rmh@aybabtu.com>
41720 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
41721 or memory map support are unimplemented.
41723 2008-08-31 Colin D Bennett <colin@gibibit.com>
41725 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
41727 2008-08-31 Colin D Bennett <colin@gibibit.com>
41729 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
41730 total video memory in 'vbeinfo' output; show color format details for
41733 2008-08-30 Pavel Roskin <proski@gnu.org>
41735 * util/genmoddep.c: Remove for real this time.
41736 * DISTLIST: Remove util/genmoddep.c.
41738 2008-08-30 Robert Millan <rmh@aybabtu.com>
41740 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
41741 as required by Multiboot spec (it was already 4-byte aligned, but
41744 2008-08-29 Pavel Roskin <proski@gnu.org>
41746 * kern/powerpc/ieee1275/crt0.S: Rename to ...
41747 * kern/powerpc/ieee1275/startup.S: ... this.
41748 * conf/powerpc-ieee1275.rmk: Adjust for the above.
41749 * DISTLIST: Likewise.
41751 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
41752 grub/cpu/kernel.h. Add start label for consistency with other
41753 platforms. Add grub_prefix immediately after start. Add jump
41754 to the code after grub_prefix.
41755 * include/grub/powerpc/kernel.h: Provide valid values for
41756 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
41758 2008-08-29 Bean <bean123ch@gmail.com>
41760 * configure.ac: Change host_os to cygwin for mingw.
41761 (asprintf): New check for function.
41763 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
41764 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
41766 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
41767 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
41768 sync, sleep and grub_util_get_disk_size for mingw.
41770 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
41771 to get size in mingw.
41772 (open_device): Use flag O_BINARY if it's defined.
41773 (find_root_device): Add dummy code for mingw.
41775 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
41776 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
41777 (get_scsi_disk_name): Return 0 for mingw.
41779 * util/hostfs.c: #include <grub/util/misc.h>.
41780 (grub_hostfs_open): Use "rb" flag to open file, use
41781 grub_util_get_disk_size to get disk size for mingw.
41783 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
41784 (asprintf): New function if HAVE_ASPRINTF is not set.
41785 (sync): New function for mingw.
41787 (grub_util_get_disk_size): Likewise.
41789 2008-08-28 Pavel Roskin <proski@gnu.org>
41791 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41794 2008-08-28 Robert Millan <rmh@aybabtu.com>
41796 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
41798 2008-08-28 Robert Millan <rmh@aybabtu.com>
41800 Change find_grub_drive() syntax so it doesn't prevent it from
41801 detecting NULL names as errors.
41803 * util/biosdisk.c (find_grub_drive): Move free slot search code
41805 (find_free_slot): ... to here.
41806 (read_device_map): Use find_free_slot() to search for free slots.
41808 2008-08-27 Marco Gerards <marco@gnu.org>
41810 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
41811 (scsi_mod_SOURCES): New variable.
41812 (scsi_mod_CFLAGS): Likewise
41813 (scsi_mod_LDFLAGS): Likewise.
41815 * disk/scsi.c: New file.
41817 * include/grub/scsi.h: Likewise.
41819 * include/grub/scsicmd.h: Likewise.
41821 * disk/ata.c: Include <grub/scsi.h>.
41822 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
41824 (grub_ata_iterate): Skip ATAPI devices.
41825 (grub_ata_open): Only handle ATAPI devices.
41826 (struct grub_atapi_read): Removed.
41827 (grub_atapi_readsector): Likewise.
41828 (grub_ata_read): No longer handle ATAPI devices.
41829 (grub_ata_write): Likewise.
41830 (grub_atapi_iterate): New function.
41831 (grub_atapi_read): Likewise.
41832 (grub_atapi_write): Likewise.
41833 (grub_atapi_open): Likewise.
41834 (grub_atapi_close): Likewise.
41835 (grub_atapi_dev): New variable.
41836 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
41837 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
41839 * include/grub/disk.h (enum grub_disk_dev_id): Add
41840 `GRUB_DISK_DEVICE_SCSI_ID'.
41842 2008-08-26 Robert Millan <rmh@aybabtu.com>
41844 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
41845 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
41848 2008-08-23 Bean <bean123ch@gmail.com>
41850 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
41851 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
41852 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
41853 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
41855 (raid5rec_mod_SOURCES): New macro.
41856 (raid5rec_mod_CFLAGS): Likewise.
41857 (raid5rec_mod_LDFLAGS): Likewise.
41858 (raid6rec_mod_SOURCES): Likewise.
41859 (raid6rec_mod_CFLAGS): Likewise.
41860 (raid6rec_mod_LDFLAGS): Likewise.
41861 (mdraid_mod_SOURCES): Likewise.
41862 (mdraid_mod_CFLAGS): Likewise.
41863 (mdraid_mod_LDFLAGS): Likewise.
41864 (dm_nv_mod_SOURCES): Likewise.
41865 (dm_nv_mod_CFLAGS): Likewise.
41866 (dm_nv_mod_LDFLAGS): Likewise.
41868 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
41869 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
41870 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
41872 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
41873 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
41875 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41877 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41879 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41881 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41883 * disk/raid5_recover.c: New file.
41885 * disk/raid6_recover.c: Likewise.
41887 * disk/mdraid_linux.c: Likewise.
41889 * disk/dmraid_nvidia.c: Likewise.
41891 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
41894 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
41895 calculate the size of raid device.
41896 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
41897 different layout of raid5.
41898 (grub_raid_scan_device): Remove code specific to mdraid.
41899 (grub_raid_list): New variable.
41900 (free_array): New function.
41901 (grub_raid_register): Likewise.
41902 (grub_raid_unregister): Likewise.
41903 (grub_raid_rescan): Likewise.
41904 (GRUB_MOD_INIT): Don't iterate device here.
41905 (GRUB_MOD_FINI): Use free_array to release resource.
41907 * include/grub/raid.h: Remove macro and structure specific to mdraid.
41908 (grub_raid5_recover_func_t): New function variable type.
41909 (grub_raid6_recover_func_t): Likewise.
41910 (grub_raid5_recover_func): New variable.
41911 (grub_raid6_recover_func): Likewise.
41912 (grub_raid_register): New function.
41913 (grub_raid_unregister): Likewise.
41914 (grub_raid_rescan): Likewise.
41915 (grub_raid_block_xor): Likewise.
41917 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
41918 (CMD_CRC): New macro.
41920 (read_file): Handle device as well as file.
41921 (cmd_crc): New function.
41922 (fstest): Handle multiple disks.
41923 (options): Remove part, raw and long, add root and diskcount.
41924 (usage): Add crc, remove -p, -r, -l, add -r and -c.
41925 (main): Find the first non option entry and ignore subsequent options,
41926 add handling for the new options, support multiple disks.
41928 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
41930 2008-08-23 Bean <bean123ch@gmail.com>
41932 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
41934 * genfslist.sh: Ignore kernel.mod.
41936 * genpartmaplist.sh: Likewise.
41938 2008-08-23 Robert Millan <rmh@aybabtu.com>
41940 * util/getroot.c (find_root_device): Skip anything that starts with
41941 a dot, not just directories. This avoids things like /dev/.tmp.md0.
41943 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
41945 * util/update-grub.in (GRUB_GFXMODE): Export variable.
41946 * util/grub.d/00_header.in: Allow the administrator to change default
41947 gfxmode via ${GRUB_GFXMODE}.
41949 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
41951 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
41953 2008-08-21 Robert Millan <rmh@aybabtu.com>
41955 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
41957 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
41958 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
41960 2008-08-20 Carles Pina i Estany <carles@pina.cat>
41962 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
41963 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
41965 2008-08-19 Robert Millan <rmh@aybabtu.com>
41967 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
41968 (struct grub_virtual_screen): Remove `cursor_color'.
41969 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
41971 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
41973 2008-08-18 Robert Millan <rmh@aybabtu.com>
41975 Unify (identical) linux_normal.c files.
41976 * loader/i386/efi/linux_normal.c: Move from here ...
41977 * loader/linux_normal.c: ... to here. Update all users.
41978 * loader/i386/pc/linux_normal.c: Delete. Update all users.
41979 * loader/i386/ieee1275/linux_normal.c: Likewise.
41981 2008-08-18 Robert Millan <rmh@aybabtu.com>
41983 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
41984 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
41985 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
41986 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
41987 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
41989 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
41990 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
41991 (GRUB_LINUX_CL_END_OFFSET): ... to here.
41992 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
41993 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
41994 (GRUB_EFI_CL_END_OFFSET): Rename to ...
41995 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
41996 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
41997 Initialize `params->video_cursor_x' and `params->video_cursor_y'
41998 portably using grub_getxy().
41999 Replace `-EFI' with `-bzImage' in boot message.
42001 2008-08-17 Robert Millan <rmh@aybabtu.com>
42003 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42005 2008-08-17 Robert Millan <rmh@aybabtu.com>
42007 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42009 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42010 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42011 (grub_machine_mmap_iterate): New function declaration.
42012 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42014 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42017 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42018 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42019 Move e820 parsing from here ...
42020 * kern/i386/pc/mmap.c: New file.
42021 (grub_machine_mmap_iterate): ... to here.
42023 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42024 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42025 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42026 (grub_available_iterate): Redeclare to return `void', and redeclare
42027 its hook to use grub_uint64_t as addr and size parameters, and rename
42029 (grub_machine_mmap_iterate): ... this. Update all users.
42031 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42032 to make it more readable. Rename to ...
42033 (grub_machine_mmap_iterate): ... this.
42035 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42036 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42037 (grub_multiboot): Allocate an extra region after the payload, and fill
42038 it with a Multiboot memory map. Adjust a.out loader to calculate size
42039 with the extra space.
42040 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42041 with the extra space.
42043 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42045 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42047 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42049 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42050 mdate-sh to the list `find' searches for.
42051 * DISTLIST: Regenerated.
42053 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42055 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42056 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42057 genmoddep.awk, gensymlist.sh.in.
42058 (DISTDIRS): Add bus, docs, hook, lib.
42059 * DISTLIST: Regenerated.
42060 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42062 2008-08-16 Robert Millan <rmh@aybabtu.com>
42064 * disk/raid.c (grub_raid_init): Handle/report errors set by
42065 grub_device_iterate().
42066 * disk/lvm.c (grub_lvm_init): Likewise.
42068 2008-08-15 Bean <bean123ch@gmail.com>
42070 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42072 (datetime_mod_SOURCES): New macro.
42073 (datetime_mod_CFLAGS): Likewise.
42074 (datetime_mod_LDFLAGS): Likewise.
42075 (date_mod_SOURCES): Likewise.
42076 (date_mod_CFLAGS): Likewise.
42077 (date_mod_LDFLAGS): Likewise.
42078 (datehook_mod_SOURCES): Likewise.
42079 (datehook_mod_CFLAGS): Likewise.
42080 (datehook_mod_LDFLAGS): Likewise.
42082 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42084 (datetime_mod_SOURCES): New macro.
42085 (datetime_mod_CFLAGS): Likewise.
42086 (datetime_mod_LDFLAGS): Likewise.
42087 (date_mod_SOURCES): Likewise.
42088 (date_mod_CFLAGS): Likewise.
42089 (date_mod_LDFLAGS): Likewise.
42090 (datehook_mod_SOURCES): Likewise.
42091 (datehook_mod_CFLAGS): Likewise.
42092 (datehook_mod_LDFLAGS): Likewise.
42094 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42096 (datetime_mod_SOURCES): New macro.
42097 (datetime_mod_CFLAGS): Likewise.
42098 (datetime_mod_LDFLAGS): Likewise.
42099 (date_mod_SOURCES): Likewise.
42100 (date_mod_CFLAGS): Likewise.
42101 (date_mod_LDFLAGS): Likewise.
42102 (datehook_mod_SOURCES): Likewise.
42103 (datehook_mod_CFLAGS): Likewise.
42104 (datehook_mod_LDFLAGS): Likewise.
42106 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42108 (datetime_mod_SOURCES): New macro.
42109 (datetime_mod_CFLAGS): Likewise.
42110 (datetime_mod_LDFLAGS): Likewise.
42111 (date_mod_SOURCES): Likewise.
42112 (date_mod_CFLAGS): Likewise.
42113 (date_mod_LDFLAGS): Likewise.
42114 (datehook_mod_SOURCES): Likewise.
42115 (datehook_mod_CFLAGS): Likewise.
42116 (datehook_mod_LDFLAGS): Likewise.
42118 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42120 (datetime_mod_SOURCES): New macro.
42121 (datetime_mod_CFLAGS): Likewise.
42122 (datetime_mod_LDFLAGS): Likewise.
42123 (date_mod_SOURCES): Likewise.
42124 (date_mod_CFLAGS): Likewise.
42125 (date_mod_LDFLAGS): Likewise.
42126 (datehook_mod_SOURCES): Likewise.
42127 (datehook_mod_CFLAGS): Likewise.
42128 (datehook_mod_LDFLAGS): Likewise.
42130 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42132 * commands/date.c: New file.
42134 * hook/datehook.c: Likewise.
42136 * include/grub/lib/datetime.h: Likewise.
42138 * include/grub/i386/cmos.h: Likewise.
42140 * lib/datetime.c: Likewise.
42142 * lib/i386/datetime.c: Likewise.
42144 * lib/efi/datetime.c: Likewise.
42146 2008-08-14 Robert Millan <rmh@aybabtu.com>
42148 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42149 (grub_mkelfimage_SOURCES): New variable.
42150 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42152 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42153 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42154 * conf/powerpc-ieee1275.rmk: Likewise.
42155 * conf/i386-ieee1275.rmk: Likewise.
42157 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42158 * kern/i386/coreboot/init.c: Likewise.
42160 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42161 with `<grub/cpu/kernel.h>'.
42162 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42164 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42165 * kern/i386/coreboot/startup.S: Likewise.
42167 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42168 (GRUB_MOD_GAP): Remove.
42169 * include/grub/powerpc/kernel.h: New file.
42170 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42171 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42172 * include/grub/i386/kernel.h: New file.
42173 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42174 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42175 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42177 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42179 Use --directory when invoking grub_mkimage.
42181 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42182 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42183 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42184 and GRUB_KERNEL_CPU_PREFIX.
42186 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42188 * include/grub/err.h (grub_err_printf): New function prototype.
42189 * util/misc.c (grub_err_printf): New function.
42190 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42192 * kern/err.c (grub_print_error): Use grub_err_printf.
42194 2008-08-13 Robert Millan <rmh@aybabtu.com>
42196 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42198 2008-08-13 Robert Millan <rmh@aybabtu.com>
42200 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42203 2008-08-12 Robert Millan <rmh@aybabtu.com>
42205 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42206 of the relocation code from here ...
42207 (grub_multiboot): ... to here.
42208 (forward_relocator, backward_relocator): Move from here ...
42209 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42210 (grub_multiboot_backward_relocator): ... to here.
42211 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42212 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42213 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42214 (grub_multiboot_forward_relocator_end)
42215 (grub_multiboot_backward_relocator)
42216 (grub_multiboot_backward_relocator_end): New variables.
42218 2008-08-12 Bean <bean123ch@gmail.com>
42220 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42222 2008-08-11 Robert Millan <rmh@aybabtu.com>
42224 * kern/i386/linuxbios/startup.S: Move from here ...
42225 * kern/i386/coreboot/startup.S: ... to here.
42227 * kern/i386/linuxbios/init.c: Move from here ...
42228 * kern/i386/coreboot/init.c: ... to here.
42230 * kern/i386/linuxbios/table.c: Move from here ...
42231 * kern/i386/coreboot/mmap.c: ... to here.
42233 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42235 2008-08-11 Robert Millan <rmh@aybabtu.com>
42237 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42238 errors. Leave it to the upper layer to handle them.
42240 2008-08-09 Christian Franke <franke@computer.org>
42242 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42243 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42244 Install `grub.d/10_windows' only on Cygwin.
42245 * configure.ac: Add subst of `target_os'.
42246 Check `target_os' also before setting TARGET_OBJ2ELF.
42247 Add `--enable-grub-pe2elf'.
42249 2008-08-08 Robert Millan <rmh@aybabtu.com>
42251 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42252 (grub_last_time): Change type to grub_uint64_t.
42253 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42254 (grub_disk_close): Likewise.
42256 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42257 (run_menu): Migrate code from to using grub_get_time_ms().
42259 * util/misc.c (grub_get_time_ms): New function.
42261 2008-08-08 Marco Gerards <marco@gnu.org>
42263 * disk/ata.c (grub_ata_regget): Change return type to
42265 (grub_ata_regget2): Likewise.
42266 (grub_ata_wait_status): New function.
42267 (grub_ata_wait_busy): Removed function, updated all users to use
42268 `grub_ata_wait_status'.
42269 (grub_ata_wait_drq): Likewise.
42270 (grub_ata_cmd): New function.
42271 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42273 (grub_ata_pio_write): Add error handling.
42274 (grub_atapi_identify): Likewise.
42275 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42277 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42278 handling. Actually use the detected registers. Reorder the
42279 detection logic such that it is easier to read.
42280 (grub_ata_pciinit): Do not assign the same ID to each controller.
42281 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42283 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42285 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42287 2008-08-08 Marco Gerards <marco@gnu.org>
42291 2008-08-07 Bean <bean123ch@gmail.com>
42293 * include/grub/x86_64/pci.h: New file.
42295 2008-08-07 Christian Franke <franke@computer.org>
42297 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42298 (TIMER2_GATE): Likewise.
42299 (grub_pit_wait): Add enable/disable of the timer2 gate
42300 bit of port 0x61. This fixes a possible infinite loop.
42302 2008-08-07 Bean <bean123ch@gmail.com>
42304 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42305 kern/i386/tsc.c and kern/i386/pit.c.
42307 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42310 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42313 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42315 2008-08-07 Bean <bean123ch@gmail.com>
42317 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42319 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42321 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42322 multiple inclusion. Add #include <grub/types.h>.
42324 2008-08-06 Christian Franke <franke@computer.org>
42326 * conf/common.rmk: Build and install `10_windows'.
42327 * util/grub.d/10_windows.in: New script.
42329 2008-08-06 Pavel Roskin <proski@gnu.org>
42331 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42333 2008-08-06 Robert Millan <rmh@aybabtu.com>
42335 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42336 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42338 2008-08-06 Bean <bean123ch@gmail.com>
42340 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42341 (grub_pxefs_fs_int): Remove dummy definition.
42342 (grub_pxefs_open): Use data->block_size to store the current block
42344 (grub_pxefs_read): Use block size stored in data->block_size. As the
42345 value of grub_pxe_blksize can be changed after the file is opened.
42347 2008-08-06 Bean <bean123ch@gmail.com>
42349 * fs/i386/pc/pxe.c (curr_file): new variable.
42350 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42351 require the dummy internal file system anymore.
42352 (grub_pxefs_read): Removed.
42353 (grub_pxefs_close): Likewise.
42354 (grub_pxefs_fs_int): Likewise.
42355 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42356 connection when we switch file.
42357 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42359 2008-08-06 Robert Millan <rmh@aybabtu.com>
42361 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42363 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42364 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42366 * kern/i386/halt.c: New file.
42367 * kern/i386/reboot.c: Likewise.
42368 * include/grub/i386/reboot.h: Likewise.
42369 * include/grub/i386/halt.h: Likewise.
42371 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42372 Include `<grub/cpu/halt.h>'.
42373 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42374 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42376 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42377 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
42378 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
42379 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
42380 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
42381 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
42383 * include/grub/i386/at_keyboard.h: ... to here.
42385 2008-08-05 Robert Millan <rmh@aybabtu.com>
42387 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
42388 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
42389 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
42390 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42391 `kern/generic/millisleep.c'.
42393 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
42394 instead of grub_get_rtc().
42395 (grub_tsc_init): Initialize `tsc_boot_time'.
42397 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
42398 (grub_machine_init): Use grub_tsc_init() rather than
42399 installing an RTC-based handler via grub_install_get_time_ms().
42401 * kern/i386/pit.c: New file.
42402 * include/grub/i386/pit.h: Likewise.
42404 2008-08-05 Bean <bean123ch@gmail.com>
42406 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
42408 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
42409 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
42410 (pxe_mod_SOURCES): New macro.
42411 (pxe_mod_CFLAGS): Likewise.
42412 (pxe_mod_LDFLAGS): Likewise.
42413 (pxecmd_mod_SOURCES): Likewise.
42414 (pxecmd_mod_CFLAGS): Likewise.
42415 (pxecmd_mod_LDFLAGS): Likewise.
42417 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
42418 (grub_pxe_call): Likewise.
42420 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
42422 * commands/i386/pc/pxecmd.c: New file.
42424 * fs/i386/pc/pxe.c: Likewise.
42426 * include/grub/i386/pc/pxe.h: Likewise.
42428 2008-08-05 Bean <bean123ch@gmail.com>
42430 * util/console.c (grub_console_cur_color): New variable.
42431 (grub_console_standard_color): Likewise.
42432 (grub_console_normal_color): Likewise.
42433 (grub_console_highlight_color): Likewise.
42434 (color_map): Likewise.
42435 (use_color): Likewise.
42436 (NUM_COLORS): New macro.
42437 (grub_ncurses_setcolorstate): Handle color properly.
42438 (grub_ncurses_setcolor): Don't change color here, just remember the
42439 settings, color will be set in grub_ncurses_setcolorstate.
42440 (grub_ncurses_getcolor): New function.
42441 (grub_ncurses_init): Initialize color pairs.
42442 (grub_ncurses_term): New member grub_ncurses_getcolor.
42444 2008-08-05 Colin D Bennett <colin@gibibit.com>
42446 High resolution timer support. Implemented for x86 CPUs using TSC.
42447 Extracted generic grub_millisleep() so it's linked in only as needed.
42448 This requires a Pentium compatible CPU; if the RDTSC instruction is
42449 not supported, then it falls back on the generic grub_get_time_ms()
42450 implementation that uses the machine's RTC.
42452 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
42453 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42454 `kern/generic/millisleep.c'.
42456 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
42457 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
42459 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
42460 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
42462 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
42464 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42465 `kern/generic/millisleep.c'.
42467 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
42469 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
42471 * kern/generic/rtc_get_time_ms.c: New file.
42473 * kern/generic/millisleep.c: New file.
42475 * kern/misc.c: Don't include
42476 <kern/time.h> anymore.
42477 (grub_millisleep_generic): Removed.
42479 * commands/sleep.c (grub_interruptible_millisleep): Uses
42480 grub_get_time_ms() instead of grub_get_rtc().
42482 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
42484 (grub_cpu_is_cpuid_supported): New inline function.
42485 (grub_cpu_is_tsc_supported): New inline function.
42486 (grub_tsc_init): New function prototype.
42487 (grub_tsc_get_time_ms): New function prototype.
42489 * kern/i386/tsc.c (grub_get_time_ms): New file.
42491 * include/grub/time.h: Include <grub/types.h.
42492 (grub_millisleep_generic): Removed.
42493 (grub_get_time_ms): New prototype.
42494 (grub_install_get_time_ms): New prototype.
42495 (grub_rtc_get_time_ms): New prototype.
42497 * kern/time.c (grub_get_time_ms): New function.
42498 (grub_install_get_time_ms): New function.
42500 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
42501 <grub/time.h> anymore.
42502 (grub_millisleep): Removed.
42503 (grub_machine_init): Call grub_tsc_init.
42505 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
42506 get_time_ms() implementation.
42508 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
42509 (ieee1275_get_time_ms): New function.
42510 (grub_machine_init): Install get_time_ms() implementation.
42512 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
42513 (grub_machine_init): Call grub_tsc_init().
42514 (grub_millisleep): Removed.
42516 * kern/ieee1275/init.c (grub_millisleep): Removed.
42517 (grub_machine_init): Install ieee1275_get_time_ms()
42519 (ieee1275_get_time_ms): New function.
42520 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
42523 2008-08-05 Marco Gerards <marco@gnu.org>
42525 * disk/ata.c: Include <grub/pci.h>.
42526 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
42527 (grub_ata_initialize): Rewritten.
42528 (grub_ata_device_initialize): New function.
42530 2008-08-04 Pavel Roskin <proski@gnu.org>
42532 * kern/main.c: Include grub/mm.h.
42534 2008-08-04 Robert Millan <rmh@aybabtu.com>
42536 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
42537 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
42538 corruption problem).
42540 2008-08-04 Robert Millan <rmh@aybabtu.com>
42542 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
42543 warnings introduced in my last commit.
42545 2008-08-03 Robert Millan <rmh@aybabtu.com>
42547 Make PCI available on all i386 architectures.
42549 * include/grub/i386/pc/pci.h: Move from here ...
42550 * include/grub/i386/pci.h: ... to here.
42552 * include/grub/i386/pc/pci.h: Remove.
42553 * include/grub/i386/efi/pci.h: Remove.
42554 * include/grub/x86_64/efi/pci.h: Remove.
42556 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
42557 `<grub/cpu/pci.h>'.
42559 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
42560 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
42561 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
42563 * conf/i386-ieee1275.rmk: Likewise.
42565 2008-08-03 Robert Millan <rmh@aybabtu.com>
42567 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
42568 (grub_console_setcursor): Make it possible to set cursor off.
42570 2008-08-03 Robert Millan <rmh@aybabtu.com>
42572 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
42573 of modules instead of assuming which platform provides what.
42574 * util/update-grub.in: Likewise.
42576 2008-08-03 Robert Millan <rmh@aybabtu.com>
42578 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
42579 instead of `grub_install_dos_part' to determine whether a drive needs
42580 to be prepended to prefix (`grub_install_dos_part' is not reliable,
42581 because it can be overridden when loading GRUB via Multiboot).
42583 2008-08-02 Robert Millan <rmh@aybabtu.com>
42585 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
42587 2008-08-02 Robert Millan <rmh@aybabtu.com>
42589 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
42590 of informational grub_dprintf() calls.
42592 2008-08-02 Robert Millan <rmh@aybabtu.com>
42594 * disk/memdisk.c (memdisk_size): Don't initialize.
42595 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
42597 * include/grub/i386/pc/kernel.h
42598 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
42599 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
42600 (grub_memdisk_image_size, grub_arch_memdisk_addr)
42601 (grub_arch_memdisk_size): Remove.
42603 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
42604 field (was only used to transfer a constant). Add `type' field to
42605 support multiple module types.
42606 (grub_module_iterate): New function.
42608 * kern/device.c (grub_device_open): Do not hide error messages
42609 when grub_disk_open() fails. Use grub_print_error() instead.
42611 * kern/i386/pc/init.c (grub_arch_modules_addr)
42612 (grub_arch_memdisk_size): Remove functions.
42613 (grub_arch_modules_addr): Return the module address in high memory
42614 (now that it isn't copied anymore).
42616 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
42617 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
42618 decompression routine (grub_total_module_size already includes that
42619 now). Don't copy modules back to low memory.
42621 * kern/main.c: Include `<grub/mm.h>'.
42622 (grub_load_modules): Split out (and use) ...
42623 (grub_module_iterate): ... this function, which iterates through
42624 module objects and runs a hook.
42625 Comment out grub_mm_init_region() call, as it would cause non-ELF
42626 modules to be overwritten.
42628 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
42629 the memdisk image in its own region, make it part of the module list.
42630 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
42631 (main): Parse --memdisk|-m option, and pass user-provided path as
42632 parameter to generate_image().
42633 (add_segments): Pass `memdisk_path' down to load_modules().
42634 (load_modules): Embed memdisk image in module section when requested.
42635 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
42636 `header.type' instead of `header.offset'.
42638 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
42639 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
42640 (memdisk_mod_LDFLAGS): New variables.
42641 * conf/i386-coreboot.rmk: Likewise.
42642 * conf/i386-ieee1275.rmk: Likewise.
42644 2008-08-02 Robert Millan <rmh@aybabtu.com>
42646 * loader/i386/pc/multiboot.c (playground, forward_relocator)
42647 (backward_relocator): New variables. Used to allocate and relocate
42648 the payload, respectively.
42649 (grub_multiboot_load_elf32): Load into heap instead of requested
42650 address, install the appropriate relocator code in each bound of
42651 the payload, and set the entry point such that
42652 grub_multiboot_real_boot() will jump to one of them.
42654 * kern/i386/loader.S (grub_multiboot_payload_size)
42655 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
42656 (grub_multiboot_payload_entry_offset): New variables.
42657 (grub_multiboot_real_boot): Set cpu context to what the relocator
42658 expects, and jump to the relocator instead of the payload.
42660 * include/grub/i386/loader.h (grub_multiboot_payload_size)
42661 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
42662 (grub_multiboot_payload_entry_offset): Export.
42664 2008-08-01 Bean <bean123ch@gmail.com>
42666 * normal/menu_entry.c (editor_getline): Don't return the original
42667 string as result, as it will be released by lexer once it has done
42670 2008-08-01 Robert Millan <rmh@aybabtu.com>
42672 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
42673 within menuentries, not before them.
42674 util/grub.d/10_hurd.in: Likewise.
42676 2008-08-01 Bean <bean123ch@gmail.com>
42678 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
42679 (bufio_mod_SOURCES): New macro.
42680 (bufio_mod_CFLAGS): Likewise.
42681 (bufio_mod_LDFLAGS): Likewise.
42683 * include/grub/bufio.h: New file.
42685 * io/bufio.c: Likewise.
42687 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
42688 (grub_video_reader_png): Use grub_buffile_open to open file.
42690 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
42691 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
42693 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
42694 (grub_video_reader_tga): Use grub_buffile_open to open file.
42696 * font/manager.c: Include <grub/bufio.h>.
42697 (add_font): Use grub_buffile_open to open file.
42699 2008-07-31 Robert Millan <rmh@aybabtu.com>
42701 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
42702 ELF segments, use a macro for arbitrarily accessing any of them instead
42703 of preparing a pointer that allows access to one at a time.
42704 (grub_multiboot_load_elf64): Likewise.
42706 2008-07-31 Bean <bean123ch@gmail.com>
42708 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
42709 GRUB_KERNEL_MACHINE_DATA_END.
42711 2008-07-30 Robert Millan <rmh@aybabtu.com>
42713 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
42714 Increase from 0x50 to 0x60.
42715 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
42716 use UUIDs to identify the root drive for them. If that's not
42718 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
42719 check, for cross-disk installs.
42721 2008-07-30 Robert Millan <rmh@aybabtu.com>
42723 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
42724 is non-empty, use it to set the `prefix' environment variable instead
42725 of the usual approach.
42726 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
42727 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
42728 environment variable instead of dummy make_install_device().
42730 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
42731 (start): Insert a data section, with `grub_prefix' variable.
42732 * kern/i386/linuxbios/startup.S: Likewise.
42734 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
42735 New variable reference.
42736 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
42737 New macro. Defines offset of `grub_prefix' within startup.S (relative
42739 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
42740 section within startup.S (relative to `start').
42741 * include/grub/i386/coreboot/kernel.h: Likewise.
42743 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
42744 Overwrite grub_prefix with its contents, at the beginning of the
42746 (main): Understand -p|--prefix.
42748 2008-07-30 Robert Millan <rmh@aybabtu.com>
42750 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
42752 2008-07-30 Robert Millan <rmh@aybabtu.com>
42754 * term/i386/pc/vga_text.c (grub_console_cls): Use
42755 grub_console_gotoxy() to go back to beginning of the screen.
42756 Found by Patrick Georgi <patrick.georgi@coresystems.de>
42758 2008-07-29 Christian Franke <franke@computer.org>
42760 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
42761 Add conversion of emulated mount points on Cygwin.
42763 2008-07-29 Christian Franke <franke@computer.org>
42765 * util/update-grub.in: Add a check for admin
42767 Remove old `grub.cfg.new' before creation.
42768 Add `-f' to `mv' to handle the different filesystem
42769 semantics of Windows.
42771 2008-07-29 Bean <bean123ch@gmail.com>
42773 * normal/main.c (get_line): Fix buffer overflow bug.
42775 2008-07-28 Robert Millan <rmh@aybabtu.com>
42777 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
42778 (struct grub_apple_header): New struct. Describes the layout of
42779 the partmap header.
42780 (apple_partition_map_iterate): Check the header magic as well as the
42781 partition magic (which was already being checked).
42783 2008-07-28 Pavel Roskin <proski@gnu.org>
42785 * genmk.rb: Add a warning to the beginning of the output that
42786 it's a generated file and should not be edited.
42788 2008-07-28 Robert Millan <rmh@aybabtu.com>
42790 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
42791 with the same number are found, just use issue a warning with
42792 grub_dprintf(), as this error has been reported to be non-fatal.
42794 2008-07-27 Robert Millan <rmh@aybabtu.com>
42796 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
42799 2008-07-27 Bean <bean123ch@gmail.com>
42801 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
42802 (grub_fat_find_dir): Ignore case when comparing filename.
42804 2008-07-27 Bean <bean123ch@gmail.com>
42806 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
42807 smallino, as it's more descriptive, and i8count can be confused with
42808 the other field count.
42809 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
42812 2008-07-27 Bean <bean123ch@gmail.com>
42814 * commands/crc.c: New file.
42816 * lib/crc.c: Likewise.
42818 * include/grub/lib/crc.h: Likewise.
42820 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
42822 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
42823 (hexdump): Move this function to ...
42825 * lib/hexdump.c: ... here.
42827 * include/grub/hexdump.h: Renamed to ...
42829 * include/grub/lib/hexdump.h: ... this.
42831 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
42833 * util/grub-editenv.c: Likewise.
42835 * include/envblk.h: Renamed to ...
42837 * include/lib/envblk.h: ... this.
42839 * util/envblk.c: Renamed to ...
42841 * lib/envblk.c: ... this.
42843 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
42845 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
42846 (pkglib_MODULES): Add crc.mod.
42847 (hexdump_mod_SOURCES): Add lib/hexdump.c.
42848 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
42849 (crc_mod_SOURCES): New macro.
42850 (crc_mod_CFLAGS): Likewise.
42851 (crc_mod_LDFLAGS): Likewise.
42853 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
42855 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42857 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42859 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42861 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42863 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
42865 * commands/help.c: Include <grub/term.h>.
42866 (TERM_WIDTH): Removed. Updated all users.
42868 2008-07-27 Pavel Roskin <proski@gnu.org>
42870 * util/getroot.c (find_root_device): Rephrase a comment to avoid
42871 spurious warnings about a comment within a comment.
42873 2008-07-25 Robert Millan <rmh@aybabtu.com>
42875 * util/getroot.c (find_root_device): Skip devices that match
42876 /dev/dm-[0-9]. This lets the real device be found for any type of
42877 abstraction (LVM, EVMS, RAID..).
42878 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
42879 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
42880 device is found first, find_root_device() will now skip it.
42882 2008-07-24 Pavel Roskin <proski@gnu.org>
42884 * include/grub/types.h: Use __builtin_bswap32() and
42885 __builtin_bswap64() with gcc 4.3 and newer.
42887 2008-07-24 Christian Franke <franke@computer.org>
42889 * util/i386/pc/grub-install.in: If `--debug' is specified,
42890 pass `--verbose' to grub-setup.
42891 Abort script if make_system_path_relative_to_its_root() fails.
42893 2008-07-24 Bean <bean123ch@gmail.com>
42895 * configure.ac: Fixed a bug caused by the previous cygwin patch,
42896 variable `target_platform' should be `platform'.
42898 2008-07-24 Bean <bean123ch@gmail.com>
42900 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42901 (grub_png_init_fixed_block): New function.
42902 (grub_png_decode_image_data): Handle fixed huffman code compression.
42904 2008-07-24 Bean <bean123ch@gmail.com>
42906 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
42907 (grub_pe2elf_SOURCES): New macro.
42908 (CLEANFILES): Add grub-pe2elf.
42910 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
42911 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
42912 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
42913 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
42914 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
42915 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
42916 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
42917 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
42918 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
42919 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
42920 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
42921 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
42922 (GRUB_PE32_DT_FUNCTION): Likewise.
42923 (GRUB_PE32_REL_I386_DIR32): Likewise.
42924 (GRUB_PE32_REL_I386_REL32): Likewise.
42925 (grub_pe32_symbol): New structure.
42926 (grub_pe32_reloc): Likewise.
42928 * util/grub-pe2elf.c: New file.
42930 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
42931 start symbol in non pc platform.
42933 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
42935 The following patches are from Christian Franke.
42937 * include/grub/dl.h: Remove .previous, gas supports this only
42940 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
42941 Remove .type, gas supports this only for ELF format.
42943 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
42944 nullbytes in symbol table. This fixes an infinite loop if table is
42947 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
42948 TARGET_IMG_LDFLAGS and EXEEXT.
42950 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
42951 TARGET_IMG_LDFLAGS_AC.
42952 (grub_CHECK_STACK_ARG_PROBE): New function.
42954 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
42956 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
42958 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
42959 to set TARGET_IMG_LD* accordingly.
42960 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
42961 Add call to grub_CHECK_STACK_ARG_PROBE.
42962 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
42964 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
42966 * genmk.rb: Add EXEEXT to CLEANFILES.
42968 2008-07-23 Robert Millan <rmh@aybabtu.com>
42970 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
42971 define the codes for arrows and lines used for the menu).
42972 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
42975 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
42976 fonts, because the latter are too slow.
42978 2008-07-21 Bean <bean123ch@gmail.com>
42980 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
42981 a20. Run keyboard test last, as it will cause macbook to halt.
42983 2008-07-18 Pavel Roskin <proski@gnu.org>
42985 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
42986 load foreign architecture modules correctly anyway. Keep
42987 support for loading host architecture modules, whether we
42988 compile them or not.
42990 2008-07-17 Pavel Roskin <proski@gnu.org>
42992 * configure.ac: Use -m32 or -m64 regardless of whether we had to
42993 change target_cpu. The compiler default can mismatch target_cpu
42996 * disk/efi/efidisk.c: Fix format warnings on x86_64.
42997 * kern/efi/efi.c: Likewise.
42999 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43000 target compiler is functional.
43001 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43004 * configure.ac: Default to efi platform for x86_64-apple. Allow
43005 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43006 adjustments from the rest, only do them if target is not
43007 explicitly given. Merge other adjustments with the final sanity
43008 check. Remove an extraneous check for supported CPU. Be
43009 specific which CPU and which platform is not supported.
43011 * configure.ac: Default to pc platform for x86_64.
43013 2008-07-17 Robert Millan <rmh@aybabtu.com>
43015 Partial LinuxBIOS -> Coreboot rename.
43017 * conf/i386-linuxbios.rmk: Renamed to ...
43018 * conf/i386-coreboot.rmk: ... this.
43019 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43020 * configure.ac: Accept "coreboot" as input platform (but maintain
43021 compatibility with "linuxbios").
43022 * include/grub/i386/linuxbios: Renamed to ...
43023 * include/grub/i386/coreboot: ... this.
43025 2008-07-17 Bean <bean123ch@gmail.com>
43027 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43028 (appleldr_mod_SOURCE): New variable.
43029 (appleldr_mod_CFLAGS): Likewise.
43030 (appleldr_mod_LDFLAGS): Likewise.
43031 (pci_mod_SOURCES): Likewise.
43032 (pci_mod_CFLAGS): Likewise.
43033 (pci_mod_LDFLAGS): Likewise.
43034 (lspci_mod_SOURCES): Likewise.
43035 (lspci_mod_CFLAGS): Likewise.
43036 (lspci_mod_LDFLAGS): Likewise.
43038 * conf/x86_64-efi.rmk: New file.
43040 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43042 (grub_efidisk_write): Likewise.
43044 * include/efi/api.h (efi_call_0): New macro.
43045 (efi_call_1): Likewise.
43046 (efi_call_2): Likewise.
43047 (efi_call_3): Likewise.
43048 (efi_call_4): Likewise.
43049 (efi_call_5): Likewise.
43050 (efi_call_6): Likewise.
43052 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43053 grub_rescue_cmd_chainloader.
43055 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43056 (grub_pe32_optional_header): Change some fields based on i386 or
43058 (GRUB_PE32_PE32_MAGIC): Likewise.
43060 * include/grub/efi/uga_draw.h: New file.
43062 * include/grub/elf.h (STN_ABS): New constant.
43063 (R_X86_64_NONE): Relocation constant for x86_64.
43064 (R_X86_64_64): Likewise.
43065 (R_X86_64_PC32): Likewise.
43066 (R_X86_64_GOT32): Likewise.
43067 (R_X86_64_PLT32): Likewise.
43068 (R_X86_64_COPY): Likewise.
43069 (R_X86_64_GLOB_DAT): Likewise.
43070 (R_X86_64_JUMP_SLOT): Likewise.
43071 (R_X86_64_RELATIVE): Likewise.
43072 (R_X86_64_GOTPCREL): Likewise.
43073 (R_X86_64_32): Likewise.
43074 (R_X86_64_32S): Likewise.
43075 (R_X86_64_16): Likewise.
43076 (R_X86_64_PC16): Likewise.
43077 (R_X86_64_8): Likewise.
43078 (R_X86_64_PC8): Likewise.
43080 * include/grub/i386/efi/pci.h: New file.
43082 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43083 Change it value based on platform.
43084 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43085 (GRUB_E820_RAM): Likewise.
43086 (GRUB_E820_RESERVED): Likewise.
43087 (GRUB_E820_ACPI): Likewise.
43088 (GRUB_E820_NVS): Likewise.
43089 (GRUB_E820_EXEC_CODE): Likewise.
43090 (GRUB_E820_MAX_ENTRY): Likewise.
43091 (grub_e820_mmap): New structure.
43092 (linux_kernel_header): Change the efi field according to different
43093 kernel version, also field from linux_kernel_header.
43095 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43097 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43098 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43099 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43100 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43101 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43102 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43103 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43104 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43105 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43106 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43108 * include/grub/x86_64/efi/kernel.h: New file.
43110 * include/grub/x86_64/efi/loader.h: Likewise.
43112 * include/grub/x86_64/efi/machine.h: Likewise.
43114 * include/grub/x86_64/efi/pci.h: Likewise.
43116 * include/grub/x86_64/efi/time.h: Likewise.
43118 * include/grub/x86_64/linux.h: Likewise.
43120 * include/grub/x86_64/setjmp.h: Likewise.
43122 * include/grub/x86_64/time.h: Likewise.
43124 * include/grub/x86_64/types.h: Likewise.
43126 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43127 GRUB_TARGET_SIZEOF_VOID_P.
43129 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43130 (grub_efi_locate_handle): Likewise.
43131 (grub_efi_open_protocol): Likewise.
43132 (grub_efi_set_text_mode): Likewise.
43133 (grub_efi_stall): Likewise.
43134 (grub_exit): Likewise.
43135 (grub_reboot): Likewise.
43136 (grub_halt): Likewise.
43137 (grub_efi_exit_boot_services): Likewise.
43138 (grub_get_rtc): Likewise.
43140 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43141 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43142 (grub_efi_allocate_pages): Wrap efi calls.
43143 (grub_efi_free_pages): Wrap efi calls.
43144 (grub_efi_get_memory_map): Wrap efi calls.
43146 * kern/x86_64/dl.c: New file.
43148 * kern/x86_64/efi/callwrap.S: Likewise.
43150 * kern/x86_64/efi/startup.S: Likewise.
43152 * loader/efi/appleloader.c: Likewise.
43154 * loader/efi/chainloader.c (cmdline): New variable.
43155 (grub_chainloader_unload): Wrap efi calls.
43156 (grub_chainloader_boot): Likewise.
43157 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43160 * loader/efi/chainloader_normal.c (chainloader_command):
43161 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43164 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43166 (grub_e820_add_region): New function.
43167 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43169 (grub_find_video_card): New function.
43170 (grub_linux_setup_video): New function.
43171 (grub_rescue_cmd_linux): Probe for video information.
43173 * normal/x86_64/setjmp.S: New file.
43175 * term/efi/console.c (map_char): New function.
43176 (grub_console_putchar): Map unicode char.
43177 (grub_console_checkkey): Wrap efi calls.
43178 (grub_console_getkey): Likewise.
43179 (grub_console_getwh): Likewise.
43180 (grub_console_gotoxy): Likewise.
43181 (grub_console_cls): Likewise.
43182 (grub_console_setcolorstate): Likewise.
43183 (grub_console_setcursor): Likewise.
43185 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43187 2008-07-16 Pavel Roskin <proski@gnu.org>
43189 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43192 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43193 pointer, not an integer. This fixes a warning and prevents
43194 precision loss on 64-bit systems.
43195 (relocate_addresses): Remove unneeded cast.
43197 2008-07-15 Pavel Roskin <proski@gnu.org>
43199 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43201 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43203 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43204 Fix comparison between signed and unsigned.
43206 * include/grub/i386/ieee1275/console.h: Declare
43207 grub_console_init() and grub_console_fini().
43209 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43210 It's empty and unused.
43212 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43213 beginning to avoid warnings with some compilers.
43215 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43216 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43218 2008-07-14 Pavel Roskin <proski@gnu.org>
43220 * kern/env.c (grub_register_variable_hook): Don't copy empty
43221 string, it leaks memory. Pass "" to grub_env_set(), it should
43222 handle constant strings.
43224 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43225 * commands/cmp.c (grub_cmd_cmp): Likewise.
43226 * kern/dl.c (grub_dl_flush_cache): Likewise.
43227 (grub_dl_load_core): Likewise.
43228 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43229 (grub_elf64_load_phdrs): Likewise.
43231 2008-07-13 Pavel Roskin <proski@gnu.org>
43233 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43234 between signed and unsigned.
43235 (LzmaEnc_Finish): Fix warning about an unused parameter.
43237 2008-07-13 Bean <bean123ch@gmail.com>
43239 * Makefile.in (enable_lzo): New rule.
43241 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43243 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43245 * boot/i386/pc/lnxboot.S: #include <config.h>.
43247 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43248 its value according to the compression algorithm used, lzo or lzma.
43250 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43251 compression algorithm according to configure macro.
43253 * kern/i386/pc/startup.S (codestart): Likewise.
43255 * kern/i386/pc/lzma_decode.S: New file.
43257 * include/grub/lib/LzFind.h: Likewise.
43259 * include/grub/lib/LzHash.h: Likewise.
43261 * include/grub/lib/LzmaDec.h: Likewise.
43263 * include/grub/lib/LzmaEnc.h: Likewise.
43265 * include/grub/lib/LzmaTypes.h: Likewise.
43267 * lib/LzFind.c: Likewise.
43269 * lib/LzmaDec.c: Likewise.
43271 * lib/LzmaEnc.c: Likewise.
43273 2008-07-13 Bean <bean123ch@gmail.com>
43275 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43276 (grub_ext4_extent_header): New structure.
43277 (grub_ext4_extent): Likewise.
43278 (grub_ext4_extent_idx): Likewise.
43279 (grub_ext4_find_leaf): New function.
43280 (grub_ext2_read_block): Handle extents.
43282 2008-07-12 Robert Millan <rmh@aybabtu.com>
43284 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43286 2008-07-11 Robert Millan <rmh@aybabtu.com>
43288 * util/grub.d/40_custom.in: New file. Example on how to add custom
43289 entries to /etc/grub.d.
43290 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43291 40_custom (implicitly, by merging all the grub.d rules).
43293 2008-07-11 Pavel Roskin <proski@gnu.org>
43295 * commands/read.c (grub_getline): Fix invalid memory access.
43296 Don't add newline to the variable value.
43298 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43299 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43300 (serial_hw_get_port): Check validity of the port number.
43301 (grub_cmd_serial): Check return value of serial_hw_get_port().
43303 2008-07-07 Pavel Roskin <proski@gnu.org>
43305 * boot/i386/pc/diskboot.S (notification_string): Replace
43306 "Loading kernel" with just "loading". This is shorter, less
43307 confusing and saves a few bytes for possible future changes.
43309 2008-07-05 Pavel Roskin <proski@gnu.org>
43311 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43312 size for ATAPI devices, they are undefined. Output sector
43313 number in decimal form.
43315 * disk/ata.c: Use named constants for status bits.
43317 2008-07-04 Pavel Roskin <proski@gnu.org>
43319 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43320 grub_addr_t before casting it to the void pointer to fix a
43321 warning. Non-addressable regions are discarded earlier.
43322 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43323 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43324 (check_signature): Don't shadow table_header.
43325 (grub_linuxbios_table_iterate): Cast numeric constants to
43326 grub_linuxbios_table_header_t.
43327 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43330 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43333 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43334 pointer, which can cause warnings. Support 64-bit addresses.
43336 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43337 of sizeof(long). This fixes PowerPC image generation on x86_64.
43339 2008-07-04 Robert Millan <rmh@aybabtu.com>
43341 This fixes a performance issue when pc & gpt partmap iterators
43342 didn't abort iteration even after our hook found what it was
43343 looking for (often causing expensive probes of non-existent drives).
43345 Some callers relied on previous buggy behaviour, since they would
43346 raise an error when their own hooks caused early abortion of its
43349 * kern/device.c (grub_device_open): Improve error message.
43350 * disk/lvm.c (grub_lvm_open): Likewise.
43351 * disk/raid.c (grub_raid_open): Likewise.
43353 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43354 when hook requests it, independently of grub_errno.
43355 (pc_partition_map_probe): Do not fail when find_func() caused
43356 early abortion of pc_partition_map_iterate().
43358 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43359 when hook requests it, independently of grub_errno.
43360 (gpt_partition_map_probe): Do not fail when find_func() caused
43361 early abortion of gpt_partition_map_iterate().
43363 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43364 when hook requests it, independently of grub_errno. Do not fail when
43365 part_map_iterate_hook() caused early abortion of p->iterate().
43367 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43368 when grub_partition_iterate() returned with non-zero.
43370 2008-07-03 Pavel Roskin <proski@gnu.org>
43372 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43373 like we do in grub_ata_pio_read().
43374 (grub_ata_readwrite): Always write individual sectors. Fix the
43375 sector count for the remainder.
43376 (grub_ata_write): Enable writing to ATA devices. Correctly
43377 report error for ATAPI devices.
43379 2008-07-02 Pavel Roskin <proski@gnu.org>
43381 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
43384 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
43385 for every read sector, we already increment it for the whole
43386 batch. This fixes reading more than 256 sectors at once.
43388 * util/grub-editenv.c (cmd_info): Cast argument to long
43389 explicitly. ptrdiff_t reduces to int on i386.
43391 * util/grub-editenv.c (main): Be specific which parameter is
43394 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
43395 (memdisk): Make memdisk_orig_addr a pointer.
43397 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
43398 for file offsets, use grub_off_t instead. Fix printf format
43401 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
43402 there. Real unexpected warnings should not drown in the noise
43403 about known problems.
43405 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
43406 grub_disk_addr_t for memory addresses.
43408 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
43409 explicitly to fix a warning.
43411 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
43413 * Makefile.in (MODULE_LDFLAGS): New variable.
43414 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
43415 the linker accepts --build-id=none.
43416 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
43418 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
43420 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
43421 those in Linux XFS code. Provide a way to access 64-bit parent
43423 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
43424 the end of struct grub_xfs_dir_header.
43426 2008-07-02 Bean <bean123ch@gmail.com>
43428 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
43429 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43430 and GRUB_IEEE1275_FLAG_NO_ANSI.
43432 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
43433 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43434 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
43436 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
43437 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
43439 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
43440 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
43442 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
43443 esc sequence on non ANSI terminal.
43444 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
43446 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
43449 2008-07-02 Bean <bean123ch@gmail.com>
43451 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
43452 (grub_editenv_SOURCES): New variable.
43453 (pkglib_MODULES): Add loadenv.mod.
43454 (loadenv_mod_SOURCES): New variable.
43455 (loadenv_mod_CFLAGS): Likewise.
43456 (loadenv_mod_LDFLAGS): Likewise.
43458 * include/grub/envblk.h: New file.
43460 * util/envblk.c: New file.
43462 * util/grub-editenv.c: New file.
43464 * commands/loadenv.c: New file.
43466 2008-07-01 Pavel Roskin <proski@gnu.org>
43468 * include/multiboot2.h (struct multiboot_tag_module): Use char,
43469 not unsigned char. This fixes warnings and is consistent with
43472 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
43474 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
43476 * term/tparm.c (analyze): Always set *popcount.
43478 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
43479 cast to fix a warning.
43481 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
43482 cast to suppress a warning.
43484 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
43485 grub_fshelp_read_file() expects.
43487 * fs/fat.c: Fix UUID calculation on big-endian systems. We
43488 write uuid as a 32-bit value in CPU byte order, so declare and
43491 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
43492 long if the format specifier expects it.
43493 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
43494 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43495 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
43496 long to fix a warning.
43497 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
43498 grub_dprintf() arguments to fix warnings.
43500 2008-06-30 Pavel Roskin <proski@gnu.org>
43502 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
43503 install_bsd_part immediately before core.img is embedded or
43504 modified on disk. This fixes core.img verification if core.img
43505 cannot be embedded.
43507 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
43508 core_path to calculate the blocklist.
43509 Patch from Javier Martín <lordhabbit@gmail.com>
43511 2008-06-29 Robert Millan <rmh@aybabtu.com>
43513 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
43514 block to disk block.
43515 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
43516 Patch from Niels Böhm <bitbucket@arcor.de>
43518 2008-06-29 Robert Millan <rmh@aybabtu.com>
43520 * util/update-grub_lib.in (font_path): Search for fonts in
43521 /boot/grub first, which is more likely to be readable (we aren't
43522 deciding where fonts live, just looking for them).
43524 2008-06-26 Pavel Roskin <proski@gnu.org>
43526 * util/biosdisk.c (read_device_map): Don't leave dead map
43527 entries for devices failing stat() check.
43529 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
43530 core_path_dev for the core.img path on the target device.
43532 2008-06-26 Robert Millan <rmh@aybabtu.com>
43534 * disk/fs_uuid.c: New file.
43535 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
43536 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
43537 (fs_uuid_mod_LDFLAGS): New variables.
43538 * include/grub/disk.h (grub_disk_dev_id): Add
43539 `GRUB_DISK_DEVICE_UUID_ID'.
43540 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
43541 implement iterate().
43543 2008-06-26 Robert Millan <rmh@aybabtu.com>
43545 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
43546 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
43547 Linux image includes no initrd.
43549 2008-06-21 Javier Martín <lordhabbit@gmail.com>
43551 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
43552 call to resolve the core image location that effectively appended the
43555 2008-06-21 Robert Millan <rmh@aybabtu.com>
43557 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
43560 * util/grub.d/10_hurd.in: ... to here ...
43561 * util/grub.d/10_linux.in: ... and here.
43563 2008-06-19 Robert Millan <rmh@aybabtu.com>
43565 * kern/main.c (grub_main): Export `prefix' variable immediately
43566 after it has been set by grub_machine_set_prefix().
43568 2008-06-19 Robert Millan <rmh@aybabtu.com>
43570 * commands/search.c (search_label, search_fs_uuid, search_file): Print
43571 search result when not saving to variable, not the other way around.
43572 When saving to variable, abort iteration as soon as a match is found.
43574 2008-06-19 Robert Millan <rmh@aybabtu.com>
43576 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
43577 check for partition that provides /boot/grub. Its logic is flawed,
43578 as it prevents prepare_grub_to_access_device() from being called
43581 2008-06-19 Robert Millan <rmh@aybabtu.com>
43583 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
43584 "insmod" command directly when abstraction modules are needed,
43585 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
43586 since it had already been processed).
43588 2008-06-19 Pavel Roskin <proski@gnu.org>
43590 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
43591 changed. This is needed in case GRUB_LIBDIR changes.
43592 * conf/i386-ieee1275.rmk: Likewise.
43593 * conf/i386-linuxbios.rmk: Likewise.
43594 * conf/i386-pc.rmk: Likewise.
43595 * conf/powerpc-ieee1275.rmk: Likewise.
43597 2008-06-18 Pavel Roskin <proski@gnu.org>
43599 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
43600 kernel_elf_symlist.c to symlist.c for consistency with other
43601 architectures. Update all users.
43602 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43604 2008-06-18 Robert Millan <rmh@aybabtu.com>
43606 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
43609 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
43610 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
43611 a RAID device, run setup() for all members independently on whether
43612 LVM abstraction is being used.
43613 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
43614 If grub-mkimage has set `*install_dos_part == -2', don't override this
43616 Perform *install_dos_part adjustments independently on whether
43617 we're embedding or not.
43618 Clarify error message when image is too big for embedding.
43619 Remove duplicate *install_dos_part stanza.
43621 2008-06-17 Robert Millan <rmh@aybabtu.com>
43623 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
43624 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
43626 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
43627 values in grub_ofconsole_normal_color and
43628 grub_ofconsole_highlight_color (they're not directly related to
43629 background and foreground).
43630 (grub_ofconsole_setcolorstate): Extract background and foreground
43631 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
43633 2008-06-17 Robert Millan <rmh@aybabtu.com>
43635 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
43636 /boot/grub for the check in last commit, not /boot (they could be
43637 different partitions).
43639 2008-06-16 Robert Millan <rmh@aybabtu.com>
43641 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
43642 asked to setup access for the same partition that provides /boot,
43643 don't bother using UUIDs since our root already has the value we
43646 2008-06-16 Robert Millan <rmh@aybabtu.com>
43648 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
43650 Patch from Sven Mueller <sven@debian.org>.
43652 2008-06-16 Robert Millan <rmh@aybabtu.com>
43654 * util/update-grub.in: Check for $EUID instead of $UID.
43655 Reported by Vincent Zweije.
43657 2008-06-16 Bean <bean123ch@gmail.com>
43659 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
43660 (grub_ext2_read_block): Likewise.
43661 (grub_ext2_read_inode): Likewise.
43662 (grub_ext2_mount): Likewise.
43663 (grub_ext2_close): Likewise.
43664 (grub_ext3_get_journal): Removed.
43666 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
43667 (grub_reiserfs_read_symlink): Likewise.
43668 (grub_reiserfs_mount): Likewise.
43669 (grub_reiserfs_open): Likewise.
43670 (grub_reiserfs_read): Likewise.
43671 (grub_reiserfs_close): Likewise.
43672 (grub_reiserfs_get_journal): Removed.
43674 * fs/fshelp.c (grub_fshelp_read): Removed.
43675 (grub_fshelp_map_block): Likewise.
43677 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
43678 (grub_fshelp_journal): Likewise.
43679 (grub_fshelp_read): Likewise.
43680 (grub_fshelp_map_block): Likewise.
43682 2008-06-16 Pavel Roskin <proski@gnu.org>
43684 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
43685 floating point anymore.
43686 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
43688 2008-06-15 Pavel Roskin <proski@gnu.org>
43690 * commands/ls.c (grub_ls_list_files): Use integer calculations
43691 for human readable format, avoid floating point use.
43692 * kern/misc.c (grub_ftoa): Remove.
43693 (grub_vsprintf): Remove floating point support.
43695 2008-06-15 Robert Millan <rmh@aybabtu.com>
43697 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
43699 Reported by Max Vozeler.
43701 2008-06-15 Robert Millan <rmh@aybabtu.com>
43703 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
43704 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
43706 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
43707 the beginning of the prefix.
43709 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
43710 It is assumed that if we have a memdisk, grub-mkimage has set
43711 grub_prefix to include the "(memdisk)" drive in it.
43713 2008-06-15 Robert Millan <rmh@aybabtu.com>
43715 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
43716 Initialize keyboard controller after registering the terminal, so that
43717 grub_printf() can be called from grub_keyboard_controller_init().
43719 2008-06-15 Robert Millan <rmh@aybabtu.com>
43721 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
43722 extent-btree which is written as big endian on disk.
43723 Reported by Alain Greppin <al@chilibi.org>.
43725 2008-06-14 Robert Millan <rmh@aybabtu.com>
43727 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
43728 * util/i386/pc/grub-install.in (modules): Likewise.
43730 2008-06-13 Pavel Roskin <proski@gnu.org>
43732 * commands/ls.c (grub_ls_list_files): Fix format warnings.
43734 2008-06-13 Bean <bean123ch@gmail.com>
43736 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
43738 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
43740 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
43741 to indicate sparse block.
43743 2008-06-12 Pavel Roskin <proski@gnu.org>
43745 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
43746 number, grub_fshelp_read() does it for us.
43748 * fs/fshelp.c (grub_fshelp_read): New function. Implement
43749 linear disk read with journal translation.
43750 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
43751 * include/grub/fshelp.h: Declare grub_fshelp_read().
43753 2008-06-09 Pavel Roskin <proski@gnu.org>
43755 * fs/minix.c (grub_minix_mount): Handle error reading
43758 2008-06-08 Robert Millan <rmh@aybabtu.com>
43760 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
43761 don't append the RAID prefix afterwards.
43762 Reported by Clint Adams.
43764 2008-06-08 Robert Millan <rmh@aybabtu.com>
43766 Based on description from Pavel:
43767 * kern/disk.c (grub_disk_check_range): Rename to ...
43768 (grub_disk_adjust_range): ... this. Add a comment explaining the
43769 tasks performed by this function.
43771 2008-06-08 Robert Millan <rmh@aybabtu.com>
43773 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
43774 `num_serial' (for consistency with other variables).
43775 (struct grub_ntfs_data): Add `uuid' member.
43776 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
43777 (grub_ntfs_uuid): New function.
43778 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
43780 2008-06-07 Pavel Roskin <proski@gnu.org>
43782 * util/biosdisk.c (open_device): Revert last change to the
43783 function, it broke installation. The sector needs to be
43784 different dependent on which device is opened.
43786 2008-06-06 Robert Millan <rmh@aybabtu.com>
43788 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
43789 rest of GRUB, and breakage doesn't happen if its value were modified.
43791 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
43792 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
43793 a constant (same value).
43794 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
43795 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
43797 2008-06-06 Robert Millan <rmh@aybabtu.com>
43799 * util/biosdisk.c (open_device): Do not modify sector offset when
43800 accessing a partition. kern/disk.c already handles this for us.
43802 2008-06-06 Robert Millan <rmh@aybabtu.com>
43804 * util/grub-emu.c (grub_machine_init): Move code in this function from
43806 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
43807 segfault in case grub_printf() is called).
43809 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
43810 grub_probe. Update all users not to explicitly add it again.
43811 (grub_device): New variable; contains corresponding device for grubdir.
43812 (fs_module, partmap_module, devabstraction_module): Pass
43813 `--device ${grub_device}' to grub_probe to avoid traversing /dev
43816 2008-06-05 Robert Millan <rmh@aybabtu.com>
43818 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
43819 is found, print it (same layout as with labels).
43821 2008-06-04 Robert Millan <rmh@aybabtu.com>
43823 * util/biosdisk.c (get_drive): Rename to ...
43824 (find_grub_drive): ... this. Update all users.
43826 (get_os_disk): Rename to ...
43827 (convert_system_partition_to_system_disk): ... this. Update all users.
43829 (find_drive): Rename to ...
43830 (find_system_device): ... this. Update all users.
43832 2008-06-04 Robert Millan <rmh@aybabtu.com>
43834 * util/biosdisk.c (get_os_disk): Handle IDA devices.
43835 * util/grub-mkdevicemap.c (get_mmc_disk_name)
43836 (make_device_map): Likewise.
43838 2008-06-01 Robert Millan <rmh@aybabtu.com>
43840 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
43841 before dereferencing it.
43843 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
43844 union with fat12/fat16-specific ones. Add some new fields, including
43845 `num_serial' for both versions.
43846 (struct grub_fat_data): Add `uuid' member.
43847 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
43848 names. Initialize `data->uuid' using `num_serial'.
43849 (grub_fat_uuid): New function.
43850 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
43852 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
43853 (grub_reiserfs_uuid): New function.
43854 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
43857 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
43858 (grub_xfs_uuid): New function.
43859 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
43861 2008-06-01 Robert Millan <rmh@aybabtu.com>
43863 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
43864 code that is backward compatible with pre-uuid search command.
43866 2008-05-31 Robert Millan <rmh@aybabtu.com>
43868 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
43869 floppies after everything else, to ensure floppy drive isn't accessed
43870 unnecessarily (patch from Bean).
43872 2008-05-31 Robert Millan <rmh@aybabtu.com>
43874 * commands/search.c (search_label, search_fs_uuid, search_file): Do
43875 not print device names when we were asked to set a variable.
43877 2008-05-31 Robert Millan <rmh@aybabtu.com>
43879 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
43880 using "cursor-on" and "cursor-off" commands (understood at least by
43881 the Open Firmware flavour on OLPC).
43883 2008-05-31 Michael Gorven <michael@gorven.za.net>
43885 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
43886 on and off sequences.
43888 2008-05-31 Robert Millan <rmh@aybabtu.com>
43890 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
43891 * util/update-grub.in: Likewise.
43893 2008-05-30 Pavel Roskin <proski@gnu.org>
43895 * util/biosdisk.c (linux_find_partition): Simplify logic and
43896 make the code more universal. Keep special processing for
43897 devfs, but use a simple rule for all other devices. If the
43898 device ends with a number, append 'p' and the partition number.
43899 Otherwise, append only the partition number.
43901 2008-05-30 Robert Millan <rmh@aybabtu.com>
43903 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
43904 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
43905 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
43906 the `root' parameter to Linux.
43908 2008-05-30 Robert Millan <rmh@aybabtu.com>
43910 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
43911 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
43912 --fs_uuid with --fs-uuid.
43913 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
43914 all filesystems support them).
43916 2008-05-30 Robert Millan <rmh@aybabtu.com>
43918 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
43919 grub_printf() flags, since we're printing in units of 2 bytes.
43921 2008-05-30 Robert Millan <rmh@aybabtu.com>
43923 * util/grub.d/00_header.in: Remove obsolete comment referencing
43924 convert_system_path_to_grub_path().
43925 * util/update-grub.in: Likewise.
43926 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
43927 (convert_system_path_to_grub_path): Add a warning message explaining
43928 that this function is deprecated. Rely on is_path_readable_by_grub()
43929 for the readability checks.
43930 (font_path): Use is_path_readable_by_grub() for the readability
43931 check rather than convert_system_path_to_grub_path().
43933 2008-05-30 Robert Millan <rmh@aybabtu.com>
43935 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
43936 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
43937 converting it first.
43938 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
43939 grub.cfg for access to font file, and afterwards call it again to set
43942 2008-05-30 Robert Millan <rmh@aybabtu.com>
43944 * commands/search.c (options): Add --fs_uuid option.
43945 (search_fs_uuid): New function.
43946 (grub_cmd_search): Fix --set argument passing.
43947 Use search_fs_uuid() when requested via --fs_uuid.
43948 (grub_search_init): Update help message.
43949 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
43950 and redeclare it as an array of 16-bit words.
43951 (grub_ext2_uuid): New function.
43952 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
43953 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
43954 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
43955 (GRUB_DEVICE_BOOT_UUID): New variables.
43956 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
43957 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
43959 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
43960 just assume `root' variable has the right value.
43961 * util/grub.d/10_linux.in: Likewise.
43962 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
43964 (main): Recognise `-t fs_uuid' argument.
43966 2008-05-30 Robert Millan <rmh@aybabtu.com>
43968 * util/biosdisk.c (map): Redefine structure to hold information
43969 about GRUB drive name.
43970 (get_drive): Reimplement without assuming (and verifying) BIOS-like
43972 (call_hook): Remove.
43973 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
43974 member. Assume drive has partitions.
43975 (grub_util_biosdisk_open): Access device names via `.device' struct
43977 (open_device): Likewise.
43978 (find_drive): Likewise.
43979 (read_device_map): Adjust map[] usage to match the new struct
43980 definition. Don't check for duplicates (still possible, but not cheap
43982 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
43983 (make_device_name): Remove assumption of BIOS-like drive names.
43985 2008-05-30 Pavel Roskin <proski@gnu.org>
43987 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
43988 compiling execute.c doesn't need grub_script.tab.h anymore.
43989 (normal/command.c_DEPENDENCIES): Likewise.
43990 (normal/function.c_DEPENDENCIES): Likewise.
43991 * conf/i386-ieee1275.rmk: Likewise.
43992 * conf/i386-linuxbios.rmk: Likewise.
43993 * conf/i386-pc.rmk: Likewise.
43994 * conf/powerpc-ieee1275.rmk: Likewise.
43995 * conf/sparc64-ieee1275.rmk: Likewise.
43997 2008-05-29 Pavel Roskin <proski@gnu.org>
43999 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44000 when scanning metadata for volume group name.
44002 * include/grub/script.h: Don't include grub_script.tab.h. It's
44003 a generated file, which may only be included from the files with
44004 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44005 use union YYSTYPE, as the later allows forward declaration.
44006 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44008 2008-05-29 Robert Millan <rmh@aybabtu.com>
44010 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44011 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44012 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44013 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44016 2008-05-29 Robert Millan <rmh@aybabtu.com>
44018 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44019 control key combinations.
44021 2008-05-29 Robert Millan <rmh@aybabtu.com>
44023 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44024 * util/ieee1275/grub-install.in: ... to here.
44025 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44026 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44027 (grub_install_SOURCES): Likewise.
44029 2008-05-29 Robert Millan <rmh@aybabtu.com>
44031 * fs/affs.c: Update copyright year.
44032 * fs/ext2.c: Likewise.
44033 * fs/fshelp.c: Likewise.
44034 * fs/hfsplus.c: Likewise.
44035 * fs/ntfs.c: Likewise.
44036 * fs/xfs.c: Likewise.
44037 * include/grub/fshelp.h: Likewise.
44038 * util/grub-mkdevicemap.c: Likewise.
44040 2008-05-28 Robert Millan <rmh@aybabtu.com>
44042 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44043 might need to be fatfs to support some firmware implementations
44046 2008-05-28 Robert Millan <rmh@aybabtu.com>
44048 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44050 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44051 (make_device_map): Likewise.
44053 2008-05-20 Bean <bean123ch@gmail.com>
44055 * fs/fshelp.c (grub_fshelp_map_block): New function.
44056 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44057 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44059 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44060 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44061 (grub_fshelp_journal): New structure.
44062 (grub_fshelp_map_block): New function prototype.
44063 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44064 (grub_fshelp_map_block): Likewise.
44066 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44067 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44068 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44069 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44070 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44071 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44072 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44073 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44074 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44075 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44076 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44077 (grub_ext2_sblock): New members for journal support.
44078 (grub_ext3_journal_header): New structure.
44079 (grub_ext3_journal_revoke_header): Likewise.
44080 (grub_ext3_journal_block_tag): Likewise.
44081 (grub_ext3_journal_sblock): Likewise.
44082 (grub_fshelp_node): New members logfile and journal.
44083 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44084 grub_fshelp_map_block to get real block number.
44085 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44087 (grub_ext2_read_inode): Likewise.
44088 (grub_ext3_get_journal): New function.
44089 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44090 (grub_ext2_close): Release memory used by journal.
44092 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44093 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44094 (grub_reiserfs_transaction_header): Renamed to
44095 grub_reiserfs_description_block, replace field data with real_blocks.
44096 (grub_reiserfs_commit_block): New structure.
44097 (grub_reiserfs_data): New member journal.
44098 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44100 (grub_reiserfs_read_symlink): Likewise.
44101 (grub_reiserfs_iterate_dir): Likewise.
44102 (grub_reiserfs_open): Likewise.
44103 (grub_reiserfs_read): Likewise.
44104 (grub_reiserfs_get_journal): New function.
44105 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44106 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44107 using grub_reiserfs_get_journal.
44108 (grub_reiserfs_close): Release memory used by journal.
44110 * fs/affs.c (grub_affs_read_block): Change block type to
44111 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44113 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44115 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44117 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44119 * fs/udf.c (grub_udf_read_block): Change block type to
44120 grub_disk_addr_t. Use type cast to avoid warning.
44122 * fs/xfs.c (grub_xfs_read_block): Likewise.
44124 2008-05-16 Christian Franke <franke@computer.org>
44126 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44127 to ensure that break with ESC will always work.
44128 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44129 Remove ESC from keyboard queue.
44131 2008-05-16 Christian Franke <franke@computer.org>
44133 * util/biosdisk.c: [__CYGWIN__] Add includes.
44134 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44135 (get_os_disk): Move variable declarations to OS specific
44136 parts to avoid warning.
44137 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44138 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44139 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44141 * util/getroot.c: [__CYGWIN__] Add includes.
44142 (strip_extra_slashes): Fix "/" case.
44143 [__CYGWIN__] (get_win32_path): New function.
44144 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44145 [__CYGWIN__] (find_root_device): Disable.
44146 [__CYGWIN__] (get_bootsec_serial): New function.
44147 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44148 [__linux__] (grub_guess_root_device): Add early returns to simplify
44150 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44151 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44152 check for Linux only.
44154 2008-05-15 Bean <bean123ch@gmail.com>
44156 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44157 keyboard hang problem in apple's intel mac.
44159 2008-05-09 Robert Millan <rmh@aybabtu.com>
44161 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44163 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44164 (make_device_map): Likewise.
44165 Reported by Aurelien Jarno <aurel32@debian.org>
44167 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44169 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44170 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44171 (make_device_map): Output entries for xvd type disks.
44173 2008-05-07 Robert Millan <rmh@aybabtu.com>
44175 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44177 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44178 (make_device_map): Likewise.
44179 Reported by Roland Dreier <rdreier@cisco.com>
44181 2008-05-07 Robert Millan <rmh@aybabtu.com>
44183 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44184 grub_strstr() call. Correct a few mistakes in failure path handling.
44186 2008-05-06 Robert Millan <rmh@aybabtu.com>
44188 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44189 Do not print a trailing slash (therefore, the root directory is an
44191 (convert_system_path_to_grub_path): Do not remove trailing slash
44192 from make_system_path_relative_to_its_root() output.
44194 * util/i386/pc/grub-install.in: Add trailing slash to output from
44195 make_system_path_relative_to_its_root().
44197 2008-05-06 Robert Millan <rmh@aybabtu.com>
44199 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44200 ensures that output lines aren't intermangled with those sent to
44201 stderr (via grub_util_info()).
44202 * util/grub-probe.c (grub_refresh): Likewise.
44203 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44205 2008-05-05 Christian Franke <franke@computer.org>
44207 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44208 Add Cygwin device names.
44209 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44210 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44211 (check_device): Return error instead of success on empty name.
44212 (make_device_map): Move label inside linux specific code to
44213 prevent compiler warning.
44215 2008-04-30 Robert Millan <rmh@aybabtu.com>
44217 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44218 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44220 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44222 2008-04-29 Robert Millan <rmh@aybabtu.com>
44224 * docs/grub.cfg: New file (example GRUB configuration).
44226 2008-04-26 Robert Millan <rmh@aybabtu.com>
44228 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44229 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44230 and `disk/ieee1275/nand.c'.
44232 2008-04-25 Bean <bean123ch@gmail.com>
44234 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44237 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44238 change the buffer size to 4096 for cdrom device.
44240 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44242 (_linux_mod_SOURCES): New variable.
44243 (_linux_mod_CFLAGS): Likewise.
44244 (_linux_mod_LDFLAGS): Likewise.
44245 (linux_mod_SOURCES): Likewise.
44246 (linux_mod_CFLAGS): Likewise.
44247 (linux_mod_LDFLAGS): Likewise.
44248 (nand_mod_SOURCES): Likewise.
44249 (nand_mod_CFLAGS): Likewise.
44250 (nand_mod_LDFLAGS): Likewise.
44252 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44253 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44254 type property. (nand device in olpc don't have this property)
44256 * include/grub/disk.h (grub_disk_dev_id): New macro
44257 GRUB_DISK_DEVICE_NAND_ID.
44259 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44260 function prototype.
44261 (grub_rescue_cmd_initrd): Likewise.
44263 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44264 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44265 ofw_cif_handler and ofw_idt, adjust padding number.
44267 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44268 GRUB_MACHINE_IEEE1275 is defined.
44270 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44271 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44273 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44274 on nested function heap_init.
44275 (grub_upper_mem): New variable for i386-ieee1275.
44276 (grub_get_extended_memory): New function for i386-ieee1275.
44277 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44279 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44280 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44283 * loader/i386/ieee1275/linux.c: New file.
44285 * loader/i386/ieee1275/linux_normal.c: New file.
44287 * disk/ieee1275/nand.c: New file.
44289 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44291 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44293 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44295 2008-04-18 Robert Millan <rmh@aybabtu.com>
44297 Restructures early code path on ieee1275 to unify grub_main() as
44298 the first C function that is executed in every platform.
44300 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44301 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44303 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44304 * kern/ieee1275/cmain.c (cmain): Rename to ...
44305 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44306 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44309 2008-04-18 Robert Millan <rmh@aybabtu.com>
44311 * util/update-grub.in: Fix syntax error when setting
44312 `GRUB_PRELOAD_MODULES'.
44313 Reported by Stephane Chazelas <stephane@artesyncp.com>
44315 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44317 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44318 section into account, newer toolchains generate unique build ids
44319 * configure.ac: remove the test for --build-id=none acceptance,
44320 we want build ids to be preserved
44321 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44322 far from other sections don't cause the raw binary images grow
44325 2008-04-15 Robert Millan <rmh@aybabtu.com>
44327 * disk/lvm.c: Update copyright year.
44328 * kern/misc.c: Likewise.
44330 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44332 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
44333 there is no memory left for physical volume name.
44335 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44337 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44338 volume name mapping to support bigger than 9 character names properly.
44340 2008-04-13 Robert Millan <rmh@aybabtu.com>
44342 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44343 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44345 2008-04-13 Christian Franke <franke@computer.org>
44347 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44348 to create a floppy emulation boot CD when non emulation mode
44350 Enable Joliet CD filesystem extension.
44352 2008-04-13 Robert Millan <rmh@aybabtu.com>
44354 * kern/misc.c (grub_strncat): Fix off-by-one error.
44355 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44357 * kern/env.c (grub_env_context_close): Clear current context, not
44359 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44361 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44363 2008-04-13 Robert Millan <rmh@aybabtu.com>
44365 Improve robustness when handling LVM.
44367 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
44368 (and leave `*p' unmodified).
44369 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44371 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44372 iterating through it.
44373 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44375 (grub_lvm_scan_device): Check the return value (and fail gracefully
44376 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44377 Don't assume `vg->pvs != NULL' when iterating through it.
44379 2008-04-13 Robert Millan <rmh@aybabtu.com>
44381 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
44382 * genmk.rb (partmap): New variable.
44383 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
44384 (#{partmap}): New target rule.
44385 * genpartmaplist.sh: New file.
44386 * Makefile.in (pkglib_DATA): Add partmap.lst.
44387 (partmap.lst): New target rule.
44388 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
44389 modules (including all partition maps), instead of preloading them.
44391 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
44393 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
44394 `linux-boot-prober' (if installed) to detect other operating
44395 systems which are installed on the computer and add them to
44397 * conf/common.rmk: Build and install 30_os-prober.
44399 2008-04-12 Robert Millan <rmh@aybabtu.com>
44401 * kern/powerpc/ieee1275/init.c: Move from here ...
44402 * kern/ieee1275/init.c: ... to here. Update all users.
44404 * kern/powerpc/ieee1275/cmain.c: Move from here ...
44405 * kern/ieee1275/cmain.c: ... to here. Update all users.
44407 * kern/powerpc/ieee1275/openfw.c: Move from here ...
44408 * kern/ieee1275/openfw.c: ... to here. Update all users.
44410 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
44411 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
44413 2008-04-10 Pavel Roskin <proski@gnu.org>
44415 * configure.ac: Always use "_cv_" in cache variables for
44416 compatibility with Autoconf 2.62.
44418 2008-04-07 Robert Millan <rmh@aybabtu.com>
44420 Revert grub/machine/init.h addition by Pavel (since it breaks on
44421 i386-ieee1275 and others):
44422 * util/i386/pc/misc.c: Remove grub/machine/init.h.
44423 * util/powerpc/ieee1275/misc.c: Likewise.
44425 2008-04-07 Robert Millan <rmh@aybabtu.com>
44427 * util/grub-probe.c (probe): Improve error message.
44429 2008-04-07 Robert Millan <rmh@aybabtu.com>
44431 * util/biosdisk.c (read_device_map): Skip devices that don't exist
44432 (this prevents the presence of a bogus entry from ruining the whole
44435 2008-04-06 Pavel Roskin <proski@gnu.org>
44437 * util/biosdisk.c: Include grub/util/biosdisk.h.
44438 * util/grub-fstest.c (execute_command): Make static.
44439 * util/grub-mkdevicemap.c (check_device): Likewise.
44440 * util/i386/pc/misc.c: Include grub/machine/init.h.
44441 * util/powerpc/ieee1275/misc.c: Likewise.
44442 * util/lvm.c: Include grub/util/lvm.h.
44443 * util/misc.c: Include grub/kernel.h, grub/misc.h and
44445 * util/raid.c: Include grub/util/raid.h.
44446 (grub_util_getdiskname): Make static.
44448 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
44449 grub_hostfs_fini(), as they are called from grub_init_all() and
44450 grub_fini_all() respectively. This fixes an infinite loop in
44451 grub-fstest due to double registration of hostfs.
44452 Reported by Christian Franke <Christian.Franke@t-online.de>
44454 2008-04-05 Pavel Roskin <proski@gnu.org>
44456 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
44457 all 8 functions. Otherwise, probe function 0 only.
44459 2008-04-04 Pavel Roskin <proski@gnu.org>
44461 * commands/lspci.c (grub_lspci_iter): Print the bus number
44464 * commands/lspci.c (grub_pci_classes): Fix typos.
44465 (grub_lspci_iter): Don't print func twice. Print vendor ID
44466 before device ID, as it's normally done.
44468 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
44469 Fix signedness warnings.
44470 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
44472 * util/ieee1275/get_disk_name.c: Include config.h so that
44473 _GNU_SOURCE is defined and getline() is declared. Mark an
44474 unused argument as such. Fix a signedness warning.
44476 2008-04-02 Pavel Roskin <proski@gnu.org>
44478 * genkernsyms.sh.in: Use more robust assignments for CC and
44479 srcdir. Quote srcdir.
44480 * gensymlist.sh.in: Likewise. Assert at the compile time that
44481 the symbol table is not empty.
44483 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
44484 * fs/cpio.c (grub_cpio_read): Likewise.
44486 2008-04-01 Pavel Roskin <proski@gnu.org>
44488 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
44489 * disk/host.c (grub_host_open): Likewise.
44490 * disk/loopback.c (grub_loopback_open): Likewise.
44491 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
44492 disk->id as in disk/host.c, not a multi-character constant.
44494 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
44495 later is obsolete, potentially dangerous and sets a bad example.
44496 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
44497 * util/misc.c (grub_util_get_image_size): Likewise.
44499 * disk/loopback.c (options): Improve help for "--partitions".
44501 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
44502 options to align them with the short options, e.g. "echo -e".
44504 2008-03-31 Bean <bean123ch@gmail.com>
44506 * video/reader/png.c (grub_png_data): New member is_16bit and
44508 (grub_png_decode_image_header): Detect 16 bit png image.
44509 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
44510 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
44511 (grub_video_reader_png): Release memory occupied by image_data.
44513 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
44515 (grub_nfs_mount): Skip the test for sector per cluster.
44517 * include/grub/ntfs.h (MAX_SPC): Removed.
44519 2008-03-31 Bean <bean123ch@gmail.com>
44521 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
44522 (grub_probe_SOURCES): Add fs/afs.c.
44523 (grub_fstest_SOURCES): Likewise.
44524 (afs_mod_SOURCES): New variable.
44525 (afs_mod_CFLAGS): Likewise.
44526 (afs_mod_LDFLAGS): Likewise.
44528 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
44529 (grub_emu_SOURCES): Likewise.
44531 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44533 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44535 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44537 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44539 * fs/afs.c: New file.
44541 2008-03-30 Pavel Roskin <proski@gnu.org>
44543 * disk/host.c: Include grub/misc.h to fix a warning.
44544 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
44545 warnings about implicit declarations.
44547 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
44549 * include/grub/i386/loader.h: Change declaration of
44550 grub_linux_boot() to match what grub_loader_set() expects.
44551 * util/getroot.c (grub_guess_root_device): Return const char* to
44553 * util/grub-probe.c (probe): Fix a warning about uninitialized
44554 abstraction_name variable.
44555 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
44556 second argument as unused to fix a warning.
44558 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
44559 missing grub_error() call.
44561 * util/update-grub_lib.in: Define datarootdir, since Autoconf
44562 2.60 and newer uses it to define datadir.
44564 * commands/sleep.c: Fix warning about implicit declaration.
44565 * disk/memdisk.c: Likewise.
44566 * loader/aout.c: Likewise.
44567 * loader/i386/bsd_normal.c: Likewise.
44568 * util/grub-probe.c: Likewise.
44570 * commands/i386/cpuid.c (has_longmode): Make static.
44571 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
44572 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
44574 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
44575 GDT. This is more robust, as %ds can change.
44576 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
44577 calling real_to_prot().
44578 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
44580 2008-03-28 Pavel Roskin <proski@gnu.org>
44582 * kern/i386/pc/startup.S: Assert that uncompressed functions
44583 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
44584 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
44585 code, as they push parts of the code (error handlers) beyond
44586 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
44587 code as correctness and size.
44589 2008-03-28 Pavel Roskin <proski@gnu.org>
44591 * kern/i386/pc/startup.S
44592 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
44593 data block address to the real mode, keep offset minimal. This
44594 works around a bug in AWARD BIOS on old Athlon systems, which
44595 makes CD detection hang.
44597 2008-03-26 Pavel Roskin <proski@gnu.org>
44599 * normal/color.c (grub_parse_color_name_pair): Make `name' a
44601 * include/grub/normal.h: Add grub_parse_color_name_pair()
44604 2008-03-24 Bean <bean123ch@gmail.com>
44606 * disk/i386/pc/biosdisk.c (cd_start): Removed.
44607 (cd_count): Removed.
44608 (cd_drive): New variable.
44609 (grub_biosdisk_get_drive): Don't check for (cdN) device.
44610 (grub_biosdisk_call_hook): Likewise.
44611 (grub_biosdisk_iterate): Change cdrom detection method.
44612 (grub_biosdisk_open): Replace cd_start with cd_drive.
44613 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
44614 detect cdrom device.
44616 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
44618 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
44619 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
44620 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
44621 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
44622 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
44623 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
44624 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
44625 (grub_biosdisk_cdrp): New structure.
44626 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
44628 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
44630 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
44633 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
44636 2008-03-20 Robert Millan <rmh@aybabtu.com>
44638 Remove 2 TiB limit in ata.mod.
44639 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
44640 (grub_ata_dumpinfo): Print sector count with 0x%llx.
44641 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
44642 grub_uint64_t instead of grub_uint32_t.
44644 2008-03-05 Bean <bean123ch@gmail.com>
44646 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
44647 (grub_multiboot): Set boot device.
44649 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
44651 2008-03-02 Bean <bean123ch@gmail.com>
44653 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
44656 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
44658 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
44661 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
44664 * docs/fdl.texi: New file.
44666 * docs/mdate-sh: New file. Copied from gnulib.
44667 * docs/texinfo.tex: Likewise.
44669 * config.guess: Updated from gnulib.
44670 * install-sh: Likewise.
44672 2008-02-28 Robert Millan <rmh@aybabtu.com>
44674 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
44675 (aout_mod_SOURCES): New variable.
44676 (aout_mod_CFLAGS): Likewise.
44677 (aout_mod_LDFLAGS): Likewise.
44679 * conf/i386-ieee1275.rmk: Likewise.
44681 2008-02-28 Robert Millan <rmh@aybabtu.com>
44683 * util/update-grub.in: Reorganise terminal validity check. Accept
44684 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
44685 Based on suggestion by Franklin PIAT.
44687 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
44689 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
44691 * util/getroot.c (grub_util_check_block_device): New function that
44692 returns the given argument if it is a block device and returns NULL else.
44693 * util/grub-probe.c (argument_is_device): New variable.
44694 (probe): Promote device_name from a variable to an argument. Receive
44695 device_name from grub_util_check_block_device() if path is NULL and from
44696 grub_guess_root_device() else. Do not free() device_name anymore.
44697 (options): Introduce new parameter '-d, --device'.
44698 (main): Add description of the new parameter to the help screen.
44699 Rename path variable to argument. Set argument_is_device if the '-d'
44700 option is given. Pass argument to probe() depending on
44701 argument_is_device.
44703 2008-02-24 Bean <bean123ch@gmail.com>
44705 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
44706 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
44707 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
44708 (GRUB_ISO9660_VOLDESC_PART): Likewise.
44709 (GRUB_ISO9660_VOLDESC_END): Likewise.
44710 (grub_iso9660_primary_voldesc): New member escape.
44711 (grub_iso9660_data): New member joliet.
44712 (grub_iso9660_convert_string): New function.
44713 (grub_iso9660_mount): Detect joliet extension.
44714 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
44715 (grub_iso9660_iso9660_label): Likewise.
44717 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
44718 (grub_setup_SOURCES): Add fs/udf.c.
44719 (grub_fstest_SOURCES): Likewise.
44720 (udf_mod_SOURCES): New variable.
44721 (udf_mod_CFLAGS): Likewise.
44722 (udf_mod_LDFLAGS): Likewise.
44724 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
44725 (grub_emu_SOURCES): Likewise.
44727 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44729 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44731 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44735 * fs/udf.c: New file.
44737 2008-02-24 Robert Millan <rmh@aybabtu.com>
44739 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
44740 (normal/lexer.c_DEPENDENCIES): New variables.
44741 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44742 (normal/lexer.c_DEPENDENCIES): Likewise.
44743 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
44744 (normal/lexer.c_DEPENDENCIES): Likewise.
44745 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
44746 (normal/lexer.c_DEPENDENCIES): Likewise.
44747 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44748 (normal/lexer.c_DEPENDENCIES): Likewise.
44749 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44750 (normal/lexer.c_DEPENDENCIES): Likewise.
44752 2008-02-23 Robert Millan <rmh@aybabtu.com>
44754 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
44755 since they were intended to be in hex. This didn't break previously
44756 because of a bug in gpt_partition_map_iterate() (see below).
44758 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
44759 when checking the validity of GPT header.
44760 Remove `partno', since it always provides the same information as `i'.
44762 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
44764 * include/grub/efi/time.h: Fix a wrong comment.
44766 2008-02-19 Pavel Roskin <proski@gnu.org>
44768 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
44771 2008-02-19 Bean <bean123ch@gmail.com>
44773 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
44774 (aout_mod_SOURCES): New variable.
44775 (aout_mod_CFLAGS): Likewise.
44776 (aout_mod_LDFLAGS): Likewise.
44777 (_bsd_mod_SOURCES): New variable.
44778 (_bsd_mod_CFLAGS): Likewise.
44779 (_bsd_mod_LDFLAGS): Likewise.
44780 (bsd_mod_SOURCES): New variable.
44781 (bsd_mod_CFLAGS): Likewise.
44782 (bsd_mod_LDFLAGS): Likewise.
44784 * include/grub/aout.h: New file.
44786 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
44788 * include/grub/i386/bsd.h: New file.
44790 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
44793 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
44794 function is called, so that it's possible to change it inside the hook.
44795 (grub_elf64_load): Likewise.
44796 (grub_elf_file): Don't close the file if elf header is not found.
44797 (grub_elf_close): Close the file if grub_elf_file fails (The new
44798 grub_elf_file won't close it).
44799 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
44800 (grub_elf64_size): Likewise.
44802 * kern/i386/loader.S (grub_unix_real_boot): New function.
44804 * loader/aout.c: New file.
44806 * loader/i386/bsd.c: New file.
44808 * loader/i386/bsd_normal.c: New file.
44810 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
44812 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
44813 can test other formats.
44815 2008-02-19 Robert Millan <rmh@aybabtu.com>
44817 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
44818 (grub_gpt_partition_type_empty): Redefine with macro from
44819 `<grub/gpt_partition.h>'.
44820 (gpt_partition_map_iterate): Adjust partition type comparison.
44822 Export `entry' as partmap-specific `part.data' struct.
44823 (grub_gpt_header, grub_gpt_partentry): Move from here ...
44825 * include/grub/gpt_partition.h (grub_gpt_header)
44826 (grub_gpt_partentry): ... to here (new file).
44828 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
44830 (grub_gpt_partition_type_bios_boot): New const variable, defined
44831 with macro from `<grub/gpt_partition.h>'.
44833 (setup): Replace `first_start' with `embed_region', which keeps
44834 track of the embed region (and is partmap-agnostic).
44836 Replace find_first_partition_start() with find_usable_region(),
44837 which finds a usable region for embedding using partmap-specific
44838 knowledge (supports PC/MSDOS and GPT).
44840 Fix all assumptions that the embed region start at sector 1, using
44841 `embed_region.start' from now on. Similarly, use `embed_region.end'
44842 rather than `first_start' to calculate available size.
44844 In grub_util_info() message, replace "into after the MBR" with an
44845 indication of the specific sector our embed region starts at.
44847 2008-02-19 Robert Millan <rmh@aybabtu.com>
44849 * DISTLIST: Replace `commands/ieee1275/halt.c' and
44850 `commands/ieee1275/reboot.c' with `commands/halt.c' and
44851 `commands/reboot.c'.
44852 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
44853 (halt_mod_SOURCES): Likewise.
44854 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
44855 (halt_mod_SOURCES): Likewise.
44857 2008-02-17 Christian Franke <franke@computer.org>
44859 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
44861 2008-02-17 Robert Millan <rmh@aybabtu.com>
44863 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
44864 set `first_start' to 0 for non-PC/MSDOS partition maps.
44866 2008-02-16 Robert Millan <rmh@aybabtu.com>
44868 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
44869 do not assume partition map is PC/MSDOS before performing checks that
44870 are specific to that layout.
44872 2008-02-13 Robert Millan <rmh@aybabtu.com>
44874 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
44875 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
44876 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
44878 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
44880 * configure.ac: Only a cosmetic change on the handling of
44881 -fno-stack-protector.
44883 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
44885 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
44886 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
44888 (grub_install_SOURCES): Add halt.mod and reboot.mod.
44889 (halt_mod_SOURCES): New variable.
44890 (halt_mod_CFLAGS): Likewise.
44891 (halt_mod_LDFLAGS): Likewise.
44892 (reboot_mod_SOURCES): Likewise.
44893 (reboot_mod_CFLAGS): Likewise.
44894 (reboot_mod_LDFLAGS): Likewise.
44896 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
44897 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
44899 (halt_mod_SOURCES): Likewise.
44900 (reboot_mod_SOURCES): Likewise.
44902 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
44903 commands/i386/pc/reboot.c by commands/reboot.c.
44904 (reboot_mod_SOURCES): Likewise.
44906 * commands/i386/pc/reboot.c: merge this file ...
44908 * commands/ieee1275/reboot.c: ... and this file ...
44910 * commands/reboot.c: ... to this file.
44911 Add some precompiler directive to include the correct header for
44914 * commands/ieee1275/halt.c: move this file ...
44916 * commands/halt.c: ... to here.
44917 Add some precompiler directive to include the correct header for
44920 * include/grub/efi/efi.h (grub_reboot): New function declaration.
44921 (grub_halt): Likewise.
44923 * kern/efi/efi.c (grub_reboot): New function.
44924 (grub_halt): Likewise.
44926 2008-02-12 Robert Millan <rmh@aybabtu.com>
44928 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
44929 /dev (like it is done for /dev/mapper). This doesn't provide support
44930 for EVMS, but at least it is now easy to identify the problem when it
44933 2008-02-11 Robert Millan <rmh@aybabtu.com>
44935 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
44936 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
44937 comparing it with -1, not 0.
44939 2008-02-10 Robert Millan <rmh@aybabtu.com>
44941 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
44943 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44944 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
44946 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
44947 `disk/lvm.c' to the end of the list.
44948 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44949 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44951 2008-02-10 Robert Millan <rmh@aybabtu.com>
44953 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
44954 grub_print_error() instead. This will let user know why we're entering
44956 Based on suggestions from Sam Morris.
44958 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
44960 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
44961 on remaining N args, instead of "--" arg N times.
44963 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
44965 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
44966 (fill_with_default_glyph): Changed to use unknown_glyph for fill
44967 pattern for unknown glyphs.
44969 2008-02-09 Robert Millan <rmh@aybabtu.com>
44971 * configure.ac: Probe for `help2man'.
44972 * Makefile.in (builddir): New variable.
44973 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
44974 or otherwise add a few flags/options to it.
44975 (install-local): For every executable utility or script that is
44976 installed, invoke $(HELP2MAN) to install a manpage based on --help
44979 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
44980 that it doesn't prevent --help from working in build tree.
44982 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
44983 with `bug-grub@gnu.org'.
44984 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
44985 * util/update-grub.in (usage): New function.
44986 Implement proper argument check, with support for --help and --version
44987 (as well as existing -y).
44989 2008-02-09 Christian Franke <franke@computer.org>
44991 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
44992 avoid overwriting previous output.
44993 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
44995 2008-02-09 Robert Millan <rmh@aybabtu.com>
44997 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45000 2008-02-09 Robert Millan <rmh@aybabtu.com>
45002 * commands/sleep.c: New file.
45003 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45004 (sleep_mod_SOURCES): New variable.
45005 (sleep_mod_CFLAGS): Likewise.
45006 (sleep_mod_LDFLAGS): Likewise.
45008 2008-02-09 Robert Millan <rmh@aybabtu.com>
45010 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45011 situations in which we can deduce the RAID size and the superblock
45014 2008-02-09 Robert Millan <rmh@aybabtu.com>
45016 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45017 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45018 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45020 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45021 and return a grub_diskmemberlist_t composed of physical array members.
45022 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45024 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45026 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45027 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45028 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45030 * util/grub-probe.c (probe): Move partmap probing code from here ...
45031 (probe_partmap): ... to here.
45032 (probe): Use probe_partmap() once for the disk we're probing, and
45033 additionally, when such disk contains a memberlist() struct member,
45034 once for each disk that is contained in the structure returned by
45037 2008-02-09 Robert Millan <rmh@aybabtu.com>
45039 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45040 environment variable to 'all' in order to obtain debug output from
45042 * util/i386/pc/grub-setup.c (main): Likewise.
45044 2008-02-08 Robert Millan <rmh@aybabtu.com>
45046 * disk/raid.c (grub_raid_scan_device): Check for
45047 `array->device[sb.this_disk.number]' rather than for
45048 `array->device[sb.this_disk.number]->name', since the latter is not
45049 guaranteed to be accessible.
45051 2008-02-08 Robert Millan <rmh@aybabtu.com>
45053 * disk/raid.c: Update copyright.
45054 * fs/cpio.c: Likewise.
45055 * include/grub/raid.h: Likewise.
45056 * loader/i386/pc/multiboot.c: Likewise.
45057 * util/hostfs.c: Likewise.
45059 2008-02-08 Robert Millan <rmh@aybabtu.com>
45061 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45062 to a grub_disk_t array.
45063 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45065 (grub_raid_scan_device): Replace `device[x].name' accesses with
45066 `device[x]->name'. Simplify initialization of `array->device[x]'.
45068 2008-02-08 Robert Millan <rmh@aybabtu.com>
45070 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45071 grub_dprintf() calls.
45072 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45075 2008-02-07 Christian Franke <franke@computer.org>
45077 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45078 instead of fseek and ftell to support large files.
45079 (grub_hostfs_read): Likewise.
45081 2008-02-07 Robert Millan <rmh@aybabtu.com>
45083 Patch from Jeroen Dekkers.
45084 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45085 failure, since successfully reading all array members might not be
45088 2008-02-06 Robert Millan <rmh@aybabtu.com>
45090 * util/grub-probe.c (probe): Simplify partmap probing (with the
45091 assumption that the first word up to the underscore equals to
45094 2008-02-06 Christian Franke <franke@computer.org>
45096 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45097 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45098 last block of a cpio or tar stream.
45099 Check for "TRAILER!!!" instead of any empty data
45100 block to detect last block of a cpio stream.
45101 (grub_cpio_dir): Fix constness of variable np.
45102 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45103 cpio or tar trailer is detected. This fixes a crash
45104 on open of a non existing file.
45106 2008-02-05 Bean <bean123ch@gmail.com>
45108 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45110 (grub_multiboot_load_elf64): Likewise.
45111 (grub_multiboot): Initialize mbi structure.
45113 * util/grub-fstest.c: Don't include unused header file script.h.
45115 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45117 (grub_fstest_SOURCES): Likewise.
45119 2008-02-05 Robert Millan <rmh@aybabtu.com>
45121 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45122 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45123 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45124 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45126 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45127 (translation_table): Replace hardcoded values with macros
45128 provided by `<grub/term.h>'.
45130 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45131 (keyboard_map): Correct/add a few values, with macros provided
45132 by `<grub/term.h>'.
45133 (keyboard_map_shift): Zero values that don't differ from their
45134 `keyboard_map' equivalents.
45135 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45136 Discard the second scan code that is always sent by Caps lock.
45137 Only use `keyboard_map_shift' when it provides a non-zero value,
45138 otherwise fallback to `keyboard_map'.
45140 2008-02-04 Bean <bean123ch@gmail.com>
45142 * Makefile.in (enable_grub_fstest): New variable.
45144 * conf/common.rmk (grub_fstest_init.lst): New rule.
45145 (grub_fstest_init.h): Likewise.
45146 (grub_fstest_init.c): Likewise.
45147 (util/grub-fstest.c_DEPENDENCIES): New variable.
45148 (grub_fstest_SOURCES): Likewise.
45150 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45152 * util/grub-fstest.c: New file.
45154 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45156 Make grub-setup handle a separate root device.
45158 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45159 so that the root device can be compared with the destination
45161 When embedding the core image, if the root and destination devices
45162 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45164 When not embedding, set ROOT_DRIVE to 0xFF.
45166 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45168 Add support for having a grub directory in a different drive. This
45169 is still only the data handling part.
45171 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45172 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45173 (grub_root_drive): New variable.
45175 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45176 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45177 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45180 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45182 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45184 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45186 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45187 is bogus, because PXE booting does not specify any drive
45190 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45191 am not sure if this is really correct.
45193 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45194 is always identical to the boot drive when booting from a CD.
45196 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45198 (root_drive): New variable.
45199 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45200 (setup_sectors): Push %dx right after popping it, because %dh will
45202 (copy_buffer): Restore %dx.
45204 2008-02-03 Robert Millan <rmh@aybabtu.com>
45206 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45207 use `cdboot.img' for cdrom images.
45209 2008-02-03 Robert Millan <rmh@aybabtu.com>
45211 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45212 only setup gfxterm when `font' command has succeeded.
45214 2008-02-03 Robert Millan <rmh@aybabtu.com>
45216 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45217 (grub_rescue_cmd_multiboot_loader)
45218 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45220 2008-02-03 Pavel Roskin <proski@gnu.org>
45222 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45223 %edx and %esi from stack only after grub_gate_a20() is called.
45224 grub_gate_a20() clobbers %edx.
45226 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45228 * configure.ac (AC_INIT): Bumped to 1.96.
45230 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45231 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45232 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45233 video/readers/png.c.
45235 2008-02-03 Bean <bean123ch@gmail.com>
45237 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45238 (cdboot_img_SOURCES): New variable.
45239 (cdboot_img_ASFLAGS): New variable.
45240 (cdboot_img_LDFLAGS): New variable.
45242 * boot/i386/pc/cdboot.S: New file.
45244 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45245 (cd_count): Likewise.
45246 (grub_biosdisk_get_drive): Add support for cd device.
45247 (grub_biosdisk_call_hook): Likewise.
45248 (grub_biosdisk_iterate): Likewise.
45249 (grub_biosdisk_open): Likewise.
45250 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45251 (grub_biosdisk_rw): Support reading from cd device.
45252 (GRUB_MOD_INIT): Iterate cd devices.
45254 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45255 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45256 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45258 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45260 2008-02-02 Robert Millan <rmh@aybabtu.com>
45262 * commands/read.c: New file.
45263 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45264 (read_mod_SOURCES): New variable.
45265 (read_mod_CFLAGS): Likewise.
45266 (read_mod_LDFLAGS): Likewise.
45268 2008-02-02 Robert Millan <rmh@aybabtu.com>
45270 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45271 determining whether menu has to be displayed.
45273 2008-02-02 Marco Gerards <marco@gnu.org>
45275 * bus/pci.c: New file.
45277 * include/grub/pci.h: Likewise.
45279 * include/grub/i386/pc/pci.h: Likewise.
45281 * commands/lspci.c: Likewise.
45283 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45285 (pci_mod_SOURCES): New variable.
45286 (pci_mod_CFLAGS): Likewise.
45287 (pci_mod_LDFLAGS): Likewise.
45288 (lspci_mod_SOURCES): Likewise.
45289 (lspci_mod_CFLAGS): Likewise.
45290 (lspci_mod_LDFLAGS): Likewise.
45292 2008-02-02 Bean <bean123ch@gmail.com>
45294 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45295 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45297 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45298 (grub_xfs_btree_node): New structure.
45299 (grub_xfs_btree_root): New structure.
45300 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45301 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45302 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45303 (GRUB_XFS_EXTENT_SIZE): Likewise.
45304 (grub_xfs_read_block): Support btree format type.
45305 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45306 Use directory block as basic unit.
45308 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45310 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45311 __attribute__ ((__regparm__ (1))).
45313 2008-02-01 Robert Millan <rmh@aybabtu.com>
45315 Correct a mistake in previous commit.
45317 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45319 (normal/command.c_DEPENDENCIES): New variable.
45321 2008-02-01 Robert Millan <rmh@aybabtu.com>
45323 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45325 (normal/command.c_DEPENDENCIES): New variable.
45326 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45327 * conf/i386-ieee1275.rmk: Likewise.
45328 * conf/i386-linuxbios.rmk: Likewise.
45329 * conf/i386-pc.rmk: Likewise.
45330 * conf/sparc64-ieee1275.rmk: Likewise.
45331 * conf/powerpc-ieee1275.rmk: Likewise.
45332 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45334 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45336 2008-02-01 Robert Millan <rmh@aybabtu.com>
45338 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45339 call at beginning of function.
45341 2008-01-31 Pavel Roskin <proski@gnu.org>
45343 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
45344 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45345 (grub_mkrescue_SOURCES): Likewise.
45346 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45348 2008-01-30 Robert Millan <rmh@aybabtu.com>
45350 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45351 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45352 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45353 (grub_probe_SOURCES): ... to here.
45355 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45356 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45357 * conf/i386-ieee1275.rmk: Likewise.
45358 * conf/i386-linuxbios.rmk: Likewise.
45359 * conf/powerpc-ieee1275.rmk: Likewise.
45361 2008-01-30 Tristan Gingold <gingold@free.fr>
45363 * kern/rescue.c: Silently accept empty lines.
45365 2008-01-29 Bean <bean123ch@gmail.com>
45367 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45368 (real_code_2): Code cleanup and change comment style.
45369 (move_memory): Avoid using 32-bit address mode.
45371 2008-01-29 Bean <bean123ch@gmail.com>
45373 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45374 (png_mod_SOURCES): New variable.
45375 (png_mod_CFLAGS): Likewise.
45376 (png_mod_LDFLAGS): Likewise.
45378 * video/readers/png.c: New file.
45380 2008-01-28 Robert Millan <rmh@aybabtu.com>
45382 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
45383 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
45384 `ifndef GRUB_MOD_GAP' hack.
45385 * util/elf/grub-mkimage.c (add_segments): Likewise.
45387 2008-01-27 Robert Millan <rmh@aybabtu.com>
45389 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
45390 `GRUB_MOD_GAP' for platforms in which it's not defined.
45391 * util/elf/grub-mkimage.c (add_segments): Likewise.
45393 2008-01-27 Robert Millan <rmh@aybabtu.com>
45395 Get grub-emu to build again (including parallel builds).
45397 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
45399 (util/grub-emu.c_DEPENDENCIES): ... this, ...
45400 (normal/execute.c_DEPENDENCIES): ... this, ...
45401 (grub-emu_DEPENDENCIES): ... and this.
45403 * conf/i386-efi.rmk: Likewise.
45404 * conf/i386-linuxbios.rmk: Likewise.
45405 * conf/i386-ieee1275.rmk: Likewise.
45406 * conf/powerpc-ieee1275.rmk: Likewise.
45407 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
45409 2008-01-27 Robert Millan <rmh@aybabtu.com>
45411 * NEWS: Add a few items.
45413 2008-01-27 Robert Millan <rmh@aybabtu.com>
45415 Fix parallel builds with grub-emu. Based on earlier commit for
45416 grub-probe and grub-setup.
45418 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45419 (util/grub-emu.c_DEPENDENCIES): ... this.
45420 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45421 (util/grub-emu.c_DEPENDENCIES): ... this.
45422 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45423 (util/grub-emu.c_DEPENDENCIES): ... this.
45424 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45425 (util/grub-emu.c_DEPENDENCIES): ... this.
45426 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45427 (util/grub-emu.c_DEPENDENCIES): ... this.
45429 2008-01-27 Pavel Roskin <proski@gnu.org>
45431 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
45432 to create a gap between _end and the modules added to the image
45433 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
45434 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
45435 * util/elf/grub-mkimage.c (add_segments): Likewise.
45437 2008-01-26 Pavel Roskin <proski@gnu.org>
45439 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
45440 just return an error.
45442 2008-01-26 Bean <bean123ch@gmail.com>
45444 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
45445 (grub_reiserfs_get_item): Save offset of the next item.
45446 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
45448 2008-01-25 Robert Millan <rmh@aybabtu.com>
45450 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
45451 make all filesystem sources appear together (possibly fixing omissions
45453 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45454 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45455 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45456 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45458 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
45460 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
45461 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
45462 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
45463 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
45465 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
45466 (probe): Add a sanity check to make sure of our ability to read
45467 requested files when probing for filesystem type.
45469 * genmk.rb: Update copyright year (2007).
45471 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
45472 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
45473 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
45474 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
45475 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
45476 : Remove function prototypes.
45478 2008-01-25 Robert Millan <rmh@aybabtu.com>
45480 Revert my previous commits (based on wrong assumption of how grub_errno
45483 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
45484 * kern/file.c (grub_file_open): Likewise.
45486 2008-01-24 Pavel Roskin <proski@gnu.org>
45488 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
45489 that hang if GRUB tries to setup colors.
45490 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
45491 colors for firmwares that don't support it.
45492 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
45493 Recognize Open Hack'Ware, set flags to work around its
45496 2008-01-24 Robert Millan <rmh@aybabtu.com>
45498 * kern/file.c (grub_file_open): Do not account previous failures of
45499 unrelated functions when grub_errno is checked for.
45500 Reported by Oleg Strikov.
45502 2008-01-24 Bean <bean123ch@gmail.com>
45504 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
45505 (grub_ufs_sblock): New member volume name.
45506 (grub_ufs_find_file): Fix string copy bug.
45507 (grub_ufs_label): Implement this function properly.
45509 * fs/hfs.c (grub_hfs_cnid_type): New enum.
45510 (grub_hfs_iterate_records): Use the correct file number for extents
45511 and catalog file. Fix problem in next index calculation.
45512 (grub_hfs_find_node): Replace recursive function call with loop.
45513 (grub_hfs_iterate_dir): Replace recursive function call with loop.
45515 2008-01-23 Robert Millan <rmh@aybabtu.com>
45517 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
45518 `<grub/symbol.h>' and `<grub/multiboot.h>'.
45519 (grub_multiboot2_real_boot): New function prototype.
45521 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
45522 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
45524 * kern/i386/ieee1275/init.c (grub_os_area_addr)
45525 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
45527 2008-01-23 Robert Millan <rmh@aybabtu.com>
45529 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
45530 #ifdef'ed out grub_printf().
45532 2008-01-23 Robert Millan <rmh@aybabtu.com>
45534 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
45535 grub_dprintf calls, since they make "debug=all" mode unusable.
45536 (grub_console_checkkey): Likewise.
45538 2008-01-23 Robert Millan <rmh@aybabtu.com>
45540 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
45541 `term/i386/pc/at_keyboard.c'.
45542 (pkglib_MODULES): Add `serial.mod'.
45543 (serial_mod_SOURCES): New variable.
45544 (serial_mod_CFLAGS): Likewise.
45545 (serial_mod_LDFLAGS): Likewise.
45547 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
45548 `<grub/powerpc/ieee1275/console.h>'.
45549 (grub_keyboard_controller_init): New function prototype.
45550 (grub_console_checkkey): Likewise.
45551 (grub_console_getkey): Likewise.
45553 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
45556 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
45557 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
45559 2008-01-23 Robert Millan <rmh@aybabtu.com>
45561 * kern/i386/pc/init.c (make_install_device): When memdisk image is
45562 present, "(memdisk)/boot/grub" becomes the default prefix.
45564 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
45565 a memdisk tarball with all the modules. Add --overlay=DIR option that
45566 allows users to overlay additional files into the image.
45568 2008-01-23 Robert Millan <rmh@aybabtu.com>
45570 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
45571 and `machine/memory.h'.
45572 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
45573 (_multiboot_mod_SOURCES): New variable.
45574 (_multiboot_mod_CFLAGS): Likewise.
45575 (_multiboot_mod_LDFLAGS): Likewise.
45576 (multiboot_mod_SOURCES): Likewise.
45577 (multiboot_mod_CFLAGS): Likewise.
45578 (multiboot_mod_LDFLAGS): Likewise.
45580 * include/grub/i386/ieee1275/loader.h: New file.
45582 * include/grub/i386/ieee1275/machine.h: Likewise.
45584 * include/grub/i386/ieee1275/memory.h: Likewise.
45586 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
45587 variable declaration.
45588 (grub_os_area_size): Likewise.
45590 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
45591 (grub_lower_mem, grub_upper_mem): New variables.
45592 (grub_stop_floppy): New function (just to make
45593 grub_multiboot2_real_boot() happy).
45595 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
45596 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
45597 (grub_stop): New function.
45598 Include `"../realmode.S"' and `"../loader.S"'.
45600 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
45601 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
45603 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
45604 rely on grub_multiboot2_real_boot() for final boot.
45606 2008-01-22 Robert Millan <rmh@aybabtu.com>
45608 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
45609 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
45610 device that doesn't look like an SD card.
45611 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
45612 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
45613 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
45614 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
45617 2008-01-22 Robert Millan <rmh@aybabtu.com>
45619 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
45620 avoid claiming over our own code.
45622 2008-01-22 Bean <bean123ch@gmail.com>
45624 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
45625 (jpeg_mod_SOURCES): New variable.
45626 (jpeg_mod_CFLAGS): Likewise.
45627 (jpeg_mod_LDFLAGS): Likewise.
45629 * video/readers/jpeg.c : New file.
45631 2008-01-22 Bean <bean123ch@gmail.com>
45633 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
45634 there are no more items.
45636 2008-01-21 Robert Millan <rmh@aybabtu.com>
45638 * kern/mm.c (grub_mm_init_region): Improve debug message.
45640 2008-01-21 Robert Millan <rmh@aybabtu.com>
45642 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
45643 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
45645 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
45647 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
45648 Indicates start of upper memory.
45649 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
45650 (generate_image): Abort when image size is big enough to corrupt
45653 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
45654 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
45655 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
45656 instead of hardcoding 0xA0000.
45657 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
45658 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
45659 instead of hardcoding 0xA0000.
45661 2008-01-21 Robert Millan <rmh@aybabtu.com>
45663 * disk/memdisk.c (memdisk_size): New variable.
45664 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
45666 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
45667 image to dynamic memory.
45668 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
45669 `memdisk_size'. Free memdisk block.
45671 2008-01-21 Robert Millan <rmh@aybabtu.com>
45673 Fix detection of very small filesystems (like tar).
45675 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
45676 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
45677 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
45678 a problem with this disk).
45680 2008-01-21 Robert Millan <rmh@aybabtu.com>
45682 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
45683 on grub_biosdisk_rw_standard() error.
45685 2008-01-21 Robert Millan <rmh@aybabtu.com>
45687 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
45689 * kern/elf.c: Likewise.
45690 * kern/ieee1275/ieee1275.c: Likewise.
45691 * kern/powerpc/ieee1275/openfw.c: Likewise.
45692 * term/ieee1275/ofconsole.c: Likewise.
45694 2008-01-21 Robert Millan <rmh@aybabtu.com>
45696 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
45698 * include/grub/kernel.h (grub_arch_memdisk_addr)
45699 (grub_arch_memdisk_size): Moved from here ...
45701 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
45702 (grub_arch_memdisk_size): ... to here.
45704 2008-01-21 Robert Millan <rmh@aybabtu.com>
45706 Mostly based on bugfix from Bean.
45708 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
45709 attribute with hook() parameter.
45710 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
45712 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
45713 attribute with hook() parameter.
45714 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
45717 2008-01-21 Robert Millan <rmh@aybabtu.com>
45719 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
45720 (pkglib_MODULES): Add `memdisk.mod'.
45721 (memdisk_mod_SOURCES): New variable.
45722 (memdisk_mod_CFLAGS): Likewise.
45723 (memdisk_mod_LDFLAGS): Likewise.
45725 * disk/memdisk.c: New file.
45727 * include/grub/disk.h (grub_disk_dev_id): Add
45728 `GRUB_DISK_DEVICE_MEMDISK_ID'.
45730 * include/grub/i386/pc/kernel.h
45731 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
45732 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
45733 (grub_kernel_image_size): New variable declaration.
45734 (grub_total_module_size): Likewise.
45735 (grub_memdisk_image_size): Likewise.
45737 * include/grub/i386/pc/memory.h
45738 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
45740 * include/grub/kernel.h: Include `<grub/symbol.h>'.
45741 (grub_arch_memdisk_addr): New variable declaration.
45742 (grub_arch_memdisk_size): Likewise.
45744 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
45745 (grub_arch_memdisk_size): Likewise.
45747 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
45748 (codestart): Replace hardcoded `0x100000' with
45749 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
45751 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
45752 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
45753 not NULL, append the contents of the file it refers to, at the end of
45754 the compressed kernel image. Initialize `grub_memdisk_image_size'
45755 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
45756 (options): Add "memdisk"|'m' option.
45757 (main): Parse --memdisk|-m option, and pass user-provided path as
45758 parameter to generate_image().
45760 2008-01-20 Robert Millan <rmh@aybabtu.com>
45762 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
45763 grub_dprintf() calls from here ...
45764 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
45766 2008-01-20 Robert Millan <rmh@aybabtu.com>
45768 Fix detection of "real mode" when /options/real-mode? doesn't exist.
45770 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
45772 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
45773 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
45774 `GRUB_IEEE1275_FLAG_REAL_MODE'.
45775 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
45777 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
45778 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
45780 2008-01-19 Robert Millan <rmh@aybabtu.com>
45782 Get rid of confusing function (superseded by
45783 `grub_ieee1275_get_integer_property')
45784 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
45786 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
45788 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
45789 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
45790 in native endianness from grub_ieee1275_get_integer_property().
45792 2008-01-19 Robert Millan <rmh@aybabtu.com>
45794 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
45795 command after "shut-down", since implementations differ on which
45796 the command for halt is.
45798 2008-01-19 Robert Millan <rmh@aybabtu.com>
45800 * include/grub/i386/linuxbios/console.h: Add header protection.
45801 (grub_keyboard_controller_init): New function prototype.
45802 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
45803 (KEYBOARD_COMMAND_READ): Likewise.
45804 (KEYBOARD_COMMAND_WRITE): Likewise.
45805 (KEYBOARD_SCANCODE_SET1): Likewise.
45806 (grub_keyboard_controller_write): New function.
45807 (grub_keyboard_controller_read): Likewise.
45808 (grub_keyboard_controller_init): Likewise.
45810 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
45811 (grub_console_init): On coreboot/LinuxBIOS, call
45812 grub_keyboard_controller_init().
45814 2008-01-19 Robert Millan <rmh@aybabtu.com>
45816 PowerPC changes provided by Pavel Roskin.
45818 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
45819 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
45820 don't rely on cmain() doing it.
45821 * kern/i386/ieee1275/startup.S (_start): Store %eax in
45822 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
45824 2008-01-16 Robert Millan <rmh@aybabtu.com>
45826 * include/grub/i386/linuxbios/memory.h
45827 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
45828 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
45829 receive `table_header' as argument. Instead, probe for it in the
45830 known memory ranges where it can be present.
45831 (grub_available_iterate): Do not pass a fixed `table_header' address
45832 to grub_linuxbios_table_iterate().
45834 2008-01-15 Robert Millan <rmh@aybabtu.com>
45836 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
45837 * conf/i386-ieee1275.rmk: New file.
45838 * include/grub/i386/ieee1275/console.h: Likewise.
45839 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
45840 * include/grub/i386/ieee1275/kernel.h: Likewise.
45841 * include/grub/i386/ieee1275/time.h: Likewise.
45842 * kern/i386/ieee1275/init.c: Likewise.
45843 * kern/i386/ieee1275/startup.S: Likewise.
45845 2008-01-15 Robert Millan <rmh@aybabtu.com>
45847 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
45848 when pointers are 32-bit (but still do set it to one when they are
45851 2008-01-15 Robert Millan <rmh@aybabtu.com>
45853 * include/grub/ieee1275/ieee1275.h
45854 (grub_ieee1275_get_integer_property): New function prototype.
45856 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
45857 (grub_ieee1275_get_integer_property): New function. Wraps around
45858 grub_ieee1275_get_property() to handle endianness.
45860 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
45861 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
45863 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
45864 (grub_map): Likewise.
45865 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
45867 2008-01-15 Bean <bean123ch@gmail.com>
45869 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
45870 (grub_script_execute_cmdline): Reset grub_errno.
45872 * normal/main.c (read_config_file): Reset grub_errno.
45874 * normal/parse.y (script_init): New.
45875 (script): Move function and menuentry here.
45877 (command): Add delimiter at the end of command.
45878 (commands): Adjust to match the new command.
45879 (commandblock): Remove grub_script_lexer_record_start.
45880 (menuentry): Add grub_script_lexer_record_start, use the new commands.
45881 (if): Use the new commands.
45883 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
45885 2008-01-15 Robert Millan <rmh@aybabtu.com>
45887 * normal/menu.c (run_menu): Move timeout message from here ...
45888 (print_timeout): ... to here.
45889 (run_menu): Use print_timeout() once during initial draw to print
45890 the whole message, and again in every clock tick to update only
45891 the number of seconds.
45893 2008-01-15 Robert Millan <rmh@aybabtu.com>
45895 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
45896 actual size of `available' from grub_ieee1275_get_property(), and
45897 restrict parsing to that bound.
45899 2008-01-15 Christian Franke <franke@computer.org>
45901 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
45902 (argp_program_version): Remove variable.
45903 (argp_program_bug_address): Likewise.
45904 (options): Convert from struct argp_option to struct option.
45905 (struct arguments): Remove.
45906 (parse_opt): Remove.
45907 (usage): New function.
45908 (main): Replace struct args members by simple variables.
45909 Replace argp_parse() by getopt_long().
45910 Add switch to evaluate options.
45911 Add missing "(...)" around root_dev in prefix string.
45913 2008-01-14 Robert Millan <rmh@aybabtu.com>
45915 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
45916 for grub_ieee1275_exit(), in order to improve portability.
45918 2008-01-14 Robert Millan <rmh@aybabtu.com>
45920 * util/grub.d/10_linux.in (prefix): Define.
45921 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
45923 2008-01-13 Pavel Roskin <proski@gnu.org>
45925 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
45926 grub_errno if no errors have been detected.
45928 2008-01-12 Robert Millan <rmh@aybabtu.com>
45930 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
45931 (grub_util_get_dev_abstraction): New function prototype.
45933 * util/getroot.c: Include `<grub/util/getroot.h>'
45934 (grub_util_get_grub_dev): Move detection of abstraction type to ...
45935 (grub_util_get_dev_abstraction): ... here (new function).
45937 * util/grub-probe.c: Convert PRINT_* to an enum. Add
45938 `PRINT_ABSTRACTION'.
45939 (probe): Probe for abstraction type when requested.
45940 (main): Understand `--target=abstraction'.
45942 * util/i386/efi/grub-install.in: Add abstraction module to core
45943 image when it is found to be necessary.
45944 * util/i386/pc/grub-install.in: Likewise.
45945 * util/powerpc/ieee1275/grub-install.in: Likewise.
45947 * util/update-grub_lib.in (font_path): Return system path without
45948 converting to GRUB path.
45949 * util/update-grub.in: Convert system path returned by font_path()
45950 to a GRUB path. Use `grub-probe -t abstraction' to determine what
45951 abstraction module is needed for loading fonts (if any). Export
45952 that as `GRUB_PRELOAD_MODULES'.
45953 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
45956 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
45958 Remove some unused code from reiserfs.
45960 * fs/reiserfs.c (struct grub_reiserfs_key)
45961 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
45962 (struct grub_reiserfs_node_body): Removed.
45963 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
45965 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45967 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45969 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45971 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
45973 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
45975 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45976 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45977 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45979 2008-01-10 Robert Millan <rmh@aybabtu.com>
45981 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
45982 Determines if a file is garbage left by packaging systems, etc.
45983 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
45984 for processing /etc/grub.d scripts.
45985 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
45986 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
45987 as a condition for processing Linux images.
45989 2008-01-10 Pavel Roskin <proski@gnu.org>
45991 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
45992 to compile reiserfs.c on PowerPC.
45994 2008-01-10 Robert Millan <rmh@aybabtu.com>
45996 * kern/device.c (grub_device_iterate): Do not abort device iteration
45997 when one of the devices cannot be opened.
45998 * kern/disk.c (grub_disk_open): Do not account previous failures of
45999 unrelated functions when grub_errno is checked for.
46001 2008-01-08 Robert Millan <rmh@aybabtu.com>
46003 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46004 `! grub_linux_is_bzimage', change order of address comparison to make
46005 it more intuitive, and improve "too big zImage" error message.
46007 2008-01-08 Robert Millan <rmh@aybabtu.com>
46009 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46010 `$(update-grub_DATA)'.
46011 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46014 2008-01-07 Robert Millan <rmh@aybabtu.com>
46016 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46017 which instruction is modified by grub-setup during installation
46018 (since it wasn't obvious by only looking at this file).
46020 2008-01-07 Robert Millan <rmh@aybabtu.com>
46022 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46023 listing actual TODO items.
46025 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46027 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46029 (grub_reiserfs_get_key_offset): Likewise.
46030 (grub_reiserfs_set_key_offset): Likewise.
46031 (grub_reiserfs_set_key_type): Likewise.
46032 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46034 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46035 better to remove the bitfield version completely.
46037 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46039 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46040 allocated from the heap, due to the fshelp implementation.
46041 (grub_reiserfs_dir): Free NODE, due to the same reason.
46043 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46045 Mostly from Vincent Pelletier:
46047 * fs/reiserfs.c: New file.
46049 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46050 (reiserfs_mod_SOURCES): New variable.
46051 (reiserfs_mod_CFLAGS): Likewise.
46052 (reiserfs_mod_LDFLAGS): Likewise.
46054 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46055 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46056 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46059 2008-01-06 Robert Millan <rmh@aybabtu.com>
46061 * normal/color.c: Remove `<grub/env.h>'.
46063 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46065 * include/grub/normal.h: Include <grub/env.h>.
46067 2008-01-05 Robert Millan <rmh@aybabtu.com>
46069 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46070 usage example with `(hd0,1)'.
46071 Reported by Samuel Thibault.
46073 2008-01-05 Robert Millan <rmh@aybabtu.com>
46075 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46076 (grub_linux_boot_zimage): Rename to ...
46077 (grub_linux_boot): ... this.
46078 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46079 (grub_linux_boot_zimage): Conditionalize zImage copy.
46081 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46082 (grub_linux_boot_bzimage): Remove prototype.
46083 (grub_linux_boot_zimage): Rename to ...
46084 (grub_linux_boot): ... this.
46086 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46087 (grub_linux_boot): Remove function.
46089 2008-01-05 Robert Millan <rmh@aybabtu.com>
46091 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46092 (grub_env_write_color_highlight): Likewise.
46093 (grub_wait_after_message): Likewise.
46095 * normal/color.c: New file.
46097 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46098 (normal_mod_DEPENDENCIES): Likewise.
46100 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46101 (normal_mod_DEPENDENCIES): Likewise.
46103 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46104 (normal_mod_DEPENDENCIES): Likewise.
46106 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46107 (normal_mod_DEPENDENCIES): Likewise.
46109 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46110 for waiting after a message is printed.
46111 * normal/main.c (read_config_file): Likewise.
46112 (grub_normal_init): Register grub_env_write_color_normal() and
46113 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46114 `color_highlight' variables as global.
46116 * normal/menu.c (grub_wait_after_message): New function.
46117 (grub_color_menu_normal): New variable. Replaces ...
46118 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46119 (grub_color_menu_highlight): New variable. Replaces ...
46120 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46121 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46122 `GRUB_TERM_COLOR_STANDARD'.
46123 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46124 `normal_code' and `highlight_code' to `old_color_normal' and
46125 `old_color_highlight', respectively.
46126 (grub_menu_init_page): Update colors when drawing the menu, based on
46127 `menu_color_normal' and `menu_color_highlight' variables.
46128 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46129 a message is printed.
46131 2008-01-05 Robert Millan <rmh@aybabtu.com>
46133 * kern/env.c (grub_env_context_open): Propagate hooks for global
46134 variables to new context.
46136 * kern/main.c (grub_set_root_dev): Export `root' variable.
46138 2008-01-05 Robert Millan <rmh@aybabtu.com>
46140 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46141 discs unconditionally, since udev and others have options to provide
46144 2008-01-05 Robert Millan <rmh@aybabtu.com>
46146 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46148 2008-01-04 Christian Franke <franke@computer.org>
46150 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46153 2008-01-03 Pavel Roskin <proski@gnu.org>
46155 * kern/i386/linuxbios/init.c: Put "void" to all function
46156 declarations with no arguments.
46157 * kern/powerpc/ieee1275/init.c: Likewise.
46158 * term/i386/pc/at_keyboard.c: Likewise.
46159 * term/i386/pc/vga_text.c: Likewise.
46160 * util/grub-mkdevicemap.c: Likewise.
46162 2008-01-02 Robert Millan <rmh@aybabtu.com>
46164 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46165 message when loaded image is out of bounds.
46166 (grub_multiboot_load_elf64): Likewise.
46168 2008-01-02 Pavel Roskin <proski@gnu.org>
46170 * util/grub.d/10_linux.in: Try version without ".old" when
46171 looking for initrd. It's better to use initrd from the newer
46172 kernel of the same version than no initrd at all.
46174 2008-01-01 Robert Millan <rmh@aybabtu.com>
46176 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46178 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46180 * include/grub/video.h: Added grub_video_unmap_color and
46181 grub_video_get_active_render_target.
46182 (grub_video_adapter): Added unmap_color and get_active_render_target.
46184 * video/video.c: Added grub_video_unmap_color and
46185 grub_video_get_active_render_target.
46186 (grub_video_get_info): Changed method to accept NULL pointer as an
46187 argument to allow detection of active video adapter.
46189 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46190 grub_video_vbe_unmap_color_int.
46191 Added grub_video_vbe_unmap_color and
46192 grub_video_vbe_get_active_render_target.
46193 (grub_video_vbe_adapter): Added unmap_color and
46194 get_active_render_target.
46196 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46197 with grub_video_vbe_unmap_color_int.
46199 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46200 (DEFAULT_NORMAL_COLOR): Likewise.
46201 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46202 (DEFAULT_FG_COLOR): Removed.
46203 (DEFAULT_BG_COLOR): Likewise.
46204 (DEFAULT_CURSOR_COLOR): Changed value.
46205 (grub_virtual_screen): Added standard_color_setting,
46206 normal_color_setting, highlight_color_setting and term_color.
46207 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46208 (bitmap_width): Added.
46209 (bitmap_height): Likewise.
46210 (bitmap): Likewise.
46211 (set_term_color): Likewise.
46212 (grub_virtual_screen_setup): Changed to use new terminal coloring
46214 (grub_gfxterm_init): Added init for bitmap.
46215 (grub_gfxterm_fini): Added destroy for bitmap.
46216 (redraw_screen_rect): Updated to use background bitmap and new
46218 (scroll_up): Added optimization for case when there is no bitmap.
46219 (grub_gfxterm_cls): Fixed to use correct background color.
46220 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46222 (grub_virtual_screen_setcolor): Likewise.
46223 (grub_virtual_screen_getcolor): Added.
46224 (grub_gfxterm_background_image_cmd): Likewise.
46225 (grub_video_term): Added setcolor and getcolor.
46226 (MOD_INIT): Added registration of background_image command.
46227 (MOD_TERM): Added unregistration for background_image command.
46229 2007-12-30 Pavel Roskin <proski@gnu.org>
46231 * loader/multiboot_loader.c: Fix multiboot command
46232 unregistration. Fix all typos in the word "multiboot".
46234 2007-12-29 Pavel Roskin <proski@gnu.org>
46236 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46237 support for initrd names used in Fedora.
46239 2007-12-26 Bean <bean123ch@gmail.com>
46241 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46242 (cpio_mod_SOURCES): New variable.
46243 (cpio_mod_CFLAGS): Likewise.
46244 (cpio_mod_LDFLAGS): Likewise.
46246 * fs/cpio.c: New file.
46248 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46250 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46252 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46254 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46256 2007-12-25 Robert Millan <rmh@aybabtu.com>
46258 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46259 (grub_getcolor): New function.
46261 * kern/term.c (grub_getcolor): New function.
46262 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46263 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46264 (print_entry): Set normal and highlight colors to
46265 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46266 respectively, before printing and restore them to old
46268 (grub_menu_init_page): Likewise. Fill an additional colored space
46269 that would otherwise be left blank.
46271 * term/efi/console.c (grub_console_getcolor): New function.
46272 (struct grub_console_term.getcolor): New variable.
46273 * term/i386/pc/console.c (grub_console_getcolor): New function.
46274 (struct grub_console_term.getcolor): New variable.
46275 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46276 (struct grub_console_term.getcolor): New variable.
46278 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46279 (struct grub_console_term.setcolor): Remove variable.
46280 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46281 (struct grub_console_term.setcolor): Remove variable.
46282 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46283 (struct grub_console_term.setcolor): Remove variable.
46284 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46285 (struct grub_console_term.setcolor): Remove variable.
46287 2007-12-25 Robert Millan <rmh@aybabtu.com>
46289 * configure.ac: Search for possible unifont.hex locations, and
46290 define UNIFONT_HEX if found.
46292 * Makefile.in (UNIFONT_HEX): Define variable.
46293 (DATA): Rename to ...
46294 (PKGLIB): ... this. Update all users.
46295 (PKGDATA): New variable.
46296 (pkgdata_IMAGES): Rename to ...
46297 (pkglib_IMAGES): ... this. Update all users.
46298 (pkgdata_MODULES): Rename to ...
46299 (pkglib_MODULES): ... this. Update all users.
46300 (pkgdata_PROGRAMS): Rename to ...
46301 (pkglib_PROGRAMS): ... this. Update all users.
46302 (pkgdata_DATA): Rename to ...
46303 (pkglib_DATA): ... this. Update all users.
46304 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46305 (unicode.pff, ascii.pff): New rules.
46306 (all-local): Add `$(PKGDATA)' dependency.
46307 (install-local): Process `$(PKGDATA)'.
46309 * util/update-grub_lib.in (font_path): Search for *.pff files in
46310 a few more locations, including `${pkgdata}'.
46312 2007-12-23 Robert Millan <rmh@aybabtu.com>
46314 Patch from Bean <bean123ch@gmail.com>:
46315 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46318 2007-12-21 Bean <bean123ch@gmail.com>
46320 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46321 (ntfscomp_mod_SOURCES): New variable.
46322 (ntfscomp_mod_CFLAGS): Likewise.
46323 (ntfscomp_mod_LDFLAGS): Likewise.
46325 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46326 (grub_probe_SOURCES): Likewise.
46327 (grub_emu_SOURCES): Likewise.
46329 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46330 (grub_emu_SOURCES): Likewise.
46332 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46333 (grub_emu_SOURCES): Likewise.
46335 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46336 (grub_emu_SOURCES): Likewise.
46338 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46339 (read_run_list): Renamed to grub_ntfs_read_run_list.
46340 (decomp_nextvcn): Moved to ntfscomp.c.
46341 (decomp_getch): Likewise.
46342 (decomp_get16): Likewise.
46343 (decomp_block): Likewise.
46344 (read_block): Likewise.
46345 (read_data): Partially moved to ntfscomp.c.
46346 (fixup): Change unsigned to grub_uint16_t.
46347 (read_mft): Change unsigned long to grub_uint32_t.
46348 (read_attr): Likewise.
46349 (read_data): Likewise.
46350 (read_run_data): Likewise.
46351 (read_run_list): Likewise.
46352 (read_mft): Likewise.
46354 * fs/ntfscomp.c: New file.
46356 * include/grub/ntfs.h: New file.
46358 2007-12-16 Robert Millan <rmh@aybabtu.com>
46360 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46361 IDE disk check, since Linux is known to support 20 IDE disks.
46362 Reported by Colin Watson.
46364 2007-12-15 Bean <bean123ch@gmail.com>
46366 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46367 (lnxboot_img_SOURCES): New variable.
46368 (lnxboot_img_ASFLAGS): Likewise.
46369 (lnxboot_img_LDFLAGS): Likewise.
46371 * boot/i386/pc/lnxboot.S: New file.
46373 2007-11-24 Pavel Roskin <proski@gnu.org>
46375 * configure.ac: Test if '--build-id=none' is supported by the
46376 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46377 objcopy to generate incorrect binary files (binutils
46378 2.17.50.0.18-1 as shipped by Fedora 8).
46379 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
46380 linking, so that build ID doesn't break the test.
46382 2007-11-24 Pavel Roskin <proski@gnu.org>
46384 * include/grub/i386/time.h: use "void" in the argument list
46385 of grub_cpu_idle().
46386 * include/grub/powerpc/time.h: Likewise.
46387 * include/grub/sparc64/time.h: Likewise.
46389 2007-11-18 Christian Franke <franke@computer.org>
46391 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
46392 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
46393 This fixes the problem that function keys did not work in grub-emu.
46395 2007-11-18 Christian Franke <franke@computer.org>
46397 * disk/host.c (grub_host_open): Remove attribute unused from
46398 name parameter. Add check for "host". This fixes the problem
46399 that grub-emu does not find partitions.
46401 2007-11-18 Christian Franke <franke@computer.org>
46403 * util/hostfs.c (is_dir): New function.
46404 (grub_hostfs_dir): Handle missing dirent.d_type case.
46405 (grub_hostfs_read): Add missing fseek().
46406 (grub_hostfs_label): Clear label pointer. This fixes a crash
46407 of grub-emu on "ls (host)".
46409 2007-11-18 Christian Franke <franke@computer.org>
46411 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
46412 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
46413 to 64 bit boundary by default.
46415 2007-11-18 Bean <bean123ch@gmail.com>
46417 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
46418 (hexdump_mod_SOURCES): New variable.
46419 (hexdump_mod_CFLAGS): Likewise.
46420 (hexdump_mod_LDFLAGS): Likewise.
46422 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46424 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46426 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46428 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46430 * include/grub/hexdump.h: New file.
46432 * commands/hexdump.c: New file.
46434 2007-11-10 Robert Millan <rmh@aybabtu.com>
46436 * commands/i386/pc/play.c (beep_off): Switch order of arguments
46437 in grub_outb() calls.
46438 (beep_on): Likewise.
46440 2007-11-10 Christian Franke <franke@computer.org>
46442 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
46443 (grub_menu_run): Likewise.
46445 2007-11-10 Robert Millan <rmh@aybabtu.com>
46447 * include/grub/i386/efi/machine.h: New file.
46448 * include/grub/i386/linuxbios/machine.h: Likewise.
46449 * include/grub/i386/pc/machine.h: Likewise.
46450 * include/grub/powerpc/ieee1275/machine.h: Likewise.
46451 * include/grub/sparc64/ieee1275/machine.h: Likewise.
46453 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
46454 (serial_hw_io_addr): New variable.
46455 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
46456 instead of `(unsigned short *) 0x400'.
46458 2007-11-10 Bean <bean123ch@gmail.com>
46460 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
46462 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
46464 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
46465 (vga_mod_SOURCES): Added.
46466 (vga_mod_CFLAGS): Likewise.
46467 (vga_mod_LDFLAGS): Likewise.
46469 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
46471 (set_map_mask): Likewise.
46472 (set_read_map): Likewise.
46473 (set_read_address): Likewise.
46474 (vga_font): Removed variable.
46475 (get_vga_glyph): Removed function.
46476 (invalidate_char): Likewise.
46477 (write_char): Changed to use grub_font_get_glyph() for font
46479 (grub_vga_putchar): Likewise.
46480 (grub_vga_getcharwidth): Likewise.
46482 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
46484 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
46486 (pxeboot_img_LDFLAGS): Likewise.
46487 (diskboot_img_LDFLAGS): Likewise.
46488 (kernel_img_LDFLAGS): Likewise.
46490 2007-11-06 Robert Millan <rmh@aybabtu.com>
46492 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
46493 in grub_outb() calls.
46494 (serial_hw_init): Likewise.
46496 2007-11-05 Robert Millan <rmh@aybabtu.com>
46498 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
46499 spaces. Skip non-regular files.
46501 2007-11-05 Robert Millan <rmh@aybabtu.com>
46503 * kern/disk.c (grub_disk_firmware_fini)
46504 (grub_disk_firmware_is_tainted): New variables.
46506 * include/grub/disk.h (grub_disk_firmware_fini)
46507 (grub_disk_firmware_is_tainted): Likewise.
46509 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
46510 (grub_disk_biosdisk_fini): ... to here.
46511 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
46512 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
46513 is set. Register grub_disk_biosdisk_fini() in
46514 `grub_disk_firmware_fini'.
46516 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
46517 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
46518 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
46519 to finish existing firmware disk interface.
46521 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
46522 (ata_mod_SOURCES): New variable.
46523 (ata_mod_CFLAGS): Likewise.
46524 (ata_mod_LDFLAGS): Likewise.
46526 2007-11-05 Robert Millan <rmh@aybabtu.com>
46528 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
46529 (grub_ata_wait): Reimplement using grub_millisleep().
46531 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
46532 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
46534 2007-11-03 Marco Gerards <marco@gnu.org>
46536 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
46537 (CRTC_ADDR_PORT): New macro.
46538 (CRTC_DATA_PORT): Likewise.
46539 (CRTC_CURSOR): Likewise.
46540 (CRTC_CURSOR_ADDR_HIGH): Likewise.
46541 (CRTC_CURSOR_ADDR_LOW): Likewise.
46542 (update_cursor): New function.
46543 (grub_console_real_putchar): Call `update_cursor'.
46544 (grub_console_gotoxy): Likewise.
46545 (grub_console_cls): Set the default color when clearing the
46547 (grub_console_setcursor): Implemented.
46549 2007-11-03 Marco Gerards <marco@gnu.org>
46551 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
46553 (grub_ata_pio_write): Likewise.
46555 (grub_atapi_identify): Wait after issuing an ATA command.
46556 (grub_atapi_packet): Likewise.
46557 (grub_ata_identify): Likewise.
46558 (grub_ata_readwrite): Likewise.
46560 2007-11-03 Marco Gerards <marco@gnu.org>
46562 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
46563 (grub_ata_pio_write): Likewise.
46564 (grub_ata_readwrite): Use `grub_error', instead of
46565 returning `grub_errno'.
46567 2007-11-03 Marco Gerards <marco@gnu.org>
46569 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
46570 grub_ata_pio_write once for every single sector, instead of for
46573 2007-10-31 Robert Millan <rmh@aybabtu.com>
46575 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
46577 * conf/i386-linuxbios.rmk: New file.
46579 * kern/i386/pc/hardware.c: Likewise.
46580 * term/i386/pc/at_keyboard.c: Likewise.
46581 * term/i386/pc/vga_text.c: Likewise.
46583 * include/grub/i386/linuxbios/boot.h: Likewise.
46584 * include/grub/i386/linuxbios/console.h: Likewise.
46585 * include/grub/i386/linuxbios/init.h: Likewise.
46586 * include/grub/i386/linuxbios/kernel.h: Likewise.
46587 * include/grub/i386/linuxbios/loader.h: Likewise.
46588 * include/grub/i386/linuxbios/memory.h: Likewise.
46589 * include/grub/i386/linuxbios/serial.h: Likewise.
46590 * include/grub/i386/linuxbios/time.h: Likewise.
46592 * kern/i386/linuxbios/init.c: Likewise.
46593 * kern/i386/linuxbios/startup.S: Likewise.
46594 * kern/i386/linuxbios/table.c: Likewise.
46596 2007-10-31 Marco Gerards <marco@gnu.org>
46598 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
46599 (ata_mod_SOURCES): New variable.
46600 (ata_mod_CFLAGS): Likewise.
46601 (ata_mod_LDFLAGS): Likewise.
46603 * disk/ata.c: New file.
46605 * include/grub/disk.h (grub_disk_dev_id): Add
46606 `GRUB_DISK_DEV_ATA_ID'.
46608 2007-10-31 Robert Millan <rmh@aybabtu.com>
46610 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
46611 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
46613 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
46614 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
46616 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
46619 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
46621 2007-10-27 Robert Millan <rmh@aybabtu.com>
46623 * include/grub/types.h (ULONG_MAX): Define macro.
46625 2007-10-22 Robert Millan <rmh@aybabtu.com>
46627 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
46629 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
46631 2007-10-22 Robert Millan <rmh@aybabtu.com>
46633 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
46634 (pkgdata_MODULES): Add `biosdisk.mod'.
46635 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
46638 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
46639 (grub_biosdisk_init): Replace with ...
46640 (GRUB_MOD_INIT(biosdisk)): ... this.
46641 (grub_biosdisk_fini): Replace with ...
46642 (GRUB_MOD_FINI(biosdisk)): ... this.
46644 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
46645 (grub_machine_init): Remove call to grub_biosdisk_init().
46646 (grub_machine_fini): Remove call to grub_machine_fini().
46648 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
46650 2007-10-22 Robert Millan <rmh@aybabtu.com>
46652 * include/grub/time.h: New file.
46653 * include/grub/i386/time.h: Likewise.
46654 * include/grub/powerpc/time.h: Likewise.
46655 * include/grub/sparc64/time.h: Likewise.
46657 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
46659 (KERNEL_MACHINE_TIME_HEADER): ... this.
46660 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
46662 (KERNEL_MACHINE_TIME_HEADER): ... this.
46663 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
46665 (KERNEL_MACHINE_TIME_HEADER): ... this.
46667 * kern/i386/efi/init.c: Include `<grub/time.h>'.
46668 (grub_millisleep): New function.
46669 * kern/i386/pc/init.c: Include `<grub/time.h>'.
46670 (grub_millisleep): New function.
46671 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
46672 Remove `grub/machine/time.h' include.
46673 (grub_millisleep): New function.
46674 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
46675 Remove `grub/machine/time.h' include.
46676 (grub_millisleep): New function.
46678 * include/grub/misc.h (grub_div_roundup): New function.
46680 * kern/misc.c: Include `<grub/time.h>'.
46681 (grub_millisleep_generic): New function.
46683 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
46685 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
46687 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
46688 `machine/time.h'. Add `time.h'.
46689 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
46691 2007-10-21 Robert Millan <rmh@aybabtu.com>
46693 * include/grub/misc.h (grub_max): New function.
46695 2007-10-21 Robert Millan <rmh@aybabtu.com>
46697 * util/misc.c (grub_util_info): Call fflush() before returning.
46699 2007-10-20 Robert Millan <rmh@aybabtu.com>
46701 * genmk.rb (Image): Copy `extra_flags' from here ...
46702 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
46704 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
46705 to `argc' and `args' arguments.
46707 2007-10-17 Robert Millan <rmh@aybabtu.com>
46709 * kern/i386/loader.S: New file.
46711 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
46712 * kern/i386/loader.S (grub_linux_prot_size)... to here.
46713 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
46714 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
46715 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
46716 * kern/i386/loader.S (grub_linux_real_addr)... to here.
46717 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
46718 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
46719 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
46720 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
46721 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
46722 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
46723 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
46724 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
46726 * kern/i386/realmode.S: New file.
46728 * kern/i386/pc/startup.S (protstack): Moved from here ...
46729 * kern/i386/realmode.S (protstack)... to here.
46730 * kern/i386/pc/startup.S (gdt): Moved from here ...
46731 * kern/i386/realmode.S (gdt)... to here.
46732 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
46733 * kern/i386/realmode.S (prot_to_real)... to here.
46735 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
46736 `kern/i386/realmode.S'.
46738 2007-10-17 Robert Millan <rmh@aybabtu.com>
46740 * include/grub/i386/loader.h: New file.
46742 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
46743 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
46744 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
46745 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
46746 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
46747 * include/grub/i386/loader.h (grub_linux_prot_size)
46748 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
46749 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
46750 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
46751 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
46753 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
46755 2007-10-15 Robert Millan <rmh@aybabtu.com>
46757 * normal/misc.c (grub_normal_print_device_info): Do not probe for
46758 filesystem when dev->disk is unset.
46759 Do probe for filesystem even when dev->disk->has_partitions is set.
46760 In case a filesystem is found, always report it.
46761 In case it isn't, if dev->disk->has_partitions is set, report that
46762 a partition table was found instead of reporting that no filesystem
46763 could be identified.
46765 2007-10-12 Robert Millan <rmh@aybabtu.com>
46767 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
46768 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
46770 * include/grub/types.h (grub_host_to_target16): New macro.
46771 (grub_host_to_target32): Likewise.
46772 (grub_host_to_target64): Likewise.
46773 (grub_target_to_host16): Likewise.
46774 (grub_target_to_host32): Likewise.
46775 (grub_target_to_host64): Likewise.
46777 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
46778 Renamed from to ...
46779 (GRUB_MOD_ALIGN): ...this. Update all users.
46781 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
46782 grub_host_to_target32.
46783 Replace grub_be_to_cpu32 with grub_target_to_host32.
46784 (load_modules): Likewise.
46785 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
46786 Replace grub_be_to_cpu32 with grub_target_to_host32.
46787 Replace grub_cpu_to_be16 with grub_host_to_target16.
46788 Replace grub_cpu_to_be32 grub_host_to_target32.
46790 2007-10-12 Robert Millan <rmh@aybabtu.com>
46792 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
46793 * util/elf/grub-mkimage.c: ... here.
46795 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
46796 `util/powerpc/ieee1275/grub-mkimage.c'.
46798 2007-10-07 Robert Millan <rmh@aybabtu.com>
46800 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
46801 and make it easier to figure out.
46802 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
46803 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
46804 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
46805 leave us with less than HEAP_MIN_SIZE total heap.
46806 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
46808 2007-10-03 Robert Millan <rmh@aybabtu.com>
46810 * include/grub/i386/io.h: New file.
46811 * commands/i386/pc/play.c (inb): Removed.
46813 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46815 * term/i386/pc/serial.c (inb): Removed.
46817 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46819 * term/i386/pc/vga.c (inb): Removed.
46821 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46824 2007-10-02 Robert Millan <rmh@aybabtu.com>
46826 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
46827 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46828 Reported by Marcin Kurek.
46830 2007-09-07 Robert Millan <rmh@aybabtu.com>
46832 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
46833 SmartFirmware version updates (as released by Sven Luther), and avoid
46834 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
46835 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
46838 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46840 From Hitoshi Ozeki:
46841 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
46842 when merging two regions.
46844 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46846 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
46847 * normal/completion.c (grub_normal_do_completion): Likewise.
46848 Reported by Hitoshi Ozeki.
46850 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46852 Do not use devices at boot in chainloading.
46854 * loader/i386/pc/chainloader.c (boot_drive): New variable.
46855 (boot_part_addr): Likewise.
46856 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
46857 with BOOT_DRIVE and BOOT_PART_ADDR.
46858 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
46859 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
46861 2007-08-29 Robert Millan <rmh@aybabtu.com>
46863 Patch from Simon Peter <dn.tlp@gmx.net>:
46864 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
46865 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
46866 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
46867 util/i386/pc/grub-setup.c_DEPENDENCIES.
46868 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
46869 util/grub-probe.c_DEPENDENCIES.
46870 * conf/powerpc-ieee1275.rmk: Likewise.
46872 2007-08-28 Robert Millan <rmh@aybabtu.com>
46874 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
46875 to tell grub-mkdevicemap how to name devices.
46876 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
46879 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
46880 util/i386/get_disk_name.c.
46881 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
46882 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
46883 util/ieee1275/get_disk_name.c.
46885 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
46887 * DISTLIST: Add util/i386/get_disk_name.c and
46888 util/ieee1275/get_disk_name.c.
46890 * util/grub-mkdevicemap.c: Replace device naming logic with
46891 grub_util_get_disk_name() calls.
46893 2007-08-20 Robert Millan <rmh@aybabtu.com>
46895 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
46896 (so that it works for both plural and singular quantities).
46898 2007-08-05 Robert Millan <rmh@aybabtu.com>
46900 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
46901 so that [xz] isn't taken into account when determining order.
46903 2007-08-02 Marco Gerards <marco@gnu.org>
46905 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
46906 `include/multiboot2.h', `include/grub/elfload.h',
46907 `include/multiboot.h', `include/grub/multiboot.h',
46908 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
46909 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
46910 `kern/elf.c', `loader/multiboot_loader.c',
46911 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
46912 `loader/i386/pc/multiboot2.c',
46913 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
46914 `util/i386/pc/grub-mkrescue.in'. Remove
46915 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
46916 `include/grub/i386/pc/util/biosdisk.h' and
46917 `include/grub/powerpc/ieee1275/multiboot.h'.
46919 2007-08-02 Bean <bean123ch@gmail.com>
46921 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
46922 (ntfs_mod_SOURCES): New variable.
46923 (ntfs_mod_CFLAGS): Likewise.
46924 (ntfs_mod_LDFLAGS): Likewise.
46926 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
46927 (grub_probe_SOURCES): Likewise.
46928 (grub_emu_SOURCES): Likewise.
46930 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
46931 (grub_emu_SOURCES): Likewise.
46933 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
46934 (grub_emu_SOURCES): Likewise.
46936 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
46938 * fs/ntfs.c: New file.
46940 2007-08-02 Bean <bean123ch@gmail.com>
46942 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
46944 * file.h (grub_file): Likewise.
46946 * fshelp.h (grub_fshelp_read_file): Likewise.
46948 * util/i386/pc/grub-setup.c (setup): Likewise.
46949 (save_first_sector): Likewise.
46950 (save_blocklists): Likewise.
46952 * fs/affs.c (grub_affs_read_file): Likewise.
46954 * fs/ext2.c (grub_ext2_read_file): Likewise.
46956 * fs/fat.c (grub_fat_read_data): Likewise.
46958 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
46960 * fs/hfs.c (grub_hfs_read_file): Likewise.
46962 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
46964 * fs/jfs.c (grub_jfs_read_file): Likewise.
46966 * fs/minix.c (grub_minix_read_file): Likewise.
46968 * fs/sfs.c (grub_sfs_read_file): Likewise.
46970 * fs/ufs.c (grub_ufs_read_file): Likewise.
46972 * fs/xfs.c (grub_xfs_read_file): Likewise.
46974 * command/blocklist.c (read_blocklist): Likewise.
46975 (print_blocklist): Likewise.
46977 2007-08-02 Marco Gerards <marco@gnu.org>
46979 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
46982 * disk/host.c: New file.
46984 * util/hostfs.c: Likewise.
46986 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
46987 return `GRUB_ERR_BAD_FS'.
46988 * fs/sfs.c (grub_sfs_mount): Likewise.
46989 * fs/xfs.c (grub_xfs_mount): Likewise.
46991 * include/grub/disk.h (enum grub_disk_dev_id): Add
46992 `GRUB_DISK_DEVICE_HOST_ID'.
46994 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
46996 2007-07-24 Jerone Young <jerone@gmail.com>
46998 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
46999 modules for compilation.
47000 * conf/powerpc-ieee1275.rmk: Likewise.
47002 * include/multiboot.h: Move multiboot definitions to one file. Rename
47003 many definitions to not get grub specific.
47004 * include/multiboot2.h: Create header with multiboot 2 definitions.
47005 * include/grub/multiboot.h: Header for grub specific function
47006 prototypes and definitions.
47007 * include/grub/multiboot2.h: Likewise.
47008 * include/grub/multiboot_loader.h: Likewise.
47009 * include/grub/i386/pc/multiboot.h: Removed.
47010 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47012 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47013 and 2 to allow for one multiboot and module commands.
47014 * loader/multiboot2.c: Add multiboot2 functionality.
47015 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47016 and definition names.
47017 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47019 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47020 ieee1275 specific multiboot2 code.
47022 * kern/i386/pc/startup.S: Change headers and definition names for
47023 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47025 2007-07-22 Robert Millan <rmh@aybabtu.com>
47027 * geninitheader.sh: Process file specified in first parameter rather
47028 than hardcoding grub_modules_init.lst.
47029 * geninit.sh: Likewise. Also, construct header name dynamically rather
47030 than hardcoding grub_modules_init.h.
47032 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47033 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47034 grub_probe_init.[ch] and grub_setup_init.[ch].
47036 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47037 grub_modules_init.h with grub_emu_init.h.
47038 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47039 grub_probe_init.[ch] files.
47040 * conf/i386-efi.rmk: Likewise.
47041 * conf/i386-pc.rmk: Likewise.
47042 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47043 grub_setup_init.[ch] files.
47045 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47046 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47047 to initialize modules rather than a list of hardcoded functions.
47048 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47049 grub_init_all() to initialize modules rather than a list of hardcoded
47052 2007-07-22 Robert Millan <rmh@aybabtu.com>
47054 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47055 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47057 2007-07-22 Robert Millan <rmh@aybabtu.com>
47059 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47060 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47061 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47062 flag when running on SmartFirmware.
47063 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47064 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47067 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47068 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47069 rather than decreasing it.
47071 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47072 there's not enough space to do it, fail in the same way as when it
47073 can't be done because there are no partitions.
47075 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47076 when nvsetenv failed.
47078 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47080 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47081 because this rule is automatically generated.
47082 (grub-mkrescue): Removed for the same reason as above.
47084 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47086 Migrate to GNU General Public License Version 3.
47088 * COPYING: Replaced with the plain text version of GPLv3.
47090 * config.guess: Updated from gnulib.
47091 * config.sub: Likewise.
47093 * geninit.sh: Output a GPLv3 copyright notice.
47094 * geninitheader.sh: Likewise.
47095 * genmodsrc.sh: Likewise.
47096 * gensymlist.sh.in: Likewise.
47098 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47099 * boot/i386/pc/diskboot.S: Likewise.
47100 * boot/i386/pc/pxeboot.S: Likewise.
47101 * commands/blocklist.c: Likewise.
47102 * commands/boot.c: Likewise.
47103 * commands/cat.c: Likewise.
47104 * commands/cmp.c: Likewise.
47105 * commands/configfile.c: Likewise.
47106 * commands/echo.c: Likewise.
47107 * commands/help.c: Likewise.
47108 * commands/ls.c: Likewise.
47109 * commands/search.c: Likewise.
47110 * commands/terminal.c: Likewise.
47111 * commands/test.c: Likewise.
47112 * commands/videotest.c: Likewise.
47113 * commands/i386/cpuid.c: Likewise.
47114 * commands/i386/pc/halt.c: Likewise.
47115 * commands/i386/pc/play.c: Likewise.
47116 * commands/i386/pc/reboot.c: Likewise.
47117 * commands/i386/pc/vbeinfo.c: Likewise.
47118 * commands/i386/pc/vbetest.c: Likewise.
47119 * commands/ieee1275/halt.c: Likewise.
47120 * commands/ieee1275/reboot.c: Likewise.
47121 * commands/ieee1275/suspend.c: Likewise.
47122 * disk/loopback.c: Likewise.
47123 * disk/lvm.c: Likewise.
47124 * disk/raid.c: Likewise.
47125 * disk/efi/efidisk.c: Likewise.
47126 * disk/i386/pc/biosdisk.c: Likewise.
47127 * disk/ieee1275/ofdisk.c: Likewise.
47128 * font/manager.c: Likewise.
47129 * fs/affs.c: Likewise.
47130 * fs/ext2.c: Likewise.
47131 * fs/fat.c: Likewise.
47132 * fs/fshelp.c: Likewise.
47133 * fs/hfs.c: Likewise.
47134 * fs/hfsplus.c: Likewise.
47135 * fs/iso9660.c: Likewise.
47136 * fs/jfs.c: Likewise.
47137 * fs/minix.c: Likewise.
47138 * fs/sfs.c: Likewise.
47139 * fs/ufs.c: Likewise.
47140 * fs/xfs.c: Likewise.
47141 * hello/hello.c: Likewise.
47142 * include/grub/acorn_filecore.h: Likewise.
47143 * include/grub/arg.h: Likewise.
47144 * include/grub/bitmap.h: Likewise.
47145 * include/grub/boot.h: Likewise.
47146 * include/grub/cache.h: Likewise.
47147 * include/grub/device.h: Likewise.
47148 * include/grub/disk.h: Likewise.
47149 * include/grub/dl.h: Likewise.
47150 * include/grub/elfload.h: Likewise.
47151 * include/grub/env.h: Likewise.
47152 * include/grub/err.h: Likewise.
47153 * include/grub/file.h: Likewise.
47154 * include/grub/font.h: Likewise.
47155 * include/grub/fs.h: Likewise.
47156 * include/grub/fshelp.h: Likewise.
47157 * include/grub/gzio.h: Likewise.
47158 * include/grub/hfs.h: Likewise.
47159 * include/grub/kernel.h: Likewise.
47160 * include/grub/loader.h: Likewise.
47161 * include/grub/lvm.h: Likewise.
47162 * include/grub/misc.h: Likewise.
47163 * include/grub/mm.h: Likewise.
47164 * include/grub/net.h: Likewise.
47165 * include/grub/normal.h: Likewise.
47166 * include/grub/parser.h: Likewise.
47167 * include/grub/partition.h: Likewise.
47168 * include/grub/pc_partition.h: Likewise.
47169 * include/grub/raid.h: Likewise.
47170 * include/grub/rescue.h: Likewise.
47171 * include/grub/script.h: Likewise.
47172 * include/grub/setjmp.h: Likewise.
47173 * include/grub/symbol.h: Likewise.
47174 * include/grub/term.h: Likewise.
47175 * include/grub/terminfo.h: Likewise.
47176 * include/grub/tparm.h: Likewise.
47177 * include/grub/types.h: Likewise.
47178 * include/grub/video.h: Likewise.
47179 * include/grub/efi/api.h: Likewise.
47180 * include/grub/efi/chainloader.h: Likewise.
47181 * include/grub/efi/console.h: Likewise.
47182 * include/grub/efi/console_control.h: Likewise.
47183 * include/grub/efi/disk.h: Likewise.
47184 * include/grub/efi/efi.h: Likewise.
47185 * include/grub/efi/pe32.h: Likewise.
47186 * include/grub/efi/time.h: Likewise.
47187 * include/grub/i386/linux.h: Likewise.
47188 * include/grub/i386/setjmp.h: Likewise.
47189 * include/grub/i386/types.h: Likewise.
47190 * include/grub/i386/efi/kernel.h: Likewise.
47191 * include/grub/i386/efi/loader.h: Likewise.
47192 * include/grub/i386/efi/time.h: Likewise.
47193 * include/grub/i386/pc/biosdisk.h: Likewise.
47194 * include/grub/i386/pc/boot.h: Likewise.
47195 * include/grub/i386/pc/chainloader.h: Likewise.
47196 * include/grub/i386/pc/console.h: Likewise.
47197 * include/grub/i386/pc/init.h: Likewise.
47198 * include/grub/i386/pc/kernel.h: Likewise.
47199 * include/grub/i386/pc/loader.h: Likewise.
47200 * include/grub/i386/pc/memory.h: Likewise.
47201 * include/grub/i386/pc/multiboot.h: Likewise.
47202 * include/grub/i386/pc/serial.h: Likewise.
47203 * include/grub/i386/pc/time.h: Likewise.
47204 * include/grub/i386/pc/vbe.h: Likewise.
47205 * include/grub/i386/pc/vbeblit.h: Likewise.
47206 * include/grub/i386/pc/vbefill.h: Likewise.
47207 * include/grub/i386/pc/vbeutil.h: Likewise.
47208 * include/grub/i386/pc/vga.h: Likewise.
47209 * include/grub/ieee1275/ieee1275.h: Likewise.
47210 * include/grub/ieee1275/ofdisk.h: Likewise.
47211 * include/grub/powerpc/libgcc.h: Likewise.
47212 * include/grub/powerpc/setjmp.h: Likewise.
47213 * include/grub/powerpc/types.h: Likewise.
47214 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47215 * include/grub/powerpc/ieee1275/console.h: Likewise.
47216 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47217 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47218 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47219 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47220 * include/grub/powerpc/ieee1275/time.h: Likewise.
47221 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47222 * include/grub/sparc64/libgcc.h: Likewise.
47223 * include/grub/sparc64/setjmp.h: Likewise.
47224 * include/grub/sparc64/types.h: Likewise.
47225 * include/grub/sparc64/ieee1275/console.h: Likewise.
47226 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47227 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47228 * include/grub/sparc64/ieee1275/time.h: Likewise.
47229 * include/grub/util/biosdisk.h: Likewise.
47230 * include/grub/util/getroot.h: Likewise.
47231 * include/grub/util/lvm.h: Likewise.
47232 * include/grub/util/misc.h: Likewise.
47233 * include/grub/util/raid.h: Likewise.
47234 * include/grub/util/resolve.h: Likewise.
47235 * io/gzio.c: Likewise.
47236 * kern/device.c: Likewise.
47237 * kern/disk.c: Likewise.
47238 * kern/dl.c: Likewise.
47239 * kern/elf.c: Likewise.
47240 * kern/env.c: Likewise.
47241 * kern/err.c: Likewise.
47242 * kern/file.c: Likewise.
47243 * kern/fs.c: Likewise.
47244 * kern/loader.c: Likewise.
47245 * kern/main.c: Likewise.
47246 * kern/misc.c: Likewise.
47247 * kern/mm.c: Likewise.
47248 * kern/parser.c: Likewise.
47249 * kern/partition.c: Likewise.
47250 * kern/rescue.c: Likewise.
47251 * kern/term.c: Likewise.
47252 * kern/efi/efi.c: Likewise.
47253 * kern/efi/init.c: Likewise.
47254 * kern/efi/mm.c: Likewise.
47255 * kern/i386/dl.c: Likewise.
47256 * kern/i386/efi/init.c: Likewise.
47257 * kern/i386/efi/startup.S: Likewise.
47258 * kern/i386/pc/init.c: Likewise.
47259 * kern/i386/pc/lzo1x.S: Likewise.
47260 * kern/i386/pc/startup.S: Likewise.
47261 * kern/ieee1275/ieee1275.c: Likewise.
47262 * kern/powerpc/cache.S: Likewise.
47263 * kern/powerpc/dl.c: Likewise.
47264 * kern/powerpc/ieee1275/cmain.c: Likewise.
47265 * kern/powerpc/ieee1275/crt0.S: Likewise.
47266 * kern/powerpc/ieee1275/init.c: Likewise.
47267 * kern/powerpc/ieee1275/openfw.c: Likewise.
47268 * kern/sparc64/cache.S: Likewise.
47269 * kern/sparc64/dl.c: Likewise.
47270 * kern/sparc64/ieee1275/init.c: Likewise.
47271 * kern/sparc64/ieee1275/openfw.c: Likewise.
47272 * loader/efi/chainloader.c: Likewise.
47273 * loader/efi/chainloader_normal.c: Likewise.
47274 * loader/i386/efi/linux.c: Likewise.
47275 * loader/i386/efi/linux_normal.c: Likewise.
47276 * loader/i386/pc/chainloader.c: Likewise.
47277 * loader/i386/pc/chainloader_normal.c: Likewise.
47278 * loader/i386/pc/linux.c: Likewise.
47279 * loader/i386/pc/linux_normal.c: Likewise.
47280 * loader/i386/pc/multiboot.c: Likewise.
47281 * loader/i386/pc/multiboot_normal.c: Likewise.
47282 * loader/powerpc/ieee1275/linux.c: Likewise.
47283 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47284 * normal/arg.c: Likewise.
47285 * normal/cmdline.c: Likewise.
47286 * normal/command.c: Likewise.
47287 * normal/completion.c: Likewise.
47288 * normal/execute.c: Likewise.
47289 * normal/function.c: Likewise.
47290 * normal/lexer.c: Likewise.
47291 * normal/main.c: Likewise.
47292 * normal/menu.c: Likewise.
47293 * normal/menu_entry.c: Likewise.
47294 * normal/misc.c: Likewise.
47295 * normal/parser.y: Likewise.
47296 * normal/script.c: Likewise.
47297 * normal/i386/setjmp.S: Likewise.
47298 * normal/powerpc/setjmp.S: Likewise.
47299 * normal/sparc64/setjmp.S: Likewise.
47300 * partmap/acorn.c: Likewise.
47301 * partmap/amiga.c: Likewise.
47302 * partmap/apple.c: Likewise.
47303 * partmap/gpt.c: Likewise.
47304 * partmap/pc.c: Likewise.
47305 * partmap/sun.c: Likewise.
47306 * term/gfxterm.c: Likewise.
47307 * term/terminfo.c: Likewise.
47308 * term/efi/console.c: Likewise.
47309 * term/i386/pc/console.c: Likewise.
47310 * term/i386/pc/serial.c: Likewise.
47311 * term/i386/pc/vesafb.c: Likewise.
47312 * term/i386/pc/vga.c: Likewise.
47313 * term/ieee1275/ofconsole.c: Likewise.
47314 * util/biosdisk.c: Likewise.
47315 * util/console.c: Likewise.
47316 * util/genmoddep.c: Likewise.
47317 * util/getroot.c: Likewise.
47318 * util/grub-emu.c: Likewise.
47319 * util/grub-mkdevicemap.c: Likewise.
47320 * util/grub-probe.c: Likewise.
47321 * util/lvm.c: Likewise.
47322 * util/misc.c: Likewise.
47323 * util/raid.c: Likewise.
47324 * util/resolve.c: Likewise.
47325 * util/update-grub.in: Likewise.
47326 * util/update-grub_lib.in: Likewise.
47327 * util/grub.d/00_header.in: Likewise.
47328 * util/grub.d/10_hurd.in: Likewise.
47329 * util/grub.d/10_linux.in: Likewise.
47330 * util/i386/efi/grub-install.in: Likewise.
47331 * util/i386/efi/grub-mkimage.c: Likewise.
47332 * util/i386/pc/grub-install.in: Likewise.
47333 * util/i386/pc/grub-mkimage.c: Likewise.
47334 * util/i386/pc/grub-mkrescue.in: Likewise.
47335 * util/i386/pc/grub-setup.c: Likewise.
47336 * util/i386/pc/misc.c: Likewise.
47337 * util/powerpc/ieee1275/grub-install.in: Likewise.
47338 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47339 * util/powerpc/ieee1275/misc.c: Likewise.
47340 * video/bitmap.c: Likewise.
47341 * video/video.c: Likewise.
47342 * video/i386/pc/vbe.c: Likewise.
47343 * video/i386/pc/vbeblit.c: Likewise.
47344 * video/i386/pc/vbefill.c: Likewise.
47345 * video/i386/pc/vbeutil.c: Likewise.
47346 * video/readers/tga.c: Likewise.
47348 2007-07-02 Robert Millan <rmh@aybabtu.com>
47350 * conf/i386-efi.rmk: Replace obsolete reference to
47351 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47352 with util/getroot.c.
47353 * conf/powerpc-ieee1275.rmk: Likewise.
47354 * conf/sparc64-ieee1275.rmk: Likewise.
47356 * util/grub-emu.c (main): Fix unchecked pointer handling.
47358 2007-07-02 Robert Millan <rmh@aybabtu.com>
47360 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47361 invocation to fail, in order to support partition-less media.
47363 * util/i386/pc/grub-install.in: Likewise.
47365 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47366 which fs or partmap modules are needed (akin to its sister scripts).
47368 Also use grub-probe to get rid of unportable /proc/mounts check.
47370 Print the same informational message that the other scripts do, before
47373 2007-06-23 Robert Millan <rmh@aybabtu.com>
47375 * util/update-grub_lib.in (font_path): New function. Determine whether
47376 a font file can be found and, if so, echo the GRUB path to it.
47378 * util/update-grub.in: Handle multiple terminals depending on user
47379 input, platform availability and font file presence. Propagate
47380 variables of our findings to /etc/grub.d/ children.
47382 * util/grub.d/00_header.in: Handle multiple terminals, based on
47383 environment setup by update-grub.
47385 2007-06-23 Robert Millan <rmh@aybabtu.com>
47387 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
47389 2007-06-21 Robert Millan <rmh@aybabtu.com>
47391 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
47392 indicate end of data section in kernel image.
47393 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
47394 GRUB_KERNEL_MACHINE_DATA_END.
47396 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
47398 * kern/i386/efi/startup.S: Likewise.
47400 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
47401 during image generation. Implement --prefix option to override this
47403 * util/i386/efi/grub-mkimage.c: Likewise.
47405 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
47406 code to make path relative to its root into a separate function.
47408 * util/i386/pc/grub-install.in: Use newly provided
47409 make_system_path_relative_to_its_root() to convert ${grubdir}, then
47410 pass the result to grub-install --prefix.
47412 2007-06-13 Robert Millan <rmh@aybabtu.com>
47414 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
47415 DEFAULT_DEVICE_MAP.
47416 * util/grub-emu.c: Use above definitions from misc.h instead of
47418 * util/grub-mkdevicemap.c: Likewise.
47419 * util/i386/pc/grub-setup.c: Likewise.
47420 * util/grub-probe.c: Likewise.
47421 (probe): Abort with grub_util_error() when either
47422 grub_guess_root_device or grub_util_get_grub_dev fails.
47424 2007-06-12 Robert Millan <rmh@aybabtu.com>
47426 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
47427 "pager" assignment.
47428 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
47430 * util/grub-probe.c (probe): Likewise for "drive_name".
47432 2007-06-11 Robert Millan <rmh@aybabtu.com>
47434 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
47435 not just the cdrom one.
47437 2007-06-11 Robert Millan <rmh@aybabtu.com>
47439 * util/i386/pc/grub-mkrescue.in: Add "set -e".
47440 Add --pkglibdir=DIR option to override pkglibdir.
47441 Mention --image-type=TYPE in help output.
47442 Fix --grub-mkimage (it was a no-op).
47443 Abort gracefully when no parameter is given.
47445 2007-06-11 Robert Millan <rmh@aybabtu.com>
47447 * util/i386/pc/grub-mkrescue.in: New file.
47448 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
47449 * Makefile.in: Handle bin_SCRIPTS.
47451 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
47453 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
47454 list of video modes.
47456 2007-06-06 Robert Millan <rmh@aybabtu.com>
47458 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
47459 file doesn't exist, or if it is in a filesystem grub can't read.
47461 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
47462 not abort if GRUB_DRIVE could not be defined. Rearrange generated
47463 header comment to fit in 80 columns when the variables are resolved.
47465 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
47466 could be identified by update-grub. Remove redundant check for
47467 unifont.pff existence (since convert_system_path_to_grub_path now
47470 2007-06-04 Robert Millan <rmh@aybabtu.com>
47472 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
47474 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
47476 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
47478 2007-06-04 Robert Millan <rmh@aybabtu.com>
47480 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
47482 * include/grub/partition.h: Declare grub_apple_partition_map_init and
47483 grub_apple_partition_map_fini.
47486 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
47487 to access >2 TiB disks).
47489 Print disk->total_sectors with %llu instead of %lu, since this
47490 variable is always 64-bit (prevents wrong disk size from being displayed
47491 on either >2 TiB disk or big-endian CPU).
47493 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
47494 into a generic case that supports all (sane) partition maps.
47496 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
47499 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
47500 and grub_apple_partition_map_fini() after that.
47502 2007-06-01 Robert Millan <rmh@aybabtu.com>
47504 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
47506 * util/grub.d/00_header.in: Only enable gfxterm when
47507 convert_system_path_to_grub_path() succeeds.
47509 2007-05-20 Robert Millan <rmh@aybabtu.com>
47511 * util/update-grub_lib.in: New file.
47512 * DISTLIST: Add update-grub_lib.in.
47513 * conf/common.rmk: Generate update-grub_lib and install it in
47515 * Makefile.in: Add install routine for $(lib_DATA).
47517 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
47518 function provided by update-grub_lib to support arbitrary paths of
47520 * util/update-grub.in: Use convert_system_path_to_grub_path() to
47521 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
47523 2007-05-19 Robert Millan <rmh@aybabtu.com>
47525 * commands/i386/cpuid.c: New module.
47526 * DISTLIST: Add it.
47527 * conf/i386-efi.rmk: Enable cpuid.mod.
47528 * conf/i386-pc.rmk: Likewise.
47530 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
47532 * kern/disk.c (grub_disk_read): Check return value of
47535 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
47537 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
47539 * disk/raid.c (grub_raid_open): Likewise.
47541 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
47543 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
47544 stack instead of on the heap.
47546 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
47547 before doing a read on it.
47549 * configure.ac: Only use -fno-stack-protector for the target
47552 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
47554 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
47555 __attribute_ ((unused)) to mode_type argument.
47557 * util/getroot.c (grub_guess_root_device): Fix #endif.
47559 * kern/misc.c (memcmp): Fix prototype.
47561 * include/grub/partition.h [GRUB_UTIL]
47562 (grub_gpt_partition_map_init): Add prototype.
47563 (grub_gpt_partition_map_fini): Likewise.
47565 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
47566 at the right place.
47568 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
47569 (grub_fat_read_data): Likewise.
47570 (grub_fat_find_dir): Likewise.
47572 * font/manager.c (find_glyph): Make table a const.
47573 (grub_font_get_glyph): Remove bitmap from if statement.
47575 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
47577 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
47578 code, first search for device in /dev/mapper, then in /dev.
47579 (grub_util_get_grub_dev): New function.
47580 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
47582 * util/grub-probe.c (probe): Remove check for RAID, call
47583 grub_util_get_grub_dev() instead of
47584 grub_util_biosdisk_get_grub_dev().
47585 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
47586 grub_util_biosdisk_get_grub_dev().
47587 * util/i386/pc/grub-setup.c (main): Likewise.
47589 2007-05-16 Robert Millan <rmh@aybabtu.com>
47591 * DISTLIST: Update for the latest changes.
47592 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
47593 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
47594 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
47595 grub/util/biosdisk.h.
47596 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
47597 grub/util/biosdisk.h.
47599 2007-05-16 Robert Millan <rmh@aybabtu.com>
47601 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
47603 2007-05-16 Robert Millan <rmh@aybabtu.com>
47605 * util/i386/efi/grub-install.in: New.
47606 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
47607 newly added grub-install.
47608 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
47610 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
47611 grub/util/biosdisk.h.
47612 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
47613 grub/util/biosdisk.h.
47615 2007-05-16 Robert Millan <rmh@aybabtu.com>
47617 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
47618 * include/grub/util/biosdisk.h: ... here.
47619 * util/i386/pc/biosdisk.c: Moved to ...
47620 * util/biosdisk.c: ... here.
47621 * util/i386/pc/getroot.c: Moved to ...
47622 * util/getroot.c: ... here.
47623 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
47624 * util/grub-mkdevicemap.c: ... here.
47625 * util/i386/pc/grub-probe.c: Moved to ...
47626 * util/grub-probe.c: ... here.
47628 2007-05-15 Robert Millan <rmh@aybabtu.com>
47630 * util/update-grub.in: Remove duplicated line in grub.cfg header
47633 2007-05-13 Robert Millan <rmh@aybabtu.com>
47635 * util/update-grub.in: Fix a few assumptions about the devices holding
47636 /, /boot and /boot/grub being the same.
47637 * util/grub.d/00_header.in: Likewise.
47638 * util/grub.d/10_hurd.in: Likewise.
47639 * util/grub.d/10_linux.in: Likewise.
47641 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
47642 patterns. Use that to define the `.old' suffix as older than `'.
47644 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
47646 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
47647 the grub.cfg header message.
47649 2007-05-11 Robert Millan <rmh@aybabtu.com>
47651 * util/update-grub.in: Create device.map if it doesn't already exist,
47652 before attempting to run grub-probe.
47653 Check for grub-probe and grub-mkdevicemap with the same code
47654 grub-install is using.
47657 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
47659 * Makefile.in: Add the datarootdir autoconf variable.
47661 2007-05-09 Robert Millan <rmh@aybabtu.com>
47663 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
47664 fail gracefully if dev->disk->partition == NULL.
47666 2007-05-07 Robert Millan <rmh@aybabtu.com>
47668 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
47669 determine partition map module.
47670 * util/i386/pc/grub-install.in: Use this feature to decide which
47671 partition module to load, instead of hardcoding pc and gpt.
47673 2007-05-07 Robert Millan <rmh@aybabtu.com>
47675 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
47676 source directory differs from build directory.
47678 2007-05-05 Robert Millan <rmh@aybabtu.com>
47680 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
47683 2007-05-05 Robert Millan <rmh@aybabtu.com>
47685 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
47687 2007-05-05 Robert Millan <rmh@aybabtu.com>
47689 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
47690 command-line arguments via ${GRUB_CMDLINE_LINUX}.
47692 2007-05-05 Robert Millan <rmh@aybabtu.com>
47694 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
47695 (grub_probe_SOURCES): Likewise.
47696 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
47697 GPT and initialize dos_part and bsd_part accordingly.
47698 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
47700 (main): Activate gpt module for use during partition identification,
47701 and deactivate it afterwards.
47702 * util/i386/pc/grub-install.in: Add gpt module to core.img.
47703 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
47704 partition identification, and deactivate it afterwards.
47706 2007-05-05 Robert Millan <rmh@aybabtu.com>
47708 * term/i386/pc/console.c (grub_console_fini): Call
47709 grub_term_set_current() before grub_term_unregister().
47711 2007-05-04 Robert Millan <rmh@aybabtu.com>
47713 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
47714 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
47715 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
47716 and update-grub_DATA.
47717 * conf/common.rmk: Build and install update-grub components.
47718 * conf/common.mk: Regenerate.
47719 * util/update-grub.in: New. Core of update-grub.
47720 * util/grub.d/00_header.in: New. Generates grub.cfg header.
47721 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
47722 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
47723 * util/grub.d/README: New. Document grub.d directory layout.
47725 2007-05-01 Robert Millan <rmh@aybabtu.com>
47727 * util/grub-emu.c: Move initialization functions
47728 grub_util_biosdisk_init() and grub_init_all() before
47729 grub_util_biosdisk_get_grub_dev(), which relies on them.
47731 2007-04-19 Robert Millan <rmh@aybabtu.com>
47733 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
47736 2007-04-18 Jerone Young <jerone@gmail.com>
47738 * kernel/elf.c: Add missing parenthesis for conditional statement
47741 2007-04-10 Jerone Young <jerone@gmail.com>
47743 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
47744 continue on and look for device node with real device name.
47746 2007-04-10 Jerone Young <jerone@gmail.com>
47748 * configure.ac: Add argument for autoconf to use transformation
47750 * Makefile.in: Add autoconf package transformation code.
47751 * util/i386/pc/grub-install.in: Likewise.
47752 * util/powerpc/ieee1275/grub-install.in: Likewise.
47754 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
47756 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
47757 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
47758 (EXT2_REVISION): Likewise.
47759 (EXT2_INODE_SIZE): Likewise.
47760 (struct grub_ext2_block_group): Added a missing member
47762 (grub_ext2_read_inode): Divide by the inode size in a superblock
47763 instead of 128 to obtain INODES_PER_BLOCK.
47764 Use the macro EXT2_INODE_SIZE instead of directly using
47765 SBLOCK->INODE_SIZE.
47767 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
47769 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
47770 superblock instead of the structure size to compute an
47771 offset. This fixes the problem that GRUB could not read a
47772 filesystem when inode size is different from 128-byte.
47774 2007-03-05 Marco Gerards <marco@gnu.org>
47776 * normal/main.c (read_config_file): When "menu" is not set, create
47777 an initial context.
47779 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
47781 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
47782 (HEAP_LIMIT): New macro.
47783 (grub_claim_heap): Claim memory up to `heaplimit'.
47785 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
47787 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
47788 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
47789 (_start): Likewise.
47790 (grub_arch_modules_addr): Return address after `_end'.
47791 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
47792 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
47793 (add_segments): Calculate `_end' from phdr size and location.
47794 (ALIGN_UP): Moved to ...
47795 * include/grub/misc.h: here.
47796 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47798 (GRUB_IEEE1275_MODULE_BASE): Removed.
47800 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47802 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
47805 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47807 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
47809 (grub_elf64_load_hook_t): Likewise.
47810 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
47813 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47815 * kern/mm.c: Update copyright.
47816 (grub_mm_debug): Correct syntax error.
47817 (grub_mm_dump_free): New function.
47818 (grub_debug_free): Call `grub_free'.
47819 * include/grub/mm.h: Update copyright.
47820 (grub_mm_dump_free): Add declaration.
47822 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
47824 * include/grub/ieee1275/ieee1275.h: Update copyright.
47825 * kern/powerpc/ieee1275/init.c: Likewise.
47826 * kern/powerpc/ieee1275/openfw.c: Likewise.
47828 * loader/powerpc/ieee1275/linux.c: Likewise.
47829 * include/grub/elfload.h: Likewise.
47830 * kern/elf.c: Likewise.
47831 (grub_elf32_load): Pass `base' and `size' parameters. Update all
47833 (grub_elf64_load): Likewise.
47834 (grub_elf32_load_segment): Move to a nested function.
47835 (grub_elf64_load_segment): Likewise.
47837 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
47839 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
47841 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
47842 (grub_heap_len): Likewise.
47843 (HEAP_SIZE): New macro.
47844 (grub_claim_heap): New function.
47845 (grub_machine_init): Don't claim heap directly. Call
47847 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
47848 (grub_available_iterate): New function.
47850 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
47852 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
47853 * configure.ac: Use it for testing the HOST and TARGET compilers.
47855 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
47857 * Makefile.in (enable_grub_emu): New variable.
47858 * configure.ac (--enable-grub-emu): New option.
47859 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
47860 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
47861 * conf/i386-pc.rmk: Likewise.
47862 * conf/powerpc-ieee1275.rmk: Likewise.
47863 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
47865 2006-12-12 Marco Gerards <marco@gnu.org>
47867 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
47869 * kern/env.c (grub_env_unset): Don't free the member `value' when
47870 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
47873 * normal/main.c (current_menu): Removed.
47874 (free_menu): Unset the `menu' environment variable.
47875 (grub_normal_menu_addentry): Make use of the environment variable
47876 `menu', instead of using the global `current_menu'. Allocate
47877 memory for the sourcecode of this entry.
47878 (read_config_file): New argument `nested', changed all callers.
47879 Only in the case of a new context, initialize a new menu. Set the
47880 `menu' environment variable.
47881 (grub_normal_execute): Don't set and unset the environment
47882 variable `menu' here anymore. Only free the menu when leaving the
47885 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
47888 2006-12-11 Marco Gerards <marco@gnu.org>
47890 * normal/menu_entry.c (run): Fix off by one bug so the last line
47891 is executed. Move the loader check to outside the loop.
47893 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
47895 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
47897 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
47899 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
47900 the number of sectors. Reported by Andrey Shuvikov
47901 <mr_hyro@yahoo.com>.
47903 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
47905 * kern/disk.c (grub_disk_read): When there is a read error, always
47906 try to read only the necessary data.
47908 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
47910 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
47912 [GRUB_UTIL] (grub_raid_fini): Likewise.
47913 [GRUB_UTIL] (grub_lvm_init): Likewise.
47914 [GRUB_UTIL] (grub_lvm_fini): Likewise.
47915 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
47916 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
47917 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
47918 and grub_raid_fini().
47920 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47922 * include/grub/types.h (__unused): Rename to UNUSED.
47923 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
47924 (grub_elf64_size): Likewise.
47926 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
47928 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
47929 grub_error_push and grub_error_pop in the error-handling path.
47930 (grub_elf32_load_segment): Only call grub_file_read with non-zero
47933 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
47935 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
47936 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
47937 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47938 (kernel_elf_SOURCES): Likewise.
47939 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
47940 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
47941 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47942 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47943 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
47944 (elf_mod_SOURCES): New variable.
47945 (elf_mod_CFLAGS): Likewise.
47946 (elf_mod_LDFLAGS): Likewise.
47947 * include/grub/types.h (__unused): New macro.
47948 * include/grub/elfload.h: New file.
47949 * kern/elf.c: Likewise.
47950 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
47951 (ELF32_LOADMASK): New macro.
47952 (ELF64_LOADMASK): Likewise.
47953 (vmlinux): Removed.
47954 (grub_linux_load32): New function.
47955 (grub_linux_load64): Likewise.
47956 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
47957 Use grub_elf_t instead of grub_file_t.
47959 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
47961 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
47962 `catch_result' to struct set_color_args.
47964 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
47966 * normal/menu.c: Include grub/script.h.
47967 * normal/menu_entry.c: Likewise.
47968 * include/grub/normal.h: Do not include grub/script.h.
47970 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47972 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
47974 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47976 * kern/disk.c (grub_disk_open): Print debug messages when opening a
47978 (grub_disk_close): Print debug messages when closing a disk.
47979 (grub_disk_read): Print debug messages when disk read fails.
47980 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
47982 * kern/partition.c: Include misc.h.
47983 (grub_partition_iterate): Print debug messages when detecting
47986 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47988 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
47990 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
47992 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
47994 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47995 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
47997 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
47999 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48000 instead of sizeof(lv). Patch by Michael Guntsche.
48002 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48004 * disk/lvm.c: Rename VGS to VG_LIST.
48005 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48006 (grub_lvm_open): Likewise.
48007 Thanks to Michael Guntsche for finding this bug.
48009 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48011 * configure.ac (AC_INIT): Bumped to 1.95.
48013 2006-10-14 Robert Millan <rmh@aybabtu.com>
48015 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48016 with "/dev/.static/dev/md".
48018 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48020 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48021 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48022 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48023 DRIVE_NAME are always freed.
48025 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48026 DOS_PART, as a DOS partition is counted from one instead of zero
48027 now. Reported by Robert Millan.
48029 2006-10-14 Robert Millan <rmh@aybabtu.com>
48031 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48032 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48033 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48034 string returned by grub_guess_root_device.
48035 * util/i386/pc/grub-setup.c: Likewise.
48036 * util/i386/pc/grub-probefs.c: Likewise.
48038 * util/i386/pc/grub-probefs.c: Rename to ...
48039 * util/i386/pc/grub-probe.c: ... this.
48040 * DISTLIST: Remove grub-probefs, add grub-probe.
48041 * conf/i386-efi.rmk: Likewise.
48042 * conf/i386-pc.rmk: Likewise.
48043 * util/i386/pc/grub-install.in: Likewise.
48045 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48046 choose which information we want to print.
48048 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48050 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48051 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48052 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48053 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48054 video/readers/tga.c and video/i386/pc/vbeutil.c.
48056 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48058 Added support for RAID and LVM.
48060 * disk/lvm.c: New file.
48061 * disk/raid.c: Likewise.
48062 * include/grub/lvm.h: Likewise.
48063 * include/grub/raid.h: Likewise.
48064 * include/grub/util/lvm.h: Likewise.
48065 * include/grub/util/raid.h: Likewise.
48066 * util/lvm.c: Likewise.
48067 * util/raid.c: Likewise.
48069 * include/grub/disk.h (grub_disk_dev_id): Add
48070 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48071 (grub_disk_get_size): New prototype.
48072 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48073 returns a partition.
48074 (grub_disk_get_size): New function.
48076 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48077 verbatim if grub_install_dos_part is -2.
48079 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48082 * util/i386/pc/grub-setup.c (setup): New argument
48083 MUST_EMBED. Force embedding of GRUB when the argument is
48084 true. Close FILE before returning.
48085 (main): Add support for RAID and LVM.
48087 * conf/common.rmk: Add RAID and LVM modules.
48088 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48090 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48092 * kern/misc.c (grub_strstr): New function.
48093 * include/grub/misc.h (grub_strstr): New prototype.
48095 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48097 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48099 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48101 * kern/misc.c (grub_strtoull): Guess the base only if not
48104 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48106 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48109 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48111 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48113 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48114 Remove `flags' argument. All callers changed.
48115 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48116 (IEEE1275_IHANDLE_INVALID): New variable.
48117 (IEEE1275_CELL_INVALID): New variable.
48118 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48119 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48120 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48121 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48122 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48123 codes from Open Firmware. All callers updated.
48124 (grub_ieee1275_next_property): Directly return Open Firmware return
48126 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48127 Standardize error checking from `grub_ieee1275_get_property'.
48128 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48129 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48131 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48133 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48134 `instance_to_package_args' to `instance_to_path_args'.
48136 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48137 `grub_ieee1275_chosen'.
48139 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48140 `grub_ieee1275_interpret'.
48142 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48144 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48146 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48148 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48149 (__cmpdi): Likewise.
48151 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48152 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48155 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48157 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48158 to type `grub_ssize_t'.
48159 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48161 2006-09-22 Marco Gerards <marco@gnu.org>
48163 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48166 2006-09-22 Marco Gerards <marco@gnu.org>
48168 * commands/echo.c: New file.
48170 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48172 * conf/common.rmk (echo_mod_SOURCES): New variable.
48173 (echo_mod_CFLAGS): Likewise.
48174 (echo_mod_LDFLAGS): Likewise.
48176 2006-09-22 Marco Gerards <marco@gnu.org>
48178 * normal/main.c (get_line): Malloc memory instead of using
48179 preallocated memory. Removed the arguments `cmdline' and
48180 `max_len'. Updated all callers.
48182 2006-09-22 Marco Gerards <marco@gnu.org>
48184 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48185 (normal_mod_DEPENDENCIES): Likewise.
48187 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48188 (normal_mod_DEPENDENCIES): Likewise.
48190 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48192 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48194 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48196 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48197 (normal_mod_DEPENDENCIES): Likewise.
48198 * conf/i386-pc.mk: Regenerate.
48199 * conf/i386-efi.mk: Likewise
48200 * conf/common.mk: Likewise.
48201 * conf/powerpc-ieee1275.mk: Likewise.
48202 * conf/sparc64-ieee1275.mk: Likewise.
48204 2006-09-22 Robert Millan <rmh@aybabtu.com>
48206 Sync with i386 version.
48207 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48208 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48210 2006-09-21 Robert Millan <rmh@aybabtu.com>
48212 Import from GRUB Legacy (lib/device.c):
48213 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48214 (init_device_map) [__linux__]: Add support for I2O devices.
48216 2006-09-14 Marco Gerards <marco@gnu.org>
48218 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48221 2006-09-14 Robert Millan <rmh@aybabtu.com>
48223 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48226 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48228 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48229 before adding it to device.map.
48231 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48233 * genmk.rb: Let GCC generate dependencies the first time it
48234 compiles a file; using the -MD option.
48235 * conf/common.mk: Regenerate.
48236 * conf/i386-pc.mk: Likewise.
48237 * conf/i386-efi.mk: Likewise.
48238 * conf/powerpc-ieee1275.mk: Likewise.
48239 * conf/sparc64-ieee1275.mk: Likewise.
48241 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48243 Move the prototypes of grub_setjmp and grub_longjmp to
48244 cpu/setjmp.h, so that each architecture may specify different
48247 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48248 (grub_longjmp): Likewise.
48249 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48250 (grub_longjmp): Likewise.
48251 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48252 (grub_longjmp): Likewise.
48254 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48255 [!GRUB_UTIL] (grub_longjmp): Removed.
48257 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48259 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48260 "color!" method does not return any value.
48262 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48264 * include/grub/bitmap.h: New file.
48266 * include/grub/i386/pc/vbeutil.h: Likewise.
48268 * video/bitmap.c: Likewise.
48270 * video/readers/tga.c: Likewise.
48272 * video/i386/pc/vbeutil.c: Likewise.
48274 * commands/videotest.c: Code cleanup and updated to reflect to new
48277 * term/gfxterm.c: Likewise.
48279 * video/video.c: Likewise.
48281 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48282 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48283 (bitmap_mod_SOURCES): New entry.
48284 (bitmap_mod_CFLAGS): Likewise.
48285 (bitmap_mod_LDFLAGS): Likewise.
48286 (tga_mod_SOURCES): Likewise.
48287 (tga_mod_CFLAGS): Likewise.
48288 (tga_mod_LDFLAGS): Likewise.
48290 * include/grub/video.h (grub_video_blit_operators): New enum type.
48291 (grub_video_render_target): Changed as forward declaration and moved
48292 actual definition to be video driver specific.
48293 (grub_video_adapter.blit_bitmap): Added blitting operator.
48294 (grub_video_adapter.blit_render_target): Likewise.
48295 (grub_video_blit_bitmap): Likewise.
48296 (grub_video_blit_render_target): Likewise.
48298 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48299 driver specific render target definition.
48300 (grub_video_vbe_map_rgba): Added driver internal helper.
48301 (grub_video_vbe_unmap_color): Updated to use
48302 grub_video_i386_vbeblit_info.
48303 (grub_video_vbe_get_video_ptr): Likewise.
48305 * include/grub/i386/pc/vbeblit.h
48306 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48307 grub_video_i386_vbeblit_info.
48308 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48309 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48310 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48311 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48312 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48313 (grub_video_i386_vbeblit_index_index): Likewise.
48314 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48315 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48316 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48317 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48319 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48322 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48323 include/grub/i386/pc/vbeblit.h.
48325 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48326 Updated to use grub_video_i386_vbeblit_info.
48327 (grub_video_i386_vbefill_R8G8B8): Likewise.
48328 (grub_video_i386_vbefill_index): Likewise.
48329 (grub_video_i386_vbefill): Added generic filler.
48331 * video/i386/pc/vbefill.c: Updated to reflect changes on
48332 include/grub/i386/pc/vbefill.h.
48334 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48335 grub_video_i386_vbeblit_info.
48336 (grub_video_vbe_unmap_color): Likewise.
48337 (grub_video_vbe_blit_glyph): Likewise.
48338 (grub_video_vbe_scroll): Likewise.
48339 (grub_video_vbe_draw_pixel): Removed function.
48340 (grub_video_vbe_get_pixel): Likewise.
48341 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48342 updated code to use it.
48343 (common_blitter): Added common blitter for render target and bitmap.
48344 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48345 (grub_video_vbe_blit_render_target): Likewise.
48347 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
48349 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48350 is in text mode if there is no console control protocol instance
48353 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48355 * include/grub/video.h: Code cleanup.
48357 * include/grub/i386/pc/vbe.h: Likewise.
48359 * video/i386/pc/vbe.c: Likewise.
48361 * video/i386/pc/vbeblit.c: Likewise.
48363 * video/i386/pc/vbefill.c: Likewise.
48365 * video/video.c: Likewise. Also added more comments.
48367 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48369 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48370 (struct grub_biosdisk_dap): Likewise.
48372 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48373 linkage settings for all functions.
48375 2006-07-12 Marco Gerards <marco@gnu.org>
48377 * configure.ac (--enable-mm-debug): Fix typo.
48379 * genkernsyms.sh.in: Use proper quoting for `CC'.
48381 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
48383 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
48384 (normal_mod_ASFLAGS): Remove "-m32".
48386 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
48388 * util/misc.c: Include config.h.
48389 [!HAVE_MEMALIGN]: Do not include malloc.h.
48390 (grub_memalign): Use posix_memalign, if present. Then, use
48391 memalign, if present. Otherwise, emit an error.
48393 * util/grub-emu.c: Do not include malloc.h.
48395 * include/grub/util/misc.h: Include unistd.h. This is required for
48396 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
48397 D. Eades III <hde@foobar-qux.org>.
48399 * configure.ac (AC_GNU_SOURCE): Added.
48400 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
48403 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
48405 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
48406 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
48408 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
48410 * include/grub/types.h (grub_host_addr_t): Rename to
48411 grub_target_addr_t.
48412 (grub_host_off_t): Rename to grub_target_off_t.
48413 (grub_host_size_t): Rename to grub_target_size_t.
48414 (grub_host_ssize_t): Rename to grub_target_ssize_t.
48415 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
48417 * include/grub/kernel.h (struct grub_module_header): Change type
48418 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
48419 (grub_module_info): Likewise.
48421 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48423 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
48424 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
48425 Velazquez <jesus.velazquez@gmail.com>.
48427 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48429 Count partitions from 1 instead of 0 in the string representation
48430 of partitions. Still use 0-based internally.
48432 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
48433 (sun_partition_map_iterate): Use grub_partition_t instead of
48434 struct grub_partition *. Cast DESC->START_CYLINDER to
48435 grub_uint64_t after converting the endian.
48436 (sun_partition_map_probe): Subtract 1 for PARTNUM.
48437 (sun_partition_map_get_name): Add 1 to P->INDEX.
48439 * partmap/pc.c (grub_partition_parse): Subtract 1 for
48441 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
48443 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
48444 zero instead of one.
48445 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
48446 (gpt_partition_map_get_name): Add 1 into P->INDEX.
48448 * partmap/apple.c (apple_partition_map_iterate): Change the type
48449 of POS to unsigned.
48450 (apple_partition_map_probe): Subtract 1 for PARTNUM.
48451 (apple_partition_map_get_name): Add 1 into P->INDEX.
48453 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
48454 of POS to unsigned.
48455 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
48456 calculate the offset of a partition.
48457 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
48458 (amiga_partition_map_get_name): Add 1 into P->INDEX.
48460 * partmap/acorn.c (acorn_partition_map_find): Change the type of
48461 SECTOR to grub_disk_addr_t.
48462 (acorn_partition_map_iterate): Likewise.
48463 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
48464 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
48466 (acorn_partition_map_get_name): Add 1 into P->INDEX.
48468 * kern/i386/pc/init.c (make_install_device): Add 1 into
48469 GRUB_INSTALL_DOS_PART.
48471 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
48474 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
48476 Clean up the code to support 64-bit addressing in disks and
48477 files. This change is not enough for filesystems yet.
48479 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
48480 type of "start" to grub_uint64_t.
48481 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
48482 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
48483 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
48486 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
48487 to grub_disk_addr_t.
48489 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
48492 * partmap/pc.c (pc_partition_map_iterate): Likewise.
48494 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
48497 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
48499 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
48501 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
48503 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
48504 to grub_off_t, to detect an error from grub_file_seek.
48505 (grub_multiboot_load_elf32): Likewise.
48507 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
48508 maximum unsigned long value when an overflow is detected.
48509 (grub_strtoull): New function.
48510 (grub_divmod64): Likewise.
48511 (grub_lltoa): use grub_divmod64.
48513 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
48515 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
48516 the pointer to next character. Use grub_strtoull instead of
48518 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
48519 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
48522 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
48523 return value is signed.
48524 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
48525 test if OFFSET is less than zero, as OFFSET is unsigned now.
48527 * kern/disk.c (struct grub_disk_cache): Change the type of
48528 "sector" to grub_disk_addr_t.
48529 (grub_disk_cache_get_index): Change the type of SECTOR to
48530 grub_disk_addr_t. Calculate the hash with SECTOR casted to
48531 unsigned after shifting.
48532 (grub_disk_cache_invalidate): Change the type of SECTOR to
48534 (grub_disk_cache_unlock): Likewise.
48535 (grub_disk_cache_store): Likewise.
48536 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
48537 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
48538 grub_disk_addr_t and grub_uint64_t, respectively.
48539 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
48540 body, as the value of OFFSET is tweaked by
48541 grub_disk_check_range. Change the types of START_SECTOR, LEN and
48542 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
48544 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
48545 body, as the value of OFFSET is tweaked by
48546 grub_disk_check_range. Change the types of LEN and N to
48549 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
48550 and "saved_offset" to grub_off_t.
48551 (test_header): Cast BUF to char *.
48552 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
48554 (grub_gzio_read): Change the types of OFFSET and SIZE to
48555 grub_off_t and grub_size_t, respectively.
48557 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
48559 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
48560 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
48561 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
48562 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
48563 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
48565 * include/grub/types.h (grub_off_t): Unconditionally set to
48567 (grub_disk_addr_t): Changed to grub_uint64_t.
48569 * include/grub/partition.h (struct grub_partition): Change the
48570 types of "start", "len" and "offset" to grub_disk_addr_t,
48571 grub_uint64_t and grub_disk_addr_t, respectively.
48572 (grub_partition_get_start): Return grub_disk_addr_t.
48573 (grub_partition_get_len): Return grub_uint64_t.
48575 * include/grub/misc.h (grub_strtoull): New prototype.
48576 (grub_divmod64): Likewise.
48578 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
48579 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
48580 grub_off_t, respectively.
48581 All callers and references changed.
48583 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
48584 grub_size_t in "read".
48585 All callers and references changed.
48587 * include/grub/file.h (struct grub_file): Change the types of
48588 "offset" and "size" to grub_off_t and grub_off_t,
48589 respectively. Change the type of SECTOR to grub_disk_addr_t in
48591 (grub_file_read): Change the type of LEN to grub_size_t.
48592 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
48594 (grub_file_size): Return grub_off_t.
48595 (grub_file_tell): Likewise.
48596 All callers and references changed.
48598 * include/grub/disk.h (struct grub_disk_dev): Change the types of
48599 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
48601 (struct grub_disk): Change the type of "total_sectors" to
48602 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
48604 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
48605 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
48606 (grub_disk_write): Likewise.
48607 All callers and references changed.
48609 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
48610 char * for grub_strncmp to silence gcc.
48611 (grub_iso9660_mount): Likewise.
48612 (grub_iso9660_mount): Likewise.
48613 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
48615 (grub_iso9660_iterate_dir): Likewise.
48616 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
48618 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
48619 LEN to grub_disk_addr_t and grub_size_t, respectively.
48621 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
48623 * fs/jfs.c (grub_jfs_read_file): Likewise.
48625 * fs/minix.c (grub_jfs_read_file): Likewise.
48627 * fs/sfs.c (grub_jfs_read_file): Likewise.
48629 * fs/ufs.c (grub_jfs_read_file): Likewise.
48631 * fs/xfs.c (grub_jfs_read_file): Likewise.
48633 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
48634 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
48637 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
48638 BLKNR to -1 instead of returning GRUB_ERRNO.
48639 (grub_ext2_read_file): Change the types of SECTOR and
48640 LEN to grub_disk_addr_t and grub_size_t, respectively.
48642 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
48643 LEN to grub_disk_addr_t and grub_size_t, respectively.
48645 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
48648 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
48649 string. Do not cast SECTOR explicitly.
48651 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
48652 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
48653 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
48654 grub_disk_addr_t and grub_size_t, respectively. If the sector is
48655 over 2TB and LBA mode is not supported, raise an error.
48656 (get_safe_sectors): New function.
48657 (grub_biosdisk_read): Use get_safe_sectors.
48658 (grub_biosdisk_write): Likewise.
48660 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
48661 (grub_efidisk_write): Likewise.
48663 * disk/loopback.c (delete_loopback): Cosmetic changes.
48664 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
48666 (grub_loopback_open): Likewise.
48667 (grub_loopback_read): Likewise. Also, change the type of POS to
48668 grub_off_t, and fix the usage of grub_memset.
48670 * commands/i386/pc/play.c: Include grub/machine/time.h.
48672 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
48675 * commands/configfile.c: Include grub/env.h.
48677 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
48678 GRUB_ERRNO directly instead. Change the type of POS to
48679 grub_off_t. Follow the coding standard.
48681 * commands/blocklist.c: Include grub/partition.h.
48682 (grub_cmd_blocklist): Return an error if the underlying device is
48683 not a disk. Take the starting sector of a partition into account,
48684 if a partition is used.
48686 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
48688 (lba_mode): Support 64-bit addresses.
48689 (chs_mode): Likewise.
48690 (copy_buffer): Adapted to the new offsets of a length field and a
48692 (blocklist_default_start): Allocate 64-bit space.
48694 * boot/i386/pc/boot.S (force_lba): Removed.
48695 (boot_drive): Moved to under KERNEL_SECTOR.
48696 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
48698 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
48700 (lba_mode): Refactored to support a 64-bit address. More size
48702 (setup_sectors): Likewise.
48704 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
48706 * DISTLIST: Added include/grub/i386/linux.h. Removed
48707 include/grub/i386/pc/linux.h
48709 * configure.ac (AC_INIT): Bumped to 1.94.
48711 * config.guess: Updated from gnulib.
48712 * config.sub: Likewise.
48713 * install-sh: Likewise.
48714 * mkinstalldirs: Likewise.
48716 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
48718 * conf/common.rmk (grub_modules_init.lst): Depended on
48719 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
48722 * genmk.rb (PModule::rule): Reverted the previous change.
48724 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
48726 * conf/common.rmk (grub_modules_init.lst): Depends on
48727 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
48728 that the target does not exist before producing.
48729 (grub_modules_init.h): Remove the target before generating.
48730 (grub_emu_init.c): Likewise.
48732 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
48734 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
48736 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
48737 for the target-specific tests. Make sure that we also have the
48738 up-to-date target variables for those tests.
48740 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
48742 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
48743 (PModule::rule): Likewise.
48745 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
48747 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
48748 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
48749 target-specific flags should be prefixed.
48750 (PModule::rule): Likewise.
48752 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
48754 * configure.ac (CMP): Check if cmp is available explicitly.
48756 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
48758 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
48759 (target_cpu): New variable.
48760 (pkglibdir): Use target_cpu instead of host_cpu.
48762 * util/i386/pc/grub-install.in (host_cpu): Removed.
48763 (target_cpu): New variable.
48764 (pkglibdir): Use target_cpu instead of host_cpu.
48766 * util/genmoddep.c: Removed.
48768 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
48769 instead of GRUB_HOST_SIZEOF_VOID_P.
48770 * kern/dl.c: Likewise.
48772 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
48774 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48775 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48776 (GRUB_TARGET_SIZEOF_LONG): ... this.
48777 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48778 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48779 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
48781 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48782 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48783 (GRUB_TARGET_SIZEOF_LONG): ... this.
48784 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48785 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48786 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
48788 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48789 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48790 (GRUB_TARGET_SIZEOF_LONG): ... this.
48791 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48792 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48794 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
48795 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
48796 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
48797 instead of GRUB_HOST_SIZEOF_LONG.
48798 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
48799 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
48800 GRUB_CPU_WORDS_BIGENDIAN.
48801 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
48802 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
48805 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
48806 (genmoddep_SOURCES): Likewise.
48807 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
48808 (genmoddep_SOURCES): Likewise.
48809 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
48810 (genmoddep_SOURCES): Likewise.
48811 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
48813 (genmoddep_SOURCES): Likewise.
48815 * genmoddep.awk: New file.
48817 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
48818 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
48819 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
48820 (PModule::rule): Likewise.
48821 (Program::rule): Likewise.
48822 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
48823 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
48826 * configure.ac: Rewritten intensively to use host and target
48827 instead of build and host, respectively.
48829 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
48830 (host_cpu): Removed.
48831 (target_cpu): New variable.
48832 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
48833 (BUILD_CC): Removed.
48834 (BUILD_CFLAGS): Likewise.
48835 (BUILD_CPPFLAGS): Likewise.
48836 (TARGET_CC): New variable.
48837 (TARGET_CFLAGS): Likewise.
48838 (TARGET_CPPFLAGS): Likewise.
48839 (TARGET_LDFLAGS): Likewise.
48841 (include): Use target_cpu instead of host_cpu.
48842 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
48844 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
48846 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
48848 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
48849 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
48850 field 'false' to 'exec_on_false'.
48851 (grub_script_create_cmdif): Renamed argument names to reflect above
48854 * normal/execute.c (grub_script_execute_cmdif): Likewise.
48856 * normal/script.c (grub_script_create_cmdif): Likewise.
48858 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
48860 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
48862 (grub_hfsplus_btree_recptr): Likewise.
48863 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
48864 FILEBLOCK both to pass a block number and store next block
48866 (grub_hfsplus_read_block): Rewritten heavily to support an extent
48867 overflow file correctly. Specify errors appropriately, because
48868 fshelp expects that GRUB_ERRNO is set when fails. Reuse
48869 grub_hfsplus_btree_recptr to get the pointer to a found key.
48870 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
48873 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
48875 (_linux_mod_SOURCES): New variable.
48876 (_linux_mod_CFLAGS): Likewise.
48877 (_linux_mod_LDFLAGS): Likewise.
48878 (linux_mod_SOURCES): Likewise.
48879 (linux_mod_CFLAGS): Likewise.
48880 (linux_mod_LDFLAGS): Likewise.
48882 * DISTLIST: Added loader/i386/efi/linux.c,
48883 loader/i386/efi/linux_normal.c and
48884 include/grub/i386/efi/loader.h.
48886 * loader/i386/efi/linux.c: New file.
48887 * loader/i386/efi/linux_normal.c: Likewise.
48888 * include/grub/i386/efi/loader.h: Likewise.
48890 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
48892 * commands/blocklist.c: New file.
48894 * DISTLIST: Added commands/blocklist.c.
48896 * term/efi/console.c (grub_console_highlight_color): Use a lighter
48897 color for the background, and a darker color for the foreground.
48898 (grub_console_checkkey): Return READ_KEY.
48899 (grub_console_cls): Set the background to
48900 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
48902 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
48904 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
48905 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
48907 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
48910 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
48911 BG. The spec is wrong again.
48913 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
48915 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
48917 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48918 commands/blocklist.c.
48919 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48921 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
48922 (blocklist_mod_SOURCES): New variable.
48923 (blocklist_mod_CFLAGS): Likewise.
48924 (blocklist_mod_LDFLAGS): Likewise.
48926 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
48928 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
48930 (lba_mode): Use %eax more intensively to reduce the code size.
48932 2006-05-20 Marco Gerards <marco@gnu.org>
48934 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
48936 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
48938 (script): Accept leading newlines.
48939 (newlines): New rule to describe 0 or more newlines.
48940 (commands): Accept `command' with trailing newline. Fixed the
48941 order in which arguments were passed to `grub_script_add_cmd'.
48942 Accept commands separated by newlines.
48943 (function): Changed to accept newlines.
48944 (menuentry) Rewritten.
48946 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
48947 front of the list, instead of to the end.
48949 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
48951 * util/i386/pc/grub-install.in (bindir): New variable.
48952 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
48953 Shaver <lbgwjl@gmail.com>.
48955 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
48957 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
48958 grub/machine/linux.h
48959 * loader/i386/pc/linux.c: Likewise.
48961 * include/grub/i386/pc/linux.h: Moved to ...
48962 * include/grub/i386/linux.h: ... here.
48964 * include/grub/i386/linux.h (struct linux_kernel_params): New
48967 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
48969 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
48971 (grub_video_vbe_blit_glyph): Likewise.
48972 (grub_video_vbe_blit_bitmap): Likewise.
48973 (grub_video_vbe_blit_render_target): Likewise.
48975 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
48977 * configure.ac (--with-platform): Properly quote the square
48980 2006-05-08 Marco Gerards <marco@gnu.org>
48982 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
48984 (kernel_elf_HEADERS): ...to this. Updated all users.
48985 (grubof_symlist.c): Renamed from this...
48986 (kernel_elf_symlist.c): ...to this. Updated all users.
48987 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
48988 (grubof_SOURCES): Renamed from this...
48989 (kernel_elf_SOURCES): ...to this.
48990 (grubof_HEADERS): Renamed from this...
48991 (kernel_elf_HEADERS): ...to this.
48992 (grubof_CFLAGS): Renamed from this...
48993 (kernel_elf_CFLAGS): ...to this.
48994 (grubof_ASFLAGS): Renamed from this...
48995 (kernel_elf_ASFLAGS): ...to this.
48996 (grubof_LDFLAGS): Renamed from this...
48997 (kernel_elf_LDFLAGS): ...to this.
48999 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49001 (kernel_elf_HEADERS): ...to this. Updated all users.
49002 (grubof_symlist.c): Renamed from this...
49003 (kernel_elf_symlist.c): ...to this. Updated all users.
49004 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49005 (grubof_SOURCES): Renamed from this...
49006 (kernel_elf_SOURCES): ...to this.
49007 (grubof_HEADERS): Renamed from this...
49008 (kernel_elf_HEADERS): ...to this.
49009 (grubof_CFLAGS): Renamed from this...
49010 (kernel_elf_CFLAGS): ...to this.
49011 (grubof_ASFLAGS): Renamed from this...
49012 (kernel_elf_ASFLAGS): ...to this.
49013 (grubof_LDFLAGS): Renamed from this...
49014 (kernel_elf_LDFLAGS): ...to this.
49016 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49017 `kernel.elf' instead of `grubof'.
49019 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49021 Add --with-platform to configure. Use pkglibdir instead of
49022 pkgdatadir. This is reported by Roger Leigh.
49024 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49025 (host_vendor): Likewise.
49026 (host_os): Likewise.
49027 (pkgdatadir): Likewise.
49028 (platform): New variable.
49029 (pkglibdir): Likewise.
49030 Use PKGLIBDIR instead of PKGDATADIR.
49032 * util/i386/pc/grub-install.in (datadir): Removed.
49033 (host_vendor): Likewise.
49034 (host_os): Likewise.
49035 (pkgdatadir): Likewise.
49036 (platform): New variable.
49037 (pkglibdir): Likewise.
49038 Use PKGLIBDIR instead of PKGDATADIR.
49040 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49041 instead of GRUB_DATADIR.
49043 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49045 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49048 * configure.ac (--with-platform): New option.
49049 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49051 * Makefile.in: Include a makefile based on PLATFORM instead of
49053 (pkgdatadir): Not appended by the machine type.
49054 (pkglibdir): Appended by the machine type.
49055 (host_vendor): Removed.
49056 (platform): New variable.
49057 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49058 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49059 (uninstall): Likewise.
49061 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49063 Use the environment context in the menu. Remove the commands
49064 "default" and "timeout", and use variables instead.
49066 * normal/menu.c: Include grub/env.h.
49067 (print_entry): Cast TITLE to silence gcc.
49068 (get_timeout): New function.
49069 (set_timeout): Likewise.
49070 (get_entry_number): Likewise.
49071 (run_menu): Use a default entry, a fallback entry and a timeout
49072 in the environment variables "default", "fallback" and
49073 "timeout". Also, tweak the default entry if it is not within the
49074 current menu entries.
49075 (grub_menu_run): Use a fallback entry in the environment variable
49078 * normal/main.c (read_config_file): Do not initialize
49079 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49081 (grub_normal_execute): Use a data slot to store the menu.
49083 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49084 fallback_entry and timeout.
49085 (struct grub_menu_list): Removed.
49086 (grub_menu_list_t): Likewise.
49087 (struct grub_context): Likewise.
49088 (grub_context_t): Likewise.
49089 (grub_context_get): Likewise.
49090 (grub_context_get_current_menu): Likewise.
49091 (grub_context_push_menu): Likewise.
49092 (grub_context_pop_menu): Likewise.
49093 (grub_default_init): Likewise.
49094 (grub_default_fini): Likewise.
49095 (grub_timeout_init): Likewise.
49096 (grub_timeout_fini): Likewise.
49098 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49100 (normal_mod_SOURCES): Removed normal/context.c.
49102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49103 commands/default.c, commands/timeout.c and normal/context.c.
49104 (normal_mod_SOURCES): Removed normal/context.c.
49106 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49107 commands/timeout.c and normal/context.c.
49108 (normal_mod_SOURCES): Removed normal/context.c.
49110 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49111 commands/default.c, commands/timeout.c and normal/context.c.
49112 (normal_mod_SOURCES): Removed normal/context.c.
49114 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49116 (default_mod_SOURCES): Removed.
49117 (default_mod_CFLAGS): Likewise.
49118 (default_mod_LDFLAGS): Likewise.
49119 (timeout_mod_SOURCES): Removed.
49120 (timeout_mod_CFLAGS): Likewise.
49121 (timeout_mod_LDFLAGS): Likewise.
49123 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49126 * commands/default.c: Removed.
49127 * commands/timeout.c: Likewise.
49128 * normal/context.c: Likewise.
49130 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49132 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49134 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49136 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49137 "next" to "prev" for readability.
49138 (struct grub_env_sorted_var): New struct.
49139 (grub_env_context): Renamed to ...
49140 (initial_context): ... this.
49141 (grub_env_var_context): Renamed to ...
49142 (current_context): ... this.
49143 (grub_env_find): Look only at CURRENT_CONTEXT.
49144 (grub_env_context_open): Rewritten to copy exported variables from
49146 (grub_env_context_close): Rewritten according to the new
49147 scheme. Also, add an assertion to prevent the initial context from
49149 (grub_env_insert): Removed the code for the sorted list.
49150 (grub_env_remove): Likewise.
49151 (grub_env_export): Simply mark the variable with
49152 GRUB_ENV_VAR_GLOBAL.
49153 (grub_env_set): A cosmetic change for naming consistency.
49154 (grub_env_get): Likewise.
49155 (grub_env_unset): Likewise.
49156 (grub_env_iterate): Rewritten to sort variables within this
49158 (grub_register_variable_hook): Fixed for naming consistency. Call
49159 grub_env_find again, only if NAME is not found at the first time.
49160 (mangle_data_slot_name): New function.
49161 (grub_env_set_data_slot): Likewise.
49162 (grub_env_get_data_slot): Likewise.
49163 (grub_env_unset_data_slot): Likewise.
49165 * include/grub/env.h (grub_env_var_type): New enum.
49166 (GRUB_ENV_VAR_LOCAL): New constant.
49167 (GRUB_ENV_VAR_GLOBAL): Likewise.
49168 (GRUB_ENV_VAR_DATA): Likewise.
49169 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49171 (grub_env_set): Replace VAR with NAME for consistency.
49172 (grub_register_variable_hook): Likewise.
49173 (grub_env_export): Specify the name of the argument.
49174 (grub_env_set_data_slot): New prototype.
49175 (grub_env_get_data_slot): Likewise.
49176 (grub_env_unset_data_slot): Likewise.
49178 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49180 Extend the loader so that GRUB can accept a loader which comes
49181 back to GRUB when a loaded image exits. Also, this change adds
49182 support for a chainloader on EFI.
49184 * term/efi/console.c: Include grub/misc.h.
49185 (grub_console_checkkey): Display a scan code on the top for
49186 debugging. This will be removed once the EFI port gets stable.
49187 Correct the scan code mapping.
49189 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49190 allocate memory from larger regions, in order to reduce the number
49191 of allocated regions. Otherwise, the MacOSX loader panics.
49192 (filter_memory_map): Avoid less than 1MB for compatibility with
49194 (add_memory_regions): Allocate from the tail of a region, if
49195 possible, to avoid allocating a region near to 1MB, for the MacOSX
49198 * kern/efi/init.c (grub_efi_set_prefix): Specify
49199 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49201 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49202 argument IMAGE_HANDLE and specify it to get a loaded image.
49203 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49204 grub_efi_get_loaded_image.
49205 (grub_efi_get_filename): Divide the length by the size of
49207 (grub_efi_get_device_path): New function.
49208 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49209 the length by the size of grub_efi_char16_t for a file path device
49212 * kern/loader.c (grub_loader_noreturn): New variable.
49213 (grub_loader_set): Accept a new argument NORETURN. Set
49214 GRUB_LOADER_NORETURN to NORETURN.
49215 All callers changed.
49216 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49219 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49221 (grub_efi_get_loaded_image): Take an argument to specify an image
49224 * include/grub/loader.h (grub_loader_set): Added one more argument
49227 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49228 instead of grub_efi_open_protocol.
49229 (grub_efidisk_get_device_name): Likewise.
49230 (grub_efidisk_close): Print a newline.
49231 (grub_efidisk_get_device_handle): Fixed to use
49232 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49233 GRUB_EFI_DEVICE_PATH_TYPE.
49235 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49236 * kern/efi/efi.c (device_path_guid): ... here.
49238 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49240 (kernel_mod_HEADERS): Added efi/disk.h.
49241 (_chain_mod_SOURCES): New variable.
49242 (_chain_mod_CFLAGS): Likewise.
49243 (_chain_mod_LDFLAGS): Likewise.
49244 (chain_mod_SOURCES): Likewise.
49245 (chain_mod_CFLAGS): Likewise.
49246 (chain_mod_LDFLAGS): Likewise.
49248 * DISTLIST: Added include/grub/efi/chainloader.h,
49249 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49251 * include/grub/efi/chainloader.h: New file.
49252 * loader/efi/chainloader.c: Likewise.
49253 * loader/efi/chainloader_normal.c: Likewise.
49255 2006-04-30 Marco Gerards <marco@gnu.org>
49257 * commands/configfile.c (grub_cmd_source): New function.
49258 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49259 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49261 2006-04-30 Marco Gerards <marco@gnu.org>
49263 * normal/execute.c (grub_script_execute_cmd): Change the return
49264 type to `grub_err_t'. Correctly return the error.
49265 (grub_script_execute_cmdline): In case a command line is not a
49266 command or a function, try to interpret it as an assignment.
49268 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49270 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49271 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49272 skip a node whose name is obviously invalid as UTF-16,
49273 i.e. contains a NUL character. Stop the iteration when the last
49274 directory entry is found. Instead of using the return value of
49275 grub_hfsplus_btree_iterate_node, store the value in RET and use
49276 it, because the iterator can be stopped by the last directory
49279 2006-04-30 Marco Gerards <marco@gnu.org>
49281 * include/grub/env.h (grub_env_export): New prototype. Reported
49282 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49284 2006-04-30 Marco Gerards <marco@gnu.org>
49286 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49287 size of the extents in a catalog file record.
49289 2006-04-29 Marco Gerards <marco@gnu.org>
49291 * commands/configfile.c (grub_cmd_configfile): Execute the
49292 configfile within its own context.
49294 * include/grub/env.h (grub_env_context_open): New prototype.
49295 (grub_env_context_close): Likewise.
49297 * kern/env.c (grub_env): Removed.
49298 (grub_env_sorted): Likewise.
49299 (grub_env_context): New variable.
49300 (grub_env_var_context): Likewise.
49301 (grub_env_find): Search both the active context and the global
49303 (grub_env_context_open): New function.
49304 (grub_env_context_close): Likewise.
49305 (grub_env_insert): Likewise.
49306 (grub_env_remove): Likewise.
49307 (grub_env_export): Likewise.
49308 (grub_env_set): Changed to use helper functions to avoid code
49310 (grub_env_iterate): Rewritten so both the current context and the
49311 global context are being used.
49313 * normal/command.c (export_command): New function.
49314 (grub_command_init): Register the `export' function.
49316 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49318 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49319 explicitly to suppress gcc's warnings.
49320 * fs/fat.c (grub_fat_find_dir): Likewise.
49321 (grub_fat_label): Likewise.
49322 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49323 (grub_xfs_mount): Likewise.
49324 (grub_xfs_label): Likewise.
49325 * fs/affs.c (grub_affs_mount): Likewise.
49326 (grub_affs_label): Likewise.
49327 (grub_affs_iterate_dir): Likewise.
49328 * fs/sfs.c (grub_sfs_mount): Likewise.
49329 (grub_sfs_iterate_dir): Likewise.
49330 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49331 * fs/hfs.c (grub_hfs_mount): Likewise.
49332 (grub_hfs_cmp_catkeys): Likewise.
49333 (grub_hfs_find_dir): Likewise.
49334 (grub_hfs_dir): Likewise.
49335 (grub_hfs_label): Likewise.
49336 * fs/jfs.c (grub_jfs_mount): Likewise.
49337 (grub_jfs_opendir): Likewise.
49338 (grub_jfs_getent): Likewise.
49339 (grub_jfs_lookup_symlink): Likewise.
49340 (grub_jfs_label): Likewise.
49341 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49342 (grub_hfsplus_iterate_dir): Likewise.
49343 (grub_hfsplus_btree_iterate_node): Made static.
49345 * util/grub-emu.c (prefix): New variable.
49346 (grub_machine_set_prefix): New function.
49347 (main): Do not set the environment variable "prefix" here. Only
49348 set PREFIX, which is used later by grub_machine_set_prefix.
49350 * include/grub/video.h: Do not include grub/symbol.h.
49351 (grub_video_register): Not exported. This symbol is not defined in
49353 (grub_video_unregister): Likewise.
49354 (grub_video_iterate): Likewise.
49355 (grub_video_setup): Likewise.
49356 (grub_video_restore): Likewise.
49357 (grub_video_get_info): Likewise.
49358 (grub_video_get_blit_format): Likewise.
49359 (grub_video_set_palette): Likewise.
49360 (grub_video_get_palette): Likewise.
49361 (grub_video_set_viewport): Likewise.
49362 (grub_video_get_viewport): Likewise.
49363 (grub_video_map_color): Likewise.
49364 (grub_video_map_rgb): Likewise.
49365 (grub_video_map_rgba): Likewise.
49366 (grub_video_fill_rect): Likewise.
49367 (grub_video_blit_glyph): Likewise.
49368 (grub_video_blit_bitmap): Likewise.
49369 (grub_video_blit_render_target): Likewise.
49370 (grub_video_scroll): Likewise.
49371 (grub_video_swap_buffers): Likewise.
49372 (grub_video_create_render_target): Likewise.
49373 (grub_video_delete_render_target): Likewise.
49374 (grub_video_set_active_render_target): Likewise.
49376 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49378 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
49380 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
49381 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49382 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49383 instead of $(srcdir)/genkernsyms.sh.
49385 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
49386 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49387 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49388 instead of $(srcdir)/genkernsyms.sh.
49390 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
49391 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49392 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49393 instead of $(srcdir)/genkernsyms.sh.
49395 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
49396 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49397 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49398 instead of $(srcdir)/genkernsyms.sh.
49400 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
49403 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
49405 (gensymlist.sh): New target.
49406 (genkernsyms.sh): Likewise.
49408 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
49409 genkernsyms.sh.in and gensymlist.sh.in.
49411 * genkernsyms.sh: Removed.
49412 * gensymlist.sh: Likewise.
49414 * genkernsyms.sh.in: New file.
49415 * gensymlist.sh.in: Likewise.
49417 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49419 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
49420 clobber "prefix", since we may have already set it manually.
49422 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49424 * kern/misc.c (abort): New alias for grub_abort.
49426 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
49428 A new machine-specific function "grub_machine_set_prefix" is
49429 defined. This is called after loading modules, so that a prefix
49430 initialization can use modules. Also, this change adds an
49431 intensive debugging feature for the memory manager via the
49432 configure option "--enable-mm-debug".
49434 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
49437 * kern/sparc64/ieee1275/init.c (abort): Removed.
49438 (grub_stop): Likewise.
49439 (grub_exit): New function.
49440 (grub_set_prefix): Renamed to ...
49441 (grub_machine_set_prefix): ... this.
49442 (grub_machine_init): Do not call grub_set_prefix.
49444 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
49445 (grub_machine_set_prefix): ... this.
49446 (grub_machine_init): Do not call grub_set_prefix.
49448 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
49449 (grub_machine_init): Do not set the prefix here.
49451 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
49453 * kern/efi/init.c: Include grub/mm.h.
49454 (grub_efi_set_prefix): New function.
49456 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
49457 (grub_efi_get_filename): New function.
49458 (grub_print_device_path): Renamed to ...
49459 (grub_efi_print_device_path): ... this.
49461 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
49462 [MM_DEBUG] (grub_realloc): Likewise.
49463 [MM_DEBUG] (grub_free): Likewise.
49464 [MM_DEBUG] (grub_memalign): Likewise.
49465 [MM_DEBUG] (grub_mm_debug): New variable.
49466 [MM_DEBUG] (grub_debug_malloc): New function.
49467 [MM_DEBUG] (grub_debug_free): New function.
49468 [MM_DEBUG] (grub_debug_realloc): New function.
49469 [MM_DEBUG] (grub_debug_memalign): New function.
49471 * kern/misc.c (grub_abort): Print a newline to distinguish
49474 * kern/main.c (grub_main): Call grub_machine_set_prefix and
49475 grub_set_root_dev after loading modules. This is necessary when
49476 setting a prefix depends on modules.
49478 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
49479 (grub_efi_print_device_path): ... this.
49480 (grub_efi_get_filename): New prototype.
49481 (grub_efi_set_prefix): Likewise.
49483 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
49485 (grub_efidisk_get_device_handle): New prototype.
49486 (grub_efidisk_get_device_name): Likewise.
49488 * include/grub/mm.h: Include config.h.
49489 (MM_DEBUG): Removed.
49490 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
49491 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
49492 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
49493 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
49494 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
49495 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
49496 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
49497 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
49498 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
49500 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
49502 * disk/efi/efidisk.c: Include grub/partition.h.
49503 (iterate_child_devices): New function.
49504 (add_device): First, compare only last device path nodes, so that
49505 devices are sorted by the types.
49506 (grub_efidisk_get_device_handle): New function.
49507 (grub_efidisk_get_device_name): Likewise.
49509 * configure.ac (--enable-mm-debug): New option to enable the
49510 memory manager debugging feature. This makes the binary much
49511 bigger, so is disabled by default.
49513 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
49515 Use grub_abort instead of grub_stop, and grub_exit must be
49516 define in each architecture now. Also, this change adds support
49519 * util/i386/pc/grub-probefs.c: Include grub/term.h.
49520 (grub_getkey): New function.
49521 (grub_term_get_current): Likewise.
49523 * util/i386/pc/grub-setup.c: Include grub/term.h.
49524 (grub_getkey): New function.
49525 (grub_term_get_current): Likewise.
49527 * util/misc.c (grub_stop): Renamed to ...
49528 (grub_exit): ... this.
49530 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
49531 (grub_exit): ... this.
49532 (grub_machine_init): Use grub_abort instead of abort.
49533 (grub_stop): Removed.
49535 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
49538 * kern/i386/pc/startup.S (grub_exit): New function.
49539 (cold_reboot): New label.
49541 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
49542 (grub_efi_init): Call grub_efidisk_init.
49543 (grub_efi_fini): Call grub_efidisk_fini.
49545 * kern/efi/efi.c: Include grub/mm.h.
49546 (grub_efi_console_control_guid): Renamed to ...
49547 (console_control_guid): ... this.
49548 (grub_efi_loaded_image_guid): Renamed to ...
49549 (loaded_image_guid): ... this.
49550 (grub_efi_locate_handle): New function.
49551 (grub_efi_open_protocol): Likewise.
49552 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
49553 GRUB_EFI_CONSOLE_CONTROL_GUID.
49554 (grub_efi_exit): Removed.
49555 (grub_stop): Likewise.
49556 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
49557 (grub_exit): New function.
49558 (grub_print_device_path): Likewise.
49560 * kern/rescue.c (grub_rescue_cmd_exit): New function.
49561 (grub_enter_rescue_mode): Register "exit".
49563 * kern/misc.c (grub_real_dprintf): A cosmetic change.
49564 (grub_abort): New function.
49566 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
49568 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
49570 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
49572 * include/grub/efi/efi.h (grub_efi_exit): Removed.
49573 (grub_print_device_path): New prototype.
49574 (grub_efi_locate_handle): Likewise.
49575 (grub_efi_open_protocol): Likewise.
49577 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
49578 * disk/efi/efidisk.c: Likewise.
49580 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
49582 * include/grub/efi/console_control.h
49583 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
49585 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
49586 last 8 bytes as an array.
49587 (GRUB_EFI_DISK_IO_GUID): New macro.
49588 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
49589 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
49590 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
49592 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
49593 (struct grub_efi_device_path): Rename the member "sub_type" to
49595 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
49596 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
49597 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
49598 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
49599 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
49600 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
49601 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
49602 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
49603 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
49604 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
49605 (struct grub_efi_pci_device_path): New structure.
49606 (grub_efi_pci_device_path_t): New type.
49607 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
49608 (struct grub_efi_pccard_device_path): New structure.
49609 (grub_efi_pccard_device_path_t): New type.
49610 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
49611 (struct grub_efi_memory_mapped_device_path): New structure.
49612 (grub_efi_memory_mapped_device_path_t): New type.
49613 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
49614 (struct grub_efi_vendor_device_path): New structure.
49615 (grub_efi_vendor_device_path_t): New type.
49616 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
49617 (struct grub_efi_controller_device_path): New structure.
49618 (grub_efi_controller_device_path_t): New type.
49619 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
49620 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
49621 (struct grub_efi_acpi_device_path): New structure.
49622 (grub_efi_acpi_device_path_t): New type.
49623 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
49624 (struct grub_efi_expanded_acpi_device_path): New structure.
49625 (grub_efi_expanded_acpi_device_path_t): New type.
49626 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
49627 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
49628 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
49629 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
49630 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
49631 (struct grub_efi_atapi_device_path): New structure.
49632 (grub_efi_atapi_device_path_t): New type.
49633 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
49634 (struct grub_efi_fibre_channel_device_path): New structure.
49635 (grub_efi_fibre_channel_device_path_t): New type.
49636 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
49637 (struct grub_efi_1394_device_path): New structure.
49638 (grub_efi_1394_device_path_t): New type.
49639 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
49640 (struct grub_efi_usb_device_path): New structure.
49641 (grub_efi_usb_device_path_t): New type.
49642 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
49643 (struct grub_efi_usb_class_device_path): New structure.
49644 (grub_efi_usb_class_device_path_t): New type.
49645 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
49646 (struct grub_efi_i2o_device_path): New structure.
49647 (grub_efi_i2o_device_path_t): New type.
49648 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
49649 (struct grub_efi_mac_address_device_path): New structure.
49650 (grub_efi_mac_address_device_path_t): New type.
49651 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
49652 (struct grub_efi_ipv4_device_path): New structure.
49653 (grub_efi_ipv4_device_path_t): New type.
49654 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
49655 (struct grub_efi_ipv6_device_path): New structure.
49656 (grub_efi_ipv6_device_path_t): New type.
49657 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
49658 (struct grub_efi_infiniband_device_path): New structure.
49659 (grub_efi_infiniband_device_path_t): New type.
49660 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
49661 (struct grub_efi_uart_device_path): New structure.
49662 (grub_efi_uart_device_path_t): New type.
49663 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
49664 (struct grub_efi_vendor_messaging_device_path): New structure.
49665 (grub_efi_vendor_messaging_device_path_t): New type.
49666 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
49667 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
49668 (struct grub_efi_hard_drive_device_path): New structure.
49669 (grub_efi_hard_drive_device_path_t): New type.
49670 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
49671 (struct grub_efi_cdrom_device_path): New structure.
49672 (grub_efi_cdrom_device_path_t): New type.
49673 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
49674 (struct grub_efi_vendor_media_device_path): New structure.
49675 (grub_efi_vendor_media_device_path_t): New type.
49676 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
49677 (struct grub_efi_file_path_device_path): New structure.
49678 (grub_efi_file_path_device_path_t): New type.
49679 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
49680 (struct grub_efi_protocol_device_path): New structure.
49681 (grub_efi_protocol_device_path_t): New type.
49682 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
49683 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
49684 (struct grub_efi_bios_device_path): New structure.
49685 (grub_efi_bios_device_path_t): New type.
49686 (struct grub_efi_disk_io): New structure.
49687 (grub_efi_disk_io_t): New type.
49688 (struct grub_efi_block_io_media): New structure.
49689 (grub_efi_block_io_media_t): New type.
49690 (struct grub_efi_block_io): New structure.
49691 (grub_efi_block_io_t): New type.
49693 * include/grub/misc.h (grub_stop): Removed.
49694 (grub_exit): New prototype.
49695 (grub_abort): Likewise.
49697 * include/grub/disk.h (enum grub_disk_dev_id): Added
49698 GRUB_DISK_DEVICE_EFIDISK_ID.
49700 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
49701 disk/efi/efidisk.c.
49702 (kernel_syms.lst): Remove the target if an error occurs.
49704 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
49706 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
49707 as it was simply too buggy.
49709 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
49711 * kern/misc.c (grub_lltoa): New function.
49712 (grub_vsprintf): Added support for the long long suffix,
49715 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
49717 * Makefile.in (LDFLAGS): Add variable.
49718 (LD): Remove variable.
49719 * configure.ac: Add -m32 to LDFLAGS.
49720 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
49721 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
49722 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
49723 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
49724 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
49726 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
49727 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
49728 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
49730 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
49732 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
49733 length for unknown glyph.
49735 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
49737 Add support for pre-loaded modules into the EFI port.
49739 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
49740 completely. Accept one more argument DIR. The caller has changed.
49742 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
49744 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
49745 (grub_efi_loaded_image_guid): New variable.
49746 (grub_efi_get_loaded_image): New function.
49747 (grub_arch_modules_addr): Likewise.
49749 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
49752 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
49753 (struct grub_efi_loaded_image): New structure.
49754 (grub_efi_loaded_image_t): New type.
49756 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
49758 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
49759 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
49760 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
49762 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
49764 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
49766 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
49768 * DISTLIST: Added include/grub/efi/console.h,
49769 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
49770 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
49772 * include/grub/efi/console.h: New file.
49773 * include/grub/efi/time.h: Likewise.
49774 * include/grub/i386/efi/kernel.h: Likewise.
49775 * kern/efi/init.c: Likewise.
49776 * kern/efi/mm.c: Likewise.
49777 * term/efi/console.c: Likewise.
49779 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
49780 (grub_stop): Removed.
49781 (grub_get_rtc): Likewise.
49782 (grub_machine_init): Simply call grub_efi_init.
49783 (grub_machine_fini): Call grub_efi_fini.
49785 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
49786 (grub_efi_output_string): Removed.
49787 (grub_efi_stall): New function.
49788 (grub_stop): Likewise.
49789 (grub_get_rtc): Likewise.
49791 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
49792 (grub_efi_stall): New prototype.
49793 (grub_efi_allocate_pages): Likewise.
49794 (grub_efi_free_pages): Likewise.
49795 (grub_efi_get_memory_map): Likewise.
49796 (grub_efi_mm_init): Likewise.
49797 (grub_efi_mm_fini): Likewise.
49798 (grub_efi_init): Likewise.
49799 (grub_efi_fini): Likewise.
49801 * include/grub/i386/efi/time.h: Do not include
49802 grub/symbol.h. Include grub/efi/time.h.
49803 (GRUB_TICKS_PER_SECOND): Removed.
49804 (grub_get_rtc): Likewise.
49806 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
49807 Added padding. The EFI spec is buggy.
49808 (GRUB_EFI_BLACK): New macro.
49809 (GRUB_EFI_BLUE): Likewise.
49810 (GRUB_EFI_GREEN): Likewise.
49811 (GRUB_EFI_CYAN): Likewise.
49812 (GRUB_EFI_RED): Likewise.
49813 (GRUB_EFI_MAGENTA): Likewise.
49814 (GRUB_EFI_BROWN): Likewise.
49815 (GRUB_EFI_LIGHTGRAY): Likewise.
49816 (GRUB_EFI_BRIGHT): Likewise.
49817 (GRUB_EFI_DARKGRAY): Likewise.
49818 (GRUB_EFI_LIGHTBLUE): Likewise.
49819 (GRUB_EFI_LIGHTGREEN): Likewise.
49820 (GRUB_EFI_LIGHTCYAN): Likewise.
49821 (GRUB_EFI_LIGHTRED): Likewise.
49822 (GRUB_EFI_LIGHTMAGENTA): Likewise.
49823 (GRUB_EFI_YELLOW): Likewise.
49824 (GRUB_EFI_WHITE): Likewise.
49825 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
49826 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
49827 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
49828 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
49829 (GRUB_EFI_BACKGROUND_RED): Likewise.
49830 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
49831 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
49832 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
49833 (GRUB_EFI_TEXT_ATTR): Likewise.
49835 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
49836 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
49837 (kernel_mod_HEADERS): Added efi/time.h.
49839 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
49841 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
49842 include/grub/efi/api.h, include/grub/efi/console_control.h,
49843 include/grub/efi/efi.h, include/grub/efi/pe32.h,
49844 include/grub/i386/efi/time.h, kern/efi/efi.c,
49845 kern/i386/efi/init.c, kern/i386/efi/startup.S,
49846 and util/i386/efi/grub-mkimage.c.
49848 * Makefile.in (RMKFILES): Added i386-efi.rmk.
49850 * genmk.rb (PModule#rule): Do not export symbols if
49851 #{prefix}_EXPORTS is set to "no".
49853 * conf/i386-efi.mk: New file.
49854 * conf/i386-efi.rmk: Likewise.
49855 * include/grub/efi/api.h: Likewise.
49856 * include/grub/efi/console_control.h: Likewise.
49857 * include/grub/efi/efi.h: Likewise.
49858 * include/grub/efi/pe32.h: Likewise.
49859 * include/grub/i386/efi/time.h: Likewise.
49860 * kern/efi/efi.c: Likewise.
49861 * kern/i386/efi/init.c: Likewise.
49862 * kern/i386/efi/startup.S: Likewise.
49863 * util/i386/efi/grub-mkimage.c: Likewise.
49865 2006-04-17 Marco Gerards <marco@gnu.org>
49867 * include/grub/script.h: Include <grub/parser.h> and
49868 "grub_script.tab.h".
49869 (struct grub_lexer_param): New struct.
49870 (struct grub_parser_param): Likewise.
49871 (grub_script_create_arglist): Pass the state in an argument.
49872 (grub_script_add_arglist): Likewise.
49873 (grub_script_create_cmdline): Likewise.
49874 (grub_script_create_cmdblock): Likewise.
49875 (grub_script_create_cmdif): Likewise.
49876 (grub_script_create_cmdmenu): Likewise.
49877 (grub_script_add_cmd): Likewise.
49878 (grub_script_arg_add): Likewise.
49879 (grub_script_lexer_ref): Likewise.
49880 (grub_script_lexer_deref): Likewise.
49881 (grub_script_lexer_record_start): Likewise.
49882 (grub_script_lexer_record_stop): Likewise.
49883 (grub_script_mem_record): Likewise.
49884 (grub_script_mem_record_stop): Likewise.
49885 (grub_script_malloc): Likewise.
49886 (grub_script_yylex): Likewise.
49887 (grub_script_yyparse): Likewise.
49888 (grub_script_yyerror): Likewise.
49889 (grub_script_yylex): Likewise.
49890 (grub_script_lexer_init): Return the state.
49892 * normal/lexer.c (grub_script_lexer_state): Removed variable.
49893 (grub_script_lexer_done): Likewise.
49894 (grub_script_lexer_getline): Likewise.
49895 (grub_script_lexer_refs): Likewise.
49896 (script): Likewise.
49897 (newscript): Likewise.
49898 (record): Likewise.
49899 (recording): Likewise.
49900 (recordpos): Likewise.
49901 (recordlen): Likewise.
49902 (grub_script_lexer_init): Return the state instead of setting
49904 (grub_script_lexer_ref): Use the newly added argument for state
49905 instead of globals.
49906 (grub_script_lexer_deref): Likewise.
49907 (grub_script_lexer_record_start): Likewise.
49908 (grub_script_lexer_record_stop): Likewise.
49909 (recordchar): Likewise.
49910 (nextchar): Likewise.
49911 (grub_script_yylex2): Likewise.
49912 (grub_script_yylex): Likewise.
49913 (grub_script_yyerror): Likewise.
49915 * normal/parser.y (func_mem): Removed variable.
49916 (menu_entry): Likewise.
49918 (%lex-param): New parser option.
49919 (%parse-param): Likewise.
49920 (script): Always return the AST.
49921 (argument): Pass the state around.
49922 (arguments): Likewise.
49923 (grubcmd): Likewise.
49924 (commands): Likewise.
49925 (function): Likewise.
49926 (menuentry): Likewise.
49927 (if_statement): Likewise.
49930 * normal/script.c (grub_script_memused): Removed variable.
49931 (grub_script_parsed): Likewise.
49932 (grub_script_malloc): Added a state argument. Use that instead of
49934 (grub_script_mem_record): Likewise.
49935 (grub_script_mem_record_stop): Likewise.
49936 (grub_script_arg_add): Likewise.
49937 (grub_script_add_arglist): Likewise.
49938 (grub_script_create_cmdline): Likewise.
49939 (grub_script_create_cmdif): Likewise.
49940 (grub_script_create_cmdmenu): Likewise.
49941 (grub_script_add_cmd): Likewise.
49942 (grub_script_parse): Setup the state before calling the parser.
49944 2006-04-16 Marco Gerards <marco@gnu.org>
49946 * normal/command.c (grub_command_init): Remove the title command.
49948 * normal/lexer.c (grub_script_yylex): Renamed from this...
49949 (grub_script_yylex2): ... to this.
49950 (grub_script_yylex): New function. Temporary
49951 introduced to filter some tokens.
49952 (grub_script_yyerror): Print a newline.
49954 * normal/main.c (read_config_file): Output information about the
49955 lines that contain errors. Wait for a key after all lines have
49956 been processed. Don't return an empty menu.
49958 * normal/parser.y (func_mem): Don't initialize.
49959 (menu_entry): Likewise.
49960 (err): New variable.
49961 (script): Don't return anything when an error was encountered.
49962 (ws, returns): Removed rules.
49963 (argument): Disabled concatenated variable support.
49964 (arguments): Remove explicit separators.
49965 (grubcmd): Likewise.
49966 (function): Likewise.
49967 (menuentry): Likewise.
49969 (commands): Likewise. Add error handling.
49971 * normal/script.c (grub_script_create_cmdline): If
49972 `grub_script_parsed' is 0, assume the parser encountered an error.
49974 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
49976 * configure.ac: Add support for EFI. Fix the typo
49977 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
49979 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
49981 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
49982 foreign multibyte characters should be shown correctly.
49984 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
49986 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
49988 (read_config_file): Made it to close file before returning.
49990 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
49992 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
49993 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
49994 video/i386/pc/vbefill.c.
49996 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
49997 video/i386/pc/vbefill.c.
49999 * include/grub/video.h (grub_video_blit_format): New enum.
50000 (grub_video_mode_info): Added new member blit_format.
50001 (grub_video_get_blit_format): New function prototype.
50003 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50004 function prototype.
50005 (grub_video_vbe_map_rgb): Likewise.
50006 (grub_video_vbe_unmap_color): Likewise.
50008 * include/grub/i386/pc/vbeblit.h: New file.
50010 * include/grub/i386/pc/vbefill.h: New file.
50012 * video/video.c (grub_video_get_blit_format): New function.
50013 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50014 (grub_video_vbe_map_rgb): Likewise.
50015 (grub_video_vbe_unmap_color): Likewise.
50017 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50019 (grub_video_vbe_blit_render_target): Changed to use more optimized
50021 (grub_video_vbe_setup): Added detection for optimized settings.
50022 (grub_video_vbe_create_render_target): Likewise.
50024 * video/i386/pc/vbeblit.c: New file.
50026 * video/i386/pc/vbefill.c: New file.
50028 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50030 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50033 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50034 parsing to support both hex and dec ranges. If filename was missing
50035 show usage information.
50037 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50039 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50040 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50042 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50043 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50044 (video_mod_SOURCES): Added.
50045 (video_mod_CFLAGS): Likewise.
50046 (video_mod_LDFLAGS): Likewise.
50047 (gfxterm_mod_SOURCES): Likewise.
50048 (gfxterm_mod_CFLAGS): Likewise.
50049 (gfxterm_mod_LDFLAGS): Likewise.
50050 (videotest_mod_SOURCES): Likewise.
50051 (videotest_mod_CFLAGS): Likewise.
50052 (videotest_mod_LDFLAGS): Likewise.
50053 (vesafb_mod_SOURCES): Removed.
50054 (vesafb_mod_CFLAGS): Likewise.
50055 (vesafb_mod_LDFLAGS): Likewise.
50056 (vga_mod_SOURCES): Likewise.
50057 (vga_mod_CFLAGS): Likewise.
50058 (vga_mod_LDFLAGS): Likewise.
50060 * commands/videotest.c: New file.
50062 * font/manager.c (fill_with_default_glyph): Modified to use
50064 (grub_font_get_glyph): Likewise.
50065 (fontmanager): Renamed from this...
50066 (font_manager): ... to this.
50068 * include/grub/font.h (grub_font_glyph): Added new structure.
50069 (grub_font_get_glyph): Modified to use grub_font_glyph.
50071 * include/grub/misc.h (grub_abs): Added as inline function.
50073 * include/grub/video.h: New file.
50075 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50076 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50077 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50078 (grub_vbe_get_controller_info): Renamed from this...
50079 (grub_vbe_bios_get_controller_info): ... to this.
50080 (grub_vbe_get_mode_info): Renamed from this...
50081 (grub_vbe_bios_get_mode_info): ... to this.
50082 (grub_vbe_set_mode): Renamed from this...
50083 (grub_vbe_bios_set_mode): ... to this.
50084 (grub_vbe_get_mode): Renamed from this...
50085 (grub_vbe_bios_get_mode): ... to this.
50086 (grub_vbe_set_memory_window): Renamed from this...
50087 (grub_vbe_bios_set_memory_window): ... to this.
50088 (grub_vbe_get_memory_window): Renamed from this...
50089 (grub_vbe_bios_get_memory_window): ... to this.
50090 (grub_vbe_set_scanline_length): Renamed from this...
50091 (grub_vbe_set_scanline_length): ... to this.
50092 (grub_vbe_get_scanline_length): Renamed from this...
50093 (grub_vbe_bios_get_scanline_length): ... to this.
50094 (grub_vbe_set_display_start): Renamed from this...
50095 (grub_vbe_bios_set_display_start): ... to this.
50096 (grub_vbe_get_display_start): Renamed from this...
50097 (grub_vbe_bios_get_display_start): ... to this.
50098 (grub_vbe_set_palette_data): Renamed from this...
50099 (grub_vbe_bios_set_palette_data): ... to this.
50100 (grub_vbe_set_pixel_rgb): Removed.
50101 (grub_vbe_set_pixel_index): Likewise.
50103 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50105 (grub_vbe_bios_get_controller_info): ... to this.
50106 (grub_vbe_get_mode_info): Renamed from this...
50107 (grub_vbe_bios_get_mode_info): ... to this.
50108 (grub_vbe_set_mode): Renamed from this...
50109 (grub_vbe_bios_set_mode): ... to this.
50110 (grub_vbe_get_mode): Renamed from this...
50111 (grub_vbe_bios_get_mode): ... to this.
50112 (grub_vbe_set_memory_window): Renamed from this...
50113 (grub_vbe_bios_set_memory_window): ... to this.
50114 (grub_vbe_get_memory_window): Renamed from this...
50115 (grub_vbe_bios_get_memory_window): ... to this.
50116 (grub_vbe_set_scanline_length): Renamed from this...
50117 (grub_vbe_set_scanline_length): ... to this.
50118 (grub_vbe_get_scanline_length): Renamed from this...
50119 (grub_vbe_bios_get_scanline_length): ... to this.
50120 (grub_vbe_set_display_start): Renamed from this...
50121 (grub_vbe_bios_set_display_start): ... to this.
50122 (grub_vbe_get_display_start): Renamed from this...
50123 (grub_vbe_bios_get_display_start): ... to this.
50124 (grub_vbe_set_palette_data): Renamed from this...
50125 (grub_vbe_bios_set_palette_data): ... to this.
50126 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50127 getting corrupted after calling it. Added more pushes and pops.
50128 (grub_vbe_bios_set_mode): Likewise.
50129 (grub_vbe_bios_get_mode): Likewise.
50130 (grub_vbe_bios_get_memory_window): Likewise.
50131 (grub_vbe_bios_set_scanline_length): Likewise.
50132 (grub_vbe_bios_get_scanline_length): Likewise.
50133 (grub_vbe_bios_get_display_start): Likewise.
50134 (grub_vbe_bios_set_palette_data): Likewise.
50136 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50137 (cl_insert): Likewise.
50138 (cl_delete): Likewise.
50140 * term/gfxterm.c: New file.
50142 * term/i386/pc/vesafb.c: Removed file.
50144 * video/video.c: New file.
50146 * video/i386/pc/vbe.c (real2pm): Added new function.
50147 (grub_video_vbe_draw_pixel): Likewise.
50148 (grub_video_vbe_get_video_ptr): Likewise.
50149 (grub_video_vbe_get_pixel): Likewise
50150 (grub_video_vbe_init): Likewise.
50151 (grub_video_vbe_fini): Likewise.
50152 (grub_video_vbe_setup): Likewise.
50153 (grub_video_vbe_get_info): Likewise.
50154 (grub_video_vbe_set_palette): Likewise.
50155 (grub_video_vbe_get_palette): Likewise.
50156 (grub_video_vbe_set_viewport): Likewise.
50157 (grub_video_vbe_get_viewport): Likewise.
50158 (grub_video_vbe_map_color): Likewise.
50159 (grub_video_vbe_map_rgb): Likewise.
50160 (grub_video_vbe_map_rgba): Likewise.
50161 (grub_video_vbe_unmap_color): Likewise.
50162 (grub_video_vbe_fill_rect): Likewise.
50163 (grub_video_vbe_blit_glyph): Likewise.
50164 (grub_video_vbe_blit_bitmap): Likewise.
50165 (grub_video_vbe_blit_render_target): Likewise.
50166 (grub_video_vbe_scroll): Likewise.
50167 (grub_video_vbe_swap_buffers): Likewise.
50168 (grub_video_vbe_create_render_target): Likewise.
50169 (grub_video_vbe_delete_render_target): Likewise.
50170 (grub_video_vbe_set_active_render_target): Likewise.
50171 (grub_vbe_set_pixel_rgb): Remove function.
50172 (grub_vbe_set_pixel_index): Likewise.
50173 (index_color_mode): Remove static variable.
50174 (active_mode): Likewise.
50175 (framebuffer): Likewise.
50176 (bytes_per_scan_line): Likewise.
50177 (grub_video_vbe_adapter): Added new static variable.
50178 (framebuffer): Likewise.
50179 (render_target): Likewise.
50180 (initial_mode): Likewise.
50181 (mode_in_use): Likewise.
50182 (mode_list): Likewise.
50184 2006-03-10 Marco Gerards <marco@gnu.org>
50186 * configure.ac (AC_INIT): Bumped to 1.93.
50188 * DISTLIST: Added `include/grub/hfs.h'.
50190 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50192 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50193 18H, which might help the BIOS falling back to next boot media.
50195 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50197 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50198 Poe Chen <poe.poechen@gmail.com>.
50200 2006-01-17 Marco Gerards <marco@gnu.org>
50202 * include/grub/normal.h: Include <grub/script.h>.
50203 (grub_command_list): Removed struct.
50204 (grub_command_list_t): Removed type.
50205 (grub_menu_entry): Remove members `num' and `command_list'. Add
50206 members `commands' and `sourcecode'.
50207 * include/grub/script.h: Add inclusion guards.
50208 (grub_script_cmd_menuentry): New struct.
50209 (grub_script_execute_menuentry): New prototype.
50210 (grub_script_lexer_record_start): Likewise.
50211 (grub_script_lexer_record_stop): Likewise.
50212 * normal/execute.c (grub_script_execute_menuentry): New function.
50213 * normal/lexer.c (record, recording, recordpos, recordlen): New
50215 (grub_script_lexer_record_start): New function.
50216 (grub_script_lexer_record_stop): Likewise.
50217 (recordchar): Likewise.
50218 (nextchar): Likewise.
50219 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50220 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50221 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50222 (current_menu): New variable.
50223 (free_menu): Mainly rewritten.
50224 (grub_normal_menu_addentry): New function.
50225 (read_config_file): Rewritten.
50226 * normal/menu.c (run_menu_entry): Mainly rewritten.
50227 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50229 (run): Mainly rewritten.
50230 * normal/parser.y (menu_entry): New variable.
50231 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50232 (menuentry): New rule.
50233 (command): Add `menuentry'.
50234 (if_statement): Allow additional returns before `fi'.
50235 * normal/script.c (grub_script_create_cmdmenu): New function.
50237 2006-01-03 Marco Gerards <marco@gnu.org>
50239 * INSTALL: GNU Bison is required.
50240 * configure.ac: Rewritten the test to detect Bison.
50241 * Makefile.in (YACC): New variable. Reported by Xun Sun
50242 <xun.sun.cn@gmail.com>.
50244 2006-01-03 Marco Gerards <marco@gnu.org>
50246 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50247 the HFS+ filesystem to filesystem blocks.
50248 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50249 GCC warning is silenced.
50251 2006-01-03 Marco Gerards <marco@gnu.org>
50253 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50254 read from disk from big endian to host byte order.
50256 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50258 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50260 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50261 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50262 embedded HFS+ filesystem.
50263 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50264 (grub_hfs_sblock): Move from here...
50265 * include/grub/hfs.h: To here... New file.
50266 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50268 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50270 (grub_hfsplus_volheader): Change type of member `magic' to
50272 (grub_hfsplus_data): Add new member `embedded_offset'.
50273 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50275 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50276 Calculate the offset.
50278 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50280 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50282 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50284 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50286 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50287 ENV->NAME is NULL after allocating ENV->VALUE.
50289 2005-12-25 Marco Gerards <marco@gnu.org>
50291 * kern/env.c (grub_env_set): Rewritten the error handling code.
50293 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50295 * geninit.sh: Made more robust, and more portable.
50297 2005-12-25 Marco Gerards <marco@gnu.org>
50299 Add support for Apple HFS+ filesystems.
50301 * fs/hfsplus.c: New file.
50303 * DISTLIST: Added `fs/hfsplus.c'.
50305 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50306 (hfsplus_mod_SOURCES): New variable.
50307 (hfsplus_mod_CFLAGS): Likewise.
50308 (hfsplus_mod_LDFLAGS): Likewise.
50309 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50310 (grub_setup_SOURCES): Likewise.
50311 (grub_mkdevicemap_SOURCES): Likewise.
50312 (grub_emu_SOURCES): Likewise.
50313 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50315 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50317 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50319 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50321 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50322 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50323 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50324 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50325 normal/lexer.c, normal/parser.y, normal/script.c, and
50327 Removed kern/sparc64/cache.c.
50329 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50330 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50333 * configure.ac (AC_INIT): Bumped to 1.92.
50335 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50337 * kern/err.c (grub_error_push): Added new function to support error
50339 (grub_error_pop): Likewise.
50340 (grub_error_stack_items): New local variable to support error stacks.
50341 (grub_error_stack_pos): Likewise.
50342 (grub_error_stack_assert): Likewise.
50343 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50345 (grub_print_error): Added support to print errors from error stack.
50347 * include/grub/err.h (grub_error_push): Added function prototype.
50348 (grub_error_pop): Likewise.
50350 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50352 * configure.ac: Accept `powerpc64' as host_cpu.
50353 (amd64): Rename to `biarch32'.
50355 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50356 non-cacheline-aligned addresses.
50358 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50359 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50360 if `size' is non-zero.
50362 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
50364 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50365 and `cd' to make sure the filename is not prefixed with a
50367 (pkgdata_MODULES): Add `gpt.mod'.
50368 (gpt_mod_SOURCES): New variable.
50369 (gpt_mod_CFLAGS): Likewise.
50370 (gpt_mod_LDFLAGS): Likewise.
50372 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50374 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50377 * partmap/gpt.c: New file.
50379 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
50380 GPT partition map is detected.
50382 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
50384 * commands/i386/pc/play.c: New file.
50385 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
50386 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
50389 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
50391 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
50392 ((unused))' to silence gcc warning.
50394 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
50396 * configure.ac: Correct `AC_PROG_YACC' test.
50398 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50400 * util/powerpc/ieee1275/grub-install.in: Run the mount point
50401 check before installing files.
50403 2005-11-22 Mike Small <smallm@panix.com>
50405 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
50406 number regex so multidigit numbers are recognized correctly.
50408 2005-11-22 Mike Small <smallm@panix.com>
50410 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
50411 debugging message before attempting to claim memory.
50412 (grub_rescue_cmd_initrd): Add a claim debugging message and try
50413 multiple addresses in case of failure.
50415 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50417 * term/tparm.c (get_space): Remove empty `if' statement.
50419 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
50421 * kern/parser.c (check_varstate): Rename `state' to 's'.
50423 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50425 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
50426 variable definitions to the beginning of each function. Sort stack
50428 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
50429 `buf' argument to `char *'.
50431 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50433 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
50434 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
50435 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
50436 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
50437 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
50438 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
50439 configfile.mod, search.mod, gzio.mod and test.mod.
50440 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
50441 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
50442 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
50443 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
50444 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
50445 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
50446 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
50447 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
50448 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
50449 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
50450 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50451 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50452 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
50453 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
50454 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
50455 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
50456 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50457 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
50458 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
50459 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
50460 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
50461 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
50462 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
50464 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
50466 (pkgdata_MODULES): Add test.mod.
50468 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50470 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
50471 appending to variables with "+=".
50472 (PModule): Use full pathname to generate *.lst filenames.
50474 * Makefile.in: Fixed list rules moved from genmk.rb.
50475 (.DELETE_ON_ERROR): New special target.
50476 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
50478 * conf/i386-pc.rmk: Include conf/common.mk.
50479 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
50480 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
50481 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
50482 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
50483 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
50484 configfile.mod, search.mod, gzio.mod and test.mod.
50485 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
50486 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
50487 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
50488 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
50489 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
50490 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
50491 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
50492 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
50493 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
50494 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
50495 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50496 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50497 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
50498 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
50499 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
50500 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
50501 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50502 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
50503 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
50504 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
50505 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
50506 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
50507 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
50509 * conf/common.rmk: ... to here. New file.
50511 * conf/common.mk: New file.
50513 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
50515 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
50516 (grub_script.tab.c): ... here.
50518 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
50519 (grub_script.tab.c): ... here.
50521 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
50522 (grub_script.tab.c): ... here.
50524 * normal/command.c (grub_command_find): Fixed a memory leak of
50525 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
50527 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50529 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
50530 "@" which marks the start of a comment on ARM.
50531 (VARIABLE): Likewise.
50533 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50535 Add support for Linux/ADFS partition tables.
50537 * partmap/acorn.c: New file.
50539 * include/grub/acorn_filecore.h: Likewise.
50541 * DISTLIST: Added `partmap/acorn.c' and
50542 `include/grub/acorn_filecore.h'.
50544 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50546 (pkgdata_MODULES): Add `acorn.mod'.
50547 (acorn_mod_SOURCES): New variable.
50548 (acorn_mod_CFLAGS): Likewise.
50550 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
50552 (pkgdata_MODULES): Add `acorn.mod'.
50553 (acorn_mod_SOURCES): New variable.
50554 (acorn_mod_CFLAGS): Likewise.
50556 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
50557 (pkgdata_MODULES): Add `acorn.mod'.
50558 (acorn_mod_SOURCES): New variable.
50559 (acorn_mod_CFLAGS): Likewise.
50560 (acorn_mod_LDFLAGS): Likewise.
50562 * include/types.h (grub_disk_addr_t): New typedef.
50564 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
50566 * geninit.sh: New file.
50568 * geninitheader.sh: Likewise.
50570 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
50571 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
50572 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
50573 * commands/configfile.c (grub_configfile_init)
50574 (grub_configfile_fini): Likewise.
50575 * commands/default.c (grub_default_init, grub_default_fini):
50577 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
50578 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
50579 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
50580 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
50582 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
50583 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
50585 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
50586 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
50588 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
50590 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
50592 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
50593 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
50594 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
50595 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
50596 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
50597 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
50598 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
50599 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
50600 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
50601 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
50602 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
50603 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
50604 * partmap/amiga.c (grub_amiga_partition_map_init)
50605 (grub_amiga_partition_map_fini): Likewise.
50606 * partmap/apple.c (grub_apple_partition_map_init)
50607 (grub_apple_partition_map_fini): Likewise.
50608 * partmap/pc.c (grub_pc_partition_map_init)
50609 (grub_pc_partition_map_fini): Likewise.
50610 * partmap/sun.c (grub_sun_partition_map_init,
50611 grub_sun_partition_map_fini): Likewise.
50612 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
50615 * util/grub-emu.c: Include <grub_modules_init.h>.
50616 (main): Don't initialize and de-initialize any modules directly,
50617 use `grub_init_all' and `grub_fini_all' instead.
50619 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
50620 `grub_vesafb_mod_init'.
50621 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
50623 * term/i386/pc/vga.c (grub_vga_init): Renamed to
50624 `grub_vga_mod_init'. Updated all users.
50625 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
50627 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
50628 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
50631 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
50632 Generate a function to initialize the module in utilities.
50633 Updated all callers.
50634 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
50635 initialize the module in utilities. Updated all callers.
50637 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
50639 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
50640 escape sequence and a literal ^L to clear the screen.
50642 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
50643 when returning from Open Firmware.
50645 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
50647 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
50648 (grub_ofconsole_height): Likewise.
50649 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
50650 manually insert a '\n'.
50651 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
50652 `grub_ofconsole_height'. Return early if these are already set.
50654 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
50656 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
50657 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
50658 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
50659 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
50660 and `normal/script.c'.
50661 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50662 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50663 (test_mod_SOURCES): New variable.
50664 (test_mod_CFLAGS): Likewise.
50665 (test_mod_LDFLAGS): Likewise.
50666 (pkgdata_MODULES): Add `test.mod'.
50667 (grub_script.tab.c): New rule.
50668 (grub_script.tab.h): Likewise.
50670 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
50672 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50673 `commands/test.c', `normal/execute.c', `normal/lexer.c',
50674 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50675 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50676 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50677 (test_mod_SOURCES): New variable.
50678 (test_mod_CFLAGS): Likewise.
50679 (pkgdata_MODULES): Add `test.mod'.
50680 (grub_script.tab.c): New rule.
50681 (grub_script.tab.h): Likewise.
50683 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
50685 Add initial scripting support.
50687 * commands/test.c: New file.
50688 * include/grub/script.h: Likewise.
50689 * normal/execute.c: Likewise.
50690 * normal/function.c: Likewise.
50691 * normal/lexer.c: Likewise.
50692 * normal/parser.y: Likewise.
50693 * normal/script.c: Likewise.
50695 * configure.ac: Add `AC_PROG_YACC' test.
50697 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
50698 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
50699 `normal/function.c' and `normal/script.c'.
50700 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50701 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50702 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
50704 (pkgdata_MODULES): Add `test.mod'.
50705 (grub_script.tab.c): New rule.
50706 (grub_script.tab.h): Likewise.
50708 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
50710 * include/grub/normal.h (grub_test_init): New prototype.
50711 (grub_test_fini): Likewise.
50713 * normal/command.c: Include <grub/script.h>.
50714 (grub_command_execute): Rewritten.
50716 * util/grub-emu.c (main): Call `grub_test_init' and
50719 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50721 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
50723 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
50724 there are no pending characters.
50726 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50728 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
50729 `grub_strndup' to drop device arguments. Replace unnecessary
50730 `grub_strndup' with `grub_strdup'.
50732 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50734 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
50735 `debug' environment variable has been set.
50737 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
50739 * Makefile.in (install-local): Use $(DATA).
50740 (uninstall): Likewise.
50741 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
50742 (sbin_UTILITIES): ... to here.
50743 (sbin_SCRIPTS): New variable.
50744 (grub_install_SOURCES): New variable.
50745 * util/powerpc/ieee1275/grub-install.in: New file.
50746 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
50748 (add_segments): Call `grub_util_get_path'.
50750 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
50752 From Timothy Baldwin:
50753 * commands/ls.c (grub_ls_list_files): Close FILE with
50755 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
50757 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
50759 * include/grub/parser.h: New file.
50761 * kern/parser.c: Likewise.
50763 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
50764 (grub_setup_SOURCES): Likewise.
50765 (grub_probefs_SOURCES): Likewise.
50766 (grub_emu_SOURCES): Likewise.
50767 (kernel_img_HEADERS): Add `parser.h'.
50769 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
50770 (grub_emu_SOURCES): Add `kern/parser.c'.
50771 (grubof_SOURCES): Likewise.
50773 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
50774 (grubof_SOURCES): Add `kern/parser.c'.
50776 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
50778 * kern/misc.c (grub_split_cmdline): Removed function.
50780 * kern/rescue.c: Include <grub/parser.h>.
50781 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
50782 of `grub_split_cmdline'.
50784 * normal/command.c: Include <grub/parser.h>.
50785 (grub_command_execute): Use `grub_parser_split_cmdline' instead
50786 of `grub_split_cmdline'.
50788 * normal/completion.c: Include <grub/parser.h>.
50789 (cmdline_state): New variable.
50790 (iterate_dir): End the filename with a quote depending on the
50791 command line state.
50792 (get_state): new function.
50793 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
50794 split the arguments and determine the current argument. When the
50795 argument string is not quoted, escape all spaces.
50797 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50799 * normal/sparc64/setjmp.S: New file.
50801 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50803 * include/grub/sparc64/libgcc.h: New file.
50804 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
50805 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
50806 normal/sparc64/setjmp.c.
50808 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50810 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
50811 * kern/sparc64/cache.S: New file.
50812 * kern/sparc64/cache.c: Removed.
50813 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
50814 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
50816 (COMMON_LDFLAGS): Add -melf64_sparc.
50817 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
50818 (grubof_SOURCES): Use cache.S instead of cache.c.
50819 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
50820 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
50821 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
50823 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
50824 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
50825 (linux_mod_CFLAGS): Commented out.
50826 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
50827 out because module isn't built.
50828 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
50829 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
50830 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
50831 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
50832 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
50833 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
50834 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
50835 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
50836 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
50837 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
50838 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50839 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50840 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
50841 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
50843 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
50845 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
50846 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
50847 longer, because HFS should not be used on PC.
50849 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50851 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
50852 consistently within the loop.
50854 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
50856 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
50857 directory can not be read.
50859 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50861 * configure.ac (AC_INIT): Increase the version number to 1.91.
50863 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
50864 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
50865 term/i386/pc/serial.c.
50867 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50869 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
50870 file size must be permitted.
50872 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
50873 between %ah and %al.
50875 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50877 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
50879 Call the hook with a NUL-terminated filename.
50880 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
50883 * kern/term.c (cursor_state): New variable.
50884 (grub_term_set_current): Reset the cursor state on a new
50886 (grub_setcursor): Rewritten to use CURSOR_STATE.
50887 (grub_getcursor): New function.
50889 * include/grub/term.h (grub_getcursor): New prototype.
50891 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
50892 integers on ARM. Reported by Timothy Baldwin
50893 <T.E.Baldwin99@members.leeds.ac.uk>.
50895 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
50897 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
50899 (grub_sfs_dir): Likewise.
50901 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
50903 Add support for the SFS filesystem.
50905 * fs/sfs.c: New file.
50907 * DISTLIST: Added `fs/sfs.c'.
50909 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
50910 (grub_probefs_SOURCES): Likewise.
50911 (grub_emu_SOURCES): Likewise.
50912 (pkgdata_MODULES): Add `sfs.mod'.
50913 (sfs_mod_SOURCES): New variable.
50914 (sfs_mod_CFLAGS): Likewise.
50915 (sfs_mod_LDFLAGS): Likewise.
50917 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
50918 (pkgdata_MODULES): Add `sfs.mod'.
50919 (sfs_mod_SOURCES): New variable.
50920 (sfs_mod_CFLAGS): Likewise.
50922 * util/grub-emu.c (main): Call `grub_sfs_init' and
50925 * include/grub/fs.h (grub_sfs_init): New prototype.
50926 (grub_sfs_fini): Likewise.
50928 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
50930 Add support for the AFFS filesystem.
50932 * fs/affs.c: New file.
50934 * DISTLIST: Added `fs/affs.c'.
50936 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
50937 (grub_probefs_SOURCES): Likewise.
50938 (grub_emu_SOURCES): Likewise.
50939 (pkgdata_MODULES): Add `affs.mod'.
50940 (affs_mod_SOURCES): New variable.
50941 (affs_mod_CFLAGS): Likewise.
50942 (affs_mod_LDFLAGS): Likewise.
50944 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
50945 (pkgdata_MODULES): Add `affs.mod'.
50946 (affs_mod_SOURCES): New variable.
50947 (affs_mod_CFLAGS): Likewise.
50949 * util/grub-emu.c (main): Call `grub_affs_init' and
50952 * include/grub/fs.h (grub_affs_init): New prototype.
50953 (grub_affs_fini): Likewise.
50955 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
50957 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
50959 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
50961 * configure.ac: Accept `x86_64' as host_cpu. In that case add
50964 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
50967 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
50968 (COMMON_LDFLAGS): New variable.
50969 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
50970 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
50971 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
50972 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
50973 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
50974 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
50975 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
50976 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
50977 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
50978 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
50979 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
50980 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
50981 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
50982 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
50983 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
50985 (normal_mod_ASFLAGS): Add `-m32'.
50987 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
50988 (grub_host_size_t, grub_host_ssize_t): New types.
50989 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
50990 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
50991 `GRUB_HOST_SIZEOF_VOID_P'.
50993 * include/grub/kernel.h (struct grub_module_header): Type of
50994 member offset changed to `grub_host_off_t'. Type of member size
50995 changed to `grub_host_size_t'.
50996 (struct grub_module_info): Type of member offset changed to
50997 `grub_host_off_t'. Type of member size changed to
50998 `grub_host_size_t'.
51000 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51002 Make GRUB's kernel compliant to Multiboot Specification.
51004 * kern/i386/pc/startup.S (multiboot_header): New label.
51005 (multiboot_entry): Likewise.
51006 (multiboot_trampoline): Likewise.
51008 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51009 Increased to 0x4A0.
51011 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51012 put parentheses after a question mark.
51013 [!GRUB_UTIL] (my_mod): New variable.
51015 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51017 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51019 Adds support for the XFS filesystem. Btrees are not supported
51022 * fs/xfs.c: New file.
51024 * DISTLIST: Added `fs/xfs.c'.
51026 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51027 (grub_probefs_SOURCES): Likewise.
51028 (grub_emu_SOURCES): Likewise.
51029 (pkgdata_MODULES): Add `xfs.mod'.
51030 (xfs_mod_SOURCES): New variable.
51031 (xfs_mod_CFLAGS): Likewise.
51033 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51034 (pkgdata_MODULES): Add `xfs.mod'.
51035 (xfs_mod_SOURCES): New variable.
51036 (xfs_mod_CFLAGS): Likewise.
51038 * util/grub-emu.c (main): Call `grub_xfs_init' and
51041 * include/grub/fs.h (grub_xfs_init): New prototype.
51042 (grub_xfs_fini): Likewise.
51045 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51047 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51048 color modes, allow greater than 16 colors to be configured as
51051 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51053 * normal/completion.c (complete_arguments): Add the qualifier
51054 const into OPTIONS.
51056 From Omniflux <omniflux+lists@omniflux.com>:
51057 * include/grub/terminfo.h: New file.
51058 * include/grub/tparm.h: Likewise.
51059 * include/grub/i386/pc/serial.h: Likewise.
51060 * term/terminfo.c: Likewise.
51061 * term/tparm.c: Likewise.
51062 * term/i386/pc/serial.c: Likewise.
51063 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51065 (terminfo_mod_SOURCES): New variable.
51066 (terminfo_mod_CFLAGS): Likewise.
51067 (serial_mod_SOURCES): Likewise.
51068 (serial_mod_CFLAGS): Likewise.
51070 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51072 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51073 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51074 and kern/powerpc/ieee1275/cmain.c, respectively.
51076 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51077 * kern/powerpc/ieee1275/crt0.S: ... here.
51079 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51080 * kern/powerpc/ieee1275/cmain.c: ... here.
51082 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51083 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51084 instead of boot/powerpc/ieee1275/crt0.S and
51085 boot/powerpc/ieee1275/cmain.c, respectively.
51087 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51088 sectors. It was not used anyway.
51090 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51092 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51093 `unused parameter' warning.
51095 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51097 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51099 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51102 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51104 * include/grub/normal.h (enum grub_completion_type): Added
51105 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51107 * normal/cmdline.c (print_completion): Handle
51108 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51109 * normal/menu_entry.c (store_completion): Likewise.
51111 * normal/completion.c (complete_arguments): New function.
51112 (grub_normal_do_completion): Call `complete_arguments' when the
51113 current words start with a dash.
51115 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51117 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51118 `gzio.mod' instead of `io.mod').
51120 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51122 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51123 (DISTDIRS): Added io and video.
51124 Rewrite the search routine to make an output consistently.
51126 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51127 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51128 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51129 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51130 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51131 util/powerpc/ieee1275/misc.c.
51133 * include/grub/gzio.h: New file.
51134 * io/gzio.c: Likewise.
51136 * kern/file.c (grub_file_close): Call grub_device_close only if
51137 FILE->DEVICE is not NULL.
51139 * include/grub/mm.h [!NULL] (NULL): New macro.
51141 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51143 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51144 (pkgdata_MODULES): Added gzio.mod.
51145 (gzio_mod_SOURCES): New variable.
51146 (gzio_mod_CFLAGS): Likewise.
51148 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51149 (pkgdata_MODULES): Added gzio.mod.
51150 (gzio_mod_SOURCES): New variable.
51151 (gzio_mod_CFLAGS): Likewise.
51153 * commands/cat.c: Include grub/gzio.h.
51154 (grub_cmd_cat): Use grub_gzfile_open instead of
51157 * commands/cmp.c: Include grub/gzio.h.
51158 (grub_cmd_cmp): Use grub_gzfile_open instead of
51161 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51162 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51164 (grub_rescue_cmd_module): Likewise.
51166 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51168 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51169 kern/sparc64/ieee1275/init.c because it contains _start.
51170 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51172 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51174 * configure.ac: Add support for sparc64 host with ieee1275
51176 * configure: Generated from configure.ac.
51177 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51179 (grub_ofdisk_read): Likewise.
51180 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51181 pointers as (void *) to remove a warning.
51182 (grub_ofdisk_close): Likewise.
51183 (grub_ofdisk_read): Likewise.
51184 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51185 returns, so make it return void to remove a warning.
51186 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51187 Corresponding prototype change.
51188 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51189 values, and cast the pointers as (void *) to remove a warning.
51190 (grub_mm_dump): Likewise.
51191 * conf/sparc64-ieee1275.mk: New file.
51192 * conf/sparc64-ieee1275.rmk: Likewise.
51193 * include/grub/sparc64/setjmp.h: Likewise.
51194 * include/grub/sparc64/types.h: Likewise.
51195 * include/grub/sparc64/ieee1275/console.h: Likewise.
51196 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51197 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51198 * include/grub/sparc64/ieee1275/time.h: Likewise.
51199 * kern/sparc64/cache.c: Likewise.
51200 * kern/sparc64/dl.c: Likewise.
51201 * kern/sparc64/ieee1275/init.c: Likewise.
51202 * kern/sparc64/ieee1275/openfw.c: Likewise.
51204 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51206 * util/console.c (grub_ncurses_putchar): If C is greater than
51207 0x7f, set C to a question mark.
51208 (grub_ncurses_getcharwidth): New function.
51209 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51212 * normal/menu.c (print_entry): Made aware of Unicode. First,
51213 convert TITLE to UCS-4, and predict the cursor position by
51216 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51218 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51220 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51222 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51223 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51226 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51227 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51228 grub_strcpy and grub_strlen. Take it into account that a space
51229 character is inserted as a delimiter.
51231 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51233 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51234 invalid magic in the error.
51236 * commands/search.c: New file.
51238 * util/grub-emu.c (main): Call grub_search_init and
51241 * kern/rescue.c (grub_rescue_print_disks): Removed.
51242 (grub_rescue_print_devices): New function.
51243 (grub_rescue_cmd_ls): Use grub_device_iterate with
51244 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51245 grub_rescue_print_disks.
51247 * kern/partition.c (grub_partition_iterate): Return the result of
51248 PARTMAP->ITERATE instead of GRUB_ERRNO.
51250 * kern/device.c: Include grub/partition.h.
51251 (grub_device_iterate): New function.
51253 * include/grub/partition.h (grub_partition_iterate): Return int
51254 instead of grub_err_t.
51256 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51258 [GRUB_UTIL] (grub_search_fini): Likewise.
51260 * include/grub/device.h (grub_device_iterate): New prototype.
51262 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51264 (pkgdata_MODULES): Added search.mod.
51265 (search_mod_SOURCES): New variable.
51266 (search_mod_CFLAGS): Likewise.
51268 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51269 (pkgdata_MODULES): Added search.mod.
51270 (search_mod_SOURCES): New variable.
51271 (search_mod_CFLAGS): Likewise.
51273 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51274 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51275 All callers changed.
51277 * DISTLIST: Added commands/search.c.
51279 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51281 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51283 (grub_getcharwidth): New function.
51285 * kern/misc.c (grub_utf8_to_ucs4): New function.
51287 * include/grub/term.h (struct grub_term): Added a new member
51289 (grub_getcharwidth): New prototype.
51291 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51293 * term/i386/pc/console.c (map_char): New function. Segregated from
51294 grub_console_putchar.
51295 (grub_console_putchar): Use map_char.
51296 (grub_console_getcharwidth): New function.
51297 (grub_console_term): Specified grub_console_getcharwidth as
51300 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51301 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51303 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51305 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51306 on grub_strtoul completely.
51307 (write_char): Declare local variables in the beginning of the
51309 (grub_vesafb_getcharwidth): New function.
51310 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51313 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51315 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51316 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51317 commands/i386/pc/vbetest.c.
51319 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51320 call grub_vbe_get_controller_info again, because the returned
51321 information is volatile.
51322 (grub_vbe_set_video_mode): Mostly rewritten.
51323 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51324 grub_vbe_status_t correctly.
51325 (grub_vbe_get_video_mode_info): Likewise.
51326 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51327 several if statements.
51329 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51330 * commands/i386/pc/vbeinfo.c: ... this.
51332 * commands/i386/pc/vbe_test.c: Renamed to ...
51333 * commands/i386/pc/vbetest.c: ... this.
51335 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51337 (grub_cmd_vbeinfo): ... this. Save video modes before
51338 iterating. Skip a video mode, if it is not available, not enough
51339 information is given or it is monochrome. Show the memory
51340 model. Leave the interpretation of MODEVAR to grub_strtoul
51342 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51343 (GRUB_MOD_FINI): Likewise.
51345 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51346 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51347 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51348 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51349 grub_strtoul completely.
51350 (real2pm): Removed.
51351 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51352 (GRUB_MOD_FINI): Likewise.
51354 * normal/misc.c: Include grub/mm.h.
51356 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51357 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51358 (vbe_list_modes_mod_SOURCES): Removed.
51359 (vbe_list_modes_mod_CFLAGS): Likewise.
51360 (vbe_test_mod_SOURCES): Likewise.
51361 (vbe_test_mod_CFLAGS): Likewise.
51362 (vbeinfo_mod_SOURCES): New variable.
51363 (vbeinfo_mod_CFLAGS): Likewise.
51364 (vbetest_mod_SOURCES): Likewise.
51365 (vbetest_mod_CFLAGS): Likewise.
51367 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51369 * normal/misc.c: New file.
51371 * DISTLIST: Added normal/misc.c.
51373 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51374 DISK to HOOK. Call HOOK with DISK.
51375 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51376 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51377 * partmap/sun.c (sun_partition_map_iterate): Likewise.
51379 * normal/menu_entry.c (struct screen): Added a new member
51380 "completion_shown".
51381 (completion_buffer): New global variable.
51382 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
51383 (store_completion): New function.
51384 (complete): Likewise.
51385 (clear_completions): Likewise.
51386 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
51387 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
51388 a tab, call complete.
51390 * normal/completion.c (disk_dev): Removed.
51391 (print_simple_completion): Likewise.
51392 (print_partition_completion): Likewise.
51393 (print_func): New global variable.
51394 (add_completion): Do not take the arguments WHAT or PRINT any
51395 longer. Added a new argument TYPE. Instead of printing directly,
51396 call PRINT_FUNC if not NULL.
51397 All callers changed.
51398 (complete_device): Use a local variable DEV instead of
51399 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
51400 (grub_normal_do_completion): Take a new argument HOOK. Do not
51401 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
51402 empty string, return NULL instead.
51403 All callers changed.
51405 * normal/cmdline.c (print_completion): New function.
51407 * kern/partition.c (grub_partition_iterate): Add an argument DISK
51409 All callers changed.
51411 * kern/disk.c (grub_print_partinfo): Removed.
51413 * include/grub/partition.h (struct grub_partition_map): Add a new
51414 argument DISK into HOOK of ITERATE.
51415 (grub_partition_iterate): Add a new argument DISK to HOOK.
51417 * include/grub/normal.h (enum grub_completion_type): New enum.
51418 (grub_completion_type_t): New type.
51419 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
51420 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
51421 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
51422 (GRUB_COMPLETION_TYPE_FILE): Likewise.
51423 (grub_normal_do_completion): Added a new argument HOOK.
51424 (grub_normal_print_device_info): New prototype.
51426 * include/grub/disk.h (grub_print_partinfo): Removed.
51428 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
51429 (normal_mod_SOURCES): Likewise.
51430 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51431 (normal_mod_SOURCES): Likewise.
51433 * commands/ls.c (grub_ls_list_disks): Use
51434 grub_normal_print_device_info instead of grub_print_partinfo. Free
51436 (grub_ls_list_files): Use grub_normal_print_device_info instead of
51437 duplicating the code.
51439 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
51441 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
51442 follow GCS more precisely.
51443 * commands/i386/pc/vbe_test.c: Likewise.
51444 * include/grub/i386/pc/vbe.h: Likewise.
51445 * term/i386/pc/vesafb.c: Likewise.
51446 * video/i386/pc/vbe.c: Likewise.
51448 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
51450 * DISTLIST: Added term/i386/pc/vesafb.c
51451 DISTLIST: Added video/i386/pc/vbe.c
51452 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
51453 DISTLIST: Added commands/i386/pc/vbe_test.c.
51454 * commands/i386/pc/vbe_list_modes.c: New file.
51455 * commands/i386/pc/vbe_test.c: Likewise.
51456 * term/i386/pc/vesafb.c: Likewise.
51457 * video/i386/pc/vbe.c: Likewise.
51458 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
51459 (grub_vbe_probe) Added prototype.
51460 (grub_vbe_set_video_mode) Likewise.
51461 (grub_vbe_get_video_mode) Likewise.
51462 (grub_vbe_get_video_mode_info) Likewise.
51463 (grub_vbe_set_pixel_rgb) Likewise.
51464 (grub_vbe_set_pixel_index) Likewise.
51465 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
51466 (pkgdata_MODULES): Added vesafb.mod.
51467 (pkgdata_MODULES): Added vbe_list_modes.mod.
51468 (pkgdata_MODULES): Added vbe_test.mod.
51469 (vbe_mod_SOURCES): Added.
51470 (vbe_mod_CFLAGS): Likewise.
51471 (vesafb_mod_SOURCES): Likewise.
51472 (vesafb_mod_CFLAGS): Likewise.
51473 (vbe_list_modes_mod_SOURCES): Likewise.
51474 (vbe_list_modes_mod_CFLAGS): Likewise.
51475 (vbe_test_mod_SOURCES): Likewise.
51476 (vbe_test_mod_CFLAGS): Likewise.
51478 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
51480 * normal/command.c (grub_command_execute): If INTERACTIVE is
51481 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
51482 CMDLINE. Disable the pager if INTERACTIVE is true.
51483 All callers are changed.
51485 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
51486 before reading a config file.
51487 * normal/main.c (read_config_file): Even if a command is not
51488 found, register it if it is within an entry.
51490 * util/grub-emu.c: Include sys/types.h and unistd.h.
51491 (options): Added --hold.
51492 (struct arguments): Added a new member "hold".
51493 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
51495 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
51496 cleared by a debugger, if it is not zero.
51498 * include/grub/normal.h (grub_command_execute): Add an argument
51501 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
51503 * DISTLIST: Added include/grub/i386/pc/vbe.h.
51505 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
51507 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
51508 program with another one, because the old one didn't detect a bug
51509 in gcc-3.4. Always use regparm 2, because the new test is still
51510 not enough for gcc-4.0. Someone must investigate a simple test
51511 case which detects a bug in gcc-4.0.
51513 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
51515 * DISTLIST: Added normal/completion.c.
51517 * normal/completion.c: New file.
51519 * term/i386/pc/console.c (grub_console_getwh): New function.
51520 (grub_console_term): Assign grub_console_getwh to getwh.
51522 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
51523 function is defined in normal/completion.c as
51524 grub_normal_do_completion.
51525 (grub_cmdline_get): Use grub_normal_do_completion instead of
51528 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
51529 returns non-zero, otherwise return 0.
51530 (grub_partition_iterate): First, probe the partition map. Then,
51531 call ITERATE only for this partition map.
51533 * kern/misc.c (grub_strncmp): Rewritten.
51535 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
51536 returns non-zero. Otherwise return 0.
51538 * include/grub/partition.h (grub_partition_map_iterate): Return
51539 int instead of void.
51541 * include/grub/normal.h (grub_normal_do_completion): New prototype.
51543 * include/grub/misc.h (grub_strncmp): Change the type of N to
51546 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
51549 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
51550 unsigned explicitly before comparing it with I.
51552 * kern/main.c (grub_env_write_root): Add the attribute unused into
51555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51556 normal/completion.c.
51557 (normal_mod_SOURCES): Likewise.
51558 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
51559 (normal_mod_SOURCES): Likewise.
51561 * normal/command.c (grub_iterate_commands): If ITERATE returns
51562 non-zero, return one immediately.
51564 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
51566 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
51567 * kern/i386/pc/startup.S: Updated Global Descriptor table's
51569 (grub_vbe_get_controller_info): New function.
51570 (grub_vbe_get_mode_info): Likewise.
51571 (grub_vbe_set_mode): Likewise.
51572 (grub_vbe_get_mode): Likewise.
51573 (grub_vbe_set_memory_window): Likewise.
51574 (grub_vbe_get_memory_window): Likewise.
51575 (grub_vbe_set_scanline_length): Likewise.
51576 (grub_vbe_get_scanline_length): Likewise.
51577 (grub_vbe_set_display_start): Likewise.
51578 (grub_vbe_get_display_start): Likewise.
51579 (grub_vbe_set_palette_data): Likewise.
51580 * include/grub/i386/pc/vbe.h: New file.
51582 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51584 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
51585 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
51586 * DISTLIST: Likewise.
51587 * kern/ieee1275/of.c: Moved to ...
51588 * kern/ieee1275/ieee1275.c: ... here.
51590 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51592 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
51593 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
51594 Pass 0 as `end' parameter to grub_strtoul().
51596 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51598 * include/grub/powerpc/ieee1275/console.h: Do not include
51599 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
51601 (grub_console_cur_color): Remove i386-specific prototype.
51602 (grub_console_real_putchar): Likewise.
51603 (grub_console_checkkey): Likewise.
51604 (grub_console_getkey): Likewise.
51605 (grub_console_getxy): Likewise.
51606 (grub_console_gotoxy): Likewise.
51607 (grub_console_cls): Likewise.
51608 (grub_console_setcursor): Likewise.
51609 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
51610 Include <grub/machine/console.h>.
51611 * term/ieee1275/ofconsole.c: Likewise.
51613 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
51615 * Makefile.in (LIBLZO): New variable.
51617 * configure.ac: Check for LZO version 2.
51619 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
51620 lzo/lzo1x.h instead of lzo1x.h.
51622 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
51625 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
51626 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
51628 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
51629 copying the data from PARTITION to P.
51631 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51633 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
51634 negative, unload the module.
51636 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
51637 map is "pc_partition_map" but not "pc".
51638 (usage): Fix the description. The options are --boot-image and
51639 --core-image but not --boot-file or --core-file.
51640 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
51641 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
51644 * util/i386/pc/grub-install.in: Do not specify --boot-file or
51645 --core-file. Specify INSTALL_DEVICE as an argument.
51647 * util/console.c: Include config.h.
51648 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
51649 [HAVE_NCURSES_H]: Include ncurses.h.
51650 [HAVE_CURSES_H]: Include curses.h.
51651 [!A_NORMAL] (A_NORMAL): Defined as zero.
51652 [!A_STANDOUT] (A_STANDOUT): Likewise.
51654 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
51656 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
51658 * configure.ac: Check for curses libraries and headers.
51660 * Makefile.in (LIBCURSES): New variable.
51662 * genmk.rb (Script::rule): Set the executable bits.
51664 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
51665 name of the PC partition map is "pc_partition_map" but not "pc".
51667 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51669 * util/i386/pc/grub-install.in (grub_probefs): New variable.
51670 (modules): Likewise.
51671 (usage): Added descriptions for --modules and --grub-probefs.
51672 Handle --modules and --grub-probefs. Save the arguments in MODULES
51673 and GRUB_PROBEFS, respectively.
51674 Auto-detect a filesystem module against GRUBDIR. If the result is
51675 empty and modules are not specified explicitly, abort the
51676 installation. Add the result to MODULES.
51678 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
51679 disk/powerpc/ieee1275/ofdisk.c,
51680 include/grub/powerpc/ieee1275/init.h and
51681 term/powerpc/ieee1275/ofconsole.c.
51682 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
51683 term/ieee1275/ofconsole.c.
51685 * include/grub/powerpc/ieee1275/console.h: Resurrected.
51687 * COPYING: Upgraded to the latest version. Only the address of the
51688 FSF office has changed.
51690 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51692 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
51693 kern/ieee1275.c with kern/ieee1275/of.c.
51695 * kern/ieee1275.c: Moved to ...
51696 * kern/ieee1275/of.c: ... here.
51698 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
51700 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
51703 * config.guess: Updated to the latest version from gnulib.
51704 * config.sub: Likewise.
51705 * install.sh: Likewise.
51706 * mkinstalldirs: Likewise.
51708 * include/grub/console.h: Removed. This file is arch-specific. Do
51709 not put this in include/grub.
51711 * include/grub/i386/pc/console.h: Resurrected.
51713 * util/console.c: Include grub/machine/console.h instead of
51715 * util/grub-emu.c: Likewise.
51717 2005-08-04 Marco Gerards <metgerards@student.han.nl>
51719 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
51722 From Vincent Pelletier <subdino2004@yahoo.fr>
51723 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
51724 Redefined to use grub_getwh.
51725 (grub_term): New member named getwh.
51726 (grub_getwh): New prototype.
51727 * kern/term.c (grub_getwh): New function.
51728 * term/i386/pc/console.c (grub_console_getwh): New function.
51729 (grub_console_term): New member `getwh'.
51730 * term/i386/pc/vga.c (grub_vga_getwh): New function.
51731 (grub_vga_term): New member `getwh'.
51732 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
51734 (grub_ofconsole_getw): New function.
51735 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
51736 (grub_ofconsole_term): New field named getwh and new initial
51739 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
51741 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
51742 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
51743 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
51744 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
51745 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
51746 of <grub/machine/ieee1275.h>.
51747 * commands/ieee1275/reboot.c: Likewise.
51748 * boot/powerpc/ieee1275/ieee1275.c: Move ...
51749 * kern/ieee1275.c: ... to here. All users updated. Change all
51750 parameter structs to use new type `grub_ieee1275_cell_t'.
51751 * term/powerpc/ieee1275/ofconsole.c: Move ...
51752 * term/ieee1275/ofconsole.c: ... to here. All users updated.
51753 * disk/powerpc/ieee1275/ofdisk.c: Move ...
51754 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
51755 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
51757 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
51758 Remove unused prototypes. All users updated.
51759 * include/grub/powerpc/ieee1275/console.h: Removed.
51760 * include/grub/powerpc/ieee1275/ieee1275.h: Define
51761 `grub_ieee1275_cell_t'.
51762 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
51763 Cast comparisons with -1 to the correct type.
51764 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
51765 type to match `grub_ieee1275_entry_fn'.
51767 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
51769 * DISTLIST: Added util/i386/pc/grub-probefs.c.
51771 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
51772 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
51774 (grub_probefs_SOURCES): New variable.
51776 * util/i386/pc/grub-probefs.c: New file.
51778 * util/i386/pc/grub-setup.c (main): Call
51779 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
51780 grub_hfs_init and grub_jfs_init to initialize the system. Call
51781 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
51782 grub_pc_partition_map_fini to finish the system.
51784 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
51786 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
51788 (grub_multiboot_load_elf32): Likewise.
51789 (grub_multiboot_is_elf64): Likewise.
51790 (grub_multiboot_load_elf64): Likewise.
51791 (grub_multiboot_load_elf): Likewise.
51792 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
51793 an ELF32 or ELF64 file.
51794 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
51796 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
51797 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
51798 NULL before calling FS->LABEL.
51799 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
51800 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
51801 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
51802 before calling FS->LABEL.
51804 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
51806 * util/i386/pc/grub-install.in (datadir): New variable.
51808 (pkgdatadir): New variable.
51809 (pkglibdir): Removed.
51811 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
51813 * DISTLIST: Added util/i386/pc/grub-install.in.
51815 * util/i386/pc/grub-install.in: New file.
51817 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
51818 (grub_install_SOURCES): Likewise.
51820 * genmk.rb: Added support for scripts.
51821 (Script): New class.
51822 (scripts): New variable.
51824 * Makefile.in (install-local): Install sbin_SCRIPTS by
51826 (uninstall): Remove sbin_SCRIPTS.
51828 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
51829 device, try to get a GRUB device by
51830 grub_util_biosdisk_get_grub_dev.
51833 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
51834 description for --device-map.
51836 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
51838 Change the semantics of variable hooks. They now return strings
51839 instead of error values.
51841 * util/i386/pc/grub-setup.c: Include grub/env.h.
51842 (setup): Use grub_device_set_root instead of grub_env_set.
51844 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
51845 grub_env_get instead of grub_device_set_root and
51846 grub_device_get_root, respectively.
51848 * kern/main.c (grub_env_write_root): New function.
51849 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
51850 grub_env_set instead of grub_device_set_root.
51852 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
51854 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
51855 rather than calling ENV->WRITE_HOOK afterwards.
51856 (grub_env_get): Return the result of ENV->READ_HOOK rather than
51857 passing a pointer of a pointer.
51858 (grub_register_variable_hook): Change the types of "read_hook" and
51859 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
51861 Allocate the default empty string on the heap, because this string
51862 may be freed later.
51864 * kern/device.c: Include grub/env.h.
51865 (grub_device_set_root): Removed.
51866 (grub_device_get_root): Likewise.
51867 (grub_device_open): Use grub_env_get instead of
51868 grub_device_get_root.
51870 * include/grub/env.h (grub_env_read_hook_t): New type.
51871 (grub_env_write_hook_t): Likewise.
51872 (grub_env_var): Change the types of "read_hook" and "write_hook"
51873 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
51874 (grub_register_variable_hook): Likewise.
51876 * include/grub/device.h (grub_device_set_root): Removed.
51877 (grub_device_set_root): Likewise.
51879 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
51880 make sure that DIRNAME terminates with '/', so that
51881 grub_fat_find_dir will fail if PATH is not a directory.
51883 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
51885 Use the qualifier auto for print_files and print_files_long.
51886 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
51888 Put a newline only if there is no error.
51889 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
51892 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
51894 * kern/partition.c (grub_partition_probe): Initialize PART to
51895 NULL. Otherwise, when no partition map is registered, this returns
51898 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
51900 * partmap/apple.c (apple_partition_map_iterate): Check if POS
51901 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
51904 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
51906 * commands/ls.c (grub_ls_list_disks): Print the filesystem
51907 information on each device, if it does not have partitions. Print
51908 "Device" instead of "Disk", because this function is not specific
51911 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
51912 static to ensure that it is put on the memory rather than a
51915 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
51917 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
51918 (grub_cat_init): Likewise.
51919 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
51920 (options): Likewise.
51921 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
51922 (grub_configfile_init): Likewise.
51923 * font/manager.c (GRUB_MOD_INIT): Likewise.
51924 * commands/help.c (GRUB_MOD_INIT): Likewise.
51925 (grub_help_init): Likewise.
51926 * normal/command.c (grub_command_init): Likewise.
51927 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
51928 * disk/loopback.c (grub_loop_init): Likewise.
51929 (GRUB_MOD_INIT): Likewise.
51930 * commands/ls.c (grub_ls_init): Likewise.
51931 (GRUB_MOD_INIT): Likewise.
51932 (options): Likewise.
51933 * commands/boot.c (grub_boot_init): Likewise.
51934 (GRUB_MOD_INIT): Likewise.
51935 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
51936 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
51937 (GRUB_MOD_INIT): Likewise.
51938 * commands/cmp.c (grub_cmp_init): Likewise.
51939 (GRUB_MOD_INIT): Likewise.
51941 * normal/arg.c: Use <> instead of "" to include header files.
51942 (SHORT_ARG_HELP): New macro.
51943 (SHORT_ARG_USAGE): Likewise.
51944 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
51945 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
51947 (find_short): Check if C is 'h' or 'u' explicitly.
51948 (grub_arg_show_help): Use space characters instead of tabs. Treat
51949 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
51950 are shown with --help and --usage only if they are not used for
51951 the command itself.
51952 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
51955 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
51956 const into "longarg". Change the type of "shortarg" to int.
51958 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
51960 * boot/i386/pc/boot.S (boot_drive_check): New label.
51962 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
51965 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
51966 which do not pass a boot drive correctly. Copied from GRUB Legacy.
51968 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
51970 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
51971 When turning off Gate A20, skip the check and return immediately,
51972 because this is not fatal usually.
51974 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
51976 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
51977 be 0x7C00 instead of 0x8000.
51979 * boot/i386/pc/pxeboot.S: Rewritten.
51981 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
51983 (gate_a20_check_state): Read a byte from 0x108000. Invert the
51986 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
51988 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
51989 robustness. This routine now supports a BIOS call and System
51990 Control Port A to modify the gate A20.
51992 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51993 Increased to 0x440.
51995 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
51997 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
51998 device path and resulting ihandle.
51999 (grub_ofdisk_close): dprintf the ihandle being closed.
52000 (grub_ofdisk_read): dprintf function parameters.
52001 * kern/mm.c (grub_mm_init_region): Likewise.
52002 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52003 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52004 size, and boot arguments.
52005 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52006 before loading into memory.
52007 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52008 before loading into memory.
52010 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52012 * kern/mm.c: Added much documentation.
52013 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52014 8, set to 5 instead of 8.
52016 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52018 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52020 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52021 (grub_mkdevicemap_SOURCES): New variable.
52023 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52024 lib/device.c of GRUB Legacy.
52026 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52028 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52029 instead of PATH is NULL.
52031 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52033 * commands/cmp.c (BUFFER_SIZE): New macro.
52034 (grub_cmd_cmp): Close the right file at the right time. Compare
52035 only data just read. Don't report files of different size as
52036 identical. Dynamically allocate buffers. Move variable
52037 declarations at the beginning of function.
52039 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52041 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52044 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52046 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52047 when backspace is pressed at beginning of line.
52049 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52051 * DISTLIST: Added genfslist.sh.
52053 * normal/main.c (fs_module_list): New variable.
52054 (autoload_fs_module): New function.
52055 (read_fs_list): Likewise.
52056 (grub_normal_execute): Call read_fs_list.
52058 * kern/fs.c (grub_fs_autoload_hook): New variable.
52059 (grub_fs_probe): Added support for auto-loading.
52061 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52062 (grub_fs_module_list_t): New type.
52064 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52065 (grub_fs_autoload_hook): New prototype.
52067 * genfslist.sh: New file.
52069 * genmk.rb: Added a rule to generate a filesystem list.
52071 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52073 * configure.ac: Fix the test for cross-compiling.
52075 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52076 define GRUB_UTIL anymore.
52078 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52079 so this function works on other systems than just big endian.
52080 (load_modules): Likewise.
52081 (add_segments): Likewise.
52083 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52085 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52086 contains `l' modifier, get a long from va_arg().
52088 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52090 * kern/mm.c (grub_free): If the next free block which is being
52091 merged is the first free block, set the first block to the block
52093 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52095 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52097 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52098 `grub_ieee1275_chosen'.
52100 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52102 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52103 (grub_ieee1275_chosen): New variable.
52104 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52106 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52107 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52108 Rename first argument to `phandle' for consistency.
52109 (grub_ieee1275_get_property_length): Likewise.
52110 (grub_ieee1275_next_property): Likewise. Change type of first argument
52111 to grub_ieee1275_phandle_t.
52112 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52113 Move export next to declaration.
52114 (grub_ieee1275_chosen): New variable.
52115 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52116 Correct cosmetic typo.
52117 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52118 `grub_ieee1275_chosen'.
52119 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52120 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52121 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52122 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52123 `grub_ieee1275_chosen'.
52125 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52127 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52129 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52130 /chosen/bootargs as "variable=value" pairs.
52132 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52134 * include/grub/misc.h (grub_dprintf): New macro.
52135 (grub_real_dprintf): New prototype.
52136 (grub_strword): Likewise.
52137 (grub_iswordseparator): Likewise.
52138 * kern/misc.c (grub_real_dprintf): New function.
52139 (grub_strword): Likewise.
52140 (grub_iswordseparator): Likewise.
52142 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52144 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52145 (roundup): Remove macro.
52146 (grub_ieee1275_flags): Make static.
52147 (grub_ieee1275_realmode): Remove.
52148 (grub_ieee1275_test_flag): New function.
52149 (grub_ieee1275_set_flag): Likewise.
52150 (find_options): Rename to `grub_ieee1275_find_options'; update
52151 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52152 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52153 (cmain): New prototype.
52154 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52155 `grub_ieee1275_flags' directly.
52156 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52157 machine/biosdisk.h.
52158 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52159 Don't include grub/machine/init.h.
52160 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52161 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52163 (grub_ieee1275_realmode): Likewise.
52164 (grub_ieee1275_flag): New enum.
52165 (grub_ieee1275_test_flag): New prototype.
52166 (grub_ieee1275_set_flag): New prototype.
52167 * include/grub/powerpc/ieee1275/init.h: Remove file.
52168 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52169 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52170 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52171 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52173 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52174 `grub_ieee1275_test_flag'.
52175 (grub_ieee1275_encode_devname): Likewise.
52177 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52179 * include/grub/powerpc/ieee1275/ieee1275.h
52180 (grub_ieee1275_encode_devname): New prototype.
52181 (grub_ieee1275_get_filename): Likewise.
52182 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52184 (grub_set_prefix): Likewise.
52185 (grub_machine_init): Call grub_set_prefix.
52186 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52187 (grub_parse_type): New enum.
52188 (grub_ieee1275_get_devargs): New function.
52189 (grub_ieee1275_get_devname): Likewise.
52190 (grub_ieee1275_parse_args): Likewise.
52191 (grub_ieee1275_get_filename): Likewise.
52192 (grub_ieee1275_encode_devname): Likewise.
52194 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52196 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52197 `grub_loader_unset'.
52199 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52201 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52202 instead of grub_ieee1275_interpret.
52203 (grub_halt_init): New function.
52204 (grub_halt_fini): Likewise.
52205 (GRUB_MOD_INIT): Correct message grammar.
52206 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52207 instead of grub_ieee1275_interpret.
52208 (grub_reboot_init): New function.
52209 (grub_reboot_fini): Likewise.
52210 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52211 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52212 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52213 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52214 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52216 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52218 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52220 (grub_halt): Likewise.
52221 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52222 (cmain): Remove __attribute__((unused)).
52223 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52224 (grub_heap_len): Likewise.
52225 (grub_machine_fini): New function.
52226 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52227 (grub_halt): Likewise.
52228 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52230 * util/powerpc/ieee1275/misc.c: New file.
52232 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52234 * DISTLIST: New file.
52235 * gendistlist.sh: Likewise.
52237 * Makefile.in (COMMON_DISTFILES): Removed.
52238 (BOOT_DISTFILES): Likewise.
52239 (CONF_DISTFILES): Likewise.
52240 (DISK_DISTFILES): Likewise.
52241 (FS_DISTFILES): Likewise.
52242 (INCLUDE_DISTFILES): Likewise.
52243 (KERN_DISTFILES): Likewise.
52244 (LOADER_DISTFILES): Likewise.
52245 (TERM_DISTFILES): Likewise.
52246 (UTIL_DISTFILES): Likewise.
52247 (DISTFILES): Likewise.
52248 (uninstall): Uninstall files in $(pkgdata_DATA).
52249 (DISTLIST): New target.
52250 (distdir): Use the contents of the file DISTLIST to get a list of
52253 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52255 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52256 descriptor. This is ported from GRUB Legacy.
52258 * gencmdlist.sh: Added an extra semicolon to make it work with
52259 old sed versions. Reported by Robert Bihlmeyer
52260 <robbe@orcus.priv.at>.
52262 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52264 Automatic loading of commands is supported.
52266 * normal/main.c (read_command_list): New function.
52267 (grub_normal_execute): Call read_command_list.
52269 * normal/command.c (grub_register_command): Return zero or CMD.
52270 Allocate CMD->NAME from the heap.
52271 Initialize CMD->MODULE_NAME to zero.
52272 Find the same name as well. If the same command is found and it is
52273 a dummy command, overwrite members. If it is not a dummy command,
52275 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52276 (grub_command_find): If a dummy command is found, load a module
52277 and retry to find a command only once.
52279 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52280 make sure that each command is loaded.
52282 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52284 (struct grub_command): Remove const from the member `name'.
52285 Add a new member `module_name'.
52286 (grub_register_command): Return grub_command_t.
52288 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52289 sure that each command is loaded.
52291 * genmk.rb (PModule::rule): Specify a module name without the
52292 suffix ".mod" to gencmdlist.sh.
52294 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52296 * gencmdlist.sh: New file.
52298 * genmk.rb (PModule::rule): Generate a rule for a command list.
52300 Generate command.lst from $(COMMANDFILES).
52302 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52303 (DATA): Added $(pkgdata_DATA).
52304 (install-local): Install files in $(pkgdata_DATA).
52306 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52308 * term/i386/pc/vga.c (debug_command): Removed.
52309 (GRUB_MOD_INIT): Do not register the command "debug".
52311 From Hollis Blanchard:
52312 * commands/configfile.c: New file.
52313 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52314 commands/configfile.c.
52315 (pkgdata_MODULES): Added configfile.mod.
52316 (configfile_mod_SOURCES): New variable.
52317 (configfile_mod_CFLAGS): Likewise.
52318 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52319 commands/configfile.c.
52320 (pkgdata_MODULES): Added configfile.mod.
52321 (configfile_mod_SOURCES): New variable.
52322 (configfile_mod_CFLAGS): Likewise.
52323 * util/grub-emu.c (main): Call grub_configfile_init and
52324 grub_configfile_fini.
52325 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52327 [GRUB_UTIL] (grub_configfile_fini): Likewise.
52329 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52331 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52334 * commands/help.c (grub_cmd_help): Do not print newlines after
52335 the last command in print_command_help.
52337 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52339 * commands/default.h: New file.
52340 * commands/timeout.h: Likewise.
52341 * normal/context.c: Likewise.
52343 * util/misc.c: Do not include sys/times.h.
52344 Include sys/time.h and grub/machine/time.h.
52345 (grub_get_rtc): Rewritten with gettimeofday.
52347 * util/grub-emu.c (main): Call grub_default_init and
52348 grub_timeout_init before grub_normal_init, and call
52349 grub_timeout_fini and grub_default_fini after grub_main.
52351 * util/console.c (grub_ncurses_checkkey): Return the read
52354 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52357 * normal/main.c (read_config_file): Push MENU. If this fails,
52358 print an error and wait for a user input.
52359 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52360 If a menu is empty or an error occurs, pop MENU.
52361 (grub_normal_execute): Pop and free MENU after grub_menu_run
52364 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52366 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52368 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52370 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52372 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52375 * include/grub/normal.h (struct grub_menu_list): New struct.
52376 (grub_menu_list_t): New type.
52377 (struct grub_context): New struct.
52378 (grub_context_t): New type.
52379 (grub_register_command): Got rid of EXPORT_FUNC.
52380 (grub_unregister_command): Likewise.
52381 (grub_context_get): New prototype.
52382 (grub_context_get_current_menu): Likewise.
52383 (grub_context_push_menu): Likewise.
52384 (grub_context_pop_menu): Likewise.
52385 [GRUB_UTIL] (grub_default_init): Likewise.
52386 [GRUB_UTIL] (grub_default_fini): Likewise.
52387 [GRUB_UTIL] (grub_timeout_init): Likewise.
52388 [GRUB_UTIL] (grub_timeout_fini): Likewise.
52390 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
52391 commands/timeout.c and normal/context.c.
52392 (pkgdata_MODULES): Added default.mod and timeout.mod.
52393 (normal_mod_SOURCES): Added normal/context.c.
52394 (default_mod_SOURCES): New variable.
52395 (default_mod_CFLAGS): Likewise.
52396 (timeout_mod_SOURCES): Likewise.
52397 (timeout_mod_CFLAGS): Likewise.
52398 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
52400 (pkgdata_MODULES): Added default.mod and timeout.mod.
52401 (normal_mod_SOURCES): Added normal/context.c.
52402 (default_mod_SOURCES): New variable.
52403 (default_mod_CFLAGS): Likewise.
52404 (timeout_mod_SOURCES): Likewise.
52405 (timeout_mod_CFLAGS): Likewise.
52407 * Makefile.in (all-local): Added $(MKFILES).
52409 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
52411 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
52412 (grub_emu_SOURCES): Likewise.
52413 (pkgdata_MODULES): Add `sun.mod'.
52414 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52415 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52417 (pkgdata_MODULES): Add `sun.mod'.
52418 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52419 * include/grub/partition.h (grub_sun_partition_map_init): New
52421 (grub_sun_partition_map_fini): Likewise.
52422 * partmap/sun.c: New file.
52423 * util/grub-emu.c (main): Initialize and de-initialize the sun
52424 partitionmap support.
52426 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
52428 This implements an Emacs-like menu entry editor.
52430 * normal/menu_entry.c: New file.
52432 * util/console.c (grub_ncurses_putchar): Translate some Unicode
52433 characters to ASCII.
52434 (saved_char): New variable.
52435 (grub_ncurses_checkkey): Rewritten completely.
52436 (grub_ncurses_getkey): Likewise.
52437 (grub_ncurses_init): Call raw instead of cbreak.
52439 * normal/menu.c (print_entry): Do not put a space.
52440 (init_page): Renamed to ...
52441 (grub_menu_init_page): ... this. All callers changed.
52442 (edit_menu_entry): Removed.
52443 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
52445 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
52447 * kern/misc.c (grub_vprintf): Call grub_refresh.
52449 * normal/menu.c (DISP_LEFT): Renamed to ...
52450 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
52451 * normal/menu.c (DISP_UP): Renamed to ...
52452 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
52453 * normal/menu.c (DISP_RIGHT): Renamed to ...
52454 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
52455 * normal/menu.c (DISP_DOWN): Renamed to ...
52456 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
52457 * normal/menu.c (DISP_HLINE): Renamed to ...
52458 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
52459 * normal/menu.c (DISP_VLINE): Renamed to ...
52460 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
52461 * normal/menu.c (DISP_UL): Renamed to ...
52462 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
52463 * normal/menu.c (DISP_UR): Renamed to ...
52464 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
52465 * normal/menu.c (DISP_LL): Renamed to ...
52466 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
52467 * normal/menu.c (DISP_LR): Renamed to ...
52468 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
52469 * normal/menu.c (TERM_WIDTH): Renamed to ...
52470 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
52471 * normal/menu.c (TERM_HEIGHT): Renamed to ...
52472 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
52473 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
52474 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
52475 * normal/menu.c (TERM_MARGIN): Renamed to ...
52476 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
52477 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
52478 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
52479 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
52480 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
52481 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
52482 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
52483 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
52484 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
52485 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
52486 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
52487 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
52488 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
52489 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
52490 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
52491 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
52492 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
52493 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
52494 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
52495 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
52496 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
52497 All callers changed.
52499 * include/grub/normal.h: New prototype.
52501 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52502 normal/menu_entry.c.
52503 (normal_mod_SOURCES): Likewise.
52504 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52505 (normal_mod_SOURCES): Likewise.
52507 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
52509 * include/grub/normal.h (grub_halt_init): New prototype.
52510 (grub_halt_fini): Likewise.
52511 (grub_reboot_init): Likewise.
52512 (grub_reboot_fini): Likewise.
52514 * util/grub-emu.c: Include signal.h.
52515 (main_env): New global variable.
52516 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
52518 (grub_machine_fini): New function.
52519 (main): Call grub_halt_init and grub_reboot_init before
52520 grub_main, and grub_reboot_fini and grub_halt_fini after it.
52521 Call setjmp with MAIN_ENV to go back afterwards.
52522 Call grub_machine_fini right before return.
52524 * include/grub/util/misc.h: Include setjmp.h.
52525 (main_env): New prototype.
52527 * include/grub/kernel.h (grub_machine_fini): New prototype.
52528 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
52529 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
52531 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
52532 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
52533 * term/i386/pc/console.c (grub_console_fini): Likewise.
52535 * util/i386/pc/misc.c: New file.
52537 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52538 util/i386/pc/misc.c, commands/i386/pc/halt.c and
52539 commands/i386/pc/reboot.c.
52541 2005-02-14 Guillem Jover <guillem@hadrons.org>
52543 * include/grub/dl.h (grub_dl_check_header): New prototype.
52544 (grub_arch_dl_check_header): Change return type to grub_err_t,
52545 remove size parameter and export function. Update all callers.
52546 * kern/dl.c (grub_dl_check_header): New function.
52547 (grub_dl_load_core): Use `grub_dl_check_header' instead of
52548 `grub_arch_dl_check_header'. Check ELF type. Check if sections
52549 are inside the core.
52550 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
52551 independent ELF header checks.
52552 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
52553 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
52554 `grub_dl_check_header' instead of explicit checks. Check for the
52556 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
52557 `grub_dl_check_header' instead of explicit checks. Remove arch
52558 specific ELF header checks.
52560 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
52563 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
52565 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
52566 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
52568 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
52570 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
52571 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
52572 (part_map_iterate): Clear `grub_errno' and return 0 if
52573 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
52574 * partmap/amiga.c (amiga_partition_map_iterate): Return
52575 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
52576 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52578 2005-02-01 Guillem Jover <guillem@hadrons.org>
52580 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
52583 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52585 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
52587 (grub_rescue_cmd_linux): New prototype.
52588 (grub_rescue_cmd_initrd): Likewise.
52589 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
52591 (grub_linux_release_mem): Release the memory for the initrd.
52592 (grub_load_linux): Renamed from this...
52593 (grub_rescue_cmd_linux): ...To this. Changed all callers.
52594 Changed `entry' not to be static. Loop over memory regions to
52595 find another one when the default fails.
52596 (grub_rescue_cmd_initrd): New function.
52597 (grub_linux_init): Remove function.
52598 (grub_linux_fini): Likewise.
52599 (GRUB_MOD_INIT): Register `initrd'.
52600 (GRUB_MOD_FINI): Unregister `initrd'.
52601 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
52603 (grub_linux_normal_fini): Likewise.
52604 (GRUB_MOD_INIT): Register `initrd'.
52605 (GRUB_MOD_FINI): Unregister `initrd'.
52607 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52609 * commands/help.c: New file.
52610 * normal/arg.c (show_help): Renamed to...
52611 (grub_arg_show_help): ... this.
52612 * commands/i386/pc/halt.c: New file.
52613 * commands/i386/pc/reboot.c: Likewise.
52614 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
52615 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
52616 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
52617 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
52619 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52621 (pkgdata_MODULES): Add `help.mod'.
52622 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
52623 * grub/i386/pc/init.h (grub_reboot): New prototype.
52624 (grub_halt): Likewise.
52625 * include/grub/normal.h (grub_arg_show_help): New prototype.
52626 (grub_help_init): Likewise.
52627 (grub_help_fini): Likewise.
52628 * util/grub-emu.c (main): Initialize and deinitialize the help
52631 * normal/cmdline.c (grub_cmdline_get): Doc fix.
52633 * normal/command.c (grub_command_init): Fixed the description of
52634 the `set' and `unset' commands.
52636 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52638 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
52640 * commands/ieee1275/halt.c: New file.
52641 * commands/ieee1275/reboot.c: Likewise.
52642 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
52643 `__attribute__ ((unused))'. Some GCS related fixed.
52644 (grub_suspend_init) [GRUB_UTIL]: Function removed.
52645 (grub_suspend_fini): Likewise.
52646 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
52648 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
52649 (halt_mod_CFLAGS): New variables.
52650 * include/grub/powerpc/ieee1275/ieee1275.h
52651 (grub_ieee1275_interpret): New prototype.
52653 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
52655 * include/grub/misc.h (memmove): New prototype.
52656 (memcpy): Likewise.
52658 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
52660 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
52661 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
52663 2005-01-22 Marco Gerards <metgerards@student.han.nl>
52665 * kern/misc.c (grub_strndup): Function rewritten.
52667 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
52669 * normal/menu.c (TERM_WIDTH): Macro redefined.
52670 (TERM_TOP_BORDER_Y): Likewise.
52671 (draw_border): Replaced while-loop by a for-loop. Make the number
52672 of lines consistent with the number of lines displayed in
52673 print_entries. Added a margin below the rectangle.
52674 (print_entry): Make the entry fit in the rectangle.
52675 (print_entries): Display the scroll arrows next to the right
52678 2005-01-21 Marco Gerards <metgerards@student.han.nl>
52680 * fs/minix.c (grub_minix_find_file): Reserve more space for
52681 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
52682 `grub_strncpy' to copy `path' into it.
52684 2005-01-21 Marco Gerards <metgerards@student.han.nl>
52686 Add the loopback device, a device via which files can be accessed
52689 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
52690 (pkgdata_MODULES): Add loopback.mod.
52691 (loopback_mod_SOURCES): New variable.
52692 (loopback_mod_CFLAGS): Likewise.
52693 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52695 (pkgdata_MODULES): Add loopback.mod.
52696 (loopback_mod_SOURCES): New variable.
52697 (loopback_mod_CFLAGS): Likewise.
52698 * disk/loopback.c: new file.
52699 * include/grub/normal.h (grub_loop_init): New prototype.
52700 (grub_loop_fini): New prototype.
52701 * util/grub-emu.c (main): Initialize and de-initialize loopback
52703 * include/grub/disk.h (grub_disk_dev_id): Add
52704 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
52706 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
52708 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
52710 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
52711 (suspend_mod_SOURCES): New variable.
52712 (suspend_mod_CFLAGS): Likewise.
52713 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
52715 * commands/ieee1275/suspend.c: New file.
52717 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
52719 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
52720 ((unused))' to `__attribute__ ((used))'.
52721 (GRUB_MOD_FINI): Likewise.
52722 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
52723 * genmk.rb (PModule): Assign space to common symbols when linking
52726 2005-01-20 Marco Gerards <metgerards@student.han.nl>
52728 * include/grub/mm.h (grub_mm_init_region): Change the type of the
52729 `unsigned' arguments to `grub_size_t'.
52730 (grub_malloc): Likewise.
52731 (grub_realloc): Likewise.
52732 (grub_memalign): Likewise.
52733 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
52734 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
52735 * util/misc.c (grub_malloc): Likewise.
52736 (grub_realloc): Likewise.
52737 * kern/mm.c (get_header_from_pointer): Change the casts to
52738 `unsigned' into a cast to `grub_size_t'.
52740 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
52741 point to `currnode' when `currnode' is changed.
52743 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
52744 Schottelius <nico-linux@schottelius.org>.
52746 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
52748 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
52749 (note_path): Remove variable.
52750 (GRUB_IEEE1275_NOTE_NAME): New macro.
52751 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
52752 (grub_ieee1275_note_hdr): New structure.
52753 (grub_ieee1275_note_desc): Likewise.
52754 (grub_ieee1275_note): Likewise.
52755 (load_note): Remove `dir' argument. All callers updated. Remove
52756 `note_img' and `path'. Do not load a file from `note_path'.
52757 Initialize a struct grub_ieee1275_note and write that to `out'.
52758 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
52760 2005-01-05 Marco Gerards <metgerards@student.han.nl>
52762 * util/misc.c (grub_util_read_image): Revert last change. It
52763 called `grub_util_read_at', which seeks from the beginning of the
52766 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
52768 * TODO: Add note about endianness in grub-mkimage.
52769 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
52771 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
52772 (grub_mkimage_SOURCES): New target.
52773 * include/grub/kernel.h (grub_start_addr): Remove variable.
52774 (grub_end_addr): Likewise.
52775 (grub_total_module_size): Likewise.
52776 (grub_kernel_image_size): Likewise.
52777 (GRUB_MODULE_MAGIC): New constant.
52778 (grub_module_info): New structure.
52779 (grub_arch_modules_addr): New prototype.
52780 (grub_get_end_addr): Remove prototype.
52781 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
52782 * include/grub/powerpc/ieee1275/kernel.h: New file.
52783 * include/grub/util/misc.h (grub_util_get_fp_size): New
52785 (grub_util_read_at): Likewise.
52786 (grub_util_write_image_at): Likewise.
52787 * kern/main.c (grub_get_end_addr): Remove function.
52788 (grub_load_modules): Call grub_arch_modules_addr instead of using
52789 grub_end_addr. Look for a grub_module_info struct in memory. Use
52790 the grub_module_info fields instead of calling grub_get_end_addr
52791 as loop conditions. Move grub_add_unused_region code here.
52792 (grub_add_unused_region): Remove function.
52793 * kern/i386/pc/init.c: Include grub/cache.h.
52794 (grub_machine_init): Remove call to grub_get_end_addr. Remove
52795 one call to add_mem_region.
52796 (grub_arch_modules_addr): New function.
52797 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
52798 (grub_total_module_size): Likewise.
52799 Include grub/machine/kernel.h.
52800 (grub_arch_modules_addr): New function.
52801 * util/grub-emu.c (grub_end_addr): Remove variable.
52802 (grub_total_module_size): Likewise.
52803 (grub_arch_modules_addr): New function.
52804 * util/misc.c: Include unistd.h.
52805 (grub_util_get_fp_size): New function.
52806 (grub_util_read_at): Likewise.
52807 (grub_util_write_image_at): Likewise.
52808 (grub_util_read_image): Call grub_util_read_at.
52809 (grub_util_write_image): Call grub_util_write_image_at.
52810 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
52811 additional memory in kernel_img for a struct grub_module_info.
52812 Fill in that grub_module_info.
52813 * util/powerpc/ieee1275/grub-mkimage.c: New file.
52815 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
52817 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
52819 * include/grub/powerpc/ieee1275/ieee1275.h
52820 (grub_ieee1275_milliseconds): New prototype.
52821 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
52823 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
52824 grub_ieee1275_milliseconds.
52826 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
52828 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
52830 (find_options): New function.
52831 (cmain): Call find_options.
52832 * include/grub/powerpc/ieee1275/ieee1275.h
52833 (grub_ieee1275_realmode): New extern variable.
52834 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
52835 grub_map if grub_ieee1275_realmode is false.
52837 2004-12-29 Marco Gerards <metgerards@student.han.nl>
52839 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
52840 lines are inserted and make it work like readline. Reported by
52841 Vincent Pelletier <subdino2004@yahoo.fr>.
52843 2004-12-28 Marco Gerards <metgerards@student.han.nl>
52845 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
52847 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
52848 `kern/powerpc/cache.S'.
52850 2004-12-27 Marco Gerards <metgerards@student.han.nl>
52852 * genmk.rb: Handle the `Program' class in the main loop. Written
52853 by Johan Rydberg <jrydberg@gnu.org>.
52854 (Program): New class.
52855 (programs): New variable.
52856 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
52857 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
52858 instead of "grub/kernel.h". Include <grub/machine/init.h>.
52859 (help_arch): Function removed.
52860 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
52861 `powerpc/libgcc.h' and `loader.h'.
52862 (pkgdata_PROGRAMS): New variable.
52863 (sbin_UTILITIES): Variable removed.
52864 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
52865 (grubof_SOURCES): Variable re-defined so it only includes the
52866 core functionality.
52867 (grubof_CFLAGS): Remove `-DGRUBOF'.
52868 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
52869 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
52870 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
52871 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
52872 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
52873 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
52874 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
52875 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
52876 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
52877 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
52878 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
52879 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
52880 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
52881 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
52882 (pc_mod_CFLAGS): New variables.
52883 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
52884 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
52885 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
52886 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
52888 * include/grub/i386/pc/init.h (grub_os_area_addr)
52889 (rub_os_area_size): ... to here.
52890 * include/grub/powerpc/ieee1275/ieee1275.h
52891 (grub_ieee1275_entry_fn): Export symbol.
52892 * include/grub/powerpc/ieee1275/init.h: New file.
52893 * include/grub/powerpc/libgcc.h: Likewise.
52894 * include/grub/cache.h: Likewise.
52895 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
52896 <hollis@penguinppc.org>.
52897 * kern/dl.c: Include <grub/cache.h>.
52898 (grub_dl_flush_cache): New function.
52899 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
52901 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
52902 (grub_console_init): Removed prototypes.
52903 (grub_machine_init): Don't initialize the modules anymore.
52904 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
52906 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
52907 Macro undef removed.
52908 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
52909 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
52910 relocation `R_PPC_REL32'. Return an error when the relocation is
52912 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
52913 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
52914 * util/misc.c (grub_arch_sync_caches): Likewise.
52916 2004-12-19 Marco Gerards <metgerards@student.han.nl>
52918 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
52919 `symlist.c', add `grubof_symlist.c'.
52920 (symlist.c): Variable removed.
52921 (grubof_HEADERS): Variable added.
52922 (grubof_symlist.c): New target.
52923 (kernel_syms.lst): Use `grubof_HEADERS' instead of
52924 `kernel_img_HEADERS'.
52925 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
52926 * kern/powerpc/dl.c: New file.
52927 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
52929 (grub_arch_dl_relocate_symbols): Likewise.
52930 (grub_register_exported_symbols): Likewise.
52932 2004-12-13 Marco Gerards <metgerards@student.han.nl>
52934 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
52935 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
52936 to fail instead. Reported by Vincent Pelletier
52937 <subdino2004@yahoo.fr>.
52939 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
52940 it is not allocated. Reported by Vincent Pelletier
52941 <subdino2004@yahoo.fr>.
52943 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
52944 output so the output looks better.
52946 2004-12-04 Marco Gerards <metgerards@student.han.nl>
52948 Modulize the partition map support and add support for the amiga
52951 * commands/ls.c: Include <grub/partition.h> instead of
52952 <grub/machine/partition.h>.
52953 * kern/disk.c: Likewise.
52954 * kern/rescue.c: Likewise.
52955 * loader/i386/pc/chainloader.c: Likewise.
52956 * normal/cmdline.c: Likewise.
52957 * kern/powerpc/ieee1275/init.c: Likewise.
52958 (grub_machine_init): Call `grub_pc_partition_map_init',
52959 `grub_amiga_partition_map_init' and
52960 `grub_apple_partition_map_init'.
52961 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
52962 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
52963 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
52964 `partition.h' and `pc_partition.h'.
52965 (grub_setup_SOURCES): Remove
52966 `disk/i386/pc/partition.c'. Add `kern/partition.c',
52967 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
52968 (grub_emu_SOURCES): Likewise.
52969 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
52970 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
52971 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
52972 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
52973 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
52974 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
52975 (grubof_SOURCES): Likewise.
52976 * disk/i386/pc/partition.c: File removed.
52977 * disk/powerpc/ieee1275/partition.c: Likewise.
52978 * include/grub/powerpc/ieee1275/partition.h: Likewise.
52979 * include/grub/i386/pc/partition.h: Likewise.
52980 * kern/partition.c: New file.
52981 * partmap/amiga.c: Likewise.
52982 * partmap/apple.c: Likewise.
52983 * partmap/pc.c: Likewise.
52984 * include/grub/partition.h: Likewise..
52985 * include/grub/pc_partition.h: Likewise.
52986 * util/grub-emu.c: Include <grub/partition.h> instead of
52987 <grub/machine/partition.h>.
52988 (main): Call `grub_pc_partition_map_init',
52989 `grub_amiga_partition_map_init' and
52990 `grub_apple_partition_map_init' and deinitialize afterwards.
52991 * util/i386/pc/biosdisk.c: Include `#include
52992 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
52993 `<grub/machine/partition.h>'.
52994 * util/i386/pc/grub-setup.c: Likewise.
52995 * util/i386/pc/biosdisk.c: Likewise.
52996 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
52997 partition information in case of a PC partition.
52998 * util/i386/pc/grub-setup.c: Include `#include
52999 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53000 `<grub/machine/partition.h>'.
53001 (setup): Only access the PC specific partition information in case
53004 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53006 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53007 (grub_longjmp): Likewise.
53008 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53010 * normal/powerpc/setjmp.S: New file.
53011 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53012 `normal/powerpc/setjmp.S'.
53013 (grubof_CFLAGS): Add `-DGRUBOF'.
53014 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53015 [GRUB_UTIL && !GRUBOF].
53017 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53019 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53020 property named `name'. Correctly handle the error returned by
53021 `grub_ieee1275_finddevice' if a device can not be opened.
53023 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53025 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53026 `actual' for negativity.
53027 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53030 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53032 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53033 (PAGE_OFFSET): New macro.
53034 (CRTC_ADDR_PORT): Likewise.
53035 (CRTC_DATA_PORT): Likewise.
53036 (START_ADDR_HIGH_REGISTER): Likewise.
53037 (START_ADDR_LOW_REGISTER): Likewise.
53038 (GRAPHICS_ADDR_PORT): Likewise.
53039 (GRAPHICS_DATA_PORT): Likewise.
53040 (READ_MAP_REGISTER): Likewise.
53041 (INPUT_STATUS1_REGISTER): Likewise.
53042 (INPUT_STATUS1_VERTR_BIT): Likewise.
53043 (page): New variable.
53044 (wait_vretrace): New function.
53045 (set_read_map): Likewise.
53046 (set_start_address): Likewise.
53047 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53049 (check_vga_mem): Take the page into account.
53050 (write_char): Likewise.
53051 (write_cursor): Likewise.
53052 (scroll_up): Likewise. Copy the page to the page that is not
53053 shown and switch between both pages.
53054 (grub_vga_putchar): Fix off by one error.
53055 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53058 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53060 Add support for iso9660 (including rockridge).
53062 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53063 (iso9660_mod_SOURCES): New variable.
53064 (iso9660_mod_CFLAGS): Likewise.
53065 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53066 * include/grub/fs.h (grub_iso9660_init): New prototype.
53067 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53068 * fs/iso9660.c: New file.
53070 * include/grub/misc.h (grub_strncat): New prototype.
53071 * kern/misc.c (grub_strncat): New function.
53073 * fs/hfs.c (grub_hfs_mount): Translate the error
53074 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53075 * fs/jfs.c (grub_jfs_mount): Likewise.
53076 * fs/ufs.c (grub_ufs_mount): Likewise.
53078 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53080 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53081 which initialized BAT registers.
53082 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53083 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53085 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53086 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53088 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53089 (grub_mapclaim): Likewise.
53090 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53091 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53094 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53096 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53097 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53098 -ffreestanding and -msoft-float.
53100 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53102 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53103 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53104 set in grub_ieee1275_flags.
53106 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53108 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53110 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53111 grub_console_init first.
53112 Change the memory range used for grub_ieee1275_claim and
53113 grub_mm_init_region.
53114 Print an error message if the claim fails.
53115 Include <grub/misc.h>.
53117 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53119 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53120 Call grub_children_iterate for device nodes of type `scsi',
53122 (grub_ofdisk_open): Remove manual device alias resolution.
53123 Fix memory leak when device cannot be opened.
53124 * include/grub/powerpc/ieee1275/ieee1275.h
53125 (grub_children_iterate): New prototype.
53126 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53128 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53129 Return -1 if args.size was -1.
53131 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53133 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53134 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53135 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53136 Open Firmware's memory for it; claim memory from _start to _end.
53137 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53138 (_end): New extern.
53139 (_start): Zero BSS from __bss_start to _end.
53140 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53142 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53144 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53146 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53147 -1 if args.base was -1.
53149 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53151 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53152 escape sequence instead of a literal ^L. Also call
53153 grub_ofconsole_gotoxy.
53155 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53157 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53158 void * arguments to grub_addr_t. All callers updated. Also make
53159 the `result' argument optional.
53160 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53161 All callers updated.
53163 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53165 * commands/ls.c (grub_ls_list_files): Use the string following the
53166 initial ')', if present, as the filesystem path.
53167 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53169 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53171 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53173 Make the source code of the menu interface more readable.
53175 * normal/menu.c: Include grub/mm.h.
53176 (TERM_WIDTH): New macro.
53177 (TERM_HEIGHT): Likewise.
53178 (TERM_INFO_HEIGHT): Likewise.
53179 (TERM_MARGIN): Likewise.
53180 (TERM_SCROLL_WIDTH): Likewise.
53181 (TERM_TOP_BORDER_Y): Likewise.
53182 (TERM_LEFT_BORDER_X): Likewise.
53183 (TERM_BORDER_WIDTH): Likewise.
53184 (TERM_MESSAGE_HEIGHT): Likewise.
53185 (TERM_BORDER_HEIGHT): Likewise.
53186 (TERM_NUM_ENTRIES): Likewise.
53187 (TERM_FIRST_ENTRY_Y): Likewise.
53188 (TERM_ENTRY_WIDTH): Likewise.
53189 (TERM_CURSOR_X): Likewise.
53190 (draw_border): Use macros instead of magic numbers.
53191 (print_entry): Likewise.
53192 (print_entries): Likewise.
53193 (run_menu): Likewise. Also, handle the key 'e'.
53194 (run_menu_entry): Ignore empty command lines.
53195 (print_message): Added a new argument EDIT. If EDIT is true,
53196 print a different message.
53197 (init_page): Likewise.
53198 (edit_menu_entry): New function. Not implemented yet.
53200 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53202 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53203 can be loaded from normal mode.
53205 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53207 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53208 (multiboot_mod_CFLAGS): New variables.
53209 * loader/i386/pc/linux_normal.c: New file.
53210 * loader/i386/pc/multiboot_normal.c: Likewise.
53212 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53213 attribute `unused'.
53215 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53216 `fdiro' to read the mode information from instead of `diro'.
53218 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53219 looking up a symlink.
53221 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53223 * normal/command.c (grub_command_execute): Don't parse the
53224 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53225 flags of the command.
53227 * normal/menu.c (grub_menu_run): Fix typo.
53229 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53231 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53233 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53234 `y + 1' instead of `y - 1'.
53236 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53238 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53240 From Hollis Blanchard <hollis@penguinppc.org>:
53241 * kern/misc.c (memmove): New alias for grub_memmove.
53242 (memcmp): New alias for grub_memcmp.
53243 (memset): New alias for grub_memset.
53244 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53245 Change "int handle" to "grub_ieee1275_phandle_t handle".
53246 * include/grub/powerpc/ieee1275/ieee1275.h
53247 (grub_ieee1275_get_property): Likewise.
53249 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53251 Added normal mode command `chainloader' as module chain.mod, which
53252 depends on normal.mod and _chain.mod.
53254 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53255 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53256 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53258 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53259 but arguments parsing moved to ...
53260 (grub_chainloader_cmd): ... here. New function.
53261 * include/grub/i386/pc/chainloader.h: New file.
53262 * loader/i386/pc/chainloader_normal.c: Likewise.
53264 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53266 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53267 (grub_mkimage_LDFLAGS): Likewise.
53268 (grub_emu_SOURCES): Likewise.
53269 (kernel_img_HEADERS): Added fshelp.h.
53270 * fs/ext2.c: Include <grub/fshelp.h>.
53271 (FILETYPE_REG): New macro.
53272 (FILETYPE_INO_REG): Likewise.
53273 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53275 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53277 (grub_fshelp_node): New struct.
53278 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53280 (grub_ext2_get_file_block): Removed function.
53281 (grub_ext2_read_block): New function.
53282 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53283 This function was written.
53284 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53285 (grub_ext2_find_file): Removed function.
53286 (grub_ext2_read_symlink): New function.
53287 (grub_ext2_iterate_dir): Likewise.
53288 (grub_ext2_open): Rewritten.
53289 (grub_ext2_dir): Rewritten.
53290 * include/grub/fshelp.h: New file.
53291 * fs/fshelp.c: Likewise.
53293 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53295 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53296 (print_message): Add a missing newline.
53297 (run_menu): Added timeout support.
53298 (run_menu_entry): New local function.
53299 (grub_menu_run): Added support for booting.
53301 * kern/loader.c (grub_loader_is_loaded): New function.
53303 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53304 (grub_get_rtc): Exported.
53306 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53307 (grub_get_rtc): Exported.
53309 * include/grub/normal.h (struct grub_command_list): Remove
53310 constant from the member `command'.
53312 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53314 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53316 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53318 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53320 Add support for the JFS filesystem.
53322 * fs/jfs.c: New file.
53323 * include/grub/fs.h (grub_jfs_init): New prototype.
53324 (grub_jfs_fini): New prototype.
53325 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53326 (grub_emu_SOURCES): Likewise.
53327 (pkgdata_MODULES): Add jfs.mod.
53328 (jfs_mod_SOURCES): New variable.
53329 (jfs_mod_CFLAGS): Likewise.
53330 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53331 (grubof_SOURCES): Likewise.
53332 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53334 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53335 endian to the host endian.
53336 (grub_fat_utf16_to_utf8): Move function from there...
53337 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
53338 the endianness of the source string anymore.
53339 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53341 2004-08-24 Marco Gerards <metgerards@student.han.nl>
53343 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53344 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53345 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53346 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
53348 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53349 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53350 for `node_found' and `it_dir'.
53351 (grub_hfs_dir): Add prototype for `dir_hook'.
53353 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53354 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53355 and `indir32' to silence a gcc warning.
53357 * include/grub/fs.h (grub_hfs_init): New prototype.
53358 (grub_hfs_fini): Likewise.
53361 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53363 Each disk device has its own id now. This is useful to make use
53364 of multiple disk devices.
53366 * include/grub/disk.h (grub_disk_dev_id): New enum.
53367 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53368 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53370 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53371 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53373 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53374 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53376 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53377 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53379 * include/grub/disk.h (struct grub_disk_dev): Added a new member
53380 "id" which is used by the cache manager.
53382 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
53385 2004-08-18 Marco Gerards <metgerards@student.han.nl>
53387 * fs/hfs.c: New file.
53388 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
53389 (grub_emu_SOURCES): Likewise.
53390 (pkgdata_MODULES): Add hfs.mod.
53391 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
53392 (grubof_SOURCES): Likewise.
53393 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
53395 * include/grub/misc.h (grub_strncasecmp): Add prototype.
53396 * kern/misc.c (grub_strncasecmp): Add function.
53398 2004-08-14 Marco Gerards <metgerards@student.han.nl>
53400 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
53403 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
53404 (grub_ext2_dir): In case the directory entry type is unknown, read
53407 2004-08-02 Peter Bruin <pjbruin@dds.nl>
53409 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
53410 grub_load_linux instead of grub_rescue_cmd_linux as second
53411 argument of grub_rescue_register_command.
53413 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
53415 2004-07-27 Marco Gerards <metgerards@student.han.nl>
53417 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
53419 * commands/boot.c: Remove the check for `GRUB_UTIL'.
53420 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53421 `loader/powerpc/ieee1275/linux.c',
53422 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
53423 * include/grub/powerpc/ieee1275/ieee1275.h
53424 (grub_ieee1275_release): New prototype.
53425 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
53426 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
53427 normal, boot, linux and linux_normal.
53428 * loader/powerpc/ieee1275/linux.c: New file.
53429 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
53431 2004-07-12 Marco Gerards <metgerards@student.han.nl>
53433 * normal/arg.c (grub_arg_parse): Correct error handling after
53434 reallocating the argumentlist (check if `argl' is not null instead
53435 of checking if `args' is not null).
53436 * kern/mm.c (grub_realloc): Return the same pointer when using the
53437 same region, instead of returning the header address.
53439 2004-07-11 Marco Gerards <metgerards@student.han.nl>
53441 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
53442 one block instead of two when looking for the initial partition.
53443 (grub_partition_probe): Initialize the local variable `p' with 0.
53444 Use base 10 for the grub_strtoul call.
53445 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
53446 need for one local variable.
53447 (grub_strtoul): Don't add the new value to `num', instead of that
53450 2004-07-11 Marco Gerards <metgerards@student.han.nl>
53452 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
53453 (pxeboot_img_SOURCES): New variable.
53454 (pxeboot_img_ASFLAGS): Likewise.
53455 (pxeboot_img_LDFLAGS): Likewise.
53456 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
53457 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
53458 <lode_leroy@hotmail.com>.
53460 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53462 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
53463 there was no input.
53465 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53467 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
53468 the history buffer logic.
53470 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53472 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
53473 (FILETYPE_INO_SYMLINK): New macros.
53474 (grub_ext2_find_file): Check if the node is a directory using the
53475 inode stat information instead of using the filetype in the
53476 dirent. Exclude the first character of an absolute symlink.
53477 (grub_ext2_dir): Mask out the filetype part of the mode member of
53480 2004-05-24 Marco Gerards <metgerards@student.han.nl>
53482 Add support for UFS version 1 and 2. Add support for the minix
53483 filesystem version 1 and 2, both the variants with 14 and 30 long
53486 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
53488 (grub_emu_SOURCES): Likewise.
53489 (pkgdata_MODULES): Add ufs.mod and minix.mod.
53490 (ufs_mod_SOURCES): New variable.
53491 (ufs_mod_CFLAGS): Likewise.
53492 (minix_mod_SOURCES): Likewise.
53493 (minix_mod_CFLAGS): Likewise.
53494 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
53496 (grubof_SOURCES): Likewise.
53497 * fs/ufs.c: New file.
53498 * fs/minix.c: New file.
53499 * include/grub/fs.h (grub_ufs_init): New prototype.
53500 (grub_ufs_fini): Likewise.
53501 (grub_minix_init): Likewise.
53502 (grub_minix_fini): Likewise.
53503 * util/grub-emu.c (main): Initialize and deinitialize UFS and
53506 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
53508 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
53509 commands/ls.c, commands/terminal.c, commands/boot.c,
53510 commands/cmp.c and commands/cat.c.
53511 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
53513 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
53516 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
53518 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
53519 and grub_, respectively. Because the conversion is trivial and
53520 mechanical, I omit the details here. Please refer to the CVS
53521 if you need more information.
53523 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
53525 * include/pupa: Renamed to ...
53526 * include/grub: ... this.
53527 * util/i386/pc/pupa-mkimage.c: Renamed to ...
53528 * util/i386/pc/grub-mkimage.c: ... this.
53529 * util/i386/pc/pupa-setup.c: Renamed to ...
53530 * util/i386/pc/grub-setup.c: ... this.
53531 * util/pupa-emu.c: Renamed to ...
53532 * util/grub-emu.c: ... this.
53534 2004-03-29 Marco Gerards <metgerards@student.han.nl>
53536 Add support for the newworld apple macintosh (PPC). This has been
53537 tested on the powerbook 2000 only. It only adds support for
53538 generic ieee1275 functions, console and disk support. This should
53539 be easy to port to other architectures with support for Open
53542 * configure.ac: Accept the powerpc as host_cpu. In the case of
53543 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
53544 specific tests are only executed while building for the i386.
53545 Inverse test for crosscompile.
53546 * genmk.rb (Utility): Allow assembler files.
53547 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
53548 * conf/powerpc-ieee1275.rmk: New file.
53549 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
53550 * disk/powerpc/ieee1275/partition.c: Likewise.
53551 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
53552 * include/pupa/powerpc/ieee1275/console.h: Likewise.
53553 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
53554 * include/pupa/powerpc/ieee1275/time.h: Likewise.
53555 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
53556 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
53557 * include/pupa/powerpc/ieee1275/loader.h
53558 * include/pupa/powerpc/setjmp.h: Likewise.
53559 * include/pupa/powerpc/types.h: Likewise.
53560 * kern/powerpc/ieee1275/init.c: Likewise.
53561 * kern/powerpc/ieee1275/openfw.c: Likewise.
53562 * term/powerpc/ieee1275/ofconsole.c: Likewise.
53564 These files were written by Johan Rydberg
53565 (jrydberg@night.trouble.net) and I only modified them slightly.
53567 * boot/powerpc/ieee1275/cmain.c: New file.
53568 * boot/powerpc/ieee1275/crt0.S: Likewise.
53569 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
53570 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
53572 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
53574 * Makefile.in: Update copyright.
53575 * genmodsrc.sh: Likewise.
53576 * gensymlist.sh: Likewise.
53577 * term/i386/pc/vga.c: Indent correctly.
53579 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
53580 bugreporting address.
53581 * util/i386/pc/pupa-setup.c (usage): Likewise,
53582 (main): Call pupa_ext2_init and pupa_ext2_fini.
53584 * fs/fat.c (log2): Renamed to ...
53585 (fat_log2): ... this.
53586 All callers changed.
53587 * kern/misc.c (memcpy): Alias to pupa_memmove.
53588 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
53590 * util/console.c (pupa_ncurses_fini): Return 0.
53592 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
53593 Move fail label here.
53594 [__GNU__]: Don't warn when using stat.
53595 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
53596 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
53597 long int. Use strtol instead of strtoul.
53599 2004-03-14 Marco Gerards <metgerards@student.han.nl>
53601 * commands/boot.c: New file.
53602 * commands/cat.c: Likewise.
53603 * commands/cmp.c: Likewise.
53604 * commands/ls.c: Likewise.
53605 * commands/terminal.c: Likewise.
53606 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
53607 (pupa_register_command): Changed interface to match the new
53609 (pupa_command_execute): Changed (almost rewritten) so it uses
53610 pupa_split_command. Added support for setting variables using the
53612 (rescue_command): Changed to work with the new argument parser.
53613 (terminal_command): Moved from here to commands/terminal.c.
53614 (set_command): New function.
53615 (unset_command): New function.
53616 (insmod_command): New function.
53617 (rmmod_command): New function.
53618 (lsmod_command): New function.
53619 (pupa_command_init): Don't initialize the command terminal
53620 anymore. Initialize the commands set, unset, insmod, rmmod and
53622 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
53623 (kernel_img_HEADERS): Add arg.h and env.h.
53624 (pupa_mkimage_LDFLAGS): Add kern/env.c.
53625 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
53626 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
53628 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
53630 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
53631 (boot_mod_SOURCES): New variable.
53632 (terminal_mod_SOURCES): Likewise.
53633 (ls_mod_SOURCES): Likewise.
53634 (cmp_mod_SOURCES): Likewise.
53635 (cat_mod_SOURCES): Likewise.
53637 * normal/arg.c: New file.
53638 * kern/env.c: Likewise.
53639 * include/pupa/arg.h: Likewise.
53640 * include/pupa/env.h: Likewise.
53641 * font/manager.c (font_command): Changed to match argument parsing
53643 (PUPA_MOD_INIT): Likewise.
53644 * hello/hello.c (pupa_cmd_hello): Likewise.
53645 (PUPA_MOD_INIT): Likewise.
53646 * include/pupa/disk.h: Include <pupa/device.h>.
53647 (pupa_print_partinfo): New prototype.
53648 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
53649 (pupa_dl_get_prefix): Likewise.
53650 * include/pupa/misc.h: Include <pupa/err.h>.
53651 (pupa_isgraph): New prototype.
53652 (pupa_isdigit): Likewise.
53653 (pupa_split_cmdline): Likewise.
53654 * include/pupa/normal.h: Include <pupa/arg.h>.
53655 (pupa_command): Changed the prototype of the member `func' to
53656 match the argument parsing interface. Added member `options'.
53657 (pupa_register_command): Updated to match function.
53658 (pupa_arg_parse): New prototype.
53659 (pupa_hello_init) [PUPA_UTIL]: New prototype.
53660 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
53661 (pupa_ls_init) [PUPA_UTIL]: Likewise.
53662 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
53663 (pupa_cat_init) [PUPA_UTIL]: Likewise.
53664 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
53665 (pupa_boot_init) [PUPA_UTIL]: Likewise.
53666 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
53667 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
53668 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
53669 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
53670 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
53671 * kern/disk.c: Include <pupa/file.h>.
53672 (pupa_print_partinfo): New function.
53673 * kern/dl.c: Include <pupa/env.h>.
53674 (pupa_dl_dir): Variable removed.
53675 (pupa_dl_load): Use the environment variable `prefix' instead of
53676 the variable pupa_dl_dir.
53677 (pupa_dl_set_prefix): Function removed.
53678 (pupa_dl_get_prefix): Likewise.
53679 * kern/i386/pc/init.c: Include <pupa/env.h>.
53680 (pupa_machine_init): Use the environment variable `prefix' instead of
53681 using pupa_dl_set_prefix to set the prefix.
53682 * kern/main.c: Include <pupa/env.h>.
53683 (pupa_set_root_dev): Use the environment variable `prefix' instead of
53684 using pupa_dl_get_prefix to get the prefix.
53685 * kern/misc.c: Include <pupa/env.h>.
53686 (pupa_isdigit): New function.
53687 (pupa_isgraph): Likewise.
53688 (pupa_ftoa): Likewise.
53689 (pupa_vsprintf): Added support for printing values of the type
53690 `double'. Make it possible to format variable output when using
53691 formatting like `%1.2%f'.
53692 (pupa_split_cmdline): New function.
53693 * kern/rescue.c: Include <pupa/env.h>.
53694 (next_word): Removed function.
53695 (pupa_rescue_cmd_prefix): Likewise.
53696 (pupa_rescue_cmd_set): New function.
53697 (pupa_rescue_cmd_unset): New function.
53698 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
53699 split the command line instead of splitting it here. Added
53700 support for setting variables using the syntax `foo=bar'. Don't
53701 initialize the prefix command anymore. Initialized the set and
53703 * normal/cmdline.c: Include <pupa/env.h>.
53704 (pupa_tab_complete): Added prototypes for print_simple_completion,
53705 print_partition_completion, add_completion, iterate_commands,
53706 iterate_dev, iterate_part and iterate_dir. Moved code to print
53707 partition information from here to kern/disk.c.
53708 (pupa_cmdline_run): Don't check if the function exists anymore.
53709 * normal/main.c: Include <pupa/env.h>.
53710 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
53711 instead of using pupa_dl_get_prefix to get the prefix.
53712 * term/i386/pc/vga.c: Include <pupa/arg.h>.
53713 (check_vga_mem): Cast pointers to `void *' to silence a gcc
53715 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
53716 (pupa_vga_setcolor): Declare unused variables with `__attribute__
53717 ((unused))' to silence a gcc warning.
53718 (pupa_vga_setcolor): Likewise.
53719 (debug_command): Changed to match argument parsing
53721 * util/pupa-emu.c: Include <pupa/env.h>.
53722 (options): Added 0's for unused fields to silence a gcc warning.
53724 (main): Use the environment variable `prefix' instead of using
53725 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
53726 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
53729 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
53730 * util/misc.c: Include <malloc.h>.
53731 (pupa_malloc): Rewritten so errors are correctly reported.
53732 (pupa_realloc): Likewise.
53733 (pupa_memalign): Likewise.
53734 (pupa_mm_init_region): Declare unused variables with
53735 `__attribute__ ((unused))' to silence a gcc warning.
53736 * normal/i386/setjmp.S: Remove tab at the end of the file to
53737 silence a gcc warning.
53738 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
53739 variables with `__attribute__ ((unused))' to silence a gcc
53741 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
53742 local variable i unsigned to silence a gcc warning.
53744 * kern/term.c: Include <pupa/misc.h>.
53745 (pupa_more_lines): New variable.
53746 (pupa_more): Likewise.
53747 (pupa_putcode): When the pager is active pause at the end of every
53749 (pupa_set_more): New function.
53750 * include/pupa/term.h (pupa_set_more): New prototype.
53753 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
53755 Now this project is GRUB 2 rather than PUPA. The location of
53756 the CVS repository was moved to GRUB's.
53758 * configure.ac: Use bug-grub as the reporting address.
53759 Use GRUB instead of PUPA.
53760 Change the version number to 1.90.
53762 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
53764 * genkernsyms.sh: Updated copyright information.
53765 * genmk.rb: Likewise.
53766 * genmodsrc.sh: Likewise.
53767 * gensymlist.sh: Likewise.
53768 * boot/i386/pc/boot.S: Likewise.
53769 * boot/i386/pc/diskboot.S: Likewise.
53770 * disk/i386/pc/biosdisk.c: Likewise.
53771 * disk/i386/pc/partition.c: Likewise.
53772 * font/manager.c: Likewise.
53773 * fs/ext2.c: Likewise.
53774 * fs/fat.c: Likewise.
53775 * include/pupa/boot.h: Likewise.
53776 * include/pupa/device.h: Likewise.
53777 * include/pupa/disk.h: Likewise.
53778 * include/pupa/dl.h: Likewise.
53779 * include/pupa/elf.h: Likewise.
53780 * include/pupa/err.h: Likewise.
53781 * include/pupa/file.h: Likewise.
53782 * include/pupa/font.h: Likewise.
53783 * include/pupa/fs.h: Likewise.
53784 * include/pupa/kernel.h: Likewise.
53785 * include/pupa/loader.h: Likewise.
53786 * include/pupa/misc.h: Likewise.
53787 * include/pupa/mm.h: Likewise.
53788 * include/pupa/net.h: Likewise.
53789 * include/pupa/normal.h: Likewise.
53790 * include/pupa/rescue.h: Likewise.
53791 * include/pupa/setjmp.h: Likewise.
53792 * include/pupa/symbol.h: Likewise.
53793 * include/pupa/term.h: Likewise.
53794 * include/pupa/types.h: Likewise.
53795 * include/pupa/i386/setjmp.h: Likewise.
53796 * include/pupa/i386/types.h: Likewise.
53797 * include/pupa/i386/pc/biosdisk.h: Likewise.
53798 * include/pupa/i386/pc/boot.h: Likewise.
53799 * include/pupa/i386/pc/console.h: Likewise.
53800 * include/pupa/i386/pc/init.h: Likewise.
53801 * include/pupa/i386/pc/kernel.h: Likewise.
53802 * include/pupa/i386/pc/linux.h: Likewise.
53803 * include/pupa/i386/pc/loader.h: Likewise.
53804 * include/pupa/i386/pc/memory.h: Likewise.
53805 * include/pupa/i386/pc/multiboot.h: Likewise.
53806 * include/pupa/i386/pc/partition.h: Likewise.
53807 * include/pupa/i386/pc/time.h: Likewise.
53808 * include/pupa/i386/pc/vga.h: Likewise.
53809 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
53810 * include/pupa/util/getroot.h: Likewise.
53811 * include/pupa/util/misc.h: Likewise.
53812 * include/pupa/util/resolve.h: Likewise.
53813 * kern/device.c: Likewise.
53814 * kern/disk.c: Likewise.
53815 * kern/dl.c: Likewise.
53816 * kern/err.c: Likewise.
53817 * kern/file.c: Likewise.
53818 * kern/fs.c: Likewise.
53819 * kern/loader.c: Likewise.
53820 * kern/main.c: Likewise.
53821 * kern/misc.c: Likewise.
53822 * kern/mm.c: Likewise.
53823 * kern/rescue.c: Likewise.
53824 * kern/term.c: Likewise.
53825 * kern/i386/dl.c: Likewise.
53826 * kern/i386/pc/init.c: Likewise.
53827 * kern/i386/pc/lzo1x.S: Likewise.
53828 * kern/i386/pc/startup.S: Likewise.
53829 * loader/i386/pc/chainloader.c: Likewise.
53830 * loader/i386/pc/linux.c: Likewise.
53831 * loader/i386/pc/multiboot.c: Likewise.
53832 * normal/cmdline.c: Likewise.
53833 * normal/command.c: Likewise.
53834 * normal/main.c: Likewise.
53835 * normal/menu.c: Likewise.
53836 * normal/i386/setjmp.S: Likewise.
53837 * term/i386/pc/console.c: Likewise.
53838 * term/i386/pc/vga.c: Likewise.
53839 * util/console.c: Likewise.
53840 * util/genmoddep.c: Likewise.
53841 * util/misc.c: Likewise.
53842 * util/pupa-emu.c: Likewise.
53843 * util/resolve.c: Likewise.
53844 * util/unifont2pff.rb: Likewise.
53845 * util/i386/pc/biosdisk.c: Likewise.
53846 * util/i386/pc/getroot.c: Likewise.
53847 * util/i386/pc/pupa-mkimage.c: Likewise.
53848 * util/i386/pc/pupa-setup.c: Likewise.
53850 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
53852 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
53853 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
53854 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
53855 reading and reset it after reading.
53856 (pupa_ext2_close): Return PUPA_ERR_NONE.
53858 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
53860 (struct linux_kernel_header): Add kernel_version and
53862 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
53863 pupa_file_read succeeds.
53864 (pupa_rescue_cmd_initrd): Implement.
53866 2003-12-03 Marco Gerards <metgerards@student.han.nl>
53868 * fs/ext2.c (pupa_ext2_label): New function.
53869 (pupa_ext2_fs): Added label.
53870 * fs/fat.c (pupa_fat_label): New function.
53871 (pupa_fat_fs): Added label.
53872 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
53874 * kern/misc.c (pupa_strndup): New function.
53875 * include/pupa/misc.h (pupa_strndup): New prototype.
53877 * include/pupa/normal.h: Include <pupa/err.h>.
53878 (pupa_set_history): New prototype.
53879 (pupa_iterate_commands): New prototype.
53880 * normal/cmdline.c: Include <pupa/machine/partition.h>,
53881 <pupa/disk.h>, <pupa/file.h>.
53882 (hist_size): New variable.
53883 (hist_lines): Likewise.
53884 (hist_end): Likewise.
53885 (hist_used): Likewise.
53886 (pupa_set_history): New function.
53887 (pupa_history_get): Likewise.
53888 (pupa_history_add): Likewise.
53889 (pupa_history_replace): Likewise.
53890 (pupa_tab_complete): Likewise.
53891 (pupa_cmdline_run): Added tab completion and history buffer. Tab
53892 completion shows partitionnames while completing partitions, this
53893 feature was suggested by Jeff Bailey.
53894 * normal/command.c (pupa_iterate_commands): New function.
53895 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
53896 (pupa_normal_init): Initialize history buffer.
53897 (PUPA_MOD_INIT): Likewise.
53898 (pupa_normal_fini): Free the history buffer.
53899 (PUPA_MOD_FINI): Likewise.
53901 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
53904 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
53905 * configure.ac [i386]: Check for regparam bug.
53906 (NESTED_FUNC_ATTR) [! i386]: Defined.
53908 2003-11-17 Marco Gerards <metgerards@student.han.nl>
53910 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
53911 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
53912 (pupa_emu_SOURCES): New variable.
53913 (pupa_emu_LDFLAGS): Likewise.
53914 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
53915 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
53916 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
53917 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
53918 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
53919 (pupa_jmp_buf): New typedef.
53920 (pupa_setjmp) [PUPA_UTIL]: New macro.
53921 (pupa_longjmp) [PUPA_UTIL]: Likewise.
53922 * include/pupa/term.h (struct pupa_term): New member `refresh'.
53923 (pupa_refresh): New prototype.
53924 * include/pupa/util/getroot.h: New file.
53925 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
53927 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
53928 (pupa_rescue_cmd_cat): Likewise.
53929 (pupa_rescue_cmd_ls): Likewise.
53930 (pupa_rescue_cmd_testload): Likewise.
53931 (pupa_rescue_cmd_lsmod): Likewise.
53932 * normal/cmdline.c (pupa_cmdline_get): Likewise.
53933 * normal/menu.c (run_menu): Likewise.
53934 * kern/term.c (pupa_cls): Likewise.
53935 (pupa_refresh): New function.
53936 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
53937 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
53938 * util/console.c: New file.
53940 * util/i386/pc/getroot.c: New file.
53941 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
53942 (pupa_putchar): New function.
53943 (pupa_refresh): Likewise.
53944 (xgetcwd): Function moved to ...
53945 (strip_extra_slashes): Likewise.
53946 (get_prefix): Likewise.
53947 * util/i386/pc/getroot.c: ... here.
53948 (find_root_device): Function moved and renamed to...
53949 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
53950 Changed all callers.
53951 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
53953 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
53954 Changed all callers.
53955 * util/misc.c (pupa_memalign): New function.
53956 (pupa_mm_init_region): Likewise.
53957 (pupa_register_exported_symbols): Likewise.
53958 (pupa_putchar): Function removed.
53959 * util/pupa-emu.c: New file.
53961 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
53963 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
53964 (_multiboot_mod_SOURCES): New variable.
53965 (_multiboot_mod_CFLAGS): Likewise.
53966 * loader/i386/pc/multiboot.c: New file.
53967 * include/pupa/i386/pc/multiboot.h: Likewise.
53968 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
53969 (pupa_multiboot_real_boot): New function.
53970 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
53971 (pupa_multiboot_real_boot): New prototype.
53972 (pupa_rescue_cmd_multiboot): Likewise
53973 (pupa_rescue_cmd_module): Likewise.
53975 * kern/loader.c (pupa_loader_set): Continue when
53976 pupa_loader_unload_func() fails.
53977 (pupa_loader_unset): New function.
53978 * include/pupa/loader.h (pupa_loader_unset): New prototype.
53980 * kern/misc.c (pupa_stpcpy): New function.
53981 * include/pupa/misc.h (pupa_stpcpy): New prototype.
53983 2003-11-12 Marco Gerards <metgerards@student.han.nl>
53985 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
53986 for available extensions.
53988 * include/pupa/i386/pc/time.h: New file.
53989 * kern/disk.c: Include <pupa/machine/time.h>.
53990 (PUPA_CACHE_TIMEOUT): New macro.
53991 (pupa_last_time): New variable.
53992 (pupa_disk_open): Flush the cache when there was a timeout.
53993 (pupa_disk_close): Reset the timer.
53994 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
53996 * util/misc.c: Include <sys/times.h>
53997 (pupa_get_rtc): New function.
53999 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54001 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54003 (pupa_ext2_get_file_block): Use blocks member.
54005 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54006 first block. Return -1 instead of pupa_errno on error.
54008 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54010 * README: In the pupa-mkimage example use _chain instead of chain
54011 and ext2 instead of fat.
54012 * TODO: Replace ext2fs with jfs as an example. Add an item for
54013 adding journal playback for ext2fs.
54014 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54015 (pkgdata_MODULES): Added ext2.mod.
54016 (ext2_mod_SOURCES): New variable.
54017 (ext2_mod_CFLAGS): Likewise.
54018 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54019 * include/pupa/misc.h (pupa_strncpy): New prototype.
54020 (pupa_strcat): Likewise.
54021 (pupa_strncmp): Likewise.
54022 * kern/misc.c (pupa_strcat): Enable function.
54023 (pupa_strncpy): New function.
54024 (pupa_strncmp): Likewise.
54025 * fs/ext2.c: New file.
54027 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54028 when the read failed before retrying.
54029 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54030 (_FILE_OFFSET_BITS): Likewise.
54031 * configure.ac: Added AC_SYS_LARGEFILE.
54033 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54035 * genmk.rb (PModule#rule): Make sure to get only symbol names
54036 from the output of nm.
54037 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54039 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54041 I forgot to check in these changes for a long time. This adds
54042 incomplete support for VGA console, and this is still very
54043 buggy. Also, a lot of consideration is required for I18N,
54044 UNICODE, and VGA font issues. Therefore, assume that this is
54045 such that "better than nothing".
54047 * font/manager.c: New file.
54048 * include/pupa/font.h: Likewise.
54049 * include/pupa/i386/pc/vga.h: Likewise.
54050 * term/i386/pc/vga.c: Likewise.
54051 * util/unifont2pff.rb: Likewise.
54053 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54054 (pkgdata_MODULES): Added vga.mod and font.mod.
54055 (vga_mod_SOURCES): New variables.
54056 (vga_mod_CFLAGS): Likewise.
54057 (font_mod_SOURCES): Likewise.
54058 (font_mod_CFLAGS): Likewise.
54060 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54062 * include/pupa/term.h: Include pupa/err.h.
54063 (struct pupa_term): Added init and fini.
54064 Changed the argument of putchar to pupa_uint32_t.
54066 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54067 (pupa_console_real_putchar): New prototype.
54068 (pupa_console_putchar): Removed.
54069 (pupa_console_checkkey): Exported.
54070 (pupa_console_getkey): Likewise.
54072 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54075 * kern/term.c (pupa_term_set_current): Rewritten.
54076 (pupa_putchar): Likewise.
54077 (pupa_putcode): New function.
54079 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54080 (pupa_console_real_putchar): ... this.
54081 (pupa_vga_set_mode): New function.
54082 (pupa_vga_get_font): Likewise.
54084 * normal/command.c: Include pupa/term.h.
54085 (terminal_command): New function.
54086 (pupa_command_init): Register the command "terminal".
54088 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54089 (DISP_UP): Likewise.
54090 (DISP_RIGHT): Likewise.
54091 (DISP_DOWN): Likewise.
54092 (DISP_HLINE): Likewise.
54093 (DISP_VLINE): Likewise.
54094 (DISP_UL): Likewise.
54095 (DISP_UR): Likewise.
54096 (DISP_LL): Likewise.
54097 (DISP_LR): Likewise.
54099 * term/i386/pc/console.c (pupa_console_putchar): New function.
54101 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54103 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54104 FIX. Reverse the path_list.
54106 * include/pupa/normal.h: Export pupa_register_command and
54107 pupa_unregister_command.
54109 * hello/hello.c (pupa_cmd_hello): New module.
54110 * conf/i386-pc.rmk: Added hello.mod.
54112 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54114 * kern/i386/pc/lzo1x.S: New file.
54116 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54117 (compress_kernel): New variable.
54118 (generate_image): Heavily modified to support compressing a
54119 large part of the core image.
54121 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54123 (pupa_util_load_image): New function.
54125 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54126 (pupa_compressed_size): New variable.
54127 (codestart): Enable Gate A20 here.
54128 Decompress the compressed part of the core image.
54129 Rearrange the code to put functions and variables which are
54130 required for initialization in the non-compressed part.
54133 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54136 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54138 * include/pupa/i386/pc/kernel.h
54139 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54140 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54141 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54142 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54143 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54145 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54147 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54148 (Utility#rule): Likewise.
54150 * configure.ac: Check if LZO is available.
54152 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54154 * include/pupa/normal.h: New file.
54155 * include/pupa/setjmp.h: Likewise.
54156 * include/pupa/i386/setjmp.h: Likewise.
54157 * normal/cmdline.c: Likewise.
54158 * normal/command.c: Likewise.
54159 * normal/main.c: Likewise.
54160 * normal/menu.c: Likewise.
54161 * normal/i386/setjmp.S: Likewise.
54163 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54164 (pupa_rescue_cmd_initrd): Likewise.
54166 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54169 * kern/i386/pc/startup.S (translation_table): New variable.
54170 (translate_keycode): New function.
54171 (pupa_console_getkey): Call translate_keycode.
54173 * kern/rescue.c (attempt_normal_mode): New function.
54174 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54175 it failed, print a message.
54177 * kern/mm.c (pupa_real_malloc): Print more information when a
54178 free magic is broken.
54179 (pupa_free): If the first free header is not free actually, set
54182 * kern/main.c (pupa_load_normal_mode): Just load the module
54184 (pupa_main): Don't print the message
54185 "Entering into rescue mode..." here.
54187 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54189 (pupa_rescue_cmd_initrd): Likewise.
54190 (pupa_rescue_cmd_initrd): Likewise.
54192 * include/pupa/symbol.h (FUNCTION): Specify the type.
54193 (VARIABLE): Likewise.
54195 * include/pupa/err.h (pupa_err_t): Added
54196 PUPA_ERR_UNKNOWN_COMMAND.
54198 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54199 (pupa_dl_get_prefix): Likewise.
54201 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54202 Added _chain.mod and _linux.mod instead of chain.mod and
54204 (chain_mod_SOURCES): Renamed to ...
54205 (_chain_mod_SOURCES): ... this.
54206 (chain_mod_CFLAGS): Renamed to ...
54207 (_chain_mod_CFLAGS): ... this.
54208 (linux_mod_SOURCES): Renamed to ...
54209 (_linux_mod_SOURCES): ... this.
54210 (linux_mod_CFLAGS): Renamed to ...
54211 (_linux_mod_CFLAGS): ... this.
54212 (normal_mod_SOURCES): New variable.
54213 (normal_mod_CFLAGS): Likewise.
54214 (normal_mod_ASFLAGS): Likewise.
54216 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54218 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54221 * kern/dl.c (pupa_dl_ref): Refer depending modules
54223 (pupa_dl_unref): Unrefer depending modules recursively.
54224 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54225 a module is unloaded before one depending on that module is
54227 (pupa_dl_unload): Unload depending modules explicitly,
54230 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54232 * include/pupa/i386/pc/linux.h: New file.
54233 * loader/i386/pc/linux.c: Likewise.
54235 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54237 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54238 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54239 of PUPA_CHAINLOADER_BOOT_SECTOR.
54241 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54242 (pupa_linux_prot_size): New variable.
54243 (pupa_linux_tmp_addr): Likewise.
54244 (pupa_linux_real_addr): Likewise.
54245 (pupa_linux_boot_zimage): New function.
54246 (pupa_linux_boot_bzimage): Likewise.
54248 * kern/i386/pc/init.c (struct mem_region): New structure.
54249 (MAX_REGIONS): New macro.
54250 (mem_regions): New variable.
54251 (num_regions): Likewise.
54252 (pupa_os_area_addr): Likewise.
54253 (pupa_os_area_size): Likewise.
54254 (pupa_lower_mem): Likewise.
54255 (pupa_upper_mem): Likewise.
54256 (add_mem_region): New function.
54257 (compact_mem_regions): Likewise.
54258 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54259 the size of the conventional memory and that of so-called upper
54260 memory (before the first memory hole).
54261 Instead of adding each found region to free memory, use
54262 add_mem_region and add them after removing overlaps.
54263 Also, add only 1/4 of the upper memory to free memory. The rest
54264 is used for loading OS images. Maybe this is ad hoc, but this
54265 makes it much easier to relocate OS images when booting.
54267 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54268 (pupa_enter_rescue_mode): Don't register initrd and module.
54270 * kern/mm.c: Include pupa/dl.h.
54272 * kern/main.c: Include pupa/file.h and pupa/device.h.
54274 * kern/loader.c (pupa_loader_load_module_func): Removed.
54275 (pupa_loader_load_module): Likewise.
54277 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54280 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54281 (pupa_linux_tmp_addr): Likewise.
54282 (pupa_linux_real_addr): Likewise.
54283 (pupa_linux_boot_zimage): Likewise.
54284 (pupa_linux_boot_bzimage): Likewise.
54286 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54287 (pupa_upper_mem): Likewise.
54288 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54289 module is too dangerous.
54291 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54292 (pupa_os_area_size): Likewise.
54293 (pupa_loader_set): Remove the first argument. Loader doesn't
54294 manage modules or initrd any longer.
54295 (pupa_loader_load_module): Removed.
54297 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54298 (linux_mod_SOURCES): New variable.
54299 (linux_mod_CFLAGS): Likewise.
54301 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54303 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54304 the length of a blocklist correctly.
54306 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54307 Use ioctl only if the OS file is a block device.
54308 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54309 not very useful for normal files.
54311 * kern/main.c (pupa_set_root_dev): New function.
54312 (pupa_load_normal_mode): Likewise.
54313 (pupa_main): Call those above.
54315 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54318 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54320 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54322 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54323 (setup): Configure the installed partition information and the
54326 * loader/i386/pc/chainloader.c (my_mod): New variable.
54327 (pupa_chainloader_unload): New function.
54328 (pupa_rescue_cmd_chainloader): Refer itself.
54329 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54331 * kern/i386/pc/startup.S (install_partition): Removed.
54332 (version_string): Likewise.
54333 (config_file): Likewise.
54334 (pupa_install_dos_part): New variable.
54335 (pupa_install_bsd_part): Likewise.
54336 (pupa_prefix): Likewise.
54337 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54339 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54341 (make_install_device): New function.
54342 (pupa_machine_init): Set the dl prefix.
54344 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54345 (buf): Renamed to ...
54346 (linebuf): ... this.
54347 (pupa_rescue_cmd_prefix): New function.
54348 (pupa_rescue_cmd_insmod): Likewise.
54349 (pupa_rescue_cmd_rmmod): Likewise.
54350 (pupa_rescue_cmd_lsmod): Likewise.
54351 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54354 * kern/mm.c (pupa_memalign): If failed even after invalidating
54355 disk caches, unload unneeded modules and retry.
54357 * kern/misc.c (pupa_memmove): New function.
54358 (pupa_memcpy): Removed.
54359 (pupa_strcpy): New function.
54360 (pupa_itoa): Made static.
54362 * kern/dl.c (pupa_dl_iterate): New function.
54363 (pupa_dl_ref): Likewise.
54364 (pupa_dl_unref): Likewise.
54365 (pupa_dl_unload): Return if succeeded or not.
54366 (pupa_dl_unload_unneeded): New function.
54367 (pupa_dl_unload_all): Likewise.
54368 (pupa_dl_init): Renamed to ...
54369 (pupa_dl_set_prefix): ... this.
54370 (pupa_dl_get_prefix): New function.
54372 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54373 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54374 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54375 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54376 (pupa_install_dos_part): Declared.
54377 (pupa_install_bsd_part): Likewise.
54378 (pupa_prefix): Likewise.
54379 (pupa_boot_drive): Likewise.
54381 * include/pupa/types.h: Fix a typo.
54383 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
54385 (pupa_memmove): Declared.
54386 (pupa_strcpy): Likewise.
54388 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
54389 pupa_mod_init takes one argument, its own module.
54390 (pupa_dl_unload_unneeded): Declared.
54391 (pupa_dl_unload_all): Likewise.
54392 (pupa_dl_ref): Likewise.
54393 (pupa_dl_unref): Likewise.
54394 (pupa_dl_iterate): Likewise.
54395 (pupa_dl_init): Renamed to ...
54396 (pupa_dl_set_prefix): ... this.
54397 (pupa_dl_get_prefix): Declared.
54399 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
54400 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
54402 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
54403 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
54405 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
54406 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
54408 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54410 * util/i386/pc/pupa-setup.c (setup): Define the internal
54411 function find_first_partition_start at the top level, because GCC
54412 3.0.x cannot compile internal functions in deeper scopes
54414 (find_root_device): Use lstat instead of stat.
54415 Don't follow symbolic links.
54416 Fix the path-constructing code.
54418 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
54419 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
54420 by a BLKGETSIZE ioctl first, because block devices don't fill
54421 the member st_mode of the structure stat on Linux.
54422 [__linux__] (linux_find_partition): Use a temporary buffer
54423 REAL_DEV for the working space. Copy it to DEV before returning.
54424 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
54425 buffer cache consistent.
54426 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
54427 strncmp. The previous value was merely wrong.
54428 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
54430 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
54431 FAT size is 12. The previous value was merely wrong.
54433 * kern/main.c (pupa_main): Don't split the starting message from
54436 * kern/term.c (pupa_putchar): Put CR after LF instead of before
54437 LF, because BIOS goes crazy about character attributes in this
54440 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54442 * include/i386/pc/util/biosdisk.h: New file.
54443 * util/i386/pc/biosdisk.c: Likewise.
54444 * util/i386/pc/pupa-setup.c: Likewise.
54446 * Makefile.in (INCLUDE_DISTFILES): Added
54447 include/pupa/i386/pc/util/biosdisk.h.
54448 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
54449 directory util/i386/pc.
54450 (install-local): Added a rule for sbin_UTILITIES.
54451 (uninstall): Likewise.
54453 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
54455 * util/misc.c (xrealloc): New function.
54456 (pupa_malloc): Likewise.
54457 (pupa_free): Likewise.
54458 (pupa_realloc): Likewise.
54459 (pupa_stop): Likewise.
54460 (pupa_putchar): Likewise.
54462 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
54464 * include/pupa/util/misc.h (xrealloc): Declared.
54466 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
54468 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
54469 (PUPA_BOOT_MACHINE_BPB_END): ... this.
54471 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
54472 [PUPA_UTIL] (pupa_fat_fini): Likewise.
54474 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
54475 way should be implemented.
54476 [PUPA_UTIL] (pupa_fat_fini): Likewise.
54478 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
54479 the size of NAME for safety.
54480 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
54483 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
54484 (pupa_setup_SOURCES): Likewise.
54486 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
54488 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
54490 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
54491 bunch of pushl's from pusha, because this destroys the return
54494 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
54496 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
54497 This means that any missing prototypes could be fatal. Also, you
54498 must take care when writing assembly code. See the comments at
54499 the beginning of startup.S, for more details.
54501 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
54502 compilation mechanism.
54503 (pupa_chainloader_real_boot): Likewise.
54504 (pupa_biosdisk_rw_int13_extensions): Likewise.
54505 (pupa_biosdisk_rw_standard): Likewise.
54506 (pupa_biosdisk_check_int13_extensions): Likewise.
54507 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
54508 (pupa_biosdisk_get_diskinfo_standard): Likewise.
54509 (pupa_get_memsize): Likewise.
54510 (pupa_get_mmap_entry): Likewise.
54511 (pupa_console_putchar): Likewise.
54512 (pupa_console_setcursor): Likewise.
54513 (pupa_getrtsecs): Use pushl instead of push.
54515 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
54516 memory instead of the stack for a mmap entry, because some
54517 BIOSes may ignore the maximum size and overflow.
54519 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
54521 * genmk.rb (PModule#rule): Compile automatically generated
54522 sources with module-specific CFLAGS as well as other sources.
54524 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54526 * configure.ac: Check ld.
54527 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
54528 respectively, before checking endianness and sizes.
54530 * Makefile.in (LD): New variable.
54532 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54534 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
54536 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54538 * Changelog: New file.