1 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
3 * docs/grub-dev.texi (Finding your way around): The build system no
4 longer uses AutoGen directly.
6 2014-06-21 Роман Пехов <roman_pekhov>
8 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
10 2014-06-21 Glenn Washburn <development@efficientek.com>
12 * util/grub-install.c: Fix handling of --disk-module.
14 2014-06-21 Stephane Rochoy <sheda>
16 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
19 2014-06-21 Stephane Rochoy <sheda>
21 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
22 EFI system table physical address.
24 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
26 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
28 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
30 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
32 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
34 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
37 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
39 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
41 Reported by: Yves Blusseau <blusseau@zetam.org>.
43 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
45 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
46 GDT in conventional memory.
48 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
50 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
51 UUID. Other parts of grub-mkconfig tolerate these, they were
52 previously allowed here up to commit
53 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
54 practice when the system has active LVM snapshots.
55 Fixes Ubuntu bug #1287436.
57 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
59 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
60 "logical_volumes" block a little more accurately.
62 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
64 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
66 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
68 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
71 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
73 Replace few instances of memcmp/memcpy in the code that should be
74 grub_memcmp/grub_memcpy.
76 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
78 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
81 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
83 btrfs: fix get_root key comparison failures due to endianness
85 * grub-core/fs/btrfs.c (get_root): Convert
86 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
88 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
90 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
92 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
93 no longer to be forgiving of trailing spaces on grub-probe output
94 lines, which among other things means that util/grub.d/10_linux.in
95 no longer detects LVM. To fix this, make grub-probe's output
96 delimiting more consistent. As a bonus, this improves the coverage
99 Fixes Debian bug #735935.
101 * grub-core/disk/cryptodisk.c
102 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
103 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
105 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
107 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
108 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
109 probe_mods): Adjust for extra user-data arguments.
110 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
111 probe_abstraction): Use configured delimiter. Update callers.
113 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
115 * util/grub-probe,c (options): Make -0 work again (broken by
117 (main): Simplify logic.
119 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
121 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
123 2014-03-26 Fu Wei <fu.wei@linaro.org>
125 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
127 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
129 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
130 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
132 Suggested by: Markus Müller.
134 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
136 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
137 if E820 failed to return any regions.
139 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
141 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
142 tables for low memory calculations.
144 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
146 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
149 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
151 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
154 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
156 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
159 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
161 Add bootpath parser for open firmware.
163 It enables net boot even when there is no bootp/dhcp server.
165 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
166 and call it at grub_ieee1275_net_config_real.
167 * grub-core/kern/ieee1275/init.c: Add bootpath to
168 grub_ieee1275_net_config.
169 * include/grub/ieee1275/ieee1275.h: Likewise.
172 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
174 Add grub_env_set_net_property function.
176 * grub-core/net/bootp.c: Remove set_env_limn_ro.
177 * grub-core/net/net.c: Add grub_env_set_net_property.
178 * include/grub/net.h: Likewise.
180 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
182 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
184 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
186 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
188 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
190 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
191 7 seconds to recover if last poweroff was bad.
193 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
195 * grub-core/disk/ahci.c: Properly handle transactions with no
198 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
200 * grub-core/disk/ahci.c: Add safety cleanups.
202 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
204 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
205 slots to avoid pointing to uninited area.
207 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
209 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
210 enabling busmaster for the end.
212 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
214 * util/grub-mkfont.c: Downgrade warnings about unhandled features
217 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
219 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
221 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
223 * .gitignore: add missing files and .exe variants.
225 2014-01-26 Mike Gilbert <floppym@gentoo.org>
227 grub-install: support for partitioned partx loop devices.
229 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
230 /dev/loopX as being the parent of /dev/loopXpY.
232 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
234 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
235 Ensure that pointers are inited to NULL and that pointers are not
238 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
240 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
241 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
242 * include/grub/emu/misc.h: ... and here.
243 * include/grub/err.h: ... and here.
244 * util/import_gcry.py: ... and here (in files g10lib.h).
246 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
248 * util/grub-mkimage.c: Make prefix argument mandatory.
250 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
252 Fix several translatable strings.
254 Suggested by: D. Prévot.
256 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
258 * util/grub-install.c: List available targets.
260 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
262 * util/grub-install.c (write_to_disk): Add an info message.
264 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
266 * Makefile.am: Allow adding extra files to generated Windows ZIP
267 archive by setting GRUB_WINDOWS_EXTRA_DIST.
269 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
271 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
272 Show detected font path in summary.
274 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
276 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
278 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
279 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
280 * grub-core/net/tftp.c (tftp_open): Likewise.
281 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
283 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
285 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
288 In net/net.c there is a while (1) that only exits if there is a stop
289 condition and more then 10 packages or if there is no package received.
291 If GRUB is idle and enter in this loop, the only condition to leave is
292 if it doesn't have incoming packages. In a network with heavy traffic
295 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
297 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
298 EPERM when modifying kern.geom.debugflags. It is only a problem for
299 such things as installing GRUB to the MBR, in which case there'll be
300 an error later anyway, not for opening files during tests.
302 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
304 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
305 instead of MOD_FILES.
306 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
307 both with and without .exe.
308 * grub-core/genemuinitheader.sh: Same.
310 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
312 * util/grub-install.c: Fix a typo.
314 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
316 * grub-core/normal/main.c (read_config_file): Buffer config file.
319 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
321 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
322 symbolic link to directory. It fails in Msys shell on Windows 2003.
324 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
326 * Makefile.am (default_payload.elf): Add modules
327 multiboot cbmemc linux16 gzio echo help.
329 2014-01-18 Mike Gilbert <floppym@gentoo.org>
331 * Makefile.util.def: Link grub-ofpathname with zfs libs.
333 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
335 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
338 Reported by: Andrey Borzenkov.
340 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
342 * include/grub/misc.h: Move macros for compiler features to ...
343 * include/grub/compiler.h: ... new file.
344 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
345 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
346 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
347 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
348 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
349 * grub-core/video/capture.c: Include <grub/misc.h>.
350 * include/grub/command.h: Include <grub/misc.h>.
351 * include/grub/dl.h: Include <grub/misc.h>.
352 * include/grub/procfs.h: Include <grub/misc.h>.
354 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
356 * configure.ac: Add support for BUILD_EXEEXT and use it ...
357 * Makefile.am: ... here.
358 * Makefile.util.def: ... and here.
359 * grub-core/Makefile.am: ... and here.
361 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
363 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
364 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
366 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
368 * grub-core/term/terminfo.c: Recognize keys F1-F12.
370 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
372 * configure.ac: Add support for BUILD_LDFLAGS.
373 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
374 * grub-core/Makefile.am: ... and here.
375 * INSTALL: Mention BUILD_LDFLAGS.
377 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
379 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
381 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
383 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
386 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
388 * NEWS: Add few missing entries.
390 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
392 * util/grub.d/00_header.in (make_timeout): Use && rather than test
394 * util/grub.d/10_windows.in: Likewise.
395 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
397 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
400 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
402 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
403 redundant preprocessor conditional.
405 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
407 * Makefile.util.def (grub-macbless): Change mansection to 8.
409 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
411 * grub-core/loader/arm64/linux.c: correctly set device path end length.
413 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
415 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
416 arm64 to comply with EFI specification. Also use grubaa64.efi for
418 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
420 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
422 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
423 on MinGW-64 when compiling for 32 bits.
425 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
427 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
429 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
431 * NEWS: Add few missing entries. Correct existing ones.
433 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
435 Don't abort() on unavailable coreboot tables if not running on coreboot.
437 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
439 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
442 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
444 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
445 mention of it from 2.02.
447 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
449 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
451 As these functions are used on pre-ARMv6 CPUs as well we don't want
452 to make assembler assume that architecture is higher than default one.
454 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
456 * NEWS: First draft of 2.02 entry.
458 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
460 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
461 * docs/grub.texi (Getting the source code): Likewise.
463 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
465 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
468 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
470 * configure.ac: Set version to 2.02~beta2.
472 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
474 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
476 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
478 * util/grub-probe.c: Improve help message and simplify list handling.
480 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
482 Fix buffer overflow in grub_efi_print_device_path.
484 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
486 Show SATA device path.
488 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
490 Revert grub-file usage in grub-mkconfig.
492 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
494 Make newly-created files other than grub.cfg world-readable.
496 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
498 * util/grub.d/00_header.in: Improve compatibility with old config.
500 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
502 Make rijndael.c respect aliasing rules.
504 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
506 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
508 Make grub_util_device_is_mapped_stat available in grub-emu core.
510 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
512 Add -Qn to TARGET_CFLAGS if it's supported.
513 Fixes compilation on cygwin.
515 Reported by: Andrey Borzenkov.
516 Suggested by: Andrey Borzenkov.
518 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
520 Save TARGET_CC version in modinfo.sh.
522 Suggested by: Andrey Borzenkov.
524 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
526 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
527 follow the same algorithm to avoid method mismatch. Don't assume
528 DMRAID- UUID to mean full disk but instead check that mapping is linear.
530 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
532 Declare GRUB_EFI_VENDOR_APPLE_GUID.
534 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
536 Dump type and vendor specific data when printing device path.
538 2013-12-23 Colin Watson <cjwatson@debian.org>
540 Update some documentation to refer to Git rather than Bazaar.
542 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
544 * po/README: Likewise. Fix spelling mistake.
546 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
548 Don't distribute config.h.
550 * Makefile.am (platform_HEADERS): Move to ...
551 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
552 failure when building from a distributed tarball.
554 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
556 * configure.ac: Fix spelling.
557 * grub-core/commands/parttool.c: Fix grammar.
558 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
559 Embedding Partition".
561 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
563 ARM64 support for grub-mkrescue.
565 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
567 Install modinfo.sh to keep build information around.
569 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
571 * grub-core/modinfo.sh.in: Add build config information.
573 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
575 ARM64 grub-file and grub-mkconfig support.
577 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
579 Remove leftover options defines.
581 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
583 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
585 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
587 * grub-core/loader/arm64/linux.c: Add missing bracket.
589 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
591 Add arm64-efi recognition to grub-file.
593 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
595 Fix ia64-efi recognition in grub-file.
597 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
599 Recognize raspberry pi kernel in grub-file.
601 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
603 Enable cache on ARM U-Boot port.
605 Without it the port is reidiculously slow.
607 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
609 Fix ARM cache maintainance.
611 More code was converted from ASM to C for easier handling.
613 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
615 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
618 Suggested by: Leif Lindholm.
620 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
622 * util/grub-mkconfig.in: Fix Xen platform conditions.
624 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
626 * util/grub-mkrescue.c: Split single help message string in several
627 strings used in previous shell version.
629 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
631 Add arm64 Linux loader.
633 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
635 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
637 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
639 Add module loading and parsing boot time checkpoints.
641 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
643 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
646 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
648 * util/grub-mkconfig.in: Skip non-executable files.
650 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
652 Workaround buggy timer in raspberry pie by using our own timer
655 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
657 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
658 Increase to 16 MiB to allow loading the whole memdisk.
660 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
662 Fix ARM Linux Loader on non-FDT platforms.
664 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
666 * configure.ac: Choose link format based on host_os on emu.
668 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
670 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
672 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
674 * grub-core/kern/emu/main.c: Build fix for emu.
676 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
678 Build fixes for argp.h with older gcc.
680 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
682 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
685 Suggested by: David Prévot.
687 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
689 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
691 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
693 Enable -Wformat=2 if it's supported.
695 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
697 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
698 -Wmissing-declarations if supported.
700 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
702 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
703 u32 as both HFS and HFS+ have 32-bit inodes.
705 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
707 * include/grub/misc.h (grub_strtol): Fix overflow.
709 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
711 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
712 as return type in both conditionals.
714 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
716 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
717 to use uint8_t for color.
719 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
721 * util/misc.c (grub_util_get_image_size): Check for overflow.
723 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
725 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
728 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
730 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
731 for pointer difference.
733 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
735 * util/import_gcry.py: Skip sample keys.
737 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
739 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
741 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
743 * configure.ac: Remove duplicate warning arguments.
745 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
747 Add missing static qualifiers.
749 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
751 Add missing includes.
753 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
755 Inline printf templates when possible to enable format checking.
757 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
759 * include/grub/crypto.h: Don't discard const attribute.
761 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
763 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
766 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
768 * grub-core/lib/crypto.c: Don't discard const attribute.
770 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
772 * grub-core/lib/disk.c: Fix potential overflow.
774 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
776 * grub-core/lib/arg.c: Don't discard const attribute.
778 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
780 * grub-core/kern/dl.c: Don't discard const attribute.
782 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
784 * grub-core/kern/disk.c: Fix potential overflow.
786 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
788 * conf/Makefile.common: Don't include non-existing directory
789 grub-core/lib/libgcrypt-grub/include.
791 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
793 Clarify several translatable messages.
795 2013-12-21 David Prévot <david@tilapin.org>
797 Correct some translatable strings.
799 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
801 * util/grub-mkrescue.c: Rephrase mkrescue description.
803 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
804 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
806 Clarify several translatable messages.
808 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
810 Be more verbose about some configure failures.
812 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
814 Fix various build problems on GNU/Hurd.
816 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
819 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
820 [__GNU__]: Add prototype.
821 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
822 long int using %ld rather than %d.
824 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
826 * util/grub-install.c: Inform user about install platform.
828 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
830 * configure.ac: Set version to 2.02~beta1.
832 2013-12-18 Allen Pais <allen.pais@oracle.com>
833 2013-12-18 Bob Picco <bob.picco@oracle.com>
835 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
837 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
839 Make grub_zlib_decompress handle incomplete chunks.
843 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
845 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
848 2013-12-18 Aleš Nesrsta <starous@volny.cz>
850 * grub-core/disk/usbms.c: Retry on unknown errors.
851 Reuse the same tag on retries.
853 2013-12-18 Aleš Nesrsta <starous@volny.cz>
855 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
857 Avoid confusing them with already completed transfers.
859 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
863 Due to XEN bug it prevents Linux boot. Remove it at least, until
866 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
868 * po/exclude.pot: Add 2 missing excludes.
870 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
872 Add missing license section in macbless.mod and macho.mod.
874 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
876 Allow compilation without thumb-interwork as long as no thumb is
877 involved or only thumb2 is used.
879 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
881 Use -Wl,--no-relax rather than -mno-relax for uniformity.
883 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
885 * INSTALL: Update comment as to why sparc64 clang isn't usable.
887 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
889 Add __attribute__ ((sysv_abi)) only if it's really needed.
891 Some compilers don't support it.
893 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
895 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
897 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
899 Remove -Wold-style-definition.
901 Not very useful and interaction of it with regexp depends on GCC
904 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
906 Make grub_util_get_windows_path_real static.
908 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
910 * grub-core/commands/fileXX.c: Silence cast-align.
911 * grub-core/loader/i386/xen_fileXX.c: Likewise.
913 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
915 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
916 rather than LL suffix.
918 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
920 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
922 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
924 * grub-core/loader/arm/linux.c: Use common initrd functions.
926 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
928 Decrease number of strings to translate.
930 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
932 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
934 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
936 Mark strings for translation and add remaining ones to exclude list.
938 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
940 * util/grub-file.c (main): Fix sizeof usage.
942 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
944 Silence spurious warning.
946 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
948 Remove check_nt_hiberfil as it's been superseeded by file command.
950 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
952 * docs/osdetect.cfg: Add isolinux config to detected OSes.
954 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
956 Implement syslinux parser.
958 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
960 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
962 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
966 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
968 Use AT keyboard on Yeeloong 3A.
970 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
972 Add Yeeloong 3A reboot and halt.
974 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
976 Add Radeon Yeeloong 3A support.
978 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
980 Add bonito 3A support.
982 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
984 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
986 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
988 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
990 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
992 * grub-core/loader/macho.c: Fix compilation on non-i386.
994 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
996 Add missing format_arg attribute to check that printf with translated
997 messages has proper arguments.
999 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1001 Use grub_xasprintf to format translated error messages containing
1004 2013-12-17 Jon McCune <jonmccune@google.com>
1006 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1008 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1010 Unify message for unsupported relocation.
1012 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1014 Mark miscompile error for translation.
1016 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1018 Use %I64 and not %ll when using OS printf if compiling for windows.
1020 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1022 Update Mac code to match new register_efi prototype.
1024 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1026 Implement better integration with Mac firmware.
1028 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1030 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1033 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1035 Include serial module in default_payload.elf.
1037 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1039 Add explicit thumb interwork bx in asm files.
1041 Shouldn't matter for armv >= 5 but let's be safe.
1043 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1045 Implement Truecrypt ISO loader.
1047 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1049 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1051 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1053 Implement grub_file tool and use it to implement generating of config
1056 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1058 Change to v1 xen grants.
1060 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1062 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1064 GRUB relied on %ebx being preserved across hypercall which isn't true.
1066 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1068 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1070 GRUB relied on %rdi being preserved across hypercall which isn't true.
1072 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1074 Implement XEN VFB support.
1076 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1078 Remove grub_bios_interrupt on coreboot.
1080 It's not used currently and cannot be used safely currently.
1082 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1084 Update exclude.pot and mark few strings for translation.
1086 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1088 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1090 Reported by: Jon McCune
1092 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1094 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1095 Add verbose information which firmware directories were tried.
1097 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1099 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1100 function to optionally redirect all three standard descriptors.
1101 Redefine grub_util_exec, grub_util_exec_redirect and
1102 grub_util_exec_redirect_null to use it.
1103 * include/grub/emu/exec.h: Define it.
1104 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1105 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1106 Use grub_util_exec_redirect_all to redirect error to NULL.
1108 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1110 * grub-core/tests/sleep_test.c: Silence spurious warning.
1112 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1114 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1115 linker trying to "fixup" the code.
1117 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1119 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1121 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1123 Add support for converting PE+ to Elf64.
1125 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1127 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1129 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1131 Remove practice of assigning random const pointers to device id.
1133 This is not required as cache code already checks driver id as well.
1135 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1137 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1140 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1142 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1143 mingw or cygwin as API already matches.
1145 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1147 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1149 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1151 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1154 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1156 Handle X86_64_PC64 relocation.
1158 Those are generated by some cygwin compilers.
1160 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1162 Determine the need for mingw-related stubs at compile time rather than
1163 using not very significant $target_os.
1165 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1167 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1168 may not work with ELF.
1170 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1172 Use unix functions for temporary files and special files on cygwin.
1174 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1176 Define functions explicitly rather than using --defsym in tests
1177 whenever possible. Respect locality in remaining cases.
1179 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1181 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1183 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1185 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1186 unlikely errors when getting EFI variables and make exhaustive search
1187 for all BootNNNN variables to find matching one.
1189 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1191 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1193 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1195 New functional test for sleep function.
1197 This test allows to check sleep without qemu. Keep qemu version as
1198 well as functional test won't notice if all clocks are going too fast
1201 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1203 Add explicit sysv_abi on amd64 asm routines.
1205 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1207 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1210 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1212 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1215 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1217 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1220 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1222 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1224 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1226 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1229 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1231 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1233 In case of quick removal of loopback and adding another one it may
1234 get same ID, confusing the cache system.
1236 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1238 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1241 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1243 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1244 than converting to long.
1246 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1248 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1250 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1252 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1253 than almost useless pointer.
1255 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1257 Add gcc_struct to all packed structures when compiling with mingw.
1259 Just "packed" doesn't always pack the way we expect.
1261 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1263 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1265 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1267 * util/grub-pe2elf.c: Fix handling of .bss.
1269 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1271 Implement windows flavour of EFI install routines.
1273 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1275 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1277 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1279 Change grub_install_register_efi interface to pass GRUB device.
1281 This allows grub_install_register_efi to request partition info
1284 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1286 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1288 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1290 Do not use TCHAR string functions as they are not available on cygwin.
1292 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1294 Workaround windows bug when querying EFI system partition parameters.
1296 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1298 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1301 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1303 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1305 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1307 Make i386-* other than i386-pc compileable under cygwin.
1309 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1311 Fix definition of grub_efi_hard_drive_device_path. Take care that
1312 existing code would work even if by some reason bogus definition is
1313 used by EFI implementations.
1315 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1317 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1319 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1321 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1324 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1326 * util/config.c: Remove trailing newline from distributor in simple
1329 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1331 * include/grub/efi/api.h: Rename protocol and interface to avoid
1334 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1336 * .gitignore: add .exe variants. add missing files. remove few outdated
1339 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1341 * grub-core/osdep/exec.c: Use unix version on cygwin.
1343 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1345 Implement multiboot2 EFI BS specification.
1347 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1349 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1350 Crash happened only in some cases like a string starting at the
1351 half of the screen of same length.
1353 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1355 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1356 with EFI counterpart.
1358 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1360 Propagate the EFI commits to x86-efi specific parts.
1362 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1364 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1366 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1368 Introduce grub_efi_packed_guid and use it where alignment is not
1371 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1373 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1374 unaligned u16 rather than u8[2].
1376 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1378 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1379 for relocation range.
1381 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1383 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1384 non-function pcrel21b relocation. It happens with .text.unlikely
1387 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1389 * make MAX_USABLE_ADDRESS platform-specific
1390 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1392 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1394 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1396 2013-12-09 Jon McCune <jonmccune@google.com>
1398 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1399 in grub-install and grub-bios-setup for x86 BIOS targets.
1401 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1403 Add missing compile and link options for sparc64-emu.
1405 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1407 Implement sparc64 trampolines (needed for sparc64-emu).
1409 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1411 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1412 range of R_SPARC_HI22.
1413 Implement R_SPARC_LM22.
1415 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1417 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1418 Do not explicitly check for symbol table as it's already checked in
1419 platform-independent layer.
1421 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1423 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1424 on ia64 as __clear_cache is a dummy on ia64.
1426 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1428 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1429 Do not explicitly check for symbol table as it's already checked in
1430 platform-independent layer.
1432 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1434 * util/grub-mkconfig.in: Add missing newline to output.
1436 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1438 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1439 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1441 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1443 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1444 compilation with GCC <= 4.2.
1445 * grub-core/kern/emu/argp_common.c: Likewise.
1447 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1449 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1450 right platform rather than leaking to sparc64-emu.
1452 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1454 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1455 But ensure that the variables in question are indeed unsigned.
1457 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1459 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1461 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1463 Remove grub_memalign on emu.
1465 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1467 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1468 truncate incomplete lines but instead flushes them.
1470 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1472 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1473 and implement windows variant.
1475 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1477 Fix mips-emu compilation.
1479 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1481 * configure.ac: Check for freetype library usability.
1483 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1487 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1489 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1491 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1493 * docs/grub.texi (Environment): Update color_normal and color_highlight
1494 defaults (light-gray instead of white).
1496 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1498 * grub-core/normal/main.c (INIT): Set default color to light-gray
1499 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1500 and apparently BIOS defaults.
1502 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1504 Transform -C option to grub-mkstandalone to --core-compress available
1505 in all grub-install flavours.
1507 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1509 Merge GRUBFS and GRUB_FS variables.
1511 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1513 Revert commit 69ca97c820, it caused failures when using OS device name
1514 in grub-install. Instead just strip off parenthesis in grub-install
1515 if (hdX) was passed.
1517 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1519 * util/grub-install.c (push_partmap_module): Add helper to convert
1520 partmap names to module names and use it in probe_mods(). Fixes
1521 failure to find partmap modules in diskfilter case.
1523 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1525 * configure.ac: Make unifont mandatory on coreboot.
1527 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1529 * configure.ac: Skip unifont 6.3 pcf and bdf.
1531 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1533 * Makefile.am: Remove partial font files if generation failed.
1535 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1537 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1539 * include/grub/util/misc.h: Define it ...
1540 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1542 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1544 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1547 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1549 Don't add -mlong-calls when compiling with clang.
1551 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1553 * configure.ac: Fix a typo.
1555 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1557 Revamp relocation handling.
1559 Move more code to common dl.c. Add missing veneers for arm and arm64.
1560 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1562 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1564 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1566 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1568 * INSTALL: Raise minimum python version to 2.6.
1569 * gentpl.py: Use python3-style print function.
1571 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1573 * util/grub-install.c: Mention Boot* variable.
1575 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1577 * grub-core/osdep/linux/hostdisk.c
1578 (grub_util_find_partition_start_os): Initialise start to avoid
1579 spurious compiler warning.
1581 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1583 On Linux, read partition start offsets from sysfs if possible, to
1584 cope with block device drivers that don't implement HDIO_GETGEO.
1585 Fixes Ubuntu bug #1237519.
1587 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1589 (sysfs_partition_start): Likewise.
1590 (grub_util_find_partition_start_os): Try sysfs_partition_start
1593 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1595 * grub-core/kern/fdt.c: Update struct size when adding node.
1597 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1599 Handle unaligned .bss on sparc64.
1601 Current code improperly assumes that both __bss_start and _end are
1602 aligned to 8-bytes. Eliminating this assumption and explicitly align
1605 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1607 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1608 so it doesn't land in the middle of loaded image.
1610 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1612 * configure.ac: Move all warning options that may be absent in
1613 gcc >= 3.1 to optional.
1615 Note: while this allows to compile with older GCC, official requirements
1616 remain the same and no support for older GCC.
1618 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1620 Copying the themes directory in grub-shell isn't
1621 parallel-test-friendly and breaks on the second test when the source
1622 directory is read-only (as in "make distcheck"). Instead, add a
1623 hidden --themes-directory option to grub-mkrescue et al, and use it
1626 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1628 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1629 as it's no longer necessarry.
1631 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1633 * configure.ac: Allow compilation with older GCC for ARM.
1635 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1637 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1638 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1641 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1643 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1645 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1647 Pass font config to config.h and not by TARGET_CFLAGS as adding
1648 arguments doesn't work if TARGET_CFLAGS is specified on command
1651 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1653 * configure.ac: Add -Wvla if compiler supports it.
1655 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1657 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1658 Remove variable length arrays.
1659 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1661 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1663 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1665 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1667 * include/grub/types.h: Declare all byteswaps as inline functions
1668 except compile-time ones.
1670 Solves variable shadowing in constructions like
1671 cpu_to_le (le_to_cpu(x) + 1).
1673 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1675 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1677 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1679 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1682 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1684 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1685 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1687 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1689 * grub-core/Makefile.core.def (setjmp): Distribute
1692 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1694 Add a new timeout_style environment variable and a corresponding
1695 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1696 controls hidden-timeout handling more simply than the previous
1697 arrangements, and pressing any hotkeys associated with menu entries
1698 during the hidden timeout will now boot the corresponding menu entry
1701 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1702 generates a warning, and if it shows the menu it will do so as if
1703 the second timeout were not present. Other combinations are
1704 translated into reasonable equivalents.
1706 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1708 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1710 * util/config.c: Add missing pointer adjustment.
1711 Reported by: qwertial
1713 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1715 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1716 directly, not via `cpu' link, to fix libgrub.pp generation.
1718 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1722 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1724 * docs/grub.texi (sleep): Document exit codes.
1726 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1728 Ensure that -mno-unaligned-access or some equivalent option is used.
1730 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1732 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1735 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1737 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1739 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1741 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1742 builds, since we don't have an EPS version of font_char_metrics.png.
1743 Add leading dot to image extension per the Texinfo documentation.
1745 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1747 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1748 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1749 * util/grub-gen-widthspec.c: Likewise.
1750 * util/grub-mkfont.c: Likewise.
1752 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1754 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1755 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1756 failed to install on (hdX).
1757 * util/grub-setup.c (get_device_name): Remove, not needed after
1760 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1762 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1764 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1766 * util/grub-fstest.c: Remove variable length arrays.
1768 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1770 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1772 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1774 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1775 computing crc32 rather than handling with md fundtions directly.
1777 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1779 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1780 checking fwstart.img rather than md fundtions directly.
1782 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1784 * util/grub-mkrescue.c (main): Check that fread succeeded.
1786 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1788 * conf/Makefile.common: Remove -mexplicit-relocs and
1789 -DUSE_ASCII_FALLBACK on yeeloong.
1791 -DUSE_ASCII_FALLBACK is already added by font snippets.
1792 -mexplicit-relocs isn't needed is compiler/assemblera are
1793 configured properly.
1794 If they're not we shouldn't attempt to fix it by ourselves.
1795 Binary compare between before and after shows no difference.
1797 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1799 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1800 sources in dependencies directly.
1802 This was the only instance of "library" in core config. A bug was
1803 reported that -fno-stack-protector wasn't passed to it. Instead of
1804 figuring out why it failed just remove this construction used
1807 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1809 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1812 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1814 * docs/grub.texi (ls): Fix command description in case of a device name
1817 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1819 Eliminate variable length arrays in grub_vsnprintf_real.
1821 A bit tricky because this function has to continue to work without
1822 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1823 but make all stack references use 32-bit offset rather than 8-bit one.
1824 So split va_args preparsing to separate function and put the prealloc
1827 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1829 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1830 Fixes build for windows.
1832 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1834 * gentpl.py: Don't generate platform-dependent conditionals for
1835 platform-independent targets.
1837 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1839 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1840 references to mdadm from otherwise generic code.
1841 (grub_util_exec_pipe): Likewise.
1842 (grub_util_exec_pipe_stderr): Likewise.
1843 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1844 This function calls vgs, not mdadm; adjust variable names
1847 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1849 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1850 of Autogen. The Autogen definitions files remain intact as they
1851 offer a useful abstraction.
1853 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1855 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1856 into no-ops, and use it in programs that copy files but do not need
1857 to take special care to sync writes (grub-mknetdir, grub-rescue,
1860 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
1862 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1863 than hardcoding /usr/local/bin/xorriso.
1865 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1867 Add PCI command activation to all PCI drivers as required for coreboot
1868 and maybe some other firmwares.
1870 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1872 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1873 and non-Apple variants of efiemu compile.
1875 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1877 * configure.ac: Add explicit check for linking format of
1878 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1879 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1880 hardcoding linking format.
1882 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1884 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1887 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
1888 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1890 Add a --locale-directory option to grub-install and related tools.
1892 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1893 --locale-directory option.
1894 (enum grub_install_options): Add
1895 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1896 * util/grub-install-common.c (grub_install_help_filter): Handle
1897 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1898 (grub_install_parse): Likewise.
1899 (get_localedir): New function to check for a user-provided option
1900 before trying grub_util_get_localedir.
1901 (copy_locales): Use get_localedir rather than
1902 grub_util_get_localedir. Handle differing locale directory layouts.
1903 (grub_install_copy_files): Likewise.
1905 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1907 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1908 Don't rely on PATH_MAX.
1910 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1912 * grub-core/genmoddep.awk: Use more portable && rather than and.
1914 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1916 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
1917 an object after data. While it doesn't seem right solution, it
1918 works well enough and OSX isn't main compilation platform.
1920 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1922 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
1923 While it doesn't seem right solution, it works well enough and
1924 OSX isn't main compilation platform.
1926 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1928 * configure.ac: Add -static to LDFLAGS when using apple linker to
1929 prevent it from pulling in dynamic linker.
1931 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1933 Apple assembly doesn't handle symbol arithmetic well. So define an
1934 offset symbol in boot.S and use it.
1936 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1938 Apple assembly doesn't handle symbol arithmetic well. So instead
1939 of getting addres of kernel_sector + 4 define kernel_sector_high.
1940 It also makes code more readable.
1942 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1944 With Apple assembly in .macro environvemnt you have to use $$ instead
1945 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
1946 to $$x on Apple and to $x on everything else.
1948 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1950 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
1953 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1955 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
1956 and non-Apple. This instruction is shorter and faster,
1957 so no reason not to use it on both.
1959 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1961 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
1962 .text when compiling for Apple.
1964 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1966 * grub-core/term/arc/console.c: Add missing cast to silence warning.
1968 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1970 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
1971 %dx restore the probe worked on non-existant drive. Reorganize the
1972 code a little bit to free 2 bytes necessary for push/pop.
1974 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1976 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
1977 Add missing cast to silence warning.
1979 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
1981 * util/grub-install.c (update_nvram): Support --no-nvram flag
1984 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1986 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
1988 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1990 * util/garbage-gen.c: Add missing include of sys/time.h.
1992 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1994 Don't add -mflush-func if it's not supported by compiler.
1996 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1998 Move common BIOS/coreboot memory map declarations to
1999 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2001 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2003 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2005 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2007 * INSTALL: Document why older clang versions aren't appropriate.
2009 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2011 * INSTALL: Document about clang for mips.
2013 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2015 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2018 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2020 Add *-xen to the list of grub-install-common platforms.
2022 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2024 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2027 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2029 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2031 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2033 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2034 with -mcmodel=large.
2036 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2038 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2039 range-checking for 32-bit quantities.
2041 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2043 * configure.ac: Compile with -fPIC when compiling with clang on
2046 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2048 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2049 when compiling with clang.
2051 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2053 clang emits calls to abort () under some unknown conditions.
2054 Export abort () when compiling with clang.
2056 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2058 * docs/grub-dev.texi: Document stack and heap sizes.
2060 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2062 * include/grub/i386/pc/memory.h: Decrease
2063 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2064 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2065 The binary doesn't change (checked). It's more to better reflect actual
2068 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2070 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2071 at compile time that enough of scratch size is available.
2073 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2075 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2076 Previously we misaligned stack by 8 in startup.S and compensated
2077 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2078 right behaviour is to align stack in startup.S and keep it aligned
2079 in callwrap.S. startup.S part was committed few commits before. This
2080 takes care of callwrap.S.
2081 Reported by: Gary Lin.
2083 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2085 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2086 .data and .bss. May happen if compiler and assembly use different
2089 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2091 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2094 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2096 Add support for a new magic symbol _gp_disp on mips to handle PIC
2099 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2101 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2103 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2105 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2106 when rest of GRUB is compiled for hisher stepping. Instead use
2107 .set mips3/.set mips1 around cache and sync opcodes.
2109 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2111 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2112 do essentially the same thing, do it in similar way.
2114 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2116 * util/grub-mkrescue.c (main): If a source directory is not
2117 specified, read platform-specific files from subdirectories of
2118 pkglibdir, not pkgdatadir.
2120 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2122 * grub-core/normal/progress.c: Remove unused file.
2124 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2126 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2129 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2131 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2134 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2136 * coreboot.cfg: Add missing file.
2138 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2140 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2142 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2144 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2145 selectively skipping systems.
2147 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2149 * Makefile.util.def (grub-mkimage): Add
2150 grub-core/osdep/aros/config.c to extra_dist.
2151 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2152 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2153 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2154 grub-core/gnulib-no-gets.diff.
2156 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2158 Add automated filesystem checking based on scripts I've used now for
2159 quite some time locally. Most of the test require root so they are
2160 skipped when run without necessarry privelegies.
2162 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2164 * util/grub-install.c (main): Adjust info messages to match
2165 installed paths of grub-bios-setup and grub-sparc64-setup.
2167 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2169 * util/grub-install-common.c (copy_locales): Consistently use
2170 grub_util_get_localedir () rather than LOCALEDIR.
2171 (grub_install_copy_files): Likewise.
2173 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2175 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2176 16-byte boundary, as required by the x86-64 ABI, before calling
2177 grub_main. In some cases, GCC emits code that assumes this
2178 alignment, which crashes if not aligned. The EFI firmware is also
2179 entitled to assume that stack alignment without checking.
2181 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2183 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2184 4k page boundaries as expected by firmware rather than 1k
2186 (grub_mmap_malign_and_register): Likewise.
2188 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2190 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2191 fragmentation 512M is enough.
2193 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2195 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2196 pointer to 32K. This is the size of cache element which is the most
2197 common allocation >1K. This way the pointer is always around blocks
2198 of 32K and so we keep performance while decreasing fragmentation.
2200 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2202 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2203 current memory when allocating large chunks. This significantly
2204 decreases memory fragmentation.
2206 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2208 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2210 * tests/lzocompress_test.in: Skip if lzop is not installed.
2211 * tests/xzcompress_test.in: Skip if xz is not installed.
2213 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2215 * util/grub-mkrescue.c (main): Fix typo.
2217 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2219 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2220 clock frequency to 200 MHz,
2222 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2224 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2226 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2228 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2229 Load config file from (cbfsdisk)/etc/grub.cfg.
2231 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2233 * util/grub-install-common.c (grub_install_copy_files): Fix module
2234 destination directory.
2236 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2238 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2239 files have not been built.
2241 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2243 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2244 Handle errors from mkstemp.
2245 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2247 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2249 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2250 on primary master on pseries.
2252 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2254 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2255 already loaded. This saves memory needed for tests,
2257 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2259 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2262 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2264 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2267 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2269 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2270 master since with some combinations of qemu and firmware only primary
2271 IDE channel is available.
2273 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2275 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2276 low-memory platforms where we don't have enough memory for them.
2277 * grub-core/tests/videotest_checksum.c: Likewise.
2279 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2281 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2282 already loaded. This saves memory needed for tests,
2284 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2286 Fix handling of install lists.
2288 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2290 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2292 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2294 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2295 the devices before accessing them.
2297 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2299 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2302 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2304 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2306 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2308 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2309 (grub_file_close): Free file->name.
2311 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2313 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2314 (grub_load_public_key): Likewise.
2315 (grub_verify_signature_real): Likewise.
2316 (grub_cmd_verify_signature): Likewise.
2318 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2320 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2323 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2325 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2326 (grub_longjmp): Restore r31.
2327 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2329 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2331 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2332 modules to be in line with make_image_abs.
2334 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2336 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2338 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2340 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2342 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2344 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2346 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2347 to leave some memory to firmware.
2349 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2351 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2352 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2353 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2356 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2358 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2359 now needs full arguments.
2361 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2363 * util/grub-mkrescue.c (main): Add trailing \n in
2364 .disk_label.contentDetails to be in line with previous shell script.
2366 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2368 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2370 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2372 * util/grub-install-common.c (grub_install_parse): Recognize
2373 --compress=none like shell script did.
2375 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2377 * include/grub/misc.h: Replace check for __sparc64__ with one for
2378 __sparc__ as __sparc64__ isn't actually defined.
2380 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2382 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2383 counterpart of fixing the naming of escc ports.
2385 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2387 * util/grub-install-common.c (platforms): Fix the order of entries and
2388 remove useless field val.
2390 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2392 * util/grub-install.c: Add new option --no-bootsector to skip
2393 installing of bootsector. Accept --grub-setup=/bin/true as
2394 backwards-compatible synonym.
2396 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2398 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2399 order of qsort arguments (number of elements vs. element size).
2401 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2403 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2404 the function of these files exceeds what can be sanely handled in shell
2405 in posix-comaptible way. Also writing it in C extends the functionality
2406 to non-UNIX-like OS and minimal environments.
2408 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2410 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2411 compiling to thumb2.
2412 * grub-core/kern/arm/cache_armv7.S: Likewise.
2413 * grub-core/lib/arm/setjmp.S: Likewise.
2415 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2417 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2418 in grub_uboot_syscall
2420 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2422 Decrease stack usage in lexer.
2424 We have only 92K of stack and using over 4K per frame is wasteful
2426 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2427 as macros so that compiler would remove useless structure on stack.
2428 Better solution would be to fix flex not to put this structure on
2429 the stack but flex is external program.
2431 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2433 Decrease stack usage in signature verification.
2435 We have only 92K of stack and using over 4K per frame is wasteful
2437 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2439 (grub_verify_signature_real): Likewise.
2441 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2443 Decrease stack usage in mdraid 0.9x.
2445 We have only 92K of stack and using over 4K per frame is wasteful
2447 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2450 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2452 Decrease stack usage in BtrFS.
2454 We have only 92K of stack and using over 4K per frame is wasteful
2456 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2459 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2461 Decrease stack usage in JFS.
2463 We have only 92K of stack and using over 4K per frame is wasteful
2465 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2466 stack. Note: this function is recursive.
2467 (grub_jfs_read_inode): Read only part we care about.
2469 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2471 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2474 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2476 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2478 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2480 * docs/grub.texi (Environment): Document cmdpath.
2482 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2484 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2485 Remove "unused" attribute from arguments, they are used.
2487 2013-11-15 Colin Watson <cjwatson@debian.org>
2489 * .gitignore: Only ignore grub-mk* at the top level.
2491 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2493 * util/grub-reboot.in (usage): Fix a typo.
2495 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2497 Replace libgcc version of ctz with our own.
2499 On upcoming arm64 port libgcc ctz* are not usable in standalone
2500 environment. Since we need ctz* for this case and implementation is
2501 in C we may as well use it on all concerned platforms.
2503 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2505 * configure.ac: Probe for linking format rather than guessing it based
2508 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2510 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2511 "1" prior to handoff.
2513 Reported by: M A Young.
2515 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2517 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2520 Reported by: M A Young.
2522 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2524 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2525 compilation on NetBSD.
2527 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2529 * acinclude.m4: Don't add -P on initial nm test.
2531 Note: even though this patch postdates Andrey's it bears 14 Nov as
2532 date due to timezone difference.
2534 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2536 * grub-core/Makefile.core.def (signature_test): Add missing
2539 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2541 * util/grub-install_header: Set localedir here, since this file is
2543 * util/grub-install.in: Remove setting of localedir.
2544 * util/grub-mkrescue.in: Likewise.
2546 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2548 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2550 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2552 * configure.ac: Move nm checks to the end.
2553 Call grub_PROG_NM_WORKS.
2554 * acinclude.m4: New check grub_PROG_NM_WORKS.
2555 Use $TARGET_CFLAGS -c when compiling test binary.
2557 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2559 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2562 2013-11-14 Matthew Garrett <mjg@redhat.com>
2564 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2565 cmdpath to firmware directory.
2567 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2569 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2570 at the start of second iteration.
2572 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2574 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2576 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2578 * Makefile.am (default_payload.elf): New target for easier coreboot
2581 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2583 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2584 clang (not necessarry with -no-integrated-as).
2585 * include/grub/symbol.h [__arm__]: Likewise.
2587 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2589 * configure.ac: Use -no-integrated-as on arm with clang.
2590 * INSTALL: Mention ARM compilation with clang.
2592 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2594 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2597 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2599 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2600 code for indirect block handling.
2602 Saves 185 bytes on compressed image.
2604 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2608 * Makefile.am: Remove build-grub-* in make clean.
2610 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2612 New files to gitignore.
2614 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2615 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2617 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2619 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2621 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2623 * .gitignore: fix rules for .dep* and add *.a post git migration
2625 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2627 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2630 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2632 * grub-core/kern/misc.c: Don't redirect divisions in the
2634 * include/grub/misc.h: Likewise.
2636 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2638 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2639 systems that require checking the return value of write.
2641 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2643 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2644 efibootmgr quiet when --debug is not used, rather than when it is.
2646 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2648 * gentpl.py (define_macro_for_platform_dependencies): Remove
2649 first (and thus unused) of two definitions for this function.
2650 (platform_dependencies): Likewise.
2652 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2654 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2655 functions, we only need to check this for the target, not the host.
2656 * configure.ac (grub_apple_cc): Likewise.
2658 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2660 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2661 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2662 asm to stay in arm even if surrounding is thumb.
2664 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2666 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2667 helper functions are needed for thumb.
2669 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2671 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2672 level / 3 division explicitly unsigned. Saves few bytes.
2674 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2676 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2678 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2680 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2683 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2685 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2686 grub_uboot_boot_data to asm part.
2688 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2690 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2692 (grub_uboot_syscall): Save/restore r9 and align stack.
2694 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2696 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2698 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2700 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2701 occurencies with END.
2703 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2705 * util/grub-editenv.c (help_filter, argp): Document how to delete
2706 the whole environment block.
2707 Reported by Dan Jacobson. Fixes Debian bug #726265.
2709 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2711 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2714 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2716 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2717 increment/decrement.
2719 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2721 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2722 compiling with clang.
2724 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2726 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2729 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2731 Redirect all divisions to grub_divmod64.
2733 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2735 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2737 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2739 Add missing includes of loader.h.
2741 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2743 * configure.ac: Allow disabling themes.
2745 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2747 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2749 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2751 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2752 until it becomes operational.
2754 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2756 * grub-core/Makefile.core.def (legacy_password_test): Disable
2757 on platforms where no legacycfg is compiled.
2758 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2759 load legacy_password_test.
2761 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2763 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2765 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2767 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2769 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2771 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2772 strict-aliasing warning.
2773 (fsync): Silence cast warning.
2775 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2777 * grub-core/commands/verify.c: Remove variable length arrays.
2778 Load gcry_dsa/gcry_rsa automatically.
2780 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2782 * grub-core/tests/signature_test.c: New test.
2784 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2786 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2789 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2791 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2792 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2794 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2796 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2798 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2800 * grub-core/fs/proc.c: Allow \0 in proc files.
2802 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2804 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2806 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2808 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2810 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2812 * grub-core/fs/ext2.c: Remove variable length arrays.
2814 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2816 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2819 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2821 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2822 * grub-core/disk/cryptodisk.c: Likewise.
2823 * grub-core/disk/geli.c: Likewise.
2824 * grub-core/disk/luks.c: Likewise.
2826 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2828 * grub-core/tests/legacy_password_test.c: New test.
2829 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2831 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2833 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2835 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2837 * grub-core/tests/pbkdf2_test.c: New test.
2839 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2841 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2843 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2845 * grub-core/io/lzopio.c: Remove variable length arrays.
2847 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2849 * include/grub/crypto.h: Add maximums on hash size and cipher block
2852 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2854 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2856 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2858 * grub-core/tests/xnu_uuid_test.c: New test.
2860 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2862 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2865 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2867 * grub-core/commands/hashsum.c: Remove variable length arrays.
2869 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2871 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2873 * tests/grub_func_test.in: Increase memory allocation.
2875 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2877 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2878 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2881 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2883 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2884 (grub_util_get_fd_size_os): ...this.
2885 (grub_hostdisk_flush_initial_buffer): New empty function.
2887 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2889 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2890 without --defined-only.
2892 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2894 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2895 rip-relative addressing in prologue.
2897 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2899 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2900 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2902 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2904 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2905 Add missing semicolon.
2907 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2909 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2911 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2913 * configure.ac: Check for lzma.h for enabling liblzma and allow
2916 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2918 Add missing includes of loader.h.
2920 2013-11-11 Fam Zheng <famcool@gmail.com>
2922 * util/grub.d/30_os-prober.in: Add minix entry.
2924 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2926 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
2927 right buffer for temporary load.
2929 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2931 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
2933 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2935 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
2938 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2940 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
2942 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
2944 (LzmaDec_InitDicAndState): Make static.
2946 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2948 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
2950 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2952 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
2954 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
2956 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2958 * docs/grub-dev.texi: Replace bzr references with git ones.
2960 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2962 * docs/grub.texi (Simple configuration): Remove reference to
2963 grub-reboot from saved default entry description - grub-default
2964 does not use it anymore.
2966 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2968 * configure.ac: Make efiemu test cflags match the cflags efiemu is
2971 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2973 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
2975 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2977 Fix grub_machine_fini bitrot.
2979 Reported by: Glenn Washburn.
2981 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2983 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
2985 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2987 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
2989 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
2992 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2994 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
2995 Add -march=core2 when testing compile of efiemu64.
2997 Thanks Andrey Borzenkov for spotting this.
2999 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3001 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3002 XEN PV environment and load kernels.
3004 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3006 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3007 * grub-core/loader/multiboot_mbi2.c: Likewise.
3009 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3011 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3014 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3016 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3018 Tested by: Denis 'GNUtoo' Carikli.
3020 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3022 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3024 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3026 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3027 Use to get rounded angle rather than truncated.
3029 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3031 * grub-core/term/serial.c: Add option for enabling/disabling
3032 RTS/CTS flow control.
3034 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3036 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3039 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3041 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3042 Use grub_fatal rather than divide by zero.
3043 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3045 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3047 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3049 (grub_fixed_fsf_divide): Likewise.
3051 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3053 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3054 division by-zero and senseless negative divisions.
3056 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3058 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3059 division by-zero and senseless negative divisions.
3060 (circprog_set_property): Don't accept negative num_ticks.
3062 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3064 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3065 division by-zero and senseless negative divisions.
3067 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3069 * configure.ac: Use elf_*_fbsd on kfreebsd.
3071 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3073 * grub-core/tests/div_test.c: New test.
3075 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3077 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3078 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3079 * grub-core/gfxmenu/view.c: Likewise.
3080 * grub-core/video/fb/video_fb.c: Introduce new functions:
3081 grub_video_set_area_status, grub_video_get_area_status,
3082 grub_video_set_region, grub_video_get_region.
3083 * grub-core/video/bochs.c: Likewise.
3084 * grub-core/video/capture.c: Likewise.
3085 * grub-core/video/video.c: Likewise.
3086 * grub-core/video/cirrus.c: Likewise.
3087 * grub-core/video/efi_gop.c: Likewise.
3088 * grub-core/video/efi_uga.c: Likewise.
3089 * grub-core/video/emu/sdl.c: Likewise.
3090 * grub-core/video/radeon_fuloong2e.c: Likewise.
3091 * grub-core/video/sis315pro.c: Likewise.
3092 * grub-core/video/sm712.c: Likewise.
3093 * grub-core/video/i386/pc/vbe.c: Likewise.
3094 * grub-core/video/i386/pc/vga.c: Likewise.
3095 * grub-core/video/ieee1275.c: Likewise.
3096 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3097 * include/grub/video.h: Likewise.
3098 * include/grub/video_fb.h: Likewise.
3099 * include/grub/fbfill.h: Updated render_target structure.
3100 grub_video_rect_t viewport, region, area
3101 int area_offset_x, area_offset_y, area_enabled
3102 * include/grub/gui.h: New helper function
3103 grub_video_bounds_inside_region.
3104 * docs/grub-dev.texi: Added information about new functions.
3106 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3108 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3111 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3113 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3115 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3117 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3119 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3120 simple division on arm and ia64.
3122 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3124 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3127 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3129 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3131 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3133 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3134 prefix symbol, not @.
3136 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3138 * INSTALL: Add note about older gcc and clang.
3140 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3142 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3144 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3146 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3147 NULL pointer dereference.
3149 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3151 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3154 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3156 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3159 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3161 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3163 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3164 * grub-core/disk/geli.c (ascii2hex): Likewise.
3166 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3168 * configure.ac: Run linker tests without -Werror.
3169 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3170 Change all occurences of -static-libgcc resp -lgcc to
3171 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3173 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3175 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3177 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3179 Allow compiling with clang (not really supported though).
3181 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3183 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3184 Add -mrtd -mregparm=3 on i386 when not using clang.
3185 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3187 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3189 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3191 * grub-core/lib/reed_solomon.c: Likewise.
3192 * include/grub/i386/gdb.h: Likewise.
3193 * include/grub/i386/pc/int.h: Likewise.
3194 * include/grub/i386/pc/pxe.h: Likewise.
3195 * include/grub/ieee1275/ieee1275.h: Likewise.
3197 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3199 Import libgcrypt 1.5.3.
3201 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3203 * configure.ac: Don't add -Wcast-align on x86.
3205 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3207 * configure.ac: Add -freg-struct-return on all platforms that
3210 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3212 * acinclude.m4: Use -Werror on parameter tests.
3213 * configure.ac: Likewise.
3215 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3217 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3219 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3221 * configure.ac: Check that -malign-loops works rather than assuming that
3222 either -falign-loops or -malign-loops work.
3224 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3226 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3228 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3230 * configure.ac: Prevent cflags leaking to subsequent tests by always
3231 resetting cflags to target_cflags in target tests.
3233 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3235 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3238 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3240 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3242 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3244 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3246 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3248 * grub-core/normal/cmdline.c (grub_cmdline_get):
3249 Remove nested functions.
3251 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3253 * tests/test_sha512sum.in: Make it work on emu.
3255 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3257 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3259 (grub_bidi_line_logical_to_visual): Likewise.
3261 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3263 Remove vestiges of -Wunsafe-loop-optimisations.
3265 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3266 -Wno-unsafe-loop-optimisations.
3267 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3269 * grub-core/io/gzio.c: Likewise.
3270 * grub-core/script/parser.y: Likewise.
3271 * grub-core/script/yylex.l: Likewise.
3272 * util/grub-mkfont.c: Likewise.
3274 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3276 * util/grub-mkfont.c (process_cursive): Remove nested function.
3278 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3280 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3281 (grub_boot_time): Likewise.
3283 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3285 * include/grub/symbol.h (FUNCTION): Use @function rather than
3287 (VARIABLE): Likewise.
3289 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3291 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3293 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3295 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3296 (parse_dhcp_vendor): Likewise.
3298 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3300 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3302 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3304 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3305 Define after defining type and not before.
3307 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3309 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3311 (grub_gcm_decrypt): Likewise.
3312 (algo_decrypt): Likewise.
3313 (grub_zfs_decrypt_real): Transform error type.
3315 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3317 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3319 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3321 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3322 (grub_usbms_cbi_reset): Likewise.
3323 (grub_usbms_bo_reset): Likewise.
3324 (grub_usbms_reset): Likewise.
3325 (grub_usbms_attach): Likewise.
3326 (grub_usbms_transfer_cbi): Likewise.
3328 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3330 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3331 "checksum = checksum;".
3333 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3335 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3338 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3340 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3343 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3345 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3347 (grub_ehci_fini_hw): Likewise.
3348 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3350 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3352 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3353 return grub_usb_err_t for cosistency. All users updated.
3355 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3357 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3358 assigning to itself.
3360 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3361 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3363 Issue separate DNS queries for ipv4 and ipv6
3365 Adding multiple questions on a single DNS query is not supportted by
3366 most DNS servers. This patch issues two separate DNS queries
3367 sequentially for ipv4 and then for ipv6.
3369 Fixes: https://savannah.gnu.org/bugs/?39710
3371 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3372 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3373 * (grub_net_dns_lookup): Now using separated dns packages.
3374 * (grub_cmd_nslookup): Add error condition.
3375 * (grub_cmd_list_dns): Print DNS option.
3376 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3377 --prefer-ipv4, and --prefer-ipv6.
3378 * include/grub/net.h (grub_dns_option_t): New enum.
3379 * (grub_net_network_level_address): option added.
3381 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3383 * grub-core/video/fb/video_fb.c: Merge two blit functions
3386 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3388 * grub-core/term/terminfo.c: Add sequences for home and end.
3390 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3392 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3395 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3397 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3400 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3402 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3403 e-mail by Per Öberg.
3405 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3407 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3410 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3412 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3414 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3416 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3418 * docs/grub.texi: Document usage of menuentry id.
3420 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3422 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3424 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3426 * grub-core/commands/i386/nthibr.c: New command.
3428 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3430 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3432 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3434 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3437 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3439 Support GRUB_DISABLE_SUBMENU config.
3441 Inspired by patch from Prarit Bhargava.
3443 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3445 * docs/grub.texi: Mention RSA support.
3447 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3449 * grub-core/commands/verify.c: Add RSA support.
3451 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3453 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3454 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3455 device is known to be ATAPI.
3457 2013-11-03 Mike Frysinger <vapier>
3459 * configure.ac: Don't add target-prefix.
3461 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3463 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3466 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3468 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3469 if language is English.
3471 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3473 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3475 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3477 * configure.ac: Don't add -m32/-m64 on emu.
3481 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3482 broken linux headers.
3484 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3486 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3488 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3490 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3491 Reed-Solomon recovery if more than half of redundancy info is 0.
3493 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3495 * util/grub-mount.c: Handle symlinks to directories.
3497 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3499 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3500 find_file recursively for symlink.
3502 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3504 * tests/util/grub-shell.in: Copy themes.
3506 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3508 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3510 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3512 * configure.ac: Use 0x8000 for address instead of 8000.
3514 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3516 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3519 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3521 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3524 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3526 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3528 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3530 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3531 file_progress_read_hook.
3532 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3534 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3536 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3539 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3541 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3543 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3545 Rewrite blocklist functions in order to get progress when
3546 reading large extents and decrease amount of blocklist hook calls.
3548 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3550 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3553 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3555 Support --base-clock for serial command to handle weird cards with
3556 non-standard base clock.
3558 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3560 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3562 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3563 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3564 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3565 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3566 + strcpy rather than strncpy.
3568 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3570 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3571 (check_pool_label): Likewise. Fixes overflow.
3572 (nvlist_find_value): Fix comparison.
3574 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3576 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3577 more appropriate functions.
3579 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3581 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3584 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3586 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3588 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3590 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3593 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3595 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3597 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3599 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3600 (initialize_tables): reset tl and td to NULL after freeing.
3602 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3604 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3606 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3608 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3611 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3613 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3615 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3617 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3620 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3622 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3623 a page in protected space.
3625 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3627 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3628 allocate space for zero-sized modules.
3630 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3632 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3634 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3636 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3638 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3640 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3641 safeguards. Fixes a crash with i386/pc/console.c.
3643 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3645 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3646 and grub_hostfs_init.
3648 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3650 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3651 windows method on other platforms without good stat as well.
3653 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3655 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3657 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3659 Make / in btrfs refer to real root, not the default volume.
3660 Modify mkrelpath to work even if device is mounted with subvolid option.
3662 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3664 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3666 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3669 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3671 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3674 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3676 * docs/autoiso.cfg: New file.
3678 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3680 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3681 COND_GRUB_PE2ELF conditions.
3683 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3685 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3686 "vnd", "rd" and "fd" disks.
3688 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3690 Move grub_disk_write out of kernel into disk.mod.
3692 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3694 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3697 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3699 * grub-core/kern/misc.c (grub_abort): Make static
3701 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3703 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3704 transform invalid unicode codepoints.
3706 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3708 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3711 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3713 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3715 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3717 Consolidate cpuid code.
3719 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3721 Move cpuid code to cpuid.h and TSC code to tsc.c.
3723 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3725 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3727 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3729 * util/grub-mkconfig.in: Replace $0 with $self.
3730 * util/grub-reboot.in: Likewise.
3731 * util/grub-set-default.in: Likewise.
3733 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3735 * docs/osdetect.cfg: New file.
3737 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3739 * tests/util/grub-shell.in: Add new --debug option.
3741 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3743 * tests/test_unset.in: New test.
3745 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3747 * tests/test_sha512sum.in: New test.
3749 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3751 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3752 * include/grub/misc.h: Remove strncat.
3753 * grub-core/lib/posix_wrap/string.h: Likewise.
3755 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3757 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3758 Try to handle more than 0xFFFF packets.
3759 Reported by: Bernhard Übelacker <bernhardu>.
3760 He also spotted few overflows in first version of this patch.
3762 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3764 * tests/date_unit_test.c: New test.
3766 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3768 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3769 of first three years after start of validity of unixtime.
3771 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3773 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3774 division as the one making more sense.
3775 (update_screen): Likewise.
3776 (complete): Likewise.
3778 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3780 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3782 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3784 Make char and string width grub_size_t rather than grub_ssize_t.
3786 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3788 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3790 (grub_history_replace): Likewise.
3792 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3794 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3797 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3799 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3802 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3804 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3805 Use unsigned divisions rather than signed variants.
3807 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3809 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3810 unsigned arithmetics.
3813 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3815 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3817 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3819 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3820 rather than signed one.
3821 (recovery): Likewise.
3823 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3825 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3827 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3829 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3832 2013-10-25 Jon McCune <jonmccune@google.com>
3834 * docs/grub.texi: Cleanup security documentation around signatures.
3836 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3838 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3840 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3842 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3845 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3847 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3848 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3849 functions when compiling for kernel.
3851 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3853 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3854 unsigned long long when using %llu.
3856 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3858 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3859 terminal after updating progress.
3861 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3863 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3864 argument. We don't disable Gate A20 in this code.
3866 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3868 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3869 Conceptually based on change in branch "vbe-on-coreboot".
3871 2013-10-24 Robert Millan <rmh@gnu.org>
3873 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3874 numeric constants with their symbolic equivalent.
3875 Taken from branch "vbe-on-coreboot".
3877 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3879 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3881 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3883 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3884 divmod64 for offset division.
3886 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3888 Rename .bzrignore to .gitignore. Add "*.o" rule.
3890 * .bzrignore: Renamed to...
3891 * .gitignore: ...this.
3893 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3895 Add new progress module that displays the load progress of files.
3897 * grub-core/lib/progress.c: New file.
3898 * grub-core/Makefile.core.def (progress): New module.
3899 * grub-core/kern/file.c (grub_file_open): File name added.
3900 * (grub_file_read): Progress hook added.
3901 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3902 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3903 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3904 * include/grub/file.h (struct grub_file): Add progress module members.
3905 * include/grub/term.h (struct grub_term_output): Likewise.
3906 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3907 Terminal velocity added.
3908 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3909 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3910 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
3911 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
3912 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
3913 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
3914 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
3915 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
3916 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
3917 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
3918 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
3919 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
3921 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3923 Verify signatures of signatures unless --skip-sig is specified.
3925 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3927 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3930 Saves 70 bytes on compressed image.
3932 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3934 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
3937 Saves 10 bytes on compressed image.
3939 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3941 * grub-core/kern/misc.c (grub_isprint): Move to ...
3942 * include/grub/misc.h (grub_isprint): ... here. Make inline.
3944 Saves 20 bytes on compressed image due to remving exporting.
3946 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3948 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
3950 Saves 5 bytes on compressed image.
3952 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3954 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
3957 Saves 379 bytes on compressed image.
3959 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3961 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
3963 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3965 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
3967 Saves 40 bytes on compressed image.
3969 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3971 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
3972 mask rather than 64-bit type.
3974 Saves 20 bytes on compressed image.
3976 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3978 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
3979 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
3981 Saves 273 bytes on compressed image.
3983 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3985 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
3986 variable length arrays.
3988 Saves 50 bytes on compressed image.
3990 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3992 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3994 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3996 * grub-core/fs/ufs.c: Remove variable length arrays.
3998 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4000 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4002 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4004 * grub-core/fs/zfs.c: Remove variable length arrays.
4005 Reduces zfs.mod by 160 bytes (208 compressed).
4007 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4009 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4011 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4013 * grub-core/net/arp.c: Remove variable length arrays.
4014 * grub-core/net/bootp.c: Likewise.
4015 * grub-core/net/dns.c: Likewise.
4016 * grub-core/net/icmp6.c: Likewise.
4017 * grub-core/net/net.c: Likewise.
4019 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4021 * grub-core/fs/ntfs.c: Remove variable length arrays.
4022 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4025 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4027 * grub-core/fs/hfs.c: Remove variable length arrays.
4028 Reduces hfs.mod by 8 bytes (52 compressed).
4030 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4032 * grub-core/fs/udf.c: Remove variable length arrays.
4033 Increases udf.mod by 128 bytes (but decreases by 13 when
4036 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4038 * grub-core/fs/iso9660.c: Remove variable length arrays.
4039 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4042 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4044 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4045 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4048 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4050 * grub-core/fs/xfs.c: Remove variable length arrays.
4051 Reduces xfs.mod by 40 bytes (43 compressed).
4053 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4055 * grub-core/fs/fshelp.c: Remove variable length arrays.
4056 Reduces fshelp.mod by 116 bytes (23 compressed).
4058 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4060 * grub-core/normal/completion.c: Remove variable length arrays.
4061 * grub-core/normal/menu_entry.c: Likewise.
4063 Reduces normal.mod by 496 bytes.
4065 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4067 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4068 by 356 bytes (158 compressed).
4070 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4072 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4073 by 364 bytes (169 compressed).
4075 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4077 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4078 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4079 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4081 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4083 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4084 bitmasks to small structures of size chosen to fit in registers.
4086 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4088 * conf/Makefile.common: Use -freg-struct-return on i386. This
4089 decreases code size and improves performance.
4091 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4093 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4095 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4097 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4099 Simplify expressions to save around 256 bytes in kernel.img.
4100 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4102 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4104 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4105 Use GRUB_UTIL_FD_O_* rather than O_*.
4107 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4109 Add haiku-specific functions.
4111 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4113 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4115 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4117 Move stat () and device mode checking into OS-dependent files as
4118 long as performance doesn't suffer.
4120 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4122 Split make_system_path_relative_to_its_root into separate file
4123 relpath.c from getroot.c as it's common between unix and haiku
4124 but otherwise haiku doesn't use any functions from unix getroot.c.
4126 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4128 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4130 (grub_util_is_special_file): Likewise.
4132 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4134 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4135 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4137 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4139 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4140 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4142 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4144 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4145 (load_image): Likewise.
4147 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4149 * util/grub-render-label.c: Move backend part to ...
4150 * util/render-label.c: ... here.
4152 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4154 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4155 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4157 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4159 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4161 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4163 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4164 CD-ROM in case when it's declared as having subpartitions.
4166 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4168 Don't add -lm on haiku.
4170 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4172 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4175 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4177 * configure.ac: Use -melf_*_haiku as target on haiku.
4179 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4181 * Makefile.util.def: Add util/setup.c to extra_dist.
4183 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4185 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4186 unknown types through.
4188 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4190 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4191 (grub_util_check_char_device): Likewise.
4192 * include/grub/emu/getroot.h: Likewise.
4194 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4196 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4197 memset rather than inline static function.
4199 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4201 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4202 not doing embedded decompressor.
4204 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4206 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4208 * grub-core/kern/disk.c: Likewise.
4209 * grub-core/kern/misc.c: Likewise.
4210 * include/grub/parser.h: Likewise.
4211 * include/grub/script_sh.h: Likewise.
4212 * include/grub/zfs/zfs.h: Likewise.
4214 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4216 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4218 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4220 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4221 defined before trying to use it.
4223 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4225 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4228 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4230 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4231 Use __unused__ rather than __used__ on gcc < 3.2.
4233 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4235 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4237 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4239 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4241 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4243 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4245 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4246 * include/grub/emu/misc.h: Likewise.
4248 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4250 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4253 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4255 * grub-core/tests/checksums.h: Regenerated due to progress bar
4256 get_minimal_size changes.
4258 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4260 Added `tr' command support.
4262 * grub-core/commands/tr.c: New file.
4263 * grub-core/Makefile.core.def: Build rules for new module.
4265 * tests/grub_cmd_tr.in: New test.
4266 * Makefile.util.def: Build rules for new test.
4268 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4270 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4272 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4274 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4275 * docs/gurb.texi: Likewise.
4277 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4279 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4280 Pixmap highlighted section with east and west slices was displayed
4281 incorrectly due to negative width of the central slice.
4283 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4285 * docs/grub.texi: Graphical options information update.
4286 Removed outdated. Updated current. Inserted missed.
4288 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4290 * docs/grub.texi: Mention few new platform-specific commands.
4292 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4294 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4295 currently used so this doesn't really have any effect.
4296 Reported by: Douglas Ray <dougray>
4298 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4300 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4301 compilation but prevents gcc from displaying messages in non-Latin
4303 * conf/Makefile.common: Likewise.
4305 2013-10-16 Hiroyuki YAMAMORI
4307 Handle Japanese special keys.
4308 Reported by: Hiroyuki YAMAMORI.
4309 Codes supplied by: Hiroyuki YAMAMORI.
4311 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4313 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4315 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4317 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4318 * docs/grub.texi: Likewise.
4320 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4322 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4323 value in case of incomplete read.
4324 (grub_util_fd_write): Likewise.
4326 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4328 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4330 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4332 * util/grub-editenv.c (create_envblk_file): More from here ...
4333 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4335 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4337 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4338 canonicalize file name before doing the rest.
4340 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4342 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4345 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4347 Define grub_util_is_directory/regular/special_file and
4348 use OS-dependent versions rather than to rely on stat().
4350 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4352 * util/grub-mkimage.c: Move backend part to ...
4353 * util/mkimage.c: ... here.
4355 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4357 Allow compilation with mingw64 albeit with warnings due to lack of
4360 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4361 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4362 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4363 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4365 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4367 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4369 Remove leftover references to some of the system headers.
4371 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4373 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4376 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4378 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4381 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4383 Split out blocklist retrieving from setup.c to
4384 grub-core/osdep/blocklist.c and add windows implementation since
4385 generic version doesn't work on NTFS on Windows due to aggressive
4388 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4390 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4393 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4395 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4396 Cut tailing newline. Remove arbitrary limitation. Always use
4397 grub_util_tchar_to_utf8.
4399 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4401 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4402 * tests/printf_unit_test.c (printf_test): Add %% tests.
4403 Reported by: Paulo Flabiano Smorigo.
4405 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4407 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4410 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4412 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4413 use nvlist_lookup_string and don't use nvlist_print.
4415 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4417 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4418 closedir to handle filename charset translation.
4420 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4422 * include/grub/emu/hostdisk.h: Move file operations to
4423 * include/grub/emu/hostfile.h: ... here.
4425 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4427 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4430 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4432 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4434 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4436 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4437 and remove export.h.
4439 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4441 * grub-core/kern/emu/error.c: Removed.
4442 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4443 explicitly as it's already in libgnu.a.
4445 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4447 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4448 config-util.h include.
4450 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4452 Split emunet into platform-dependent and GRUB-binding parts. Keep
4453 platform-dependent part in kernel for easy access to OS functions.
4455 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4457 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4460 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4462 * grub-core/osdep/windows/emuconsole.c: New file.
4464 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4466 * conf/Makefile.extra-dist: Add osdep/*/init.c
4468 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4470 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4472 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4474 * util/grub-probe.c (probe): Separate different drives in hint-str
4475 by spaces and not newlines.
4476 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4478 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4480 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4483 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4485 Pass-through unknown E820 types. It required reorganisation of mmap
4488 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4490 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4492 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4494 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4497 2013-10-14 qwertial <qwertial>
4499 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4501 2013-10-14 Jon McCune <jonmccune@google.com>
4503 * docs/grub.texi: Document new signatures possibility.
4505 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4507 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4509 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4511 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4513 (grub_util_tchar_to_utf8): Likewise.
4515 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4517 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4518 * grub-core/kern/emu/main.c: Add missing include.
4519 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4520 Don't call grub_util_init_nls.
4521 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4524 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4526 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4529 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4531 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4533 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4535 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4537 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4539 Add a wrapper for fopen. On unix-like systems just pass-through. On
4540 windows use unicode version.
4542 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4544 Move set_program_name and init_nls to host_init. On windows
4545 fix in this fuction console and argument charset as well.
4547 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4549 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4550 GRUB_ENABLE_CRYPTODISK.
4552 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4553 GRUB_ENABLE_CRYPTODISK.
4554 * util/grub-mkconfig_lib.in: Likewise.
4556 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4558 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4560 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4562 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4563 error when enabling debug.
4565 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4567 * configure.ac: Use -melf_*_obsd on openbsd.
4569 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4571 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4573 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4575 * include/grub/misc.h: Use gnu_printf rather than printf as format
4576 template since our functions are independent of libc.
4578 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4580 * util/grub-setup.c (setup): Move copying of partition table as
4581 futher up as possible to avoid possible overwrite by floppy routines.
4583 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4585 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4587 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4589 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4590 * docs/grub.texi: Likewise.
4592 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4594 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4595 it's mostly unused. Move vestiges to the callers.
4597 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4599 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4600 version of salt and hash. Use grub_snprintf rather than snprintf.
4602 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4604 * docs/grub.texi: Fix problem with braces.
4606 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4608 * conf/Makefile.extra-dist: Fix extra-dist list.
4609 * grub-core/Makefile.core.def: Likewise.
4611 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4613 * docs/grub.texi: Document disk names used on Windows and AROS.
4615 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4617 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4619 * grub-core/osdep/aros/hostdisk.c: Likewise.
4621 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4623 Avoid including hostfile.h when not necessarry as it pulls
4624 in OS-specific headers which may redefine generic names
4627 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4629 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4630 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4631 scrollbar_bottom_pad
4632 * docs/grub.texi: Likewise.
4634 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4636 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4638 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4640 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4642 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4644 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4646 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4649 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4651 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4654 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4656 Move OS-specific driver configuration to grub_util_fd_open. This
4657 moves OS-dependent parts from kern/emu/hostdisk.c to
4658 grub-core/osdep/*/hostdisk.c.
4660 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4662 * util/grub-mkimage.c (generate_image): Use size_t instead of
4664 * util/grub-mkimagexx.c (locate_sections): Likewise.
4665 (load_image): Likewise.
4667 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4669 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4671 (grub_util_write_image): Likewise.
4673 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4675 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4676 get random when no RNG is available.
4677 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4679 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4681 * include/grub/util/lvm.h: Removed.
4683 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4685 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4686 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4688 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4690 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4692 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4694 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4696 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4698 * grub-core/net/drivers/emu/emunet.c: Move to ..
4699 * grub-core/osdep/linux/emunet.c: ..here.
4701 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4703 * util/ieee1275/ofpath.c: Move to ...
4704 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4705 * grub-core/osdep/basic/ofpath.c: ..here.
4707 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4709 Move password-querying (util-version) routines to grub-core/osdep.
4711 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4713 Move sleep routines to grub-core/osdep.
4715 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4717 Move OS-dependent files to grub-core/osdep and document it.
4719 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4721 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4722 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4724 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4726 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4728 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4730 * util/misc.c: Remove leftover inclusion of malloc.h.
4732 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4734 * include/grub/setjmp.h: Remove leftover GRUBOF.
4736 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4738 * util/raid.c: Fold into ...
4739 * util/getroot_linux.c: ... here. Make all functions static.
4741 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4743 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4744 macros to GRUB ones.
4746 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4748 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4749 occasional bug. If there are too many boot entries or too low
4750 scrollbar height then we need to use another formula to calculate
4751 the position and size of the scrollbar thumb.
4753 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4755 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4757 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4759 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4760 * docs/grub.texi: Likewise.
4762 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4764 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4767 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4769 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4770 minimal width calculations.
4772 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4774 * docs/grub.texi: Update note on colors on emu console.
4776 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4778 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4779 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4780 it's FS and not GRUB limitation.
4782 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4784 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4786 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4788 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4790 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4792 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4793 kernels by version order.
4795 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4797 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4799 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4801 Add AROS hostdisk and getroot routines.
4803 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4805 Make cryptodisk and diskfilter probe data retrievable programmatically
4806 and not just printable.
4808 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4810 Split random retrieving code into separate files.
4812 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4814 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4817 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4819 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4821 * grub-core/tests/fake_input.c: Likewise.
4822 * grub-core/tests/cmdline_cat_test.c: Likewise.
4824 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4826 * grub-core/video/capture.c: Do not do finalization when .fini
4827 is called as there is explicit capture_end.
4829 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4831 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4832 changing windows to avoid crash.
4834 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4836 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4838 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4840 * po/exclude.pot: Add several strings to exclude.
4842 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4844 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4846 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4848 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4849 ./util/grub-gen-asciih.c to exclude list.
4851 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4853 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4854 and don't mark error strings for translation.
4856 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4858 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4859 properly in case of missing block size.
4861 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4863 * grub-core/lib/arm/setjmp.S: Add missing license section.
4865 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4867 * po/swiss.sed: Add replacement for key names and for term computer.
4869 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4871 * grub-core/gfxmenu/theme_loader.c: New global options for the
4872 theme background image handling. desktop-image-scale-method,
4873 desktop-image-h-align, desktop-image-v-align.
4874 * grub-core/gfxmenu/view.c: Likewise.
4875 * include/gfxmenu_view.h: Likewise.
4876 * include/bitmap_scale.h: Proportional scale functions introduced.
4877 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4878 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4879 cases of unexpected input variables for scale functions.
4880 * docs/grub.texi: Updated documentation for new options.
4882 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4884 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4886 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4888 * grub-core/tests/checksums.h: Corrected due to changes in
4889 bilinear interpolation function.
4891 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4893 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4894 to eliminate artefacts in bilinear interpolation.
4896 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4898 * grub-core/video/readers/tga.c: Support paletted tga.
4900 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4902 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4903 incorrect cbcr setting when in color mode.
4905 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4907 * grub-core/video/readers/png.c: Support paletted images and clean up
4910 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4912 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
4913 usage of wrong table which resulted in mishandling of 4-byte
4916 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4918 * grub-core/term/terminfo.c: Add Home and End key sequences.
4920 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4922 * grub-core/video/readers/png.c (grub_png_decode_image_header):
4923 Fix formula for computing total number of bytes.
4925 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4927 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
4928 image processing, fix big-endian and support grayscale.
4930 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4932 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
4933 Correctly will with maximum transparency when using index color.
4935 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4937 * grub-core/video/readers/png.c: Support grayscale
4939 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4941 * grub-core/video/readers/jpeg.c: Support grayscale.
4943 2013-09-26 Jon McCune <jonmccune@google.com>
4945 * grub-core/commands/loadenv.c: Support skipping signature check
4946 and variable names filtering.
4948 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4950 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
4951 * grub-core/kern/emu/hostfs.c: Likewise.
4952 * util/getroot_unix.c: Likewise.
4954 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4956 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
4957 Migrate all explicit defines to this new one.
4959 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4961 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
4962 grub_util_fd_strerror when using grub_util_fd_*.
4963 (grub_util_fd_open_device): Likewise.
4964 (grub_util_biosdisk_read): Likewise.
4965 (grub_util_biosdisk_write): Likewise.
4966 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
4967 (grub_util_fd_strerror): Likewise.
4968 (grub_util_fd_sync): Likewise.
4969 (grub_util_fd_close): Likewise.
4970 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
4971 (grub_util_fd_close): Likewise.
4972 (grub_util_fd_strerror): Likewise.
4973 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
4974 function proto rather than macro.
4975 (grub_util_fd_sync): Likewise.
4976 (grub_util_fd_open): Likewise.
4977 (grub_util_fd_strerror): New proto.
4979 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4981 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
4982 platforms on which it doesn't work.
4984 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4986 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
4987 stat immediately to where it's used.
4989 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4991 * util/getroot.c (grub_util_check_block_device): Move to ...
4992 * util/getroot_unix.c (grub_util_check_block_device): ... here.
4993 * util/getroot.c (grub_util_check_char_device): Move to ...
4994 * util/getroot_unix.c (grub_util_check_char_device): ... here.
4996 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4998 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5001 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5003 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5005 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5007 * docs/grub.texi (File name syntax): Document ZFS filenames
5008 (/volume@snapshot/...).
5010 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5012 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5013 Always return full path. Fixes a problem with mkrelpath.
5015 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5017 * util/grub-install.in: Add GPT PReP support.
5018 * util/grub-probe.c (probe): Support GPT partition type.
5019 (main): Support -t gpt_parttype.
5021 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5023 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5025 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5027 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5029 2013-09-23 Tim Hardeck <thardeck>
5031 * util/grub.d/10_hurd.in: Filter out character for the class.
5032 * util/grub.d/10_kfreebsd.in: Likewise.
5033 * util/grub.d/10_linux.in: Likewise.
5034 * util/grub.d/20_linux_xen.in: Likewise.
5036 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5038 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5041 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5043 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5046 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5048 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5049 doesn't use posix_wrap. Keep literal -fno-builtin however.
5051 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5053 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5055 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5058 * configure.ac: Do not enable -Wmissing-noreturn as its
5059 usefulness is limited and creates problems on some OS notably with
5060 code generated by bison.
5062 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5065 * configure.ac: Do not explicitly enable -Waddress as it's not
5066 supported by all gcc and when it is, it's already enabled by -Wall.
5068 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5070 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5071 desactivated use of EDID at all.
5073 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5076 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5077 video if no text is available.
5079 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5082 * configure.ac: Substitute TARGET_RANLIB.
5084 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5087 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5089 Based on patches from AROS.
5091 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5094 * grub-core/Makefile.am: Override STRIP and RANLIB.
5095 * configure.ac: compute TARGET_RANLIB.
5096 * INSTALL: Document TARGET_RANLIB
5098 Based on patches from AROS.
5100 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5102 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5103 that floppies are unpartitioned.
5105 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5107 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5108 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5110 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5112 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5113 less nice but more portable.
5114 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5116 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5118 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5120 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5122 (grub_cryptodisk_cheat_insert): Likewise.
5123 (grub_cryptodisk_close): Likewise.
5125 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5127 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5128 Use windows path for DEFAULT_DIRECTORY.
5130 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5132 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5133 difference was likely just gcc version, not anything mingw-related.
5135 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5137 Use Winapi on both cygwin and mingw32 to share more code between both.
5139 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5141 * util/grub-install.in: Add --grub-editenv option.
5142 * util/grub-install_header (grub_compress_file): Explicitly check for
5143 plain file to avoid cp error.
5145 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5147 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5148 names; fix LVM driver name (lvm, not lv).
5149 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5152 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5154 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5155 files rather than one file with loads of #if's.
5156 * util/getroot.c: Likewise.
5158 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5160 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5162 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5164 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5165 GNU/Hurd to the list of checked PRNG.
5167 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5169 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5171 2013-09-21 Ales Nesrsta <starous@volny.cz>
5173 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5175 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5177 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5178 * grub-core/disk/lvm.c: Add LVM UUIDs.
5179 * util/getroot.c: Use LVM UUIDs whenever possible.
5181 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5183 * docs/grub.texi (Networking commands): Add documentation for
5184 network related commands.
5186 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5188 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5189 to determine if device is handled by devmapper.
5190 (convert_system_partition_to_system_disk): Likewise.
5191 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5192 already done in grub_util_open_dm.
5194 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5196 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5197 Clean up stack manipulation (sync_caches_armv*)
5199 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5201 * util/lvm.c: Remove since unused. Remove remaining references.
5203 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5205 Handle the case of partitioned LVM properly.
5207 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5208 Stop on meeting LVM, mpath or DMRAID.
5209 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5210 (read_device_map): Likewise.
5211 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5212 device is full disk rather than erroring out on LVM and similar cases.
5214 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5216 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5218 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5220 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5222 Reported by: Leif Lindholm
5224 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5225 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5227 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5230 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5232 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5233 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5235 2013-09-18 Douglas Ray <dougray@cpan.org>
5237 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5240 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5242 * docs/grub.texi: Fix broken link.
5244 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5246 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5247 to break endless loop.
5249 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5251 * util/grub-fstest.c: Fix several printf formats.
5252 * util/grub-mkimage.c: Likewise.
5253 * util/grub-mkimagexx.c: Likewise.
5254 * util/grub-script-check.c: Likewise.
5256 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5258 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5261 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5263 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5265 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5267 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5268 removed in current versions cygwin_conv_*.
5270 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5272 * configure.ac: Disable efiemu runtime on cygwin.
5274 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5276 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5277 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5279 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5281 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5284 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5286 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5288 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5291 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5293 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5294 when on x86 and not cygwin.
5295 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5298 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5300 * configure.ac: Set CPP to build one when checkoing for freetype for
5303 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5305 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5306 [!GRUB_BUILD]: Remove has_argument.
5308 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5310 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5311 Replace with a dummy.
5313 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5315 * configure.ac: Don't change host_os from mingw to cygwin.
5317 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5319 * configure.ac: Change target_os from windows to cygwin.
5321 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5323 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5325 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5326 (build-grub-gen-asciih): Likewise.
5327 (build-grub-gen-widthspec): Likewise.
5328 * Makefile.util.def (grub-pe2elf): Remove.
5329 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5330 * configure.ac: Separate tests for build.
5331 Move ./build-grub-pe2elf to grub-core.
5333 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5334 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5336 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5338 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5339 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5340 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5342 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5344 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5345 mingw32 as well based on grub_util_get_disk_size.
5346 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5347 grub_util_get_fd_size.
5349 (fsync): Moved to ...
5350 * grub-core/kern/emu/misc.c (fsync): ... here.
5352 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5354 * include/grub/mm.h (grub_extend_alloc): Remove.
5355 * grub-core/loader/i386/pc/plan9.c: Use own version of
5356 grub_extend_alloc with appropriate types.
5358 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5360 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5362 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5364 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5366 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5368 Fix dependencies on cygwin.
5370 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5371 dependencies when used and defined.
5372 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5374 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5376 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5377 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5379 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5381 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5382 implementation available to cause compile-time rather than runtime
5385 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5387 * util/grub-fstest.c: Don't check for symlinks on windows.
5389 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5391 * INSTALL: Mention unavailability of man pages when cross-compiling.
5393 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5395 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5397 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5399 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5401 * INSTALL: Document cross-compilation.
5402 * acinclude.m4: Determine whether nm support -P and --defined-only.
5403 * configure.ac: Add TARGET_ to all variables pertaining to target
5404 that don't have it yet.
5405 * gentpl.py: Likewise.
5406 * grub-core/Makefile.am: Likewise.
5407 * grub-core/genmod.sh.in: Likewise.
5408 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5411 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5413 * configure.ac: Remove -Wempty-body. It's not essential and needs
5416 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5418 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5419 * util/getroot.c: Likewise.
5421 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5423 * grub-core/disk/ahci.c: Add needed explicit cast.
5424 * grub-core/lib/backtrace.c: Likewise.
5425 * grub-core/net/ip.c: Likewise.
5426 * grub-core/net/tcp.c: Likewise.
5427 * grub-core/net/udp.c: Likewise.
5429 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5431 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5433 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5435 * util/import_gcry.py: Add final newline in visibility.h.
5437 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5439 * conf/Makefile.common: Fix typo.
5441 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5443 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5445 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5447 * Makefile.am (widthspec.h): Fix typo.
5448 * util/grub-gen-widthspec.c: Likewise.
5450 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5452 Move ascii.h and widthspec.h generation to a separate build-time-only
5455 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5457 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5458 Always fill bootdisk info and improve check for NetBSD disklabel.
5460 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5462 * conf/Makefile.extra-dist: Add util/bin2h.c.
5463 Reported by: floppym.
5465 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5467 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5469 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5471 * configure.ac: Disable unifont and starfield if no freetype was found.
5473 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5475 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5476 on NetBSD and OpenBSD.
5478 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5480 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5482 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5484 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5485 reduced. Inheritant options are processed during the theme loading.
5487 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5489 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5491 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5493 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5495 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5497 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5500 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5502 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5503 remove-potcdate.sed.
5505 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5507 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5508 unused attribute from pull argument.
5510 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5512 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5515 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5517 * util/getroot.c (pull_lvm_by_command): add --separator option
5518 to vgs call to disable padding of output to 10 characters.
5520 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5522 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5524 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5527 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5529 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5532 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5534 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5535 full Canadian cross. Tested with build=x86_64, host=arm,
5536 target=ppc-ieee1275.
5538 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5540 * configure.ac: Error if no $BUILD_CC could be found.
5543 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5545 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5548 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5550 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5551 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5553 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5555 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5556 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5557 falling back to the partition device, otherwise a later call to this
5558 function may fail spuriously.
5559 Reported by Axel Beckert. Fixes Debian bug #708614.
5561 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5563 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5565 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5567 Prevent shadowing of stdlib's devname(3) on BSD.
5569 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5570 and devlast to diskname and disklast, respectively.
5572 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5574 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5576 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5578 * docs/grub.texi: Introduce terminal window position options:
5579 terminal-left: terminal window's left position
5580 terminal-top: terminal window's top position
5581 terminal-width: terminal window's width
5582 terminal-height: terminal window's height
5583 terminal-border: terminal window's border width
5584 * grub-core/gfxmenu/theme-loader.c: Likewise.
5585 * include/grub/gfxmenu_view.h: Likewise.
5586 * po/exlude.pot: Likewise.
5587 * grub-core/gfxmenu/view.c: Likewise.
5588 Also updated minimal window size.
5589 Also terminal_sanity_check function has been introduced.
5590 * grub-core/tests/checksums.h: Update (terminal window height
5591 is adjusted now for low resolution screen)
5593 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5595 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5598 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5600 * po/exclude.pot: Add few recent exceptions.
5602 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5604 * tests/grub_func_test.in: Add unicode.pf2.
5606 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5608 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5609 standard rather than noral color, in line with other terminals.
5611 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5613 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5616 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5618 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5620 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5622 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5623 inappropriate printf.
5625 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5627 * .bzrignore: Remove grub-core/lib/dtc-grub,
5628 grub-core/Makefile.libfdt.def
5629 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5631 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5633 * include/grub/video.h (grub_video_register): Keep double-linked as
5634 well as single-linked invariants.
5635 Reported by: qwertial.
5637 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5639 * grub-core/commands/nativedisk.c (get_uuid): Handle
5640 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5642 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5644 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5645 maximum of NW, N, NE heights instead of N's height and maximum of
5646 NW, W, SW widths instead of W's width. (So the box will be always
5649 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5651 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5652 Fix misuse of variable count.
5654 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5655 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5656 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5658 New ports to arm-uboot and arm-efi.
5659 Mostly by Leif Lindholm with some additions from
5660 Francesco Lavra and cleanup by Vladimir Serbinenko.
5662 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5664 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5666 Reported by: Leon Drugi.
5668 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5670 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5671 Reported by: Paulo Flabiano Smorigo.
5673 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5675 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5677 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5679 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5681 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5683 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5685 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5687 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5689 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5691 * grub-core/net/bootp.c: Export net_* variables.
5692 * grub-core/net/net.c: Likewise.
5694 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5696 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5698 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5700 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5702 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5704 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5706 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5708 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5710 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5712 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5715 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5717 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5720 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5722 * grub-core/fs/zfs/zfs_lz4.c: New file.
5723 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5725 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5727 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5729 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5731 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5732 (check_pool_label): Likewise.
5733 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5735 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5737 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5739 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5741 * docs/grub.texi (Commands): Document postition parameters
5742 for menuentry command.
5744 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5746 * util/grub-mknetdir.in: Remove stray line from help output.
5748 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5750 Remove early sm712 init as there is no reason for it (the "watchdog"
5751 effect was due to wrong GPIO map).
5753 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5755 * grub-core/commands/pcidump.c: Remove static variables.
5757 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5759 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5761 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5763 * configure.ac: Move delimiter after the infos.
5765 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5767 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5769 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5771 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5772 not filling whole 8x16 space.
5774 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5776 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5778 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5780 * configure.ac: Indicate which liblzma is used if any.
5782 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5783 2013-06-21 Craig Sanders <savannah@taz.net.au>
5785 * util/grub-reboot.in: Document submenu usage.
5787 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5789 * .bzrignore: Update with a number of new test-related files.
5791 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5793 * util/grub-script-check.c: Fail on scripts containing no
5794 commands, to guard against corrupted grub-mkconfig setups that
5795 produce no useful output.
5796 * tests/grub_script_no_commands.in: New test.
5797 * Makefile.util.def (grub_script_no_commands): Add.
5798 Reported by Hans Putter. Fixes Debian bug #713886.
5800 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5802 * grub-core/disk/diskfilter.c: Forgot to remove comment
5803 from previous commit.
5805 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5807 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5808 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5810 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5812 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5814 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5816 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5817 rescan diskfilter devices until nothing new is found.
5819 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5821 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5823 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5825 Don't try to detect cbfs on *-emu.
5827 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5829 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5831 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5833 Add support for processed coreboot payload chainloading.
5835 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5837 Enable coreboot information commands even when not loaded as
5838 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5840 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5842 Support for cbfs. Also factor out the part which is common
5843 for all archives to a separate module. This splits tar from cpio
5844 as they are very different but keeps cpio, cpio_be, odc and newc
5845 together since they're very similar.
5847 2013-06-15 David Michael <fedora.dm0@gmail.com>
5849 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5850 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5852 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5854 * tests/grub_script_eval.in: Really add the eval test.
5856 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5858 Move flavour-specific parts out of common cpio.c file and
5859 rename remaining to cpio_common.c
5861 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5863 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5864 off new function grub_script_execute_new_scope. Change callers to use
5865 either of them as appropriate.
5866 * grub-core/commands/eval.c: New command eval.
5867 * docs/grub.texi (Commands): Document it.
5869 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5871 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5872 to fetch values when listing.
5874 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5876 Fix make dist on non-pc.
5878 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
5880 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5881 without a device name.
5883 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5885 Remove enable_executable_check as it's not needed anymore.
5886 Reported by: dougray.
5888 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5890 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5891 ambigouos RAID before discovering RAIDs on top of it.
5894 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5896 Fix typo (failback vs fallback).
5898 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5900 * util/grub.d/30_os-prober.in: Add support for probing EFI
5901 System Partition (as of os-prober 1.58).
5903 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5905 * configure.ac: Add yet another path to unifont. For parabola.
5907 2013-05-30 Josh Triplett <josh@joshtriplett.org>
5909 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5910 handling to copy the killed characters to the kill buffer as
5911 UCS4 stored as grub_uint32_t rather than as 8-bit characters
5912 stored as char. Eliminates UCS4 truncation and corruption
5913 observed when killing characters with Ctrl-u and yanking them
5916 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5918 Detach optional parts of gfxterm and integrate in with coreboot init.
5920 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5922 Move blit and fill dispatcher to appropriate files to decrease export
5923 and relocation overhead.
5925 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5927 * grub-core/font/font.c, include/grub/font.h: Inline simple font
5930 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5932 * grub-core/Makefile.am: Fix compilation problem with some
5935 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5937 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
5939 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5941 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
5944 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5946 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
5949 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
5951 * grub-core/partmap/dfly.c: New partition map.
5953 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5955 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
5957 Reported by: Francesco Lavra.
5959 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
5961 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
5962 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
5964 * conf/Makefile.common: define dist_grubconf_DATA
5966 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5968 Progressively skip menu elements on small terminals rather
5971 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5973 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
5974 to avoid losing last column.
5976 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5978 * po/exclude.pot: Add missing string "%C".
5980 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5982 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
5985 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5987 * util/grub-install.in: Gettextize "Not found" message.
5989 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5992 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
5994 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5996 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
5998 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6000 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6002 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6004 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6006 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6007 attribute since structure is not necessarily aligned.
6009 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6011 * docs/grub.texi (Device syntax): Clarify description of network
6014 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6016 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6017 for vasprintf presence.
6019 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6021 * util/grub-install.in: Handle efibootmgr presence check.
6022 Reported by: Leif Lindholm.
6024 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6026 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6027 new strings to translate.
6029 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6031 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6032 yet another string (pun intended) to translate.
6034 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6036 * po/POTFILES-shell.in: Autogenerate it.
6038 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6040 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6042 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6044 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6047 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6049 * docs/grub.texi (Network): Add description of net_default_interface,
6050 net_default_ip and net_default_mac. Rewrite variables description
6051 to emphasize that they are per-interface.
6053 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6055 New test: cmdline and cat.
6057 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6059 * grub-core/commands/cat.c: Show UTF-8 characters.
6061 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6063 * conf/Makefile.common: Poison float and double on non-emu.
6065 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6067 * configure.ac: Don't disable extended registers on emu.
6069 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6071 * configure.ac: Don't use extended registers on x86_64.
6072 Reported by: Peter Jones.
6074 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6076 * grub-core/term/efi/console.c: Fix compile error.
6078 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6080 Compressed HFS+ support.
6082 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6084 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6087 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6091 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6093 * grub-core/tests/setjmp_test.c: New test.
6095 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6097 New variables 'net_default_*' to determine MAC/IP of default interface.
6099 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6101 * tests/gettext_strings_test.in: A test to check for strings not
6102 marked for translation.
6104 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6106 * autogen.sh: Exclude unused libgcrypt files from translation.
6108 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6110 Simplify few strings.
6112 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6114 Mark few forgotten strings for translation.
6116 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6118 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6121 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6123 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6125 * grub-core/video/readers/tga.c: Likewise.
6127 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6129 * tests/priority_queue_unit_test.cc: New test.
6131 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6133 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6136 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6138 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6139 variable for one time boot menu entry.
6141 2013-05-05 Bean <bean123ch@gmail.com>
6143 * grub-core/commands/testspeed.c: New command testspeed.
6145 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6147 Factor-out human-size printing.
6149 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6151 Agglomerate more mallocs to speed-up gfxterm.
6153 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6155 Speed-up gfxterm by slightly agglomerating mallocs.
6157 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6161 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6163 Speed-up gfxterm by saving intermediate results in index+alpha
6166 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6168 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6171 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6173 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6174 line of timeout as it may contain the rest of long line.
6176 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6178 * grub-core/normal/main.c: Fix freed memory dereference.
6180 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6182 Fix several memory leaks.
6184 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6186 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6188 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6190 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6192 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6194 Fix test -a and -o precedence.
6195 Reported by: adrian15.
6197 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6199 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6201 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6203 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6204 and add it as source to functional_test module.
6206 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6208 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6210 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6212 New series of tests for gfxterm and gfxmenu.
6214 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6216 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6217 the theme path relative to $prefix/themes.
6219 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6221 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6223 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6225 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6227 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6230 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6232 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6233 grub_gfxmenu_timeout_notifications.
6234 (grub_gfxmenu_view_destroy): Likewise.
6236 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6238 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6240 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6242 Several fixes to ieee1275 and big-endian video.
6244 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6246 Add missing exports on mips.
6248 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6250 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6251 if no unifont is found.
6252 Restore original keyboard.
6254 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6256 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6257 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6259 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6261 First automated video test (running videotest and comparing results)
6263 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6265 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6266 instead of 2 to have full RGB/CMY test pattern.
6268 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6272 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6274 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6275 ARCS. All users updated.
6277 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6279 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6281 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6283 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6285 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6287 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6288 Reported by: qwertial.
6290 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6292 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6293 with syntax "XXX deg"/"XXX °".
6295 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6297 Make PCI init in i386-qemu port more robust.
6299 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6301 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6302 cached view is reused.
6303 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6306 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6308 Unify more code in grub-install_header.
6310 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6314 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6316 Enforce disabling of firmware disk drivers when native drivers kick in.
6318 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6320 * grub-core/commands/nativedisk.c: Customize the list of modules on
6321 platform. Don't try to search for disks already using native drivers.
6323 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6325 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6328 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6330 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6331 handling of variables containing backslash.
6333 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6335 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6337 Reported by: qwertial.
6339 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6341 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6343 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6345 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6347 Reported by: qwertial.
6349 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6351 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6353 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6355 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6357 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6359 New command `nativedisk'.
6361 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6363 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6364 * grub-core/loader/i386/bsd.c: Likewise.
6366 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6368 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6370 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6372 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6373 grub_get_unaligned16 rather than shifts.
6375 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6377 * grub-core/kern/file.c: Use const char * rather than casting to
6380 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6382 * grub-core/commands/probe.c: Add missing grub_device_close.
6384 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6386 * INSTALL: Document linguas.sh.
6388 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6390 Remove POTFILES.in and regenerate it in autogen.sh.
6392 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6394 Move --directory/--override-directorry to grub-install_header and unify.
6396 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6398 * grub-core/term/morse.c: Macroify dih and dah.
6400 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6402 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6404 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6406 * grub-core/term/ns8250.c: Systematically probe ports by writing
6407 to SR before using them.
6409 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6411 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6413 (check_sas): Get sas_adress info.
6415 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6417 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6420 2013-04-27 Leon Drugi <eyak>
6422 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6425 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6427 Core compression test.
6429 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6431 Implement grub_machine_get_bootlocation for ARC.
6433 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6435 Improve AHCI detection and command issuing.
6437 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6441 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6443 Make 'make check' work on emu.
6445 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6447 Replace libcurses with our own vt100 handling for the ease of testing
6448 and decreasing prerequisites.
6450 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6452 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6454 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6456 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6457 compile when not needed.
6459 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6461 * tests/pseries_test.in: New test.
6463 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6465 Add test to check that different boot mediums work.
6467 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6469 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6470 ofw limited ISO support.
6472 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6474 * configure.ac: Fix loongson conditional.
6476 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6480 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6482 Add serial on ARC platform.
6484 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6486 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6489 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6491 * tests/partmap_test.in: Add missing double semicolon.
6493 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6495 * util/grub-mkrescue.in: Fix loongson filename.
6497 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6499 * util/grub-mkrescue.in: Move all files that don't have a location
6500 set in stone under /boot/grub. Use ISO hard links rather than copies
6503 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6505 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6508 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6510 Make check work on mips-arc.
6512 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6514 * util/grub-mkrescue.in: Alias sashARCS as sash.
6516 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6518 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6521 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6523 * util/grub-install.in: Fix target fo qemu_mips.
6524 Fix extension on EFI.
6526 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6528 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6529 in front of chosen entry to mark it even if highlighting is lost.
6531 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6533 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6534 gfxpayload=keep if cbfb is active.
6536 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6538 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6540 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6542 Add missing video ids to coreboot and ieee1275 video.
6544 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6546 * util/grub-mkrescue.in: Add mips-arc support.
6548 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6550 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6552 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6554 Move mips-arc link address. Previous link address was chosen
6555 in belief that RAM on SGI platforms grows down while in fact it
6556 grows up from an unusual base.
6558 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6560 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6561 Fix a type which prevented CD-ROM and floppy boot.
6563 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6565 Support coreboot framebuffer.
6567 * grub-core/video/i386/coreboot/cbfb.c: New file.
6569 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6571 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6572 detecting too small regions.
6574 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6576 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6578 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6580 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6582 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6584 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6586 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6587 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6588 * grub-core/loader/powerpc/ieee1275/linux.c
6589 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6591 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6593 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6594 Look for /boot-rom as well as /rom/boot-rom.
6596 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6598 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6599 handling when creating text_layer failed.
6600 * grub-core/video/video.c (grub_video_create_render_target):
6601 Set result to 0 on error.
6602 (grub_video_delete_render_target): Do not dereference NULL.
6604 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6606 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6607 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6608 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6609 (grub_linux_load64): Mask out 2 high bits.
6611 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6613 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6616 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6618 Add support for pseries and other bootinfo machines to grub-mkrescue.
6620 Tested by: Paulo Flabiano Smorigo.
6622 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6624 * util/grub-mkrescue.in: Add GPT for EFI boot.
6626 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6628 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6629 It improves performance in qemu.
6631 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6633 * build-aux/snippet: Add missing gnulib files.
6635 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6637 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6639 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6641 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6643 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6644 2013-04-15 Peter Jones <pjones@redhat.com>
6646 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6648 Based on patch by Peter Jones.
6650 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6652 Fix DMRAID partition handling.
6654 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6656 * tests/grub_cmd_date.in: Skip on sparc64.
6658 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6660 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6661 firmware error messages.
6663 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6665 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6666 source and destination differ.
6668 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6670 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6673 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6675 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6676 match config-util.h to avoid warnings and increase compatibility.
6678 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6679 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6681 Add option to compress files on install/image creation.
6683 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6685 * docs/grub-dev.texi: Rearrange menu to match the section order.
6686 Reported by: Bryan Hundven.
6688 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6690 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6692 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6694 Move GRUB out of system area when using xorriso 1.2.9 or later.
6696 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6698 * tests/grub_cmd_date.in: Add missing exit 1.
6700 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6702 * tests/partmap_test.in: Skip on sparc64.
6704 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6706 Support grub-shell on sparc64.
6708 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6710 Support mkrescue on sparc64.
6712 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6714 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6715 Needed on OpenBIOS due to incomplete device tree.
6717 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6719 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6720 would be otherwise excluded.
6722 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6724 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6725 Inline name defines used only once.
6727 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6729 Fix memory leaks in ofnet.
6730 Reported by: Francesco Lavra.
6732 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6734 * docs/man/grub-glue-efi.h2m: Add missing file.
6736 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6738 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6740 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6742 Better support Apple Intel Macs on CD.
6744 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6746 Replace stpcpy with grub_stpcpy in tools.
6748 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6750 Handle Japanese special keys.
6751 Reported by: Hiroyuki YAMAMORI.
6752 Codes supplied by: Hiroyuki YAMAMORI.
6754 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6756 * util/grub-mkimage.c: Document memdisk implying --prefix.
6758 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6760 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6761 much we can do about it anyway.
6763 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6765 Fix handling of split transfers.
6767 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6769 * grub-core/net/http.c: Fix bad free.
6771 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6773 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6776 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6778 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6780 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6782 * tests/util/grub-shell.in: Fix it on powerpc.
6784 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6786 Turn off QEMU ACPI-way since new releases don't have shutdown port
6789 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6791 * docs/grub.texi: Update coreboot status info.
6793 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6795 * tests/grub_cmd_date.in: New test for datetime.
6797 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6799 * tests/partmap_test.in: Fix missing qemudisk setting.
6801 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6803 Support i386-ieee1275 grub-mkrescue and make check on it.
6805 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6807 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6810 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6812 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6813 GRUB_CMDLINE_XEN_DEFAULT.
6814 Reported by: Marc Warne (GigaTux) <gigatux>
6816 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6820 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6822 Use ACPI shutdown intests as traditional port was removed.
6824 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6826 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6829 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6831 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6832 Fix few warining messages and leaks while on it.
6834 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6836 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6837 links under grub-core/lib/libgcrypt-grub/mpi.
6839 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6841 Fix ia64-efi image generation on big-endian machines. Deduplicate
6842 some code while on it.
6843 Reported by: Leif Lindholm.
6845 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6847 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6850 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6852 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6854 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6856 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6859 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6861 * grub-core/normal/term.c: Few more fixes for menu entry editor
6863 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6865 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6867 * grub-core/normal/term.c: Few more fixes for menu entry editor
6869 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6871 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6873 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6874 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6876 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6878 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6879 instead of hardcoding grub.mo.
6881 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6883 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6885 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6887 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6888 grub-core/disk/geli.c.
6890 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6892 * util/grub-mkfont.c: Prefer enum to #define.
6894 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6896 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6898 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6900 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6902 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6904 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6906 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6908 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6910 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6912 * include/grub/bsdlabel.h: Use enums.
6914 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6916 Move GRUB_CHAR_BIT to types.h.
6918 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6920 * docs/grub.texi: Document more user commands.
6922 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6924 * docs/grub.texi: Document menuentry --id option.
6926 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
6928 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
6930 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6932 Unify file copying setup across different install scripts. Add
6933 options for performing partial install.
6935 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6936 2013-04-04 Peter Jones <pjones@redhat.com>
6938 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
6940 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6942 Use TSC as a possible time source on i386-ieee1275.
6944 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6946 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
6949 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6951 * util/grub-setup.c (setup): Handle some corner cases.
6953 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6955 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
6957 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6959 * grub-core/commands/verify.c: Save verified file to avoid it being
6960 tampered with after verification was done.
6962 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6964 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
6965 reported width by one to compensate for curesor algorithm problem.
6967 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6969 Fix screen corruption in menu entry editor and simplify the code
6972 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
6974 * util/grub-mount.c (fuse_init): Return error if fuse_main
6977 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
6979 * include/grub/elf.h: Add missing ARM relocation codes and fix
6982 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6984 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
6986 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6987 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6989 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
6990 into account when calculating radius.
6992 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6994 * grub-core/gfxmenu/view.c: Fix off-by-one error.
6996 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6998 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7000 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7002 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7003 missing closing bracket.
7005 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7007 * INSTALL: Mention xorriso requirement.
7009 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7011 * grub-core/commands/verify.c: Fix hash algorithms values for
7012 the first three hashes - they start with 1, not with 0.
7014 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7016 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7017 Try terminating EFI services several times due to quirks in some
7020 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7022 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7023 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7024 BankField extended opcodes.
7025 (get_sleep_type): Add minimal scope handling (just enough to
7026 handle setting the scope to the root path).
7027 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7028 * include/grub/acpi.h: Add enumeration values for Event, Device,
7029 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7031 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7033 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7036 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7038 * grub-core/disk/ahci.c: Give more time for AHCI request.
7040 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7042 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7045 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7047 Replace the region at 0 from coreboot tables to available in BSD
7050 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7052 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7055 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7057 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7060 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7062 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7063 handling of multi-device filesystems.
7065 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7067 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7070 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7072 Add new 'proc' filesystem framework and put luks_script into it.
7074 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7076 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7079 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7081 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7083 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7085 Add ability to generate newc additions on runtime.
7087 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7089 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7092 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7094 * po/POTFILES.in: Regenerate.
7096 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7098 * grub-core/commands/verify.c (hashes): Add several hashes
7101 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7103 Slight improve in USB-related boot-time checkpoints.
7105 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7107 * grub-core/commands/boottime.c: Fix copyright header.
7109 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7111 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7112 coreboot tables content. Support for cbmemc.
7114 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7116 Fix a conflict between ports structures with 2 controllers of
7119 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7121 * include/grub/boottime.h: Add missing file.
7123 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7125 Initialize USB ports in parallel to speed-up boot.
7127 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7129 Fix USB devices not being detected when requested
7130 due to delayed attach.
7132 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7134 Implement boot time analysis framework.
7136 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7138 Remove get_endpoint_descriptor and change all functions needing
7139 descriptor to just receive it as argument rather than endpoint
7142 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7144 Better estimate the maximum USB transfer size.
7146 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7148 Resend a packet if we got the wrong buffer in status.
7150 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7152 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7153 multiplication rather than division.
7155 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7157 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7160 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7162 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7163 operations to have intended shifts and not divisions.
7165 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7167 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7168 intended shifts rather than division.
7170 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7172 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7173 computation for some years before epoch. Avode confusing division
7176 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7178 * grub-core/video/i386/pc/vbe.c
7179 (grub_video_vbe_print_adapter_specific_info): Replace division by
7182 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7184 Adjust types in gdb module to have intended unsigned shifts rather than
7187 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7189 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7190 maximum size is 4G - 1 on hfs
7192 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7194 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7196 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7198 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7201 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7203 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7204 causing gcc error with gcc 4.7.1.
7206 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7208 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7209 dereference null pointer. While the code is technically correct, gcc
7210 may eliminate a null check if pointer is already dereferenced.
7212 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7214 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7216 * grub-core/normal/term.c (read_terminal_list): Likewise.
7218 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7220 Lift up core size limits on some platforms. Fix potential memory
7221 corruption with big core on small memory systems. Document remaining
7224 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7226 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7229 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7231 Remove all trampoline support. Add -Wtrampolines when
7232 present. Remove symbols used for trampolines to make
7233 link fail if trampolines are present.
7235 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7237 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7238 append out of its parent.
7240 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7242 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7245 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7247 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7248 all vars to a macro. All users updated.
7250 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7252 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7255 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7257 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7259 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7261 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7263 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7265 Move to more hookless approach in IEEE1275 devices handling.
7267 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7269 * grub-core/kern/term.c (grub_term_normal_color),
7270 (grub_term_highlight_color): Add back lost defaults.
7272 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7274 Make elfload not use hooks. Opt for flags and iterators instead.
7276 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7278 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7279 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7281 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7283 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7285 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7287 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7288 hook pass-through parameter. All users updated and unnested.
7290 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7292 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7295 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7297 * grub-core/fs/hfs.c: Remove nested functions.
7299 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7301 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7302 the context through.
7303 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7305 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7307 * util/grub-editenv.c (list_variables): Move print_var out of its
7310 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7312 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7315 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7317 * grub-core/gentrigtables.c: Make tables const.
7319 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7321 Remove nested functions from videoinfo iterators.
7323 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7325 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7326 for 64-bit platforms.
7328 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7330 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7331 a FOR_CHILDREN macro.
7333 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7335 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7336 platform from firmware path.
7338 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7340 Enable linux16 on non-BIOS systems for i.a. memtest.
7342 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7344 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7346 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7348 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7349 Fix end of table condition.
7351 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7353 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7356 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7358 * grub-core/fs/jfs.c: Remove nested functions.
7360 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7362 * grub-core/fs/minix.c: Remove nested functions.
7364 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7366 * grub-core/fs/iso9660.c: Remove nested functions.
7368 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7370 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7373 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7375 * util/grub-fstest.c: Remove nested functions.
7377 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7379 * grub-core/loader/machoXX.c: Remove nested functions.
7381 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7383 Remove nested functions from disk and file read hooks.
7385 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7386 (struct grub_disk): Add read_hook_data member.
7387 * include/grub/file.h (struct grub_file): Likewise.
7388 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7393 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7395 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7396 Fix off by one error in enumerating extended partitions.
7398 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7400 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7401 memory leak if device name is not found.
7403 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7405 * grub-core/normal/menu_entry.c (update_screen): remove
7406 unused variable `off' which caused scroll down arrow to be always shown.
7408 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7410 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7411 access to unallocated memory.
7413 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7415 * Makefile.util.def: Add partmap/msdos.c to common library.
7416 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7417 * grub-core/disk/ldm.c: Check for existence of
7418 GRUB_PC_PARTITION_TYPE_LDM.
7420 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7422 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7423 sizes and display sector size.
7425 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7427 Implement new command cmosdump.
7429 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7431 Support Openfirmware disks with non-512B sectors.
7433 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7435 * (grub_ofdisk_get_block_size): New function.
7436 * (grub_ofdisk_prepare): Use the correct block size.
7437 * (grub_ofdisk_read): Likewise.
7438 * (grub_ofdisk_write): Likewise.
7439 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7442 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7444 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7446 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7448 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7451 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7453 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7456 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7458 Implement USBDebug (full USB stack variant).
7460 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7462 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7463 unless they have unexpected values.
7465 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7467 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7470 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7472 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7473 zero-out of port structure.
7475 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7477 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7478 of extended attributes.
7480 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7482 * util/grub-install.in: change misleading comment about
7485 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7487 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7488 when menu highlight color isn't set.
7490 2013-01-27 C. Masloch <pushbx@38.de>
7492 Improve FreeDOS direct loading support compatibility.
7494 * include/grub/i386/relocator.h (grub_relocator16_state):
7496 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7498 (grub_relocator16_boot): Handle %ebp.
7499 * grub-core/lib/i386/relocator16.S: Likewise.
7500 * grub-core/loader/i386/pc/freedos.c:
7501 Load BPB to pass kernel which partition to load from.
7502 Check that kernel file is not too large.
7503 Set register dl to BIOS unit number as well.
7505 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7507 * util/grub-reboot.in (usage): Document the need for
7509 * util/grub-set-default.in (usage): Likewise.
7510 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7512 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7514 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7515 than defining WORDS_BIGENDIAN manually.
7517 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7519 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7522 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7524 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7526 (blit_comb: add_device_width): Likewise.
7528 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7530 Remove nested functions from USB iterators.
7532 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7533 (grub_usb_controller_iterate_hook_t): Likewise.
7534 (grub_usb_iterate): Add hook_data argument.
7535 (grub_usb_controller_iterate): Likewise.
7536 (struct grub_usb_controller_dev.iterate): Likewise.
7538 Update all implementations and callers.
7540 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7542 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7543 margin when not needed.
7545 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7547 Make color variables global instead of it being per-terminal.
7549 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7551 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7554 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7556 Fix powerpc and sparc64 build failures caused by un-nesting memory
7559 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7561 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7562 parameter declarations.
7564 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7566 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7568 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7570 Improve spkmomdem reliability by adding a separator between bytes.
7572 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7574 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7575 an Acer registration utility with several sightings in the wild.
7576 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7578 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7580 Remove nested functions from filesystem directory iterators.
7582 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7583 (struct grub_fs.dir): Add hook_data argument.
7585 Update all implementations and callers.
7587 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7589 * docs/grub.texi (Multi-boot manual config): Fix typo for
7592 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7594 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7595 until after its use in generate_image.
7597 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7599 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7600 initrd size to addr_min, since the initrd will be allocated after
7603 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7605 * conf/Makefile.common: Fix autogen rules to pass definition
7606 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7608 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7610 * include/grub/elf.h: Update ARM definitions based on binutils.
7612 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7614 Split long USB transfers into short ones.
7616 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7618 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7619 is interrupted by ESC.
7621 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7623 * util/grub-script-check.c (main): Uniform the error message.
7625 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7627 Remove nested functions from ELF iterators.
7629 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7631 Remove nested functions from device iterators.
7633 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7634 (grub_arc_iterate_devs): Add hook_data argument.
7635 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7636 (struct grub_ata_dev.iterate): Add hook_data argument.
7637 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7638 (grub_device_iterate): Add hook_data argument.
7639 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7640 (struct grub_disk_dev.iterate): Add hook_data argument.
7641 (grub_disk_dev_iterate): Likewise.
7642 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7644 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7646 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7648 (struct grub_partition_map.iterate): Add hook_data argument.
7649 (grub_partition_iterate): Likewise.
7650 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7651 (struct grub_scsi_dev.iterate): Add hook_data argument.
7655 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7657 Fix typos for "developer" and "development".
7659 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7661 Add license header to spkmodem-recv.c.
7663 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7665 Rewrite spkmodem to use PIT for timing. Double the speed.
7667 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7669 Add new command pcidump.
7671 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7673 New terminal outputs using serial: morse and spkmodem.
7675 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7677 Improve bidi handling in entry editor.
7679 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7681 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7682 argument to prevent name collision.
7684 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7686 Remove nested functions from script reading and parsing.
7688 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7689 getline_data argument, passed to getline.
7690 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7691 getline_data argument, passed to grub_parser_split_cmdline.
7692 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7693 lexerstate->getline_data to lexerstate->getline.
7694 (grub_script_lexer_init): Add getline_data argument, saved in
7695 lexerstate->getline_data.
7696 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7697 argument, passed to grub_script_parse.
7698 * grub-core/script/script.c (grub_script_parse): Add getline_data
7699 argument, passed to grub_script_lexer_init.
7700 * include/grub/parser.h (grub_parser_split_cmdline): Update
7701 prototype. Update all callers to pass appropriate getline data.
7702 (struct grub_parser.parse_line): Likewise.
7703 (grub_rescue_parse_line): Likewise.
7704 * include/grub/reader.h (grub_reader_getline_t): Add void *
7706 * include/grub/script_sh.h (struct grub_lexer_param): Add
7707 getline_data member.
7708 (grub_script_parse): Update prototype. Update all callers to pass
7709 appropriate getline data.
7710 (grub_script_lexer_init): Likewise.
7711 (grub_normal_parse_line): Likewise.
7713 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7715 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7716 static instead of nested. Rename to ...
7717 (grub_parser_execute_getline): ... this.
7718 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7720 * grub-core/normal/main.c (read_config_file: getline): Make static
7721 instead of nested. Rename to ...
7722 (read_config_file_getline): ... this.
7723 (grub_normal_read_line): Add unused data argument.
7724 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7725 getline): Make static instead of nested. Rename to ...
7726 (grub_script_execute_sourcecode_getline): ... this.
7727 * util/grub-script-check.c (main: get_config_line): Make static
7730 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7732 Remove nested functions from memory map iterators.
7734 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7735 argument, passed to hook.
7736 * grub-core/kern/i386/coreboot/mmap.c
7737 (grub_linuxbios_table_iterate): Likewise.
7738 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7740 (grub_machine_mmap_iterate): Add hook_data argument.
7741 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7742 Add hook_data argument, passed to hook.
7743 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7745 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7747 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7749 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7751 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7753 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7755 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7756 (grub_machine_mmap_iterate): Likewise.
7757 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7758 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7760 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7761 Remove NESTED_FUNC_ATTR from here and from all users.
7762 (grub_mmap_iterate): Update prototype.
7763 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7764 pass appropriate hook data.
7765 (grub_machine_mmap_iterate): Likewise.
7767 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7768 static instead of nested.
7769 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7771 (lsmmap_hook): ... this.
7772 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7774 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7775 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7776 heap_init): Likewise.
7777 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7779 (mmap_iterate_hook): ... this.
7780 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7782 * grub-core/lib/ieee1275/relocator.c
7783 (grub_relocator_firmware_get_max_events: count): Likewise.
7784 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7786 (grub_relocator_firmware_fill_events_iter): ... this.
7787 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7788 hook): Likewise. Rename to ...
7789 (grub_relocator_alloc_chunk_align_iter): ... this.
7790 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7792 (generate_e820_mmap_iter): ... this.
7793 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7795 (count_hook): ... this.
7796 (grub_linux_boot: hook): Likewise. Rename to ...
7797 (grub_linux_boot_mmap_find): ... this.
7798 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7799 (grub_linux_boot_mmap_fill): ... this.
7800 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7801 hook): Likewise. Rename to ...
7802 (grub_fill_multiboot_mmap_iter): ... this.
7803 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7804 hook): Likewise. Rename to ...
7805 (count_hook): ... this.
7806 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7807 hook): Likewise. Rename to ...
7808 (grub_fill_multiboot_mmap_iter): ... this.
7809 * grub-core/loader/powerpc/ieee1275/linux.c
7810 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7811 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7812 Likewise. Rename to ...
7813 (alloc_phys_choose): ... this.
7814 (determine_phys_base: get_physbase): Likewise.
7815 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7816 find_hook): Likewise.
7817 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7818 (malloc_hook: count_hook): Likewise.
7819 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7820 Likewise. Rename to ...
7821 (lower_hook): ... this.
7822 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7823 (upper_hook): ... this.
7824 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7825 (post64_hook): ... this.
7826 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7827 Likewise. Rename to ...
7828 (lower_hook): ... this.
7829 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7830 (upper_hook): ... this.
7831 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7832 (grub_mmap_iterate: fill_hook): Likewise.
7833 (fill_mask): Pass addr and mask within a single struct.
7834 (grub_cmd_badram: hook): Make static instead of nested. Rename
7836 (badram_iter): ... this.
7837 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7838 (cutmem_iter): ... this.
7840 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7842 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7843 delimit path in strings using quotes.
7844 * util/getroot.c (grub_guess_root_devices): Likewise.
7845 (grub_make_system_path_relative_to_its_root): Likewise.
7846 * util/grub-probe.c (probe): Likewise.
7847 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7848 (xrealpath): Likewise.
7850 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7852 Fix compilation with older compilers.
7854 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7855 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7857 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7858 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7859 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7861 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7862 * include/grub/crypto.h: Add type defines.
7863 * util/import_gcrypth.sed: Remove duplicate type defines.
7865 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7867 New command list_trusted.
7869 * grub-core/commands/verify.c (grub_cmd_list): New function.
7871 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7873 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7876 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7878 Remove nested functions from PCI iterators.
7880 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7881 passed to hook. Update all callers to pass appropriate hook data.
7882 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7883 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7884 Remove NESTED_FUNC_ATTR from here and from all users.
7885 (grub_pci_iterate): Update prototype.
7886 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7887 instead of nested. Rename to ...
7888 (grub_cs5536_find_iter): ... this.
7889 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7890 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7892 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7894 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7896 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7898 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7899 * grub-core/video/radeon_fuloong2e.c
7900 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7901 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7902 find_card): Likewise.
7903 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7906 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7908 * grub-core/commands/verify.c: Mark messages for translating.
7910 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7912 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
7915 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7917 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
7920 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7922 * autogen.sh: Do not try to delete nonexistant files.
7923 * util/import_gcrypth.sed: Add some missing header removals.
7925 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
7927 Clean up dangling references to grub-setup.
7928 Fixes Ubuntu bug #1082045.
7930 * docs/grub.texi (Images): Refer generally to grub-install rather
7931 than directly to grub-setup.
7932 (Installing GRUB using grub-install): Remove direct reference to
7934 (Device map) Likewise.
7935 (Invoking grub-install): Likewise.
7936 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7937 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7938 * util/grub-install.in (usage): Likewise.
7940 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
7941 Apply to grub-bios-setup and grub-sparc64-setup rather than to
7943 * configure.ac: Remove grub_setup output variable.
7945 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
7947 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
7948 grub-setup to grub-sparc64-setup.
7950 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7952 Import gcrypt public-key cryptography and implement signature checking.
7954 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7956 * grub-core/fs/ntfs.c: Ue more appropriate types.
7957 * grub-core/fs/ntfscomp.c: Likewise.
7958 * include/grub/ntfs.h: Likewise.
7960 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7962 Support Apple FAT binaries on non-Apple platforms.
7964 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
7965 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
7967 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
7970 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7972 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
7975 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
7977 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
7978 explicitly zeroing elements.
7979 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
7980 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
7981 of elements in a structure already allocated using grub_zalloc.
7982 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
7984 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
7986 * docs/grub.texi (grub_cpu): New subsection.
7987 (grub_platform): Likewise.
7989 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7991 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
7993 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7995 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
7998 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8000 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8001 * grub-core/fs/ntfscomp.c: Likewise.
8002 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8003 (grub_ntfs_comp): Likewise.
8005 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8007 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8009 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8010 of groups_per_block. All users updated.
8012 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8014 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8015 grub_error properly.
8016 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8017 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8019 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8021 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8022 always in /boot/zfs.
8023 Reported by: Yuta Satoh.
8025 2013-01-03 Yuta Satoh <nigoro>
8027 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8030 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8032 * configure.ac: Extend -Wno-trampolines to host.
8034 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8036 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8039 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8041 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8042 (Invoking grub-script-check): Likewise.
8044 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8046 * docs/grub.texi (Invoking grub-mount): New section.
8047 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8049 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8051 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8052 test failures, so that a failing unit test correctly causes 'make
8055 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8057 Fix failing printf test.
8059 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8060 '$' in the correct order when collecting type information.
8062 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8064 * docs/grub.texi (configfile): Explain environment variable
8066 (source): New section.
8067 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8069 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8071 Remove several trivially-unnecessary uses of nested functions.
8073 * grub-core/commands/i386/pc/sendkey.c
8074 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8076 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8078 (legacy_file_getline): ... this.
8079 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8081 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8082 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8084 (probe_dummy_iter): ... this.
8085 * grub-core/kern/i386/coreboot/mmap.c
8086 (grub_linuxbios_table_iterate: check_signature): Likewise.
8087 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8088 check_varstate): Likewise. Mark inline.
8089 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8090 an additional parameter.
8091 (find_long: fnd_long): Likewise. Pass two additional parameters.
8092 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8093 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8094 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8095 Likewise. Rename to ...
8096 (grub_cmos_find_port_iter): ... this.
8097 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8099 (find_rtc_iter): ... this.
8101 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8102 function directly into the function body, since it is only called
8105 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8107 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8108 __attribute__ ((unused)).
8109 * grub-core/video/bochs.c (find_card): Likewise.
8110 * grub-core/video/cirrus.c (find_card): Likewise.
8111 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8112 * grub-core/video/sis315pro.c (find_card): Likewise.
8113 * grub-core/video/sm712.c (find_card): Likewise.
8115 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8117 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8118 Fixes Savannah bug #37821.
8120 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8122 Apply program name transformations at build-time rather than at
8123 run-time. Fixes Debian bug #696465.
8125 * acinclude.m4 (grub_TRANSFORM): New macro.
8126 * configure.ac: Create output variables with transformed names for
8128 * util/bash-completion.d/grub-completion.bash.in: Use
8129 pre-transformed variables for program names.
8130 * util/grub-install.in: Likewise.
8131 * util/grub-kbdcomp.in: Likewise.
8132 * util/grub-mkconfig.in: Likewise.
8133 * util/grub-mkconfig_lib.in: Likewise.
8134 * util/grub-mknetdir.in: Likewise.
8135 * util/grub-mkrescue.in: Likewise.
8136 * util/grub-mkstandalone.in: Likewise.
8137 * util/grub-reboot.in: Likewise.
8138 * util/grub-set-default.in: Likewise.
8139 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8140 * tests/util/grub-shell-tester.in: Remove unused assignment.
8141 * tests/util/grub-shell.in: Likewise.
8142 * util/grub.d/00_header.in: Likewise.
8144 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8146 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8148 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8150 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8152 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8154 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8155 Reported by: Eriks Latosheks <foresterlv>.
8157 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8159 * docs/grub.texi (Network): Update instructions on generating netboot
8162 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8164 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8165 around device name if necessarry.
8167 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8169 * util/grub-install.in: Follow the symbolic link parameter added
8170 to the file command.
8172 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8174 * util/grub-install.in: Remove stale TODO.
8176 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8178 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8179 dynamic allocation for the bootpath buffer.
8181 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8183 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8186 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8188 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8189 argument rather than font name. All users updated.
8190 (grub_gfxterm_set_window): Likewise.
8192 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8194 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8197 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8199 * util/getroot.c (convert_system_partition_to_system_disk): Support
8202 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8204 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8205 infinite loop on corrupted FS.
8207 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8209 Fix big-endian mtime.
8211 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8212 together sec and usec.
8213 (grub_ufs_dir): Use correct byteswapping for UFS time.
8215 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8217 Support big-endian UFS1.
8219 * Makefile.util.def (libgrubmods): Add ufs_be.c
8220 * grub-core/Makefile.core.def (ufs1_be): New module.
8221 * grub-core/fs/ufs_be.c: New file.
8222 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8225 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8227 * include/grub/types.h: Fix functionality unaffecting typo in
8228 GRUB_TARGET_WORDSIZE conditional macro.
8230 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8232 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8234 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8236 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8237 that /netbsd appears first (when it exists).
8239 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8241 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8242 Fixes Savannah bug #37558.
8244 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8246 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8247 description of extract_entries_configfile.
8249 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8251 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8253 (grub_cmd_linux): Likewise.
8254 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8255 preferred_lifetime. Update all users.
8257 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8259 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8260 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8262 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8264 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8265 errors from grub-probe to /dev/null, not stdout.
8267 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8269 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8272 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8274 * util/grub-install.in: Make the error message if $source_dir
8275 doesn't exist more useful.
8277 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8279 Fix grub-emu build on FreeBSD.
8281 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8282 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8284 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8285 implementation is currently Linux-specific.
8286 * util/getroot.c (exec_pipe): Define only on Linux or when either
8287 libzfs or libnvpair is unavailable.
8288 (find_root_devices_from_poolname): Remove unused path variable.
8290 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8292 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8293 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8294 should fit before end == 63.
8296 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8298 * util/grub-setup.c (write_rootdev): Remove unused core_img
8299 parameter. Update all callers.
8300 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8301 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8304 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8306 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8307 (grub_add_tab): New function.
8308 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8309 * util/grub.d/10_illumos.in: Likewise.
8310 * util/grub.d/10_kfreebsd.in: Likewise.
8311 * util/grub.d/10_linux.in: Likewise.
8312 * util/grub.d/10_netbsd.in: Likewise.
8313 * util/grub.d/10_windows.in: Likewise.
8314 * util/grub.d/10_xnu.in: Likewise.
8315 * util/grub.d/20_linux_xen.in: Likewise.
8316 * util/grub.d/30_os-prober.in: Likewise.
8318 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8320 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8321 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8322 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8323 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8324 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8326 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8327 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8329 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8331 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8333 Reported by: BURETTE, Bernard.
8335 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8337 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8340 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8342 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8343 IEEE1275 machines. Fixes powerpc-emu compilation.
8344 * include/grub/terminfo.h: Likewise.
8346 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8348 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8350 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8352 (efiemu_set_variable): Make vendor_guid a const pointer.
8354 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8356 Don't require grub-mkconfig_lib to generate manpages for programs.
8358 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8359 dependencies, don't add grub-mkconfig_lib.
8360 (program): Pass empty adddeps.
8361 (script): Pass grub-mkconfig_lib as adddeps.
8363 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8365 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8366 * util/getroot.c (grub_find_device): Likewise.
8367 (get_mdadm_uuid): Likewise.
8368 (grub_util_is_imsm): Likewise.
8369 (grub_util_pull_device): Likewise.
8370 * util/grub-probe.c (probe): Likewise.
8372 2012-09-10 Benoit Gschwind <gschwind>
8374 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8375 (devs): Add devpath_8.
8377 2012-09-08 Peter Jones <pjones@redhat.com>
8379 * grub-core/Makefile.core.def (efifwsetup): New module.
8380 * grub-core/commands/efi/efifwsetup.c: New file.
8381 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8382 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8384 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8386 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8388 * configure.ac: Add SuSe path.
8390 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8394 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8396 * util/import_gcry.py: Sort cipher_files, to make build system
8397 generation more deterministic.
8399 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8401 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8402 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8403 (grub_set_datetime): Likewise.
8405 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8407 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8410 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8412 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8414 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8416 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8418 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8420 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8421 required for checkouts from bzr, but it may be useful for users or
8422 distributors wishing to update translations against a tarball
8423 distribution, and it can be helpful for the tarball to be a superset
8426 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8428 * Makefile.am (EXTRA_DIST): Add
8429 grub-core/tests/boot/linux.init-mips.S,
8430 grub-core/tests/boot/linux.init-ppc.S, and
8431 grub-core/tests/boot/linux-ppc.cfg.
8433 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8435 * grub-core/mmap/mips/loongson: Remove empty directory.
8437 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8439 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8442 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8444 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8447 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8449 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8451 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8453 * po/POTFILES.in: Regenerated.
8455 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8457 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8458 (NetBSD): New subsection.
8460 2012-07-22 Ales Nesrsta <starous@volny.cz>
8462 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8463 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8465 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8467 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8468 * util/grub.d/10_hurd.in: Add missing quoting.
8469 * util/grub.d/10_illumos.in: Likewise.
8470 * util/grub.d/10_kfreebsd.in: Likewise.
8471 * util/grub.d/10_linux.in: Likewise.
8472 * util/grub.d/20_linux_xen.in: Likewise.
8474 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8476 New command `lsefi'.
8478 * grub-core/Makefile.core.def (lsefi): New module.
8479 * grub-core/commands/efi/lsefi.c: New file.
8480 * include/grub/efi/api.h: Add more GUIDs.
8482 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8484 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8485 (grub_bsd_elf32_hook): Likewise.
8486 (grub_bsd_elf64_size_hook): Likewise.
8487 (grub_bsd_elf64_hook): Likewise.
8488 (grub_bsd_load_elf): Likewise.
8490 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8492 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8493 if hash function is unavailable.
8494 (dec_stream_header): Likewise.
8496 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8498 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8501 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8503 Fix coreboot compilation.
8505 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8506 (grub_vga_text_init_real): ... this.
8507 (grub_vga_text_fini): Rename to ...
8508 (grub_vga_text_fini_real): ... this.
8510 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8512 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8514 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8516 * grub-core/lib/legacy_parse.c: Support clear and testload.
8518 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8520 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8522 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8524 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8526 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8528 * grub-core/net/tftp.c (ack): Fix endianness problem.
8529 (tftp_receive): Likewise.
8530 Reported by: Michael Davidsaver.
8532 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8534 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8536 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8538 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8539 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8540 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8542 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8544 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8546 Reported by: Stuart Hayes.
8548 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8550 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8552 * grub-core/Makefile.core.def (mda_text): New module.
8553 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8554 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8555 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8556 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8558 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8559 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8560 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8562 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8564 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8566 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8568 * grub-core/term/i386/vga_common.c: Removed.
8569 * include/grub/i386/vga_common.h: Likewise.
8570 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8571 (grub_vga_cr_bw_read): Likewise.
8572 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8573 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8574 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8575 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8576 grub_vga_cr_read/grub_vga_cr_write.
8577 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8579 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8581 * configure.ac: Bump version to 2.00.
8582 * grub-core/normal/main.c (features): Add feature_200_final.
8584 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8585 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8587 * NEWS: Fix unclarity and language mistakes.
8589 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8591 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8592 additional size to 3 pages.
8593 Reported by: Stuart Hayes.
8595 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8597 * NEWS: Add 2.00 entry.
8599 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8601 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8602 put explicit "/" for empty path.
8603 (wildcard_expand): Improve dprintf.
8605 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8607 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8608 it's equal to currnode. This can happen with "" symlink.
8610 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8612 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8613 echo shell command by printf command.
8615 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8617 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8618 the value returned by firmware is the maximal position, not diumension.
8619 (grub_terminfo_output_state): Use a more sane fallback.
8621 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8623 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8625 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8627 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8628 frequency to 150 MHz.
8630 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8634 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8636 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8638 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8640 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8642 Handle slash in HFS label.
8644 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8645 (grub_hfs_dir): Tanslate slash.
8646 (grub_hfs_label): Don't translate slash.
8648 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8650 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8651 network protocol listing since it introduces problematic dependency on
8654 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8656 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8658 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8660 Init video early on yeeloong to avoid being rebooted by watchdog.
8662 * grub-core/Makefile.am (gensm712): New target.
8663 (sm712_start.S): Likewise.
8664 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8665 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8666 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8668 * include/grub/vga.h: Move registry definitions to...
8669 * include/grub/vgaregs.h: ... here.
8671 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8673 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8676 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8678 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8679 platforms with firmware disk drivers in the core.
8681 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8683 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8684 informative verbose message.
8685 (read_lv): Handle 64-bit segment size.
8687 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8689 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8691 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8693 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8694 character but still remove trainling spaces.
8695 (grub_fat_label): Ignore archive flag.
8697 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8699 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8700 cast between linux_kernel_header and linux_kernel_params.
8702 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8704 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8706 (grub_raid6_recover_func_t): Likewise.
8707 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8708 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8710 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8712 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8714 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8718 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8719 [__NetBSD__]: Add explicit cast before bitshift.
8721 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8723 * configure.ac: Bump to 2.00~rc1.
8725 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8727 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8730 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8731 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8733 * docs/grub.texi: Fix search syntax.
8734 (Multi-boot manual config): Put msdos rather than GPT example.
8735 Grammar corrections.
8737 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8739 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8741 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8743 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8745 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8747 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8748 message on double free. Put the value of magic in case of mismatch.
8750 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8752 Speed-up video on yeeloong.
8754 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8756 (grub_video_sm712_video_fini): Unmap cached_ptr.
8757 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8758 (grub_video_sm712_set_active_render_target): Removed.
8759 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8760 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8763 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8765 Avoid flushing the same line multiple times on loongson.
8767 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8768 Step in 32 bytes and not 1 byte.
8769 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8772 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8774 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8777 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8779 Implement flow control for http.
8781 * grub-core/net/http.c (parse_line): Handle response 206.
8782 (http_receive): Stall if too many packets are in the queue.
8783 (http_establish): Fix range header.
8784 (http_seek): Fix double free.
8785 (http_close): Likewise.
8786 (http_packets_pulled): New function.
8787 (grub_http_protocol): Set http_seek
8788 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8789 (ack_real): Set window depending on i_stall.
8790 (grub_net_send_tcp_packet): Likewise.
8791 (grub_net_tcp_stall): New function.
8792 (grub_net_tcp_unstall): Likewise.
8793 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8794 (grub_net_tcp_unstall): Likewise.
8796 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8798 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8800 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8802 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8804 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8806 * tests/util/grub-shell.in: Fix a typo.
8808 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8810 Implement flow control for tftp.
8812 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8813 packets but stop only if stop condition is satisfied.
8814 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8815 `stall' instead of `eof' as stop condition.
8816 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8817 (http_err): Likewise.
8818 * grub-core/net/tftp.c (ack): Replace the first argument with data
8820 (tftp_receive): Stall if too many packets are in wait queue.
8821 (tftp_packets_pulled): New function.
8822 (grub_tftp_protocol): Set packets_pulled.
8823 * include/grub/net.h (grub_net_packets): New field count.
8824 (grub_net_put_packet): Increment count.
8825 (grub_net_remove_packet): Likewise.
8826 (grub_net_app_protocol): New field `packets_pulled'.
8827 (grub_net): New field `stall'.
8829 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8831 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8832 sync part to handle them.
8834 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8836 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8837 * grub-core/net/drivers/ieee1275/ofnet.c
8838 (grub_ieee1275_net_config_real): Likewise.
8840 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8842 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8843 the direct route for server/gateway.
8845 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8847 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8848 IP address to server name since we may not hame the DNS.
8850 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8852 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8853 freeing random buffer on failure.
8854 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8856 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8858 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8860 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8862 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8864 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8865 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8866 Handle malloc error correctly.
8868 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8870 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8873 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8875 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8878 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8880 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8881 none is explicitly specified.
8883 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8885 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8888 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8890 Respect netmask from bootp/dhcp.
8892 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8893 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8894 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8896 (grub_net_add_ipv4_local): ... this.
8897 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8898 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8899 (grub_net_add_ipv4_local): New proto.
8901 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8903 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8904 determining EFI memory map size.
8906 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8908 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8910 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8912 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
8913 when looking for partition separator.
8915 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8917 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8920 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8922 Restructure FAT driver to avoid hook in label reading as it hits a
8925 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
8926 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
8927 (grub_fat_iterate_dir): Split into ...
8928 (grub_fat_iterate_init): ... this, ...
8929 (grub_fat_iterate_fini): ... this, ...
8930 (grub_fat_iterate_dir_next): ... and this. All users updated.
8932 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8934 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8935 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
8936 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8937 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
8938 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
8939 New fields last_key and last_key_time.
8940 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
8941 extended key-esc into extended key-extended key.
8943 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8945 Avoid unnecessary memcpy of whole video buffer.
8947 * grub-core/video/fb/video_fb.c (dirty): New struct.
8948 (framebuffer): Add members current_dirty and previous_dirty.
8949 (dirty): New function.
8950 (grub_video_fb_fill_rect): Update dirty.
8951 (common_blitter): Likewise.
8952 (grub_video_fb_scroll): Likewise.
8953 (doublebuf_blit_update_screen): Copy only dirty part.
8954 (doublebuf_pageflipping_update_screen): Likewise.
8955 (grub_video_fb_doublebuf_blit_init): Init dirty.
8956 (doublebuf_pageflipping_init): Likewise.
8957 (grub_video_fb_setup): Likewise.
8959 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8961 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
8964 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8966 Fix wildcard regexp dot and other special characters handling.
8967 Reported by: Robert Mabee.
8969 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
8970 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
8971 (split_path): Trigger expansion on '?'.
8972 (unescape): New function.
8973 (wildcard_expand): Unescape parts copied without globbing.
8974 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
8975 (grub_script_arglist_to_argv): Don't unescape expansions.
8977 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8979 * include/grub/net.h (grub_net_card): New member txbufsize.
8980 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
8981 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
8982 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
8983 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
8985 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
8986 compatible property to check for macs. Set
8987 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
8988 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
8989 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
8990 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
8991 (send_card_buffer): Use txbuf.
8992 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
8993 nested function out of the parent while on it.
8995 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8997 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
8999 (grub_ieee1275_net_config_real): Fix config pointer.
9001 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9003 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9004 filename parsing to non-block devices.
9006 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9008 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9010 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9012 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9015 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9017 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9018 UUID search command even if hints probing failed.
9020 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9022 * po/POTFILES.in: Regenerated.
9024 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9026 Speed-up video on fuloong.
9028 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9030 (grub_pci_device_unmap_range): Handle non-cached address.
9031 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9033 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9034 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9035 (grub_video_sis315pro_set_active_render_target): Removed.
9036 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9037 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9038 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9040 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9043 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9045 * docs/grub.texi (Multi-boot manual config): New section.
9047 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9049 Avoid slow read-back from VRAM.
9051 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9053 * grub-core/video/fb/video_fb.c
9054 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9055 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9056 (front_target): Remove front_target. Add pages.
9057 (grub_video_fb_init): Skip setting front_pages.
9058 (grub_video_fb_fini): Likewise.
9059 (doublebuf_blit_update_screen): Use pages.
9060 (grub_video_fb_doublebuf_blit_init): Likewise.
9061 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9062 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9063 (grub_video_fb_setup): Prefer doublebuffing.
9065 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9067 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9070 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9074 * tests/util/grub-shell.in: Handle loongson.
9075 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9077 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9078 Reboot instead of shutdown if REBOOT is defined.
9080 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9082 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9083 sized ports since unlike on real hardware qemu supports only 32-bit
9086 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9088 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9089 * util/grub-mkrescue.in: Handle loongson.
9091 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9093 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9094 Set is_part appropriately.
9095 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9096 names. Canonicalize partition without full disk.
9098 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9100 Revert usb-quiesce since it's wrong.
9102 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9103 (grub_ofdisk_init): Don't do quiesce.
9105 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9107 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9108 PowerMac workaround to Xserves as well.
9109 Information supplied by: Benjamin Herrenschmidt.
9111 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9113 Don't assume that beginning address is also the entry point on ppc.
9115 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9116 (grub_linux_boot): Use linux_entry.
9117 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9118 (grub_linux_load64): Likewise.
9120 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9122 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9124 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9126 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9127 needlessly lose the console.
9129 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9131 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9134 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9136 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9137 than current grub_get_rtc() not implemented when booted with
9138 coreboot without TSC.
9140 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9141 Add machine/time.h to kernel headers on loongson.
9142 * grub-core/Makefile.core.def (kernel): Remove
9143 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9144 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9145 (grub_get_rtc): Likewise.
9146 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9147 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9148 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9149 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9150 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9151 rather than installing known non-working time source.
9152 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9153 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9154 * include/grub/time.h: Don't include machine/time.h.
9155 * include/grub/efi/time.h: Removed.
9156 * include/grub/i386/efi/time.h: Likewise.
9157 * include/grub/i386/ieee1275/time.h: Likewise.
9158 * include/grub/powerpc/ieee1275/time.h: Likewise.
9159 * include/grub/sparc64/ieee1275/time.h: Likewise.
9160 * include/grub/x86_64/efi/time.h: Likewise.
9162 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9164 Remove dot on i and j when combining with above diacritics.
9166 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9168 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9169 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9170 with dotless variants when any combining above is present.
9172 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9174 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9175 text and not binary.
9177 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9179 Stop polling as soon as we have the packet we were waiting for.
9181 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9183 * grub-core/net/arp.c (have_pending): New var.
9184 (pending_req): Likewise.
9185 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9187 (grub_net_arp_receive): Set have_pending.
9188 * grub-core/net/dns.c (recv_data): New field stop.
9189 (recv_hook): Set stop.
9190 (grub_net_dns_lookup): Init stop and use as stop condition.
9191 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9193 * grub-core/net/net.c (grub_net_poll_cards): New argument
9194 stop_condition. Stop when it goes true.
9195 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9197 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9199 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9201 Keep TX and RX buffers on EFI rather than always allocate new ones.
9203 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9204 card. All users updated.
9205 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9206 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9207 (get_card_packet): Likewise.
9208 (grub_efinet_findcards): Init new fields.
9210 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9212 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9213 compilation error on sparc64.
9215 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9217 Use ITC on IA64 rather than broken routine based on daytime.
9219 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9221 (grub_get_rtc) [__ia64__]: Likewise.
9222 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9223 (get_itc): New function.
9224 (grub_rtc_get_time_ms): Likewise.
9225 (grub_machine_init): Calibrate ITC.
9226 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9227 Keep only on non-ia64. Don't export since it's broken and used only
9228 if TSC is unavailable.
9230 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9232 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9234 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9235 Skip if parent is unused.
9237 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9239 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9241 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9243 Fix wildcard escaping.
9245 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9246 * grub-core/script/execute.c (wildcard_escape): .. to here.
9248 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9249 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9251 * grub-core/script/execute.c (gettext_append): Always escape.
9252 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9253 * grub-core/script/yylex.l: Don't cut away the escaping.
9254 * tests/grub_script_echo1.in: Add tests with wildcard.
9256 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9258 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9259 (ftdi_hw_configure): Likewise.
9260 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9262 (real_config): Handle 1.5 stop bits.
9263 (pl2303_hw_configure): Likewise.
9265 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9267 * Makefile.am: Add ppc linux bootcheck.
9268 * grub-core/tests/boot/linux-ppc.cfg: New file.
9269 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9271 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9273 * tests/grub_script_expansion.in: Skip network protocols.
9275 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9277 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9279 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9281 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9285 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9287 ESCC serial driver for conducting sautomated tests in qemu.
9288 Not tested on real hardware.
9290 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9291 * grub-core/term/ieee1275/escc.c: New file.
9292 * grub-core/Makefile.core.def (escc): New module.
9294 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9296 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9298 (serial_hw_fetch): Don't read invalid handle.
9299 (serial_hw_put): Don't write into invalid handle.
9301 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9303 Add a 1.5 stop bits value.
9305 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9306 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9307 GRUB_SERIAL_STOP_BITS_1_5.
9309 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9311 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9312 value rather than let it uninited.
9314 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9316 * grub-core/commands/wildcard.c (+check_file): New function.
9317 (wildcard_expand): Don't expand to non-existing files, expand with
9318 suffix and not attempt to expand if not needed.
9320 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9322 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9323 out of partitions containing other partitions.
9325 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9327 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9328 on some qemu versions with GRUB.
9330 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9332 (grub_openbsd_bootarg_pcibios): New struct.
9333 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9336 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9338 * tests/util/grub-shell.in: Trim firmware output on EFI.
9340 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9342 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9343 and coreboot since it's already in kernel.
9345 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9347 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9348 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9349 to here. New return value start. All users updated.
9350 Recursively scan linear mappings.
9351 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9353 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9354 Use grub_util_get_dm_node_linear_info.
9355 * util/getroot.c (convert_system_partition_to_system_disk): Use
9356 grub_util_info rather than grub_dprintf.
9357 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9359 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9361 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9363 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9364 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9366 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9368 * include/grub/types.h (grub_set_unaligned64): New function.
9369 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9372 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9374 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9375 (grub_ofdisk_fini): Quiesce USB devices.
9377 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9379 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9382 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9384 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9386 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9388 * grub-core/disk/pata.c (grub_pata_pio_read)
9389 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9390 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9392 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9394 Extend automated tests to qemu-mips.
9396 * Makefile.am: reorganise tests and enable qemu-mips.
9397 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9398 * grub-core/tests/boot/linux.init-mips.S: New file.
9399 * tests/partmap_test.in: Handle ata0 disks.
9400 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9403 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9405 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9407 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9410 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9412 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9413 (grub_halt): Likewise.
9414 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9416 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9418 * grub-core/term/serial.c (grub_serial_register)
9419 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9420 the behaviour in line with x86 platforms.
9422 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9424 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9425 (grub_ata_strncpy): Likewise.
9426 (grub_ata_identify): Add missing byteswaps.
9428 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9430 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9432 (screen_read_char): Likewise.
9433 (grub_vga_text_cls): Likewise.
9435 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9437 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9439 (make_file_path): Likewise.
9441 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9443 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9445 Tested by: Paulo Flabiano Smorigo.
9446 Crucial information about API supplied by: Coleen <Last name unknown>.
9447 Reviewed by: Coleen <Last name unknown>.
9449 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9451 * util/grub-mkimage.c: Disable -Wcast-align.
9453 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9455 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9458 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9460 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9462 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9464 * util/grub-probe.c (escape_of_path): Fix double free.
9466 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9468 * grub-core/commands/videoinfo.c (hook): Show pitch.
9470 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9472 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9474 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9476 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9477 (probe): Add ieee1275 to OFW devices.
9479 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9481 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9483 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9485 Handle IBM OFW path.
9487 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9489 (of_path_of_scsi): Handle vdevice.
9491 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9493 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9494 Allocate in multiples of 16 to avoid adding a few bytes free region the
9497 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9499 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9500 Allocate in multiples of 16 to avoid adding a few bytes free region the
9502 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9504 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9506 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9508 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9509 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9511 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9513 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9515 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9517 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9518 resulted in \\ at the end of the line.
9520 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9522 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9523 (grub_parser_cmdline_state): Likewise.
9524 (grub_parser_split_cmdline): Likewise.
9526 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9528 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9529 /dev/root and /dev/dm-*.
9531 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9533 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9534 fix partially stale display.
9536 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9538 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9541 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9543 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9544 Fix MBR remapping workaround.
9545 (grub_util_biosdisk_read) [__linux__]: Likewise.
9547 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9549 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9551 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9553 * configure.ac: Bump to beta6.
9555 2012-05-31 Christer Weinigel <christer@weinigel.se>
9557 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9559 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9561 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9562 (grub_cmd_linux): Likewise.
9564 2012-05-31 Christer Weinigel <christer@weinigel.se>
9568 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9569 (GRUB_EHCI_MULT_TWO): Likewise.
9570 (GRUB_EHCI_MULT_THREE): Likewise.
9571 (GRUB_EHCI_CMASK_MASK): New enum value.
9572 (GRUB_EHCI_SMASK_MASK): Likewise.
9573 (GRUB_EHCI_CMASK_OFF): Likewise.
9574 (GRUB_EHCI_SMASK_OFF): Likewise.
9575 (grub_ehci_pci_iter): Enable periodic schedule.
9576 (grub_ehci_parse_notrun): Likewise.
9577 (grub_ehci_restore_hw): Likewise.
9578 (grub_ehci_setup_qh): Set flags for low speed transfers.
9579 (grub_ehci_find_qh): Use periodic list for low speed.
9580 (grub_ehci_setup_transfer): Check periodic queue as well.
9581 (grub_ehci_check_transfer): Likewise.
9582 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9584 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9586 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9589 2012-05-31 Peter Jones <pjones@redhat.com>
9591 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9592 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9593 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9595 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9597 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9598 uninited variable. Allocate at least setup_sects.
9600 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9602 Fix handling of EFI with big memory maps.
9604 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9605 (real_mode_mem): Likewise.
9606 (real_mode_target): Likewise.
9607 (real_mode_pages): Likewise.
9608 (prot_mode_pages): Likewise.
9609 (linux_params): New var.
9610 (linux_cmdline): Likewise.
9611 (free_pages): Don't set real mode variables.
9612 (allocate_pages): Don't allocate real mode memory.
9613 (grub_e820_add_region): Remove the limit.
9614 (grub_linux_boot): Allocate and copy real mode memory.
9615 (grub_linux_unload): Free linux_cmdline.
9616 (grub_cmd_linux): Use temporary storage for parameters.
9617 (grub_cmd_initrd): Likewise.
9618 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9619 (linux_kernel_params): Make it 1K big.
9621 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9623 * Makefile.util.def: Remove -Wno-format.
9624 * grub-core/Makefile.core.def: Likewise.
9626 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9628 * tests/cmp_unit_test.c: Add missing failure message.
9629 * tests/example_unit_test.c: Likewise.
9630 * tests/printf_unit_test.c: Likewise.
9632 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9634 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9635 relaxation of protective MBR requirements.
9637 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9639 * configure.ac: Add condition for COND_HOST_XNU.
9640 * Makefile.util.def (10_xnu): New script.
9641 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9643 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9645 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9648 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9650 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9651 Binary on other platforms stays identical.
9653 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9655 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9658 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9660 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9662 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9664 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9665 rather than defining size_t ourselves to avoid conflict.
9667 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9669 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9670 initialisation to avoid __bzero reference.
9672 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9674 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9676 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9677 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9678 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9679 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9680 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9682 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9684 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9685 * grub-core/kern/misc.c: Likewise.
9686 * grub-core/loader/i386/xnu.c: Likewise.
9687 * include/grub/i386/tsc.h: Likewise.
9688 * include/grub/symbol.h: Likewise.
9690 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9692 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9693 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9696 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9698 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9699 Implement Apple flavour.
9700 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9702 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9704 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9705 (memmove) [__APPLE__]: Likewise.
9706 (memcpy) [__APPLE__]: Likewise.
9707 (memset) [__APPLE__]: Likewise.
9708 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9709 (memmove) [__APPLE__]: Likewise.
9710 (memcpy) [__APPLE__]: Likewise.
9711 (memset) [__APPLE__]: Likewise.
9713 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9715 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9718 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9720 * grub-core/normal/main.c (read_config_file): Provide config_file and
9722 * util/grub.d/41_custom.in: Use config_directoy when available.
9724 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9726 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9727 (grub_bfs_dir): Likewise.
9729 2012-05-27 Peter Jones <pjones@redhat.com>
9731 The old code gives arguments to a printf function which can't work
9732 correctly, and the compiler complains.
9734 * grub-core/tests/example_functional_test.c (example_test): Add
9736 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9737 * include/grub/test.h (grub_test_assert_helper): New declaration.
9738 (grub_test_assert): Use grub_test_assert_helper.
9740 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9742 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9743 (exfctest): ... this to avoid overlong filenames.
9746 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9748 Handle "." and ".." on squashfs.
9750 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9751 Make inode numbers into stack.
9752 (grub_squash_read_symlink): Use stack.
9753 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9754 (make_root_node): Fill stack.
9755 (grub_squash_open): Use stack.
9757 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9759 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9762 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9764 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9765 stderr on test calls.
9767 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9769 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9771 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9773 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9775 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9777 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9780 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9782 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9783 (grub_hfsplus_iterate_dir): Add "." and "..".
9785 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9787 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9788 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9790 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9792 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9793 (find_path): Handle "." and "..".
9795 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9797 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9798 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9799 (grub_affs_iterate_dir): Handle hardlinks.
9801 2012-05-26 Matthew Garrett <mjg@redhat.com>
9803 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9804 (grub_efi_console_fini): Likewise.
9805 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9806 (grub_video_gop_fill_mode_info): Rename to ...
9807 (grub_video_gop_fill_real_mode_info): ... this.
9808 (grub_video_gop_fill_mode_info): New function.
9809 (grub_video_gop_setup): Setup double framebuffer.
9810 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9812 (grub_video_gop_swap_buffers): Copy framebuffer.
9813 (grub_video_gop_fini): Free offscreen buffer.
9814 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9816 (grub_efi_gop_blt_pixel): New struct.
9818 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9820 * gentpl.py: Remove error disabling for objconv.
9822 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9824 * configure.ac: Remove -Wunitialized as it's not available on older
9827 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9829 Fix extent overflow comparator.
9831 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9832 (grub_hfsplus_read_block): Set type.
9833 (grub_hfsplus_cmp_extkey): Compare type.
9835 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9837 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9839 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9841 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9844 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9846 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9847 (dejavu_bold_14.pf2): New target.
9849 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9851 * configure.ac: Fix djvu font detection.
9853 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9855 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9856 ext* instead of ext2.
9858 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9860 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9863 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9865 * docs/grub-dev.texi: Remove dot from .png.
9867 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9869 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9870 protective entry in any slot.
9871 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9872 if protective entry is found in any slot.
9874 Protective entry in non-first slot make no sense but is a widespread
9877 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9879 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9881 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9883 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9885 (grub_reiserfs_open): Don't free root.
9887 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9889 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9890 after freeing for safety.
9892 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9894 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9895 Reported by: Jordan Uggla.
9897 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9899 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9900 actual implementation. Specifically, clarify that the grub menu will
9901 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9904 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9906 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9909 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9911 Remove unjustified hard dependency of normal.mod on gfxterm.
9913 * include/grub/term.h (grub_term_output): New member fullscreen.
9914 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
9915 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
9916 (grub_gfxterm): Set .fullscreen.
9917 * grub-core/normal/menu.c (menu_init): Use fullscreen.
9918 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
9920 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9922 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
9923 mentioning possible problems with non-ASCII (non-compliant) ISOs.
9924 Mention case-insensitive AFFS, SFS and JFS.
9926 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9928 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
9930 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9932 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9935 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9937 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
9938 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
9940 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9942 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
9943 (grub_jfs_mount): Fill caseins.
9944 (grub_jfs_find_file): Respect caseins.
9946 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9948 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
9951 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9953 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
9954 New argument origpath. All users updated.
9956 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9958 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
9959 (read_attr): Ensure that we read start of possibly compressed block.
9961 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9963 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
9964 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
9967 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9969 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
9970 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
9971 (dejavu.pf2): Replace with ...
9972 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
9975 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9977 * util/grub.d/20_linux_xen.in: Add missing line.
9979 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9981 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
9982 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
9983 (grub_utf16_to_utf8): Likewise.
9985 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9987 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
9988 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
9989 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9990 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
9991 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9992 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
9994 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9996 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9999 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10001 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10002 (grub_udf_read_symlink): Handle read_string failure.
10004 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10006 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10009 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10011 Fix handling of UDF symlinks.
10013 * grub-core/fs/udf.c (read_string): New argument outbuf.
10015 (grub_ufs_read_symlink): Rename to ...
10016 (grub_udf_read_symlink): ... this. All users updated.
10017 Handle symlinks with more than one component.
10019 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10021 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10022 symlinks. Replace leading colon with a slash.
10024 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10026 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10029 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10031 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10032 match in inner node.
10034 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10036 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10037 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10038 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10039 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10040 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10041 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10042 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10043 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10044 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10046 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10048 Use grub-probe and not cmp to check that disk is empty.
10050 * util/grub-install.in: Use grub-probe for zero-check.
10051 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10052 (probe): Handle PRINT_ZERO_CHECK.
10053 (argp_parser): Handle -t zero_check.
10055 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10057 Flush block cache on adding disk to device map.
10059 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10060 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10062 (read_device_map): Likewise.
10063 (open_device): Flush on opening.
10065 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10067 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10068 (handle_symlink): Fix off-by-one error.
10069 Canonicalize the target.
10070 (grub_cpio_dir): Canonicalize the name.
10073 (grub_cpio_open): Canonicalize the name.
10075 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10077 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10080 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10082 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10083 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10085 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10087 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10088 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10091 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10093 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10096 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10098 Fix UFS1 big file support.
10100 * grub-core/fs/ufs.c (INODE): Removed.
10101 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10103 (INODE_MODE): Simplify.
10104 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10105 (grub_ufs_lookup_symlink): Don't use INODE.
10107 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10109 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10111 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10112 (grub_minix_data): Replace log_block_size with block_size.
10113 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10114 (grub_minix_mount): Fill block_size.
10116 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10118 * configure.ac: Bump to beta5.
10120 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10122 Fix wrapped HFS+ handling.
10124 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10125 blocks_start. All users updated.
10126 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10128 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10130 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10132 Fix long symlinks on reiserfs.
10134 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10135 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10136 (grub_reiserfs_iterate_dir): Save size for non-directories.
10137 (grub_reiserfs_open): Don't reread stat block as we already know the
10139 (grub_reiserfs_read): Split into...
10140 (grub_reiserfs_read_real): ... and ...
10141 (grub_reiserfs_read): ...this.
10143 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10145 Fix non-indexed JFS.
10147 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10148 (grub_jfs_data): New field namecomponentlen.
10149 (grub_jfs_mount): Fill namecomponentlen.
10150 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10152 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10154 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10155 * tests/grub_script_echo1.in: Add tests.
10157 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10159 * util/grub-install.in: Ignore empty devicetree directory.
10161 2012-05-08 Bean <bean123ch@gmail.com>
10163 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10165 (free_rsm): Free header as well.
10166 (free_old_fragments): Fix memory leak.
10167 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10168 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10169 (destroy_pq): Likewise.
10170 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10172 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10174 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10175 resulting hash as a precaution.
10177 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10179 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10180 '_' in variable names.
10181 * grub-core/net/net.c (grub_net_network_level_interface_register):
10184 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10186 Fix AFFS with non-512B blocks.
10188 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10189 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10190 (grub_affs_data): Replace blocksize with log_blocksize.
10191 (grub_affs_read_block): Fix non-512B blocks.
10192 (grub_affs_read_symlink): Likewise.
10193 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10194 (grub_affs_read): Fix non-512B blocks.
10195 (grub_affs_label): Likewise.
10196 (grub_affs_mtime): Likewise.
10197 (grub_affs_mount): Fix block detection routine.
10199 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10201 Add filesystem mtime to AFFS.
10203 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10204 (aftime2ctime): New function.
10205 (grub_affs_dir): Use aftime2ctime.
10206 (grub_affs_label): Fix return value.
10207 (grub_affs_mtime): New function.
10208 (grub_affs_fs): Add mtime.
10210 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10212 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10215 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10217 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10220 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10222 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10224 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10226 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10228 (FLAGS_CASE_SENSITIVE): New enum value.
10229 (cache_entry): New struct.
10230 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10231 cache_size and cache.
10232 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10233 Add log_blocksize and fshelp_flags.
10234 (grub_sfs_read_extent): Handle non-512 blocks.
10235 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10236 (grub_sfs_read_file): Handle non-512 blocks.
10237 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10239 (grub_sfs_read_symlink): Handle non-512 blocks.
10240 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10241 (grub_sfs_dir): Free cache.
10242 (grub_sfs_close): Likewise.
10244 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10246 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10249 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10251 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10253 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10255 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10257 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10259 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10260 (grub_sfs_read_extent): Likewise.
10261 (grub_sfs_read_block): Likewise.
10262 (grub_sfs_mount): Likewise.
10263 (grub_sfs_iterate_dir): Likewise.
10264 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10265 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10267 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10269 Fix errors on compressed NTFS with 512B clusters.
10271 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10273 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10275 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10276 Relax check for inline extents.
10277 (ntfscomp): Return correct -1 on error and not 0.
10279 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10281 * util/grub-install.in: Fix handling of prefix containing spaces.
10283 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10285 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10286 (grub_squash_read_data): Fix offset byte-swapping.
10288 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10290 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10291 per common usage and preffered in several parts of code.
10292 (grub_memcmp): Likewise.
10293 (grub_strncmp): Likewise.
10294 * include/grub/misc.h (grub_strcasecmp): Likewise.
10295 (grub_strncasecmp): Likewise.
10296 * Makefile.util.def (cmp_test): New test.
10297 (grub_script_strcmp): Likewise.
10298 * tests/cmp_unit_test.c: New file.
10299 * tests/grub_script_strcmp.in: Likewise.
10300 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10302 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10304 * include/grub/pci.h: Move enums into no-asm part.
10306 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10308 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10310 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10312 * util/getroot.c (find_hurd_root_device): Try to make error message
10313 and comments to translators clearer.
10315 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10317 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10319 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10321 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10324 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10326 * docs/grub.cfg: Update.
10328 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10330 * docs/grub.texi (PXE): Remove not present variables.
10332 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10334 * grub-core/net/net.c (defserver_set_env): New function.
10335 (defserver_get_env): Likewise.
10336 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10338 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10340 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10343 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10345 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10346 * grub-core/kern/emu/hostdisk.c: Likewise.
10348 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10350 Handle hurd userspace partitions.
10352 * util/getroot.c (find_hurd_root_device): New function.
10353 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10355 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10357 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10359 Reported by: Bastian Blank.
10361 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10363 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10364 crossing page boundary.
10366 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10368 Fix B-tree search in BFS, especially in presence of non-ASCII
10371 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10372 (find_in_b_tree): Use standard bsearch + btree algorithm.
10374 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10376 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10379 2012-05-03 Matthew Garrett <mjg@redhat.com>
10380 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10382 Suspend broadcom cards in order to stop their DMA.
10384 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10385 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10386 (pci): Don't build on x86 EFI.
10387 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10388 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10390 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10391 stop_broadcom if running on EFI.
10392 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10393 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10394 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10395 (grub_pci_find_capability): New proto.
10397 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10399 * docs/grub.texi: Remove dot from the extension as it apparently
10400 doesn't work with some makeinfo versions.
10402 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10404 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10405 with GRUB expectance.
10407 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10409 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10411 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10413 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10414 zero after directory block since last entry may be not 0-terminated if
10415 it ends on block boundary. Use continue instead of if spanning whole
10418 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10420 Support 4K sectors UDF inline files.
10422 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10423 (grub_udf_extended_file_entry): Likewise.
10424 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10426 (get_fshelp_size): New function.
10427 (grub_udf_read_icb): Read whole block.
10428 (grub_udf_iterate_dir): Likewise.
10429 (grub_udf_dir): Likewise.
10430 (grub_udf_open): Likewise.
10432 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10434 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10436 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10438 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10439 inline symlinks in addition to workaround.
10441 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10443 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10445 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10447 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10449 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10451 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10453 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10455 Fix reiserfs big seek times.
10457 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10458 exact. All users updated.
10459 (grub_reiserfs_read): Use nearest btree search for seeking.
10460 Fix return value on error.
10462 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10464 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10466 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10467 * docs/grub.texi: Update menuentry description.
10469 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10471 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10472 crash when embedding onto filesystem.
10474 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10476 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10479 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10481 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10483 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10485 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10488 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10489 2012-05-01 Bean <bean123ch@gmail.com>
10491 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10493 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10495 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10496 Special behaviour for len = 0 to read whole file isn't used anywhere and
10497 can cause buffer ovewrflows in several places.
10499 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10501 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10503 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10505 Handle RAIDZ on non-512B sectors.
10507 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10508 max_children_ashift.
10509 (fill_vdev_info_real): Fill max_children_ashift.
10510 (read_device): Use max_children_ashift.
10512 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10514 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10516 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10518 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10520 * docs/grub.texi: Update device.map parts.
10522 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10524 Don't scan into non-diskfilter devices having diskfilter names.
10526 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10527 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10529 (scan_disk_hook): New function.
10531 2012-04-29 Bean <bean123ch@gmail.com>
10533 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10536 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10538 * configure.ac: Detect starfield theme font path
10539 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10541 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10543 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10544 geometry on serial consoles.
10546 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10548 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10549 because of network consoles.
10551 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10553 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10556 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10558 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10559 falls on Q syndrom.
10561 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10563 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10564 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10566 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10568 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10569 Allocate at lest 8192 for temporary buffer as required for lzo.
10571 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10573 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10574 to cluster_bits, since it's already added in.
10575 (grub_fat_read_data): Likewise.
10577 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10579 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10580 as long as cluster size is multiple of 512 bytes.
10582 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10584 * util/grub-mkrescue.in: Fix locale directory.
10586 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10588 * grub-core/kern/emu/hostdisk.c (map): Make static.
10590 2012-04-23 Bean <bean123ch@gmail.com>
10592 * util/grub-fstest.c (fstest): Add missing break.
10594 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10598 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10599 not define nr variable.
10600 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10601 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10602 grub_find_device): Do not define.
10604 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10606 Fix kfreebsd compile and behaviour.
10608 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10610 * util/getroot.c: Fix wait.h include.
10611 (grub_guess_root_devices): Error if grub_find_device fails.
10612 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10613 (grub_util_get_dev_abstraction): Likewise.
10614 (grub_util_pull_device): Likewise.
10615 (grub_util_get_grub_dev): Likewise.
10616 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10618 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10620 Fix and unify wholedisk detection.
10622 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10623 is_part. All users updated.
10624 (device_is_wholedisk): Removed.
10625 (grub_util_biosdisk_get_grub_dev): Use is_part.
10627 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10629 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10632 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10634 * configure.ac: Bump to beta4.
10636 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10638 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10639 --fs-uuid --set UUID syntax.
10641 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10643 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10646 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10648 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10650 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10652 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10654 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10656 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10658 2012-04-18 Bean <bean123ch@gmail.com>
10660 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10663 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10665 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10667 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10668 corresponding to GRUB partitions.
10669 (grub_util_biosdisk_write): Likewise.
10671 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10673 Scan mdraid before LVM.
10675 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10676 (grub_diskfilter_register_front): ... this.
10677 (grub_diskfilter_register_back): New function.
10678 All users of grub_diskfilter_register updated.
10680 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10682 * util/grub-install.in: Fix an automatic target detection bug.
10684 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10686 * util/grub-install.in: New option --efi-directory.
10688 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10690 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10691 boot services if we have no other choice.
10693 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10695 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10697 * tests/util/grub-shell.in: Update to --directory.
10699 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10701 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10703 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10705 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10706 (grub_minix_read_file): Likewise.
10707 (grub_minix_read_inode): Likewise.
10708 (grub_minix_find_file): Likewise.
10709 (grub_minix_dir): Likewise.
10711 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10713 * util/grub-setup.c (setup): Fix partition handling and blocklist
10716 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10718 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10719 redundant buggy overlap check.
10721 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10723 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10726 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10728 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10729 kh.loadflags on pre-2.00 kernels.
10731 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10733 Terminate UNDI and PXE before launching the payload to avoid problems
10736 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10737 (grub_loader_flags): ... this. All users updated.
10738 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10739 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10740 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10741 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10743 (grub_pxe_restore): Likewise.
10744 (fini_hnd): New var.
10745 (GRUB_MOD_INIT): Register shutdown hook.
10746 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10747 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10748 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10749 (grub_loader_set): Rename second argument to flags.
10751 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10753 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10755 (grub_get_num_of_utf8_bytes): New function.
10756 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10757 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10759 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10760 (grub_ucs4_to_utf8): Change return type.
10762 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10764 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10766 * grub-core/fs/bfs.c (hop_level): Likewise.
10767 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10769 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10771 * grub-core/lib/adler32.c: Recode due to license unclearness.
10773 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10775 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10776 (test_header): Likewise.
10778 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10780 Fix --help formatting.
10782 * util/grub-mkconfig_lib.in (print_option_help): New function.
10783 (grub_fmt): Likewise.
10784 * util/grub-install.in: Use print_option_help and grub_fmt.
10785 * util/grub-kbdcomp.in: Likewise.
10786 * util/grub-mkconfig.in: Likewise.
10787 * util/grub-mknetdir.in: Likewise.
10788 * util/grub-mkrescue.in: Likewise.
10789 * util/grub-mkstandalone.in: Likewise.
10790 * util/grub-reboot.in: Likewise.
10791 * util/grub-set-default.in: Likewise.
10792 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10794 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10796 * linguas.sh: Remove autogenerated *.po.
10798 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10800 * po/README: Move language fetcing to ...
10801 * linguas.sh: ... here.
10802 * po/README: Point to linguas.sh.
10804 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10806 * po/README: Exclude ko.po due to disclaimer problems.
10808 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10810 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10812 (grub_gettext_translate_real): Handle 0th string.
10813 (grub_gettext_translate): Ensure that "" isn't translated.
10815 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10817 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10818 TRANSLATORS comment.
10819 (grub_diskfilter_print_partmap): Propagate changing of error into
10822 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10824 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10825 to uint64_t to prevent overflow.
10826 (grub_diskfilter_lv): Increase start_extent and extent_count
10827 to uint64_t to prevent overflow.
10829 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10831 * configure.ac: Increase version.
10833 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10835 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10837 * po/Rules-translit: New file.
10838 * po/arabic.sed: Likewise.
10839 * po/cyrillic.sed: Likewise.
10840 * po/greek.sed: Likewise.
10841 * po/hebrew.sed: Likewise.
10842 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10843 * po/Makefile.in.in: Add extra_dist4.
10845 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10847 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10849 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10850 modify names. Introduce MODE_BIGENDIAN.
10851 * grub-core/fs/minix_be.c: New file.
10852 * grub-core/fs/minix2_be.c: Likewise
10853 * grub-core/fs/minix3_be.c: Likewise.
10854 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10856 * grub-core/Makefile.core.def (minix_be): New module.
10857 (minix2_be): Likewise.
10858 (minix3_be): Likewise.
10860 2012-04-01 Felix <email@hamburg.de>
10862 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10863 (devs): Add MBP 2011.
10865 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10867 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10869 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10871 * grub-core/normal/cmdline.c (print_completion): New field
10873 (grub_cmdline_get): Handle width properly.
10875 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10877 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10879 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10881 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
10882 after 29th of February.
10884 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10886 Fix exfat endianness handling.
10888 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10889 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10890 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10891 Byte-swap utf16 when necessary.
10892 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10894 2012-03-31 Anton Blanchard <anton@samba.org>
10895 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10897 Fix btrfs endianness handling.
10899 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10900 (lower_bound): Make root uint64_t. Use root in le.
10901 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10902 (find_path): Fix template key init.
10903 (grub_btrfs_dir): Fix mtime byteswap.
10904 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10906 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10908 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10909 recursion_depth. Break infinite resursions. All users updated.
10911 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10913 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
10915 Reported by: Peter Jones.
10917 2012-03-31 Anton Blanchard <anton@samba.org>
10919 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
10922 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10924 * util/grub-install.in: Fix nvram call for PreP.
10926 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10928 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
10929 the error when some elements are missing into a warning.
10931 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10933 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
10935 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
10937 * docs/grub.texi (Invoking grub-probe): New section.
10938 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
10940 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10942 Fix tab and wide character handling in editor and menu.
10944 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
10945 agglomerate control characters with combining marks.
10946 (bidi_line_wrap): Allow break on tab.
10947 (grub_unicode_get_comb_start): New function.
10948 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
10950 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
10952 * grub-core/normal/term.c (print_ucs4_terminal): New argument
10953 fixed_tab_size. All users updated.
10954 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
10955 (grub_term_getcharwidth): Handle \t.
10956 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
10959 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10961 Handle big-endian mdraid.
10963 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
10964 * grub-core/Makefile.core.def (mdraid09_be): New module.
10965 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
10966 rather than grub_le_to_cpu* and grub_cpu_to_le*.
10967 * grub-core/disk/mdraid_linux_be.c: New file.
10969 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10971 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
10973 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10975 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
10976 missing quotes which caused confusion among translators.
10978 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10980 * util/grub-mkconfig_lib.in: Fix typo.
10982 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10984 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
10986 * tests/grub_script_leading_whitespace.in: New file.
10987 * Makefile.util.def (grub_script_leading_whitespace): New test.
10989 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10991 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
10994 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10996 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
10997 starts with control character.
10999 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11001 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11003 (grub_gdb_outbuf): Likewise.
11005 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11007 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11008 zero terminator. Fixes a crash.
11010 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11012 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11014 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11015 images independently of preffered adderss field.
11017 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11019 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11020 * grub-core/commands/regexp.c: Likewise.
11021 * grub-core/loader/i386/linux.c: Likewise.
11022 * grub-core/partmap/msdos.c: Likewise.
11023 * grub-core/script/execute.c: Likewise.
11024 * grub-core/term/gfxterm.c: Likewise.
11026 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11028 Add variable parsing in $"..." and fix several mismatches with bash.
11030 * Makefile.util.def (grub_script_gettext): New test.
11031 * grub-core/script/execute.c (parse_string): New function.
11032 (gettext_append): Likewise.
11033 (grub_script_arglist_to_argv): Use gettext_append.
11034 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11035 * tests/grub_script_gettext.in: New file.
11037 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11039 Fix handling of leading spaces in scripts.
11041 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11043 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11044 other than skipping \r. All users updated.
11045 * tests/grub_script_echo1.in: Add space-related tests.
11046 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11048 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11050 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11052 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11054 * configure.ac: Bump up the version to beta2.
11056 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11058 Fix gettext reload bugs (e.g. inability to disable gettext
11061 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11062 main_context and secondary_context. All functions updated.
11063 (grub_gettext_translate): Rename to ...
11064 (grub_gettext_translate_real): ... this. Return NULL on failed
11066 (grub_gettext_translate): Handle secondary context.
11067 (grub_gettext_delete_list): Close file and zero-out the context.
11068 (grub_mofile_open): Don't call grub_gettext_delete_list.
11070 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11071 if locale="" to avoid pointless error message.
11072 (grub_gettext_env_write_lang): Update lang even if load fails.
11073 Handle secondary context.
11074 (grub_gettext_reread_prefix): New function.
11075 (read_main): Likewise.
11076 (read_secondary): Likewise.
11077 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11078 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11079 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11080 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11082 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11084 * configure.ac: Decrease warning level to avoid spurious warnings and
11085 to be able to compile with GCC 4.2.
11086 * Makefile.util.def: Remove -Wno-error=logical-op.
11088 2012-03-10 William Bittner <william.bittner@gmail.com>
11090 * util/import_unicode.py: Add missing brackets around string for
11093 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11095 Fix efi chainloader on network root.
11097 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11099 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11102 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11104 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11105 unused show_text member.
11106 * docs/grub.texi: Document "text" property.
11108 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11110 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11113 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11115 Fix IMSM handling on Fedora.
11117 * util/getroot.c (grub_util_is_imsm): New function.
11118 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11120 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11122 * Makefile.am: Strip gold section.
11123 * conf/Makefile.common: Likewise.
11124 * gentpl.py: Likewise.
11125 * grub-core/Makefile.core.def: Likewise.
11126 * grub-core/genmod.sh.in: Likewise.
11128 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11130 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11131 * util/grub.d/20_linux_xen.in: Likewise.
11132 Based on Debian patch.
11134 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11136 * util/grub.d/10_linux.in: Fix syntax error resulting in
11137 Richard Laager's patch.
11138 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11140 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11142 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11145 2012-03-10 Richard Laager <rlaager@wiktel.com>
11147 * util/grub.d/10_linux.in: Fix ZFS root passing.
11149 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11151 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11152 * grub-core/commands/xnu_uuid.c: Likewise.
11153 * grub-core/loader/efi/appleloader.c: Likewise.
11154 * grub-core/script/execute.c: Likewise.
11155 * grub-core/script/main.c: Likewise.
11156 * util/grub-mkfont.c: Likewise.
11158 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11160 * util/grub-mkfont.c (options): Use more appropriate "select" that
11161 "set" for face index.
11163 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11165 * util/grub-editenv.c (options): Gettextize command summaries.
11167 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11169 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11170 "out of memory" error messagge.
11172 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11174 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11175 of diskfilter for diskfilter on diskfilter support.
11177 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11179 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11181 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11183 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11186 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11188 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11190 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11192 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11194 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11196 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11199 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11201 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11203 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11205 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11207 * util/grub-install.in: Fix and gettextize error message.
11209 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11211 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11213 * util/grub-mount.c (options): Likewise.
11215 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11217 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11219 * grub-core/commands/search_wrap.c (options): Likewise.
11221 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11223 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11225 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11227 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11229 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11232 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11234 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11235 "temporary" since it's used in identifier and is limited in space.
11237 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11239 * po/POTFILES.in: Regenerate. Include *.h since they contain
11240 translatable strings as well.
11242 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11244 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11245 byte-swap on big-endian.
11246 Reported by: Lennart Sorensen
11248 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11250 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11251 (allocate_pages): Improve dprintf.
11252 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11253 code32_start. Fill code32_start and kernel_alignment in params.
11254 (grub_cmd_initrd): Use prot_init_space.
11256 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11258 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11260 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11262 * util/grub-install.in: Add missing dot at the end of sentence.
11264 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11266 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11267 * grub-core/commands/videotest.c: Likewise.
11268 * grub-core/loader/i386/linux.c: Likewise.
11270 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11272 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11274 Reported by: Milo Casagrande.
11276 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11278 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11279 * grub-core/commands/gptsync.c: Likewise.
11280 * grub-core/commands/hashsum.c: Likewise.
11281 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11282 * grub-core/commands/legacycfg.c: Likewise.
11283 * grub-core/io/gzio.c: Likewise.
11284 * grub-core/net/net.c: Likewise.
11285 * grub-core/term/gfxterm.c: Likewise.
11286 * grub-core/term/terminfo.c: Likewise.
11287 * grub-core/tests/test_blockarg.c: Likewise.
11288 * grub-core/video/video.c: Likewise.
11289 * util/grub-install.in: Likewise.
11290 * util/grub-mkfont.c: Likewise.
11292 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11294 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11296 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11298 * grub-core/commands/search_wrap.c (options): Fix a typo.
11299 Reported by: David Prévot.
11301 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11303 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11306 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11308 * util/grub-script-check.c (main): Fix a syntax error message which was
11311 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11313 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11315 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11317 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11320 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11322 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11324 * util/grub-mount.c (options): Likewise.
11326 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11328 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11330 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11332 * grub-core/net/http.c: Add TRANSLATORS comments.
11333 * grub-core/normal/cmdline.c: Likewise.
11334 * grub-core/normal/misc.c: Likewise.
11335 * grub-core/partmap/msdos.c: Likewise.
11336 * grub-core/parttool/msdospart.c: Likewise.
11337 * grub-core/script/execute.c: Likewise.
11338 * grub-core/script/main.c: Likewise.
11339 * grub-core/term/terminfo.c: Likewise.
11340 * grub-core/video/bitmap.c: Likewise.
11341 * util/grub-install.in: Likewise.
11342 * util/grub-mkimage.c: Likewise.
11343 * util/grub-mklayout.c: Likewise.
11344 * util/grub-setup.c: Likewise.
11346 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11348 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11349 with similar messages in grub-fstest.
11351 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11353 * util/grub-install.in: Unify "option requires an argument" message
11354 with similar messages in other files.
11355 * util/grub-mkconfig.in: Likewise.
11357 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11359 * util/grub-set-default.in: Replace printf with gettext_printf (the
11360 string in in question is already translated from grub-reboot)
11362 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11364 * configure.ac: Bump up the version to beta1.
11366 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11368 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11369 case when min_align = 0.
11371 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11373 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11374 and fix a case when line_start overflows.
11376 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11378 * util/grub-reboot.in (usage): Mention id posibility.
11379 * util/grub-set-default.in (usage): Likewise.
11381 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11383 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11384 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11385 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11386 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11387 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11388 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11389 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11391 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11393 * grub-core/commands/menuentry.c (options): Remove
11394 GRUB_ARG_OPTION_REPEATABLE.
11395 Reported by: Andreas Vogel
11397 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11399 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11401 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11403 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11406 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11408 Use sort -V by the idea of Georgi Georgiev.
11410 * util/grub-mkconfig_lib.in (version_sort): New function.
11411 (version_test_numeric): Use version_sort.
11413 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11415 Use submenus in grub-mkconfig.
11417 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11418 * util/grub-mkconfig_lib.in (grub_quote): New function.
11419 (gettext_printf): Use gettext and not gettext_quoted to fix several
11421 * util/grub.d/10_hurd.in: Use submenus.
11422 * util/grub.d/10_kfreebsd.in: Likewise.
11423 * util/grub.d/10_linux.in: Likewise.
11424 * util/grub.d/10_netbsd.in: Likewise.
11425 * util/grub.d/20_linux_xen.in: Likewise.
11426 * util/grub.d/30_os-prober.in: Likewise.
11427 * util/grub.d/10_illumos.in: Add missing quoting.
11428 * util/grub.d/10_windows.in: Likewise.
11430 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11432 Fix menu title instability bug.
11434 * grub-core/commands/menuentry.c (options): New option --id.
11435 (grub_normal_add_menu_entry): New argument id. All users updated.
11436 (grub_cmd_menuentry): Handle --id.
11437 (grub_menu_init): Accept unknown arguments.
11438 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11439 feature_menuentry_options.
11440 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11442 (get_entry_number): Match with id as well.
11443 * include/grub/menu.h (grub_menu_entry): New member id.
11444 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11445 * util/grub.d/00_header.in: Define menuentry_id_option.
11446 * util/grub.d/10_hurd.in: Define id.
11447 * util/grub.d/10_illumos.in: Likewise.
11448 * util/grub.d/10_kfreebsd.in: Likewise.
11449 * util/grub.d/10_linux.in: Likewise.
11450 * util/grub.d/10_netbsd.in: Likewise.
11451 * util/grub.d/10_windows.in: Likewise.
11452 * util/grub.d/20_linux_xen.in: Likewise.
11453 * util/grub.d/30_os-prober.in: Likewise.
11455 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11457 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11458 "scope" with "body".
11460 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11462 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11463 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11464 prot_size and prot_file_size.
11466 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11468 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11469 All users updated. If easily=1 require raid-5/-6 to be full.
11470 (is_node_readable): Likewise.
11471 (scan_devices): Scan incomplete but readable LVs at the end.
11472 (grub_diskfilter_memberlist): Pull missing devices.
11473 (insert_array): Skip scanning until device is complete or scan is
11475 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11477 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11478 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11480 2012-03-03 Matthew Garrett <mjg@redhat.com>
11481 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11483 Avoid EFI boot services when loading Linux.
11485 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11486 avoid_efi_bootservices. All users updated.
11487 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11488 argument avoid_efi_bootservices. All users updated.
11489 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11490 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11491 align, min_align, relocatable, prefered_address. All users updated.
11492 Allocate avoiding boot services if kernel is relocatable.
11493 (grub_cmd_linux): Check if kernel is relocatable.
11494 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11495 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11496 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11497 avoid_efi_boot_services.
11498 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11499 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11500 (linux_kernel_params): Likewise.
11502 2012-03-03 Matthew Garrett <mjg@redhat.com>
11503 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11507 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11509 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11510 modes. Set gop_handle.
11511 (grub_video_gop_get_edid): New function.
11512 (grub_gop_get_preferred_mode): Likewise.
11513 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11514 (grub_video_efi_gop_adapter): Set .get_edid.
11515 * include/grub/efi/edid.h: New file.
11516 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11518 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11520 * util/grub-install.in: Load efivars unconditionally.
11522 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11524 * po/Rules-piglatin: Change suffix from .po-update-en to
11525 .po-update-en-piglatin.
11527 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11531 * po/piglatin.sed: New file.
11532 * po/en@piglatin.header: Likewise.
11533 * po/Rules-piglatin: Likewise.
11534 * po/README: Add en@piglatin to autogenerated languages.
11536 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11538 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11540 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11541 "Check" since we don't check anything.
11542 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11544 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11545 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11546 (grub_md_sha512_real): Likewise.
11548 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11550 * grub-core/commands/gptsync.c: Fix typographic quoting.
11551 * grub-core/commands/ieee1275/suspend.c: Likewise.
11552 * grub-core/commands/parttool.c: Likewise.
11553 * grub-core/commands/search_wrap.c: Likewise.
11554 * grub-core/commands/videoinfo.c: Likewise.
11555 * grub-core/gfxmenu/gui_label.c: Likewise.
11556 * grub-core/hello/hello.c: Likewise.
11557 * grub-core/kern/emu/main.c: Likewise.
11558 * grub-core/net/net.c: Likewise.
11559 * grub-core/normal/menu.c: Likewise.
11560 * grub-core/normal/menu_text.c: Likewise.
11561 * grub-core/normal/misc.c: Likewise.
11562 * util/grub-editenv.c: Likewise.
11563 * util/grub-install.in: Likewise.
11564 * util/grub-kbdcomp.in: Likewise.
11565 * util/grub-mkconfig.in: Likewise.
11566 * util/grub-mknetdir.in: Likewise.
11567 * util/grub-mkrescue.in: Likewise.
11568 * util/grub-mkstandalone.in: Likewise.
11569 * util/grub-reboot.in: Likewise.
11570 * util/grub-set-default.in: Likewise.
11571 * util/grub-setup.c: Likewise.
11572 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11574 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11576 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11577 * grub-core/commands/keystatus.c: Likewise.
11578 * grub-core/commands/loadenv.c: Likewise.
11579 * grub-core/commands/probe.c: Likewise.
11580 * grub-core/commands/regexp.c: Likewise.
11581 * grub-core/commands/true.c: Likewise.
11582 * grub-core/commands/videoinfo.c: Likewise.
11583 * grub-core/disk/cryptodisk.c: Likewise.
11584 * grub-core/disk/ldm.c: Likewise.
11585 * grub-core/disk/loopback.c: Likewise.
11586 * grub-core/disk/luks.c: Likewise.
11587 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11588 * grub-core/kern/disk.c: Likewise.
11589 * grub-core/kern/emu/hostdisk.c: Likewise.
11591 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11593 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11594 * util/grub-install.in: Add missing quote in the comment.
11596 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11598 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11599 * grub-core/commands/lsmmap.c: Likewise.
11600 * grub-core/commands/minicmd.c: Likewise.
11601 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11602 * grub-core/commands/regexp.c: Likewise.
11603 * grub-core/gdb/gdb.c: Likewise.
11604 * grub-core/term/gfxterm.c: Likewise.
11605 * util/grub-mkconfig.in: Likewise.
11606 * util/grub-mkfont.c: Likewise.
11607 * util/grub-mklayout.c: Likewise.
11608 * util/grub-mknetdir.in: Likewise.
11609 * util/grub-mkrescue.in: Likewise.
11610 * util/grub.d/30_os-prober.in: Likewise.
11612 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11614 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11615 with "Direct color" and "Packed" with "Packed pixel".
11616 (grub_cmd_videoinfo): Simplify legend.
11618 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11620 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11621 absolutely unclear error message.
11623 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11625 * util/grub-mkstandalone.in: Remove confusing leftover print.
11627 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11629 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11631 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11632 (GRUB_MOD_INIT): Likewise.
11633 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11635 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11637 * util/grub-install.in (usage): Likewise.
11638 Spell ID in whole letters.
11639 Add missing ending dot.
11641 * util/grub-reboot.in: Fix capitalisation.
11642 * util/grub-set-default.in: Likewise.
11644 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11646 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11647 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11648 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11649 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11650 Disable -Werror for -Wdeprecated-declarations.
11651 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11652 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11653 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11654 (grub_util_get_grub_dev): Make luks handling dependent on
11655 HAVE_DEVICE_MAPPER and not __linux__.
11656 (get_win32_path): Fix format security.
11657 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11658 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11659 Don't try grub_find_zpool_from_dir.
11660 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11661 #ifdef-out paresdir.
11663 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11665 * util/grub-pe2elf.c (usage): Add missing noreturn.
11666 (write_section_data): Rename name to shname to avoid shadowing.
11667 (write_symbol_table): Rename name to symname to avoid shadowing.
11668 Fix write_reloc_section call.
11670 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11672 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11673 to ensure that it's after the last byte of .text.
11675 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11677 * util/ieee1275/ofpath.c (my_isdigit): New function.
11678 (trailing_digits): Use my_isdigit.
11679 (strip_trailing_digits): Likewise.
11681 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11683 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11684 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11686 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11688 * grub-core/kern/i386/pc/startup.S: Define __start.
11690 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11692 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11693 strip already transforms he format.
11695 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11697 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11699 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11701 * util/grub-install.in: Add missing gettext init.
11702 * util/grub-kbdcomp.in: Likewise.
11703 * util/grub-mkconfig.in: Likewise.
11704 * util/grub-mknetdir.in: Likewise.
11705 * util/grub-mkrescue.in: Likewise.
11706 * util/grub-mkstandalone.in: Likewise.
11707 * util/grub-reboot.in: Likewise.
11708 * util/grub-set-default.in: Likewise.
11709 * util/grub.d/00_header.in: Likewise.
11710 * util/grub.d/10_hurd.in: Likewise.
11711 * util/grub.d/10_windows.in: Likewise.
11712 * util/grub.d/30_os-prober.in: Likewise.
11713 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11715 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11717 * po/Rules-swiss: Fix header comment.
11719 2012-02-29 Andreas Vogel <anvoit>
11721 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11722 resulted in leak of arguments.
11724 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11726 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11727 reed_solomon_size const definition instead of computing it since
11728 Apple assembler doesn't support the later.
11730 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11732 * gentpl.py (kernel): Rewrite Apple part.
11734 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11736 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11738 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11740 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11742 (load_image): Likewise.
11744 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11746 * configure.ac: Fix a typo in previous commit.
11748 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11750 Don't add -Wl,-N on Apple platform.
11752 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11753 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11755 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11757 * grub-core/Makefile.core.def (lzma_decompress): Use
11758 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11760 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11762 * grub-core/genmod.sh.in: Rewrite the Apple part.
11764 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11766 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11769 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11771 * acinclude.m4 (grub_CHECK_PIC): New test.
11772 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11774 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11776 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11777 to avoid the warning.
11779 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11781 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11782 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11783 after. All users updated.
11785 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11787 Use the common size routine in hostfs so we can read disks as well.
11789 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11790 (grub_util_get_fd_size): ... this. Return size in bytes.
11792 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11793 grub_util_get_fd_size.
11795 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11797 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11798 Add blocksize retrieval.
11800 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11802 * configure.ac: Restore CFLAGS after efiemu check.
11804 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11806 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11809 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11811 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11813 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11815 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11816 (grub_cmd_halt): Likewise.
11818 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11820 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11821 for local arithmetics.
11822 Break %sp init into 2 instructions.
11823 Add 0 byte at the end.
11825 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11827 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11830 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11832 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11835 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11837 * grub-core/disk/ldm.c (make_vg): Init part.name.
11838 (grub_ldm_detect): Silence spurious warning.
11839 (grub_util_is_ldm): Likewise.
11841 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11843 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11844 sane value to avoid a spurious warning.
11846 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11848 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11849 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11851 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11853 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11854 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11856 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11858 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11859 hardcoding the relevant info.
11861 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11863 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11864 missing const qualifiers.
11865 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11867 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11869 * util/getroot.c [__APPLE__]: Add missing includes.
11870 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11872 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11874 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11876 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11878 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11881 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11883 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11885 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11887 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11888 and grub_file_close call.
11890 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11892 Add LZSS Mach-O support (needed for new xnu kernelcache).
11894 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11895 * grub-core/loader/lzss.c: New file.
11896 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11897 on Mach-O open failure.
11898 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11899 Don't free cmdsXX in uncompressedXX is set.
11900 (grub_macho_file): Init new fields.
11901 New argument is_64bit. All users updated.
11902 Handle compressed. Error out if no suitable architecture is found.
11904 (grub_macho_open): New argument is_64bit. All users updated.
11905 * grub-core/loader/macho32.c: Add defines for new fields.
11906 * grub-core/loader/macho64.c: Likewise.
11907 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11908 (grub_macho_parse): Handle compressed.
11909 Defer actual processing if compressed.
11910 (grub_macho_cmds_iterate): Decompress if compressed. New argument
11911 "filename". All users updated.
11912 (grub_macho_size): New argument "filename". All users updated.
11913 (grub_macho_get_entry_point): Likewise.
11914 (grub_macho_load): Handle compressed.
11915 * include/grub/macho.h (grub_macho_lzss_header): New struct.
11916 (GRUB_MACHO_LZSS_OFFSET): New define.
11917 (grub_decompress_lzss): New proto.
11918 * include/grub/machoload.h (grub_macho_file): New fields to handle
11920 (grub_macho_contains_macho64): Remove proto.
11921 (grub_macho_contains_macho32): Likewise.
11922 * util/grub.d/30_os-prober.in: Use kernel cache if available.
11924 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11926 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
11928 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11932 * Makefile.am (starfield_theme_files): New var.
11933 (starfield_DATA): Use starfield_theme_files.
11934 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
11935 Add bootcheck-related files.
11936 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
11937 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
11938 and font_char_metrics.txt.
11939 * grub-core/Makefile.core.def (kernel): Update extra_dist.
11940 (setjmp): Add lib/ia64/longjmp.S.
11941 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
11942 * po/POTFILES.in: Regenerate.
11943 * po/Rules-swiss: use DISTFILES.common.extra2 and not
11944 DISTFILES.common.extra1.
11945 * util/devicemap.c: Removed.
11946 * grub-core/lib/i386/relocator_backward.S: Likewise.
11947 * util/import_gcry.py: Remove unused files. Add extra_dist for
11950 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11952 * grub-core/gettext/gettext.c (grub_mofile_open): Call
11953 grub_gettext_delete_list before changing grub_gettext_max to avoid
11954 running out of array bounds.
11956 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11958 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
11959 grub_vga_text_init/grub_vga_text_fini.
11961 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11963 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
11965 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11967 * configure.ac: Bump to 2.00~beta0.
11969 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11971 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
11972 missing initialisation.
11974 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11976 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
11978 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11980 Support v2 xnu boot arguments.
11982 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
11983 New argument fsbfreq_out.
11984 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
11985 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
11987 * grub-core/loader/machoXX.c (grub_macho_load): New argument
11989 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
11990 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
11991 (grub_xnu_boot_params): Rename to ...
11992 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
11993 (grub_xnu_boot_params_v2): New struct.
11995 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11997 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
11998 zeroing of CRC field before computing CRC.
12000 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12002 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12003 Change order of allocations to decrease fragmentation.
12005 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12007 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12009 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12011 Use write-combining MTRR to speed up video with buggy BIOSes.
12013 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12014 (cpuid): New define.
12017 (mtrr_base): Likewise.
12018 (mtrr_mask): Likewise.
12019 (grub_vbe_enable_mtrr_entry): New function.
12020 (grub_vbe_enable_mtrr): Likewise.
12021 (grub_vbe_disable_mtrr): Likewise.
12022 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12023 control off to BIOS.
12024 (grub_video_vbe_init): Fill mtrr.
12025 (grub_video_vbe_fini): Disable mtrr.
12026 (grub_video_vbe_get_info_and_fini): Likewise.
12027 (grub_video_vbe_setup): Enable mtrr.
12029 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12031 * include/grub/partition.h (grub_partition_map): Change prototype of
12032 embed to take a maximum value for nsectors.
12033 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12034 * include/grub/fs.h (grub_fs): Likewise.
12035 * grub-core/partmap/msdos.c (embed_signatures): New array.
12036 (pc_partition_map_embed): Check for and avoid sectors matching any
12037 of the signatures in embed_signatures, up to max_nsectors.
12038 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12039 returned sector map to max_nsectors.
12040 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12041 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12042 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12043 * util/grub-setup.c (setup): Allow for the embedding area being
12044 split into multiple blocklists. Tell dest_partmap->embed the
12045 maximum number of sectors we care about.
12047 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12049 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12050 Specify blocklist_install and reserver_first_sector for all fs.
12051 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12054 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12056 * util/grub-install.in: Clarify strings.
12057 Fix source dir check.
12059 2012-02-27 Richard Laager <rlaager@wiktel.com>
12061 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12062 "zfs" and "fuse.zfs" as synonyms.
12064 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12066 * configure.ac: Put platform and target_cpu substitutions back since
12067 they are used for directories.
12069 2012-02-27 Richard Laager <rlaager@wiktel.com>
12070 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12072 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12073 * util/grub.d/20_linux_xen.in: Likewise.
12075 2012-02-27 Richard Laager <rlaager@wiktel.com>
12077 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12080 2012-02-27 Richard Laager <rlaager@wiktel.com>
12082 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12085 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12087 Don't use insecure popen in getroot.
12089 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12090 (exec_pipe): ... here.
12091 (find_root_devices_from_poolname): Use exec_pipe.
12093 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12095 Remove platform and target_cpu replacement.
12097 * configure.ac: Remove platform and target_cpu substitutions.
12098 * tests/util/grub-shell.in: Use modinfo.
12099 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12102 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12104 Autodetect platform in grub-install but allow override.
12106 * util/grub-install.in: Autodetect platform. Support --target and
12107 --directory. Read platform from modinfo.sh.
12109 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12111 Support btrfs multi-volume probe.
12113 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12114 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12115 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12116 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12117 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12118 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12119 grub_find_root_devices_from_btrfs if on btrfs.
12121 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12123 Remove any awareness of *.c util files about target.
12125 * Makefile.util.def (grub-setup): Split to ...
12126 (grub-bios-setup): ... and this.
12127 (grub-sparc64-setup): ... and this.
12128 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12129 * docs/man/grub-setup.h2m: Split into ...
12130 * docs/man/grub-sparc64-setup.h2m: ... this.
12131 * docs/man/grub-bios-setup.h2m: ... and this.
12132 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12133 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12134 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12135 (grub_target_addr_t): Remove.
12136 (grub_target_size_t): Remove.
12137 (grub_target_ssize_t): Remove.
12138 * util/grub-install.in: Use new grub-*-setup.
12139 * util/grub-mkimagexx.c (Elf_Word): New define.
12140 (Elf_Half): Likewise.
12141 (Elf_Section): Likewise.
12142 (ELF_ST_TYPE): Likewise.
12143 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12144 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12146 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12148 Replace grub_target_addr with more appropriate types.
12150 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12151 grub_target_addr with grub_addr.
12152 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12153 grub_target_addr with grub_port.
12154 (grub_cmd_write): Likewise.
12155 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12156 grub_target_addr with grub_addr.
12157 (grub_cmd_write): Likewise.
12158 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12160 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12162 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12163 const qualifier for vendor_guid.
12165 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12167 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12169 (efiemu_memequal): Likewise.
12170 (find_variable): Likewise.
12172 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12174 Fix missing console prototype on qemu-mips.
12176 * include/grub/mips/qemu_mips/console.h: New file.
12178 2012-02-27 Matthew Garrett <mjg@redhat.com>
12179 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12181 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12182 * include/grub/efi/efi.h: Likewise.
12183 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12184 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12185 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12186 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12187 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12188 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12190 2012-02-27 Matthew Garrett <mjg@redhat.com>
12192 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12194 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12196 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12199 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12201 * configure.ac: Remove inappropriate use of program_transform_name
12202 on grubdir and bootdir but allow explicit specification of those
12205 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12207 * util/grub-mknetdir.in (grub_prefix): Removed.
12208 (subdir): Use @bootdirname@ and @grubdirname@.
12210 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12212 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12214 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12216 * po/POTFILES.in: Regenerated.
12218 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12220 Remove improper use of program_transform_name on pkglibrootdir.
12222 * configure.ac (pkglibrootdir): Removed.
12223 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12224 * util/grub-mkimage.c: Likewise.
12226 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12228 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12231 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12233 * util/grub-install.in: Use file identifier if no UUID is available
12234 or user explicitly prompted for it.
12236 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12238 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12239 (freebsd_get_zfs): New function.
12240 (grub_freebsd_boot): Pass zfs UUID.
12241 (grub_cmd_freebsd): Set zfs UUID.
12243 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12245 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12248 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12250 Add configure flag to control libzfs integration.
12252 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12254 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12256 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12258 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12261 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12263 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12264 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12265 be used on non-modules.
12267 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12268 Rename to grub_boot_init.
12269 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12270 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12271 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12272 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12273 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12274 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12275 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12276 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12278 (grub_machine_init): Remove empty inits.
12279 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12281 (grub_machine_init): Remove empty inits.
12282 * grub-core/term/arc/console.c: Remove explicit proto.
12283 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12284 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12285 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12286 grub_at_keyboard_fini.
12287 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12288 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12289 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12291 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12292 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12293 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12295 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12296 * grub-core/term/serial.c (GRUB_MOD_INIT)
12297 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12298 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12300 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12301 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12302 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12303 grub_terminfo_fini.
12304 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12305 (GRUB_MOD_FINI): Likewise.
12306 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12307 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12308 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12309 grub_video_radeon_fuloong2e_fini.
12310 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12311 [LOONGSON]: Rename to grub_video_sis315pro_init.
12312 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12313 grub_video_sis315pro_fini.
12314 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12315 [LOONGSON]: Rename to grub_video_sm712_init.
12316 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12317 grub_video_sm712_fini.
12318 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12319 (grub_at_keyboard_fini): Likewise.
12320 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12321 Don't declare grub_{modname}_init.
12322 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12323 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12325 (grub_keylayouts_fini) [!EMU]: Likewise.
12326 * include/grub/serial.h (grub_serial_init) [!EMU]:
12328 (grub_serial_fini) [!EMU]: Likewise.
12329 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12331 (grub_terminfo_fini) [!EMU]: Likewise.
12332 * include/grub/video.h (grub_font_init) [!EMU]:
12334 (grub_font_fini) [!EMU]: Likewise.
12335 (grub_gfxterm_init) [!EMU]: Likewise.
12336 (grub_gfxterm_fini) [!EMU]: Likewise.
12337 (grub_video_sm712_init) [!EMU]: Likewise.
12338 (grub_video_sm712_fini) [!EMU]: Likewise.
12339 (grub_video_sis315pro_init) [!EMU]: Likewise.
12340 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12341 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12342 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12344 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12346 Make nand a prefix for nand devices.
12348 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12350 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12352 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12353 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12355 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12357 * include/grub/env.h (grub_env_find): Remove prototype.
12358 * grub-core/kern/env.c (grub_env_find): Make static.
12359 (grub_env_set): Remove useless set.
12361 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12363 * grub-core/kern/i386/realmode.S: Remove useless align.
12365 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12367 * include/grub/dl.h (grub_dl_load_file): Don't export.
12369 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12371 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12374 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12376 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12378 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12379 not reloading whole superblock but only the part which is really needed.
12380 Remove useless grub_errors.
12381 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12384 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12386 Don't export grub_get_rtc.
12388 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12389 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12391 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12393 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12395 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12397 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12398 argument since it can be deduced from diskfilter. All users updated.
12400 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12404 * include/grub/list.h (grub_prio_list): Removed.
12405 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12406 GRUB_COMMAND_PRIO_MASK.
12407 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12408 GRUB_COMMAND_FLAG_ACTIVE.
12409 (grub_prio_list_insert): Removed.
12410 (grub_prio_list_remove): Likewise.
12411 (GRUB_AS_PRIO_LIST): Likewise.
12412 (GRUB_AS_PRIO_LIST_P): Likewise.
12413 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12414 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12415 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12416 * grub-core/kern/command.c (grub_register_command_prio): Inline
12417 the prio_list code.
12418 (grub_unregister_command): Likewise.
12420 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12422 Fix interrupt mixup from previous commit.
12424 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12425 (grub_realidt): New var.
12426 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12428 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12430 (grub_relocator16_boot): Set grub_relocator16_idt.
12431 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12432 (LOCAL(realidt)): ... this.
12433 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12434 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12435 (grub_realidt): New variable.
12437 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12439 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12440 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12441 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12442 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12444 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12445 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12446 * po/POTFILES.in: Regenerate.
12448 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12450 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12453 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12455 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12457 (add_length): Likewise.
12459 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12460 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12462 GDB serial and backtrace support.
12464 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12465 (prot_to_real): Likewise.
12466 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12467 * grub-core/Makefile.core.def (backtrace): New module.
12469 * grub-core/gdb/cstub.c: New file.
12470 * grub-core/gdb/gdb.c: Likewise.
12471 * grub-core/gdb/i386/idt.c: Likewise.
12472 * grub-core/gdb/i386/machdep.S: Likewise.
12473 * grub-core/gdb/i386/signal.c: Likewise.
12474 * grub-core/lib/i386/backtrace.c: Likewise.
12475 * grub-core/lib/backtrace.c: Likewise.
12476 * include/grub/backtrace.h: Likewise.
12477 * include/grub/gdb.h: Likewise.
12478 * include/grub/i386/gdb.h: Likewise.
12480 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12482 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12484 (add_length): Likewise.
12485 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12486 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12488 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12489 __argp_get_display_len.
12491 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12493 $"..." support in scripts.
12495 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12496 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12497 * grub-core/script/yylex.l: Likewise.
12498 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12501 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12503 * gentpl.py: Remove obsolete pkglib_DATA handling.
12505 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12507 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12510 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12511 * util/grub-kbdcomp.in: Likewise.
12512 * util/grub-mkconfig.in: Likewise.
12513 * util/grub-mkconfig_lib.in: Likewise.
12514 * util/grub-mknetdir.in: Likewise.
12515 * util/grub-mkrescue.in: Likewise.
12516 * util/grub-mkstandalone.in: Likewise.
12517 * util/grub-reboot.in: Likewise.
12518 * util/grub-set-default.in: Likewise.
12519 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12521 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12523 Remove GRUB_PREFIX.
12525 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12526 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12527 used for backward compatibility.
12529 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12531 Add new all_video module.
12533 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12534 * grub-core/Makefile.core.def (all_video): New module.
12535 * grub-core/genmoddep.awk: Generate dependency of all_video from
12537 * grub-core/lib/fake_module.c: New file.
12538 * grub-core/normal/main.c (features): Add feature_all_video_module.
12539 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12540 don't do explicit search again.
12541 insmod all_video in load_video if available.
12543 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12545 Another round of string clarification and adding TRANSLATORS comments.
12547 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12549 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12551 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12553 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12555 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12556 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12558 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12560 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12561 trailing newline implicitly. All users updated.
12563 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12565 Implement serial on IEEE1275 and EFI.
12567 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12568 on emu. Mention arc and emu as the only platforms without serial
12570 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12571 ieee1275 platforms.
12572 * grub-core/term/efi/serial.c: New file.
12573 * grub-core/term/ieee1275/serial.c: Likewise.
12574 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12575 specification if no ns8250 driver is available.
12576 (grub_cmd_serial): Likewise.
12577 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12578 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12579 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12580 (grub_efi_parity_type_t): New type.
12581 (grub_efi_stop_bits_t): Likewise.
12582 (grub_efi_serial_io_interface): New struct.
12583 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12584 available for all interfaces.
12585 Add EFI and IEEE1275 fields.
12586 (grub_ofserial_init): New proto.
12587 (grub_efiserial_init): Likeiwse.
12588 * util/grub.d/00_header.in: Don't check for the presence of serial
12591 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12593 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12594 name as if it was an alias.
12596 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12598 * grub-core/commands/lsacpi.c (options): Fix typo.
12600 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12602 Convert grub-emu to argp.
12604 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12606 * util/argp_common.c: Rename to ...
12607 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12608 Add missing includes.
12609 * grub-core/kern/emu/main.c: Convert to argp.
12610 * po/POTFILES.in: Regenerate.
12611 * util/grub-install.in (usage): Make first letter lowcase in messages
12613 * util/grub-setup.c (options): Likewise.
12615 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12617 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12618 Put back accidently commented-out code.
12620 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12622 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12623 loop check using Brent algorithm.
12624 (grub_hfsplus_btree_search): Likewise.
12626 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12628 * util/grub-install.in: Fix usage of wrong device for PreP install.
12630 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12632 * conf/Makefile.common (CFLAGS_GNULIB): Add
12633 -Wno-unsafe-loop-optimizations.
12634 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12636 * grub-core/commands/legacycfg.c: Add pragma to skip
12637 -Wunsafe-loop-optimizations.
12638 (check_password_md5_real): Fix loop counter type.
12639 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12641 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12642 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12644 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12645 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12646 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12648 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12649 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12650 avoid possible infinite loops.
12651 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12652 and -Wunsafe-loop-optimizations.
12653 * grub-core/script/yylex.l: Likewise.
12654 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12655 (print_glyphs): Avoid infinite loops.
12656 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12658 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12660 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12661 to avoid infinite loop.
12662 (disp_acpi_rsdt_table): Likewise.
12664 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12666 * grub-core/font/font.c (grub_font_load): Add support for default
12667 path for fonts ($prefix/fonts).
12668 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12669 for checking if string is a path.
12670 * grub-core/normal/main.c (features): Add feature_default_font_path.
12671 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12672 * util/grub.d/00_header.in: Use default directory if possible.
12673 * util/grub-install.in: Install unicode.pf2.
12675 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12677 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12678 * po/Rules-swiss: New file.
12679 * po/swiss.sed: Likewise.
12681 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12683 * grub-core/fs/btrfs.c (find_device): Fix typos.
12684 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12685 * util/grub-mkrelpath.c (argp_parser): Likewise.
12686 Reported by: Yuri Chornoivan.
12688 2012-02-23 Dalet Omega <daletomega@gmail.com>
12690 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12691 for usual informative messages.
12693 2012-02-23 Dalet Omega <daletomega@gmail.com>
12697 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12698 * conf/Makefile.common: Define starfielddir.
12699 * configure.ac: Configure starfield.
12700 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12701 * themes/starfield/README: Likewise.
12702 * themes/starfield/blob_w.png: Likewise.
12703 * themes/starfield/boot_menu_c.png: Likewise.
12704 * themes/starfield/boot_menu_e.png: Likewise.
12705 * themes/starfield/boot_menu_n.png: Likewise.
12706 * themes/starfield/boot_menu_ne.png: Likewise.
12707 * themes/starfield/boot_menu_nw.png: Likewise.
12708 * themes/starfield/boot_menu_s.png: Likewise.
12709 * themes/starfield/boot_menu_se.png: Likewise.
12710 * themes/starfield/boot_menu_sw.png: Likewise.
12711 * themes/starfield/boot_menu_w.png: Likewise.
12712 * themes/starfield/slider_c.png: Likewise.
12713 * themes/starfield/slider_n.png: Likewise.
12714 * themes/starfield/slider_s.png: Likewise.
12715 * themes/starfield/src/blob_nw.xcf: Likewise.
12716 * themes/starfield/src/bootmenu/: Likewise.
12717 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12718 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12719 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12720 * themes/starfield/src/slider_c.xcf: Likewise.
12721 * themes/starfield/src/slider_n.xcf: Likewise.
12722 * themes/starfield/src/slider_s.xcf: Likewise.
12723 * themes/starfield/src/terminalbox/: Likewise.
12724 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12725 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12726 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12727 * themes/starfield/starfield.png: Likewise.
12728 * themes/starfield/terminal_box_c.png: Likewise.
12729 * themes/starfield/terminal_box_e.png: Likewise.
12730 * themes/starfield/terminal_box_n.png: Likewise.
12731 * themes/starfield/terminal_box_ne.png: Likewise.
12732 * themes/starfield/terminal_box_nw.png: Likewise.
12733 * themes/starfield/terminal_box_s.png: Likewise.
12734 * themes/starfield/terminal_box_se.png: Likewise.
12735 * themes/starfield/terminal_box_sw.png: Likewise.
12736 * themes/starfield/terminal_box_w.png: Likewise.
12737 * themes/starfield/theme.txt: Likewise.
12739 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12741 * util/grub.d/00_header.in: Add missing export theme.
12743 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12745 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12747 Reported by: Eren D.
12749 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12751 * conf/Makefile.common (grubdatadir): Removed.
12752 (Makefile.am): Move eveything grubdata to pkgdata.
12754 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12756 * grub-core/commands/acpihalt.c (get_sleep_type):
12757 Remove unused variable.
12759 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12761 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12762 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12763 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12764 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12765 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12766 i18n with gettext no-op.
12767 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12768 GRUB_ACPI_OPCODE_STRING_CONST.
12769 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12770 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12772 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12774 * po/POTFILES.in: Regenerate.
12776 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12778 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12779 -Wno-error=missing-noreturn.
12781 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12783 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12784 condition to avoid possibly infinite loops.
12785 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12786 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12788 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12790 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12791 condition to avoid possibly infinite loops.
12793 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12795 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12798 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12800 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12802 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12804 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12806 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12808 * util/bin2h.c (usage): Add missing attribute noreturn.
12810 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12812 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12813 if the size isn't divisible by 512.
12815 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12817 Make list_push and list_remove functions rather than inline functions
12818 to decrease size and avoid aliasing violations.
12820 * include/grub/list.h (grub_list_push): Move to ...
12821 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12822 * include/grub/list.h (grub_list_remove): Move to ...
12823 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12825 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12827 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12828 and -Wunused-result.
12830 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12832 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12833 Reported by: Seth Goldberg
12835 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12837 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12839 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12841 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12842 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12844 * docs/grub.texi (Simple configuration): Document
12845 GRUB_CMDLINE_GNUMACH.
12847 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12849 * conf/Makefile.common (platform_SCRIPTS): New variable.
12850 (platform_PROGRAMS): Likewise.
12851 * gentpl.py: Mark *,module and *.image for install.
12852 * grub-core/gdb_grub.in: Add a notice of expected environment.
12853 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12854 (gmodule.pl): Likewise.
12856 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12858 Replace grub_checkkey with grub_getkey_noblock.
12860 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12861 (grub_getkey_noblock): ... this. All users updated.
12863 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12865 * grub-core/kern/emu/console.c: Move to ...
12866 * grub-core/term/emu/console.c: ...here.
12867 (grub_ncurses_getkey): Fix return value if no key is detected.
12869 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12871 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12872 (grub_unit_test_fini): Likewise.
12873 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12875 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12877 * include/grub/test.h (GRUB_UNIT_TEST)
12879 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12881 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12882 Better error handling.
12883 (grub_script_return): Likewise.
12884 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12886 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12888 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12889 rimplicit redifinition.
12891 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12893 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12896 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12898 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12899 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12902 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12904 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12905 as GRUB_ERR_BUG. Don't malloc if no device is available.
12907 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12909 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12910 Mark calling with invalid term as GRUB_ERR_BUG.
12912 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12914 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
12915 packets rather than raising an error.
12917 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12919 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
12922 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12924 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
12925 diagnostic to dprintf.
12926 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12928 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12930 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
12933 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12935 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
12936 (grub_ntfs_iterate_dir): Likewise.
12938 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12940 Efiemu stylistic fixes and gettext.
12942 * grub-core/efiemu/i386/loadcore32.c
12943 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
12944 * grub-core/efiemu/i386/loadcore64.c
12945 (grub_arch_efiemu_relocate_symbols64): Likewise.
12946 * grub-core/efiemu/i386/pc/cfgtables.c
12947 (grub_machine_efiemu_init_tables): Likewise.
12948 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
12949 (grub_efiemu_loadcore_initXX): Add a filename argument.
12951 Improved error message.
12952 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
12953 Add a filename argument.
12955 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
12956 Reclassify double relocation as GRUB_ERR_BUG.
12958 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12960 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
12963 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12965 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
12968 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12970 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
12972 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12974 Improve string. Gettextize.
12976 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12978 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
12980 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
12982 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12984 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
12985 [GRUB_UTIL]: New function.
12986 (insert_array) [GRUB_UTIL]: Store partmaps.
12987 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
12989 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
12990 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
12991 (probe_abstraction): Print diskfilter and not raid.
12992 Reported by: Lennart Sorensen
12994 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12996 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
12997 * util/grub-mkimagexx.c (MASK3): New define.
12998 (add_value_to_slot_20b): Use MASK3.
12999 (add_value_to_slot_21): Likewise.
13000 (relocate_addresses): Fix format specification.
13001 (load_image): Explicitly init symtab_section.
13003 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13005 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13006 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13008 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13010 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13012 Reported by: Lennart Sorensen
13014 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13016 * gentpl.py: Add missing license header.
13017 * docs/grub.texi: Update copyright year.
13019 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13021 Source grub-mkconfig_lib from the build directory at build time.
13022 Suggested by: Vladimir Serbinenko.
13024 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13025 * util/grub-install.in: Define pkgdatadir if not already set, and source
13026 grub-mkconfig_lib from there.
13027 * util/grub-kbdcomp.in: Likewise.
13028 * util/grub-mkconfig.in: Likewise.
13029 * util/grub-mknetdir.in: Likewise.
13030 * util/grub-mkrescue.in: Likewise.
13031 * util/grub-mkstandalone.in: Likewise.
13032 * util/grub-reboot.in: Likewise.
13033 * util/grub-set-default.in: Likewise.
13034 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13036 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13038 Increase warning level.
13040 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13041 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13042 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13043 (TARGET_CFLAGS): Likewise.
13044 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13045 * grub-core/Makefile.core.def (decompressor_xz): Add
13046 -Wno-unreachable-code.
13047 (normal): Add -Wno-redundant-decls.
13048 (xzio): Add -Wno-unreachable-code.
13049 (lzopio): Add -Wno-redundant-decls -Wno-error.
13050 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13051 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13052 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13053 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13054 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13055 * grub-core/kern/i386/coreboot/init.c: Add exception to
13056 -Wsuggest-attribute=noreturn.
13057 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13058 * grub-core/kern/ia64/dl_helper.c: Likewise.
13059 * grub-core/kern/mips/dl.c: Likewise.
13060 * grub-core/kern/sparc64/dl.c: Likewise.
13061 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13062 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13063 (memcmp): Likewise.
13064 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13065 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13066 * grub-core/loader/mips/linux.c: Likewise.
13067 * grub-core/loader/multiboot_elfxx.c: Likewise.
13068 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13069 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13070 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13071 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13073 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13074 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13077 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13079 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13082 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13084 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13085 Avoid improper use of strings.
13086 (grub_cmd_legacy_initrdnounzip): Likewise.
13088 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13090 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13092 (grub_util_info): Likewise.
13093 (grub_util_error): Likewise.
13095 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13097 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13098 * util/grub-fstest.c (fstest): Likewise.
13100 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13102 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13103 (grub_md_sha512_real): Likewise.
13104 (grub_util_get_geli_uuid): Likewise.
13105 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13106 (grub_util_biosdisk_open): Fix format specification.
13107 Respect format security.
13108 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13109 (xrealloc): Likewise.
13110 (xasprintf): Likewise.
13112 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13114 * util/import_gcry.py: Include grub/crypto.h in init.c.
13116 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13118 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13119 (generate_image): Make prefix a const char *.
13120 Fix format specifications. Respect format security.
13121 Avoid void * arithmetics.
13123 (argp_parser): Remove unused variable. Respect format security.
13124 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13125 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13126 (count_funcs): Remove unused variable.
13127 (relocate_addresses): Fix format specification.
13128 Disable x86-64 with elf32. Remove unused variables.
13129 (add_fixup_entry): Avoid shadowing.
13130 (make_reloc_section): Fix format specification.
13132 (locate_sections): Fix format specifications.
13133 (load_image): Avoid shadowing.
13135 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13137 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13138 Fix format specifications. Respect format security.
13139 Don't translate already translated grub_errmsg.
13140 (argp_parser): Remove unused variable
13142 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13144 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13146 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13148 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13149 (main): Likewise. Use xmalloc. Respect format security.
13151 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13153 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13155 (argp_parser): Remove unused variable.
13157 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13159 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13160 (add_pixel): Make static.
13161 (add_font): Likewise.
13162 (write_string_section): Make name and str a const char *.
13163 (write_be16_section): Make name a const char *.
13164 (print_glyphs): Make static.
13165 (write_font_ascii_bitmap): Likewise.
13166 (write_font_width_spec): Likewise.
13167 (write_font_pf2): Likewise.
13168 (argp_parser): Remove unused variable.
13169 Respect format security.
13170 (main): Avoid shadowing. Respect format security.
13172 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13174 * util/grub-editenv.c (argp_parser): Make static.
13175 (create_envblk_file): Use xmalloc.
13176 (open_envblk_file): Likewise.
13177 Resepect format security.
13178 (set_variables): Respect format security.
13180 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13182 * util/getroot.c (grub_find_device): Respect format security.
13183 (get_mdadm_uuid): Remove unused variable.
13184 (grub_util_pull_device): Dont call gettext on already translated
13186 (find_system_device): Remove unused variable.
13187 (grub_util_get_grub_dev): Likewise.
13188 (grub_make_system_path_relative_to_its_root): Respect format security.
13190 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13192 * util/grub-fstest.c (execute_command): Make first argument
13194 (read_file): Avoid shadowing.
13195 Reuse underlying error message if device open fails.
13196 (cmd_cmp): Respect format security.
13197 (root): Make const char *.
13198 (fstest): Remove args argument and use global copy.
13199 Respect format security.
13200 (argp_parser): Make static.
13201 (main): Make default_root const char *.
13203 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13205 * util/grub-mount.c (root): Make const char *.
13206 (execute_command): Make first argument a const char *.
13207 (fuse_init): Respect format security.
13208 (argp_parser): Make static. Remove unused variable.
13209 (main): Make default_root a const char *.
13210 Respect format security.
13212 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13214 * util/grub-probe.c (probe): Don't call gettext on already translated
13216 Remove unused variables.
13217 (argp_parser): Remove unused variable.
13219 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13221 * util/grub-script-check.c (argp_parser): Remove unused variable.
13222 (main): Rename read to curread to avoid shadowing.
13224 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13226 * util/misc.c (grub_util_write_image_at): Fix format specification.
13227 (grub_util_write_image): Likewise.
13228 (grub_script_execute_argument_to_string): Removed (unused).
13229 (grub_script_execute_menuentry): Likewise.
13230 (grub_putchar): Likewise.
13232 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13234 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13235 (FUNCTION) [GRUB_UTIL]: Likewise.
13236 (VARIABLE) [GRUB_UTIL]: Likewise.
13238 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13240 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13241 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13243 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13245 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13248 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13250 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13251 (LzmaEnc_SaveState): Removed (unused).
13252 (LzmaEnc_RestoreState): Likewise.
13253 (LzmaEnc_InitPriceTables): Made static.
13254 (LzmaEnc_Construct): Likewise.
13255 (LzmaEnc_FreeLits): Likewise.
13256 (LzmaEnc_Destruct): Likewise.
13257 (LzmaEnc_Init): Likewise.
13258 (LzmaEnc_InitPrices): Likewise.
13259 (LzmaEnc_Finish): Likewise.
13260 (LzmaEnc_PrepareForLzma2): Removed (unused).
13261 (LzmaEnc_MemPrepare): Likewise.
13262 (LzmaEnc_GetNumAvailableBytes): Likewise.
13263 (LzmaEnc_GetCurBuf): Likewise.
13264 (LzmaEnc_CodeOneMemBlock): Likewise.
13266 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13268 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13269 (grub_util_ldm_embed): Likewise.
13271 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13273 * util/grub-editenv.c (print_var): Rename name to varname to
13275 (main): Rename index to curindex to avoid shadowing.
13276 Make filename a const char *.
13278 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13280 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13281 to arg_getline to avoid shadowing.
13283 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13285 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13286 disk_ to avoid shadowing.
13288 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13290 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13291 curindex to avoid shadowing.
13293 (MatchFinder_GetNumAvailableBytes): Make static.
13295 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13297 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13300 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13302 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13303 argument from encrypt to do_encrypt to avoid shadowing.
13305 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13307 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13308 incorrect nesting of #if's.
13310 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13312 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13313 checks which are always false on some platforms.
13314 (grub_cmd_lsacpi): Likewise.
13315 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13316 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13319 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13321 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13322 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13324 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13326 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13327 re_dfa_t to avoid breaking alignment invariants.
13328 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13329 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13331 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13333 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13334 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13336 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13338 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13341 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13343 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13344 conserve alignment invariants.
13345 (grub_ehci_ehcc_read16): Likewise.
13346 (grub_ehci_oper_read32): Likewise.
13347 (grub_ehci_oper_write32): Likewise.
13348 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13349 Conserve alignment invariants.
13351 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13353 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13354 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13357 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13359 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13360 Remove unused variable.
13362 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13364 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13367 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13369 * include/grub/net.h: Remove double declarations.
13371 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13373 Remove "payload" command in ia64 Linux loader since I couldn't
13374 find any evidence of it being used for anything.
13375 Replace "relocate" command with an environment variable
13377 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13379 (ia64_boot_payload): Removed.
13380 (last_payload): Likewise.
13381 (RELOCATE_OFF): Likewise.
13382 (RELOCATE_ON): Likewise.
13383 (RELOCATE_FORCE): Likewise.
13384 (relocate): Likewise.
13385 (free_pages): Don't free payloads.
13386 (grub_load_elf64): Use common error messages.
13387 Use "linux_relocate" variable.
13388 Increase the space after boot_params.
13389 (grub_cmd_payload): Removed.
13390 (grub_cmd_relocate): Likewise.
13391 (grub_cmd_fpswa): Improve messages.
13392 (cmd_payload): Removed.
13393 (cmd_relocate): Likewise.
13394 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13395 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13397 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13399 Convert UHCI to DMA framework.
13401 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13402 (grub_uhci_pci_iter): Fill new members
13403 (grub_alloc_td): Use P2V and V2P functions.
13404 (grub_free_queue): Likewise.
13405 (grub_alloc_qh): Likewise.
13406 (grub_uhci_setup_transfer): Likewise.
13407 (grub_uhci_check_transfer): Likewise.
13409 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13411 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13412 Remove assignment in if while on it.
13414 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13416 * util/grub-mkstandalone.in: Fix modules directory.
13418 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13420 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13422 (argp_parser): Accept "auto" as compression specification.
13424 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13426 Fix `help' with unloaded modules.
13428 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13429 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13430 (grub_dyncmd_dispatcher): Small stylistic fix.
13431 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13432 explicit help is requested.
13434 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13436 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13437 Explicitly init restart while on it.
13439 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13441 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13444 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13446 * util/grub-mknetdir.in: Use . rather than source for POSIX
13449 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13451 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13453 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13455 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13458 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13460 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13463 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13465 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13467 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13469 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13470 iteration of partitions.
13472 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13474 Improve gettext support. Stylistic fixes and error handling fixes while
13477 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13479 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13480 part. Instead setup the correct stack in RM.
13481 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13483 * include/grub/i386/relocator_private.h: New file.
13485 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13487 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13489 * util/grub-fstest.c (options): Add missing DEVICE part.
13491 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13493 Clarify and unify messages.
13495 * grub-core/commands/hashsum.c (options): Unify messages.
13496 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13497 literal-only message as translatable.
13498 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13499 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13500 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13502 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13503 key, not the key used to unlock. Clarify what it's used for.
13504 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13505 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13506 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13507 * util/grub-editenv.c (options): Unify "verbose" message.
13508 * util/grub-fstest.c (read_file): Unify error message.
13509 (fstest): Add quotes around commands.
13510 (options): Unify "verbose" message.
13511 * util/grub-install.in: Add quotes around variable name.
13512 * util/grub-kbdcomp.in: Unify error message.
13513 * util/grub-mkfont.c (main): Likewise.
13514 * util/grub-mkrescue.in: Likewise.
13515 * util/grub-mklayout.c (options): Unify "verbose" message.
13516 * util/grub-mkstandalone.in: Unify help and verbose messages.
13517 * util/grub-mount.c (options): Unify "verbose" message.
13518 * util/grub-probe.c (options): Likewise.
13519 * util/grub-script-check.c (options): Likewise.
13520 * util/grub-setup.c (setup): Unify no-terminator message.
13521 (options): Use DEVICE and not DEV.
13522 Unify "verbose" message.
13523 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13525 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13527 Improve and unify messages.
13529 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13530 name. All users updated.
13531 Print filename in error.
13532 (read_device_map): Print filename in error.
13533 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13534 (grub_util_get_os_disk): Likewise.
13535 (grub_util_biosdisk_get_grub_dev): Likewise.
13536 (grub_util_check_block_device): Likewise.
13537 (grub_util_check_char_device): Likewise.
13538 (grub_make_system_path_relative_to_its_root): Likewise.
13539 * util/grub-editenv.c (create_envblk_file): Likewise.
13540 (open_envblk_file): Likewise.
13541 (write_envblk): Likewise.
13542 * util/grub-fstest.c (cmd_cp): Likewise.
13543 (cmd_cat): Likewise.
13544 (cmd_cmp): Likewise.
13545 * util/grub-menulst2cfg.c (main): Likewise.
13546 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13547 (write_font_width_spec): Likewise.
13548 (write_font_pf2): Likewise.
13549 * util/grub-mkimage.c (generate_image): New argument outname.
13551 Remove unreacheable message.
13552 (options): Unify messages.
13553 (help_filter): Likewise.
13554 * util/grub-mklayout.c (usage): Removed (unused).
13555 (main): Print filename in error.
13556 * util/grub-mkrescue.in: Fix wrong quoting.
13557 * util/grub-setup.c (setup): Print filename in error.
13558 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13559 (check_sas): Likewise.
13560 * util/misc.c (grub_util_get_fp_size): Removed.
13561 (grub_util_get_image_size): Print filename in error.
13562 (grub_util_read_at): Removed.
13563 (grub_util_read_image): Print filename in error.
13564 (grub_util_load_image): Likewise.
13565 (grub_util_write_image_at): New argument filename. All users updated.
13566 Print filename in error.
13567 (grub_util_write_image): New argument filename. All users updated.
13568 Print filename in error.
13569 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13570 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13572 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13574 * grub-core/Makefile.core.def (pxechain): New module.
13575 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13576 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13578 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13579 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13581 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13583 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13584 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13585 * include/grub/err.h (grub_error_saved): New struct.
13586 (grub_errmsg): Make array size explicit.
13587 * include/grub/misc.h (grub_error_save): New function.
13588 (grub_error_load): Likewise.
13589 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13590 (grub_error_push): Update `errno' member name.
13591 (grub_error_pop): Likewise
13592 * grub-core/net/tftp.c (tftp_data): New member save_err.
13593 (tftp_receive): Save error.
13594 (tftp_open): Restore error.
13596 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13598 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13599 to real mode down to execute A20-related code in protected mode as
13602 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13604 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13605 NULL when the argument `level' has an unexpected value.
13607 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13609 Move platform-dependent files from $prefix to $prefix/$platform.
13611 * config.h.in (GRUB_TARGET_CPU): New definition.
13612 (GRUB_PLATFORM): Likewise.
13613 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13614 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13615 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13616 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13617 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13618 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13619 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13620 * grub-core/normal/term.c (read_terminal_list): Likewise.
13621 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13623 (grub_gettext_init_ext): Likewise.
13624 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13626 * util/grub-install.in: Update directories.
13627 * util/grub-mknetdir.in: Likewise.
13628 * util/grub-mkrescue.in: Likewise.
13630 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13632 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13633 grub_error framework. All users updated.
13635 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13637 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13638 lists (by always binsearching), improve caching (cache strings
13639 used for binsearch, not only results), improve
13640 maintainability (by using more structured binary search) and correct
13643 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13645 * grub-core/script/execute.c (grub_script_return): Fix warning.
13647 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13649 * grub-core/script/execute.c (grub_script_return): Fix potential
13651 Reported by: Jim Meyering.
13653 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13655 * po/POTFILES.in: Regenerate.
13656 * util/grub-install.in: Gettextize the strings missed in first pass.
13658 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13660 * Makefile.util.def (grub-mkdevicemap): Removed.
13661 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13662 * include/grub/util/deviceiter.h: Removed.
13663 * util/deviceiter.c: Likewise.
13664 * util/getroot.c (grub_util_get_os_disk): New function.
13665 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13666 replacement for EFI.
13667 * util/grub-mkdevicemap.c: Removed.
13668 * util/grub-probe.c (probe): Handle PRINT_DISK.
13669 (argp_parser): Handle -t disk.
13671 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13673 * util/grub-mkfont.c: Migrate to argp.
13674 * util/grub-mklayout.c: Likewise.
13675 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13676 * util/grub-mkrelpath.c: Likewise.
13677 * util/grub-probe.c: Likewise.
13678 * util/grub-script-check.c: Likewise.
13680 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13682 * util/grub-reboot.in: Add missing datarootdir.
13683 Add missing newline.
13684 * util/grub-set-default.in: Add missing datarootdir.
13685 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13686 * util/grub-mkrescue.in: Likewise.
13688 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13690 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13692 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13694 * util/grub-kbdcomp.in: Add decent help and gettextize.
13695 * docs/man/grub-kbdcomp.h2m: New file.
13697 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13699 Migrate grub-mkimage.c to argp.
13701 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13702 (grub-setup): Likewise.
13703 * util/grub-setup.c (print_version): Move to ...
13704 * util/argp_common.c (print_version): ... here.
13705 * util/grub-setup.c (argp_program_version_hook): Move to ...
13706 * util/argp_common.c (argp_program_version_hook): ... here.
13707 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13709 * util/grub-mkimage.c (main): Migrate to argp.
13711 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13713 * util/grub-mkrescue.in: Use same message as
13714 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13715 for better translations.
13717 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13719 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13720 options with generic grub-mkrescue.in with the goal of future
13723 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13725 * grub-core/kern/mm.c: Add missing include of i18n.h
13726 * grub-core/lib/relocator.c: Likewise.
13728 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13730 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13732 (allocate_pages): Check return value.
13733 Replace fatal with error.
13734 (grub_linux_boot): Replace printf with dprintf.
13735 Check find_mmap_size return value.
13736 Replace fatal with error.
13737 Don't call grub_machine_fini.
13738 (grub_load_elf64): Replace printf with dprintf.
13739 (grub_cmd_linux): Likewise.
13740 (grub_cmd_initrd): Likewise.
13741 (grub_cmd_payload): Likewise.
13743 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13745 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13747 * grub-core/video/radeon_fuloong2e.c
13748 (grub_video_radeon_fuloong2e_setup): Likewise.
13749 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13750 * grub-core/video/video.c (grub_video_set_mode): Don't override
13751 standard out of memory message.
13753 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13755 NetBSD disk wedge support.
13757 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13758 [__NetBSD__]: Handle NetBSD disk wedges.
13759 * util/getroot.c (convert_system_partition_to_system_disk)
13760 [__NetBSD__]: Likewise.
13762 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13764 * util/grub-mkconfig.in: Use umask rather than chmod to create
13765 grub.cfg.new to avoid insecure grub.cfg.
13767 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13769 * grub-core/commands/ls.c: Gettextize.
13770 * grub-core/commands/setpci.c: Likewise.
13771 * grub-core/commands/videotest.c: Likewise.
13772 * grub-core/disk/geli.c: Likewise.
13773 * grub-core/kern/mm.c: Likewise.
13774 * grub-core/lib/relocator.c: Likewise.
13775 * grub-core/loader/efi/appleloader.c: Likewise.
13776 * grub-core/loader/i386/xnu.c: Likewise.
13777 * grub-core/loader/ia64/efi/linux.c: Likewise.
13778 * grub-core/loader/xnu.c: Likewise.
13779 * grub-core/net/dns.c: Likewise.
13780 * grub-core/net/net.c: Likewise.
13781 * grub-core/script/lexer.c: Likewise.
13782 * grub-core/script/parser.y: Likewise.
13783 * grub-core/script/yylex.l: Likewise.
13784 * util/getroot.c: Likewise.
13785 * util/grub-setup.c: Likewise.
13787 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13789 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13792 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13794 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13796 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13798 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13800 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13801 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13803 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13805 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13806 * util/grub-install.in: Gettextize.
13807 * util/grub-mkconfig.in: Likewise.
13808 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13810 (grub_warn): Gettextize.
13811 * util/grub-mknetdir.in: Gettextize.
13812 * util/grub-mkrescue.in: Likewise.
13813 * util/grub-mkstandalone.in: Likewise.
13814 * util/grub-reboot.in: Likewise.
13815 * util/grub-set-default.in: Likewise.
13816 * util/grub.d/00_header.in: Likewise.
13817 * util/grub.d/10_hurd.in: Likewise.
13818 * util/grub.d/10_kfreebsd.in: Likewise.
13819 * util/grub.d/10_linux.in: Likewise.
13820 * util/grub.d/10_netbsd.in: Likewise.
13821 * util/grub.d/10_windows.in: Likewise.
13822 * util/grub.d/20_linux_xen.in: Likewise.
13823 * util/grub.d/30_os-prober.in: Likewise.
13824 * po/POTFILES-shell.in: Regenerate.
13826 2012-02-03 Richard Laager <rlaager@wiktel.com>
13828 * util/grub-mkimage.c (main): Fix format-security warning.
13829 * util/grub-mkrelpath.c (main): Likewise.
13830 * util/grub-probe.c (main): Likewise.
13832 2012-02-03 Richard Laager <rlaager@wiktel.com>
13834 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13836 Put back lost PRINT_DRIVE.
13838 2012-02-03 Richard Laager <rlaager@wiktel.com>
13840 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13841 (grub_guess_root_devices): Replace strlen with sizeof.
13843 (find_root_devices_from_poolname): Remove unused variable.
13846 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13848 Support install on multi-device filesystems.
13850 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13851 (grub_guess_root_devices): ...this. Return char **. All users updated.
13852 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13854 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13855 (find_root_devices_from_poolname): ... here.
13856 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13858 (grub_guess_root_device): Rename to ...
13859 (grub_guess_root_devices): ... this. Return char **. All users updated.
13860 * util/grub-install.in: Handle multi-device filesystems.
13861 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13862 argument. All users updated.
13863 Handle multi-device filesystems.
13864 Use 'delim' as separator.
13865 Remove device check to allow filesystems on file.
13866 (main): Support -0 argument. Handle multi-device.
13867 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13868 Fix a cross-device check while on it.
13869 (arguments): Remove root_dev.
13870 (argp_parser): Remove -r.
13871 (main): Remove root_dev.
13873 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13875 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13877 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13879 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13881 Reported by: NODA, Kai <nodakai>.
13883 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13887 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13889 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13890 (grub_ehci_setup_qh): Likewise.
13891 (grub_ehci_find_qh): Likewise.
13892 (grub_ehci_transaction): Likewise.
13893 (grub_ehci_setup_transfer): Likewise.
13894 (grub_ehci_check_transfer): Likewise.
13895 (grub_ehci_portstatus): Likewise.
13896 (grub_ehci_detect_dev): Likewise.
13897 (grub_ehci_transfer_controller_data): New field td_last_phys.
13898 (grub_ehci_setup_transfer): Fill td_last_phys.
13899 (grub_ehci_check_transfer): Use td_last_phys.
13901 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13903 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13904 if no submenu is present.
13906 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13910 * include/grub/usb.h (grub_usbms_protocol_t): New values
13911 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
13912 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
13913 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
13914 (grub_usbms_dev): Add subclass, protocol and intrpt.
13915 Remove in_maxsz and out_maxsz.
13916 (grub_usbms_reset): Rename to ...
13917 (grub_usbms_bo_reset): .. this.
13918 (grub_usbms_cbi_cmd): New function.
13919 (grub_usbms_cbi_reset): Likewise.
13920 (grub_usbms_reset): Likewise.
13921 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
13922 (grub_usbms_transfer): Rename to ...
13923 (grub_usbms_transfer_bo): ... this.
13924 (grub_usbms_transfer_cbi): Likewise.
13925 (grub_usbms_transfer): Likewise.
13927 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13928 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13930 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
13931 the support for the CS5536 modification thereos and few bugfixes.
13933 * grub-core/Makefile.core.def (ehci): New module.
13934 * grub-core/bus/usb/ehci.c: New file.
13935 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
13936 port and hubaddr. All users updated.
13937 Save port and hubaddr into dev structure.
13938 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
13940 * include/grub/pci.h (grub_dma_phys2virt): New function.
13941 (grub_dma_virt2phys): Likewise.
13942 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
13944 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13946 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
13947 check as some mkfs implementations omit it.
13949 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13951 * docs/grub.texi (Unicode): Mention identifier and space limitations.
13953 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13955 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
13956 Add new member volname2.
13957 (grub_jfs_label): Use volname2 if available.
13959 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13961 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
13962 over last_mounted as seen in image generated by mkfs.nilfs2.
13963 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
13965 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13967 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
13968 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
13969 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
13971 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13973 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
13976 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13978 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
13979 subvolume name (by removing a bogus and useless check).
13981 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13983 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
13984 sizeof while on it.
13986 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13988 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
13989 (grub_scsi_read_capacity10): ... this.
13990 (grub_scsi_read_capacity16): New function.
13991 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
13993 Fix off-by-one error.
13994 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
13996 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
13997 (grub_scsi_read_capacity10): ... this.
13998 (grub_scsi_read_capacity_data): Rename to ...
13999 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14000 (grub_scsi_read_capacity16): New struct.
14001 (grub_scsi_read_capacity16_data): Likewise.
14002 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14003 grub_scsi_cmd_read_capacity10.
14004 New command grub_scsi_cmd_read_capacity16.
14006 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14008 SCSI >2TiB support.
14010 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14011 (grub_scsi_write16): Likewise.
14012 (grub_scsi_read): Use read16 when necessary.
14013 (grub_scsi_write): Likewise.
14014 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14015 (grub_scsi_write16): Likewise.
14016 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14018 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14020 SCSI write support (for usbms mainly).
14022 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14024 (grub_scsi_write): Implement.
14025 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14027 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14029 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14032 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14034 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14036 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14038 * po/POTFILES.in: Regenerate.
14040 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14042 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14043 with grub_printf to avoid unnecessary fatal failure.
14045 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14047 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14048 (INT_MAX): Likewise.
14049 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14050 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14051 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14052 (strcpy): Likewise.
14053 (strstr): Likewise.
14054 (strchr): Likewise.
14055 (strncpy): Likewise.
14056 (strcat): Likewise.
14057 (strncat): Likewise.
14058 (strcoll): Likewise.
14059 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14060 (GRUB_INT_MAX): Likewise.
14062 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14064 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14066 (optimize_utf8): Likewise.
14067 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14069 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14071 * grub-core/boot/i386/pc/lnxboot.S: Use
14072 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14073 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14075 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14077 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14079 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14081 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14082 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14083 now to avoid double free.
14084 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14086 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14087 * util/grub-probe.c (escape_of_path): Always return a new copy.
14088 (print_full_name): Escape path.
14089 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14090 Fix hints on abstractions.
14092 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14094 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14095 Don't add "root" line if no compatibility hont is available.
14096 Suggested by: Seth Goldberg.
14098 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14100 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14101 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14102 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14103 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14105 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14107 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14109 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14111 * util/grub-pe2elf.c (ehdr): Make static.
14113 (num_sections): Likewise.
14114 (offset): Likewise.
14116 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14118 Eliminate ofpath limits and possible overflows.
14120 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14121 (OF_PATH_MAX): Removed.
14122 (MAX_DISK_CAT): New const.
14123 (find_obppath): Use allocated rather than preallocated buffer.
14124 Return result. Argument of_path removed. All users updated.
14125 Add missing fdstat.
14126 (xrealpath): New function.
14127 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14128 Allocate rather than use preallocated buffer. All users updated.
14129 (__of_path_common): Use allocated rather than preallocatecd buffer.
14130 Return result. Argument of_path removed. All users updated.
14131 (vendor_is_ATA): Read only needed part form the file.
14132 (check_sas): Allocate depending on contents rather than fixed.
14133 (main) [STANDALONE]: Handle NULL result.
14135 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14137 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14139 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14141 Cryptodisk write support.
14143 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14144 (grub_cryptodisk_decrypt): Moved logic to ...
14145 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14146 (grub_cryptodisk_write): Implement.
14147 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14148 (grub_util_fd_write): ... this. Make global.
14149 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14151 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14153 * include/grub/list.h (grub_list_remove): Don't crash if element is
14156 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14158 Rename ofconsole to console.
14160 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14161 as sysnonym to console.
14162 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14163 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14164 Rename grub_ofconsole_ to grub_console_. All users updated
14165 (grub_console_term_output): Rename "ofconsole" to "console".
14166 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14169 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14171 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14173 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14174 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14175 GRUB_DISK_DEVICE_FILE_ID.
14177 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14179 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14180 and improve performance.
14182 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14184 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14185 missing ieee1275/ prefix on whole disk.
14187 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14189 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14190 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14192 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14194 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14196 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14198 Merge common RAID and LVM logic to an abstract diskfilter.
14199 Add LDM support using the same framework.
14201 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14202 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14203 (libgrubmods): Remove grub-core/disk/raid.c and
14204 grub-core/partmap/gpt.c.
14205 * grub-core/Makefile.core.def (ldm): New module.
14206 (raid): Renamed to diskfilter. All users updated.
14207 * grub-core/disk/raid.c: Moved to ...
14208 * grub-core/disk/diskfilter.c: ... here.
14209 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14211 (find_array): Renamed to ...
14212 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14213 (grub_is_array_readable): Renamed to ...
14214 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14215 (insert_array): New argument id.
14216 (is_node_readable): New function.
14217 (scan_device): Rename to ...
14218 (scan_disk): .. this. Restrict to one disk.
14219 (scan_devices): New function.
14220 (grub_diskfilter_iterate): Support multi-LV.
14221 Skip invisible and nameless LVs.
14222 (grub_diskfilter_memberlist): Support multi-LV.
14223 (grub_diskfilter_read_node): New function.
14224 (grub_raid_read): Most of logic moved to ...
14225 (read_segment): ... here
14226 (read_lv): New function.
14227 (grub_diskfilter_get_vg_by_uuid): New function.
14228 (grub_diskfilter_make_raid): Likewise.
14229 * grub-core/disk/ldm.c: New file.
14230 * grub-core/disk/lvm.c (vg_list): Removed.
14231 (lv_count): Likewise.
14232 (scan_depth): Likewise.
14233 (is_lv_readable): Likewise.
14234 (grub_lvm_getvalue): Advance pointer past the number.
14235 (find_lv): Removed.
14236 (do_lvm_scan): Refactored into ...
14237 (grub_lvm_detect): ... this. Support raid.
14238 (grub_lvm_iterate): Removed.
14239 (grub_lvm_memberlist): Likewise.
14240 (grub_lvm_open): Likewise.
14241 (grub_lvm_close): Likewise.
14242 (read_lv): Likewise.
14243 (read_node): Likewise.
14244 (is_node_readable): Likewise.
14245 (is_lv_readable): Likewise.
14246 (grub_lvm_read): Likewise.
14247 (grub_lvm_write): Likewise.
14248 (grub_lvm_dev): Use diskfilter
14249 (GRUB_MOD_INIT): Likewise.
14250 (GRUB_MOD_FINI): Likewise.
14251 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14253 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14254 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14255 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14256 grub_diskfilter_read_node.
14257 Fix a bug with xor.
14258 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14259 grub_diskfilter_read_node.
14260 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14261 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14262 (grub_disk_dev_iterate): Move from here...
14263 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14264 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14266 (grub_hostdisk_find_partition_start): Likewise.
14267 (grub_hostdisk_os_dev_to_grub_drive): New function.
14268 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14269 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14270 * util/getroot.c (make_device_name): ... here.
14271 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14273 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14274 * grub-core/kern/emu/hostdisk.c
14275 (convert_system_partition_to_system_disk): Move to ...
14276 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14277 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14278 * util/getroot.c (device_is_wholedisk): ... here.
14279 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14280 * util/getroot.c (find_system_device): ... here.
14281 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14283 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14284 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14286 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14288 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14290 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14291 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14292 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14294 * include/grub/raid.h: Renamed to ...
14295 * include/grub/diskfilter.h: ... this.
14296 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14297 (GRUB_RAID_LAYOUT_*): Make into array.
14298 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14299 (grub_diskfilter_vg): New struct.
14300 (grub_diskfilter_pv_id): Likewise.
14301 (grub_raid_member): Removed.
14302 (grub_raid_array): Likewise.
14303 (grub_diskfilter_pv): New struct.
14304 (grub_diskfilter_lv): Likewise.
14305 (grub_diskfilter_segment): Likewise.
14306 (grub_diskfilter_node): Likewise.
14307 (grub_diskfilter_get_vg_by_uuid): New proto.
14308 (grub_raid_register): Inline.
14309 (grub_diskfilter_unregister): Likewise.
14310 (grub_diskfilter_make_raid): New proto.
14311 (grub_diskfilter_vg_register): Likewise.
14312 (grub_diskfilter_read_node): Likewise.
14313 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14314 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14315 (grub_util_is_ldm): Likewise.
14316 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14317 (grub_hostdisk_find_partition_start): Likewise.
14318 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14319 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14321 (grub_gpt_partition_map_iterate): New proto.
14322 * include/grub/lvm.h (grub_lvm_vg): Removed.
14323 (grub_lvm_pv): Likewise.
14324 (grub_lvm_lv): Likewise.
14325 (grub_lvm_segment): Likewise.
14326 (grub_lvm_node): Likewise.
14327 * util/getroot.c [...]
14328 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14329 (probe_abstraction): Likewise.
14330 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14331 (main): Remove dead logic.
14333 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14335 Simplify root device discover and don't fail when trying to open
14338 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14340 (get_diskname_from_path): Likewise.
14341 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14344 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14346 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14348 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14350 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14353 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14355 * util/grub-install.in: Add missing \.
14356 Reported by: gentoofan
14358 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14360 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14361 (direct_read): Use correct compressed size.
14362 (grub_squash_read_data): Likewise.
14364 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14366 * docs/grub.texi (Platform limitations): New section.
14367 (Platform-specific operations): Likewise.
14368 * docs/grub-dev.texi (Porting): Likewise.
14370 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14372 IEEE1275 disk write support.
14374 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14376 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14377 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14378 and seek loginc to ...
14379 (grub_ofdisk_prepare): ... here.
14380 (grub_ofdisk_write): Implement.
14382 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14384 ARC disk write support.
14386 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14387 (reopen): New argument writable. All users updated.
14388 Handle required access mode.
14389 (grub_arcdisk_write): Implement.
14390 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14391 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14393 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14395 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14396 (read_sblock): Don't attempt to read superblocks outside the disk size.
14398 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14400 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14401 first superblock to find the second one when possible.
14403 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14405 * util/grub-install.in: Fix an ARC bug.
14406 Print a warning if no platform-specific setup is available.
14408 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14410 Use static allocation rather than scratch pointer in reed_solomon.
14411 It decreases its size significantly and avoids a variable in .text.
14413 * grub-core/lib/reed_solomon.c (scratch): Removed.
14414 (chosenstat): New const or static array.
14416 (errpot): Likewise.
14417 (errpos): Likewise.
14420 (errvals): Likewise.
14421 (eqstat): Likewise.
14422 (pol_evaluate): Replace x with log_x argument. All users updated.
14423 (syndroms): Removed.
14424 (gauss_solve): Use statically allocated arrays.
14425 (rs_recover): Likewise.
14426 Calculate syndroms directly.
14427 (decode_block): Use statically allocated arrays.
14428 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14429 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14431 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14433 Eliminate fixed limit on reed solomon decoder length.
14435 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14436 rather than hardcoding the address.
14437 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14438 no_reed_solomon_length.
14439 Move gate_a20 to no-reed-solomon part.
14440 Don't force a particular size of no reed-solomon part.
14441 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14443 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14444 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14446 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14448 * grub-core/commands/wildcard.c (match_files): Handle filenames
14449 without explicit device.
14450 (wildcard_expand): Don't add explicit device if not already present.
14451 * tests/grub_script_echo1.in: Add a new expansion test.
14453 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14455 Replace single-linked with double-linked lists. It results in more
14456 compact and more efficient code.
14458 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14459 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14460 (grub_list_remove): Moved from here ...
14461 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14462 (grub_prio_list_insert): Set prev.
14463 * include/grub/list.h (grub_list): Add prev. All users updated.
14465 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14467 Handle newer autotools. Add some missing quotes while on it.
14469 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14470 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14471 (pkgdata_DATA): ... here.
14472 * Makefile.util.def (update-grub_lib): Removed.
14473 * conf/Makefile.common (pkglib_DATA): Removed.
14474 (pkglib_SCRIPTS): Likewise.
14475 (pkgdata_DATA): New variable.
14476 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14478 Add missing quotes.
14479 Remove unused variable while on it.
14480 * tests/util/grub-shell.in: Likewise.
14481 * util/grub-install.in: Likewise.
14482 * util/grub-mkconfig.in: Likewise.
14483 * util/grub-mknetdir.in: Likewise.
14484 * util/grub-mkrescue.in: Likewise.
14485 * util/grub-mkstandalone.in: Likewise.
14486 * util/grub.d/00_header.in: Likewise.
14487 * util/grub.d/10_hurd.in: Likewise.
14488 * util/grub.d/10_illumos.in: Likewise.
14489 * util/grub.d/10_kfreebsd.in: Likewise.
14490 * util/grub.d/10_linux.in: Likewise.
14491 * util/grub.d/10_netbsd.in: Likewise.
14492 * util/grub.d/10_windows.in: Likewise.
14493 * util/grub.d/20_linux_xen.in: Likewise.
14494 * util/grub.d/30_os-prober.in: Likewise.
14495 * util/update-grub_lib.in: Removed.
14497 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14499 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14500 a workaround for intel problem.
14502 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14503 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14504 2012-01-23 pfsmorigo
14506 * util/grub-install.in: Support dd'in into PreP partition.
14507 * util/grub-probe.c (probe): Support discovering partition type.
14508 (main): Support -t msdos_parttype.
14510 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14512 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14513 infinite recursion using counter.
14514 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14515 init to skip it if the magic check fails.
14516 (dec_stream_header): Init s->crc32.
14518 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14519 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14520 2012-01-22 Richard Laager <rlaager@wiktel.com>
14522 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14524 (find_bestub): Determine correct size.
14525 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14526 (scan_disk): Align the size down.
14527 Call check pool before find_bestub to have ashift.
14529 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14531 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14532 dprintf in no-malloc zone.
14534 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14536 * configure.ac: Add back in test for limits.h.
14538 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14540 Support 4K-sector NTFS.
14542 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14543 (grub_ntfs_data): Remove blocksize.
14544 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14545 Remove data argument. All users updated.
14547 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14549 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14550 being in .text to avoid dprel references.
14551 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14552 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14553 (grub_arch_highmemsize): Likewise.
14554 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14555 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14556 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14558 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14560 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14562 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14563 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14565 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14567 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14569 (grub_set_datetime_cmos): Likewise.
14571 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14573 Make XZ compression parameters dependent on target and not host CPU.
14575 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14576 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14578 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14580 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14581 set but not used variable.
14583 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14585 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14586 created when no uuid support is compiled into mkfs.reiser.
14588 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14590 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14591 (utf8_to_macroman): Do the opposite.
14592 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14594 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14596 * configure.ac: Refise build qemu_mips w/o unifont.
14598 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14600 Eliminate grub_min/grub_max prone to overflow usage.
14602 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14603 (poll_nonroot_hub): Likewise.
14604 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14605 (grub_affs_label): Likewise.
14606 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14607 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14608 (grub_hfs_label): Likewise.
14609 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14610 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14611 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14612 (zap_leaf_array_get): Likewise.
14613 (dnode_get_path): Likewise.
14614 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14615 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14616 * grub-core/script/execute.c (grub_script_break): Likewise.
14617 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14619 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14620 * include/grub/misc.h (grub_min): Removed.
14621 (grub_max): Likewise.
14623 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14625 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14628 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14630 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14632 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14634 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14636 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14638 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14639 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14641 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14643 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14644 rather than a hack for grub_strncasemap.
14646 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14648 Support multiple initrds
14649 Note: part of this was accidently committed in r3739.
14651 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14653 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14654 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14655 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14656 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14657 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14659 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14661 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14662 disks with unknown size.
14663 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14665 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14667 Remove defines pertaining to arbitrary limits not affecting GRUB
14670 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14671 (EXT2_MAX_SYMLINKCNT): Likewise.
14672 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14673 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14674 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14675 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14676 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14677 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14678 (DN_MAX_OBJECT_SHIFT): Likewise.
14679 (DN_MAX_OFFSET_SHIFT): Likewise.
14680 (DN_MAX_OBJECT): Likewise.
14681 (DNODES_PER_LEVEL_SHIFT): Likewise.
14682 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14683 (SPA_MAXBLOCKSIZE): Likewise.
14684 (SPA_BLOCKSIZES): Likewise.
14685 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14686 (MZAP_MAX_BLKSZ): Likewise.
14688 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14690 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14691 handle NULL appropriately.
14694 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14698 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14700 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14701 * configure.ac: Fix efiemu check.
14703 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14705 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14707 Reported by: adamwill
14709 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14711 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14713 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14715 Fix handling of wide characters in gfxterm.
14717 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14718 (clear_char): Likewise.
14719 (paint_char): Skip code == NULL chars.
14720 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14722 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14724 * grub-core/normal/charset.c: Move comment to right place.
14726 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14728 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14729 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14730 (grub_affs_mount): Revert the correct version checking.
14732 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14734 * docs/grub.texi (Unicode): Mention several other unsupported features.
14736 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14738 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14739 case statements as compile-time one.
14740 (direct_read): Prevent spurious warnings.
14741 (grub_squash_read_data): Likewise.
14743 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14745 Various squash4 fixes and LZO and XZ support.
14747 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14748 Add xzembed source files.
14749 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14750 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14751 (grub_squash_inode): New subtype long_dir.
14752 (SQUASH_TYPE_LONG_DIR): New inode type.
14753 (COMPRESSION): New enum.
14754 (XZBUFSIZ): New const.
14755 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14756 (read_chunk): Use data->decompress.
14757 (zlib_decompress): New function.
14758 (lzo_decompress): Likewise.
14759 (xz_decompress): Likewise.
14760 (squash_mount): Set new data fields.
14761 (grub_squash_iterate_dir): Handle long dir.
14762 (squash_unmount): Free xzdec and xzbuf.
14763 (grub_squash_open): Check ino type.
14764 (direct_read): Stylistic fixes. Use data->decompress.
14765 (grub_squash_read_data): Likewise.
14766 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14767 (get_byte): Likewise.
14768 (grub_zlib_disk_read): Removed.
14769 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14770 (GRUB_POSIX_BOOL_DEFINED): New define.
14771 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14772 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14773 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14774 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14776 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14778 Don't override more informative errors.
14780 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14781 * grub-core/font/font.c (open_section): Likewise.
14782 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14783 filename. Don't override errors.
14784 (grub_cmd_openbsd_ramdisk): Don't override errors.
14785 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14786 (grub_cmd_initrd): Likewise.
14787 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14788 (grub_cmd_initrd): Likewise.
14789 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14790 (grub_cmd_linux): Likewise.
14791 (grub_cmd_initrd): Likewise.
14792 (grub_cmd_payload): Likewise.
14793 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14794 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14795 (grub_cmd_module): Likewise.
14796 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14797 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14798 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14799 (grub_cmd_xnu_mkext): Likewise.
14800 (grub_cmd_xnu_ramdisk): Likewise.
14801 (grub_xnu_check_os_bundle_required): Likewise.
14802 (grub_xnu_load_kext_from_dir): Likewise.
14803 (grub_cmd_xnu_kextdir): Likewise.
14804 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14806 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14808 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14809 as 1024 in block size field. Found on one of my test images.
14810 Small optimisation while on it.
14812 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14814 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14815 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14816 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14817 performance fixes while on it.
14818 (grub_sfs_close): Fix memory leak while on it.
14819 (grub_sfs_label): Convert Latin1 to UTF-8.
14821 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14823 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14824 space to avoid overflows.
14825 (grub_hfs_label): Convert from macroman to UTF-8.
14827 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14829 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14831 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14833 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14835 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14837 * unicode: Import Unicode 6.0 data.
14839 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14841 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14844 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14846 Avoid cutting in the middle of UTF-8 character.
14848 * include/grub/charset.h (grub_getend): New function.
14849 * grub-core/script/function.c (grub_script_function_find): Use
14851 * grub-core/normal/completion.c (add_completion): Likewise.
14853 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14855 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14856 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14857 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14858 (GRUB_UNICODE_TAG_END): Likewise.
14859 (GRUB_UNICODE_LAST_VALID): Likewise.
14861 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14863 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14864 len and make it smaller. All users updated.
14865 * util/import_unicode.py: Put length and not end character.
14868 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14870 Make better Unicode-compliant and unify some UTF-8 code pathes.
14872 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14874 (grub_is_valid_utf8): Use grub_utf8_process.
14875 Check resulting code range.
14876 (grub_utf8_to_ucs4): Use grub_utf8_process.
14877 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14880 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14882 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14884 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14886 * docs/grub.texi (Filesystems): Mention AFS.
14888 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14890 * docs/grub.texi (Filesystems): Clarify restrictions.
14891 (Regexp): Mention non-Unicode regexp behaviour.
14892 (Other): Mention non-Unicode matching behaviour.
14894 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14896 Make HFS implementation use MacRoman.
14898 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14899 (macroman): New const array.
14900 (macroman_to_utf8): New function.
14901 (utf8_to_macroman): Likewise.
14902 (grub_hfs_find_dir): Use utf8_to_macroman.
14903 (grub_hfs_dir): Use macroman_to_utf8.
14904 Set case_insensitive.
14906 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14908 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14910 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14912 Integrate hints into autogeneration scripts.
14914 * docs/grub.texi (Filesystems): Add a hostdisk example.
14915 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
14916 (grub-probe): Add ofpath.
14917 * gentpl.py: Remove group nosparc64.
14918 * grub-core/commands/search.c (cache_entry): New struct.
14920 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
14921 * grub-core/commands/search_wrap.c (options): Add platform-specific
14923 (grub_cmd_search): Handle platform-specific hints.
14924 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
14925 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
14926 (grub_util_biosdisk_data): Likewise.
14927 (grub_util_biosdisk_open): Set device_map.
14928 (read_device_map): Handle "" as indication of no map.
14930 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
14931 (grub_util_biosdisk_get_compatibility_hint): New function.
14932 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
14933 * include/grub/emu/hostdisk.h
14934 (grub_util_biosdisk_get_compatibility_hint): New proto.
14935 * util/grub-install.in: Don't call grub-mkdevicemap.
14936 Add platform-specific hint to load.cfg.
14937 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
14938 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
14939 hints. Set root preliminary to compatibility hint, not to OS name.
14940 * util/grub-probe.c (PRINT_*): Add hints.
14941 (print): Make static.
14942 (escape_of_path): New function.
14943 (guess_bios_drive): Likewise.
14944 (guess_efi_drive): Likewise.
14945 (guess_baremetal_drive): Likewise.
14946 (print_full_name): Likewise.
14947 (probe): Handle hints.
14949 * util/ieee1275/devicemap.c: Removed.
14950 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
14952 (grub_util_devname_to_ofpath): Return NULL on failure.
14954 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
14956 * util/getroot.c (grub_util_pull_device): Fix memory leak.
14958 * po/POTFILES.in: Regenerated.
14960 Allow purely long options
14962 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
14963 (SHORT_ARG_USAGE): Likewise.
14964 (grub_arg_show_help): Compare opt with help_options.
14965 (parse_option): Receive opt as argument. If makes big simplificatons.
14968 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14970 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
14971 Restructure to avoid warning.
14973 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14975 * util/grub-install.in: Account for possible escaped comma in device
14978 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14980 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
14983 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14985 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
14986 allocation and zero-setting.
14987 (grub_ieee1275_get_devname): Check that alias is complete.
14989 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14991 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
14992 unaligned segments.
14994 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14996 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
14998 (grub_ofdisk_open): Check and discard ieee1275 prefix.
14999 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15000 Add ieee1275 prefix.
15002 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15004 * docs/grub.texi (Filesystems): Update.
15006 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15008 Support odc, newc and bigendian cpio formats.
15010 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15011 * grub-core/Makefile.core.def (newc): New module.
15013 (cpio_be): Likewise.
15014 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15016 (MAGIC2): Likewise.
15017 (head) [MODE_ODC]: Adapt for the format.
15018 (head) [MODE_NEWC]: Likewise.
15019 (head) [!MODE_*]: Write fields of interest as arrays.
15020 (MAGIC_USTAR): Removed.
15021 (read_number) [MODE_NEWC]: Change to hex.
15022 (read_number) [!MODE_*]: Parse binary arrays.
15023 (grub_cpio_find_file): Factor out the code for better structure and
15024 always use read_number.
15025 (grub_cpio_mount): Use MAGIC and MAGIC2.
15026 (grub_cpio_dir): Exit on first hook non-0 return.
15027 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15028 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15029 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15030 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15031 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15032 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15033 * grub-core/fs/newc.c: New file.
15034 * grub-core/fs/odc.c: Likewise.
15035 * grub-core/fs/cpio_be.c: Likewise.
15037 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15039 Fix handling of tar numbers occupying the whole field.
15041 * grub-core/fs/cpio.c (read_number): New function.
15042 (grub_cpio_find_file): Use read_number instead of strtoull.
15044 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15046 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15047 occupying the whole field size.
15049 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15051 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15053 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15055 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15057 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15059 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15060 TARGET_IMG_LDFLAGS.
15062 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15064 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15065 (mountinfo_entry): Increase the field size to take escaping into
15067 (find_root_device_from_libzfs): Add one byte to size of strings for
15070 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15072 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15074 * util/grub-setup.c (setup): Likewise.
15076 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15078 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15081 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15083 * docs/grub.texi (Internationalisation): New section.
15085 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15087 * docs/grub.texi (Loopback booting): New section.
15089 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15091 * util/grub-mkstandalone.in: Fix minor typo errors.
15093 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15095 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15097 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15098 net/icmp.c and net/icmp6.c.
15099 (http): New module.
15100 (priority_queue): Likewise.
15101 * grub-core/io/bufio.c: Rewritten.
15102 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15103 TYPE_WITH_CONFIGFILE_OPTION.
15104 (legacy_commands): Add bootp and dhcp.
15105 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15106 (grub_legacy_parse): Likewise.
15107 * grub-core/lib/priority_queue.c: New file.
15108 * grub-core/net/arp.c: Add missing license header.
15109 (arp_find_entry): Removed.
15110 (arp_find_entry): Likewise.
15111 (grub_net_arp_resolve): Rename to ...
15112 (grub_net_arp_send_request): ...this.
15113 (grub_net_arp_receive): New card argument.
15114 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15115 Set router and DNS server.
15116 (grub_net_configure_by_dhcp_ack): Handle routing information.
15117 (grub_cmd_bootp): Set checksum.
15118 (grub_bootp_init): Remove net_dhcp.
15119 * grub-core/net/dns.c: New file.
15120 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15122 (get_card_packet): Handle allocation.
15123 (grub_efinet_findcards): Set mtu.
15124 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15125 (get_card_packet): Handle allocation.
15126 (emucard): Set mtu.
15127 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15128 (GRUB_MOD_INIT): Set mtu.
15129 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15131 (get_card_packet): Handle allocation.
15132 (grub_ofnet_findcards): Set mtu.
15133 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15135 (grub_net_recv_ethernet_packet): Handle IPv6.
15136 * grub-core/net/http.c: New file.
15137 * grub-core/net/icmp.c: Likewise.
15138 * grub-core/net/icmp6.c: Likewise.
15139 * grub-core/net/ip.c (ip6addr): New type.
15140 (ip6hdr): Likewise.
15141 (reassemble): Likewise.
15142 (cmp): New function.
15143 (reassembles): New variable.
15144 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15145 (id): New variable.
15146 (send_fragmented): New function.
15147 (grub_net_send_ip_packet): Rename to ...
15148 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15150 (grub_net_recv_ip_packets): Rename to ...
15151 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15152 (free_rsm): New function.
15153 (free_old_fragments): Likewise.
15154 (grub_net_recv_ip4_packets): New function.
15155 (grub_net_send_ip6_packet): Likewise.
15156 (grub_net_send_ip_packet): Likewise.
15157 (grub_net_recv_ip6_packets): Likewise.
15158 (grub_net_recv_ip_packets): Likewise.
15159 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15160 (LINK_LAYER_CACHE_SIZE): New const.
15161 (link_layer_find_entry): New function.
15162 (grub_net_link_layer_add_address): Likewise.
15163 (grub_net_link_layer_resolve_check): Likewise.
15164 (grub_net_link_layer_resolve): Likewise.
15165 (grub_net_ipv6_get_slaac): Likewise.
15166 (grub_net_ipv6_get_link_local): Likewise.
15167 (grub_cmd_ipv6_autoconf): Likewise.
15168 (parse_ip): Handle one number representation.
15169 (parse_ip6): New functoion.
15170 (match_net): Handle IPv6.
15171 (grub_net_resolve_address): Handle IPv6 and DNS.
15172 (grub_net_resolve_net_address): Handle IPv6.
15173 (route_cmp): New function.
15174 (grub_net_route_address): Find best route.
15175 (grub_net_addr_to_str): Handle IPv6.
15176 (grub_net_addr_cmp): New function.
15177 (grub_net_add_addr): Register local route.
15178 (print_net_address): Handle net address.
15179 (grub_net_poll_cards): Retransmit TCP.
15180 (grub_net_poll_cards_idle_real): Likewise.
15181 (have_ahead): New function.
15182 (grub_net_seek_real): Use underlying seek.
15183 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15184 * grub-core/net/tcp.c: New file.
15185 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15186 (cmp): New function.
15188 (tftp_receive): Handle unordered input.
15189 (destroy_pq): New function.
15190 (tftp_close): Close pq.
15191 * grub-core/net/udp.c: Put missing license header.
15192 (grub_net_udp_socket): New function.
15193 (udp_socket_register): Likewise.
15194 (grub_net_udp_close): Likewise.
15195 (grub_net_recv_udp_packet): Check checksum.
15196 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15197 * include/grub/misc.h (grub_memchr): New function.
15198 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15199 (grub_net_card_driver): Return buf in recv.
15200 (grub_net_slaac_mac_list): New struct.
15201 (grub_network_level_protocol_id): Add ipv6.
15202 (grub_net_network_level_addr): Likewise.
15203 (grub_net_network_level_net_addr): Likewise.
15204 (grub_net_app_protocol): Add seek.
15205 (grub_net_socket): Removed.
15206 (grub_net_sockets): Likewise.
15207 (grub_net_socket_register): Likewise.
15208 (grub_net_socket_unregister): Likewise.
15209 (FOR_NET_SOCKETS): Likewise.
15210 (grub_net_add_addr): Add const.
15211 (GRUB_NET_BOOTP_*): New enum.
15212 (grub_net_addr_cmp): New proto.
15213 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15214 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15215 (grub_net_hwaddr_to_str): NEw proto.
15216 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15217 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15218 (grub_dns_init): New proto.
15219 (grub_dns_fini): Likewise.
15220 (grub_net_tcp_retransmit): Likewise.
15221 (grub_net_link_layer_add_address): Likewise.
15222 (grub_net_link_layer_resolve_check): Likewise.
15223 (grub_net_link_layer_resolve): Likewise.
15224 (grub_net_dns_lookup): Likewise.
15225 (grub_net_add_dns_server): Likewise.
15226 (grub_net_remove_dns_server): Likewise.
15227 (GRUB_NET_TRIES): New const.
15228 (GRUB_NET_INTERVAL): Likewise.
15229 * include/grub/net/arp.h: Mostly rewritten.
15230 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15231 * include/grub/net/ip.h: Mostly rewritten.
15232 * include/grub/net/netbuff.h: Indent.
15233 * include/grub/net/tcp.h: New file.
15234 * include/grub/net/udp.h: Mostly rewritten.
15235 * include/grub/priority_queue.h: New file.
15236 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15237 (grub_swap_bytes64_compile_time): Likewise.
15238 (grub_cpu_to_be16_compile_time): Likewise.
15239 (grub_cpu_to_be32_compile_time): Likewise.
15240 (grub_cpu_to_be64_compile_time): Likewise.
15241 (grub_be_to_cpu64_compile_time): Likewise.
15243 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15245 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15246 UINT_TO_PTR with cast.
15248 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15250 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15253 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15255 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15258 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15260 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15263 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15265 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15266 Add missing const attribute.
15267 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15269 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15272 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15274 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15276 (serpent_setkey): Likewise.
15277 (serpent_encrypt_internal): Likewise.
15278 (serpent_decrypt_internal): Likewise.
15279 (serpent_encrypt): Don't put an alignment-increasing cast.
15280 (serpent_decrypt): Likewise.
15281 (serpent_test): Likewise.
15283 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15285 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15287 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15289 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15291 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15293 (PTR_TO_UINT64): Likewise.
15294 (PTR_TO_UINT32): Likewise.
15296 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15298 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15300 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15303 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15305 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15306 text_width > available width a bit more gracefully.
15308 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15310 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15311 current address calculation.
15313 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15315 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15317 (encode_block): Likewise.
15319 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15321 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15324 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15326 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15327 non-RS part to avoid RS messing with GDT.
15328 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15329 Increase to suit in realmode routines.
15331 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15333 * grub-core/kern/i386/realmode.S: Increase alignment.
15334 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15336 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15338 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15340 (syndroms): Compute 0 syndrom.
15341 (rs_recover): Use 0 syndrom.
15343 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15345 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15347 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15349 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15352 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15354 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15356 (get_top_pad): Likewise.
15357 (get_right_pad): Likewise.
15358 (get_bottom_pad): Likewise.
15360 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15362 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15364 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15366 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15367 attribute as the structure isn't guaranteed to be properly aligned.
15368 (grub_efi_pci_device_path): Likewise.
15369 (grub_efi_pccard_device_path): Likewise.
15370 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15371 specify the size of `memory_type'.
15372 (grub_efi_vendor_device_path): Likewise.
15373 (grub_efi_controller_device_path): Likewise.
15374 (grub_efi_acpi_device_path): Likewise.
15375 (grub_efi_expanded_acpi_device_path): Likewise.
15376 (grub_efi_atapi_device_path): Likewise.
15377 (grub_efi_scsi_device_path): Likewise.
15378 (grub_efi_fibre_channel_device_path): Likewise.
15379 (grub_efi_1394_device_path): Likewise.
15380 (grub_efi_usb_device_path): Likewise.
15381 (grub_efi_usb_class_device_path): Likewise.
15382 (grub_efi_i2o_device_path): Likewise.
15383 (grub_efi_mac_address_device_path): Likewise.
15384 (grub_efi_ipv4_device_path): Likewise.
15385 (grub_efi_ipv6_device_path): Likewise.
15386 (grub_efi_infiniband_device_path): Likewise.
15387 (grub_efi_uart_device_path): Likewise.
15388 (grub_efi_vendor_messaging_device_path): Likewise.
15389 (grub_efi_hard_drive_device_path): Likewise.
15390 (grub_efi_cdrom_device_path): Likewise.
15391 (grub_efi_vendor_media_device_path): Likewise.
15392 (grub_efi_file_path_device_path): Likewise.
15393 (grub_efi_protocol_device_path): Likewise.
15394 (grub_efi_piwg_device_path): Likewise.
15395 (grub_efi_bios_device_path): Likewise.
15397 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15399 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15400 (grub_ucs4_to_utf8_alloc): Likewise.
15401 (grub_ucs4_to_utf8): Likewise.
15402 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15403 (grub_ucs4_to_utf8_alloc): Likewise.
15405 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15407 AFFS never uses unicode.
15409 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15410 (grub_latin1_to_utf8): New inline function.
15411 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15413 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15415 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15418 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15420 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15421 (grub_squash_dirent_header): Likewise.
15422 (read_chunk): Don't double swap.
15423 (grub_squash_iterate_dir): Fix swap sizes.
15425 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15427 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15429 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15431 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15432 (grub_hfs_iterate_dir): Likewise.
15434 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15436 Fix video on platforms where unaligned access is forbidden.
15437 Make several optimisations while on it.
15439 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15440 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15441 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15442 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15444 (grub_video_fbblit_replace_16bit_1bit):
15445 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15446 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15447 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15448 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15449 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15450 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15451 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15452 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15453 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15454 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15455 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15456 (grub_video_fbblit_replace_index_RGB888): Likewise.
15457 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15458 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15459 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15460 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15461 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15462 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15463 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15465 (grub_video_fbblit_blend_XXX565_1bit):
15466 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15467 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15468 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15470 * grub-core/video/fb/video_fb.c (common_blitter)
15471 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15472 (grub_video_fb_create_render_target_from_pointer)
15473 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15474 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15475 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15477 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15479 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15481 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15482 HH22 and HM10 relocations.
15484 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15486 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15488 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15490 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15491 allocation succeeded.
15493 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15495 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15496 argument a u8 pointer. All users updated.
15497 Handle unaligned buffers.
15499 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15501 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15502 add_part to workaround compiler bug.
15504 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15506 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15508 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15510 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15511 Reserve alignment invariants.
15512 (grub_multiboot_load): Likewise.
15513 (retrieve_video_parameters): Likewise.
15514 (grub_multiboot_make_mbi): Likewise.
15516 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15518 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15521 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15523 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15524 (grub_pata_pio_write): Likewise.
15526 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15528 Add noreturn attributes and remove unreachable code.
15530 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15532 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15533 code. Mark as noreturn.
15534 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15535 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15536 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15538 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15539 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15540 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15541 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15542 * include/grub/kernel.h (grub_main): Mark as noreturn.
15543 * include/grub/reader.h (grub_rescue_run): Likewise.
15545 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15547 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15548 redundant declaration.
15550 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15552 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15553 redundant declaration.
15554 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15556 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15558 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15559 to ensure alignment.
15560 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15561 alignment. Ensure tmp alignment.
15562 (grub_cmd_hdparm): Ensure buf alignment.
15563 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15564 to ensure alignment.
15565 (grub_ata_dumpinfo): Ensure text alignment.
15566 (grub_atapi_identify): Preserve alignment invariant.
15567 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15569 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15571 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15572 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15573 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15574 * include/grub/misc.h (grub_reboot)
15575 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15576 (grub_halt) [__mips__]: Likewise.
15578 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15580 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15581 Remove redundant declaration.
15582 (grub_mmap_get_post64): Likewise.
15583 (grub_mmap_get_upper): Likewise.
15584 (grub_mmap_get_lower): Likewise.
15586 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15588 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15589 uint32_t * to ensure alignment.
15590 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15592 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15594 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15595 uint16_t * to ensure alignment.
15596 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15599 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15601 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15602 to ensure alignment.
15603 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15605 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15607 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15608 Handle unaligned pointers.
15611 (fixup): Use byte access instead of v16at.
15612 (find_attr): Fix imporper usage of v32at.
15613 (read_data): Likewise.
15614 (list_file): Handle byte-swapping and unaligned strings.
15615 (grub_ntfs_label): Likewise.
15617 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15619 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15620 as it's not necessarily aligned.
15622 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15624 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15625 redundant declaration.
15626 (grub_serial_init): Likewise.
15627 (grub_terminfo_init): Likewise.
15629 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15631 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15633 (ZAP_HASH_IDX): Likewise.
15634 (ZAP_LEAF_HASH_SHIFT): Likewise.
15635 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15636 (LEAF_HASH): Likewise.
15637 (ZAP_LEAF_NUMCHUNKS): Likewise.
15638 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15639 alignment invariants. Return pointer. All users updated.
15640 (ZAP_LEAF_ENTRY): Make into inline function.
15643 (xor_out): Use grub_crypto_xor.
15644 (dnode_get_path): Use grub_get_unaligned.
15645 (nvlist_find_value): Likewise.
15646 (grub_zfs_nvlist_lookup_uint64): Likewise.
15647 (grub_zfs_nvlist_lookup_string): Likewise.
15648 (get_nvlist_size): Likewise.
15649 (grub_zfs_open): Likewise.
15650 (fill_fs_info): Likewise.
15651 (grub_zfs_dir): Likewise.
15652 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15653 alignment invariants.
15654 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15655 necessarily aligned.
15657 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15659 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15661 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15663 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15664 arithmetic to conserve alignment invariants.
15666 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15668 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15669 redundant declaration.
15670 (grub_efiemu_mm_obtain_request): Likewise.
15671 (grub_efiemu_prepare): Likewise.
15673 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15675 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15678 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15680 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15681 case of aunaligned recptr.
15682 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15684 (grub_hfsplus_btree_search): Handle unaligned index.
15686 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15688 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15689 to get freetag and skip.
15691 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15693 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15695 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15696 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15698 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15700 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15701 name for checksum and fix allocation algorithm.
15703 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15705 * include/grub/types.h (grub_properly_aligned_t): New type.
15706 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15707 (grub_get_unaligned16): Add explicit casts.
15708 (grub_get_unaligned32): Likewise.
15709 (grub_get_unaligned64): Likewise.
15710 (grub_set_unaligned16): New function.
15711 (grub_set_unaligned32): Likewise.
15713 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15715 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15717 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15719 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15720 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15721 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15723 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15725 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15728 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15730 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15731 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15733 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15735 Unify and improve RAID and crypto xor.
15737 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15738 changed to grub_crypto_xor
15739 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15740 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15741 Use bigger types when possible.
15743 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15745 * grub-core/disk/raid.c (scan_devices): Fix condition.
15747 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15749 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15750 Make name a const ptr.
15752 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15754 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15755 first argument a const pointer.
15756 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15757 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15759 (grub_children_iterate): Likewise.
15760 (grub_machine_mmap_iterate): Remove redundant declaration.
15762 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15764 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15765 (grub_cmd_acpi) [!x86]: Disable EBDA.
15767 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15769 Enable UTF8 in gnulib regexp.
15771 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15772 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15773 (isupper): Use grub_isupper.
15774 (isascii): New inline function.
15775 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15776 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15777 * grub-core/normal/charset.c (grub_utf8_process): New function.
15778 (grub_utf8_to_utf16): Use grub_utf8_process.
15779 (grub_encode_utf8_character): New function.
15780 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15781 * include/grub/charset.h (grub_utf8_process): New declaration.
15782 (grub_encode_utf8_character): Likewise.
15783 * include/grub/misc.h (grub_islower): New inline function.
15784 (grub_isupper): Likewise.
15785 (grub_strchrsub): Moved down to fix the definitions.
15787 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15789 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15792 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15794 * include/grub/loader.h (grub_loader_register_preboot_hook):
15795 Use struct preboot * and not void * for handle. All users updated.
15796 (grub_loader_unregister_preboot_hook): Likewise.
15798 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15800 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15801 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15802 UTF-16-BE. All users updated.
15803 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15804 (grub_hfsplus_iterate_dir): Likewise.
15805 (grub_hfsplus_label): Likewise.
15807 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15809 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15811 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15813 Add missing const qualifiers.
15815 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15816 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15817 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15818 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15819 (grub_lvm_check_flag): Likewise.
15820 * grub-core/efiemu/i386/coredetect.c
15821 (grub_efiemu_get_default_core_name): Likewise
15822 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15823 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15824 * grub-core/fs/ntfs.c (fixup): Likewise.
15825 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15826 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15827 (fzap_lookup): Likewise.
15828 (zap_lookup): Likewise.
15829 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15830 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15831 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15832 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15833 (grub_freebsd_add_meta_module): Likewise.
15834 (grub_cmd_freebsd_module): Likewise.
15835 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15836 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15837 (grub_xnu_writetree_get_size): Likewise.
15838 (grub_xnu_writetree_toheap_real): Likewise.
15839 (grub_xnu_find_key): Likewise.
15840 (grub_xnu_create_key): Likewise.
15841 (grub_xnu_create_value): Likewise.
15842 (grub_xnu_register_memory): Likewise.
15843 (grub_xnu_check_os_bundle_required): Likewise.
15844 (grub_xnu_scan_dir_for_kexts): Likewise.
15845 (grub_xnu_load_kext_from_dir): Likewise.
15846 * grub-core/normal/color.c (color_list): Likewise.
15847 * grub-core/normal/completion.c (current_word): Likewise.
15848 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15849 * grub-core/term/serial.c (grub_serial_find): Likewise.
15850 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15851 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15853 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15854 (grub_freebsd_add_meta_module): Likewise.
15855 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15856 * include/grub/net.h (grub_net_card_driver): Likewise.
15857 (grub_net_card): Likewise.
15858 (grub_net_app_protocol): Likewise.
15859 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15860 * include/grub/serial.h (grub_serial_find): Likewise.
15861 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15862 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15863 (grub_xnu_create_value): Likewise.
15864 (grub_xnu_find_key): Likewise.
15865 (grub_xnu_scan_dir_for_kexts): Likewise.
15866 (grub_xnu_load_kext_from_dir): Likewise.
15868 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15869 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15870 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15871 Moved from here ...
15872 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15874 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
15876 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15878 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15880 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15881 (read_device): Fix size calculation.
15883 2011-11-25 Robert Millan <rmh@gnu.org>
15885 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15886 (find_root_device_from_libzfs): Add zpool output parser to be used
15887 as fallback when libzfs isn't available.
15889 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15891 * po/Makefile.in.in: Add missing escape-continuation.
15893 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15895 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15897 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15899 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15901 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15903 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15905 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15907 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15909 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15911 * grub-core/lib/adler32.c: Add missing license specification.
15912 * grub-core/lib/crc64.c: Likewise.
15913 * grub-core/loader/i386/pc/plan9.c: Likewise.
15914 * grub-core/partmap/plan.c: Likewise.
15916 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
15918 Add facility to debug GRUB with gdb under qemu.
15920 * grub-core/gdb_grub.in: New file.
15921 * grub-core/gmodule.pl.in: Likewise.
15922 * grub-core/Makefile.core.def (gmodule.pl): New script.
15923 (gdb_grub): Likewise.
15925 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15927 * util/grub-mount.c (argp_parser): Accept relative pathes.
15928 * util/grub-fstest.c (argp_parser): Likewise.
15930 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15934 * Makefile.util.def (libgrubmods): Add
15935 grub-core/partmap/plan.c.
15936 * docs/grub.texi: Notice Plan9 support.
15937 * grub-core/Makefile.core.def (plan9): New module.
15938 (part_plan): Likewise.
15939 * grub-core/loader/i386/pc/plan9.c: New file.
15940 * grub-core/partmap/plan.c: Likewise.
15941 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
15943 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
15944 * include/grub/mm.h (grub_extend_alloc): New inline function.
15946 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15948 Make Reed-Solomon faster by using power of generator representation of
15951 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
15952 (gf_double_t): Likewise.
15953 (gf_invert): Removed.
15954 (gf_powx): New array.
15955 (gf_powx_inv): Likewise.
15956 (scratch): Move higher.
15957 (gf_reduce): Removed.
15958 (gf_mul): Use powx.
15959 (gf_invert): Likewise.
15960 (init_inverts): Replaced with ...
15961 (init_powx): ...this. All users updated.
15962 (pol_evaluate): Replace multiplications with additions.
15963 (rs_encode): Likewise.
15964 (gauss_eliminate): Call gf_invert.
15965 (grub_reed_solomon_add_redundancy): Call init_powx.
15966 (grub_reed_solomon_recover): Call init_powx unconditionally.
15968 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15970 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
15972 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15974 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
15975 disk->partiton for safety.
15977 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15979 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
15981 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
15983 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15985 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
15987 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15989 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
15991 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15993 Fix spaces handling in proc/self/mountinfo.
15995 * util/getroot.c (unescape): New function.
15996 (grub_find_root_device_from_mountinfo): Use unescape.
15998 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16000 Support ZFS embedding.
16002 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16003 (grub_zfs_fs): Register grub_zfs_embed.
16005 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16007 Fix MIPS compilation.
16009 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16010 * include/grub/offsets.h: Rename decompressor fields from
16011 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16012 * util/grub-mkimage.c (image_targets): Use new names.
16014 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16016 Defer multiboot device parsing until we're in compressed part.
16018 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16019 bsd_part. setdevice has fallen into disuse.
16020 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16021 (bsd_part): Likewise.
16022 (boot_dev): New variable.
16023 (multiboot_trampoline): Don't parse multiboot device.
16024 Pass multiboot device in %edx.
16025 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16027 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16029 * grub-core/kern/i386/pc/startup.S: Save edx.
16030 (grub_boot_drive): Removed.
16031 (grub_install_dos_part): Likewise.
16032 (grub_install_bsd_part): Likewise.
16033 (grub_boot_device): New variable.
16034 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16035 (grub_install_bsd_part): Likewise.
16036 (grub_boot_drive): Likewise.
16037 (grub_boot_device): New variable.
16038 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16040 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16041 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16042 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16043 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16044 * util/grub-install.in: Remove redundant condition.
16046 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16048 Fix bug introduced by previous commit.
16050 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16052 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16054 Use decompressors framework on i386-pc. It increases core size
16055 by 46 bytes but improves compatibility and maintainability.
16057 * grub-core/Makefile.core.def (lzma_decompress): New image.
16058 (kernel): Add i386_pc_ldflags.
16059 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16060 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16061 to real_to_prot, prot_to_real and device info.
16062 * include/grub/offsets.h: Renamed decompressor offsets.
16063 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16064 (image_target_desc): Remove raw_size and rename decompressor fields.
16065 (compress_kernel): Handle lzma.
16066 (generate_image): Handle decompressors on i386-pc.
16068 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16070 * configure.ac: Add -fno-asynchronous-unwind-tables.
16072 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16074 Move assembly code to C by using intwrap. It increases core size
16075 by 88 bytes but improves compatibility and maintainability.
16077 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16078 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16079 ... here. Translated to C.
16080 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16081 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16082 ... here. Translated to C.
16083 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16084 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16085 ... here. Translated to C.
16086 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16087 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16088 ... here. Translated to C.
16089 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16090 * grub-core/term/i386/pc/console.c (grub_console_cls):
16091 ... here. Translated to C.
16092 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16093 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16094 ... here. Translated to C.
16095 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16096 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16098 * grub-core/term/i386/pc/console.c (int10_9): New function.
16099 (grub_console_putchar): Likewise.
16100 * include/grub/i386/pc/console.h: Removed the not anymore shared
16103 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16105 Move grub_chainloader_real_boot out of the kernel.
16107 * grub-core/Makefile.am: Remove machine/loader.h.
16108 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16110 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16112 (grub_relocator16_keep_a20_enabled): Likewise.
16113 (grub_relocator16_boot): Fill new variables.
16114 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16115 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16117 (grub_chainloader_unload): Likewise.
16118 (grub_chainloader_cmd): Likewise.
16119 * include/grub/i386/pc/loader.h: Removed.
16120 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16121 and esi. All initialisers updated.
16123 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16124 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16126 * Makefile.util.def (grub-mount): New util.
16127 * .bzrignore: Add grub-mount.
16128 * configure.ac: Check for fuse and enable grub-mount if available.
16129 * docs/man/grub-mount.h2m: New file.
16130 * util/grub-mount.c: Likewise.
16132 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16134 * grub-core/commands/efi/fixvideo.c: Gettextize.
16135 * grub-core/commands/hashsum.c: Likewise.
16136 * grub-core/commands/i386/cmostest.c: Likewise.
16137 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16138 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16139 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16140 * grub-core/commands/lsmmap.c: Likewise.
16141 * grub-core/commands/menuentry.c: Likewise.
16142 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16143 * grub-core/commands/setpci.c: Likewise.
16144 * grub-core/loader/i386/bsd.c: Likewise.
16145 * grub-core/loader/i386/linux.c: Likewise.
16146 * util/getroot.c: Likewise.
16147 * util/grub-editenv.c: Likewise.
16148 * util/grub-fstest.c: Likewise.
16149 * util/grub-mkfont.c: Likewise.
16150 * util/grub-mkimage.c: Likewise.
16151 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16152 * util/grub-pe2elf.c: Likewise.
16153 * util/grub-probe.c: Likewise.
16154 * util/grub-setup.c: Likewise.
16155 * util/ieee1275/ofpath.c: Likewise.
16156 * util/misc.c: Likewise.
16157 * util/raid.c: Likewise.
16159 2011-11-11 Robert Millan <rmh@gnu.org>
16161 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16162 __attribute__((unused)) from `os_dev', which *is* being used.
16164 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16166 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16168 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16169 GRUB_IA64_DL_GOT_ALIGN.
16170 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16171 GRUB_IA64_DL_TRAMP_ALIGN.
16173 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16175 Replace grub_fatal with normal errors in i386 linux loader.
16177 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16178 (allocate_pages): Check find_efi_mmap_size return value.
16179 (grub_e820_add_region): Return error.
16180 (grub_linux_boot): Check mmap return value.
16182 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16184 * grub-core/commands/acpihalt.c: Gettextized.
16185 * grub-core/commands/cacheinfo.c: Likewise.
16186 * grub-core/commands/cmp.c: Likewise.
16187 * grub-core/commands/efi/loadbios.c: Likewise.
16188 * grub-core/commands/gptsync.c: Likewise.
16189 * grub-core/commands/ieee1275/suspend.c: Likewise.
16190 * grub-core/commands/legacycfg.c: Likewise.
16191 * grub-core/commands/memrw.c: Likewise.
16192 * grub-core/commands/minicmd.c: Likewise.
16193 * grub-core/commands/parttool.c: Likewise.
16194 * grub-core/commands/time.c: Likewise.
16195 * grub-core/commands/videoinfo.c: Likewise.
16196 * grub-core/disk/geli.c: Likewise.
16197 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16198 * grub-core/disk/luks.c: Likewise.
16199 * grub-core/disk/lvm.c: Likewise.
16200 * grub-core/font/font_cmd.c: Likewise.
16201 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16202 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16203 * grub-core/gfxmenu/view.c: Likewise.
16204 * grub-core/kern/emu/hostdisk.c: Likewise.
16205 * grub-core/kern/emu/main.c: Likewise.
16206 * grub-core/kern/emu/misc.c: Likewise.
16207 * grub-core/kern/emu/mm.c: Likewise.
16208 * grub-core/kern/mips/arc/init.c: Likewise.
16209 * grub-core/kern/mips/loongson/init.c: Likewise.
16210 * grub-core/kern/partition.c: Likewise.
16211 * grub-core/lib/i386/halt.c: Likewise.
16212 * grub-core/lib/mips/arc/reboot.c: Likewise.
16213 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16214 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16215 * grub-core/loader/i386/xnu.c: Likewise.
16216 * grub-core/loader/multiboot.c: Likewise.
16217 * grub-core/net/bootp.c: Likewise.
16218 * grub-core/net/net.c: Likewise.
16219 * grub-core/normal/term.c: Likewise.
16220 * grub-core/partmap/bsdlabel.c: Likewise.
16221 * grub-core/parttool/msdospart.c: Likewise.
16222 * grub-core/term/gfxterm.c: Likewise.
16223 * grub-core/term/terminfo.c: Likewise.
16224 * grub-core/video/i386/pc/vbe.c: Likewise.
16225 * util/grub-menulst2cfg.c: Likewise.
16226 * util/grub-mkdevicemap.c: Likewise.
16227 * util/grub-mklayout.c: Likewise.
16228 * util/grub-mkrelpath.c: Likewise.
16229 * util/grub-script-check.c: Likewise.
16230 * util/ieee1275/grub-ofpathname.c: Likewise.
16231 * util/resolve.c: Likewise.
16233 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16235 Support %1$d syntax.
16237 * tests/printf_unit_test.c: New file.
16238 * Makefile.util.def (printf_test): New test.
16239 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16241 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16243 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16246 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16248 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16250 * grub-core/font/font.c (grub_font_load): Likewise.
16252 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16254 * util/grub-macho2img.c: Add comment concerning gettext.
16255 * grub-core/lib/legacy_parse.c: Likewise.
16257 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16259 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16260 (grub_xvasprintf): Likewise.
16262 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16264 Add const keyword to grub_env_get and gettextize week days.
16266 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16267 (grub_read_hook_datetime): Return const char *.
16268 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16270 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16272 (grub_get_weekday_name): Return const char *. Call gettext.
16273 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16274 char * and len as the argument. All users updated.
16275 (grub_script_argv_split_append): Receive const char *.
16276 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16277 * include/grub/env.h (grub_env_get): Likewise.
16278 (grub_env_read_hook_t): Return const char *.
16279 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16280 (grub_script_argv_split_append): Likewise.
16282 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16284 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16286 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16288 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16289 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16291 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16293 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16296 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16298 Fix mips compilation.
16300 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16302 (hashes): Use in embed decoder as well (for sizes).
16303 (dec_stream_header): Fix embed decompressor logic.
16304 (dec_stream_footer): Likewise.
16306 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16308 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16309 an error and not a fatal on unrecognised relocation types.
16311 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16313 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16314 Issue error rather than printf on unknown arguments.
16316 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16318 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16321 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16323 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16326 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16328 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16329 leftover debug printf.
16331 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16333 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16335 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16337 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16340 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16342 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16344 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16346 Allow all modules to perform serial IO
16348 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16349 * include/grub/serial.h (grub_serial_port_configure): New inline
16351 (grub_serial_port_fetch): Likewise.
16352 (grub_serial_port_put): Likewise.
16353 (grub_serial_port_fini): Likewise.
16354 (grub_serial_find): New proto.
16356 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16358 Put symlink at the end of the node and fix a potential
16361 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16362 Make symlink into an array.
16363 (set_rockridge): Set have_symlink and alloc_dirents.
16364 (grub_iso9660_read_symlink): Use new layout.
16365 (grub_iso9660_iterate_dir): Fix memory corruption.
16367 (grub_iso9660_dir): Set have_symlink.
16368 (grub_iso9660_open): Likewise.
16370 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16372 Remove local keyword.
16374 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16375 (version_test_gt): Likewise.
16376 (version_find_latest): Likewise.
16377 (gettext_printf): Likewise.
16378 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16380 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16382 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16384 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16386 Fix ZFS memory and resource leaks.
16388 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16391 (fill_vdev_info): New parameter inserted. All users updated.
16392 (check_pool_label): Likewise.
16393 (scan_disk): Likewise.
16394 (scan_devices): Close non-inserted disks.
16395 (fzap_iterate): Free l.
16396 (unmount_device): Free children descripto memory.
16398 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16400 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16401 argument (access out of bounds).
16403 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16405 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16408 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16410 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16413 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16415 Fix several memory leaks.
16417 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16418 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16419 (grub_cpio_dir): Likewise.
16420 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16421 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16422 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16423 (grub_romfs_label): Likewise.
16424 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16425 (squash_unmount): New function.
16426 (grub_squash_dir): Fix memory leak.
16427 (grub_squash_open): Likewise.
16428 (grub_squash_read): Likewise.
16429 (grub_squash_mtime): Likewise.
16430 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16431 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16432 * util/grub-fstest.c (fstest): Likewise.
16434 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16436 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16437 avoid accessing beyond the array.
16439 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16441 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16443 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16445 Several AFFS fixes.
16447 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16448 (GRUB_AFFS_FLAG_FFS): Removed.
16449 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16450 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16451 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16452 (grub_fshelp_node): Make block 32-bit.
16453 Add block_cache and last_block_cache.
16454 (grub_affs_read_block): Fill and use block cache.
16455 (grub_affs_read_file): Removed.
16456 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16458 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16460 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16462 (grub_affs_close): Free block cache.
16463 (grub_affs_read): Use grub_fshelp_read_file directly.
16465 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16467 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16470 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16472 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16474 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16477 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16479 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16481 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16482 byteswap when needed.
16484 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16486 Fix FreeBSD compilation.
16488 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16489 to avoid circular dependency.
16490 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16491 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16492 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16494 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16496 Fix ZFS crypto error types.
16498 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16499 (grub_gcm_decrypt): Likewise.
16500 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16503 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16507 * Makefile.util.def (10_illumos): New script.
16508 * configure.ac: Set COND_HOST_ILLUMOS.
16509 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16510 Support Illumos calls.
16511 (find_partition_start) [__sun__]: Likewise.
16512 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16513 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16514 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16515 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16517 * util/grub-probe.c (probe) [__sun__]: Do character check.
16518 * util/grub.d/10_illumos.in: New file.
16520 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16522 Support escaped commas in hostdisk.
16524 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16525 (find_grub_drive): Use unescape_cmp.
16526 (make_device_name): Escape commas.
16528 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16530 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16532 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16534 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16537 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16539 Support trampoline jumps on powerpc.
16541 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16543 (grub_dl_load_segments): Set mod->sz.
16544 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16546 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16548 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16550 (trampoline): New struct.
16551 (trampoline_template): New const.
16552 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16553 * include/grub/dl.h (grub_dl): Add sz element.
16554 [__powerpc__]: Follow __ia64__.
16555 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16556 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16557 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16558 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16560 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16562 ZFS crypto support.
16564 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16565 * grub-core/Makefile.core.def (zfscrypt): New module.
16566 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16567 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16568 it. All users updated.
16569 (grub_zfs_decrypt): New var.
16570 (grub_zfs_load_key): Likewise.
16571 (zio_checksum_functions): Add SHA256+MAC.
16572 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16573 (zio_read): Handle encrypted blocks.
16574 (zap_verify): Remove incorrect check.
16575 (fzap_iterate): Handle non-standard fzap.
16576 (zap_iterate): Likewise.
16577 (zap_iterate_u64): New function.
16578 (dnode_get_fullpath): Load keys.
16579 * grub-core/fs/zfs/zfscrypt.c: New file.
16580 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16581 (grub_crypto_ecb_encrypt): Make input const.
16582 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16583 (grub_crypto_ecb_encrypt): Make input const.
16584 (GRUB_CIPHER_AES): New macro.
16585 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16586 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16587 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16588 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16589 prefix. All users updated.
16590 (grub_zfs_add_key): New proto.
16591 (grub_zfs_decrypt): Likewise.
16592 (grub_zfs_load_key): Likewise.
16593 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16594 * util/grub-fstest.c (options): Add -K option.
16595 (argp_parser): Likewise.
16597 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16599 Support zle compression on ZFS.
16601 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16602 (decomp_table): Add zle.
16603 * include/grub/zfs/zio.h (zio_compress): Add zle.
16605 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16607 Support BtrFS embedding.
16609 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16610 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16611 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16612 * util/grub-setup.c (setup): Use fs embedding if available.
16613 Add additional sanity check.
16615 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16617 * util/grub-install.in: Fix condition for config_opt.
16619 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16621 Support third redundancy strip on raidz3.
16623 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16624 Return error on singularity. All users updated.
16625 (read_device): Don't stop on 3rd failure on raidz3.
16627 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16629 Support case-insensitive ZFS subvolumes.
16631 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16633 (zap_hash): Likewise.
16634 (name_cmp): New function.
16635 (zap_leaf_array_equal): New parameter case_insensitive.
16637 (zap_leaf_lookup): Likewise.
16638 (fzap_lookup): Likewise.
16639 (zap_lookup): Likewise.
16640 (dnode_get_path): New parameter case_insensitive. Retrieve case
16641 sensitiviness of a volume. All users updated.
16642 (dnode_get_fullpath): New parameter case_insensitive.
16644 (grub_zfs_dir): Set info.case_insensitiveness.
16646 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16648 Support second redundancy strip on raidz(2,3).
16650 * grub-core/fs/zfs/zfs.c (powx): New array.
16651 (powx_inv): Likewise.
16653 (xor_out): New function.
16654 (gf_mul): Likewise.
16655 (recovery): Likewise.
16656 (read_device): Use second redundancy strip.
16658 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16660 Use a power of generator representation of GF(256) multiplication group
16661 to save space time and complexity.
16663 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16664 (raid6_table2): Likewise.
16666 (powx_inv): Likewise.
16668 (grub_raid_block_mul): Replace with ...
16669 (grub_raid_block_mulx): ...this.
16670 (grub_raid6_init_table): Rewritten.
16671 (grub_raid6_recover): Use power of generator representation.
16673 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16675 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16676 for the right device.
16678 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16680 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16681 expected by grub-mkimage and it's more clear since there is no implicit
16684 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16686 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16688 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16690 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16692 * util/grub-mkrescue.in: Fix handling xorriso option.
16694 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16696 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16699 2011-11-03 crocket <crockabiscuit@gmail.com>
16701 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16703 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16705 XZ CRC64 and SHA256 support.
16707 * Makefile.util.def (libgrubmods): Add crc64.c.
16708 * grub-core/Makefile.core.def (crc64): New module.
16709 * grub-core/lib/crc64.c: New file.
16710 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16711 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16713 (MAX_HASH_SIZE): New define.
16714 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16715 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16716 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16717 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16718 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16719 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16720 Handle non-crc32 hashes.
16721 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16722 (dec_stream_header): Handle non-crc32 hashes.
16723 (dec_stream_footer): Likewise.
16724 (dec_block_header): Likewise.
16725 (dec_main): Likewise.
16726 (xz_dec_init): Likewise.
16727 (xz_dec_reset): Likewise.
16728 (xz_dec_end): Likewise.
16729 * util/import_gcry.py: Add CRC64 line.
16731 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16733 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16736 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16738 Make reiserfs label retrieval similar to other *_label functions.
16740 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16741 (REISERFS_MAX_LABEL_LENGTH): Removed.
16742 (REISERFS_LABEL_OFFSET): Likewise.
16743 (grub_reiserfs_label): Rewritten.
16745 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16747 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16750 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16752 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16754 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16756 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16757 drive failure on both raidz and raidz2.
16759 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16761 Fix RAIDZ(2) for >= 5 devices.
16763 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16764 asize argument. All users updated.
16766 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16770 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16771 (fill_vdev_info_real): Set ashift.
16772 (read_device): Rewrite RAIDZ part based on reverse engineering.
16774 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16776 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16777 don't report potentially unavialiable fields in debug output.
16778 (find_path): Fix double-free and memory leak.
16780 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16782 Read label on UFS1.
16784 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16785 (grub_ufs_fs): Always set .label.
16787 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16791 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16792 (grub_ufs_data): New field log2_blksz.
16793 (grub_ufs_read_file): Use shifts.
16794 (grub_ufs_mount): Check block size and logarithm it.
16796 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16798 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16801 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16803 Handle symlinks and long names on tar and cpio.
16805 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16806 (ATTR_FILE): Likewise.
16807 (ATTR_DIR): Likewise.
16808 (ATTR_LNK): Likewise.
16809 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16810 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16812 (grub_cpio_mount): Zero-fill data.
16813 (handle_symlink): New function.
16814 (grub_cpio_dir): Handle symlinks.
16815 (grub_cpio_open): Likewise.
16816 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16818 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16820 Fix iso9660 filename limitations and fix memory leaks.
16822 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16823 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16825 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16827 Fix JFS file name length limitations.
16829 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16830 (grub_jfs_diropen): Fix maximum filename length.
16831 (grub_jfs_getent): Fix filename length.
16832 (grub_jfs_lookup_symlink): Fix size checks.
16834 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16836 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16839 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16841 Leverage BFS implementation to read AFS.
16843 * Makefile.util.def (libgrubmods): Add afs.c.
16844 * grub-core/Makefile.core.def (afs): New module
16845 * grub-core/fs/afs.c: New file.
16846 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16848 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16850 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16852 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16854 * grub-core/fs/bfs.c: Run indent.
16856 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16858 BFS implementation based on the specification.
16860 * grub-core/fs/bfs.c: New file.
16861 * Makefile.util.def (libgrubmods): Add bfs.c.
16862 * grub-core/Makefile.core.def (bfs): New module.
16864 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16866 * util/grub-fstest.c (cmd_cp): Clarify error message.
16867 (cmd_cmp): Likewise.
16869 2011-10-30 Yves Blusseau <blusseau@zetam.org>
16871 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16874 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16876 Remove afs and befs because of copyright problem.
16878 * grub-core/fs/afs.c: Removed.
16879 * grub-core/fs/afs_be.c: Removed.
16880 * grub-core/fs/befs.c: Removed.
16881 * grub-core/fs/befs_be.c: Removed.
16882 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16883 * grub-core/Makefile.core.def (afs): Removed.
16884 (afs_be): Likewise.
16886 (befs_be): Likewise.
16888 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16890 Prefer rockridge over Joliet.
16892 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16894 (set_rockridge): ... here.
16895 (grub_iso9660_mount): Check rockridge on the primary label when
16896 discovering. Ignore Joliet if Rockridge is present.
16898 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16900 Use shifts in nilfs2.
16902 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16903 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16904 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16905 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16906 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16907 (grub_nilfs2_entries_per_block): Replaced with ...
16908 (grub_nilfs2_log_entries_per_block_log): ... this.
16909 (grub_nilfs2_blocks_per_group): Replaced with ...
16910 (grub_nilfs2_blocks_per_group_log): ... this.
16911 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
16912 (grub_nilfs2_blocks_per_desc_block_log): ... this.
16913 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
16914 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
16915 (grub_nilfs2_palloc_entry_offset): Replaced ...
16916 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
16917 (grub_nilfs2_dat_translate): Use shifts.
16918 (grub_nilfs2_read_inode): Likewise.
16919 (GRUB_MOD_INIT): Ensure that logs are correct.
16921 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16923 Use shifts in minix filesystem.
16925 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
16926 (GRUB_MINIX_ZONE2SECT): Likewise.
16927 (grub_minix_data): Replace block_size with log_block_size.
16928 (grub_minix_read_file): Use shifts.
16929 (grub_minix_mount): Check block size and take a logarithm.
16931 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16933 Use shifts in squash4.
16935 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
16936 (squash_mount): Check block size and take logarithm.
16937 (direct_read): Use shifts.
16939 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16941 Correct befs block counting logic.
16943 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
16944 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
16945 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
16946 (grub_afs_read_inode): Use block_shift.
16947 (RANGE_SHIFT): New definition.
16948 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
16949 unexpected conditions, use shifts and appropriate types.
16950 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
16952 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16954 * grub-core/disk/raid.c (scan_devices): Check partition.
16955 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16957 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16959 Support BFS (befs) UUID.
16961 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
16962 (grub_afs_small_data_element_header): New struct.
16963 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
16964 (grub_afs_read_attribute) [MODE_BFS]: New function.
16965 (grub_afs_iterate_dir): Allocate for complete inode.
16966 (grub_afs_mount): Likewise.
16967 (grub_afs_uuid) [MODE_BFS]: New function.
16968 (grub_afs_fs) [MODE_BFS]: Add .uuid.
16970 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16972 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
16973 (zfs_unmount): Fix memory leak.
16975 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16977 Support NTFS reparse points.
16979 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
16980 (symlink_descriptor): New struct.
16981 (grub_ntfs_read_symlink): New function.
16982 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
16983 (grub_ntfs_open): Likewise.
16985 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16987 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
16989 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16991 fstest xnu_uuid subcommand.
16993 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
16994 grub-core/commands/xnu_uuid.c.
16995 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
16996 (fstest): Handle xnu_uuid.
16997 (options): Document xnu_uuid.
16998 (argp_parser): Parse xnu_uuid.
17000 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17002 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17003 -l argument. Add newline at the end if printing.
17004 (GRUB_MOD_INIT): Document -l.
17006 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17008 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17010 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17012 ZFS multi-device and version 33 support.
17014 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17015 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17016 (grub_zfs_data): Add multidev-ice-related fields.
17017 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17018 (dva_get_offset): Make dva const.
17019 (zfs_fetch_nvlist): New function.
17020 (fill_vdev_info_real): Likewise.
17021 (fill_vdev_info): Likewise.
17022 (check_pool_label): Likewise.
17023 (scan_disk): Likewise.
17024 (scan_devices): Likewise.
17025 (read_device): Likewise.
17026 (read_dva): Likewise.
17027 (zio_read_gang): Use read_dva.
17028 (zio_read_data): Likewise.
17029 (zap_leaf_lookup): Add missing endian conversion.
17030 (zap_verify): Add missing endian conversion. All users updated.
17031 (fzap_lookup): Likewise.
17032 (fzap_iterate): Likewise.
17033 (dnode_get_path): Handle SA bonus.
17034 (nvlist_find_value): Make input const. All users updated.
17035 (unmount_device): New function.
17036 (zfs_unmount): Use unmount_device.
17037 (zfs_mount): Use scan_disk.
17038 (zfs_mtime): New function.
17039 (grub_zfs_open): Handle system attributes.
17040 (fill_fs_info): Likewise.
17041 (grub_zfs_dir): Likewise.
17042 (grub_zfs_fs): Add mtime.
17043 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17044 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17045 (SA_MTIME_OFFSET): Likewise.
17046 (SA_SYMLINK_OFFSET): Likewise.
17047 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17048 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17049 (fstest): Support zfsinfo.
17050 (argp_parser): Likewise.
17052 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17054 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17057 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17061 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17062 sharing the same block. Iterate over correct number of indices.
17063 (dnode_get_path): Handle symlinks correctly.
17065 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17067 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17069 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17071 Read label on HFS+.
17073 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17074 (grub_hfsplus_btree_search): Fix types.
17075 (grub_hfsplus_label): Implement.
17077 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17079 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17081 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17083 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17085 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17087 Fix symlink handling on iso9660.
17089 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17091 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17092 (grub_iso9660_read_symlink): Moved most of code ...
17093 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17095 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17097 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17098 Use union to avoid breaking strict-aliasing rules.
17100 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17102 Support multi-extent iso files.
17104 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17106 (grub_fshelp_node): Revamp. All users updated.
17107 (FLAG_*): New enum.
17108 (read_node): New function.
17109 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17111 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17112 (get_node_size): New function.
17113 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17115 Fix memory leak on . and ..
17116 (grub_iso9660_read): Use read_node.
17117 (grub_iso9660_close): Free node.
17119 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17121 Fix tar 4G limit and handle paths containing dot.
17123 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17124 (canonicalize): New function.
17125 (grub_cpio_find_file): Use canonicalize. Store offs in
17127 (grub_cpio_dir): Use grub_disk_addr_t.
17128 (grub_cpio_open): Likewise.
17130 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17132 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17134 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17136 (grub_squash_inode): Add long_file and block_size.
17137 (grub_squash_cache_inode): New struct.
17138 (grub_squash_dirent): Make types into enum.
17139 (SQUASH_TYPE_LONG_REGULAR): New type.
17140 (grub_squash_frag_desc): Add field size.
17141 (SQUASH_BLOCK_FLAGS): New enum.
17142 (grub_squash_data): Use grub_squash_cache_inode.
17143 (grub_fshelp_node): Make ino_chunk 64-bit.
17144 (read_chunk): Minor argument change. All users updated.
17145 (squash_mount): Use correct le_to_cpu.
17146 (grub_squash_open): Handle LONG_REGULAR.
17147 (direct_read): New function.
17148 (grub_squash_read_data): Handle blocks correctly.
17150 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17152 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17154 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17156 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17158 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17160 Fix 2G limit on ZFS.
17162 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17164 (uberblock_verify): Likewise.
17165 (dmu_read): Likewise.
17166 (grub_zfs_read): Likewise. Remove invalid cast.
17168 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17170 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17171 (grub_jfs_blkno): Fix incorrect shift.
17172 (grub_jfs_read_file): Use more appropriate types.
17174 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17176 Support triple indirect on minix2 and minix3.
17178 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17179 Declare triple_indir_zone.
17180 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17183 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17187 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17188 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17189 Rename ctime to mtime. All users updated.
17190 (grub_minix_get_file_block): Fix types and double indirect computations.
17192 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17194 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17195 if no label is found.
17196 (grub_fat_iterate_dir): Fix file size type.
17197 (grub_fat_iterate_dir): Likewise.
17199 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17201 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17203 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17204 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17206 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17208 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17210 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17212 * util/import_gcry.py: Accept space between # and include.
17214 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17216 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17218 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17220 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17222 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17223 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17225 * grub-core/script/yylex.l: Add fine-grained #pragma.
17227 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17229 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17230 New inline function.
17231 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17233 (memset) [GRUB_UTIL]: Likewise.
17234 (memcmp) [GRUB_UTIL]: Likewise.
17236 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17238 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17239 inline function rather than a define.
17241 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17243 * util/grub-setup.c: Add missing include.
17245 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17247 * util/ieee1275/grub-ofpathname.c: Add missing include.
17249 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17251 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17252 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17255 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17257 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17260 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17262 * util/grub-install.in: Add datarootdir as per automake manual
17264 * util/grub-mknetdir.in: Likewise.
17266 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17268 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17270 * util/grub.d/10_kfreebsd.in: Likewise.
17271 * util/grub.d/10_linux.in: Likewise.
17272 * util/grub.d/10_netbsd.in: Likewise.
17273 * util/grub.d/10_windows.in: Likewise.
17274 * util/grub.d/20_linux_xen.in: Likewise.
17276 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17278 Remove redundant grub_kernel_image_size.
17280 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17282 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17283 the small code. It moves it only by few bytes but simplifies the code.
17284 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17286 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17287 (grub_kernel_image_size): Removed.
17288 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17289 (grub_kernel_image_size): Removed.
17290 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17291 compiled with Apple toolchain.
17292 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17293 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17294 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17295 (grub_total_module_size): Likewise.
17296 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17298 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17299 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17300 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17301 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17302 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17303 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17304 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17305 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17307 (grub_total_module_size): Removed.
17308 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17309 (image_targets): Likewise.
17310 Set .compressed_size to no field on sparc.
17311 (generate_image): Remove kernel_image_size handling.
17313 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17315 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17316 NULL pointer dereference.
17318 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17320 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17321 done with a dedicated section.
17323 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17324 Ensure the correct position of boot_path.
17325 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17326 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17328 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17329 * include/grub/boot.h: Removed. All references removed.
17330 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17332 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17334 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17336 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17339 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17341 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17343 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17345 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17346 Don't add the bogus brackets.
17348 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17352 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17353 * grub-core/Makefile.core.def (exfat): New module.
17354 * grub-core/fs/exfat.c: New file.
17355 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17356 (GRUB_FAT_ATTR_*): Make into an enum.
17357 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17358 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17359 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17360 (GRUB_FAT_MAXFILE): Removed.
17361 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17362 (grub_current_fat_bpb_t): New type.
17363 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17364 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17365 (grub_fat_dir_node_t): New type.
17366 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17367 (fat_log2) [MODE_EXFAT]: Removed.
17368 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17369 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17370 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17371 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17372 (grub_fat_label) [MODE_EXFAT]: New function.
17373 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17374 reserved_first_sector to 0.
17376 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17378 Move grub_reboot out of the kernel.
17380 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17381 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17382 * grub-core/lib/efi/reboot.c: ... here.
17383 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17384 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17385 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17386 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17387 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17388 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17389 * grub-core/lib/ieee1275/reboot.c: ... here.
17390 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17391 * grub-core/lib/mips/arc/reboot.c: ... here.
17392 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17393 * grub-core/lib/mips/loongson/reboot.c: ...here.
17394 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17395 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17396 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17397 * include/grub/i386/reboot.h: New file.
17398 * include/grub/mips/loongson/ec.h: Fix includes.
17399 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17400 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17401 * grub-core/lib/i386/reboot.c: New file.
17403 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17405 Make grub_prefix into module to fix the arbitrary limit and save
17408 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17409 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17410 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17411 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17412 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17413 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17414 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17415 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17416 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17417 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17418 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17419 * include/grub/ia64/efi/kernel.h: Removed.
17420 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17421 (grub_prefix): Removed.
17422 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17423 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17424 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17425 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17426 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17427 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17428 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17429 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17430 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17431 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17432 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17433 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17434 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17435 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17436 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17437 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17438 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17439 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17440 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17441 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17442 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17443 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17444 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17445 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17446 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17447 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17448 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17449 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17450 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17452 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17454 (image_targets): Likewise.
17455 (generate_image): Put prefix as a module.
17457 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17459 Replace grub_module_iterate with FOR_MODULES.
17461 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17462 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17463 (grub_efi_modules_addr): ...this.
17464 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17465 (grub_efi_init): Set grub_modbase.
17466 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17467 (grub_modbase): New variable.
17468 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17469 (grub_modbase): New variable.
17470 (grub_machine_init): Set grub_modbase.
17471 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17472 (grub_modbase): New variable.
17473 (grub_machine_init): Set grub_modbase.
17474 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17475 (grub_modbase): New variable.
17476 (grub_machine_init): Set grub_modbase.
17477 * grub-core/kern/main.c (grub_module_iterate): Remove.
17478 (grub_modules_get_end): Use grub_modbase.
17479 (grub_load_modules): Use FOR_MODULES.
17480 (grub_load_config): Likewise.
17481 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17482 (grub_modbase): New variable.
17483 (grub_machine_init): Set grub_modbase.
17484 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17485 (grub_modbase): New variable.
17486 (grub_machine_init): Set grub_modbase.
17487 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17489 (grub_modbase): New variable.
17490 (grub_machine_init): Set grub_modbase.
17491 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17492 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17493 (grub_module_iterate): Likewise.
17494 (grub_modbase): New variable declaration.
17495 (FOR_MODULES): New macro.
17497 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17499 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17500 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17502 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17504 Fix few obvious type discrepancies.
17506 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17507 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17508 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17510 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17511 and connected types.
17512 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17514 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17515 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17516 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17517 and connected types.
17519 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17521 Fix python 3.x incompatibilities.
17523 * gentpl.py: Put brackets around print strings.
17524 * util/import_gcry.py: Open explicitly as utf-8.
17525 Use in instead of has_key.
17527 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17529 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17530 (GRUB_XFS_INO_AGBITS): Make into inline function.
17531 (GRUB_XFS_INO_INOINAG): Likewise.
17532 (GRUB_XFS_INO_AG): Likewise.
17533 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17534 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17535 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17536 (GRUB_XFS_EXTENT_SIZE): Likewise.
17537 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17538 (GRUB_XFS_NEXT_DIRENT): Likewise.
17539 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17540 (grub_xfs_read_file): Fix offset type.
17542 2011-10-15 Robert Millan <rmh@gnu.org>
17544 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17546 2011-10-15 Robert Millan <rmh@gnu.org>
17548 Fix build problem on FreeBSD and GNU/kFreeBSD.
17550 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17552 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17554 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17556 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17558 (grub_hfsplus_btree_recoffset): Likewise.
17559 (grub_hfsplus_btree_recptr): Likewise.
17560 (grub_hfsplus_find_block): Likewise.
17561 (grub_hfsplus_btree_search): Likewise.
17562 (grub_hfsplus_read_block): Likewise.
17563 (grub_hfsplus_read_file): Likewise.
17564 (grub_hfsplus_mount): Likewise.
17565 (grub_hfsplus_btree_iterate_node): Likewise.
17566 (grub_hfsplus_btree_search): Likewise.
17567 (grub_hfsplus_iterate_dir): Likewise.
17568 (grub_hfsplus_read): A small code simplification.
17570 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17572 * grub-core/kern/emu/hostdisk.c
17573 (convert_system_partition_to_system_disk): Don't assume that children
17574 of mapper nodes are mapper nodes.
17576 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17578 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17579 * include/grub/misc.h (grub_isxdigit): New function.
17580 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17581 switched to grub_isxdigit.
17582 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17583 number starting with a letter.
17585 2011-10-09 Robert Millan <rmh@gnu.org>
17587 LVM support for FreeBSD and GNU/kFreeBSD.
17589 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17591 (LVM_DEV_MAPPER_STRING): Move from here ...
17592 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17593 * util/getroot.c: Include `<grub/util/lvm.h>'.
17594 (grub_util_get_dev_abstraction): Enable
17595 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17596 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17597 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17598 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17600 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17602 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17603 when LVM abstraction is required for ${GRUB_DEVICE}.
17605 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17607 Add support for LZO compression in GRUB:
17608 - import of minilzo library,
17609 - LZO decompression for btrfs,
17610 - lzop files decompression.
17612 * grub-core/io/lzopio.c: New file.
17613 * grub-core/lib/adler32.c: Likewise.
17614 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17615 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17616 * grub-core/lib/minilzo/minilzo.c: Likewise.
17617 * grub-core/lib/minilzo/minilzo.h: Likewise.
17618 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17619 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17620 grub-core/lib/minilzo/minilzo.c to common.
17621 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17622 cflags in cppflags.
17623 * grub-core/Makefile.core.def (btrfs): Likewise.
17624 * grub-core/Makefile.core.def (lzopio): New module.
17625 (adler32): Likewise.
17626 * grub-core/fs/btrfs.c: Include minilzo.h.
17627 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17628 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17629 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17630 (grub_btrfs_lzo_decompress): New function.
17631 (grub_btrfs_extent_read): Add support for LZO compression type.
17632 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17633 (GRUB_USHRT_MAX): Likewise.
17634 (GRUB_UINT_MAX): Likewise.
17635 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17636 (UINT_MAX): Likewise.
17637 (CHAR_BIT): Likewise.
17638 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17639 grub-core/lib/posix_wrap/limits.h
17640 (UCHAR_MAX): Likewise.
17641 * include/grub/file.h (grub_file_filter_id): New compression filter
17642 GRUB_FILE_FILTER_LZOPIO.
17643 * include/grub/file.h (grub_file_filter_id): Set
17644 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17645 * include/grub/types.h (grub_get_unaligned16): New function.
17646 (grub_get_unaligned32): Likewise.
17647 (grub_get_unaligned64): Likewise.
17648 * util/import_gcry.py (cryptolist): Add adler32.
17650 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17652 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17653 in perspective decreases the complexity of build system and fixes
17654 compilation right now.
17656 2011-10-01 Ales Nesrsta <starous@volny.cz>
17658 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17659 (fixed problem related to using UHCI with coreboot).
17661 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17663 * gentpl.py: Use Autogen macros so that the output template file
17664 (Makefile.tpl) size is reduced.
17666 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17668 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17671 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17673 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17674 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17676 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17678 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17681 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17683 Remove extra declaration of sleep for mingw32.
17685 * util/misc.c (sleep) [__MINGW32__]: Removed.
17686 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17688 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17690 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17692 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17694 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17695 (grub_netbsd_btinfo_bootwedge): New struct.
17696 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17698 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17700 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17702 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17705 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17707 Fix incorrect identifiers in bash-completion.
17709 * util/bash-completion.d/grub-completion.bash.in
17710 (_grub_mkpasswd-pbkdf2): Rename to ...
17711 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17712 (_grub_script-check): Rename to ...
17713 (_grub_script_check): ... this. All users updated.
17715 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17717 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17718 Return 0 if disk isn't biosdisk.
17720 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17722 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17724 * Makefile.util.def (grub-fstest): Likewise.
17726 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17728 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17729 Get sector size from disk label.
17731 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17733 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17734 */README* as well as README*.
17735 Reported by: Axel Beckert.
17737 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17739 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17740 case of less than 256 MiB of RAM.
17742 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17744 * grub-core/commands/wildcard.c (make_regex): Handle @.
17746 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17748 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17750 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17752 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17753 AC_LANG_CONFTEST macros.
17755 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17757 Add grub-fstest option to uncompress data for commands.
17759 * util/grub-fstest.c (uncompress): New var.
17760 (options): New option -u.
17762 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17764 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17765 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17767 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17769 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17770 file type was not recognized correctly (not gzip or corrupted).
17772 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17774 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17775 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17777 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17779 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17781 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17782 video_radeon_fuloong2e.
17783 * grub-core/video/radeon_fuloong2e.c: New file.
17784 * include/grub/video.h (grub_video_id_t): Add new ID
17785 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17787 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17789 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17791 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17792 that PRID matches the detected subplatform and reset the subplatform
17795 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17797 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17799 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17801 Fix PCI iterating on functions >= 4.
17803 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17804 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17806 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17807 (grub_pci_read): Fix bitmask.
17808 (grub_pci_read_word): Likewise.
17809 (grub_pci_read_byte): Likewise.
17810 (grub_pci_write): Likewise.
17811 (grub_pci_write_word): Likewise.
17812 (grub_pci_write_byte): Likewise.
17814 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17816 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17817 can still be specified in TARGET_CFLAGS)
17819 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17821 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17823 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17824 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17825 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17826 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17827 (FULOONG): Rename to ...
17828 (FULOONG2F): ... this. All users updated.
17829 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17830 (machtype_fuloong2f_str): ... this.
17831 (machtype_fuloong2e_str): New string.
17832 Check for machtype_fuloong2e_str.
17833 * grub-core/loader/mips/linux.c (loongson_machtypes)
17834 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17835 * grub-core/term/serial.c (loongson_defserial)
17836 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17837 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17838 loongson_defserial.
17839 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17841 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17842 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17843 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17844 to IMAGE_FULOONG2F_FLASH. All users updated.
17845 (image_targets): Rename images.
17846 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17848 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17850 Make enable of disk cache statistics code configurable.
17852 * configure.ac: --enable-cache-stats added.
17853 * config.h.in (DISK_CACHE_STATS): New define.
17854 * grub-core/Makefile.core.def (cacheinfo): New command.
17855 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17856 * grub-core/commands/cacheinfo.c: New file.
17857 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17858 moved to cacheinfo.c.
17859 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17861 * include/grub/disk.h: Likewise.
17863 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17865 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17866 * grub-core/Makefile.am: Likewise.
17868 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17870 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17873 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17875 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17877 (grub_jfs_lookup_symlink): Use correct starting inode.
17879 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17881 * util/grub-setup.c (main): Add missing gcry initialisation.
17883 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17885 Don't accept text modes on EFI when booting Linux.
17887 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17888 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17890 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
17891 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17893 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17894 use of "/path/.." as in grub-install for EFI as well as handling
17895 symlinks correctly.
17896 Fixes Debian bug #637768.
17898 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17900 * util/grub-probe.c: Remove duplicate #include.
17902 2011-08-10 Robert Millan <rmh@gnu.org>
17904 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17906 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17908 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17909 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17911 2011-08-03 Robert Millan <rmh@gnu.org>
17913 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
17914 la_array as packed.
17915 Reported by: Zachary Bedell
17917 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17919 * configure.ac: The Loongson port requires grub-mkfont due to its
17920 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
17923 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17925 * util/grub-install.in: Don't source grub-mkconfig_lib until after
17926 processing arguments (otherwise help2man fails when GRUB has not yet
17929 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17931 New script grub-mkstandalone.
17933 * Makefile.util.def (grub-mkstandalone): New script.
17934 * docs/man/grub-mkstandalone.h2m: New file.
17935 * util/grub-mkstandalone.in: Likewise.
17937 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17939 Support ATA disks with 4K sectors.
17941 * include/grub/ata.h (grub_ata): New member log_sector_size.
17942 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
17943 (grub_ata_identify): Read sector size.
17944 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
17946 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17948 * util/grub-install.in: Don't use uhci outside of x86.
17950 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17952 * util/grub-mkrescue.in: Add missing quotes.
17954 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17956 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
17959 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17961 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
17963 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17965 * include/grub/video.h: add missing EXPORT_FUND on
17966 grub_video_edid_checksum and grub_video_edid_preferred_mode.
17968 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17970 * include/grub/mips/kernel.h: Fix define conflict.
17972 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17974 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
17977 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
17979 Preferred resolution detection for VBE.
17981 * grub-core/video/video.c (grub_video_edid_checksum): New function.
17982 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
17983 the Flat Panel extension, in line with the X.org VESA driver.
17984 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
17986 (grub_vbe_bios_get_ddc_capabilities): Likewise.
17987 (grub_vbe_bios_read_edid): Likewise.
17988 (grub_vbe_get_preferred_mode): Likewise.
17989 (grub_video_vbe_setup): When the mode is "auto", try to get the
17990 preferred mode from VBE, and use the largest mode that is no larger
17991 than the preferred mode (some BIOSes expose a preferred mode that is
17992 not in their mode list!). If this fails, fall back to 640x480 as a
17993 safe conservative choice.
17994 (grub_video_vbe_get_edid): New function.
17995 (grub_video_vbe_adapter): Add get_edid.
17996 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
17997 (struct grub_video_adapter): Add get_edid.
17998 (grub_video_edid_checksum): Add prototype.
17999 (grub_video_edid_preferred_mode): Likewise.
18000 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18003 * grub-core/commands/videoinfo.c (print_edid): New function.
18004 (grub_cmd_videoinfo): Print EDID if available.
18006 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18007 is more appropriate on a wider range of platforms than 640x480.
18008 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18011 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18013 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18015 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18017 * po/POTFILES.in: Regenerate.
18019 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18021 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18022 incorrect memory usage.
18024 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18026 * util/grub-install.in: Source grub-mkconfig_lib.
18028 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18030 Remove getroot.c from core on emu platform.
18032 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18034 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18036 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18037 * util/getroot.c (get_win32_path): ... here.
18038 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18039 * util/getroot.c (fini_libzfs): ... here.
18040 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18041 * util/getroot.c (grub_get_libzfs_handle): ... here.
18042 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18044 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18045 * grub-core/kern/emu/misc.c
18046 (grub_make_system_path_relative_to_its_root): Moved from here...
18047 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18048 * grub-core/kern/emu/getroot.c: Moved from here ...
18049 * util/getroot.c: ... here. All users updated.
18050 * grub-core/kern/emu/raid.c: Moved from here ...
18051 * util/raid.c: ... here. All users updated.
18053 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18055 * po/POTFILES.in: Regenerate.
18057 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18059 Fix compilation on GNU/Linux.
18061 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18063 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18064 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18065 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18067 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18068 2011-07-07 Michael Gorven <michael@gorven.za.net>
18069 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18071 LUKS and GELI support.
18073 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18074 grub-core/disk/luks.c, grub-core/disk/geli.c,
18075 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18076 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18077 grub-core/lib/arg.c.
18078 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18079 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18080 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18081 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18082 (grub-bin2h): Add libgcry.a.
18083 (grub-mkimage): Likewise.
18084 (grub-mkrelpath): Likewise.
18085 (grub-script-check): Likewise.
18086 (grub-editenv): Likewise.
18087 (grub-mkpasswd-pbkdf2): Likewise.
18088 (grub-pe2elf): Likewise.
18089 (grub-fstest): Likewise.
18090 (grub-mkfont): Likewise.
18091 (grub-mkdevicemap): Likewise.
18092 (grub-probe): Likewise.
18093 (grub-ofpath): Likewise.
18094 (grub-mklayout): Likewise.
18095 (example_unit_test): Likewise.
18096 (grub-menulst2cfg): Likewise.
18097 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18098 * grub-core/Makefile.core.def (cryptodisk): New module.
18101 * grub-core/disk/AFSplitter.c: New file.
18102 * grub-core/disk/cryptodisk.c: Likewise.
18103 * grub-core/disk/geli.c: Likewise.
18104 * grub-core/disk/luks.c: Likewise.
18105 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18107 (grub_util_get_dm_abstraction): New function.
18108 (grub_util_follow_gpart_up): Likewise.
18109 (grub_util_get_geom_abstraction): Likewise.
18110 (grub_util_get_dev_abstraction): Use new functions.
18111 (grub_util_pull_device): Pull GELI and LUKS.
18112 (grub_util_get_grub_dev): Handle LUKS and GELI.
18113 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18114 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18115 (follow_geom_up): Removed.
18116 (grub_util_fd_seek): New function.
18117 (open_device): Use grub_util_fd_seek.
18118 (nread): Rename to ..
18119 (grub_util_fd_read): ... this. All users updated.
18120 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18121 (grub_crypto_cbc_decrypt): Likewise.
18122 (grub_crypto_hmac_write): Likewise.
18123 (grub_crypto_hmac_buffer): Likewise.
18124 (grub_password_get): Extend to util.
18125 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18126 New member modname.
18127 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18128 * include/grub/cryptodisk.h: New file.
18129 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18130 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18132 (grub_util_follow_gpart_up): New proto.
18133 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18134 (grub_util_fd_read): Likewise.
18135 (grub_cryptodisk_cheat_mount): Likewise.
18136 (grub_util_cryptodisk_print_uuid): Likewise.
18137 (grub_util_get_fd_sectors): Likewise.
18138 * util/grub-fstest.c (mount_crypt): New var.
18139 (fstest): Mount crypto if requested.
18140 (options): New option -C.
18141 (argp_parser): Parse -C.
18142 (main): Init and fini gcry.
18143 * util/grub-install.in: Support cryptodisk install.
18144 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18145 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18147 (prepare_grub_to_access_device): Likewise.
18148 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18149 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18150 (probe_cryptodisk_uuid): New function.
18151 (probe_abstraction): Likewise.
18152 (probe): Use new functions.
18153 * util/import_gcry.py: Create Makefile.utilgcry.def.
18154 Add modname member.
18156 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18158 Lazy device scanning.
18160 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18161 (grub-setup): Remove util/raid.c.
18162 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18163 * grub-core/disk/lvm.c (scan_depth): New variable.
18164 (grub_lvm_iterate): Rescan if necessary.
18165 (find_lv): New function based on grub_lvm_open.
18166 (grub_lvm_open): Use find_lv. Rescan on error.
18167 (is_node_readable): New function.
18168 (is_lv_readable): Likewise.
18169 (grub_lvm_scan_device): Skip already found disks.
18170 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18171 Stop if searched device is found and readable.
18172 * grub-core/disk/raid.c (inscnt): New variable.
18173 (scan_depth): Likewise.
18174 (scan_devices): New function based on grub_raid_register. Abort if
18175 looked for device is found.
18176 (grub_raid_iterate): Rescan if needed.
18177 (find_array): NEw function based on -grub_raid_open.
18178 (grub_raid_open): Use find_array and rescan.
18179 (insert_array): Set became_readable_at.
18180 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18181 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18183 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18184 (grub_util_pull_device): New function.
18185 (grub_util_get_grub_dev): Call grub_util_pull_device.
18186 * util/raid.c: Moved to ..
18187 * grub-core/kern/emu/raid.c: ... here.
18188 (grub_util_raid_getmembers): New parameter "bootable".
18189 All users updated. Support 1.x.
18190 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18192 * include/grub/disk.h (grub_disk_pull_t): New enum.
18193 (grub_disk_dev): Change iterate prototype.
18195 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18197 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18198 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18199 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18200 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18202 * include/grub/util/raid.h: Removed.
18204 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18206 * po/POTFILES.in: Regenerate.
18208 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18210 Unify sparc init with other ieee1275.
18212 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18213 instead of kern/sparc64/ieee1275/init.c.
18214 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18215 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18216 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18217 grub/machine/kernel.h.
18218 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18219 (grub_claim_heap) [__sparc__]: Use sparc version.
18220 (grub_machine_init): Moved args parsing to
18221 (grub_parse_cmdline): ...this.
18222 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18223 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18225 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18227 Move BOOTP to separate file.
18229 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18230 * grub-core/net/net.c: Move all BOOTP functions to
18231 * grub-core/net/bootp.c: ... here.
18233 Use frame interface on PXE.
18235 * grub-core/Makefile.core.def (pxecmd): Removed.
18236 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18237 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18238 * grub-core/i386/pc/pxe.c: Moved from here ...
18239 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18240 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18241 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18243 EFI network support.
18245 * grub-core/Makefile.core.def (efinet): New module.
18246 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18248 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18250 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18251 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18252 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18253 * grub-core/net/drivers/efi/efinet.c: New file.
18254 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18255 (grub_efi_net_config): New extern var.
18257 Various cleanups and bugfixes.
18259 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18261 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18262 disk declared as partition.
18263 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18265 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18266 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18267 (grub_debug_zalloc): Likewise.
18268 (grub_debug_realloc): Likewise.
18269 (grub_debug_memalign): Likewise.
18270 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18271 Check that target is IPv4.
18272 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18273 local-mac-address as fallback.
18274 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18276 * grub-core/net/ip.c (ipchksum): Rename to ...
18277 (grub_net_ip_chksum): ... this. All users updated.
18278 (grub_net_recv_ip_packets): Special handling for DHCP.
18279 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18281 Unify prefix handling
18283 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18284 (grub_machine_get_bootlocation): ... this.
18285 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18286 (grub_machine_get_bootlocation): ... this.
18287 (grub_prefix): New variable.
18289 (root_dev): New variable.
18291 (main): Use new variables.
18292 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18294 (grub_machine_get_bootlocation): ... this.
18295 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18296 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18297 (grub_machine_get_bootlocation): ... this.
18298 (grub_machine_set_prefix): Removed.
18299 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18300 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18302 (grub_machine_get_bootlocation): ... this.
18303 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18304 (grub_set_prefix_and_root): ... this. All users updated.
18305 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18307 (grub_machine_get_bootlocation): ... this.
18308 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18309 (grub_machine_get_bootlocation): New proto.
18310 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18312 Less intrusive and more reliable seek on network implementation.
18314 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18315 (grub_file_seek): Don't call grub_file_net_seek.
18316 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18317 (grub_net_fs_read_real): .. this.
18318 (grub_net_seek_real): Use net->offset.
18319 (grub_net_fs_read): Seek if necessary.
18321 Unify IEEE1275 netwotk config with the other platforms.
18323 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18325 (grub_machine_get_bootlocation): Support network.
18326 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18327 Support type and device parsing.
18328 (grub_ieee1275_get_device_type): New function.
18329 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18331 (grub_ieee1275_net_config_real): ... this.
18332 (grub_ofnet_probecards): Removed.
18333 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18334 * include/grub/ieee1275/ofnet.h: Removed.
18335 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18337 (grub_ieee1275_get_device_type): New function.
18339 Unify network device closing across platforms and make more robust.
18341 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18343 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18345 * grub-core/net/net.c (grub_net_network_level_interface_register):
18347 (grub_net_card_unregister): Close all interfaces.
18348 (receive_packets): Don't poll if no iterfaces are registered.
18350 (grub_net_fini_hw): New function.
18351 (grub_net_restore_hw): Likewise.
18352 (fini_hnd): New variable.
18353 (GRUB_MOD_INIT): Register preboot hook.
18354 (GRUB_MOD_FINI): Run and unregister preboot hook.
18356 Poll network cards when idle.
18358 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18359 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18360 * grub-core/net/net.c (receive_packets): Save last poll time.
18361 (grub_net_poll_cards_idle_real): New function.
18362 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18363 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18364 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18366 Rename ofnet interfaces.
18368 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18369 (grub_ofnet_findcards): Use ofnet_%s names.
18371 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18373 Cleanup socket opening.
18375 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18376 (grub_net_fs_close): Likewise.
18377 (grub_net_fs_read_real): Use eof member.
18378 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18379 (+grub_net_udp_close): New inline function.
18381 * include/grub/net/tftp.h: Moved to the top of ...
18382 * grub-core/net/tftp.c: ... here.
18383 * include/grub/net/ip.h: Moved mostly to the top of ...
18384 * grub-core/net/ip.c: ... here.
18385 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18386 * grub-core/net/ethernet.c: ... here.
18388 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18390 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18393 * include/grub/net/ip.h (ipv4_ini): Removed.
18394 (ipv4_fini): Likewise.
18396 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18397 (grub_net_send_ip_packets): Likewise.
18399 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18401 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18402 grub_read_cmos prototype.
18404 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18406 VGA text support in qemu-mips
18408 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18409 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18410 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18412 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18413 * grub-core/kern/vga_init.c: ... this.
18414 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18415 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18416 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18418 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18419 GRUB_MACHINE_PCI_IO_BASE.
18421 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18423 MIPS qemu flash support.
18425 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18427 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18428 (grub_machine_init): Probe memory if its size isn't known.
18429 * util/grub-mkimage.c (image_targets): Add flash targets.
18430 (generate_image): Handle flash targets.
18432 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18434 MIPS qemu at_keyboard support.
18436 * gentpl.py (videoinkernel): Add qemu-mips.
18437 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18438 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18439 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18441 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18442 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18443 * grub-core/term/serial.c (grub_serial_register)
18444 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18446 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18448 CMOS support on sparc.
18450 * gentpl.py (cmos): Add powerpc and sparc.
18451 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18453 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18454 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18455 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18456 grub_set_datetime_cmos.
18457 * grub-core/lib/ieee1275/cmos.c: New file.
18458 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18459 (find_rtc): Set no_ieee1275_rtc on error.
18460 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18461 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18462 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18463 fail. Move value to argument. All users updated
18464 (grub_cmos_write): Likewise.
18465 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18466 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18467 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18468 grub_get_datetime_cmos and grub_set_datetime_cmos.
18470 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18472 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18473 sourcing grub-mkconfig_lib.
18474 * util/update-grub_lib.in: Likewise.
18475 * util/grub.d/00_header.in: Likewise.
18476 * util/grub.d/10_hurd.in: Likewise.
18477 * util/grub.d/10_kfreebsd.in: Likewise.
18478 * util/grub.d/10_linux.in: Likewise.
18479 * util/grub.d/10_netbsd.in: Likewise.
18480 * util/grub.d/10_windows.in: Likewise.
18481 * util/grub.d/20_linux_xen.in: Likewise.
18482 * util/grub.d/30_os-prober.in: Likewise.
18484 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18486 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18487 default_bg_color rather than black.
18488 (grub_gfxterm_fullscreen): Likewise.
18489 (grub_gfxterm_background_color_cmd): Save new background color in
18492 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18494 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18496 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18498 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18501 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18503 Chainloading on coreboot support.
18505 * grub-core/Makefile.core.def (chain): Add coreboot.
18506 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18508 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18510 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18513 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18515 Implement time command.
18517 * grub-core/Makefile.core.def (time): New module.
18518 * grub-core/commands/time.c: New file.
18519 * grub-core/script/parser.y: Remove "time" keyword.
18520 * grub-core/script/yylex.l: Likewise.
18522 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18524 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18526 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18528 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18529 when handling leftovers.
18531 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18533 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18534 so that help2man doesn't fail.
18536 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18538 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18539 type in pointers on sparc64.
18540 (get_card_packet): Likewise.
18542 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18544 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18546 (grub_cmd_videoinfo): Fetch current video mode.
18548 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18550 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18551 because of underlying system restrictions.
18553 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18555 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18558 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18560 Coreboot video support.
18562 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18564 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18565 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18567 * grub-core/kern/i386/int.S: ... here.
18568 * grub-core/video/i386/pc/vbe.c: Updated includes.
18569 * grub-core/video/i386/pc/vga.c: Likewise.
18570 * include/grub/i386/coreboot/memory.h
18571 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18572 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18573 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18574 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18575 Disable interrupts.
18576 * include/grub/i386/pc/vga.h: Removed. All users updated.
18578 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18580 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18581 definitions for dprintf.
18582 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18584 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18586 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18588 (get_card_packet): Likewise.
18590 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18592 Display the path of the file when file is not found
18594 * grub-core/fs/fat.c: Display the filename when file is not found.
18595 * grub-core/fs/fshelp.c: Likewise.
18596 * grub-core/fs/hfs.c: Likewise.
18597 * grub-core/fs/jfs.c: Likewise.
18598 * grub-core/fs/minix.c: Likewise.
18599 * grub-core/fs/ufs.c: Likewise.
18600 * grub-core/fs/btrfs.c: Likewise.
18601 * grub-core/commands/i386/pc/play.c: Likewise.
18603 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18605 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18606 pointer checks before calling grub_free().
18607 * grub-core/commands/wildcard.c (match_devices): Likewise.
18608 * grub-core/commands/wildcard.c (match_files): Likewise.
18609 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18610 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18611 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18612 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18613 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18614 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18615 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18616 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18617 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18619 2011-06-25 Patrick <p55@mailinator.com>
18621 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18623 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18625 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18626 (grub_pxe_send): Likewise.
18627 (GRUB_MOD_INIT): Fix types.
18629 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18631 * grub-core/io/xzio.c: Fix code style issues
18633 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18634 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18636 Network infrastructure.
18637 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18639 * include/grub/net/arp.h: New file.
18640 * include/grub/net/device.h: Likewise.
18641 * include/grub/net/ethernet.h: Likewise.
18642 * include/grub/net/ip.h: Likewise.
18643 * include/grub/net/netbuff.h: Likewise.
18644 * include/grub/net/tftp.h: Likewise.
18645 * include/grub/net/udp.h: Likewise.
18646 * include/grub/ieee1275/ofnet.h: Likewise.
18647 * include/grub/emu/export.h: Likewise.
18648 * include/grub/net.h: Likewise.
18649 * grub-core/net/arp.c: Likewise.
18650 * grub-core/net/ethernet.c: Likewise.
18651 * grub-core/net/ip.c: Likewise.
18652 * grub-core/net/udp.c: Likewise.
18653 * grub-core/net/tftp.c: Likewise.
18654 * grub-core/net/netbuff.c: Likewise.
18655 * grub-core/net/net.c: Likewise.
18656 * grub-core/net/drivers/emu/emunet.c: Likewise.
18657 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18658 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18660 * grub-core/Makefile.core.def (net): New module.
18663 (emunet): Likewise.
18664 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18666 * grub-core/kern/device.c (grub_net_open) : New variable.
18667 (grub_device_open): Handle network device.
18668 (grub_device_close): Likewise.
18669 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18670 (grub_grubnet_fini): Likewise.
18671 (grub_file_seek): Seek in network device.
18672 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18673 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18675 (grub_machine_fini): Call grub_grubnet_fini.
18676 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18678 (grub_ieee1275_get_aliasdevname): New function.
18679 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18680 Add unofficial Solaris network info.
18681 (grub_multiboot_make_mbi): Likewise.
18682 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18683 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18684 * include/grub/device.h (grub_fs): Removed.
18685 * include/grub/err.h (grub_err_t): Add network-related values.
18686 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18687 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18688 (grub_ieee1275_get_aliasdevname): New proto.
18689 * include/grub/net.h: Rewritten.
18691 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18693 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18696 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18698 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18699 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18700 it truncates the output.
18701 Reported by: Ximin Luo.
18703 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18705 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18707 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18709 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18710 partmap before abstraction.
18712 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18714 * util/grub-mkconfig_lib.in: Add missing quotes.
18716 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18718 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18719 old method if mountinfo would return /dev/root and /dev/root doesn't
18722 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18726 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18727 (decomp_table): Add zlib entries.
18728 (zio_read): USe 8 bits for compression function rather than 3.
18729 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18731 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18733 * grub-core/disk/ahci.c: Add missing license statements.
18734 * grub-core/fs/romfs.c: Likewise.
18735 * grub-core/lib/ia64/setjmp.S: Likewise.
18736 * grub-core/loader/i386/pc/freedos.c: Likewise.
18737 * grub-core/loader/ia64/efi/linux.c: Likewise.
18738 * grub-core/video/colors.c: Likewise.
18739 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18741 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18745 * grub-core/Makefile.core.def (ata_pthru): Removed.
18746 (ahci): New module.
18748 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18750 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18752 (grub_hdparm_do_check_powermode_cmd): Likewise.
18753 (grub_hdparm_do_smart_cmd): Likewise.
18754 (grub_hdparm_set_val_cmd): Likewise.
18755 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18756 * grub-core/disk/ahci.c: New file.
18757 * grub-core/disk/ata.c: Factor out the low-level part into ...
18758 * grub-core/disk/pata.c: ... here.
18759 * grub-core/disk/ata_pthru.c: Contents moved to ...
18760 * grub-core/disk/pata.c: ... here.
18761 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18762 (grub_scsi_iterate): Use grub_scsi_names.
18763 (grub_scsi_open): Likewise.
18764 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18765 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18766 (grub_ata_regs_t): New struct.
18767 (grub_disk_ata_pass_through_parms): Likewise.
18768 (grub_ata_device): Renamed to ...
18769 (grub_ata): ... this.
18770 (grub_ata_dev): New struct.
18771 Removed all low-level inline functions.
18772 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18773 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18774 iterate hooks and open. All users updated.
18775 * util/grub-install.in: Handle AHCI disk module.
18777 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18779 Add support for DRI and RSTn markers in JPEG files.
18781 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18782 (JPEG_MARKER_RST0): Likewise.
18783 (JPEG_MARKER_RST1): Likewise.
18784 (JPEG_MARKER_RST2): Likewise.
18785 (JPEG_MARKER_RST3): Likewise.
18786 (JPEG_MARKER_RST4): Likewise.
18787 (JPEG_MARKER_RST5): Likewise.
18788 (JPEG_MARKER_RST6): Likewise.
18789 (JPEG_MARKER_RST7): Likewise.
18790 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18791 (grub_jpeg_decode_dri): New function.
18792 (grub_jpeg_decode_sos): Move image data related part into
18793 grub_jpeg_decode_data function.
18794 (grub_jpeg_decode_data): New function.
18795 (grub_jpeg_reset): New function.
18796 (grub_jpeg_decode_jpeg): Handle new markers.
18798 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18800 * util/ieee1275/ofpath.c (check_sas): Close fd.
18801 (main): Free of_path.
18802 Reported by: David Volgyes <dvolgyes>.
18804 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18806 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18807 Reported by: David Volgyes <dvolgyes>.
18809 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18811 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18813 Reported by: David Volgyes <dvolgyes>.
18815 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18817 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18819 Reported by: David Volgyes <dvolgyes>.
18821 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18823 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18824 Prevent memory leak.
18826 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18828 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18829 (main): Close file.
18830 Reported by: David Volgyes <dvolgyes>.
18832 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18834 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18835 to continue if allocation is failed.
18837 Reported by: David Volgyes <dvolgyes>.
18839 2011-06-23 David Volgyes <dvolgyes>
18841 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18844 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18846 Fix spurious warning.
18848 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18849 (acorn_partition_map_find): Use .bin member.
18851 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18853 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18854 /dev/root as a valid device.
18856 2011-06-23 Jim Meyering <meyering@redhat.com>
18858 Avoid NULL deref in grub_device_open.
18860 * grub-core/kern/device.c (grub_device_open): Don't dereference
18861 a NULL pointer upon failed grub_env_get.
18863 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18865 Support non-512B sectors and agglomerate reads.
18867 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18868 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18869 (disk_io_guid): Removed.
18870 (make_devices): Locate solely by BlockIO.
18871 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18872 (grub_efidisk_read): Use read_blocks.
18873 (grub_efidisk_write): Use write_blocks.
18874 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18876 (get_safe_sectors): Handle non-512B sectors.
18877 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18879 (grub_biosdisk_write): Handle non-512B sectors.
18880 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18881 (grub_scsi_read): Remove special non-512B block handling (now handled
18883 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18884 and do sanity checks.
18885 (grub_disk_adjust_range): Handle non-512B sectors.
18886 (transform_sector): New function.
18887 (grub_disk_read_small): Likewise.
18888 (grub_disk_read): Rewritten.
18889 (grub_disk_write): Handle non-512B sectors.
18890 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18892 (open_device): Use log_sector_size.
18893 (grub_util_biosdisk_read): Likewise.
18894 (grub_util_biosdisk_write): Likewise.
18895 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18897 (pc_partition_map_embed): Likewise.
18898 * include/grub/disk.h (grub_disk): New field log_sector_size.
18899 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18900 (GRUB_DISK_CACHE_BITS): Increased to 6.
18901 * util/grub-fstest.c (fstest): New command testload.
18902 (argp_parser): Likewise.
18904 2011-06-16 Robert Millan <rmh@gnu.org>
18906 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18907 `ata' driver on kernel of FreeBSD 9.
18909 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18910 (get_ataraid_disk_name): New functions.
18911 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
18912 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
18913 get_ataraid_disk_name() and get_ada_disk_name().
18915 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
18917 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
18920 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
18922 * docs/grub.texi (Obtaining and Building GRUB): Substitute
18923 `ftp.gnu.org' for `alpha.gnu.org'.
18925 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18927 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
18928 partitions under /dev/disk/by-id/.
18930 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18932 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
18933 after ten consecutive open failures. Scanning all the way up to
18934 10000 is excessive and can cause serious performance problems in
18935 some configurations.
18936 Fixes Ubuntu bug #787461.
18938 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18940 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
18943 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
18944 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18946 Don't stat devices unless we have to.
18948 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
18949 dir == /dev/mapper.
18950 (grub_guess_root_device): Use already known os_dev if possible.
18951 * grub-core/kern/emu/hostdisk.c
18952 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
18953 if device is known to be a dm one.
18955 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
18957 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
18958 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
18959 Reported by: Pawel Tecza.
18961 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
18963 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
18964 (lsefisystab): Likewise.
18966 (lsefimmap): Likewise.
18967 (hdparm): Enable on qemu-mips.
18968 (setjmp): Add ia64 nodist.
18969 (serial): Simplify tags.
18971 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18973 * Makefile.util.def (grub-ofpathname): Install manual page.
18975 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18977 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
18979 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18981 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
18983 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18985 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
18988 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18990 Use full 64-bit division.
18992 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
18993 (grub_divmod64): ... this.
18994 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
18997 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18999 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19002 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19004 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19005 to avoid accidents when debugging with 'sh -x'.
19006 * grub-core/gensyminfo.sh.in: Likewise.
19007 * tests/example_scripted_test.in: Likewise.
19008 * tests/grub_cmd_regexp.in: Likewise.
19009 * tests/grub_script_blanklines.in: Likewise.
19010 * tests/grub_script_dollar.in: Likewise.
19011 * tests/grub_script_expansion.in: Likewise.
19012 * tests/grub_script_final_semicolon.in: Likewise.
19013 * tests/partmap_test.in: Likewise.
19014 * tests/util/grub-shell-tester.in: Likewise.
19015 * tests/util/grub-shell.in: Likewise.
19017 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19019 Move gfxmenu color handling to video, so that gfxterm can use it
19022 * grub-core/gfxmenu/named_colors.c: Move to ...
19023 * grub-core/video/colors.c: ... here. Rename
19024 grub_gui_get_named_color to grub_video_get_named_color.
19025 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19026 * grub-core/video/colors.c (my_isxdigit): ... here.
19027 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19029 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19030 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19032 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19034 * include/grub/gui.h (grub_gui_color_t): Move to ...
19035 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19036 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19037 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19038 * include/grub/gui.h (grub_gui_map_color): Move to ...
19039 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19040 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19042 * include/grub/video.h (grub_video_get_named_color): ... here.
19043 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19044 * include/grub/video.h (grub_video_parse_color): ... here.
19046 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19048 (gfxmenu): Remove gfxmenu/named_colors.c.
19049 (video) [videomodules]: Add video/colors.c.
19051 Add a background_color command.
19053 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19055 (GRUB_MOD_INIT): Register background_color command.
19056 (GRUB_MOD_FINI): Unregister background_color command.
19057 (redraw_screen_rect): Allow blend/replace of text layer to be
19058 controlled independently from whether there is a background bitmap.
19059 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19062 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19064 Patch BPB in ntldr and chainloader --bpb.
19066 * grub-core/fs/fat.c: Include grub/fat.h.
19067 (grub_fat_bpb): Moved to ...
19068 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19069 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19071 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19073 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19075 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19077 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19078 (GRUB_MOD_INIT): Show --bpb.
19079 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19080 * grub-core/normal/main.c (features): New variable.
19081 (GRUB_MOD_INIT): Set feature_* variables.
19082 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19084 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19086 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19088 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19091 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19093 FreeDOS direct loading support.
19095 * docs/grub.texi (Supported OS): Add FreeDOS.
19096 * grub-core/Makefile.core.def (freedos): New module.
19097 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19099 (grub_relocator16_boot): Handle %ebx.
19100 * grub-core/lib/i386/relocator16.S: Likewise.
19101 * grub-core/loader/i386/pc/freedos.c: New file.
19103 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19105 Long Linux command line support.
19107 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19108 (maximal_cmdline_size): New variable.
19109 (allocate_pages): Use maximal_cmdline_size.
19110 (grub_cmd_linux): Set and use maximal_cmdline_size.
19111 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19112 (allocate_pages): Use maximal_cmdline_size.
19113 (grub_cmd_linux): Set and use maximal_cmdline_size.
19114 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19115 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19118 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19119 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19121 Improve devmapper support
19123 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19124 (grub_util_is_lvm): New function.
19125 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19126 than lvm if not dmraid.
19127 Handle mapped md nodes.
19128 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19129 (grub_util_device_is_mapped): ... this. Make always available. All users
19131 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19132 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19134 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19136 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19138 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19140 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19141 * grub-core/modinfo.sh.in: New file.
19142 * grub-core/Makefile.core.def (modinfo.sh): New script.
19143 * util/grub-mknetdir.in: Use modinfo.sh.
19144 * util/grub-mkrescue.in: Likewise.
19146 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19148 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19149 Fix potential usage of Elf32 instead of Elf64 when compiling on
19150 32-bit architecture. Add endianness macros while on it.
19152 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19154 Use mipsel- rather than mips- in directories involving mipsel ports to
19155 allow both endiannesses coexist.
19157 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19158 mips. All conditions adjusted.
19159 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19161 * util/grub-install.in: Adjust conditions to take renaming into account.
19162 * util/grub-mkimage.c (image_targets): Likewise. New target
19163 mips-qemu_mips-elf for bigendian mips.
19165 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19167 Avoid unnecessary copying on MIPS.
19169 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19170 early if src == dest.
19171 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19172 compression is none.
19174 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19176 Reduce memory footprint on SGI by putting modules before the kernel
19177 as opposed to after.
19179 * grub-core/Makefile.core.def (kernel): Increase linking address.
19180 (none_decompress): Likewise.
19181 (xz_decompress): Likewise.
19182 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19184 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19186 (grub_arch_modules_addr): New function.
19187 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19188 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19189 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19191 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19192 (grub_total_modules_size): ... this. Make global.
19193 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19194 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19196 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19197 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19198 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19199 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19200 * util/grub-mkimage.c (image_target_desc): New flag
19201 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19202 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19203 (generate_image): Handle images with modules before kernel.
19205 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19207 Prevent potential loss of memory map by overwrite on qemu-mips.
19209 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19210 Save ram size in $s4.
19211 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19212 All users changed to grub_arch_memsize.
19213 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19215 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19216 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19217 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19220 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19222 * .bzrignore: Remove grub-dumpbios.
19224 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19226 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19227 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19228 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19229 existing options which append).
19230 * docs/grub.texi (Simple configuration): Document new options.
19231 Reported by: Ian Jackson. Fixes Debian bug #617538.
19233 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19235 * util/grub-fstest.c (cmd_cat): New function.
19236 (fstest): Handle CMD_CAT.
19237 (options): Add cat.
19238 (argp_parser): Handle cat.
19240 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19242 * Makefile.util.def (grub-bin2h): Don't install.
19243 * docs/man/grub-bin2h.h2m: Remove.
19245 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19247 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19250 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19252 Reenable qemu-mips port.
19254 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19255 Fix small arc bug while on it.
19256 * gentpl.py: Handle qemu_mips.
19257 * grub-core/Makefile.am: Likewise.
19258 * grub-core/Makefile.core.def: Likewise.
19259 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19260 inappropriate includes.
19261 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19262 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19263 * grub-core/kern/main.c (grub_modules_get_end)
19264 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19265 * grub-core/kern/mips/qemu-mips: Moved to ..
19266 * grub-core/kern/mips/qemu_mips: ... this.
19267 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19268 (grub_machine_init): Call terminfo_init and serial_init.
19269 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19270 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19272 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19274 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19275 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19276 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19277 * include/grub/mips/qemu_mips/cmos.h: New file.
19278 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19279 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19281 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19282 Use correct mips-style address.
19283 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19284 (GRUB_TICKS_PER_SECOND): Removed.
19285 (grub_get_rtc): Likewise.
19286 (grub_cpu_idle): Likewise.
19287 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19289 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19290 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19291 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19292 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19293 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19294 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19295 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19296 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19298 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19302 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19303 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19305 * configure.ac: New target mips-arc.
19306 * gentpl.py: Likewise.
19307 * grub-core/Makefile.am: Likewise.
19308 * grub-core/Makefile.core.def: Likewise.
19309 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19310 (none_decompress): Likewise.
19311 (lsdev): New module.
19312 (datetime): Use lib/arc/datetime.c on ARC.
19313 (part_dvh): New module.
19314 * grub-core/commands/arc/lsdev.c: New file.
19315 * grub-core/disk/arc/arcdisk.c: Likewise.
19316 * grub-core/kern/mips/arc/init.c: Likewise.
19317 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19319 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19321 (grub_arch_dl_relocate_symbols): Likewise.
19322 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19323 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19324 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19326 * grub-core/lib/arc/datetime.c: New file.
19327 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19328 pci.h on non-loongson.
19329 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19330 (grub_linux_boot): Set unused registers to 0.
19331 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19332 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19333 * grub-core/mmap/mips/uppermem.c: ...here.
19334 * grub-core/partmap/dvh.c: New file.
19335 * grub-core/term/arc/console.c: Likewise.
19336 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19337 (grub_terminfo_set_current): Add terminal "arc".
19338 (grub_terminfo_readkey): Support ARC sequences.
19339 * include/grub/arc/arc.h: New file.
19340 * include/grub/arc/console.h: Likewise.
19341 * include/grub/disk.h (grub_disk_dev_id): Add
19342 GRUB_DISK_DEVICE_ARCDISK_ID.
19343 * include/grub/mips/arc/kernel.h: New file.
19344 * include/grub/mips/arc/memory.h: Likewise.
19345 * include/grub/mips/arc/time.h: Likewise.
19346 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19347 * include/grub/mips/kernel.h (grub_halt): ... here.
19348 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19350 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19351 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19352 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19353 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19355 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19357 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19358 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19359 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19360 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19361 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19362 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19363 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19364 (grub_phys_addr_t): Moved from here ...
19365 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19366 (grub_vtop): Moved from here ...
19367 * include/grub/mips/memory.h (grub_vtop): ... here.
19368 (grub_map_memory): Moved from here ...
19369 * include/grub/mips/memory.h (grub_map_memory): ... here.
19370 (grub_unmap_memory): Moved from here ...
19371 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19372 (grub_machine_mmap_iterate): Moved from here ...
19373 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19374 (grub_mmap_get_lower): Moved from here ...
19375 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19376 (grub_mmap_get_upper): Moved from here ...
19377 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19378 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19380 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19381 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19383 * include/grub/mips/time.h (grub_get_rtc): ... here.
19384 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19386 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19387 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19389 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19390 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19392 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19393 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19394 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19395 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19396 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19397 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19398 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19399 (GRUB_MACHINE_LINK_ADDR): Likewise.
19400 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19402 * util/grub-install.in: Run dvhtool on ARC.
19403 * util/grub-mkimage.c (image_targets): Add mips-arc.
19404 (generate_image): Handle ECOFF output for mips-arc.
19406 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19408 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19411 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19413 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19414 after enabling port.
19416 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19418 Skip incorrect USB devices.
19420 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19422 * include/grub/usb.h (grub_usb_err_t): New enum value
19423 GRUB_USB_ERR_BADDEVICE.
19425 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19427 Fuloong video init support.
19429 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19431 (grub_vga_read_arx): New function.
19432 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19434 (framebuffer): New members io, mmioptr and mmiobase.
19435 (read_sis_cmd): New function.
19436 (write_sis_cmd): Likewise.
19437 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19438 rather than 640x400.
19439 * grub-core/video/sis315_init.c: New file.
19441 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19443 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19445 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19446 to grub_dl_register_symbol.
19448 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19450 Fix compilation errors.
19452 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19453 potentially unused.
19454 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19455 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19456 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19457 to loongson machines.
19459 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19461 Several FS mtime support.
19463 * grub-core/fs/affs.c (grub_affs_time): New struct.
19464 (grub_affs_file): New field mtime.
19465 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19466 type. Removed 'size'. New field 'di'. All users updated.
19467 (grub_affs_mount): Simplify checsum checking.
19468 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19469 (grub_affs_dir): Handle mtime.
19470 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19471 (grub_cpio_dir): Likewise.
19472 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19473 (grub_hfs_filerec): New field mtime.
19474 (grub_hfs_dir): Handle mtime.
19475 (grub_hfs_mtime): New function.
19476 (grub_hfs_fs): Register grub_hfs_mtime.
19477 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19478 (grub_iso9660_dir): New field mtime.
19479 (grub_fshelp_node): New field dirent.
19480 (iso9660_to_unixtime): New function.
19481 (iso9660_to_unixtime2): Likewise.
19482 (grub_iso9660_read_symlink): Use node->dirent.
19483 (grub_iso9660_iterate_dir): Likewise.
19484 (grub_iso9660_dir): Set mtime.
19485 (grub_iso9660_mtime): New function.
19486 (grub_iso9660_fs): Register grub_iso9660_mtime.
19487 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19488 (grub_jfs_inode): New fields atime, ctime and mtime.
19489 (grub_jfs_dir): Set mtime.
19490 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19491 * grub-core/fs/ntfs.c (list_file): Set mtime.
19492 (grub_ntfs_dir): Likewise.
19493 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19494 (grub_reiserfs_iterate_dir): Set mtime.
19495 (grub_reiserfs_dir): Likewise.
19496 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19497 (grub_fshelp_node): Likewise.
19498 (grub_sfs_iterate_dir): Set mtime.
19499 (grub_sfs_dir): Likewise.
19500 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19501 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19502 (grub_xfs_inode): New fields atime, mtime, ctime.
19503 (grub_xfs_dir): Set mtime.
19504 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19505 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19506 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19508 Support UDF symlinks.
19510 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19511 (grub_ufs_read_symlink): New function. All users updated.
19513 Check amiga partmap checksum.
19515 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19516 (grub_amiga_partition): Likewise.
19517 (amiga_partition_map_checksum): New function.
19518 (amiga_partition_map_iterate): Check checksum.
19520 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19524 * Makefile.util.def (libgrubmods.a): Add romfs.
19525 * grub-core/Makefile.core.def (romfs): New module.
19526 * grub-core/fs/romfs.c: New file.
19528 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19530 Squashfs v4 support.
19532 * Makefile.util.def (libgrubmods.a): Add squash4.
19533 * grub-core/Makefile.core.def (squash4): New module.
19534 * grub-core/fs/squash4.c: New file.
19535 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19536 disk_input_start, disk_input.
19537 (get_byte): Handle disk_input.
19538 (grub_zlib_disk_read): New function.
19539 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19541 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19542 2011-05-15 Feiran Zheng <famcool@gmail.com>
19544 * Makefile.util.def (libgrubmods.a): Add minix3.
19545 * grub-core/Makefile.core.def (minix3): New module.
19546 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19547 (GRUB_MINIX_BSIZE): Removed.
19548 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19549 (grub_minix_ino_t): New type.
19550 (grub_minix_le_to_cpu_ino): New macro.
19551 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19552 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19553 (grub_minix_data): New field block_size.
19554 (grub_minix_read_file): Handle 64-bit correctly.
19555 * grub-core/fs/minix3.c: New file.
19557 2011-05-15 Tristan Gingold <gingold@free.fr>
19558 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19559 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19563 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19564 * configure.ac: Add ia64-efi target.
19565 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19566 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19567 * gentpl.py: Add ia64_efi platform.
19568 Rename x86_efi to efi and Add ia64-efi. All users updated.
19569 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19570 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19571 Remove kern/generic/rtc_get_time_ms.c on EFI.
19572 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19573 kern/ia64/dl_helper.c on ia64-efi.
19574 Add kern/emu/cache.c on emu.
19575 (linux): Use on loader/ia64/efi/linux.c on ia64.
19576 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19577 whether symbol is a function.
19578 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19579 (grub_symbol): New field 'isfunc'.
19580 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19581 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19582 (grub_dl_load_segments): Place all sections into the same region.
19583 [__ia64__]: Create trampolines and got.
19584 [GRUB_MACHINE_EMU]: Call mprotect.
19585 (grub_dl_resolve_symbols): Resolve symbol type as well.
19586 [__ia64__]: Create function descriptors.
19587 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19588 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19589 (grub_get_rtc): New function.
19590 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19591 * grub-core/kern/emu/cache.S: Renamed to ...
19592 * grub-core/kern/emu/cache_s.S: ... this.
19593 [__ia64__]: Add a nop.
19594 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19595 [__ia64__]: New function.
19596 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19597 * grub-core/kern/ia64/dl.c: New file.
19598 * grub-core/kern/ia64/dl_helper.c: Likewise.
19599 * grub-core/kern/ia64/efi/init.c: New file.
19600 * grub-core/kern/ia64/efi/startup.S: Likewise.
19601 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19602 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19603 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19604 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19605 * grub-core/loader/ia64/efi/linux.c: New file.
19606 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19607 (GRUB_MOD_DEP): Likewise.
19608 (grub_dl) [__ia64__]: New fields got and tramp.
19609 (grub_dl): New field 'base'.
19610 (grub_dl_register_symbol): New argument isfunc. All users updated.
19611 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19612 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19613 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19614 (grub_ia64_dl_get_tramp_got_size): New proto.
19615 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19616 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19617 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19618 * include/grub/efi/api.h: Skip call wrappers on ia64.
19619 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19620 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19621 * include/grub/elf.h (ELF_ST_INFO): New definition.
19622 * include/grub/ia64/efi/kernel.h: New file.
19623 * include/grub/ia64/efi/memory.h: Likewise.
19624 * include/grub/ia64/efi/time.h: Likewise.
19625 * include/grub/ia64/kernel.h: Likewise.
19626 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19627 * include/grub/ia64/time.h: New file.
19628 * include/grub/ia64/types.h: Likewise.
19629 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19630 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19632 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19633 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19634 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19635 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19637 (EFI64_HEADER_SIZE): New definition. All users updated.
19638 (image_targets): Add ia64-efi.
19639 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19640 jumpers_addr. All users updated.
19641 Create function descriptors.
19642 (count_funcs): New function.
19643 (unaligned_uint32): New struct.
19644 (MASK20): New definition.
19645 (MASK19): Likewise.
19646 (MASKF21): Likewise.
19647 (add_value_to_slot_20b): New function.
19648 (add_value_to_slot_21_real): Likewise.
19649 (add_value_to_slot_21): Likewise.
19650 (ia64_kernel_trampoline): New struct.
19651 (nopm): New variable.
19653 (make_trampoline): New function.
19654 (relocate_addresses): Handle ia64.
19655 (make_reloc_section): Likewise.
19656 (load_image): Likewise.
19658 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19660 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19661 warning. Move variables before code while on it.
19663 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19667 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19668 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19669 * grub-core/boot/mips/loongson/fuloong.S: New file.
19670 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19671 Explicitly init CS5536.
19672 [FULOONG]: Don't use serial until CS5536 is available.
19673 Set GPIO based on dumps.
19674 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19675 [FULOONG]: Handle GPIO and memory controller differences.
19676 Parse machine type in $a2.
19677 * grub-core/boot/mips/startup_raw.S: Determine and save the
19679 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19680 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19681 init on architecture type.
19682 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19683 SIS315E. Don't init at_keyboard on fuloong.
19684 (grub_halt): Support Fuloong.
19685 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19686 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19687 (loongson_machtypes): New array.
19688 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19690 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19691 config. All users updated. Handle CS5536 serial.
19692 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19693 default port on machine type. Register serial as inactive.
19694 * grub-core/video/sis315pro.c: New file.
19695 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19697 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19698 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19699 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19700 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19701 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19702 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19704 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19705 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19707 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19708 (grub_arch_machine): New extern var.
19709 * include/grub/mips/loongson/serial.h
19710 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19711 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19712 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19713 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19714 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19715 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19716 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19717 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19718 * include/grub/term.h (grub_term_register_input_inactive): New inline
19720 (grub_term_register_output_inactive): Likewise.
19721 * include/grub/video.h (grub_video_driver_id): New value
19722 GRUB_VIDEO_DRIVER_SIS315PRO.
19723 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19724 New field "names". All users updated.
19725 New field value IMAGE_FULOONG_FLASH.
19726 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19728 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19730 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19731 and add some clarification.
19733 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19735 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19736 platforms if kernel is compressed.
19738 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19740 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19741 unused modules since currently referrence counter isn't reliable and
19742 there isn't much memory to recover there anyway.
19744 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19746 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19747 rather than resetting it to allow modules to reference themselves
19750 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19752 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19753 counter on dependencies since grub_dl_unref already handles this.
19755 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19757 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19758 on error if not already done.
19760 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19762 Fix few potential memory misusage.
19764 * grub-core/font/font.c (load_font_index): Don't free char_index to
19766 (grub_font_load): Zero-fill font at alloc for safety.
19767 Close file on error.
19768 (free_font): Free bmp_idx.
19770 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19772 * docs/grub.texi (Installation): Fix several outdated claims.
19774 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19776 Handle module_license on windows.
19778 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19780 (insert_string): Make argument const char * instead of char *.
19781 (write_section_data): Handle long section names.
19782 Handle module_license.
19784 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19786 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19787 handle class-free menuentries.
19788 (grub_normal_add_menu_entry): Add a check to be sure.
19790 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19792 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19795 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19797 * configure.ac: Bump version to 1.99.
19799 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19801 Give ATA device a bit more time on first try in order to allow disks
19804 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19805 if dev->present is 1. Reset dev->present on failure.
19806 (grub_ata_device_initialize): Set dev->present to 1.
19807 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19808 (grub_ata_device): New member 'present'.
19810 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19812 * util/grub-mkimage.c (generate_image): Update hash.
19814 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19816 Flush caches on DMA memory.
19818 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19819 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19820 (grub_dma_free): Likewise.
19821 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19823 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19825 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19826 to avoid asm treating ld and sd as macros.
19828 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19830 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19833 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19835 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19836 grub_decompress_core since later would fail if grub_decompress_core
19839 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19841 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19842 R_MIPS_JALR since it's used by newer compiler.
19844 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19846 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19848 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19850 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19851 file_path to 0 for surety.
19852 (grub_chainloader_boot): Set exit_data to NULL.
19853 Unset the loader once done.
19854 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19856 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19858 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19859 unknown key into a dprintf.
19861 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19863 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19864 on first non-existant partition.
19866 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19868 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19870 Reported by: Mark Korenberg.
19872 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19874 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19877 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19879 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19880 before closing to ensure that it will be readable by grub-setup.
19882 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19884 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19885 (devpath_1): Use MAKE_PIWG_PATH.
19886 (devpath_2): Likewise.
19887 (devpath_3): Likewise.
19888 (devpath_4): Likewise.
19889 (devpath_5): Likewise.
19890 (devpath_6): Likewise.
19892 The appleldr.mod was checked that to be binary identical to previous
19895 2011-05-05 Zach <mikezackles>
19897 Support 2010 Macbooks.
19899 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19900 (devs): Add devpath_6.
19902 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19904 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19905 /dev/random. /dev/urandom is good enough for our purposes (salting).
19907 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19909 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19911 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19913 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
19916 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19918 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
19919 and not 0 on failure.
19921 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19923 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
19924 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
19925 disk; otherwise grub_fs_probe will not fall back to the next
19927 (grub_pxefs_open): Likewise, for consistency.
19928 Reported and tested by: Ezekiel Grave.
19930 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19932 * tests/partmap_test.in: Don't hardcode path to parted.
19933 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
19935 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
19937 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
19938 of `ls' to find out which devices are available.
19940 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19942 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
19943 than source address for efi mmap buffer.
19945 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19947 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
19948 wrong action on non-detecting the magic.
19950 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19952 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
19953 already supplied by another part of the module (fixes compilation on
19956 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19958 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
19959 match the one used by mdadm.
19961 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19963 * po/README: Add instructions for creating po/LINGUAS.
19965 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19967 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
19970 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
19971 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
19972 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
19973 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
19974 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
19975 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
19976 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
19977 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
19978 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
19979 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
19980 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
19981 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
19982 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
19983 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
19984 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
19985 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
19986 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
19987 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
19988 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
19989 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
19990 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
19991 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
19993 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19995 * grub-core/kern/emu/getroot.c
19996 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
19997 test that was incorrectly reintroduced in r3214.
19998 Reported by: Ian Dall. Fixes Savannah bug #33133.
20000 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20002 Fix stack pointer handling in 16-bit relocator.
20004 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20005 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20006 Fixes Ubuntu bug #683904.
20008 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20010 * configure.ac: Bump version to 1.99~rc2.
20012 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20014 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20015 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20016 * grub-core/lib/x86_64/setjmp.S: Likewise.
20017 * grub-core/lib/mips/setjmp.S: Likewise.
20018 * grub-core/lib/powerpc/setjmp.S: Likewise.
20019 * grub-core/lib/sparc64/setjmp.S: Likewise.
20021 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20023 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20024 * grub-core/lib/efi/datetime.c: Likewise.
20026 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20028 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20030 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20031 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20032 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20034 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20036 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20038 (grub_gfxterm_term_init): Likewise.
20040 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20042 Take into account the decorations the computing menu entry width.
20044 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20045 (grub_gfxmenu_create_box): Register get_border_width.
20046 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20048 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20051 2011-04-18 Endres Puschner <code@e7p.de>
20053 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20054 Don't skip first class.
20056 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20058 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20060 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20062 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20064 Complete 64-bit division support.
20066 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20067 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20068 * include/grub/misc.h (grub_divmod64): Rename to ...
20069 (grub_divmod64_full): ... this.
20070 (grub_divmod64): New inline function.
20072 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20074 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20076 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20078 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20079 performing the necessary test.
20081 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20083 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20084 (kfreebsd.elf): Likewise.
20085 (pc-chainloader.elf): Likewise.
20086 (ntldr.elf): Likewise.
20088 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20090 Identify RAID by its UUID rather than (guessed) name.
20092 * grub-core/disk/raid.c (ascii2hex): New function.
20093 (grub_raid_open): Accept mduuid/%s specification.
20094 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20095 (get_mdadm_uuid): ... this.
20096 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20098 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20100 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20103 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20105 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20107 * util/grub.d/20_linux_xen.in: Likewise.
20109 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20111 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20112 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20114 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20115 Build a list of relevant visible mounts using the mnt_id and
20116 parent_mnt_id fields, and then scan that list at the end.
20118 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20120 * docs/grub.texi (normal): New section.
20121 (normal_exit): New section.
20122 (Embedded configuration): Add reference to normal.
20123 (GRUB only offers a rescue shell): Likewise.
20124 * docs/grub-dev.texi (Error Handling): Fix typo.
20126 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20128 * NEWS: Drop obsolete entry about probe-only btrfs support.
20130 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20132 * util/import_gcry.py: Fix typo.
20134 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20136 * NEWS: Add btrfs support.
20138 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20139 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20141 BtrFS support. Written by me (Vladimir) with important bugfixes and
20142 even more important testing by Colin.
20144 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20145 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20146 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20147 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20148 mem_input_off and mem_input. All users updated to accept in-RAM input.
20149 (gzio_seek): New function.
20150 (test_zlib_header): Likewise.
20151 (grub_gzio_read): Likewise.
20152 (grub_zlib_decompress): Likewise.
20153 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20154 Accept partial and non-virtual mounts.
20155 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20156 avoid receiving /dev/dm-X as device.
20157 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20158 Handle bind and partial mounts.
20159 * grub-core/lib/crc.c: New file.
20160 * include/grub/deflate.h: Likewise.
20161 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20163 * include/grub/lib/crc.h: New file.
20165 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20167 Implement automatic module license checking according to new GNU
20170 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20171 (grub_dl_load_core): Use grub_dl_check_license.
20172 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20173 (GRUB_MOD_LICENSE): Likewise.
20174 (GRUB_MOD_DUAL_LICENSE): Likewise.
20175 All modules updated.
20177 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20179 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20180 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20182 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20184 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20186 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20188 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20190 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20193 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20195 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20196 parenthesis in the middle of the filename.
20198 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20200 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20201 rather than trying to put initrd way too high.
20202 Reported by: Ryan Lortie <desrt@desrt.ca>
20204 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20206 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20207 improperly removed string.
20209 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20211 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20213 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20214 (open_device) Likewise.
20215 (grub_util_biosdisk_close): Likewise.
20216 Reported by: Mark Korenberg.
20218 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20220 * util/grub-mkconfig_lib.in: Add missing quotes.
20222 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20224 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20227 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20229 Dynamically count the number of lines for the lower banner.
20231 * grub-core/normal/menu_entry.c (per_term_screen): New member
20233 (print_down): Use num_entries.
20234 (update_screen): Likewise.
20235 (grub_menu_entry_run): Set num_entries.
20236 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20238 (grub_print_message_indented): Move real part to ...
20239 (grub_print_message_indented_real): ... here. Additional argument
20241 (draw_border): Additional argument num_entries.
20242 (print_message): Additional argument dry_run.
20243 (print_entries): Receive menu viewer data.
20244 (grub_menu_init_page): New argment num_entries.
20245 (menu_text_set_chosen_entry): Use num_entries.
20246 (grub_menu_try_text): Likewise.
20247 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20249 (grub_ucs4_count_lines): New function.
20250 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20251 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20252 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20253 (grub_term_border_height): Likewise.
20254 (grub_term_num_entries): Likewise.
20256 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20258 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20259 Remove now unused string.
20261 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20263 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20265 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20267 (Comment): Fix typo.
20268 (Getting started): General copy-editing.
20269 (Typical Development Experience): Likewise.
20270 (Error Handling): Likewise.
20271 (Video API): Likewise.
20273 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20275 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20278 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20280 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20283 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20285 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20286 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20289 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20291 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20292 grub_strcpy since the lines aren't necessarily 0-terminated.
20294 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20296 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20299 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20301 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20302 (GRUB_MOD_INIT): DEVICE isn't optional.
20304 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20306 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20307 word on new line if it's too long anyway. Fixes a hang.
20309 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20311 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20313 * util/grub-setup.c (main): Reuse md device name if available.
20314 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20315 not GRUB name as argument.
20316 Based on patch by: Florian Wagner <fwagner>.
20318 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20320 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20321 Place mbi on low memory for better compatibility.
20323 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20325 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20327 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20328 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20330 * autogen.sh: Ensure that collate and ctype locale is C.
20331 * conf/Makefile.common: Likewise.
20333 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20335 * grub-core/normal/menu.c: Add missing include.
20337 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20339 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20341 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20343 * util/grub-mkconfig.in: Ignore emacsen backup.
20345 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20347 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20349 (grub_util_biosdisk_close): Likewise.
20351 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20353 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20354 const attribute and use grub_isdigit.
20356 2011-04-06 Andrey <dev_null@ukr.net>
20358 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20361 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20363 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20364 useful grub_dprintf's.
20366 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20368 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20370 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20372 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20374 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20376 Output errors if theme loading failed.
20378 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20379 grub_gfxterm_fullscreen on error paths to ...
20380 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20381 theme loading error.
20383 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20385 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20386 space for older compilers.
20387 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20389 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20391 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20392 and report them as not RAID members since they are useless for GRUB.
20393 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20395 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20397 Increase LVM implementation robustness in order not to crash on
20398 configurations like pvmove. Previously code assumed that in some places
20399 only lvs or only pvs are used whereas it seems that they are used
20402 * grub-core/disk/lvm.c (read_node): New function.
20403 (read_lv): Use read_node.
20404 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20405 Match volumes only at the end when all lvs are found. Take both
20406 pvs (first) and lvs (second) into account.
20407 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20408 mirror_* into node_*. All users updated.
20409 (grub_lvm_stripe): Merge this ...
20410 (grub_lvm_mirror): ... and this ...
20411 (grub_lvm_node): ... into this. All users updated.
20413 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20415 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20416 of function to allow further scanning for LVMs.
20418 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20420 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20421 on failed seek as it breaks open fd reusage.
20423 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20425 * util/grub-install.in: Add a recommendation to use --recheck before
20428 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20430 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20433 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20435 GRUB developper manual based on existing Internals section and
20436 contributions by the various authors with active copyright assignment.
20438 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20439 * docs/font_char_metrics.png: New file.
20440 * docs/font_char_metrics.txt: Likewise.
20441 * docs/grub-dev.texi: Likewise.
20442 * docs/grub.texi (Internals): Move from here ...
20443 * docs/grub-dev.texi: ... here.
20445 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20447 Store the loopback device as data on loopback grub_disk structures,
20448 rather than the file it points to. This fixes use of freed memory
20449 if an existing loopback device is replaced.
20451 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20452 disk->data, not dev->file.
20453 (grub_loopback_read): Adjust file assignment to match.
20454 Fixes Ubuntu bug #742967.
20456 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20458 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20459 when replacing an existing device.
20461 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20463 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20464 memory corruptions.
20466 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20468 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20469 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20470 (grub_jfs_read_inode): Likewise.
20471 (grub_jfs_opendir): Likewise. Remove now useless casts.
20472 (grub_jfs_getent): Likewise.
20473 Make ino a grub_uint32_t rather than int.
20474 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20475 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20476 division and module with bit operations.
20477 (grub_jfs_find_file): Make ino a grub_uint32_t.
20478 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20480 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20482 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20483 warning. (This was in fact always initialised before use, but GCC
20484 wasn't smart enough to prove that.)
20485 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20487 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20489 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20491 (efi_wrap_1): Likewise.
20492 (efi_wrap_2): Likewise.
20493 (efi_wrap_3): Likewise.
20494 (efi_wrap_4): Likewise.
20495 (efi_wrap_5): Likewise.
20496 (efi_wrap_6): Likewise.
20497 (efi_wrap_10): Likewise.
20498 Based on information by: Red Hat/Peter Jones.
20500 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20502 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20503 set-but-not-used variable.
20505 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20507 * docs/grub.texi (Simple configuration): Be more explicit about
20508 GRUB_DEFAULT, and add an example.
20509 Reported by: Leslie Rhorer.
20511 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20513 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20516 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20518 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20519 * util/grub.d/20_linux_xen.in: Likewise.
20521 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20523 * util/grub.d/10_linux.in: Try alternative config filenames where
20524 we parse config file.
20525 * util/grub.d/20_linux_xen.in: Likewise.
20527 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20529 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20530 * util/grub.d/20_linux_xen.in: Likewise.
20532 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20534 * grub-core/disk/raid.c (insert_array): Add few potentially
20535 useful grub_util_info.
20536 (grub_raid_register): Likewise.
20538 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20540 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20541 Preserve partition number in mdadm code path.
20543 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20545 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20546 few potentially useful grub_util_info.
20548 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20550 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20552 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20554 * docs/grub.texi (default): Use @example rather than nested
20555 itemized lists to avoid breaking gendocs.
20557 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20559 * docs/grub.texi (Future): Update.
20561 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20563 * docs/grub.texi (Environment): New chapter.
20564 (Changes from GRUB Legacy): Link to "Environment block" section for
20565 details of limitations.
20566 (Simple configuration): Likewise. Link to documentation of gfxmode
20567 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20569 (Shell-like scripting): Note that normal variables are stored in the
20571 (gettext): Link to documentation of lang and locale_dir.
20572 (list_env): New section.
20573 (load_env): New section.
20574 (save_env): New section.
20576 (Reporting bugs): Fix typo.
20578 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20580 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20583 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20585 * grub-core/term/at_keyboard.c (set_scancodes)
20586 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20588 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20590 * docs/grub.texi (Menu-specific commands): Remove some semantics
20591 that were true in GRUB Legacy but not in GRUB 2.
20592 (submenu): New section.
20593 (false): New section.
20594 (read): New section.
20595 (true): New section.
20597 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20599 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20601 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20603 * docs/grub.texi (Simple configuration): Explain some of the
20604 current limitations of grub-mkconfig.
20605 Reported by: Leslie Rhorer.
20607 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20609 Old macs search for boot.efi rather than for bootia32.efi.
20611 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20612 * util/grub-mkrescue.in: Likewise.
20613 Suggested by: Peter Jones.
20615 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20617 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20619 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20621 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20622 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20623 (grub_lvm_mirror): New struct.
20624 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20625 (grub_lvm_iterate): Iterate only visible volumes.
20626 (grub_lvm_read): Factor out to ..
20627 (read_lv): ... this. Support mirrors.
20628 (grub_lvm_read): New wrapper function.
20629 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20630 stripped or mirrored.
20632 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20634 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20636 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20638 * docs/grub.texi (loopback): New section.
20640 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20642 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20645 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20647 * docs/grub.texi (BIOS installation): New section, partly based on
20648 previous text in other sections.
20649 (Installing GRUB using grub-install): Replace BIOS discussion with a
20651 (Images): Likewise.
20653 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20655 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20656 [HAVE_DIOCGDINFO]: Add safety checks.
20658 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20660 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20661 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20663 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20665 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20666 real_sb->size is zero (e.g. RAID-0), get the disk size from
20667 real_sb->data_size instead.
20668 Fixes Ubuntu bug #743136.
20670 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20672 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20673 printf clauses for printing size and start.
20675 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20677 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20678 Reported and tested by: Timothy Nikkel.
20680 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20682 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20683 (dirty_region_add_real): ... this.
20684 (dirty_region_add): Don't discard margin refresh when performing
20687 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20689 * grub-core/lib/relocator.c (allocate_regstart)
20690 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20691 terminals are capabple of malloc-free operation.
20692 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20693 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20695 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20697 * util/grub-setup.c: Copy the partition table zone if floppy support
20698 is disabled, even if no partition table is found.
20700 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20701 during POST if an invalid partition table is contained in the PBR
20702 of the active partition when GRUB is installed to a partition.
20704 2011-03-28 Colin Watson <cjwatson@debian.org>
20706 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20709 2011-03-28 Colin Watson <cjwatson@debian.org>
20711 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20712 to be specific about what kind of RAID device we're scanning for.
20714 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20716 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20717 return freed string.
20719 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20721 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20723 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20725 Use libgeom on FreeBSD to detect partitions.
20727 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20728 (grub-mkrelpath): Likewise.
20729 (grub-script-check): Likewise.
20730 (grub-editenv): Likewise.
20731 (grub-mkpasswd-pbkdf2): Likewise.
20732 (grub-fstest): Likewise.
20733 (grub-mkfont): Likewise.
20734 (grub-mkdevicemap): Likewise.
20735 (grub-probe): Likewise.
20736 (grub-setup): Likewise.
20737 (grub-ofpathname): Likewise.
20738 (grub-mklayout): Likewise.
20739 (example_unit_test): Likewise.
20740 (grub-menulst2cfg): Likewise.
20741 * grub-core/Makefile.core.def (grub-emu): Likewise.
20742 (grub-emu-lite): Likewise.
20743 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20744 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20745 define HAVE_DIOCGDINFO.
20746 (follow_geom_up) [FreeBSD]: New function.
20747 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20748 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20749 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20750 unconditionally of HAVE_DIOCGDINFO.
20752 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20754 Fix FreeBSD compilation problem.
20756 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20757 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20759 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20761 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20762 Switch back to page zero before loading a kernel, since some kernel
20763 drivers expect that.
20764 Thanks to: Felix Kuehling.
20766 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20768 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20769 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20770 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20772 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20774 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20775 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20777 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20779 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20780 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20781 malloc is disabled.
20783 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20785 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20786 for modules headers when counting the needed allocation size.
20788 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20790 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20791 if no ASCII character is found to prevent crash.
20793 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20795 * grub-core/video/bitmap.c (match_extension): Ignore case.
20797 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20799 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20801 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20803 * grub-core/script/parser.y: Declare "time" as valid argument.
20805 2011-03-23 Peter Jones <pjones@redhat.com>
20807 Fix incorrect assert failure reporting.
20809 * grub-core/tests/example_functional_test.c (example_test): Add
20811 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20812 (failure_start): ...this. Check that malloc succeeded.
20813 Don't call xvasprintf. Return failure struct.
20814 (failure_append_vtext): New function.
20815 (failure_append_text): Likewise.
20816 (add_failure): Likewise.
20817 (grub_test_assert_helper): Likewise.
20818 * include/grub/test.h (grub_test_assert_helper): New declaration.
20819 (grub_test_assert): Macro rewritten.
20821 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20823 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20825 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20827 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20829 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20831 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20832 into GRUB-style one.
20834 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20836 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20837 error and not grub_errno.
20838 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20840 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20842 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20843 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20845 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20847 * grub-core/efiemu/i386/pc/cfgtables.c
20848 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20849 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20850 (grub_xnu_unlock): Likewise.
20851 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20853 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20855 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20856 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20857 * grub-core/commands/hashsum.c (aliases): Likewise.
20858 * grub-core/commands/setpci.c (pci_registers): Likewise.
20859 * grub-core/disk/usbms.c (attach_hook): Likewise.
20860 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20861 (zio_checksum_table): Likewise.
20862 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20863 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20864 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20865 * grub-core/lib/relocator.c (leftovers): Likewise.
20866 (extra_blocks): Likewise.
20867 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20868 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20869 (modules_last): Likewise.
20870 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20871 (devices): Likewise.
20872 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20873 (modules_last): Likewise.
20874 * grub-core/normal/auth.c (users): Likewise.
20875 * grub-core/normal/context.c (initial_menu): Likewise.
20876 (current_menu): Likewise.
20877 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20878 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20879 (grub_serial_terminfo_input_template): Likewise.
20880 (grub_serial_terminfo_output_template): Likewise.
20881 (grub_serial_terminfo_input): Likewise.
20882 (grub_serial_terminfo_output): Likewise.
20883 (registered): Likewise.
20884 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20886 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20888 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20889 grub_video_mode_type_t.
20890 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20891 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20892 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20894 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20896 * util/grub-install.in: Correct the x86-64 name as x86_64.
20898 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
20900 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20901 initial chunk read from the kernel always includes GRUB's multiboot
20902 header, which is now outside the first sector.
20904 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20906 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20907 cached mmap_size, so that this works correctly when called multiple
20909 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20911 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20913 * docs/grub.texi (Simple configuration): Tidy up formatting.
20915 2011-03-07 Szymon Janc <szymon@janc.net.pl>
20917 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
20918 Set-but-not-used variable removed.
20920 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20922 Workaround yet another IEEE1275 bug.
20924 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
20925 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
20926 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
20927 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
20929 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20930 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
20932 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20934 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
20937 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
20939 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
20940 empty, since in that case we can only generate either nothing or a
20941 syntactically invalid configuration file.
20942 Reported by: Michal Suchanek. Fixes Debian bug #612898.
20944 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20946 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
20947 (Making a GRUB bootable CD-ROM): Likewise.
20948 (Invoking grub-mkrescue): New section.
20949 Reported by: Yann Dirson. Fixes Debian bug #612585.
20951 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20953 * util/grub-install.in: Remove unnecessary brackets from tr
20955 * util/grub.d/10_hurd.in: Likewise.
20956 * util/grub.d/10_kfreebsd.in: Likewise.
20957 * util/grub.d/10_linux.in: Likewise.
20958 * util/grub.d/20_linux_xen.in: Likewise.
20959 Reported by: Jamie Heilman. Fixes Debian bug #612564.
20961 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
20963 * include/grub/file.h (not_easly_seekable): Rename to ...
20964 (not_easily_seekable): ... this. Update all users.
20966 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
20968 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
20971 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
20973 * util/grub-mkimage.c (generate_image): Refuse to create the images
20974 bigger than the actual flash (512K) in Loongson machines. 512K is also
20975 the biggest chip supported by them.
20977 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20979 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
20981 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
20983 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
20984 super_offset field.
20986 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20988 * util/grub-install.in: Ignore install device on platforms
20989 where it doesn't make sense. Always use UUIDs except on pc, efi and
20991 Reported by: Daniel Kahn Gillmor.
20993 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20995 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
20997 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20999 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21000 (iterate_real): Don't rely on partition being non-NULL.
21002 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21004 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21005 supported platforms. Put a compile time assert for this rather than
21006 generate a warning with 32-bit shift.
21008 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21010 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21011 logical expression more readable.
21013 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21015 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21016 even if some elements have a name.
21017 Reported by: Alexander GQ Gerasiov.
21019 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21021 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21022 path unreadable if `grub-probe -t abstraction' fails, for example if
21023 memberlist fails on an LVM volume group.
21024 Reported by: Darius Jahandarie.
21026 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21028 * docs/grub.texi (Simple configuration): Document
21029 GRUB_PRELOAD_MODULES.
21031 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21033 * .bzrignore: Remove nonexistent grub-pbkdf2.
21035 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21037 * configure.ac: Bump version to 1.99~rc1.
21039 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21041 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21044 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21046 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21049 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21051 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21053 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21055 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21058 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21060 Fix compilation on cygwin.
21062 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21063 -R .drectve on cygwin.
21064 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21065 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21066 (COND_CYGWIN): New condition.
21067 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21068 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21069 not @TARGET_OBJ2ELF@.
21070 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21071 type to determine whether aux is to be used.
21073 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21075 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21076 realpath'ed device string.
21077 Handle floppy (somewhat).
21078 Issue error in unknown case rather than garbage.
21079 Reported by: Axel Beckert.
21081 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21083 * util/grub.d/00_header.in (load_video): Handle the case when no video
21085 Thanks to: Axel Beckert.
21087 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21089 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21090 variable. Fixes problem on big endian platforms.
21092 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21094 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21095 It doesn't work well there.
21097 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21099 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21101 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21102 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21105 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21107 Use alias->path rather than buggy "canon".
21109 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21110 (ofdisk_hash_add): New argument curcan. All users updated.
21112 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21114 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21116 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21118 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21119 loadmask before doing any calculations. Use correct type for offset.
21120 (grub_linux_load64): Likewise.
21122 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21124 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21126 (console_grub_equivalences_unshift): Likewise.
21127 Reported by: Daniel Dehennin.
21129 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21131 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21132 (set_env_limn_ro): Likewise.
21133 (GRUB_MOD_INIT): Likewise.
21134 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21135 ARRAY_SIZE while on it.
21136 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21137 * grub-core/normal/context.c (grub_env_export): Move from here ...
21138 * grub-core/kern/env.c (grub_env_export): ... here.
21139 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21141 * grub-core/kern/main.c (grub_main): Export root and prefix.
21142 * include/grub/env.h (grub_env_export): Export.
21143 Reported by: Seth Goldberg.
21145 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21147 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21148 Take into account space used by ELF sections and multiboot palette.
21149 Reported by: Grégoire Sutre.
21151 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21155 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21157 Pass more appropriate video id to Linux.
21159 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21160 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21162 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21163 shift params->lfb_size.
21164 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21166 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21168 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21170 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21172 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21173 separator and pass bootpath/devid even if only one of them is available.
21174 Reported by: Seth Goldberg.
21176 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21178 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21179 implementations bug on them.
21181 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21183 (filter_memory_map): Likewise.
21185 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21187 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21188 Reported by: nebuchadnezzar.
21190 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21192 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21193 Reported by: nebuchadnezzar.
21195 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21197 Submenu default support.
21199 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21200 auto_boot. All users updated.
21202 Handle chosen and default with submenus.
21203 (grub_menu_execute_with_fallback): Declared static.
21204 Don't notify failure if autobooted. Upper level does it.
21205 (menuentry_eq): New function.
21206 (get_entry_number): Use menuentry_eq.
21207 (show_menu): New parameter "autobooted". All users updated.
21208 (grub_show_menu): Likewise.
21209 * include/grub/normal.h (grub_show_menu): Likewise.
21210 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21211 (grub_menu_execute_with_fallback): Likewise.
21213 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21215 * util/grub-mklayout.c (usage): Update help text.
21217 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21219 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21221 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21223 * util/grub-menulst2cfg.c (main): Trim the line.
21225 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21227 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21228 (grub_machine_init): Don't check amount of low memory as reportedly
21229 INT 12h can be broken and if low memory is too low we wouldn't have
21230 gotten into grub_machine_init anyway.
21232 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21234 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21235 (grub_machine_mmap_iterate): Take low memory into account
21237 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21239 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21241 Reported by: TiCPU.
21243 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21245 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21248 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21250 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21251 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21253 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21255 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21256 openbsd and netbsd types being in part_bsd module.
21258 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21260 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21261 (_FILE_OFFSET_BITS): Likewise.
21262 Reported by: Seth Goldberg.
21264 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21266 * configure.ac: Check for libdevmapper header.
21268 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21270 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21272 (fzap_lookup): Likewise.
21273 (dnode_get): Likewise.
21274 (make_mdn): Likewise.
21275 (zfs_mount): Likewise.
21276 (fzap_iterate): Use temporary pointer to avoid aliasing.
21277 (grub_zfs_read): Likewise.
21278 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21279 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21280 pointers to avoid aliasing.
21281 (grub_cmd_xnu_kernel64): Likewise.
21282 (grub_xnu_load_driver): Likewise.
21284 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21286 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21288 (grub_cmd_terminal_output): Likewise.
21289 Reported and tested by: Grégoire Sutre.
21291 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21293 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21295 Reported and tested by: Grégoire Sutre.
21297 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21299 * configure.ac: Do CPU substitution even if it's specified explicitly.
21300 Reported and tested by: Alain Greppin.
21302 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21304 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21305 Reported and tested by: Alain Greppin.
21307 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21309 Satisfy some bison versions need for inttypes.h.
21311 * grub-core/lib/posix_wrap/inttypes.h: New file.
21312 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21313 (int16_t): Likewise.
21314 (int32_t): Likewise.
21315 (int64_t): Likewise.
21316 Reported and tested by: Alain Greppin.
21318 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21320 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21321 Silence spurious warning.
21322 Reported and tested by: Alain Greppin.
21324 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21326 * docs/grub.texi (Support automatic decompression): Update with xz
21327 decompression support.
21329 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21331 Improve loaders' kernel command line handling.
21333 * grub-core/lib/cmdline.c: New file.
21334 * include/grub/lib/cmdline.h: Likewise.
21335 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21336 grub_create_loader_cmdline to create kernel command line.
21337 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21338 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21339 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21340 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21341 (linux): Add lib/cmdline.c on common.
21343 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21345 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21346 inopos might be unaligned.
21348 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21350 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21351 endian transformations.
21352 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21353 Based on report by: Doug Nazar.
21355 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21357 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21358 array->members[i].start_sector.
21359 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21361 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21363 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21364 Reported and tested by: Grégoire Sutre.
21366 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21368 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21369 avoid causing test failures by clearing the screen.
21371 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21373 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21374 Fix prefix check to handle the case where dir ends with a slash
21375 (most significantly, "/" itself).
21376 Reported by: Michael Vogt.
21378 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21380 Run terminfo_cls on initing terminfo output to clear the screen and
21381 move the cursor to (0,0).
21383 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21384 Call grub_terminfo_output_init.
21385 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21386 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21387 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21389 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21391 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21394 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21396 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21399 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21401 The E820 type 5 is BADRAM, not EXEC_CODE.
21403 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21404 (GRUB_E820_BADRAM): New define.
21405 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21406 into reserved. Propagate BADRAM.
21407 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21408 (GRUB_E820_BADRAM): New define.
21410 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21412 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21413 Ignore the memory post-4G.
21414 (grub_relocator_firmware_alloc_region): Additional debug statement.
21416 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21418 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21420 Reported by: David Pravec.
21422 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21424 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21427 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21429 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21431 (grub_reed_solomon_recover): Likewise.
21433 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21435 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21437 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21439 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21442 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21444 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21445 descriptions of extract_legacy_entries_source and
21446 extract_legacy_entries_configfile.
21447 Reported by: Seung Soo, Ha.
21449 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21451 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21452 on devices that do not implement function 0.
21454 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21456 * grub-core/fs/hfsplus.c: Make parent unsigned.
21457 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21459 (grub_hfsplus_cmp_extkey): Likewise
21461 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21463 * util/grub-install.in: Correctly use bootloader_id and not
21464 GRUB_DISTRIBUTOR on efibootmgr line.
21466 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21468 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21470 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21472 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21473 Xen and reorder menu item wording to make it clearer that this entry
21474 will launch Xen. Print separate messages when loading Xen and
21477 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21479 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21480 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21481 loop in case of incorrect amiga partmap.
21483 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21485 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21486 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21489 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21491 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21493 Reported by: crocket
21495 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21497 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21499 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21501 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21503 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21505 (grub_cmd_xnu_kextdir): Likewise.
21506 (grub_cmd_xnu_splash): Likewise.
21508 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21510 Avoid using Reed-Solomon with 0 redundancy.
21512 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21513 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21515 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21516 (grub_reed_solomon_recover): Likewise.
21518 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21520 Don't use disk subsystem in freebsd_boot.
21522 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21523 (freebsd_biosdev): Likewise.
21524 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21525 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21527 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21529 Handling of files of unknown size is currently limited. They can't be
21530 used e.g. for initrd or modules. Moreover gzip handling of not
21531 easily seekable files is buggy. Disable unknown file size for now. May
21532 be inefficient but works.
21534 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21535 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21537 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21539 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21542 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21544 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21546 2010-12-25 Shea Levy <shlevy>
21548 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21550 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21552 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21553 Windows Server 2008.
21554 Reported by: Devin Giddings.
21556 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21558 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21559 writing an error message because of async power management.
21560 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21561 (grub_reboot): Likewise.
21563 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21565 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21566 keep unit tests from failing when they shouldn't.
21568 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21570 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21571 previous patch increased the size of the RS code by 20 bytes (at
21572 least with gcc-4.4), so increase this by 20 bytes to match.
21573 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21575 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21577 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21578 scratch area. Make sure to initialise chosen in standalone mode as
21579 well as non-standalone.
21580 Reported by: Robert Hooker and Andy Whitcroft.
21581 Tested by: Andy Whitcroft.
21583 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21585 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21586 constructing a new unescaped string and passing it to grub_xputs in
21587 one go, rather than passing characters to grub_printf one at a time.
21589 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21591 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21592 initialising utf16.
21594 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21596 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21597 comment. Add an extra layer of quotation, requiring the output of
21598 this function to be used in a printf format string.
21599 (gettext_printf): New function.
21600 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21601 Extract translatable strings from here-documents and use a temporary
21602 variable instead, so that xgettext can find them.
21603 * util/grub.d/10_kfreebsd.in: Likewise.
21604 * util/grub.d/10_linux.in: Likewise.
21605 * util/grub.d/20_linux_xen.in: Likewise.
21607 * po/grub.d.sed: New file.
21608 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21609 arguments. Set c-format flags on all strings extracted from
21610 util/grub.d/ (xgettext refuses to include these itself for strings
21611 it extracted from a shell file, but these really are c-format).
21613 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21615 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21616 Avoid next pointing to nowhere.
21618 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21620 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21621 rather than assuming than rootblock is exactly in the middle.
21622 (grub_affs_label): Likewise.
21624 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21626 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21627 reserved_first_sector to 0.
21628 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21629 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21630 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21632 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21634 Fix handling of UTF-16 UDF labels.
21636 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21637 (read_string): .. here.
21638 (grub_udf_label): Use read_string.
21640 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21642 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21643 editor under argument scope.
21644 Reported by: Jordan Uggla
21646 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21648 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21650 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21652 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21653 line, and other keys scroll an entire page (previous handling was
21654 for \r and \n to scroll a page and other keys to scroll two lines).
21656 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21658 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21659 Set ptrdest to correct get_physical_target_address rather than
21660 incorrect get_virtual_current_address.
21662 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21664 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21665 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21667 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21669 * .bzrignore: Ignore grub-core/rs_decoder.S.
21671 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21673 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21674 .mo/.mo.gz opening sequence to ...
21675 (grub_mofile_open_lang): ... here.
21676 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21677 * util/grub.d/00_header.in (grub_lang): Include country part of
21679 Reported by: Mario Limonciello.
21681 2010-12-09 Robert Millan <rmh@gnu.org>
21683 * NEWS: Document addition of ZFS support.
21685 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21687 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21688 rather than `/ 2', as the latter requires -Wa,--divide which would
21689 require bumping our minimum binutils version.
21691 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21693 * util/grub-script-check.c (main): Print script line number on
21696 2010-12-01 Robert Millan <rmh@gnu.org>
21698 * grub-core/fs/zfs/zfs.c: New file.
21699 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21700 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21701 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21702 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21704 * include/grub/zfs/dmu.h: Likewise.
21705 * include/grub/zfs/dmu_objset.h: Likewise.
21706 * include/grub/zfs/dnode.h: Likewise.
21707 * include/grub/zfs/dsl_dataset.h: Likewise.
21708 * include/grub/zfs/dsl_dir.h: Likewise.
21709 * include/grub/zfs/sa_impl.h: Likewise.
21710 * include/grub/zfs/spa.h: Likewise.
21711 * include/grub/zfs/uberblock_impl.h: Likewise.
21712 * include/grub/zfs/vdev_impl.h: Likewise.
21713 * include/grub/zfs/zap_impl.h: Likewise.
21714 * include/grub/zfs/zap_leaf.h: Likewise.
21715 * include/grub/zfs/zfs.h: Likewise.
21716 * include/grub/zfs/zfs_acl.h: Likewise.
21717 * include/grub/zfs/zfs_znode.h: Likewise.
21718 * include/grub/zfs/zil.h: Likewise.
21719 * include/grub/zfs/zio.h: Likewise.
21720 * include/grub/zfs/zio_checksum.h: Likewise.
21722 * Makefile.util.def: Build ZFS into libgrubmods.
21723 * grub-core/Makefile.core.def: Build zfs.mod.
21725 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21727 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21729 * grub-core/commands/wildcard.c (match_files): Likewise.
21731 2010-11-30 Robert Millan <rmh@gnu.org>
21733 * grub-core/loader/i386/bsd.c
21734 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21735 whether kernel is loaded using grub_loader_is_loaded(), rather
21736 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21737 certain error conditions.
21739 2010-11-30 Robert Millan <rmh@gnu.org>
21741 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21742 (grub_cmd_echo): Call grub_refresh() after printing a message.
21744 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21746 Avoid using tricks for initialising endian variables.
21748 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21750 (GRUB_MOD_INIT): Don't byte-swap.
21751 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21752 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21753 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21754 (grub_swap_bytes32_compile_time): Likewise.
21755 (grub_cpu_to_le32_compile_time): Likewise.
21756 (grub_cpu_to_le16_compile_time): Likewise.
21758 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21760 * util/grub-setup.c (setup): Stop recommending --force. People who
21761 understand the dangers of blocklists are able to find this option
21762 anyway and the ones who don't shouldn't use it anyway.
21764 2010-11-26 Robert Millan <rmh@gnu.org>
21766 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21769 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21771 Fix LVM-on-RAID probing.
21773 * util/grub-probe.c (probe): Remember which disk was detected as
21774 RAID (perhaps an LVM physical volume). Use that disk's raidname
21775 rather than that of the top-level disk.
21777 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21779 Fix cmdline argument quotes for setparams command of menuentry
21782 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21783 quotes for arguments.
21784 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21785 grub_strchrsub function instead.
21787 * include/grub/misc.h (grub_strchrsub): New function.
21789 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21791 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21792 effort by skipping "." and ".." entries up-front.
21793 Suggested by: Michael Lazarev.
21795 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21797 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21798 ldflags to ldadd, to fix link line ordering.
21799 (none_decompress): Likewise.
21801 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21803 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21805 (grub-emu-lite): Remove kern/emu/cache.S.
21807 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21809 * util/deviceiter.c (compare_devices): If the by-id link for a
21810 device couldn't be resolved, fall back to sorting by the by-id link
21811 rather than segfaulting.
21812 Reported and tested by: Daniel Mierswa.
21814 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21816 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21817 ldflags, to fix link line ordering.
21819 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21821 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21822 linkers are picky about this.
21824 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21826 * grub-core/Makefile.am (command.lst): Adjust sed expression
21827 ordering so that extended and priority commands aren't treated as
21830 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21832 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21833 Remove byte-swapping function calls, which are not valid in
21834 structure initialisers.
21835 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21837 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21838 grub_gpt_partition_type_bios_boot.
21840 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21842 Fix test program build on GNU/kFreeBSD.
21844 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21845 $(LIBNVPAIR)' library dependencies.
21847 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21849 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21851 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21853 * util/grub-install.in: Remove excessive quoting that broke
21854 installations to RAID devices.
21856 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21858 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21859 bootloader version instead of 0.
21861 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21863 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21866 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21868 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21869 retrieve the metadat sector if size isn't known.
21870 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21872 2010-11-18 Robert Millan <rmh@gnu.org>
21874 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21875 with grub_memcmp().
21877 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21879 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21881 Reported by: Jordan Uggla.
21883 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21885 Make better UTF compliant.
21887 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21888 sequences as incorrect.
21889 (grub_is_valid_utf8): Likewise.
21890 (grub_utf8_to_ucs4): Likewise.
21891 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21892 (grub_ucs4_to_utf8_alloc): Likewise.
21893 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21895 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21897 Make legacy_source behave like source.
21899 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21901 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21903 2010-11-16 Colin Watson <cjwatson@debian.org>
21905 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21906 (-Wunused implies -Wunused-parameter, but not vice versa).
21908 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
21910 * configure.ac: Make error messages less confusing by testing for
21911 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
21912 accepted, but produces a diagnostic if something else is wrong).
21914 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21916 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
21917 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
21919 (grub_keyboard_controller_init)
21920 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
21921 read the initial state since controller isn't inited yet.
21923 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21925 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
21926 allocate_regbeg may need to create new chunk header.
21928 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21930 Fix quoting in legacy parser.
21932 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
21934 (grub_legacy_parse): Likewise.
21935 Reported by: Jordan Uggla.
21936 Tested by: Jordan Uggla.
21938 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21940 Don't add -lgcc on i386 and x86_64.
21942 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
21943 * conf/Makefile.common (LDADD_KERNEL): Likewise.
21944 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
21946 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21948 * configure.ac: Add -Wno-trampolines when supported.
21950 2010-11-14 Modestas Vainius <modax@debian.org>
21952 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
21955 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21957 Add generic logical block size support for UDF.
21959 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
21960 (GRUB_UDF_BLKSZ): Removed.
21961 (struct grub_udf_data): New field "lbshift" to hold the logical block
21962 size of the file system in log2 format. All users updated.
21963 (sblocklist): Change type to unsigned.
21964 (grub_udf_mount): Change type of "sblklist" to unsigned.
21965 Move AVDP search before VRS recognition, because the latter requires
21966 knowledge of the logical block size, which is detected during the
21968 Detect and validate logical block size during AVDP search, adding
21969 support for block sizes 512, 1024 and 4096.
21970 Make VRS recognition independent of block size.
21972 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21974 Properly handle deleted files on UDF.
21976 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
21977 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
21980 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21982 Support reading files larger than 2 GiB.
21984 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
21985 "offset" to grub_off_t.
21986 (grub_udf_read_file): Likewise for parameter "pos".
21988 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21990 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
21992 (Simple configuration): Refer to Changes from GRUB Legacy about
21993 save_env availability.
21995 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21997 * util/grub-install.in: Ignore empty partition table detection
21998 instead of trying to include part_ module.
22000 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22002 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22003 LVM on RAID support.
22005 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22007 Properly define WORDS_BIGENDIAN in wrapped environments.
22009 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22011 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22013 Reported by: Manoel Rebelo Abranches.
22014 Tested by: Manoel Rebelo Abranches.
22016 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22018 * util/grub-mkconfig.in: Fix quoting.
22020 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22022 Support big ext2 files.
22024 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22025 (grub_ext2_read_block): Support triple indirect blocks.
22026 (grub_ext2_read_file): Use 64-bit types and read size_high.
22027 (grub_ext2_open): Read size_high.
22028 Reported by: Ximin Luo.
22029 Tested by: Manoel Rebelo Abranches.
22031 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22033 * util/grub-install.in: Handle filenames containing spaces.
22034 Reported by: Jordan Uggla.
22035 Tested by: Jordan Uggla.
22037 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22039 * util/grub-mkconfig.in (grub_script_check): New variable.
22040 Use grub_script_check instead of grub-script-check.
22041 Reported by: Barry Jackson.
22043 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22045 * docs/grub.texi (menu): Correct the order.
22046 Reported by: D. Hugh Redelmeier.
22048 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22050 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22053 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22055 * include/grub/elfload.h (grub_elf32_size): New parameter.
22057 Return maximum segments alignment.
22058 (grub_elf64_size): Likewise.
22059 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22060 Return maximum segments alignment.
22061 (grub_elf64_size): Likewise.
22062 * grub-core/loader/powerpc/ieee1275/linux.c:
22063 (grub_linux_claimmap_iterate): New function. Uses the
22064 "available" property in the "memory" node for memory allocation
22065 for kernel in the PowerPC loader.
22066 (grub_linux_load32): Correctly find linux entry point offset.
22067 (grub_linux_load64): Likewise.
22069 2010-11-07 Robert Millan <rmh@gnu.org>
22071 On mips-yeeloong, build with -march=loongson2f when this flag is
22072 available (GCC >= 4.4).
22073 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22075 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22076 or otherwise add -march=mips3.
22078 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22080 Suppress shell expansion on echo '*' and echo "*" like cases.
22081 Reported by: Jordan Uggla.
22083 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22084 string arguments before shell expansion.
22085 * tests/grub_cmd_echo.in: New testcases.
22087 2010-11-07 Robert Millan <rmh@gnu.org>
22089 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22092 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22094 * grub-core/kern/emu/hostdisk.c
22095 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22097 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22099 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22100 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22101 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22103 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22105 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22107 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22109 * util/grub-install.in: Replace useless recomendation to pass
22110 --modules with a recomendation to report a bug.
22112 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22114 Properly register serial terminfo.
22115 Reported by: Jordan Uggla
22117 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22119 (grub_serial_terminfo_output_template): Likewise.
22120 (grub_cmd_serial): Register "serial" with terminfo.
22121 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22122 grub_serial_terminfo_output.
22124 2010-11-05 Robert Millan <rmh@gnu.org>
22126 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22129 2010-11-05 Robert Millan <rmh@gnu.org>
22131 On Yeeloong, pass machine type information to Linux.
22133 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22134 (LOONGSON_MACHTYPE): New macro, set to
22135 "machtype=lemote-yeeloong-2f-8.9inches".
22136 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22137 additional argument to Linux.
22139 2010-11-04 Robert Millan <rmh@gnu.org>
22141 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22142 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22143 (its SATA disks are detected as slaveless IDE master drives on
22145 Reported by Carsten Aulbert.
22147 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22149 * util/bin2h.c (main): Fix spelling error in generated output.
22151 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22153 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22155 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22157 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22158 vga= option is supplied.
22160 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22162 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22163 * util/grub.d/10_kfreebsd.in: Likewise.
22164 * util/grub.d/10_linux.in: Likewise.
22165 * util/grub.d/20_linux_xen.in: Likewise.
22167 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22169 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22170 argument as an argument to no-argument option.
22172 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22174 * util/grub.d/10_linux.in: Add missing load_video with explicit
22175 GRUB_GFXPAYLOAD_LINUX.
22177 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22179 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22181 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22183 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22184 elements with invlid index.
22185 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22186 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22188 * include/grub/raid.h (grub_raid_member): New struct.
22189 (grub_raid_array): Transform devices and start_sector into usage of
22190 grub_raid_member. All users updated
22191 (allocated_devs): New member.
22193 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22195 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22198 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22200 NetBSD build fix for getline function conflict from gnulib.
22202 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22203 components that depend on gnulib headers.
22204 (libgrubmods.a): Renamed from earlier libgrub.a.
22205 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22207 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22209 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22210 install rather than creating a broken install.
22212 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22214 * util/grub-setup.c (argp): Remove misleading example of installing to
22217 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22219 * util/grub-setup.c (setup): Clarify the error message.
22221 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22223 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22225 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22227 * grub-core/kern/emu/misc.c
22228 (grub_make_system_path_relative_to_its_root)
22229 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22231 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22233 * grub-core/kern/emu/misc.c
22234 (grub_make_system_path_relative_to_its_root): Revert r2882.
22236 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22238 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22239 useless field head. All users updated.
22240 (free_subchunk): Correct handling of IN_REGION subchunk.
22242 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22244 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22245 (Supported kernels): Likewise.
22247 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22249 Make mktemp invocations portable.
22251 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22252 exit if mktemp fails.
22253 * tests/grub_script_blockarg.in: Likewise.
22254 * tests/partmap_test.in: Likewise.
22255 * tests/util/grub-shell-tester.in: Likewise.
22256 * tests/util/grub-shell.in: Likewise.
22257 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22258 * Makefile.am: Likewise, and chain shell commands with `&&'
22260 * util/grub-mkrescue.in: Use the same explicit template as above, and
22261 exit if mktemp fails.
22263 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22265 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22266 Linux kernel, reported by Dennis Schridde.
22268 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22270 * grub-core/normal/auth.c (grub_auth_check_authentication):
22271 Set-but-not-used variable removed.
22273 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22275 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22276 32-bit linux protocol.
22278 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22280 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22281 cursor shape for sanity.
22283 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22285 * docs/grub.texi (Installation): Document buggy BIOS install.
22287 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22289 * docs/grub.texi (Installation): Indent.
22291 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22293 * util/grub-setup.c (setup): New parameter allow_floppy.
22294 (arguments): New member allow_floppy.
22295 (argp_parser): Handle --allow-floppy.
22296 (main): Pass allow_floppy.
22297 * util/grub-install.in: New option --allow-floppy passed though to
22300 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22302 * util/grub-install.in: Handle partitionless disks.
22304 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22306 * util/grub-setup.c (setup): Don't clean blocklists before readability
22309 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22311 * docs/grub.texi (Installation): Document embedding zone. Remove
22312 obsolete grub-install example.
22314 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22316 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22317 Set-but-not-used variable ifdef'ed.
22318 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22319 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22321 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22322 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22323 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22324 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22325 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22326 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22327 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22328 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22329 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22330 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22331 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22334 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22336 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22337 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22340 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22342 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22343 synonym to _S5_. Needed for some DSDTs.
22345 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22347 Userspace ACPI parser debugging.
22349 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22350 headers and add relevant defines. Don't include standard headers.
22351 (main) [GRUB_DSDT_TEST]: New function.
22352 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22353 Don't declare functions.
22355 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22357 Remove dead grub_efi_mm_fini.
22359 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22360 (ALLOCATED_PAGES_SIZE): Likewise.
22361 (MAX_ALLOCATED_PAGES): Likewise.
22362 (allocated_pages): Likewise.
22363 (grub_efi_allocate_pages): Don't record allocated pages.
22364 (grub_efi_free_pages): Likewise.
22365 (grub_efi_mm_init): Likewise.
22366 (grub_efi_mm_fini): Removed.
22368 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22370 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22371 (grub_efi_mm_init): Take into account the memory map size increase.
22373 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22375 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22376 (serial_hw_put): Wait based on real time rather than port reads. Don't
22378 * include/grub/serial.h (grub_serial_port): New field broken.
22380 2010-10-16 Robert Millan <rmh@gnu.org>
22382 * grub-core/kern/emu/misc.c
22383 (grub_make_system_path_relative_to_its_root): Fix premature return
22384 when processing non-root ZFS filesystems.
22385 Reported by Sergio Talens-Oliag.
22387 2010-10-15 Robert Millan <rmh@gnu.org>
22389 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22390 guarantee compressed ones are processed first.
22392 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22394 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22395 grub_efiemu_autocore.
22397 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22399 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22401 (grub_console_getkey): Use correct jae opcode rather than ja.
22403 2010-10-12 Robert Millan <rmh@gnu.org>
22405 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22406 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22407 variable. All references updated.
22409 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22411 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22413 Correctly distinguish mdraid flavours.
22415 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22416 (insert_array): New argument raid.
22417 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22418 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22419 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22421 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22423 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22424 handling of special keys.
22426 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22428 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22429 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22431 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22433 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22434 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22436 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22437 Use right endpoint when querying descriptor.
22439 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22441 Clear out 0x80 color bit on EFI.
22443 Reported by: decoder and meta tech.
22445 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22446 (grub_console_setcolorstate): Clear out 0x80 bit.
22447 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22448 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22449 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22451 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22453 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22456 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22458 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22459 mo_file after freeing.
22461 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22463 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22465 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22467 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22470 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22472 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22475 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22477 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22479 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22480 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22481 and terminfo.h when needed.
22482 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22483 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22484 (terminfo): Enable only on terminfokernel.
22485 (extcmd): Likewise.
22486 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22487 * include/grub/lib/arg.h: Likewise.
22488 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22489 incorrect usage of ->.
22491 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22493 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22494 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22496 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22498 Fix coreboot compilation.
22500 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22501 Take VBE info into account even if only text is supported.
22502 (fill_vbe_info): Take into account the case when only VGA text
22504 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22505 on coreboot, multiboot and qemu.
22507 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22509 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22511 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22513 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22515 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22518 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22520 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22521 if they were BSD-style.
22523 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22525 * grub-core/boot/i386/pc/lnxboot.S: Replace
22526 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22527 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22529 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22531 Write embedding zone using Reed-Solomon.
22533 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22534 * grub-core/Makefile.am (rs_decoder.S): New target.
22535 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22536 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22537 (multiboot): Move to RS part.
22538 (post_reed_solomon): New label.
22539 (grub_boot_drive): Move to non-RS part since it's modified in memory
22541 Include rs_decoder.S.
22542 * grub-core/lib/reed_solomon.c: New file.
22543 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22545 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22546 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22547 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22548 * include/grub/partition.h (grub_partition_map): Change prototype of
22549 embed to allow returning additional sectors.
22550 * include/grub/reed_solomon.h: New file.
22551 * util/grub-setup.c (setup): Handle Reed-Solomon.
22553 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22555 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22556 i386 and x86-64 definedness tests.
22558 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22560 Fix generation of kernel_syms.lst
22562 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22565 2010-09-26 Robert Millan <rmh@gnu.org>
22567 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22569 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22570 the pool is an array of devices, iterate through it and return the
22571 first device that passes a stat() test (instead of blindly returning
22574 2010-09-26 Robert Millan <rmh@gnu.org>
22576 Build fixes for GNU/kFreeBSD.
22578 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22579 to programs that require ZFS conversion.
22580 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22581 kernels that don't have FLOPPY_MAJOR.
22583 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22585 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22587 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22589 Fix grub-emu build.
22591 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22592 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22593 mdraid09 and mdraid1x.
22595 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22597 Re-enable grub-extras.
22599 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22600 avoid confusing Automake. Run autogen only twice, once for the top
22601 level and once for grub-core. Add Makefile.util.def and
22602 Makefile.core.def from extra modules to the appropriate autogen
22603 invocations. If Makefile.common exists in an extra module, include
22604 it in both Makefile.util.am and grub-core/Makefile.core.am;
22605 similarly, include any Makefile.util.common file in Makefile.util.am
22606 and any Makefile.core.common file in grub-core/Makefile.core.am.
22607 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22608 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22609 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22610 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22612 * gentpl.py (gvar_add): Turn GVARS into a set.
22613 (global_variable_initializers): Sort global variables on output.
22614 (vars_init): New function.
22615 (first_time): Likewise.
22616 (library): Ensure that non-global variable initialisations are
22617 emitted before the first time we emit code for a library block.
22618 Append to variables rather than setting them. Only emit
22619 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22620 each conditional path.
22621 (program): installdir() emits an Autogen macro, so must be passed to
22622 var_add rather than gvar_add.
22624 (script): Likewise.
22625 (rules): New function, centralising handling for different target
22626 types. Set up Guile association lists for first_time and vars_init,
22627 and send most output to a diversion so that variable initialisations
22628 can be emitted first.
22629 (module_rules): Use new rules function.
22630 (kernel_rules): Likewise.
22631 (image_rules): Likewise.
22632 (library_rules): Likewise.
22633 (program_rules): Likewise.
22634 (script_rules): Likewise.
22635 (data_rules): Likewise.
22637 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22639 * .bzrignore: Add contrib and grub-core/contrib. Remove
22640 grub-core/Makefile.gcry.am.
22642 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22644 * grub-core/lib/LzFind.c: Add missing include.
22645 * grub-core/lib/LzmaEnc.c: Likewise.
22646 * grub-core/script/lexer.c: Likewise.
22647 * grub-core/script/yylex.l: Likewise.
22648 * util/grub-macho2img.c: Likewise.
22649 * util/grub-menulst2cfg.c: Likewise.
22650 * util/grub-mklayout.c: Likewise.
22651 * util/grub-mkpasswd-pbkdf2.c
22652 * util/grub-mkrelpath.c: Likewise.
22653 * util/resolve.c: Likewise.
22655 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22657 * Makefile.util.def (example_unit_test): Add
22658 grub-core/gnulib/libgnu.a.
22660 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22662 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22664 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22666 Support xz compression on yeeloong.
22668 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22669 * configure.ac: Check for LZMA.
22670 * grub-core/Makefile.core.def (xz_decompress): New target.
22671 (none_decompress): Likewise.
22672 * grub-core/boot/decompressor/minilib.c: New file.
22673 * grub-core/boot/decompressor/none.c: Likewise.
22674 * grub-core/boot/decompressor/xz.c: Likewise.
22675 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22676 * grub-core/kern/mips/cache_flush.S: Likewise.
22677 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22678 * grub-core/kern/mips/startup.S: Move first stage to ...
22679 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22681 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22682 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22683 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22684 Allocate statically.
22685 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22686 Allocate statically or use scratch. Don't check CRC32.
22687 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22688 Allocate statically. Don't check CRC32.
22689 * include/grub/decompressor.h: New file.
22690 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22692 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22693 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22694 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22695 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22696 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22697 * util/grub-mkimage.c (grub_compression_t): New type.
22698 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22699 (image_target_desc): New field default_compression.
22700 (image_targets): Adjust yeeloong targets.
22701 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22702 (compress_kernel): New parameter comp.
22703 (generate_image): Likewise. Handle new compression case.
22704 (options): New option --compression
22706 (main): Handle new option.
22708 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22710 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22712 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22714 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22715 typo in __i386__ conditional.
22717 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22719 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22722 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22724 Implement EFI and ACPI multiboot2 extensions.
22726 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22727 new tags as supported.
22728 (acpiv2_size): New function.
22729 (grub_multiboot_get_mbi_size): Take new tags into account.
22730 (grub_multiboot_make_mbi): Add new tags.
22731 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22733 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22735 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22736 Added missing configuration of USB device.
22738 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22740 * grub-core/normal/menu_entry.c (run): Make sure we always return
22743 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22745 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22746 NumberOfPages is UINT64 according to the UEFI specification, not
22747 UINTN. Fix printf format.
22749 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22751 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22752 `err' to grub_usb_err_t.
22753 Reported and tested by: KESHAV P.R.
22755 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22757 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22758 tpart non-const, so that we can assign to it. (Since this is a
22759 typedef, the constness refers to the pointer rather than what it
22762 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22764 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22765 $(top_srcdir)/grub-core/gnulib as well as
22766 $(top_builddir)/grub-core/gnulib.
22767 Reported by: KESHAV P.R.
22769 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22771 * util/grub-install.in: Fix the bootloader ID option to be
22772 consistently --bootloader-id, not --bootloader_id.
22773 Reported by: KESHAV P.R.
22775 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22777 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22778 check hash checksum." consistently translatable.
22780 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22782 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22785 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22787 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22788 (GRUB_MOD_INIT): Register sha1sum command.
22789 (GRUB_MOD_FINI): Unregister sha1sum command.
22791 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22793 Keep boot and grub directory names in sync with utils scripts
22795 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22796 * config.h.in: Add previous macros.
22797 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22798 * util/grub-install.in: Use $bootdir and $grubdir variables.
22800 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22802 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22803 convert partition names to disk names if the new `convert' parameter
22805 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22806 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22807 disk in its own right. This can happen with Xen disk images.
22809 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22811 * util/grub-editenv.c: Update strings to avoid warnings when generating
22813 * util/grub-setup.c: Likewise.
22815 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22817 * configure.ac: Change version to 1.99~beta0.
22819 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22821 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22823 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22825 * include/multiboot.h: Resynced with specification.
22826 * include/multiboot2.h: Likewise.
22828 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22830 Fix po directory handling.
22832 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22833 * grub-core/gnulib/Makefile.am: Import gettext module.
22834 * m4/gnulib-cache.m4: Likewise.
22835 * m4/gnulib-comp.m4: Likewise.
22836 * m4/gettext.m4: New file, from gnulib.
22837 * m4/glibc2.m4: Likewise.
22838 * m4/iconv.m4: Likewise.
22839 * m4/intdiv0.m4: Likewise.
22840 * m4/intl.m4: Likewise.
22841 * m4/intldir.m4: Likewise.
22842 * m4/intlmacosx.m4: Likewise.
22843 * m4/intmax.m4: Likewise.
22844 * m4/inttypes-pri.m4: Likewise.
22845 * m4/lcmessage.m4: Likewise.
22846 * m4/lib-ld.m4: Likewise.
22847 * m4/lib-link.m4: Likewise.
22848 * m4/lib-prefix.m4: Likewise.
22849 * m4/lock.m4: Likewise.
22850 * m4/nls.m4: Likewise.
22851 * m4/po.m4: Likewise.
22852 * m4/printf-posix.m4: Likewise.
22853 * m4/progtest.m4: Likewise.
22854 * m4/threadlib.m4: Likewise.
22855 * m4/uintmax_t.m4: Likewise.
22856 * m4/visibility.m4: Likewise.
22857 * po/Makefile.am: Remove.
22858 * po/Makefile.in.in: New file, from gettext.
22859 ($(DOMAIN).pot-update): Support POTFILES-shell.
22860 * po/Makevars: New file.
22861 * po/POTFILES-shell: Rename to ...
22862 * po/POTFILES-shell.in: ... this. Update.
22863 * po/POTFILES: Rename to ...
22864 * po/POTFILES.in: ... this. Update.
22865 * po/Rules-quot: New file, from gettext.
22866 * po/boldquot.sed: Likewise.
22867 * po/en@boldquot.header: Likewise.
22868 * po/en@quot.header: Likewise.
22869 * po/insert-header.sin: Likewise.
22870 * po/quot.sed: Likewise.
22871 * po/remove-potcdate.sin: Likewise.
22873 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22875 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22877 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22879 * util/grub.d/20_linux_xen.in: Use submenus.
22881 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22885 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22886 parameter submenu. All users updated.
22887 * grub-core/normal/main.c (free_menu): Rename to ...
22888 (grub_normal_free_menu): ... this. Made global.
22889 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22891 * grub-core/normal/menu_entry.c (screen): New field submenu.
22892 (make_screen): Set submenu.
22893 (run): Open new context if requested.
22894 * include/grub/menu.h (grub_menu_entry): New field submenu.
22895 * include/grub/normal.h (grub_normal_free_menu): New proto.
22897 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22899 Menu entries extractor.
22901 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22903 (GRUB_MOD_INIT): Register new variants.
22904 (GRUB_MOD_FINI): Unregister new variants.
22905 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22906 into grub_cmd_legacy_source.
22907 (grub_cmd_legacy_source): Implement extractor variants.
22908 (GRUB_MOD_INIT): Register new variants.
22909 (GRUB_MOD_FINI): Unregister new variants.
22910 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
22912 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
22913 search as an extractor.
22914 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
22915 test as an extractor.
22916 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
22918 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
22919 (grub_env_new_context): New function.
22920 (grub_env_context_open): Likewise.
22921 (grub_env_extractor_open): Likewise.
22922 (grub_env_extractor_close): Likewise.
22923 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22924 grub_extractor_level.
22925 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
22926 * include/grub/env.h (grub_env_extractor_open): New proto.
22927 (grub_env_extractor_close): Likewise.
22928 * include/grub/normal.h (grub_extractor_level): New external variable.
22930 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22932 Make cutmem accept a region specification.
22933 Suggested by: Samuel Thibault
22935 * grub-core/mmap/mmap.c (parsemem): New function.
22936 (grub_cmd_cutmem): Handle new arguments.
22938 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22940 New command cutmem.
22942 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
22943 (GRUB_MOD_INIT): Register new command.
22944 (GRUB_MOD_FINI): Unregister new command.
22946 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22948 Support some annoying BSD and Minix subpartitions.
22950 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
22951 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
22952 Properly handle concatenation.
22953 * grub-core/kern/device.c (grub_device_iterate): Likewise.
22954 * grub-core/normal/completion.c (iterate_partition): Likewise.
22955 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
22956 contain partition. All users updated.
22957 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
22959 (grub_openbsdlabel_partition_map): Likewise.
22960 (bsdlabel_partition_map_iterate): Rename to ..
22961 (iterate_real): ... this. New arguments sector, freebsd and pmap.
22962 (bsdlabel_partition_map_iterate): New function.
22963 (netopenbsdlabel_partition_map_iterate): Likewise.
22964 (netbsdlabel_partition_map_iterate): Likewise.
22965 (openbsdlabel_partition_map_iterate): Likewise.
22966 (GRUB_MOD_INIT): Register new partmaps.
22967 (GRUB_MOD_FINI): Unregister new partmaps.
22968 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
22969 (grub_partition_msdos_iterate): ... this. All users updated.
22970 Don't support embedding other than in a minix partition.
22971 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
22973 * include/grub/partition.h (grub_partition): New field msdostype.
22974 * util/grub-install.in: Handle openbsd and netbsd types being in
22977 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22979 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
22981 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
22982 * grub-core/Makefile.core.def (mdraid): Renamed to ...
22983 (mdraid09): ... this.
22984 (mdraid1x): New module.
22985 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
22986 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
22988 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22990 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
22993 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22995 * grub-core/commands/efi/lsefimmap.c: Correct header.
22998 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23000 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23001 as printf format strings; the translations might contain '%' which
23002 could cause a crash.
23004 * util/grub-fstest.c (argp_parser): Likewise.
23005 * util/grub-setup.c (argp_parser): Likewise.
23008 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23010 Use argp in grub-fstest.
23012 * util/grub-fstest.c: Don't include getopt.h.
23014 (root): New variable.
23015 (args_count): Likewise.
23017 (num_disks): Likewise.
23018 (images): Likewise.
23020 (debug_str): Likewise.
23022 (options): Transformed to argp.
23024 (main): Split argument parsing into ...
23025 (argp_parser): ... this. Changed to argp format.
23026 (argp): New variable.
23027 (main): Use argp_parse.
23029 2010-09-20 Tristan Gingold <gingold@free.fr>
23030 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23031 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23033 * grub-core/commands/efi/lsefimmap.c: New file.
23034 * grub-core/Makefile.core.def (lsefimmap): New module.
23035 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23037 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23039 Pause the execution (10s max) if any errors are displayed so the user
23040 has a chance to see them.
23042 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23043 (grub_print_error): Increment grub_err_printed_errors.
23044 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23045 execution if any errors were displayed.
23046 (show_menu): Remove old code for pause.
23047 * grub-core/normal/menu_entry.c (run): Likewise.
23048 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23050 (grub_normal_get_char_counter): Likewise.
23051 * include/grub/err.h (grub_err_printed_errors): New external variable.
23052 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23054 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23056 Support multiboot VBE info.
23058 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23059 Take VBE info into account.
23060 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23061 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23062 Call fill_vbe_info when appropriate.
23063 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23064 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23066 (grub_multiboot_get_mbi_size): Take new tags into account.
23067 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23068 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23069 Call fill_vbe_tag when appropriate.
23070 (grub_multiboot_make_mbi): Properly align tags.
23071 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23073 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23075 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23077 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23079 Suport manual terminal geometry specification.
23081 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23082 Save state in grub_ofconsole_terminfo_output.
23083 (grub_ofconsole_term): Use grub_terminfo_getwh.
23084 (grub_ofconsole_getwh): Removed.
23085 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23086 (grub_serial_term): Use grub_terminfo_getwh.
23087 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23088 (options): New struct.
23089 (OPTION_*): New enum.
23090 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23091 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23093 (grub_terminfo_getwh): New proto.
23094 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23096 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23098 Handle legacy "terminal" command.
23100 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23102 (legacy_commands): Add terminal and title.
23103 (grub_legacy_parse): Handle terminal. Simplify title handling.
23105 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23107 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23108 parameters overflow.
23110 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23112 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23115 * docs/grub.texi (Shell-like scripting): Document `!'.
23116 (Network): Simplify using new i386-pc-pxe format. Mention
23121 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23123 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23124 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23127 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23129 * grub-core/commands/efi/lsefisystab.c: Correct header.
23130 * grub-core/commands/efi/lssal.c: Likewise.
23131 * grub-core/commands/testload.c: Likewise.
23133 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23135 * util/grub-mkrescue.in: Add explicit root argument to --set to
23136 prevent the UUID being interpreted as an argument to --set (matches
23137 previous change to prepare_grub_to_access_device).
23139 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23141 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23142 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23143 the verbosity of later #ifs.
23144 (find_partition_start): Define this function on FreeBSD too.
23145 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23147 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23150 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23152 * util/grub-editenv.c: Use argp instead of getopt.
23154 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23156 * util/grub-setup.c: Use argp instead of getopt.
23158 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23160 Use gnulib-tool to create gnulib source files.
23162 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23163 grub-core/gnulib directories
23164 * .bzignore: Add **/.deps and autogenerated gnulib files
23165 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23166 of gnulib macros, add grub-core/gnulib/Makefile
23167 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23168 include m4 directory to aclocal.
23169 * Makefile.util.def: Remove direct compilation of gnulib source files
23170 and use the new grub-core/gnulib/libgnu.a.
23171 * build-aux/config.rpath: move config.rpath from top directory to
23173 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23175 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23176 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23177 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23179 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23182 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23184 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23185 grub-core/genmod.sh and grub-core/gensyminfo.sh
23187 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23189 Add a test for echo command options.
23191 * tests/grub_cmd_echo.in: New test.
23192 * Makefile.util.def: Rules for new test.
23194 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23196 Remove crc.mod and move crc command to hashsum.mod.
23197 Remove lib/crc.c - users updated to use gcrypt implementation.
23199 * grub-core/commands/crc.c: Removed.
23200 * grub-core/Makefile.core.def (crc): Module removed.
23201 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23202 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23203 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23204 * grub-core/lib/crc.c: Removed.
23205 * include/grub/lib/crc.h: Removed.
23206 * Makefile.util.def (crc): Remove lib/crc.c
23207 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23208 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23209 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23210 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23211 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23212 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23214 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23216 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23218 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23220 Split config.h for util and core.
23222 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23223 (ADDR32): Likewise.
23224 (DATA32): Likewise.
23225 (BSS_START_SYMBOL): Likewise.
23226 (END_SYMBOL): Likewise.
23227 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23228 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23229 * config.h.in: New file.
23230 * configure.ac: Use config-util.h as config define file.
23231 Rename MACHINE into GRUB_MACHINE. All users updated.
23232 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23234 (NESTED_FUNC_ATTR): Likewise.
23235 Substitue new variables.
23236 (COND_HAVE_ASM_USCORE): New conditional.
23237 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23238 (kernel_syms.lst): Use ASM_PREFIX.
23239 * grub-core/kern/emu/console.c: Include config-util.h.
23240 * grub-core/kern/emu/misc.c: Likewise.
23241 * grub-core/kern/emu/mm.c: Likewise.
23242 * include/grub/emu/misc.h: Likewise.
23243 * include/grub/libgcc.h: Likewise.
23245 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23247 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23249 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23250 Fix GRUB_TERM_KEY_* constants usage.
23251 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23253 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23255 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23257 * grub-core/bus/usb/uhci.c: Remove empty define.
23258 (grub_uhci_check_transfer): Add missing cast.
23259 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23261 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23263 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23265 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23267 * grub-core/Makefile.core.def (legacycfg): Add
23268 lib/i386/pc/vesa_modes_table.c on emu.
23270 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23272 Reduce number of temporary files generated by build system.
23274 * grub-core/gencmdlist.sh: Removed.
23275 * grub-core/genfslist.sh: Removed.
23276 * grub-core/genhandlerlist.sh: Removed.
23277 * grub-core/genmodsrc.sh: Removed.
23278 * grub-core/genpartmaplist.sh: Removed.
23279 * grub-core/genparttoollist.sh: Removed.
23280 * grub-core/gentermiinallist.sh: Removed.
23281 * grub-core/genvideolist.sh: Removed.
23283 * grub-core/genmod.sh.in: New file.
23284 * grub-core/gensyminfo.sh.in: New file.
23286 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23287 * conf/Makefile.extra-dist: Update with new files.
23288 * gentpl.py: Remove rules related to unnecessary temporary files.
23289 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23291 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23293 * grub-core/bus/usb/uhci.c: Remove empty #define.
23294 * grub-core/genmoddep.awk: Updated with new syminfo format.
23295 * util/bash-completion.d/Makefile.am: Add config.log to
23298 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23300 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23302 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23304 * util/grub-mkconfig.in: Check the config script for syntax errors
23307 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23308 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23310 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23312 * util/grub-install.in: Add EFI and IEEE1275 support.
23313 * util/i386/efi/grub-install.in: Removed.
23314 * util/ieee1275/grub-install.in: Likewise.
23316 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23318 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23319 (grub_cmd_cmosclean): Likewise.
23320 (GRUB_MOD_INIT): Register command cmosclean.
23321 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23322 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23324 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23325 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23326 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23328 Add keyboard layouts support.
23330 * Makefile.util.def (grub-mklayout): New file.
23331 (grub-kbdcomp): New script.
23332 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23333 Add keyboard_layouts.h.
23334 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23335 commands/boot.c on yeeloong.
23336 (keylayouts): New module.
23337 * grub-core/bus/usb/ohci.c
23338 * grub-core/bus/usb/uhci.c
23339 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23340 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23341 (attach_root_port): Likewise.
23342 (poll_nonroot_hub): Likewise.
23343 (grub_usb_poll_devices): Likewise.
23344 (detach_device): Close transfer.
23345 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23347 (grub_usb_bulk_setup_readwrite): Likewise.
23348 (grub_usb_bulk_finish_readwrite): Likewise.
23349 * grub-core/commands/keylayouts.c: New file.
23350 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23351 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23353 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23354 support scancode 2.
23355 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23356 * include/grub/keyboard_layouts.h: New file.
23357 * util/grub-mklayout.c: New file.
23358 * util/grub-kbdcomp.in: Likewise.
23360 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23362 Unify memory types.
23364 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23365 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23367 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23368 (grub_upper_mem): Likewise.
23369 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23370 * include/grub/memory.h (grub_memory_type_t): New enum.
23373 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23375 * grub-core/Makefile.core.def (lsapm): New module.
23376 * grub-core/commands/i386/pc/lsapm.c: New file.
23377 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23378 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23380 * include/grub/i386/pc/apm.h: New file.
23381 * include/multiboot.h (multiboot_apm_info): New struct.
23383 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23385 GRUB-legacy configuration file support.
23387 * Makefile.util.def (grub-menulst2cfg): New util.
23388 * docs/man/grub-menulst2cfg.h2m: New file.
23389 * grub-core/Makefile.core.def (legacycfg): New module.
23390 * grub-core/commands/legacycfg.c: New file.
23391 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23392 (grub_normal_add_menu_entry): ... this.
23393 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23394 (grub_normal_set_password): ...this.
23395 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23396 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23397 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23398 * grub-core/lib/legacy_parse.c: New file.
23399 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23400 * include/grub/i386/pc/vesa_modes_table.h: New file.
23401 * include/grub/legacy_parse.h: Likewise.
23402 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23403 * util/grub-menulst2cfg.c: New file.
23405 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23407 * grub-core/kern/emu/hostdisk.c
23408 (convert_system_partition_to_system_disk): Initialise node.
23410 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23412 * grub-core/kern/emu/hostdisk.c
23413 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23415 Reported and based on patch by: Modestas Vainius.
23417 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23419 Fix DM-RAID probing with recent versions of device-mapper udev
23422 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23423 canonicalise device paths under /dev/mapper/.
23424 (convert_system_partition_to_system_disk): Compare the
23425 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23426 path, since device nodes under /dev/mapper/ are often symlinks.
23428 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23430 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23432 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23434 * configure.ac: Avoid some annoying error messages if freetype-config
23435 program is not found.
23437 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23439 Support RAID on virtio devices, and others.
23441 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23443 [__MINGW32__] (grub_find_device): ... this.
23444 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23445 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23446 reasonable default if dir is NULL.
23447 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23449 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23450 (grub_guess_root_device): Update callers.
23451 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23453 * util/raid.c (grub_util_getdiskname): Remove.
23454 (grub_util_raid_getmembers): Use grub_find_device rather than
23455 grub_util_getdiskname.
23457 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23459 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23460 needing to be compiled with serial support.
23461 (ls): Indicate that multiple files are accepted.
23462 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23463 indicate that multiple files are accepted.
23465 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23467 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23468 libgrub_a_init.c, and util/bash-completion.d/grub.
23470 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23472 * util/grub-setup.c (setup): Fix incorrect container semantics.
23474 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23476 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23478 Reported by: J. Nick Terry
23480 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23482 Move embedding routines to partmap sources files.
23484 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23485 [GRUB_UTIL]: New variable.
23486 (gpt_partition_map_iterate): Set part.parent.
23487 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23488 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23489 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23491 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23492 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23493 (grub_partition_map) [GRUB_UTIL]: New field embed.
23494 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23495 (setup): Use ->embed.
23497 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23499 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23501 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23502 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23504 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23506 Add function to get completions from usage.
23508 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23509 completions from usage. Use LC_ALL=C to get options properly.
23511 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23513 * grub-core/gnulib/basename-lgpl.c: Imported.
23514 * grub-core/gnulib/basename.c: Likewise.
23515 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23516 * grub-core/gnulib/dirname.c: Likewise.
23517 * grub-core/gnulib/dirname.h: Likewise.
23518 * grub-core/gnulib/stripslash.c: Likewise.
23520 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23522 * grub-core/gnulib/error.c: Resynced.
23523 * grub-core/gnulib/getopt.c: Likewise.
23524 * grub-core/gnulib/getopt_int.h: Likewise.
23525 * grub-core/gnulib/regex.h: Likewise.
23526 * grub-core/gnulib/regex_internal.c: Likewise.
23527 * grub-core/gnulib/regex_internal.h: Likewise.
23529 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23531 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23532 CRC calculations and validity checks.
23533 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23536 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23538 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23540 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23542 Fix incorrect echo options handling.
23543 Reported by: Yves Blusseau.
23545 * include/grub/command.h (grub_command_flags_t): New flags
23546 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23547 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23548 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23550 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23552 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23554 (GRUB_COMMAND_FLAG_MENU): Likewise.
23555 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23556 (GRUB_COMMAND_FLAG_TITLE): Removed.
23557 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23558 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23559 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23560 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23561 (grub_command_flags_t): New enum. All users updated.
23563 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23565 Fix solaris compilation.
23567 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23568 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23569 (grub-emu-list): Likewise.
23571 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23573 Remove deprecated root command.
23575 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23578 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23580 * util/i386/pc/grub-setup.c: Merge this ...
23581 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23582 * util/grub-setup.c: ... into this.
23583 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23586 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23588 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23591 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23593 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23596 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23598 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23599 explicit root argument to set to prevent UUID to be interpreted as
23602 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23604 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23606 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23608 Don't export grub_gate_a20.
23610 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23611 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23613 (grub_gate_a20): ... this. All users updated.
23614 * include/grub/i386/pc/init.h: Removed. All users updated.
23616 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23618 Create euro.pf2 which supports most European languages.
23620 * Makefile.am (grubdata_DATA): Add euro.pf2.
23621 (euro.pf2): New target.
23622 (CLEANFILES): Add euro.pf2.
23624 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23626 * configure.ac: Disable emu-usb by default to prevent inadvertent
23629 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23631 Disable usbserial on grub-emu since our libusb code isn't good enough
23634 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23635 (usbserial_pl2303): Likewise.
23636 (usbserial_ftdi): Likewise.
23638 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23640 * include/grub/disk.h (grub_disk): Remove has_partitions.
23642 * disk/loopback.c (grub_loopback): Remove has_partitions.
23644 (options): Remove partitions. All users updated.
23645 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23646 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23647 actual partition table is found.
23649 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23651 Remove readability checks (too many false negatives).
23653 * util/grub-install.in: Remove readability checks.
23654 * util/grub-mkconfig.in: Likewise.
23655 * util/grub.d/10_hurd.in: Likewise.
23656 * util/grub.d/10_kfreebsd.in: Likewise.
23657 * util/grub.d/10_linux.in: Likewise.
23658 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23661 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23663 Enable acpi shutdown on all ACPI platforms.
23665 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23666 on coreboo, multiboot and EFI.
23667 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23668 (grub_acpi_halt): Likewise.
23669 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23670 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23671 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23672 * grub-core/lib/i386/halt.c (grub_halt)
23673 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23675 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23677 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23680 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23682 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23683 * grub-core/video/efi_uga.c: Likewise.
23685 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23687 Filter devaliases and never open same device twice.
23689 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23690 (last_ihandle): Likewise.
23691 (ofdisk_hash_ent): New member shortest.
23692 (ofdisk_hash_add): Add canonical path too.
23693 (scan): New function.
23694 (grub_ofdisk_iterate): Iterate over hashed entries.
23695 (compute_dev_path): Don't add :0.
23696 (grub_ofdisk_open): Don't really open the disk.
23697 (grub_ofdisk_close): Avoid closing unrelated disk.
23698 (grub_ofdisk_read): Implement reopen logic.
23699 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23701 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23704 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23708 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23709 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23710 right address. Add sparc64_ieee1275_ldflags.
23711 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23712 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23713 to grub_host_to_target_addr
23714 (load_image): Likewise.
23716 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23718 * grub-core/normal/completion.c (complete_file): Handle device
23720 Fix based on patch by Doug Nazar.
23722 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23724 grub-mknetdir script.
23726 * Makefile.util.def (grub-mknetdir): New module.
23727 * tests/util/grub-shell.in: Support boot=net
23728 * util/grub-mknetdir.in: New file.
23730 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23732 videoinfo on non-vbe.
23734 * grub-core/Makefile.core.def (vbeinfo): Removed.
23735 (vbetest): Removed.
23736 (videoinfo): New module.
23737 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23738 * grub-core/commands/i386/pc/vbetest.c: Removed.
23739 * grub-core/commands/videoinfo.c: New file.
23740 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23742 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23744 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23745 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23746 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23747 mode_number. New parameter mode. All users updated.
23748 (grub_video_gop_iterate): New function.
23749 (grub_video_efi_gop): New member iterate.
23750 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23751 (grub_vbe_set_video_mode): Remove setting useless fields.
23752 (vbe2videoinfo): New function.
23753 (grub_video_vbe_iterate): Likewise.
23754 (grub_video_vbe_setup): Use vbe2videoinfo.
23755 (grub_video_vbe_print_adapter_specific_info): New function.
23756 (grub_video_vbe_adapter): New fields iterate and
23757 print_adapter_specific_info.
23758 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23760 (grub_video_mode_info): New field mode_number.
23761 (grub_video_adapter): New fields iterate and
23762 print_adapter_specific_info.
23764 2010-09-13 Tristan Gingold <gingold@free.fr>
23765 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23766 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23768 * grub-core/commands/efi/lsefisystab.c: New file.
23769 * grub-core/commands/efi/lssal.c: Likewise.
23770 * grub-core/Makefile.core.def (lsacpi): New module.
23771 (lsefisystab): Likewise.
23772 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23773 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23774 (grub_efi_sal_system_table): New struct.
23775 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23776 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23777 (grub_efi_sal_system_table_platform_features): Likewise.
23778 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23779 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23780 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23781 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23783 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23785 Support explicit user claim that a device is BIOS-visible.
23787 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23788 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23789 * grub-core/kern/emu/hostdisk.c
23790 (convert_system_partition_to_system_disk): Support mdX.
23791 (find_system_device): New parameter add. All users updated.
23792 (grub_util_biosdisk_is_present): New function.
23793 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23796 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23798 Search hints support.
23800 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23803 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23805 Bash completion script for util commands
23807 * Makefile.am: Add util/bash-completion.d directory
23808 * configure.ac: Likewise.
23809 * util/bash-completion.d/Makefile.am: New file.
23810 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23812 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23814 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23815 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23816 Reported by: Yves Blusseau.
23818 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23820 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23821 partition size and offset.
23823 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23825 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23827 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23829 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23831 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23833 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23834 (grub_xvasprintf): Likewise.
23836 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23838 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23840 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23842 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23843 args ending with NULL.
23845 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23847 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23850 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23852 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23854 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23856 Shutdown using ACPI.
23858 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23859 * grub-core/commands/acpihalt.c: New file.
23860 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23861 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23862 (grub_acpi_halt): New proto.
23863 (GRUB_ACPI_SLP_EN): New const.
23864 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23865 (GRUB_ACPI_OPCODE_*): New enum.
23866 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23868 2010-09-11 Tristan Gingold <gingold@free.fr>
23869 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
23870 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23872 * commands/lsacpi.c: New file.
23873 * grub-core/Makefile.core.def (lsacpi): New module.
23874 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23875 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23876 (grub_acpi_madt_entry_header): New struct.
23877 (grub_acpi_madt): Likewise.
23878 (grub_acpi_madt_entry_interrupt_override): Likewise.
23879 (grub_acpi_madt_entry_sapic): Likewise.
23880 (grub_acpi_madt_entry_lsapic): Likewise.
23881 (grub_acpi_madt_entry_platform_int_source): Likewise.
23882 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23883 (PRIuGRUB_UINT32_T): Likewise.
23884 (PRIxGRUB_UINT64_T): Likewise.
23886 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23888 Implement loading palette on ieee1275_fb.
23890 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23891 (have_setcolors): Likewise.
23892 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23893 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23894 (grub_video_ieee1275_set_palette): Implement.
23896 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23897 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
23899 * util/grub-install.in (grub_partition): New variable.
23900 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23901 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23902 Fixes a bug reported by Yves Blusseau.
23904 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23908 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23909 =grub_cpu_flush_cache on all mips and not only yeeloong.
23910 * configure.ac (COND_mips): New conditional.
23911 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
23913 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
23914 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
23915 [GRUB_LINKER_HAVE_INIT]: New function.
23916 (grub_emu_post_init): Likewise.
23917 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
23918 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
23919 * include/grub/cache.h (_mips): Include mips/cache.h.
23920 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
23921 LVM and RAID prototypes.
23922 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
23923 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
23926 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23928 * util/grub-install.in: Don't try to verify core.img until after
23929 running grub-mkimage to create it.
23931 2010-09-10 Robert Millan <rmh@gnu.org>
23933 * util/grub.d/10_hurd.in: Add misc readability checks.
23934 * util/grub.d/10_kfreebsd.in: Likewise.
23935 * util/grub.d/10_linux.in: Likewise.
23937 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23939 * util/grub-install.in: ${imgext} won't be defined here until the
23940 install branch is merged. For the meantime, only verify core.img on
23941 i386-pc and sparc64-ieee1275 platforms.
23943 2010-09-10 Robert Millan <rmh@gnu.org>
23945 Solaris support in grub_find_zpool_from_dir(). Thanks
23946 Seth Goldberg for referring to getextmntent() facility.
23948 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
23950 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
23952 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
23953 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
23954 method for finding zpool name.
23956 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23958 grub-fstest needs the host and hostfs modules while other utilities
23959 actively require those modules to be absent, so grub-fstest needs
23960 its own initialisation and finalisation code.
23962 * Makefile.am (grub_fstest.pp): New target.
23963 (grub_fstest_init.lst): Likewise.
23964 (grub_fstest_init.c): Likewise.
23965 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
23967 2010-09-10 Robert Millan <rmh@gnu.org>
23969 * configure.ac: Check for `struct statfs.f_fstypename' and
23970 `struct statfs.f_mntfromname'.
23972 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
23973 kFreeBSD-specific code.
23975 2010-09-10 Robert Millan <rmh@gnu.org>
23977 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
23978 on ZFS. Now non-main filesystems are supported as / too.
23980 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
23982 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
23983 and grub-core/disk/host.c to ...
23984 (grub-fstest): ... here. Having the host disk implementation
23985 present confuses grub-probe and other utility programs.
23987 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
23988 when writing to a file, not when writing to stdout.
23990 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
23992 * tests/partmap_test.in: New test for partitions.
23993 * Makefile.util.def: Rules for new test.
23995 2010-09-09 Robert Millan <rmh@gnu.org>
23997 * util/grub-probe.c (probe): Fix a pair of unhandled error
24000 2010-09-09 Robert Millan <rmh@gnu.org>
24002 Basic Btrfs support (detection and UUID).
24004 * grub-core/fs/btrfs.c: New file.
24005 * Makefile.util.def (library): Register btrfs.c.
24006 * grub-core/Makefile.core.def: Likewise.
24008 2010-09-08 Robert Millan <rmh@gnu.org>
24010 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24011 with (optional) parameters to specify device and relative path.
24012 * util/grub-install.in: Use is_path_readable_by_grub() to
24013 verify readability of a few critical files.
24014 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24015 verify readability of grub.cfg.new.
24017 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24019 Split minix.mod into minix.mod and minix2.mod.
24021 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24022 * grub-core/Makefile.core.def (minix2): New module.
24023 * grub-core/fs/minix.c: Use definitions instead of runtime version
24025 * grub-core/fs/minix2.c: New file.
24027 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24029 Add new --boot-directory option to replace --root-directory
24031 * util/grub-install.in: Add new --boot-directory option
24032 * util/grub-reboot.in: Likewise.
24033 * util/grub-set-default.in: Likewise.
24035 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24037 * util/grub-mkconfig.in: Use new variable.
24039 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24041 * configure.ac: Define some useful variables.
24043 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24045 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24046 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24047 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24048 Use terminfo and don't use cursor-on/cursor-off unless it's known
24050 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24051 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24053 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24055 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24056 starts with "(,", fill the drive containing the loaded image in
24057 between those two characters, but expect that a full partition
24058 specification including partition map names will follow.
24060 2010-09-08 Robert Millan <rmh@gnu.org>
24062 * configure.ac: Remove `--enable-grub-fstest' option.
24063 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24065 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24066 `grub-fstest' instead of `grub-probe' for readability verification.
24067 * util/grub-probe.c (probe): Remove readability verification kludge.
24069 2010-09-08 Robert Millan <rmh@gnu.org>
24071 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24072 initializing `GRUB_FS'.
24074 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24076 Not command (!) support to GRUB script.
24078 * tests/grub_script_not.in: New test.
24079 * Makefile.util.def: Rules for new test.
24081 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24082 ! command as a special case.
24083 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24085 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24087 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24090 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24092 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24094 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24096 * docs/grub.texi (Shell-like scripting): Documentation for break,
24097 continue, shift and return commands.
24099 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24101 Rename CD-ROM to cd on BIOS.
24103 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24105 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24107 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24109 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24110 * util/grub-probe.c (main): Likewise.
24111 * util/i386/pc/grub-setup.c (main): Likewise.
24112 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24113 Reported and debugged by: alexxy
24115 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24117 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24120 2010-09-05 Jo Shields <directhex@apebox.org>
24122 * util/grub.d/30_os-prober.in: Add missing classes.
24124 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24126 * docs/grub.texi (Theme file format): Document new position format.
24128 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24130 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24131 a table. Use @code instead of @verbatim.
24133 2010-09-05 Colin D Bennett <colin@gibibit.com>
24135 Gfxmenu documentation.
24137 * docs/grub.texi (Theme file format): New chapter.
24139 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24141 * grub-core/Makefile.core.def (xzio): New module.
24142 * grub-core/io/xzio.c: New file.
24143 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24144 * grub-core/lib/xzembed/xz_config.h: Likewise.
24145 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24146 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24147 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24148 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24149 * grub-core/lib/xzembed/xz_private.h: Likewise.
24150 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24151 * include/grub/file.h (grub_file_filter_id): New compression filter
24152 GRUB_FILE_FILTER_XZIO.
24154 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24156 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24157 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24160 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24162 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24163 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24165 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24167 Uncompressed checksum support.
24169 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24170 (check_list): New parameter uncompress.
24171 (grub_cmd_hashsum): Handle --uncompress.
24173 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24175 Reintroduce testload.
24177 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24179 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24180 (GRUB_MOD_INIT): New function.
24181 (GRUB_MOD_FINI): Likewise.
24182 * grub-core/Makefile.core.def (testload): New module.
24184 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24186 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24187 (uint8_t): New type.
24188 (uint16_t): Likewise.
24189 (uint32_t): Likewise.
24190 (uint64_t): Likewise.
24192 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24194 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24196 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24198 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24200 (grub_gzfile_open): Removed. All users updated.
24201 (GRUB_MOD_INIT): New function.
24202 (GRUB_MOD_FINI): Likewise.
24203 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24204 (grub_file_filters_enabled): Likewise.
24205 (grub_file_open): Handle filters.
24206 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24207 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24208 * include/grub/file.h (grub_file_filter_id_t): New type.
24209 (grub_file_filter_t): Likewise.
24210 (grub_file_filters_all): New extern variable.
24211 (grub_file_filters_enabled): Likewise.
24212 (grub_file_filter_register): New inline function.
24213 (grub_file_filter_unregister): Likewise.
24214 (grub_file_filter_disable): Likewise.
24215 (grub_file_filter_disable_compression): Likewise.
24216 * include/grub/gzio.h: Removed.
24218 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24220 Filename expansion support for wildcards in GRUB script.
24222 * tests/grub_script_expansion.in: New test.
24223 * Makefile.util.def: Rule for new test.
24225 * grub-core/commands/wildcard.c: New file, implements filename
24226 expansion support for GRUB script.
24227 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24228 * grub-core/script/argv.c: Cosmetic changes.
24229 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24230 Refactored to perform wildcard expansion on arguments.
24231 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24234 * tests/util/grub-shell.in: Fix quoting for read input.
24236 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24238 Support for updating environment variables with matched substrings
24241 * tests/grub_cmd_regexp.in: New test.
24242 * Makefile.util.def: Rule for new test.
24244 * grub-core/commands/regexp.c: New option -s to update environment
24245 variables with regexp matches.
24247 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24249 * include/grub/file.h (grub_file): New member not_easly_seekable.
24250 (grub_file_seekable): New inline function.
24251 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24253 (grub_gzio_open): Set not_easly_seekable.
24254 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24255 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24257 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24259 Support for options to appear multiple times on cmdline.
24261 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24262 * grub-core/commands/extcmd.c: Support for repeatable option.
24263 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24264 repeatable option support.
24266 Refactor menuentry into a regular command.
24268 * grub-core/commands/menuentry.c: New file, menuentry command
24270 * grub-core/Makefile.core.def: Rule update for normal.mod.
24271 * grub-core/normal/main.c: Moved menuentry creation to
24272 grub-core/commands/menuentry.c.
24273 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24274 (grub_menu_execute_entry_real): Removed.
24275 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24277 (grub_script_execute_menuentry): Removed.
24278 * grub-core/script/parser.y (menuentry): Removed.
24279 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24280 * grub-core/script/yylex.l (menuentry): Removed.
24281 * include/grub/menu.h (grub_menu_init): New prototype.
24282 (grub_menu_fini): New prototype.
24283 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24284 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24285 (grub_script_execute_sourcecode): New prototype.
24287 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24289 "return" command for GRUB script functions.
24291 * tests/grub_script_return.in: New test.
24292 * Makefile.util.def: Rules for new test.
24294 * grub-core/script/execute.c (grub_script_return): New function.
24295 * grub-core/script/main.c: Register/unregister return commaond.
24296 * include/grub/script_sh.h (grub_script_return): New prototype.
24298 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24300 "setparams" command to update positional parameters.
24302 * tests/grub_script_setparams.in: New test.
24303 * Makefile.util.def: Rules for new test.
24305 * grub-core/script/argv.c (grub_script_argv_make): New function.
24306 * grub-core/script/execute.c (replace_scope): New function.
24307 (grub_script_setparams): New function.
24308 * grub-core/script/lexer.c: Remove unused variables.
24309 * grub-core/script/main.c: Register/unregister setparams command.
24310 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24311 (grub_script_setparams): New prototype.
24313 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24315 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24318 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24320 Support for passing block of commands as an argument to extcmds.
24322 * Makefile.util.def: Rules for new test.
24323 * tests/grub_script_blockarg.in: New test.
24324 * grub-core/tests/test_blockarg.c: New file, block argument
24325 command used in the test.
24327 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24328 (grub_register_extcmd_prio): New function prototype.
24329 (grub_extcmd_dispatcher): New function prototype.
24330 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24332 * include/grub/script_sh.h (struct grub_script): New members
24333 `children', `next_siblings' and `refcnt' for block arguments and
24334 reference counting.
24335 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24336 (grub_script_arg): New member `script' for block argument.
24337 (grub_script_argv): New member `script' for block argument.
24338 (grub_parser_param): New member `scripts' for block argument.
24339 (grub_script_mem_free): New extern function prototype.
24340 (grub_script_ref): New function prototype.
24341 (grub_script_unref): New function prototype.
24343 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24344 extcmd form to support block arguments.
24345 * grub-core/script/argv.c: Block arguments support.
24346 * grub-core/script/execute.c: Likewise.
24347 * grub-core/script/lexer.c: Likewise.
24348 * grub-core/script/main.c: Likewise.
24349 * grub-core/script/script.c: Likewise.
24350 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24353 * grub-core/commands/acpi.c: Update extcmd implementations with
24354 grub_extcmd_context_t.
24355 * grub-core/commands/cat.c: Likewise.
24356 * grub-core/commands/echo.c: Likewise.
24357 * grub-core/commands/extcmd.c: Likewise.
24358 * grub-core/commands/hashsum.c: Likewise.
24359 * grub-core/commands/hdparm.c: Likewise.
24360 * grub-core/commands/help.c: Likewise.
24361 * grub-core/commands/hexdump.c: Likewise.
24362 * grub-core/commands/i386/cpuid.c: Likewise.
24363 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24364 * grub-core/commands/i386/pc/halt.c: Likewise.
24365 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24366 * grub-core/commands/iorw.c: Likewise.
24367 * grub-core/commands/keystatus.c: Likewise.
24368 * grub-core/commands/loadenv.c: Likewise.
24369 * grub-core/commands/ls.c: Likewise.
24370 * grub-core/commands/lspci.c: Likewise.
24371 * grub-core/commands/memrw.c: Likewise.
24372 * grub-core/commands/probe.c: Likewise.
24373 * grub-core/commands/search_wrap.c: Likewise.
24374 * grub-core/commands/setpci.c: Likewise.
24375 * grub-core/commands/sleep.c: Likewise.
24376 * grub-core/disk/loopback.c: Likewise.
24377 * grub-core/hello/hello.c: Likewise.
24378 * grub-core/loader/i386/bsd.c: Likewise.
24379 * grub-core/loader/xnu.c: Likewise.
24380 * grub-core/term/gfxterm.c: Likewise.
24381 * grub-core/term/serial.c: Likewise.
24382 * grub-core/tests/lib/functional_test.c: Likewise.
24384 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24386 Multi-line quoted strings support.
24388 * grub-core/script/lexer.c (append_newline): Removed.
24389 (grub_script_lexer_yywrap): Refactored.
24390 (grub_script_lexer_init): Refactored.
24391 * grub-core/script/yylex.l (yywrap): New function.
24392 (grub_lexer_resplit): New function.
24393 (grub_lexer_unput): New function.
24394 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24396 * tests/grub_script_echo1.in: Added few more testcases.
24398 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24400 * grub-core/kern/misc.c: Don't add abort alias in utils.
24401 Reported by: echoline.
24403 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24405 Add missing files into "make dist" tarball for other platforms.
24407 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24408 * conf/Makefile.common (dist_noinst_DATA): New variable.
24409 * conf/Makefile.extra-dist: Added missing make dist files.
24410 * grub-core/Makefile.core.def: Likewise.
24412 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24414 Compress grub_prefix.
24416 * grub-core/boot/i386/pc/lnxboot.S: Use
24417 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24418 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24419 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24420 GRUB_MACHINE_PREFIX_END. All users updated.
24421 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24422 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24424 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24425 * util/grub-mkimage.c (image_target_desc): Change data_end to
24426 prefix_end. All users updated.
24428 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24430 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24432 (grub_openbsd_boot): Likewise.
24433 (grub_netbsd_boot): Likewise.
24434 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24435 (grub_xnu_boot): Likewise.
24437 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24439 * configure.ac: Clean LIBS variable after tests.
24441 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24443 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24445 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24447 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24448 echo if libdevmapper will be used.
24450 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24452 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24453 constant for the same file.
24455 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24457 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24459 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24461 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24464 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24466 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24467 required by the boot protocol.
24469 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24470 ebp and edi members.
24471 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24472 state.ebp and state.edi.
24473 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24474 %ebp and %edi according to grub_relocator32_ebp and
24475 grub_relocator32_edi respectively.
24476 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24479 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24481 Add i386-pc-pxe image target.
24483 * util/grub-mkimage.c (image_target_desc): New enum value
24485 (image_targets): New target i386-pc-pxe.
24486 (generate_image): Handle i386-pc-pxe image.
24488 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24492 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24493 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24495 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24496 (grub_pxe_pxenv): Correct type.
24498 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24500 * NEWS: Document most of the important changes since 1.98.
24502 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24504 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24505 generated manual page) a little.
24507 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24509 * docs/grub.texi: Add myself as an author.
24511 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24513 * Makefile.util.def (libgrub.a): Add missing sunpc.
24514 Reported by: Seth Goldberg.
24516 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24518 Interrupt wrapping and code simplifications.
24520 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24521 x86_noieee1275 which are functionaly equivalent in this case.
24522 (grub-install): Make source on each platform explicit. Enable on
24524 * gentpl.py (x86_efi_pc): Removed group.
24525 (x86_noefi): Likewise.
24526 (i386_noefi): Likewise.
24527 (x86_noieee1275): Likewise.
24528 (i386_noieee1275): Likewise.
24529 (i386_noefi_noieee1275): Likewise.
24530 (i386_pc_qemu_coreboot): Likewise.
24531 (i386_coreboot_multiboot): Likewise.
24532 (i386_pc_coreboot_multiboot_qemu): Likewise.
24533 (x86_noefi_mips): Likewise.
24534 (noieee1275): Likewise.
24535 (ieee1275_mips): Likewise.
24536 (noemu_noieee1275): Likewise.
24539 (videoinkernel): Likewise.
24540 (videomodules): Likewise.
24541 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24542 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24543 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24544 include/grub/loader.h, include/grub/msdos_partition.h,
24545 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24546 include/grub/machine/console.h, include/grub/machine/vga.h,
24547 include/grub/machine/vbe.h, include/grub/machine/init.h,
24548 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24549 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24550 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24551 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24552 * grub-core/Makefile.core.def (kernel): Explicit the source for
24553 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24554 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24555 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24556 Use videoinkernel tag.
24557 (usb): Enable on all usb.
24558 (usbserial_common): Likewise.
24559 (usbserial_pl2303): Likewise.
24560 (usbserial_ftdi): Likewise.
24561 (uhci): Enable on all x86.
24562 (ohci): Enable on all pci.
24563 (cmostest): Enable on all CMOS.
24564 (acpi): Include commands/acpi.c on all platforms.
24565 (halt): Add relevant lib/*/halt.c.
24566 (hdparm): Enable on all pci.
24568 (usbtest): Enable on all usb.
24569 (ata): Enable on all pci.
24570 (ata_pthru): Likewise.
24571 (usbms): Enable on all usb.
24572 (usb_keyboard): Likewise.
24573 (font): Use tag videomodules.
24575 (datetime): Use tag cmos. Enable on all noemu.
24576 (mmap): Use tags common and x86.
24577 (gfxterm): Use tag videomodules.
24578 (bitmap): Likewise.
24579 (bitmap_scale): Likewise.
24580 (video_fb): Likewise.
24582 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24583 adjust padding accordingly. All users updated.
24584 (grub_ohci_transaction): Fix bad format specification.
24585 (GRUB_MOD_INIT): Add asserts for struct size.
24586 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24587 (grub_alloc_td): Likewise.
24588 (grub_free_queue): Likewise.
24589 (grub_uhci_transfer): Likewise.
24590 (grub_uhci_transaction): Fix bad format specification.
24591 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24592 (grub_usb_bulk_readwrite): Likewise.
24593 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24594 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24596 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24598 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24599 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24600 Transformed into C.
24601 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24602 Moved from here ...
24603 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24604 ... here. Transformed into C. Made static.
24605 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24606 Moved from here ...
24607 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24608 ... here. Transformed into C. Made static.
24609 * grub-core/kern/i386/pc/startup.S
24610 (grub_biosdisk_check_int13_extensions): Moved from here ...
24611 * grub-core/disk/i386/pc/biosdisk.c
24612 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24614 * grub-core/kern/i386/pc/startup.S
24615 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24616 * grub-core/disk/i386/pc/biosdisk.c
24617 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24618 Transformed into C. Made static.
24619 * grub-core/kern/i386/pc/startup.S
24620 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24621 * grub-core/disk/i386/pc/biosdisk.c
24622 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24623 Transformed into C. Made static.
24624 * grub-core/kern/i386/pc/startup.S
24625 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24626 * grub-core/disk/i386/pc/biosdisk.c
24627 (grub_biosdisk_get_diskinfo_standard): ... here.
24628 Transformed into C. Made static.
24629 * grub-core/kern/i386/pc/startup.S
24630 (grub_biosdisk_get_num_floppies): Moved from here ...
24631 * grub-core/disk/i386/pc/biosdisk.c
24632 (grub_biosdisk_get_num_floppies): ... here.
24633 Transformed into C. Made static.
24634 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24636 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24637 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24638 Transformed into C. Made static.
24639 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24640 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24641 Transformed into C. Made static.
24642 * grub-core/kern/i386/ieee1275/init.c: Removed.
24643 * grub-core/kern/i386/misc.S: Likewise.
24644 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24645 Splitted from here ...
24646 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24647 Transformed into C. Made static. All users updated.
24648 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24649 Transformed into C. Made static. All users updated.
24650 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24652 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24653 Transformed into C. Made static. All users updated.
24654 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24656 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24657 Transformed into C. Made static. All users updated.
24658 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24659 Removed (replaced by C version).
24660 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24662 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24663 Transformed into C. Made static.
24664 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24666 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24667 ... here. Transformed into C.
24668 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24670 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24671 ... here. Transformed into C.
24672 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24674 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24675 ... here. Transformed into C. Made static.
24676 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24678 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24679 ... here. Transformed into C.
24680 * grub-core/kern/i386/pc/startup.S
24681 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24682 * grub-core/video/i386/pc/vbe.c
24683 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24684 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24686 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24687 ... here. Transformed into C.
24688 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24690 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24691 ... here. Transformed into C.
24692 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24694 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24695 ... here. Transformed into C.
24696 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24698 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24699 ... here. Transformed into C.
24700 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24702 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24703 ... here. Transformed into C. Made static.
24704 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24706 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24707 ... here. Transformed into C. Made static.
24708 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24710 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24711 ... here. Transformed into C. Made static.
24712 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24713 pxe_rm_entry as third argument.
24714 (grub_bios_interrupt): New function.
24715 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24716 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24717 of calling grub_stop.
24718 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24719 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24720 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24721 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24722 * grub-core/lib/i386/halt.c: Moved from here ...
24723 * grub-core/lib/i386/halt.c: ... here.
24724 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24725 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24726 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24728 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24729 * include/grub/i386/coreboot/init.h: Removed.
24730 * include/grub/i386/multiboot/init.h: Likewise.
24731 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24732 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24733 * include/grub/i386/pc/int.h: New file.
24734 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24735 (grub_pxe_scan): Removed.
24736 (grub_pxe_call): Update prototype.
24737 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24739 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24740 * include/grub/i386/qemu/init.h: Removed.
24741 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24743 (grub_halt): Likewise.
24744 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24745 (grub_reboot): Likewise.
24746 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24747 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24748 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24750 2010-08-30 Robert Millan <rmh@gnu.org>
24752 * NEWS: Document addition of ZFS support in `grub-install' and
24755 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24757 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24760 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24762 Remove leftover embedding of font objects.
24764 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24765 * util/grub-install.in (font): Removed.
24766 * util/grub-mkimage.c (generate_image): Remove font support. All users
24769 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24771 Remove leftover embedding of font objects.
24773 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24774 * util/grub-install.in (font): Removed.
24775 * util/grub-mkimage.c (generate_image): Remove font support. All users
24778 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24780 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24781 Reported by: Ian Turner
24783 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24785 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24786 timeout to avoid indefinite boot stalling.
24788 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24790 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24791 (grub_env_write_color_highlight): Likewise.
24793 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24795 * grub-core/normal/term.c (print_more): Return to normal and not
24796 to standard state after printing "---MORE---".
24798 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24800 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24801 Mask out the bit 0x80 since it has other meaning that specifiing color.
24803 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24805 New relocator. Allows for more kernel support and more straightforward
24808 * Makefile.am (BOOTTARGET): New variable.
24809 (QEMU32): Likewise.
24810 (linux.init.x86_64): New target.
24811 (linux.init.i386): Likewise.
24812 (multiboot.elf): Likewise.
24813 (kfreebsd.elf): Likewise.
24814 (kfreebsd.aout): Likewise.
24815 (pc-chainloader.elf): Likewise.
24816 (pc-chainloader.bin): Likewise.
24817 (ntldr.elf): Likewise.
24818 (ntldr.bin): Likewise.
24819 (multiboot2.elf): Likewise.
24820 (kfreebsd.init.x86_64): Likewise.
24821 (kfreebsd.init.i386): Likewise.
24822 (knetbsd.init.i386): Likewise.
24823 (kopenbsd.init.i386): Likewise.
24824 (knetbsd.init.x86_64): Likewise.
24825 (kopenbsd.init.x86_64): Likewise.
24826 (linux-initramfs.i386): Likewise.
24827 (linux-initramfs.x86_64): Likewise.
24828 (kfreebsd-mfsroot.i386.img): Likewise.
24829 (knetbsd.image.i386): Likewise.
24830 (kopenbsd.image.i386): Likewise.
24831 (kopenbsd.image.x86_64): Likewise.
24832 (knetbsd.miniroot-image.i386.img): Likewise.
24833 (kfreebsd-mfsroot.x86_64.img): Likewise.
24834 (knetbsd.image.x86_64): Likewise.
24835 (knetbsd.miniroot-image.x86_64.img): Likewise.
24836 (kfreebsd-mfsroot.i386.gz): Likewise.
24837 (bootcheck-kfreebsd-i386): Likewise.
24838 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24839 (bootcheck-kfreebsd-x86_64): Likewise.
24840 (knetbsd.miniroot-image.i386.gz): Likewise.
24841 (bootcheck-knetbsd-i386): Likewise.
24842 (bootcheck-kopenbsd-i386): Likewise.
24843 (bootcheck-kopenbsd-x86_64): Likewise.
24844 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24845 (bootcheck-knetbsd-x86_64): Likewise.
24846 (bootcheck-linux-i386): Likewise.
24847 (bootcheck-linux-x86_64): Likewise.
24848 (bootcheck-linux16-i386): Likewise.
24849 (bootcheck-linux16-x86_64): Likewise.
24850 (bootcheck-multiboot): Likewise.
24851 (bootcheck-multiboot2): Likewise.
24852 (bootcheck-kfreebsd-aout): Likewise.
24853 (bootcheck-pc-chainloader): Likewise.
24854 (bootcheck-ntldr): Likewise.
24855 (CLEANFILES): Add new targets.
24856 (BOOTCHECKS): New variable.
24857 (.PHONY): Add bootchecks.
24858 (SUCCESSFUL_BOOT_STRING): New variable.
24859 (BOOTCHECK_TIMEOUT): Likewise.
24860 (bootcheck): New target
24861 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24862 * configure.ac: Correct efiemu excuse.
24863 * docs/grub.texi (Supported kernels): New chapter.
24864 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24865 include/grub/mm_private.h. Simplify inclusion of
24866 include/grub/boot.h, include/grub/loader.h
24867 and include/grub/msdos_partition.h
24868 (KERNEL_HEADER_FILES) [i386_coreboot]:
24869 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24870 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24871 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24872 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24873 include/grub/machine/loader.h.
24874 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24875 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24877 (pci.mod): Enable on i386-multiboot.
24878 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24879 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24881 (relocator.mod): Rewritten.
24882 (aout.mod): Enable on all x86.
24883 (bsd.mod): Likewise.
24884 (ntldr.mod): New module.
24885 (linux.mod): Use loader/i386/linux.c on all x86.
24886 (xnu.mod): Enable on all x86.
24887 (vga_text.mod): disable on EFI and QEMU.
24888 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24889 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24890 * grub-core/efiemu/loadcore.c: Likewise.
24891 * grub-core/efiemu/main.c: Likewise.
24892 (grub_efiemu_exit_boot_services): Removed.
24893 (grub_efiemu_finish_boot_services): Likewise.
24894 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24896 * grub-core/efiemu/i386/nocfgtables.c: New file.
24897 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24898 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24899 (grub_efi_finish_boot_services): Moved from here ...
24900 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24901 Fille finish memory map and related data.
24902 (finish_mmap_buf): New variable.
24903 (grub_efi_uintn_t finish_mmap_size): Likewise.
24904 (grub_efi_uintn_t finish_key): Likewise.
24905 (grub_efi_uintn_t finish_desc_size): Likewise.
24906 (grub_efi_uint32_t finish_desc_version): Likewise.
24907 (grub_efi_is_finished): Likewise.
24908 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24910 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
24911 (grub_elf64_phdr_iterate): Likewise.
24912 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
24913 (grub_os_area_size): Likewise.
24914 (grub_machine_init): Don't reserve os area.
24915 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
24916 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
24917 * grub-core/kern/i386/loader.S: Removed.
24918 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
24919 (grub_os_area_size): Likewise.
24920 (grub_machine_init): Don't reserve os area.
24921 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
24922 Don't call grub_dl_unload_all.
24923 Don't include loader.S.
24924 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
24925 Declare the memory after _end as available.
24926 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
24927 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
24928 (GRUB_MM_ALLOC_MAGIC): Moved from here...
24929 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
24930 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
24931 * include/grub/mm_private.h (grub_mm_header): ... here.
24932 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
24933 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
24934 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
24935 (grub_mm_region): ..here. Removed addr. Added pre_size.
24937 * grub-core/kern/mm.c (base): Renamed to ...
24938 (grub_mm_base): ... this. Made global.
24939 (grub_real_malloc): Alloc from end of region.
24940 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
24941 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
24942 * grub-core/kern/powerpc/cache_flush.S: ... here.
24943 * grub-core/lib/efi/relocator.c: New file.
24944 * grub-core/lib/i386/relocator.c: Rewritten.
24945 * grub-core/lib/i386/relocator16.S: New file.
24946 * grub-core/lib/i386/relocator32.S: Likewise.
24947 * grub-core/lib/i386/relocator64.S: Likewise.
24948 * grub-core/lib/i386/relocator_asm.S: Rewritten.
24949 * grub-core/lib/i386/relocator_common.S: New file.
24950 * grub-core/lib/ieee1275/relocator.c: Likewise.
24951 * grub-core/lib/mips/relocator.c: Rewritten.
24952 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
24953 stylistic adjustments.
24954 * grub-core/lib/powerpc/relocator.c: New file.
24955 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
24956 * grub-core/lib/relocator.c: Rewritten.
24957 * grub-core/lib/x86_64/relocator_asm.S: New file.
24958 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
24959 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
24960 (bsd_tag): New struct.
24961 (tags): New variable.
24962 (tags_last): Likewise.
24963 (netbsd_module): New struct.
24964 (netbsd_mods): New variable.
24965 (netbsd_mods_last): Likewise.
24966 (openbsd_opts): New parameter "serial".
24967 (OPENBSD_SERIAL_ARG): New definition.
24968 (netbsd_opts): New parameter "serial".
24969 (NETBSD_SERIAL_ARG): New definition.
24970 (grub_freebsd_add_meta): Reorganised into ...
24971 (grub_bsd_add_meta): ...this. All users updated.
24972 (grub_freebsd_add_mmap): Reorganised into ...
24973 (generate_e820_mmap): ...this...
24974 (grub_bsd_add_mmap): ...and this. All users updated.
24975 (grub_freebsd_list_modules): Use tags.
24976 (grub_netbsd_add_meta_module): New function.
24977 (grub_netbsd_list_modules): Likewise.
24978 (grub_freebsd_boot): Use relocator and finish EFI.
24979 (grub_openbsd_boot): Likewise.
24980 (grub_netbsd_setup_video): New function.
24981 (grub_netbsd_add_modules): Likewise.
24982 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
24984 (grub_bsd_unload): Unload tags.
24985 (grub_bsd_load_aout): Use relocator.
24986 (grub_bsd_elf32_size_hook): New function.
24987 (grub_bsd_elf32_hook): Use relocator.
24988 (grub_bsd_elf64_size_hook): New function.
24989 (grub_bsd_elf64_hook): Use relocator.
24990 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
24991 (grub_bsd_load): Zero-out openbsd_ramdisk.
24992 (grub_bsd_load): Use relocator.
24993 (grub_cmd_openbsd): Support serial.
24994 (grub_cmd_netbsd): Support modules.
24995 (grub_cmd_freebsd_module): Use relocator.
24996 (grub_netbsd_module_load): New function.
24997 (grub_cmd_netbsd_module): Likewise.
24998 (grub_cmd_openbsd_ramdisk): Likewise.
24999 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25001 (GRUB_MOD_FINI): Unregister new commands.
25002 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25003 (grub_freebsd_load_elfmodule_obj): Use relocator.
25004 (grub_freebsd_load_elfmodule): Likewise.
25005 (grub_freebsd_load_elf_meta): Likewise.
25006 (grub_netbsd_load_elf_meta): New function.
25007 (grub_openbsd_find_ramdisk): Likewise.
25008 * grub-core/loader/i386/bsd_helper.S: Removed.
25009 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25010 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25011 * grub-core/loader/i386/efi/linux.c: Likewise.
25012 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25013 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25014 (DEFAULT_VIDEO_MODE): Likewise.
25015 (real_mode_target): New variable.
25016 (prot_mode_target): Likewise.
25017 (initrd_mem_target): Likewise.
25018 (relocator): Likewise.
25019 (efi_mmap_buf): Likewise.
25020 (efi_mmap_size): Likewise.
25021 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25022 (free_pages): Use relocator.
25023 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25024 (grub_linux_setup_video): Return error.
25025 (grub_linux_trampoline_start): Removed.
25026 (grub_linux_trampoline_end): Likewise.
25027 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25028 andd video parameters depending on firmware.
25029 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25030 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25031 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25032 (grub_cmd_initrd): Use relocator.
25033 * grub-core/loader/i386/linux_trampoline.S: Removed.
25034 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25035 (elf_sec_entsize): Likewise.
25036 (elf_sec_shstrndx): Likewise.
25037 (elf_sections): Likewise.
25038 (grub_multiboot_load): Use relocator.
25039 (grub_multiboot_get_mbi_size): Account for sections.
25040 (grub_multiboot_make_mbi): Use relocator and support sections.
25041 (grub_multiboot_add_elfsyms): New function.
25042 (grub_multiboot_free_mbi): Free sections.
25043 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25044 (grub_linux_real_target): Likewise.
25045 (grub_linux_real_chunk): Likewise.
25046 (grub_linux16_prot_size): Likewise.
25047 (grub_linux16_boot): Use relocator.
25048 (grub_linux_unload): Unload relocator.
25049 (grub_cmd_linux): Use relocator.
25050 (grub_cmd_initrd): Likewise.
25051 * grub-core/loader/i386/pc/ntldr.c: New file.
25052 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25053 Don't try to guess CPU frequency.
25054 (grub_xnu_set_video): Stretch bitmap.
25055 (grub_xnu_boot): Use relocator.
25056 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25057 (grub_linux_unload): Free relocator.
25058 (grub_linux_load32): Use relocator.
25059 (grub_linux_load64): Likewise.
25060 (grub_cmd_initrd): Likewise.
25061 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25062 (grub_multiboot_unload): Unload relocator.
25063 (grub_cmd_multiboot): Use relocator.
25064 (grub_cmd_module): Likewise.
25065 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25066 Use relocator and support sections.
25067 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25068 (elf_sec_entsize): Likewise.
25069 (elf_sec_shstrndx): Likewise.
25070 (elf_sections): Likewise.
25071 (grub_multiboot_load): Use relocator.
25072 (grub_multiboot_get_mbi_size): Account for sections.
25073 (grub_multiboot_make_mbi): Use relocator and support sections.
25074 (grub_multiboot_add_elfsyms): New function.
25075 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25076 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25077 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25078 Prototype changed. All users updated.
25079 (grub_xnu_align_heap): Simplified.
25080 (grub_xnu_writetree_toheap): Likewise.
25081 (grub_xnu_unload): Unload relocator.
25082 (grub_cmd_xnu_kernel): Use relocator.
25083 (grub_cmd_xnu_kernel64): Likewise.
25084 (grub_xnu_register_memory): Simplified.
25085 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25086 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25088 (grub_console_checkkey): Likewise.
25089 (grub_console_getkey): Likewise.
25090 (grub_console_getwh): Likewise.
25091 (grub_console_getxy): Likewise.
25092 (grub_console_gotoxy): Likewise.
25093 (grub_console_cls): Likewise.
25094 (grub_console_setcolorstate): Likewise.
25095 (grub_console_setcursor): Likewise.
25096 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25097 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25098 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25099 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25100 * grub-core/tests/boot/kernel-8086.S: Likewise.
25101 * grub-core/tests/boot/kernel-i386.S: Likewise.
25102 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25103 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25104 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25105 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25106 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25107 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25108 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25109 * grub-core/tests/boot/linux.cfg: Likewise.
25110 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25111 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25112 * grub-core/tests/boot/linux16.cfg: Likewise.
25113 * grub-core/tests/boot/multiboot.cfg: Likewise.
25114 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25115 * grub-core/tests/boot/ntldr.cfg: Likewise.
25116 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25117 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25118 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25120 * include/grub/dl.h (grub_dl_unload_all): Removed.
25121 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25122 (grub_efi_finish_boot_services): Change prototype.
25123 (grub_efi_is_finished): New variable.
25124 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25126 (grub_efiemu_finish_boot_services): Removed.
25127 (grub_machine_efiemu_init_tables): New prototype.
25128 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25129 (grub_elf64_phdr_iterate): Likewise.
25130 * include/grub/i386/bsd.h: Include relocator.h.
25131 (freebsd_tag_header): New struct.
25132 (grub_openbsd_bios_mmap): Removed.
25133 (grub_unix_real_boot): Removed.
25134 (grub_freebsd_load_elfmodule32): Changed prototype.
25135 (grub_freebsd_load_elfmodule_obj64): Likewise.
25136 (grub_freebsd_load_elf_meta32): Likewise.
25137 (grub_freebsd_load_elf_meta64): Likewise.
25138 (grub_freebsd_add_meta): Removed.
25139 (grub_netbsd_load_elf_meta32): New prototype.
25140 (grub_netbsd_load_elf_meta64): Likewise.
25141 (grub_bsd_add_meta): Likewise.
25142 (grub_openbsd_ramdisk_descriptor): New struct.
25143 (grub_openbsd_find_ramdisk32): New prototype.
25144 (grub_openbsd_find_ramdisk64): Likewise.
25145 * include/grub/i386/coreboot/loader.h: Removed.
25146 * include/grub/i386/efi/loader.h: Likewise.
25147 * include/grub/i386/ieee1275/loader.h: Likewise.
25148 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25150 * include/grub/i386/loader.h: Removed.
25151 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25153 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25154 (grub_phys_addr_t): New type.
25155 (grub_vtop): New inline function.
25156 (grub_map_memory): Likewise.
25157 (grub_unmap_memory): Likewise.
25158 * include/grub/i386/multiboot/loader.h: Removed.
25159 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25160 (NETBSD_BTINFO_CONSOLE): New definition.
25161 (NETBSD_BTINFO_SYMTAB): Likewise.
25162 (NETBSD_BTINFO_MODULES): Likewise.
25163 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25164 (grub_netbsd_bootinfo): New struct.
25165 (grub_netbsd_btinfo_common): Use explicit bitsize.
25166 (grub_netbsd_btinfo_mmap_entry): Removed.
25167 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25168 (grub_netbsd_btinfo_bootdisk): New struct.
25169 (grub_netbsd_btinfo_symtab): Likewise.
25170 (grub_netbsd_btinfo_serial): Likewise.
25171 (grub_netbsd_btinfo_modules): Likewise.
25172 (grub_netbsd_btinfo_framebuf): Likewise.
25173 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25174 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25176 (grub_openbsd_bootargs): Use explicit bitsize.
25177 (grub_openbsd_bootarg_console): New struct.
25178 (GRUB_OPENBSD_COM_MAJOR): New definition.
25179 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25180 * include/grub/i386/pc/efiemu.h: Removed.
25181 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25182 * include/grub/i386/qemu/loader.h: Removed.
25183 * include/grub/i386/relocator.h: Rewritten.
25184 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25185 * include/grub/mips/memory.h: New file.
25186 * include/grub/mips/multiboot.h: Rewritten.
25187 * include/grub/mips/relocator.h: Rewritten.
25188 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25189 (grub_vtop): New function.
25190 (grub_map_memory): Likewise.
25191 (grub_unmap_memory): Likewise.
25192 * include/grub/misc.h (ALIGN_DOWN): New definition.
25193 * include/grub/mm.h (grub_mm_check_real): New proto.
25194 (GRUB_MM_CHECK): New definition.
25195 * include/grub/mm_private.h: New file.
25196 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25197 (grub_multiboot_get_mbi_size): Removed.
25198 (grub_multiboot_make_mbi): Change prottype.
25199 (grub_multiboot_set_accepts_video): New proto.
25200 (grub_multiboot_add_elfsyms): Likewise.
25201 (grub_multiboot_payload_eip): New variable.
25202 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25204 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25206 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25207 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25208 * include/grub/powerpc/ieee1275/loader.h: Removed.
25209 * include/grub/powerpc/memory.h: New file.
25210 * include/grub/powerpc/relocator.h: Likewise.
25211 * include/grub/relocator.h: Likewise.
25212 * include/grub/relocator_private.h: Likewise.
25213 * include/grub/sparc64/ieee1275/loader.h: Removed.
25214 * include/grub/x86_64/memory.h: New file.
25215 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25216 (grub_xnu_heap_malloc): Likewise.
25217 (grub_xnu_heap_real_start): Removed.
25218 (grub_xnu_heap_start): Likewise.
25219 (grub_xnu_relocator): New variable.
25220 (grub_xnu_heap_target_start): Likewise.
25221 * tests/util/grub-shell.in: Support non-pc.
25222 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25224 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25226 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25228 (grub_bidi_logical_to_visual): Check that malloc succeded.
25229 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25231 (grub_xputs_normal): Likewise.
25233 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25235 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25238 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25240 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25242 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25244 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25246 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25248 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25251 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25253 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25255 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25257 * grub-core/normal/term.c (print_more): Fix a memory leak.
25258 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25259 (grub_xputs_normal): Likewise.
25261 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25263 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25264 the begining of the string
25266 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25268 * grub-core/script/script.c (grub_script_parse): Free parsed on
25271 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25273 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25276 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25278 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25281 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25283 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25284 (scroll_up): Fix a memory leak.
25286 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25288 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25291 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25293 Handle USB pendrives exposed as floppies.
25295 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25297 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25298 Check for partitions on all devices.
25300 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25302 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25303 (readkey): Likewise.
25305 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25307 Multiple variable names support to "export" command.
25309 * normal/context.c (grub_cmd_export): "export" command supports
25310 multiple variable names.
25312 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25314 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25315 --target=drive output to Mach device name.
25317 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25319 New Automake based build system for GRUB.
25321 * ABOUT-NLS: New file.
25322 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25323 in Makefile.util.def file.
25324 * Makefile.util.def: New file. Autogen build definitions file for
25326 * conf/Makefile.common: New file. Common variables for GRUB host
25327 utils and target modules.
25328 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25329 * docs/Makefile.am: New file. Automake file for docs.
25330 * gentpl.py: New file. Python script to generate Autogen
25332 * grub-core/Makefile.am: New file. GRUB target modules' rules
25333 that doesn't fit in Makefile.core.def file.
25334 * grub-core/Makefile.core.def: New file. Autogen build
25335 definitions file for GRUB target modules.
25336 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25337 specific setjmp.S file.
25338 * po/Makefile.am: New file.
25340 * .bzrignore: New ignores.
25341 * INSTALL: New requirements, without Ruby.
25342 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25343 * autogen.sh: Updated to invoke autogen as necessary.
25344 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25345 and defines for Automake conditionals.
25346 * geninit.sh: Refactoring.
25348 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25350 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25353 * include/grub/test.h: Fix functional test modules' naming.
25354 * grub-core/tests/example_functional_test.c: Fix test module name.
25356 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25357 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25358 * util/grub-editenv.c: Likewise.
25359 * util/grub-fstest.c: Likewise.
25360 * util/grub-mkdevicemap.c: Likewise.
25361 * util/grub-mkfont.c: Likewise.
25362 * util/grub-mkimage.c: Likewise.
25363 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25364 * util/grub-probe.c: Likewise.
25365 * util/grub-script-check.c: Likewise.
25366 * util/i386/pc/grub-setup.c: Likewise.
25367 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25369 * tests/util/grub-shell.in: Fix override directory path.
25370 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25371 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25373 * util/lvm.c: Update #includes.
25374 * util/raid.c: Likewise.
25375 * util/resolve.c: Likewise.
25376 * grub-core/bus/emu/pci.c: Likewise.
25377 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25378 * grub-core/lib/posix_wrap/string.h: Likewise.
25379 * grub-core/kern/emu/main.c: Likewise.
25381 * grub-core/gensymlist.sh: New file. Script for generating kernel
25383 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25385 * grub-core/gentrigtables.c: Fix unused variable warnings.
25387 * Makefile.in: Removed.
25388 * conf/any-emu.rmk: Removed.
25389 * conf/common.rmk: Removed.
25390 * conf/i386-coreboot.rmk: Removed.
25391 * conf/i386-efi.rmk: Removed.
25392 * conf/i386-ieee1275.rmk: Removed.
25393 * conf/i386-multiboot.rmk: Removed.
25394 * conf/i386-pc.rmk: Removed.
25395 * conf/i386-qemu.rmk: Removed.
25396 * conf/i386.rmk: Removed.
25397 * conf/mips-yeeloong.rmk: Removed.
25398 * conf/mips.rmk: Removed.
25399 * conf/powerpc-ieee1275.rmk: Removed.
25400 * conf/sparc64-ieee1275.rmk: Removed.
25401 * conf/tests.rmk: Removed.
25402 * conf/x86-efi.rmk: Removed.
25403 * conf/x86_64-efi.rmk: Removed.
25404 * gendistlist.sh: Removed.
25405 * geninitheader.sh: Removed.
25406 * genkernsyms.sh.in: Removed.
25407 * genmk.rb: Removed.
25408 * gensymlist.sh.in: Removed.
25409 * mkinstalldirs: Removed.
25411 * grub-core/boot: ... to here.
25413 * grub-core/bus: ... to here.
25414 * commands: Moved ...
25415 * grub-core/commands: ... to here.
25417 * grub-core/disk: ... to here.
25418 * efiemu: Moved ...
25419 * grub-core/efiemu: ... to here.
25421 * grub-core/font: ... to here.
25423 * grub-core/fs: ... to here.
25424 * gencmdlist.sh: Moved ...
25425 * grub-core/gencmdlist.sh: ... to here.
25426 * genemuinit.sh: Moved ...
25427 * grub-core/genemuinit.sh: ... to here.
25428 * genemuinitheader.sh: Moved ...
25429 * grub-core/genemuinitheader.sh: ... to here.
25430 * genfslist.sh: Moved ...
25431 * grub-core/genfslist.sh: ... to here.
25432 * genhandlerlist.sh: Moved ...
25433 * grub-core/genhandlerlist.sh: ... to here.
25434 * genmoddep.awk: Moved ...
25435 * grub-core/genmoddep.awk: ... to here.
25436 * genmodsrc.sh: Moved ...
25437 * grub-core/genmodsrc.sh: ... to here.
25438 * genpartmaplist.sh: Moved ...
25439 * grub-core/genpartmaplist.sh: ... to here.
25440 * genparttoollist.sh: Moved ...
25441 * grub-core/genparttoollist.sh: ... to here.
25442 * genterminallist.sh: Moved ...
25443 * grub-core/genterminallist.sh: ... to here.
25444 * gentrigtables.c: Moved ...
25445 * grub-core/gentrigtables.c: ... to here.
25446 * genvideolist.sh: Moved ...
25447 * grub-core/genvideolist.sh: ... to here.
25448 * gettext: Moved ...
25449 * grub-core/gettext: ... to here.
25450 * gfxmenu: Moved ...
25451 * grub-core/gfxmenu: ... to here.
25452 * gnulib: Moved ...
25453 * grub-core/gnulib: ... to here.
25455 * grub-core/hello: ... to here.
25457 * grub-core/hook: ... to here.
25459 * grub-core/io: ... to here.
25461 * grub-core/kern: ... to here.
25463 * grub-core/lib: ... to here.
25464 * loader: Moved ...
25465 * grub-core/loader: ... to here.
25467 * grub-core/mmap: ... to here.
25468 * normal: Moved ...
25469 * grub-core/normal: ... to here.
25470 * partmap: Moved ...
25471 * grub-core/partmap: ... to here.
25472 * parttool: Moved ...
25473 * grub-core/parttool: ... to here.
25474 * script: Moved ...
25475 * grub-core/script: ... to here.
25477 * grub-core/term: ... to here
25478 * tests/example_functional_test.c: Moved ...
25479 * grub-core/tests/example_functional_test.c: ... to here.
25480 * tests/lib/functional_test.c: Moved ...
25481 * grub-core/tests/lib/functional_test.c: ... to here.
25482 * tests/lib/test.c: Moved ...
25483 * grub-core/tests/lib/test.c: ... to here.
25485 * grub-core/video: ... to here.
25487 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25489 Replace --enable-grub-emu-modules with grub-emu-lite.
25491 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25494 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25495 * kern/emu/full.c: New file. For grub-emu specific initialization.
25496 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25497 * kern/emu/main.c: Call initialization function grub_emu_init.
25499 * Makefile.in: Include grub-emu-lite in install.
25500 * commands/parttool.c: Use grub_no_autoload to differentiate
25501 between grub-emu and grub-emu-lite.
25502 * include/grub/misc.h: New variable grub_no_autoload.
25504 * conf/any-emu.rmk: New rules for grub-emu-lite.
25505 * configure.ac: Remove --enable-grub-emu-modules.
25506 * genmk.rb: Cleanup unnecessary rules.
25507 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25509 * normal/main.c: Don't load list files on grub-emu-lite.
25510 * util/misc.c (grub_arch_sync_caches): Removed.
25512 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25514 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25515 grub-mkimage rather than grub-mkelfimage.
25516 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25518 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25520 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25521 a key after CapsLock or NumLock. It's just a qemu bug.
25523 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25525 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25526 needed by libusb wrapper.
25528 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25530 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25532 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25534 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25535 --nounzip is passed.
25537 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25539 USB hotunplugging and USB serial support.
25541 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25542 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25543 (grub_uhci_transfer): Respect timeout and set *actual.
25544 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25545 non-standard length.
25546 (grub_usb_device_attach): Autoload modules.
25547 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25548 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25549 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25551 (grub_usb_add_hub): Fill nports and children.
25552 (attach_root_port): Receive hub instead of controller.
25553 All users updated. Fill hub->devices.
25554 (grub_usb_root_hub): Allocate hub->devices.
25555 (detach_device): New function.
25556 (poll_nonroot_hub): Fill children and detach devices.
25557 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25558 actual arguments. All users updated.
25559 (grub_usb_bulk_read_extended): New function.
25560 * bus/usb/serial/common.c: New file.
25561 * bus/usb/serial/ftdi.c: Likewise.
25562 * bus/usb/serial/pl2303.c: Likewise.
25563 * commands/terminal.c (handle_command): Support wildcard.
25564 * commands/usbtest.c: Output "Unknown" instead of empty string.
25565 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25566 (usbserial_common_mod_SOURCES): New variable.
25567 (usbserial_common_mod_CFLAGS): Likewise.
25568 (usbserial_common_mod_LDFLAGS): Likewise.
25569 (pkglib_MODULES): Add usbserial_pl2303.mod.
25570 (usbserial_pl2303_mod_SOURCES): New variable.
25571 (usbserial_pl2303_mod_CFLAGS): Likewise.
25572 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25573 (pkglib_MODULES): Add usbserial_ftdi.mod.
25574 (usbserial_ftdi_mod_SOURCES): New variable.
25575 (usbserial_ftdi_mod_CFLAGS): Likewise.
25576 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25577 (pkglib_MODULES): Add serial.mod.
25578 (serial_mod_SOURCES): New variable.
25579 (serial_mod_CFLAGS): Likewise.
25580 (serial_mod_LDFLAGS): Likewise.
25581 * conf/i386-pc.rmk: Likewise.
25582 * conf/mips-yeeloong.rmk: Likewise.
25583 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25584 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25585 * disk/usbms.c (first_available_slot): New variable.
25586 (grub_usbms_attach): Don't reuse free slots due to potential cache
25588 * include/grub/serial.h: Moved to ..
25589 * include/grub/ns8250.h: ...this.
25590 * include/grub/serial.h: New file.
25591 * include/grub/term.h (grub_term_poll_usb): New variable.
25592 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25593 readkey. All users updated.
25594 (grub_terminfo_output_state): Pass term to put.
25595 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25596 (grub_usb_controller_dev): Add timeout and actual arguments to
25597 transfer. All users updated.
25598 (grub_usb_interface): New field detach_data.
25599 (grub_usb_device): New fields children and nports.
25600 (grub_usb_ep_type_t): New type.
25601 (grub_usb_get_ep_type): New function.
25602 (grub_usb_bulk_read_extended): Likewise.
25603 * include/grub/usbdesc.h (grub_usb_desc): New type.
25604 * include/grub/usbserial.h: New file.
25605 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25606 * kern/term.c (grub_term_poll_usb): New variable.
25607 (grub_getkey): Call grub_term_poll_usb if set.
25608 (grub_checkkey): Likewise.
25609 (grub_getkeystatus): Likewise.
25610 * term/serial.c: Moved controller-specific parts to ...
25611 * term/ns8250.c: ... here.
25612 * term/serial.c: Mostly rewritten.
25613 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25616 2010-08-20 Robert Millan <rmh@gnu.org>
25618 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25619 a separate module and maybe other interesting combinations.
25621 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25622 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25623 (kfreebsd_entry): Add generic filesystem module load routine.
25624 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25626 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25628 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25629 "numcenter" (I misunderstood the purpose of this entry).
25630 * docs/grub.texi (sendkey): Likewise.
25632 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25634 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25635 status flag options; simply omitting the option is equivalent and
25636 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25637 (keysym_table): Rename "num5numlock" to "numlock".
25638 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25639 can uniformly say that only the last of multiple `sendkey'
25640 invocations has any effect.
25641 * docs/grub.texi (sendkey): New section.
25643 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25645 * commands/i386/pc/sendkey.c (options): Fix three typos.
25647 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25649 Implement sendkey support.
25651 * commands/i386/pc/sendkey.c: New file.
25652 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25653 (sendkey_mod_SOURCES): New variable.
25654 (sendkey_mod_CFLAGS): Likewise.
25655 (sendkey_mod_LDFLAGS): Likewise.
25657 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25659 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25660 fix warnings from Autoconf.
25662 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25664 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25665 to avoid false positives with some assemblers that output things
25666 like "someprefix_func" as part of their output.
25668 2010-08-15 Robert Millan <rmh@gnu.org>
25670 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25672 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25673 grub_get_libzfs_handle() errors.
25675 2010-08-14 Robert Millan <rmh@gnu.org>
25677 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25678 filesystem is not ZFS.
25680 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25682 Fix for misspelled color names defaulting to black/black (bug
25683 reported by Doug Nazar)
25685 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25686 status to prototype.
25687 * normal/color.c (grub_parse_color_name_pair): Return failure
25689 (grub_env_write_color_normal): Ignore bad color names.
25690 (grub_env_write_color_highlight): Likewise.
25691 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25693 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25695 "shift" command support to GRUB script.
25697 * include/grub/script_sh.h (grub_script_shift): New prototype.
25698 * script/execute.c (grub_script_shift): New function.
25699 * script/main.c (grub_script_init): Register shift command.
25700 (grub_script_fini): Unregister shift command.
25701 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25703 * tests/grub_script_shift.in: New testcase.
25704 * conf/tests.rmk: Rules for new testcase.
25706 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25708 "continue" command support to GRUB script.
25710 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25711 (grub_script_break): Continue support.
25712 * script/main.c (grub_script_init): Register continue command.
25713 (grub_script_fini): Unregister continue command.
25715 * tests/grub_script_continue.in: New testcase.
25716 * conf/tests.rmk: Rules for new testcase.
25718 2010-08-12 BVK Chaitanya <bvk@dbook>
25720 "break" command support to GRUB script.
25722 * conf/common.rmk: Rule updates to grub-script-check.
25723 * include/grub/misc.h (grub_min): New function.
25724 * include/grub/script_sh.h (grub_script_init): New prototype.
25725 (grub_script_fini): New prototype.
25726 (grub_script_break): New prototype.
25727 * script/main.c (grub_script_init): New function.
25728 (grub_script_fini): New function.
25729 * script/execute.c (grub_script_break): New function.
25730 * normal/main.c: Calls to grub_script_{init,fini}.
25731 * util/grub-script-check.c (grub_script_break): New function.
25733 * tests/grub_script_break.in: New testcase.
25734 * conf/tests.rmk: Rules for new test case.
25736 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25738 Function parameters support to GRUB script.
25740 * script/yylex.l (VARIABLE): Regular expression update.
25741 * script/function.c (grub_script_function_call): Moved ...
25742 * script/execute.c (grub_script_function_call): ... to here.
25743 (grub_script_execute_arglist_to_argv): Removed.
25744 (grub_script_arglist_to_argv): New function.
25745 * script/argv.c: New file.
25746 (grub_script_argv_free): New function.
25747 (grub_script_argv_next): Likewise.
25748 (grub_script_argv_append): Likewise.
25749 (grub_script_argv_split_append): Likewise.
25750 * include/grub/script_sh.h (grub_script_argv): New struct.
25751 (grub_script_argv_free): New function.
25752 (grub_script_argv_next): Likewise.
25753 (grub_script_argv_append): Likewise.
25754 (grub_script_argv_split_append): Likewise.
25756 * conf/common.rmk (normal.mod): New source script/argv.c.
25758 * tests/grub_script_echo1.in: More tests.
25759 * tests/grub_script_vars1.in: Likewise.
25760 * tests/grub_script_functions.in: New test case.
25761 * conf/tests.rmk: Rules for new testcase.
25763 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25765 Remove grub_script_cmdblock struct.
25767 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25768 * script/parser.y: Likewise.
25769 * script/execute.c: Rename cmdblock suffix to cmdlist.
25770 * script/script.c: Likewise.
25771 * util/grub-script-check.c: Likewise.
25773 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25775 * .bzrignore: add grub-macho2img
25777 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25779 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25781 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25783 Remove the dump of sm712 initialisation sequence.
25785 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25786 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25787 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25788 (GRUB_VGA_CR_*): Added many registers.
25789 (GRUB_VGA_SR_*): Likewise.
25790 (GRUB_VGA_GR_*): Likewise.
25791 (grub_vga_write_arx): New function.
25792 (grub_video_hw_config): New struct.
25793 (grub_vga_set_geometry): New function.
25794 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25795 GRUB_PCI_CLASS_SUBCLASS_VGA.
25796 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25797 * video/sm712.c (grub_sm712_write_reg): New function
25798 (grub_sm712_read_reg): Likewise.
25799 (grub_sm712_sr_write): Likewise.
25800 (grub_sm712_gr_write): Likewise.
25801 (grub_sm712_cr_write): Likewise.
25802 (grub_sm712_write_arx): Likewise.
25803 (grub_sm712_cr_shadow_write): Likewise.
25804 (grub_sm712_write_dda_lookup): Likewise.
25805 (grub_video_sm712_setup): Initialise the video rather then
25806 blindly replay the dump.
25807 (main) [TEST]: Add a routine to be able to compile as standalone for
25809 * video/sm712_init.c (sm712_init): Removed.
25810 (sm712_sr_seq1): New array.
25811 (sm712_sr_seq2): Likewise.
25813 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25815 * include/grub/vga.h: Add missing grub/pci.h include.
25817 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25819 * util/grub-macho2img.c (main): fix typo
25821 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25823 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25824 (grub_vga_gr_read): Likewise.
25825 (grub_vga_cr_write): Likewise.
25826 (grub_vga_cr_read): Likewise.
25827 (grub_vga_sr_write): Likewise.
25828 (grub_vga_sr_read): Likewise.
25829 (grub_vga_palette_read): Likewise.
25830 (grub_vga_palette_write): Likewise.
25831 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25832 (grub_sm712_sr_read): New function.
25833 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25834 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25836 2010-08-09 Robert Millan <rmh@gnu.org>
25838 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25839 out unused variables on non-ZFS build.
25841 2010-08-08 Robert Millan <rmh@gnu.org>
25843 Fix path generation for sub-filesystems in ZFS.
25845 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25848 2010-08-08 Robert Millan <rmh@gnu.org>
25850 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25852 2010-08-08 Robert Millan <rmh@gnu.org>
25854 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25855 exist, issue a proper error message (rely on `ls' for translated
25858 2010-08-08 Robert Millan <rmh@gnu.org>
25860 Fix grub-probe invocation.
25862 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25864 2010-08-04 Robert Millan <rmh@gnu.org>
25866 * configure.ac: Remove checks for getfsstat() and getmntany().
25867 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25868 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25869 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25870 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25871 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25873 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25874 via find_mount_point_from_dir() and getfsstat() / getmntany().
25876 2010-08-04 Robert Millan <rmh@gnu.org>
25878 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25879 (grub_find_zpool_from_mount_point): Merge into ...
25880 (grub_find_zpool_from_dir): ... this.
25881 * kern/emu/misc.c: Likewise.
25884 (grub_make_system_path_relative_to_its_root): Replace
25885 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25886 with grub_find_zpool_from_dir().
25887 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25889 2010-08-04 Robert Millan <rmh@gnu.org>
25891 Support OpenSolaris in ZFS device resolution.
25893 * configure.ac: Check for getmntany().
25894 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25895 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25898 2010-08-03 Robert Millan <rmh@gnu.org>
25900 Fix grub-emu build.
25902 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25903 * include/grub/emu/misc.h: ... here.
25905 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25906 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25908 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25909 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25910 (grub_get_libzfs_handle): Move to ...
25911 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
25912 (grub_get_libzfs_handle): ... here.
25914 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
25916 * script/execute.c (grub_script_execute_cmdline): Check for NULL
25917 as command name case.
25919 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
25921 * disk/raid.c (insert_array): Select unique numbers for named arrays
25922 as well, for use as keys in the disk cache.
25924 2010-08-01 Robert Millan <rmh@gnu.org>
25926 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
25927 kFreeBSD device name, except on ZFS where the filesystem label is
25929 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
25930 `/boot/zfs/zpool.cache'.
25931 Set mountfrom kernel variable using ${kfreebsd_device}.
25933 2010-08-01 Robert Millan <rmh@gnu.org>
25935 Make it even harder to use uninitialized `libzfs_handle' (and
25936 make the interface a bit simpler).
25938 * include/grub/util/misc.h (grub_util_init_libzfs)
25939 (libzfs_handle): Remove.
25940 (grub_get_libzfs_handle): New prototype.
25942 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
25944 (grub_util_init_libzfs): Remove.
25945 (grub_get_libzfs_handle): New function.
25947 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
25948 grub_get_libzfs_handle() to obtain a libzfs handle instead of
25949 accessing `libzfs_handle' directly.
25951 2010-08-01 Robert Millan <rmh@gnu.org>
25953 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25954 (grub_find_zpool_from_mount_point): New function prototypes.
25956 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
25957 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
25959 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
25960 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
25961 `static' attribute.
25963 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
25964 finding zpool from mount point into ...
25965 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
25967 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
25968 requested path is part of a ZFS pool, use
25969 grub_find_zpool_from_mount_point() to detect its filesystem name,
25970 and generate a path with `/fsname@path' syntax.
25972 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25974 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
25975 (void) rather than () so that this is a proper prototype.
25977 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25979 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
25981 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25983 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
25984 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
25986 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25988 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
25990 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25992 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
25994 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25996 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
25997 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
25998 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
25999 disable gfxpayload.
26000 (Shell-like scripting): Add real content.
26001 (Serial terminal): Suggest `terminal_input serial; terminal_output
26002 serial' rather than putting the two commands on separate lines,
26003 since console input will be inoperative after the first command.
26004 (menuentry): Document --class, --users, and --hotkey options.
26005 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26006 Vladimir Serbinenko).
26008 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26009 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26011 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26013 2010-08-01 Robert Millan <rmh@gnu.org>
26015 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26016 (grub_find_zpool_from_mount_point): New function prototypes.
26018 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26019 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26021 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26022 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26023 `static' attribute.
26025 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26026 finding zpool from mount point into ...
26027 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26029 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26030 requested path is part of a ZFS pool, use
26031 grub_find_zpool_from_mount_point() to detect its filesystem name,
26032 and generate a path with `/fsname@path' syntax.
26034 2010-08-01 Robert Millan <rmh@gnu.org>
26036 Prevent accidental use of uninitialized libzfs_handle.
26038 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26039 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26040 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26042 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26044 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26045 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26047 2010-08-01 Robert Millan <rmh@gnu.org>
26049 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26051 2010-07-31 Robert Millan <rmh@gnu.org>
26053 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26055 2010-07-31 Robert Millan <rmh@gnu.org>
26057 * kern/emu/misc.c: Add missing license header.
26059 2010-07-31 Robert Millan <rmh@gnu.org>
26061 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26063 * include/grub/util/libnvpair.h: Include `<config.h>'.
26064 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26065 declaring libnvpair prototypes ourselves.
26066 * include/grub/util/libzfs.h: Include `<config.h>'.
26067 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26068 declaring libzfs prototypes ourselves.
26070 (libzfs_handle): Moved to ...
26071 * include/grub/util/misc.h (libzfs_handle): ... here.
26072 Include `<grub/util/libzfs.h>'.
26074 2010-07-30 Robert Millan <rmh@gnu.org>
26076 * include/grub/emu/misc.h: Add missing license header.
26078 2010-07-30 Robert Millan <rmh@gnu.org>
26080 Enable `grub-probe -t device' resolution on ZFS.
26082 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26083 * include/grub/util/libnvpair.h: New file.
26084 * include/grub/util/libzfs.h: New file.
26086 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26087 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26088 `<grub/util/libnvpair.h>'.
26089 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26091 (find_mount_point_from_dir): New static function.
26092 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26094 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26095 find_root_device_from_libzfs() before ressorting to find_root_device().
26097 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26099 * util/misc.c: Include `<grub/util/libzfs.h>'.
26100 (grub_util_init_libzfs): New function.
26101 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26102 [HAVE_LIBZFS] (fini_libzfs): New static function.
26103 (grub_util_init_libzfs): New function.
26104 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26106 2010-07-30 Robert Millan <rmh@gnu.org>
26108 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26109 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26110 `warn_unused_result' attribute.
26111 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26112 (grub_xasprintf, grub_xvasprintf): Likewise.
26113 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26115 2010-07-29 Robert Millan <rmh@gnu.org>
26117 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26118 (probe): Handle `PRINT_FS_LABEL'.
26119 (main): Handle `-t fs_label'.
26121 2010-07-29 Robert Millan <rmh@gnu.org>
26123 * configure.ac: Remove grub-mkisofs checks.
26125 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26127 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26128 Reported by: Lennart Sorensen.
26130 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26132 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26133 prior to terminal_input/terminal_output separation. It's been over 1.5
26134 years and those versions weren't widely deployed.
26136 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26138 * disk/raid.c (insert_array): Don't count named arrays when looking
26139 for unused array numbers.
26140 Reported and tested by: Michael Guntsche.
26142 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26144 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26145 implementation of this so that grub-emu links again, with a note
26146 that this should support hotplugging in the future.
26148 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26150 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26152 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26154 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26156 (grub_loopback_close): Remove empty function.
26157 (grub_loopback_dev): Remove close method.
26159 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26161 Disable EFI cursor when the EFI console becomes inactive.
26163 * term/efi/console.c (grub_efi_console_init): New function.
26164 (grub_efi_console_fini): New function.
26165 (grub_console_term_output): Register init and fini methods.
26167 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26169 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26172 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26174 * disk/loopback.c (grub_loopback): Replace filename with file.
26175 (delete_loopback): Handle new semantics.
26176 (grub_cmd_loopback): Likewise.
26177 (grub_loopback_iterate): Likewise.
26178 (grub_loopback_close): Likewise.
26180 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26182 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26184 Reported by: Tito Keitel.
26186 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26188 * docs/grub.texi (Naming convention): Document new naming convention.
26190 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26191 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26193 Generate device.map in something closer to the old ordering.
26195 * util/deviceiter.c (struct device): New declaration.
26196 (compare_file_names): Rename to ...
26197 (compare_devices): ... this. Sort by kernel name in preference to
26198 the stable by-id name, but keep the latter as a fallback comparison.
26199 Update header comment.
26200 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26201 of `struct device' rather than of plain file names.
26203 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26205 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26208 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26210 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26212 (setv1table): Likewise.
26214 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26216 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26217 removing the homehost if present.
26218 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26219 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26220 removing the homehost if present.
26221 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26223 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26225 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26226 parameter. Set its pointer target to 0.
26227 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26228 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26229 `data_offset' value from the superblock for 1.x metadata.
26230 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26231 data on the device.
26232 (insert_array): Record the start sector of data on the device.
26233 (grub_raid_register): Pass start_sector parameters to
26234 grub_raid_list->detect and insert_array.
26235 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26237 (struct grub_raid): Add start_sector parameter to `detect'.
26239 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26240 __attribute__ ((packed)), leaving a comment.
26241 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26242 (grub_mdraid_detect_09): ... here and ...
26243 (grub_mdraid_detect_1x): ... here.
26245 2010-07-20 Peter Henn <peter.henn@web.de>
26247 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26248 chunk size and disk size, which are already given as sector counts
26249 as distinct from the 0.90 units. Fetch the correct device number
26250 from the role table instead of using the table index.
26252 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26254 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26255 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26256 (WriteMostly1): New macro.
26257 Set array->name to NULL for metadata format 0.90. Add support for
26258 metadata 1.x. Fix some comments.
26259 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26261 * util/getroot.c (grub_util_get_grub_dev): Add support for
26262 /dev/md/name style devices.
26264 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26266 * .bzrignore: Ignore 20_linux_xen.
26268 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26270 * util/import_unicode.py: Remove unnecessary imports.
26272 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26274 Hotplugging and USB hub support.
26276 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26277 (grub_ohci): Likewise.
26278 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26279 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26280 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26281 (GRUB_OHCI_CTRL_EDS): Likewise.
26282 (GRUB_OHCI_BULK_EDS): Likewise.
26283 (GRUB_OHCI_TDS): Likewise.
26284 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26285 (grub_ohci_ed_phys2virt): New function.
26286 (grub_ohci_virt_to_phys): Likewise.
26287 (grub_ohci_td_phys2virt): Likewise.
26288 (grub_ohci_td_virt2phys): Likewise.
26289 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26291 (grub_ohci_find_ed): New function.
26292 (grub_ohci_alloc_td): Likewise.
26293 (grub_ohci_free_td): Likewise.
26294 (grub_ohci_free_tds): Likewise.
26295 (grub_ohci_transfer): Use previously allocated memory.
26296 (grub_ohci_portstatus): Reset status changed bit.
26297 (grub_ohci_detect_dev): Supply status changed.
26298 (grub_ohci_fini_hw): Free memory.
26299 (grub_ohci_restore_hw): Reallocate memory.
26300 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26301 Reset status change.
26302 (grub_uhci_detect_dev): Supply status_change.
26303 * bus/usb/usb.c (attach_hooks): New var.
26304 (grub_usb_device_attach): New function.
26305 (grub_usb_register_attach_hook_class): Likewise.
26306 (grub_usb_unregister_attach_hook_class): Likewise.
26307 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26308 (grub_usb_add_hub): Reset connection changed bit.
26309 (attach_root_port): New function.
26310 (grub_usb_root_hub): Likewise.
26311 (poll_nonroot_hub): Likewise.
26312 (grub_usb_poll_devices): Likewise.
26313 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26314 * disk/usbms.c (grub_usbms_open): Use device hooks.
26315 (grub_usbms_iterate) :Poll devices.
26316 (grub_usbms_finddevs): Split into ...
26317 (grub_usbms_attach): ... this ...
26318 (grub_usbms_attach): ... and this.
26319 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26321 (grub_usb_interface): New fields attached and detach_hook.
26322 (grub_usb_attach_hook_class): New type.
26323 (grub_usb_attach_desc): New struct.
26324 (grub_usb_register_attach_hook_class): New function.
26325 (grub_usb_unregister_attach_hook_class): Likewise.
26326 (grub_usb_poll_devices): Likewise.
26327 (grub_usb_device_attach): Likewise.
26328 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26329 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26331 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26333 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26334 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26335 delta determination style. Works with most NetBSD partitions too.
26337 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26339 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26340 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26342 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26344 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26346 2010-07-14 Anton Blanchard <anton@samba.org>
26348 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26351 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26353 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26355 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26357 * kern/partition.c (grub_partition_check_containment): New function to
26358 check that a partition is physically contained in a parent. Since
26359 offsets are relative (and non-negative), this reduces to checking that
26360 the partition ends before its parent.
26361 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26362 (grub_partition_iterate): Likewise.
26363 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26365 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26366 partitions that start before their parent, and add debug printfs.
26368 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26370 * Makefile.in (.SUFFIX): Spell correctly, as ...
26371 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26372 bare module name without `.mod', e.g. `test') tried to invoke a
26375 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26377 * README: Point to the Info manual.
26379 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26381 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26382 2nd superblock position from partition size.
26384 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26386 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26387 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26388 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26391 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26393 Restructure SCSI .id handling.
26394 Reported and tested by: Aleš Nesrsta.
26396 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26397 (grub_atapi_dev): Changed .name to "ata". New field .id.
26398 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26399 (grub_usbms_dev): New field .id.
26400 * disk/scsi.c (grub_scsi_iterate): Generate name.
26401 (grub_scsi_open): Parse name.
26402 * include/grub/scsi.h (grub_make_scsi_id): New function.
26403 (grub_scsi_dev): Change iterate and open to number instead of naming
26404 busses. All users updated.
26405 (grub_scsi): Remove name. Add .bus.
26407 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26409 * commands/help.c (grub_cmd_help): Fix a typo.
26411 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26413 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26414 Reported and tested by: Colin Watson.
26416 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26418 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26421 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26423 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26425 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26427 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26430 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26432 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26433 and disk/raid6_recover.c.
26434 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26435 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26437 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26439 * term/gfxterm.c (repaint_schedulded): Rename to ...
26440 (repaint_scheduled): ... this. Update all callers.
26441 (repaint_was_schedulded): Rename to ...
26442 (repaint_was_scheduled): ... this. Update all callers.
26444 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26446 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26447 which we expect to be handled by upper layers.
26449 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26451 * bus/usb/usbhub.c: #include time.h header.
26453 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26455 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26456 entry_name also for entries without stat blocks (e.g. ".."); fixes
26457 corruption of the first entry in a directory.
26459 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26461 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26462 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26463 doesn't work otherwise.
26465 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26467 * docs/grub.texi (Features): Update list of supported file systems.
26468 (GNU/Linux): Update for GRUB 2.
26469 (Serial terminal): Remove mention of --disable-serial, which was a
26470 GRUB Legacy configure option. Update instructions to use
26471 `terminal_input' and `terminal_output' rather than `terminal'.
26472 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26473 configuration' and `Installing GRUB using grub-install'.
26474 (Menu entry editor): Update for GRUB 2.
26475 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26476 Document new -a, -u, and -v options.
26477 (initrd): New section.
26478 (initrd16): New section.
26479 (linux): New section.
26480 (linux16): New section.
26481 (search): The `var' argument to `--set' is optional.
26482 (GRUB only offers a rescue shell): Go into a little more detail on
26485 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26487 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26489 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26491 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26492 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26494 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26496 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26497 install_prefix, in line with install_dos_part and install_bsd_part.
26498 Add new prefix variable, which is copied to install_prefix after
26499 comparing core.img in memory with the one read from disk in the
26500 no-embedding case, and use that rather than overwriting
26501 install_prefix immediately when installing to a partition.
26502 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26505 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26507 * configure.ac: Avoid == in test command, it's not portable.
26508 * util/grub.d/30_os-prober.in: Likewise.
26510 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26512 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26514 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26516 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26517 multiple (top-level) partmaps.
26519 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26521 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26522 Reported by: Tino Keitel.
26524 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26526 Bidi and diacritics support.
26528 * Makefile.in (widthspec.bin): New target.
26529 (widthspec.h): Likewise.
26530 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26531 * autogen.sh: Generate unidata.c.
26532 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26533 * commands/ls.c (grub_ls_list_devices): Likewise.
26534 (grub_ls_list_files): Likewise.
26535 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26536 (grub_mini_cmd_lsmod): Likewise.
26537 * commands/read.c: Likewise.
26538 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26539 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26540 * lib/arg.c (grub_arg_show_help): Likewise.
26541 * lib/crypto.c (grub_password_get): Likewise.
26542 * normal/auth.c (grub_username_get): Likewise.
26543 * normal/misc.c (grub_normal_print_device_info): Likewise.
26544 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26545 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26546 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26547 (normal/charset.c_DEPENDENCIES): New variable.
26548 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26549 (pkglib_MODULES): Remove charset.mod.
26550 (charset_mod_SOURCES): Removed.
26551 (charset_mod_CFLAGS): Likewise.
26552 (charset_mod_LDFLAGS): Likewise.
26553 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26554 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26556 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26557 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26558 (kernel_img_HEADERS): Add terminfo.h.
26559 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26560 Fill ->font. Reverse ascii bitmaps.
26561 (grub_font_get_xheight): New function.
26562 * font/font.c (grub_font_get_string_width): Moved from here ...
26563 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26564 * font/font.c (grub_font_draw_string): Moved from here ...
26565 * gfxmenu/font.c (grub_font_draw_string): ... here.
26566 * font/font.c (grub_font_dup_glyph): New function.
26567 (grub_font_blit_glyph): Likewise.
26568 (grub_font_blit_glyph_mirror): Likewise.
26569 (blit_comb): Likewise.
26570 (grub_font_construct_dry_run): Likewise.
26571 (grub_font_get_constructed_device_width): Likewise.
26572 (grub_font_construct_glyph): Likewise.
26573 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26574 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26575 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26576 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26577 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26578 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26579 (grub_font_get_xheight): New proto.
26580 (grub_font_get_constructed_device_width): Likewise.
26581 (grub_font_construct_glyph): Likewise.
26582 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26583 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26584 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26585 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26586 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26587 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26588 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26589 (grub_console_getcharwidth): Likewise.
26590 * include/grub/misc.h (grub_xputs): New proto.
26591 (grub_puts): Inlined.
26592 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26593 (grub_normal_get_line_counter): Removed.
26594 (grub_install_newline_hook): Likewise.
26595 (grub_normal_get_char_counter): New proto.
26596 (grub_normal_reset_more): Likewise.
26597 (grub_xputs_normal): Likewise.
26598 * include/grub/powerpc/ieee1275/console.h: Removed.
26599 * include/grub/sparc64/ieee1275/console.h: Likewise.
26600 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26601 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26602 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26603 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26604 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26605 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26606 (grub_term_input): Pass reference to self. All users updated.
26607 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26608 Pass reference to self. New fields normal_color, highlight_color and
26609 data. All users updated.
26610 (grub_putchar): Removed.
26611 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26612 (grub_unicode_estimate_width): New function.
26613 (grub_term_getcharwidth): Add defaults.
26614 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26615 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26616 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26617 (grub_cls): Remove EXPORT_FUNC.
26618 (grub_setcolorstate): Inline.
26619 (grub_newline_hook): Removed.
26620 * include/grub/terminfo.h: Rewritten. All users updated.
26621 * include/grub/unicode.h: New file.
26622 * include/grub/video.h (grub_video_signed_rect): New type.
26623 * kern/emu/console.c (grub_console_highlight_color): Removed.
26624 (grub_console_normal_color): Likewise.
26625 (grub_console_standard_color): Made static.
26626 (grub_ncurses_putchar): Remove mapping.
26627 (grub_ncurses_getcharwidth): Removed.
26628 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26629 (grub_ncurses_setcolor): Removed.
26630 (grub_ncurses_getcolor): Likewise.
26631 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26632 (grub_console_putchar): ... this.
26633 (grub_console_putchar): Handle argument difference.
26634 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26635 console_init_early and console_init_lately.
26636 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26637 * kern/misc.c (grub_puts): Removed.
26638 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26639 (grub_vsnprintf_real): Remove str = NULL support.
26640 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26641 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26642 * kern/term.c (grub_putcode): Renamed to ...
26643 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26644 (grub_putchar): Removed.
26645 (grub_xputs_dumb): New function.
26646 (grub_xputs): New variable.
26647 * lib/charset.c: Move from here ...
26648 * normal/charset.c: ... to here.
26649 (grub_ucs4_to_utf8): New function.
26650 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26651 (join_types): New variable.
26652 (unpack_join): New function.
26653 (bidi_types): New variable.
26654 (unpack_bidi): New function.
26655 (get_bidi_type): Likewise.
26656 (get_join_type): Likewise.
26657 (is_mirrored): Likewise.
26658 (grub_unicode_get_comb_type): Likewise.
26659 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26660 (is_type_after): Likewise.
26661 (grub_unicode_aglomerate_comb): Likewise.
26662 (bidi_line_wrap): Likewise.
26663 (grub_bidi_line_logical_to_visual): Likewise.
26664 (grub_bidi_logical_to_visual): Likewise.
26665 (grub_unicode_mirror_code): Likewise.
26666 (grub_unicode_shape_code): Likewise.
26667 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26668 Don't use grub_putchar.
26669 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26670 (grub_normal_reader_init): Likewise.
26671 (grub_xputs_saved): New variable.
26672 (GRUB_MOD_INIT): Set grub_xputs.
26673 (GRUB_MOD_FINI): Restore grub_xputs.
26674 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26675 (menu_init): Avoid printing gfxmenu error.
26676 (show_menu): Use grub_normal_get_char_counter.
26677 * normal/menu_entry.c (update_screen): Fix out-of-array.
26678 (complete): Avoid NULL dereferencing.
26679 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26680 * normal/menu_text.c (print_spaces): Removed.
26681 (grub_print_ucs4): Likewise.
26682 (grub_print_message_indented): Use grub_print_ucs4.
26683 (print_message): Use grub_putcode.
26684 (print_entry): Hanlde diacritics.
26685 * normal/term.c (term_state): New type.
26686 (grub_more_lines): Removed.
26687 (term_states): New variable.
26688 (grub_normal_line_counter): Renamed to ..
26689 (grub_normal_char_counter): ...this. All users updated.
26690 (grub_normal_get_line_counter): Renamed to ...
26691 (grub_normal_get_char_counter): ... this.
26692 (grub_normal_reset_more): New function.
26693 (process_newline): Removed.
26694 (print_more): New function.
26695 (grub_install_newline_hook): Removed.
26696 (map_code): New function.
26697 (grub_puts_terminal): Use grub_print_ucs4.
26698 (putglyph): New function.
26699 (putcode_real): Likewise.
26700 (grub_putcode): Use putcode_real.
26701 (get_maxwidth): New function.
26702 (get_startwidth): Likewise.
26703 (print_ucs4_terminal): Likewise.
26704 (find_term_state): Likewise.
26705 (put_glyphs_terminal): Likewise.
26706 (print_backlog): Likewise.
26707 (print_ucs4_real): Likewise.
26708 (grub_print_ucs4): Likewise.
26709 (grub_xputs_normal): Likewise.
26710 * term/efi/console.c (grub_console_putchar): Output diacritics.
26711 (grub_console_getcharwidth): Removed.
26712 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26713 * term/gfxterm.c (clear_char): Free chars.
26714 (scroll_up): Avoid leaking memory.
26715 (grub_gfxterm_putchar): Support diacritics.
26716 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26717 * term/i386/pc/console.c (grub_console_term_output): Declare as
26718 GRUB_TERM_CODE_TYPE_VGA.
26719 * term/i386/pc/vga.c (grub_vga_term): Declare as
26720 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26721 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26722 GRUB_TERM_CODE_TYPE_VGA.
26723 * term/i386/vga_common.c (map_char): Removed.
26724 (grub_console_putchar): Likewise.
26725 (grub_console_getcharwidth): Likewise.
26726 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26727 (colors): Reordered to match terminfo.
26728 (grub_ofconsole_normal_color): Removed.
26729 (grub_ofconsole_writeesc): Likewise.
26730 (grub_ofconsole_highlight_color): Likewise.
26731 (grub_ofconsole_getcharwidth): Likewise.
26732 (grub_ofconsole_setcolorstate): Likewise.
26733 (grub_ofconsole_setcolor): Likewise.
26734 (grub_ofconsole_getcolor): Likewise.
26735 (grub_ofconsole_readkey): Renamed to ...
26736 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26738 (grub_ofconsole_checkkey): Removed.
26739 (grub_ofconsole_getkey): Likewise.
26740 (grub_ofconsole_getxy): Likewise.
26741 (grub_ofconsole_gotoxy): Likewise.
26742 (grub_ofconsole_cls): Likewise.
26743 (grub_ofconsole_refresh): Likewise.
26744 (grub_ofconsole_terminfo_input): New struct.
26745 (grub_ofconsole_terminfo_output): Likewise.
26746 (grub_ofconsole_term_input): Use terminfo.
26747 (grub_ofconsole_term_output): Likewise.
26748 (grub_console_init): Split into ...
26749 (grub_console_init_early): ...this and ...
26750 (grub_console_init_lately): ...this. Use terminfo.
26751 (grub_ofconsole_putchar): Renamed to ...
26752 (put): ... this. Remove mapping.
26753 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26754 * term/serial.c: Simplify using terminfo.
26757 (keep_track): Likewise.
26758 (registered): Likewise.
26759 (input_buf): Likewise.
26760 (npending): Likewise.
26761 (serial_translate_key_sequence): Likewise.
26762 (fill_input_buf): Likewise.
26763 (grub_serial_checkkey): Likewise.
26764 (grub_serial_getkey): Likewise.
26765 (grub_serial_getxy): Likewise.
26766 (grub_serial_gotoxy): Likewise.
26767 (grub_serial_putchar): Likewise.
26768 (grub_serial_cls): Likewise.
26769 (grub_serial_setcolorstate): Likewise.
26770 (grub_serial_setcursor): Likewise.
26771 (serial_hw_init): Use serial_hw_fetch.
26772 (grub_serial_terminfo_input): New variable.
26773 (grub_serial_terminfo_output): Likewise.
26774 (grub_serial_term_input): Use terminfo.
26775 (grub_serial_term_output): Likewise.
26776 * term/terminfo.c (putstr): Use put.
26777 (grub_terminfo_all_free): New function
26778 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26779 (grub_terminfo_output_register): New function.
26780 (grub_terminfo_output_unregister): Likewise.
26781 (grub_terminfo_getxy): Likewise.
26782 (grub_terminfo_readkey): Likewise.
26783 (grub_terminfo_checkkey): Likewise.
26784 (grub_terminfo_getkey): Likewise.
26785 (grub_terminfo_input_init): Likewise.
26786 (print_terminfo): Likewise.
26787 (grub_cmd_terminfo): Handle encoding.
26788 (grub_terminfo_gotoxy): Track position.
26789 (grub_terminfo_cls): Likewise.
26790 (grub_terminfo_putchar): Likewise.
26791 (grub_terminfo_setcolorstate): Handle colors
26792 (grub_terminfo_cursor_on): This ...
26793 (grub_terminfo_cursor_off): ... and this merged into ...
26794 (grub_terminfo_setcursor): ... this.
26795 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26796 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26797 * unicode/BidiMirroring.txt: Likewise.
26798 * unicode/UnicodeData.txt: Likewise.
26799 * unicode/COPYING: Likewise.
26800 * util/grub-editenv.c (grub_putchar): Removed.
26801 (grub_xputs_real): New function.
26802 (grub_xputs): New variable.
26803 * util/grub-fstest.c (grub_putchar): Removed.
26804 (grub_xputs_real): New function.
26805 (grub_xputs): New variable.
26806 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26807 (grub_xputs_real): New function.
26808 (grub_xputs): New variable.
26809 * util/grub-probe.c (grub_putchar): Removed.
26810 (grub_xputs_real): New function.
26811 (grub_xputs): New variable.
26812 * util/grub-script-check.c (grub_putchar): Removed.
26813 (grub_xputs_real): New function.
26814 (grub_xputs): New variable.
26815 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26816 (grub_xputs_real): New function.
26817 (grub_xputs): New variable.
26818 * util/import_unicode.py: New file.
26819 * util/grub-mkfont.c (ft_errmsgs): New array.
26820 (grub_glyph_info): Make bitmap a pointer.
26821 (file_formats): New type WIDTH_SPEC.
26822 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26823 (options): Add width-spec.
26825 (add_char): Renamed to ...
26826 (add_glyph): ... this.
26827 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26828 (glyph_replace): New type.
26829 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26830 (add_char): New function.
26831 (add_subst): Likewise.
26832 (process_cursive): Likewise.
26833 (add_font): Handle GSUB.
26834 (write_font_width_spec): New function.
26835 (main): Sort glyphs.
26836 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26837 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26838 * kern/term.c (grub_cls): Moved from here...
26839 * normal/term.c (grub_cls): ... here.
26841 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26843 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26844 suitable for using within the format argument of printf when
26845 converting grub_size_t.
26846 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26847 "x" to convert grub_size_t arguments.
26849 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26851 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26853 (list_get_minimal_size): Take selection box into account.
26855 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26857 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26860 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26862 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26863 devices when iterating over /dev/disk/by-id; they will be handled
26864 later if appropriate, which they aren't always (e.g. LVM).
26866 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26868 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26869 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26871 (grub_halt): Likewise.
26872 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26874 (grub_halt): Don't return, even if all of shut-down, power-off, and
26877 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26879 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26880 arguments, not three.
26882 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26884 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26885 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26886 LVM-on-RAID is handled correctly.
26888 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26890 * docs/grub.texi (Changes from GRUB Legacy): New section.
26891 (Future): Fix typo.
26893 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26895 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26896 grub.d/README accidentally ends up executable for one reason or
26897 another. Ignore it.
26899 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26901 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26902 (gpt_partition_map_iterate): Support non-512B sectors.
26904 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26906 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26907 Tested by: Seth Goldberg.
26909 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26911 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
26912 Properly align mbi.
26913 Reported by: Seth Goldberg.
26915 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26917 * util/grub-mkrescue.in: Avoid module duplication.
26919 2010-07-01 Sean Finney <seanius@seanius.net>
26921 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
26923 2010-07-01 Sean Finney <seanius@seanius.net>
26925 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
26927 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26929 * disk/lvm.c (grub_lvm_checkvalue): New function.
26930 (grub_lvm_check_flag): Likewise.
26932 2010-07-01 Robert Millan <rmh@gnu.org>
26934 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
26935 Support 'p' as partition separator on kernel of FreeBSD (used
26937 (grub_util_biosdisk_get_grub_dev): Likewise.
26939 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26941 Yeeloong firmware port.
26943 * boot/mips/yeeloong/fwstart.S: New file.
26944 * bus/cs5536.c (gpiodump): New const.
26945 (set_io_space): New function.
26946 (set_iod): Likewise.
26947 (set_p2d): Likewise.
26948 (grub_cs5536_init_geode): Likewise.
26949 * commands/mips/yeeloong/lsspd.c: New file.
26950 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
26951 (serial_mod_SOURCES): New variable.
26952 (serial_mod_CFLAGS): Likewise.
26953 (serial_mod_LDFLAGS): Likewise.
26954 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
26955 term/terminfo.c and term/tparm.c.
26956 (pkglib_IMAGES): Add fwstart.img.
26957 (fwstart_img_SOURCES): New variable.
26958 (fwstart_img_CFLAGS): Likewise.
26959 (fwstart_img_ASFLAGS): Likewise.
26960 (fwstart_img_LDFLAGS): Likewise.
26961 (fwstart_img_FORMAT): Likewise.
26962 (pkglib_MODULES): Add lsspd.mod.
26963 (lsspd_mod_SOURCES): New variable.
26964 (lsspd_mod_CFLAGS): Likewise.
26965 (lsspd_mod_LDFLAGS): Likewise.
26966 (pkglib_MODULES): Add halt.mod.
26967 (halt_mod_SOURCES): New variable.
26968 (halt_mod_CFLAGS): Likewise.
26969 (halt_mod_LDFLAGS): Likewise.
26970 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
26971 (serial_mod_SOURCES): Removed.
26972 (serial_mod_CFLAGS): Likewise.
26973 (serial_mod_LDFLAGS): Likewise.
26974 * disk/ata.c (check_device): New function.
26975 (grub_ata_device_initialize): Use check_device.
26976 (grub_ata_iterate): Recheck devices.
26977 (grub_ata_open): Likewise.
26978 (grub_atapi_iterate): Likewise.
26979 (grub_atapi_open): Likewise.
26980 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
26981 (GRUB_ATA_CH1_PORT1): Likewise.
26982 (GRUB_ATA_CH0_PORT2): Likewise.
26983 (GRUB_ATA_CH1_PORT2): Likewise.
26984 * include/grub/mips/loongson.h: New file.
26985 * include/grub/mips/yeeloong/ec.h: Likewise.
26986 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
26987 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
26988 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
26989 * include/grub/misc.h (grub_halt): Declare as noreturn.
26990 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
26991 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
26992 (UART_ENABLE_FIFO_TRIGGER1): New definition.
26993 (UART_ENABLE_DTRRTS): Likewise.
26994 (UART_ENABLE_MODEM): Removed.
26995 (UART_ENABLE_OUT2): New const.
26996 * include/grub/term.h (grub_term_register_input_active): New function.
26997 (grub_term_register_output_active): Likewise.
26998 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27000 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27001 (init_pci): New function.
27002 (grub_machine_init): Execute platform init when firmware. Init serial.
27003 (grub_halt): Implement.
27004 (grub_exit): Likewise.
27005 (grub_reboot): Likewise.
27006 * term/serial.c (serial_hw_init): Update macros.
27007 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27008 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27009 (image_targets): New target mipsel-yeeloong-flash.
27010 (generate_image): Support IMAGE_YEELOONG_FLASH.
27011 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27012 (grub_video_sm712_setup): Init card.
27013 (grub_video_sm712_set_palette): Removed.
27014 * video/sm712_init.c: New file.
27016 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27018 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27019 PATH when running help2man and then run it on the unadorned
27020 executable names, rather than passing $(builddir)/* paths to
27021 help2man. This avoids the build directory ending up in generated
27024 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27026 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27027 to avoid accidents when debugging with 'sh -x'.
27028 * util/grub-mkrescue.in: Likewise.
27029 * util/grub.d/00_header.in: Likewise.
27030 * util/grub.d/10_hurd.in: Likewise.
27031 * util/grub.d/10_kfreebsd.in: Likewise.
27032 * util/grub.d/10_linux.in: Likewise.
27033 * util/grub.d/10_netbsd.in: Likewise.
27034 * util/grub.d/10_windows.in: Likewise.
27035 * util/grub.d/20_linux_xen.in: Likewise.
27036 * util/grub.d/30_os-prober.in: Likewise.
27037 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27039 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27041 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27042 last character in the buffer.
27043 Reported by: Vladimir Serbinenko.
27045 2010-06-29 Robert Millan <rmh@gnu.org>
27047 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27048 (Command-line and menu entry commands): Document `badram' command.
27050 2010-06-28 Robert Millan <rmh@gnu.org>
27052 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27053 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27054 command using ${GRUB_BADRAM} as parameter.
27056 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27058 * docs/grub.texi (Device map): New section.
27059 (Themes): New section (stub).
27060 * Makefile.in (docs/grub.info): The info documentation now builds
27061 without errors. Make sure it stays that way.
27063 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27065 Use normal parser for menu entries.
27066 Reported by: Thomas Frauendorfer
27068 * include/grub/parser.h (grub_parser_execute): Don't export.
27069 * normal/menu.c (grub_menu_execute_entry_real): New function.
27070 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27072 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27074 * docs/grub.texi (Embedded configuration): New section (replacing
27075 old "Preset Menu" stub).
27076 (Images): New section.
27077 (configfile): Note that any menu entries defined in `file' are shown
27080 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27082 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27084 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27086 * util/grub-install.in: Add --debug-image= option.
27088 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27090 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27093 * util/deviceiter.c (check_device): Rename to ...
27094 (check_device_readable_unique): ... this. Update all callers.
27095 Maintain and check a list of which devices (by canonicalized name)
27096 have already been seen.
27097 (clear_seen_devices): New function.
27098 (compare_file_names) [__linux__]: New function.
27099 (grub_util_iterate_devices): Clear the list of seen devices on exit
27100 and (just in case) on entry.
27101 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27102 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27103 seen-devices list, superseded by general code in check_device.
27105 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27107 * commands/cat.c (options): New variable.
27108 (grub_cmd_cat): Parse options. If the --dos option is given, print
27109 DOS-style "\r\n" line endings as simple newlines (Debian bug
27111 (GRUB_MOD_INIT): Use extcmd.
27112 (GRUB_MOD_FINI): Likewise.
27113 * docs/grub.texi (cat): Document --dos.
27115 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27117 XEN with Linux grub-mkconfig support.
27119 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27120 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27121 GRUB_CMDLINE_XEN_DEFAULT.
27122 * util/grub.d/20_linux_xen.in: New file.
27124 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27126 Initialise VGA video on qemu ourselves.
27128 * boot/i386/qemu/boot.S: Don't call 0xc000.
27129 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27130 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27131 (kernel_img_HEADERS): Add pci.h.
27132 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27133 * configure.ac: Force unifont on qemu and yeeloong.
27134 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27135 (grub_vga_palette_write): Use correct register.
27136 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27137 Call grub_qemu_init_cirrus.
27138 * kern/i386/qemu/init.c: New file.
27139 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27141 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27143 2010-06-26 Pavel Roskin <proski@gnu.org>
27145 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27148 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27150 * docs/grub.texi (Simple configuration): Explain that
27151 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27152 set to `true' to disable their respective recovery entries, not
27155 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27157 Make the `source' command slightly faster.
27159 * normal/main.c (grub_normal_execute): Don't re-read list files when
27162 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27164 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27165 field position and mask size to red fields from mode_info, not
27167 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27168 Remove redundant tag->common.framebuffer_type assignment.
27169 Reported by: Seth Goldberg.
27171 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27173 Sync up other versions of the Linux loader with Robert Millan's
27174 change of 2010-01-09, "Make loader output a bit more user-friendly".
27176 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27178 (grub_cmd_linux): Likewise.
27179 (grub_cmd_initrd): Likewise.
27180 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27181 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27183 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27185 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27186 larger than MEMORY_MAP_SIZE.
27188 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27190 Fix parallel build.
27192 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27194 * script/parser.y: #include grub_script.tab.h header.
27196 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27198 Support >3GiB and <16MiB RAM in i386-qemu.
27200 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27201 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27202 (grub_lower_mem): Removed.
27203 (grub_upper_mem): Likewise.
27204 (mem_size): Made static.
27205 (above_4g): New variable.
27206 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27207 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27210 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27212 Cirrus 5446 and Bochs video cards support.
27214 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27216 (video_cirrus_mod_SOURCES): New variable.
27217 (video_cirrus_mod_CFLAGS): Likewise.
27218 (video_cirrus_mod_LDFLAGS): Likewise.
27219 (video_bochs_mod_SOURCES): Likewise.
27220 (video_bochs_mod_CFLAGS): Likewise.
27221 (video_bochs_mod_LDFLAGS): Likewise.
27222 * include/grub/vga.h: New file.
27223 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27224 (grub_video_fb_set_page_t): New type.
27225 (grub_video_fb_setup): New prototype.
27226 (grub_video_fb_swap_buffers): Likewise.
27227 (grub_video_fb_get_info_and_fini): Likewise.
27228 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27229 (CRTC_DATA_PORT): Likewise.
27230 (CRTC_CURSOR): Likewise.
27231 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27232 (CRTC_CURSOR_ADDR_LOW): Likewise.
27233 (CRTC_CURSOR_DISABLE): Likewise.
27234 (update_cursor): Use grub_vga_cr_write.
27235 (grub_vga_text_setcursor): Likewise.
27236 * video/bochs.c: New file.
27237 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27238 (palette): Likewise.
27239 (palette_size): Likewise.
27240 (framebuffer): New variable.
27241 (grub_video_fb_init): Use 'framebuffer'.
27242 (grub_video_fb_fini): Likewise.
27243 (grub_video_fb_get_info): Likewise.
27244 (grub_video_fb_get_palette): Likewise.
27245 (grub_video_fb_set_palette): Likewise.
27246 (grub_video_fb_set_viewport): Likewise.
27247 (grub_video_fb_get_viewport): Likewise.
27248 (grub_video_fb_map_color): Likewise.
27249 (grub_video_fb_map_rgb): Likewise.
27250 (grub_video_fb_map_rgba): Likewise.
27251 (grub_video_fb_unmap_color): Likewise.
27252 (grub_video_fb_unmap_color_int): Likewise.
27253 (grub_video_fb_fill_rect): Likewise.
27254 (grub_video_fb_blit_bitmap): Likewise.
27255 (grub_video_fb_blit_render_target): Likewise.
27256 (grub_video_fb_scroll): Likewise.
27257 (grub_video_fb_create_render_target): Likewise.
27258 (grub_video_fb_doublebuf_blit_init): Likewise.
27259 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27260 (doublebuf_pageflipping_update_screen): New function.
27261 (doublebuf_pageflipping_init): Likewise.
27262 (grub_video_fb_setup): Likewise.
27263 (grub_video_fb_swap_buffers): Likewise.
27264 (grub_video_fb_get_info_and_fini): Likewise.
27265 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27267 (doublebuf_pageflipping_commit): Restructured into ...
27268 (doublebuf_pageflipping_set_page): ... this.
27269 (doublebuf_pageflipping_update_screen): Removed.
27270 (doublebuf_pageflipping_init): Likewise.
27271 (double_buffering_init): Likewise.
27272 (grub_video_vbe_setup): Use grub_video_fb_setup.
27273 (grub_video_vbe_swap_buffers): Removed.
27274 (grub_video_vbe_set_active_render_target): Likewise.
27275 (grub_video_vbe_get_active_render_target): Likewise.
27276 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27277 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27278 grub_video_fb_set_active_render_target and
27279 grub_video_fb_get_active_render_target.
27280 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27281 (SEQUENCER_DATA_PORT): Likewise.
27282 (MAP_MASK_REGISTER): Likewise.
27283 (CRTC_ADDR_PORT): Likewise.
27284 (CRTC_DATA_PORT): Likewise.
27285 (START_ADDR_HIGH_REGISTER): Likewise.
27286 (START_ADDR_LOW_REGISTER): Likewise.
27287 (GRAPHICS_ADDR_PORT): Likewise.
27288 (GRAPHICS_DATA_PORT): Likewise.
27289 (READ_MAP_REGISTER): Likewise.
27290 (INPUT_STATUS1_REGISTER): Likewise.
27291 (INPUT_STATUS1_VERTR_BIT): Likewise.
27292 (get_map_mask): Use grub_vga_sr_read.
27293 (set_map_mask): Use grub_vga_sr_write.
27294 (set_read_map): Use grub_vga_gr_write.
27295 (set_start_address): Use grub_vga_cr_write.
27296 * video/sm712.c (framebuffer): Remove leftover fields.
27298 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27300 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27301 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27302 instead. Replace the gfxterm backend check with a check that
27303 ${GRUB_PREFIX}/video.lst is non-empty.
27304 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27306 (load_video): New generated function. Call it before loading
27307 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27308 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27309 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27310 * docs/grub.texi (Simple configuration): Document
27311 GRUB_VIDEO_BACKEND.
27313 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27315 Use video functions in linux and xnu loaders.
27317 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27318 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27319 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27320 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27321 loader/i386/pc/linux.c.
27322 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27323 (find_line_len): Removed.
27324 (find_framebuf): Likewise.
27325 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27326 * loader/i386/efi/xnu.c: Removed.
27327 * loader/i386/pc/xnu.c: Moved from here...
27328 * loader/i386/xnu.c: ...here.
27330 Enable priorities in video drivers.
27332 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27333 (grub_video_adapter): New field prio.
27334 (grub_video_register): Respect prio when inserting.
27335 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27336 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27337 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27338 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27339 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27340 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27341 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27345 * include/grub/video.h (grub_video_driver_id_t): New value
27346 GRUB_VIDEO_DRIVER_SDL.
27347 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27349 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27351 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27352 argument to printf.
27353 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27355 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27357 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27358 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27360 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27362 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27363 directly, and recommend grub-install instead.
27364 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27366 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27368 Fix i386-pc prefix handling with nested partitions (Debian bug
27369 #585068). Note that the case where the core image is booted using
27370 multiboot and relocated from its original location still requires
27373 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27374 with "(,", fill the boot drive in between those two characters, but
27375 expect that a full partition specification including partition map
27377 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27378 specified, write a prefix without the drive name but including a
27379 full partition specification.
27381 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27383 * util/grub-mkconfig.in: Ignore non-option arguments, for
27384 compatibility with older versions (before 2010-06-12) which did the
27385 same. In particular, this makes it easier to ship an update-grub
27386 wrapper which is compatible with that used with GRUB Legacy (Debian
27389 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27391 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27392 for manual page generation.
27394 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27396 * po/POTFILES: Remove leftover commands/handler.c.
27398 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27400 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27401 left this script non-functional.
27403 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27405 * docs/man/grub-emu.h2m: New file.
27407 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27409 * docs/grub.texi (Commands): Document reduced command set in rescue
27411 (cpuid): New section.
27413 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27415 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27416 new partition naming style.
27417 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27419 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27421 Add "-o grub.iso" like cmdline options support.
27423 * util/grub-install.in: Improve cmdline option parsing.
27424 * util/grub-mkconfig.in: Likewise.
27425 * util/grub-mkrescue.in: Likewise.
27426 * util/grub-reboot.in: Likewise.
27427 * util/grub-set-default.in: Likewise.
27428 * util/i386/efi/grub-install.in: Likewise.
27429 * util/ieee1275/grub-install.in: Likewise.
27430 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27432 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27434 * .bzrignore: Ignore 41_custom.
27436 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27438 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27440 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27442 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27443 prototype declarations.
27445 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27446 generating fs, partmap, and video lists.
27447 * include/grub/fs.h (grub_fs_register): Omit prototype if
27448 GRUB_LST_GENERATOR is defined.
27449 * include/grub/partition.h (grub_partition_map_register): Likewise.
27450 * include/grub/video.h (grub_video_register): Likewise.
27452 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27454 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27456 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27458 * util/grub-mkrescue.in: Support --xorriso argument.
27460 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27462 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27463 Suggested by: Thomas Schmitt.
27465 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27467 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27468 Suggested by: Thomas Schmitt.
27470 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27472 custom.cfg support.
27474 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27475 * util/grub.d/41_custom.in: New file.
27477 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27479 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27480 been merged back into normal.
27482 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27484 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27485 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27487 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27489 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27490 when generating manual pages.
27491 * docs/man/grub-bin2h.h2m: New file.
27492 * docs/man/grub-editenv.h2m: New file.
27493 * docs/man/grub-fstest.h2m: New file.
27494 * docs/man/grub-install.h2m: New file.
27495 * docs/man/grub-macho2img.h2m: New file.
27496 * docs/man/grub-mkconfig.h2m: New file.
27497 * docs/man/grub-mkdevicemap.h2m: New file.
27498 * docs/man/grub-mkfont.h2m: New file.
27499 * docs/man/grub-mkimage.h2m: New file.
27500 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27501 * docs/man/grub-mkrelpath.h2m: New file.
27502 * docs/man/grub-mkrescue.h2m: New file.
27503 * docs/man/grub-ofpathname.h2m: New file.
27504 * docs/man/grub-pe2elf.h2m: New file.
27505 * docs/man/grub-probe.h2m: New file.
27506 * docs/man/grub-reboot.h2m: New file.
27507 * docs/man/grub-script-check.h2m: New file.
27508 * docs/man/grub-set-default.h2m: New file.
27509 * docs/man/grub-setup.h2m: New file.
27511 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27513 Use FOR_* macros instead of *_iterate whenever possible.
27515 * commands/handler.c: Removed.
27516 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27517 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27518 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27519 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27520 (grub_probe_SOURCES): Remove kern/parser.c.
27521 (util/grub-script-check.c_DEPENDENCIES): Removed.
27522 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27523 and grub_script_check_init.c.
27524 (grub_script_check_init.lst): Removed.
27525 (grub_script_check_init.h): Likewise.
27526 (grub_script_check_init.c): Likewise.
27527 (pkglib_MODULES): Remove handler.mod and sh.mod.
27528 (handler_mod_SOURCES): Removed.
27529 (handler_mod_CFLAGS): Likewise.
27530 (handler_mod_LDFLAGS): Likewise.
27531 (normal_mod_SOURCES): Remove normal/handler.c.
27532 Add script/main.c, script/script.c, script/execute.c,
27533 script/function.c, script/lexer.c, grub_script.tab.c
27534 and grub_script.yy.c.
27535 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27536 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27537 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27538 (grub_setup_SOURCES): Remove kern/parser.c.
27539 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27540 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27541 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27542 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27543 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27544 (grub_setup_SOURCES): Remove kern/parser.c.
27545 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27546 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27547 * include/grub/command.h (grub_command_iterate): Removed.
27548 (FOR_COMMANDS): New macro.
27549 * include/grub/dl.h (grub_dl): New member next.
27550 (grub_dl_iterate): Removed.
27551 (grub_dl_head): New variable declaration.
27552 (FOR_DL_MODULES): New macro.
27553 * include/grub/fs.h: Include list.h.
27554 (grub_fs): Make next first element.
27555 (grub_fs_list): New variable declaration.
27556 (grub_fs_register): Make inline.
27557 (grub_fs_unregister): Likewise.
27558 (grub_fs_iterate): Removed.
27559 (FOR_FILESYSTEMS): New macro.
27560 * include/grub/handler.h: Removed.
27561 * include/grub/list.h (grub_list_hook_t): Removed.
27562 (grub_list_test_t): Likewise.
27563 (grub_list_pop): Likewise.
27564 (grub_list_iterate): Likewise.
27565 (grub_list_insert): Likewise.
27566 (FOR_LIST_ELEMENTS): New macro.
27567 * include/grub/parser.h (grub_parser_class): Removed.
27568 (grub_parser_register): Likewise.
27569 (grub_parser_unregister): Likewise.
27570 (grub_parser_get_current): Likewise.
27571 (grub_parser_set_current): Likewise.
27572 (grub_register_rescue_parser): Likewise.
27573 (grub_rescue_parse_line): New function.
27574 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27575 * include/grub/script_sh.h (grub_script_function_list): New variable
27577 (FOR_SCRIPT_FUNCTIONS): New macro.
27578 (grub_script_function_iterate): Removed.
27579 (grub_normal_parse_line): New prototype.
27580 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27581 (FOR_DISABLED_TERM_INPUTS): Likewise.
27582 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27583 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27584 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27586 (grub_video_register): Inline.
27587 (grub_video_unregister): Likewise.
27588 (grub_video_adapter_list): New variable declaration.
27589 (grub_video_iterate): Removed.
27590 (FOR_VIDEO_ADAPTERS): New macro.
27591 * kern/dl.c (grub_dl_list): Removed. All users updated.
27592 (grub_dl_iterate): Removed.
27593 * kern/fs.c (grub_fs_list): Make global.
27594 (grub_fs_register): Removed.
27595 (grub_fs_unregister): Likewise.
27596 (grub_fs_iterate): Likewise.
27597 * kern/handler.c: Removed.
27598 * kern/list.c (grub_list_pop): Removed.
27599 (grub_list_iterate): Likewise.
27600 (grub_list_insert): Likewise.
27601 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27602 (grub_prio_list_insert): Don't use grub_list_insert.
27603 * kern/main.c (grub_register_rescue_parser): Don't call
27604 grub_register_rescue_parser.
27605 * kern/parser.c (grub_parser_class): Removed.
27606 (grub_parser_execute): Use grub_rescue_parse_line.
27607 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27608 (grub_rescue_parser): Removed.
27609 (grub_register_rescue_parser): Likewise.
27610 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27611 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27612 (grub_auth_check_authentication): Likewise.
27613 * normal/completion.c (iterate_command): Removed.
27614 (grub_normal_do_completion): Use FOR_COMMANDS.
27615 * normal/handler.c: Removed.
27616 * normal/main.c (read_config_file): Remove parser changing.
27617 (grub_normal_execute): Don't call read_handler_list.
27618 (grub_normal_read_line_real): Statically allocate prompt.
27619 (grub_cmdline_run): Use grub_normal_parse_line.
27620 (GRUB_MOD_FINI): Don't call free_handler_list.
27621 * normal/menu_entry.c (run): Likewise.
27622 * script/function.c (grub_script_function_list): Make global.
27623 (grub_script_function_iterate): Removed.
27624 * script/main.c (grub_normal_parse_line): Make global.
27625 (grub_sh_parser): Removed.
27626 (GRUB_MOD_INIT): Likewise.
27627 (GRUB_MOD_FINI): Likewise.
27628 * tests/lib/functional_test.c (grub_functional_test): Use
27630 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27631 (grub_test_run): Use FOR_LIST_ELEMENTS.
27632 * tests/lib/unit_test.c (main): Likewise.
27633 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27635 * util/grub-fstest.c (grub_term_input_class): Removed.
27636 (grub_term_output_class): Likewise.
27637 * util/grub-probe.c: Likewise.
27638 * util/i386/pc/grub-setup.c: Likewise.
27639 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27640 * util/grub-script-check.c (main): Don't call grub_init_all and
27642 * video/video.c (grub_video_adapter_list): Make global.
27643 (grub_video_register): Removed.
27644 (grub_video_unregister): Likewise.
27645 (grub_video_iterate): Likewise.
27647 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27649 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27650 reported by Henrique Ferreiro.
27652 2010-06-09 Robert Millan <rmh@gnu.org>
27654 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27655 ones, when both are available.
27657 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27659 Make --version uniform and avoid hard-coded program name.
27661 * util/grub-mkimage.c (main): Use `program_name' instead of
27663 * util/i386/pc/grub-setup.c (main): Likewise.
27664 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27665 * util/grub-install.in: Save the basename of $0 in $self, and use the
27666 latter in informational messages. Use the same format for --version
27667 as the binary programs.
27668 * util/grub-mkconfig.in: Likewise.
27669 * util/grub-mkrescue.in: Likewise.
27670 * util/grub-reboot.in: Likewise.
27671 * util/grub-set-default.in: Likewise.
27672 * util/i386/efi/grub-install.in: Likewise.
27673 * util/ieee1275/grub-install.in: Likewise.
27674 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27676 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27678 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27679 embedding area. Use <= instead of == when checking for non-emptiness.
27681 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27683 * configure.ac: Add `.' to the directories searched for unifont.
27685 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27687 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27690 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27692 * docs/grub.texi (History): Expand to cover GRUB 2.
27693 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27694 commands, not `terminal'.
27695 (serial): Likewise.
27696 (terminal_input): New section.
27697 (terminal_output): New section.
27698 (uppermem): New section (stub).
27699 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27701 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27703 * docs/grub.texi (Security): Menu entries are unrestricted by
27704 default, not restricted to superusers as I had previously thought.
27705 Reword to account for this.
27707 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27709 * kern/emu/misc.c (device_mapper_null_log): New function.
27710 (grub_device_mapper_supported): New function.
27711 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27713 * kern/emu/hostdisk.c (find_partition_start): Check whether
27714 device-mapper is supported before trying to use it.
27715 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27717 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27719 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27720 (File name syntax): Likewise.
27721 (help): --all is no longer supported in GRUB 2. Be more precise
27722 about pattern matching.
27724 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27726 * normal/completion.c (grub_normal_do_completion): When completing
27727 arguments to "set" and the current word contains an equals sign,
27728 skip to after the equals sign before starting completion.
27730 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27732 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27734 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27736 * docs/grub.texi (Network): New section.
27737 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27738 `(nd)' as in GRUB Legacy.
27739 (pxe_unload): New section.
27741 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27743 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27744 in the rescue shell, so recommend using `set' instead. Thanks,
27747 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27749 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27750 (password): New section.
27751 (password_pbkdf2): New section.
27752 (search): New section.
27753 (Security): New section.
27754 (Troubleshooting): New section, currently very incomplete.
27755 (Invoking grub-mkpasswd-pbkdf2): New section.
27756 (Internals): New section, currently very incomplete.
27758 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27760 * util/grub.d/00_header.in: Add some more quoting (of
27761 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27763 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27765 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27767 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27768 to `count', fixing variable shadowing that broke the -c option.
27770 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27772 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27773 in case they contain spaces.
27775 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27777 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27778 "part_" to partmap module names, in line with grub-install.
27779 Reported by: Jindřich Makovička (Debian bug #584426).
27781 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27783 * util/grub-mkimage.c: Make target-related error messages slightly
27784 more helpful; -O talks about "format". Explicitly point to the use
27785 of -O if no target is specified.
27786 Reported by: Didier Raboud (Debian bug #584415).
27788 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27790 * INSTALL: Document several build requirements for optional features
27791 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27793 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27795 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27796 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27797 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27799 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27801 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27802 Thanks to Jordan Uggla for spotting this.
27804 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27806 Finally make USB usable.
27808 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27809 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27810 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27811 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27812 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27813 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27814 (GRUB_OHCI_FSMPS): Likewise.
27815 (GRUB_OHCI_PERIODIC_START): Likewise.
27816 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27817 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27818 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27819 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27820 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27821 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27822 (grub_ohci_transaction): Likewise.
27823 (grub_ohci_transfer): Improve condition detection algorithms.
27824 Handle toggle property. Program the transactions correctly.
27825 Improve error handling. Various important fixups.
27826 (grub_ohci_portstatus): Put register writes in right order.
27827 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27828 (grub_uhci_transfer): Don't show "failed" message on success.
27829 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27831 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27832 determine its size.
27833 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27834 before initialization is completed. Use IN direction for empty
27835 transfers. Use last_trans and compute toggle.
27836 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27837 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27838 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27839 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27840 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27841 (grub_usb_device): Increase toggle to 256.
27842 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27843 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27844 GRUB_USBMS_SUBCLASS_SFF8070.
27845 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27846 (grub_scsi_inquiry): New member page and alloc_length.
27847 (grub_scsi_request_sense): New structure.
27848 (grub_scsi_request_sense_data): Likewise.
27849 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27851 * disk/scsi.c (grub_scsi_request_sense): New function.
27852 (grub_scsi_test_unit_ready): Likewise.
27853 (grub_scsi_inquiry): Fill new fields.
27854 (grub_scsi_read_capacity): Likewise.
27855 (grub_scsi_read10): Add request sense at the end.
27856 (grub_scsi_read12): Likewise.
27857 (grub_scsi_write10): Likewise.
27858 (grub_scsi_write12): Likewise.
27859 (grub_scsi_open): Add Test Unit Ready.
27860 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27861 Support additional subclasses. Con't clear halt yet. Activate the
27862 proper config. Calculate LUNs correctly.
27863 (grub_usbms_transfer): Various important fixups.
27865 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27867 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27868 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27869 (grub_ohci_fini_hw): New function.
27870 (grub_ohci_restore_hw): Likewise.
27871 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27872 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27873 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27875 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27877 Dedicated DMA allocations.
27879 * bus/pci.c (grub_memalign_dma32): New function
27880 (grub_dma_free): Likewise.
27881 (grub_dma_get_virt): Likewise.
27882 (grub_dma_get_phys): Likewise.
27883 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27884 (grub_ohci_pci_iter): Use dma32_alloc.
27885 (grub_ohci_transfer): Likewise.
27886 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27887 (grub_usb_bulk_readwrite): Likewise.
27888 * include/grub/pci.h: Add declarations.
27890 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27894 * bus/cs5536.c: New file.
27895 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27896 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27897 (cs5536_mod_SOURCES): New variable.
27898 (cs5536_mod_CFLAGS): Likewise.
27899 (cs5536_mod_LDFLAGS): Likewise.
27900 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27902 (kernel_img_SOURCES): Add bus/cs5536.c.
27903 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27905 (usb_mod_SOURCES): New variable.
27906 (usb_mod_CFLAGS): New variable.
27907 (usb_mod_LDFLAGS): New variable.
27908 (usbtest_mod_SOURCES): New variable.
27909 (usbtest_mod_CFLAGS): New variable.
27910 (usbtest_mod_LDFLAGS): New variable.
27911 (ohci_mod_SOURCES): New variable.
27912 (ohci_mod_CFLAGS): New variable.
27913 (ohci_mod_LDFLAGS): New variable.
27914 (usbms_mod_SOURCES): New variable.
27915 (usbms_mod_CFLAGS): New variable.
27916 (usbms_mod_LDFLAGS): New variable.
27917 (usb_keyboard_mod_SOURCES): New variable.
27918 (usb_keyboard_mod_CFLAGS): New variable.
27919 (usb_keyboard_mod_LDFLAGS): New variable.
27920 * include/grub/smbus.h: New file.
27921 * include/grub/cs5536.h: New file.
27923 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27925 * util/grub.d/00_header.in: Add safety check to make sure that
27926 ${locale_dir} exists before trying to probe it.
27928 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27930 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
27931 per the GNU Coding Standards; this is now too obscure to be worth
27934 (chainloader): Remove cross-reference to `SCO UnixWare'.
27936 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27938 * docs/grub.texi (Chain-loading): New section.
27939 (DOS/Windows): New section, borrowed from GRUB Legacy with details
27940 adjusted for GRUB 2.
27941 (SCO UnixWare): Likewise.
27943 (chainloader): Add reference to `Block list syntax'.
27944 (drivemap): New section.
27945 (parttool): New section.
27947 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27949 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
27951 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
27952 (Installing GRUB using grub-install): Remove reference to the grub
27953 shell; mention `grub-mkimage' and `grub-setup' instead.
27954 (Invoking grub-install): Likewise.
27955 (Interface): Add reference to `Menu entry editor'.
27956 (serial): Remove `--device' option.
27958 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27960 * docs/grub.texi (Configuration): New section, documenting
27961 configuration file generation using grub-mkconfig. I've left a slot
27962 for documenting the full shell scripting format but have not yet
27963 started on writing that up.
27964 (Invoking grub-mkconfig): New section.
27966 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27968 * docs/grub.texi (direntry): Remove grub-terminfo reference.
27969 (GNU GRUB manual): Likewise.
27970 (General commands): Update description of `terminfo' for GRUB 2.
27972 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27974 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
27975 (GRUB_MOD_INIT): Fix capitalisation.
27976 * docs/grub.texi (Command-line and menu entry commands): Document
27977 gettext and gptsync commands.
27979 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27981 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
27982 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
27984 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
27986 Add btrfs probing support, currently only in the single-device case.
27988 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
27990 (grub_guess_root_device): Call find_root_device_from_mountinfo
27991 before looking in /dev.
27993 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27995 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
27996 GRUB_DISK_SIZE_UNKNOWN.
27997 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
27999 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28001 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28002 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28003 corrupted or not synced properly.
28005 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28007 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28008 Reported by: Seth Goldberg.
28010 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28012 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28014 Reported by: Seth Goldberg.
28016 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28018 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28019 Reported by: Seth Goldberg.
28021 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28023 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28024 64-bit address as signed on MIPS.
28026 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28028 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28029 to the empty string.
28031 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28033 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28035 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28036 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28037 * kern/misc.c (__enable_execute_stack): Disable on
28040 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28042 Make grub-probe work with symbolic links under /dev/mapper as well
28043 as with real block devices. The Linux world seems to be (at best)
28044 in transition here, and GRUB shouldn't get caught in the middle.
28046 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28049 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28051 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28052 input files (in which case exit zero).
28054 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28056 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28057 return NULL for various reasons even if it has a maximum-length
28058 buffer: for example, there might be a symlink loop, or the path
28059 might exceed PATH_MAX. If this happens, return NULL.
28061 2010-05-27 Robert Millan <rmh@gnu.org>
28063 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28064 partmap module to handle cross-partmap setups.
28065 Reported by Orestes Mas. Gràcies!
28067 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28069 * util/grub-mkrescue.in: Initialise override_dir rather than
28070 assuming that it's unset or empty in the environment.
28072 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28074 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28075 variable index into p_index to suppress a warning with -Wshadow.
28077 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28079 * INSTALL: Added flex >= 2.5.35 requirement.
28081 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28083 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28085 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28089 * commands/i386/cmostest.c: New file.
28090 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28091 (cmostest_mod_SOURCES): New variable.
28092 (cmostest_mod_CFLAGS): Likewise.
28093 (cmostest_mod_LDFLAGS): Likewise.
28094 * conf/i386-pc.rmk: Likewise.
28095 * docs/grub.texi (Vendor power-on keys): New section.
28096 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28097 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28098 and GRUB_BUTTON_CMOS_ADDRESS.
28099 * util/grub.d/00_header.in: Handle powering-on by separate button.
28101 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28103 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28104 Removed drawing_scrollbar argument. All users updated
28106 Reported by Jo Shields
28108 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28110 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28111 buffer since gfxterm handles double repaint.
28113 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28115 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28116 * term/gfxterm.c (real_scroll): Likewise.
28118 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28120 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28121 before calling BIOS.
28123 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28125 * include/grub/i18n.h: Always enable grub_gettext.
28127 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28129 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28130 partition naming style.
28132 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28134 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28135 not the first option.
28137 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28139 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28141 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28143 * util/misc.c: Move inclusion of <limits.h> to ...
28144 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28146 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28148 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28149 Fix merge error in NetBSD code.
28150 (find_partition_start) [__NetBSD__]: Likewise.
28152 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28154 Fix grub-mkrescue usage unit testing.
28156 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28158 2010-05-18 Christian Franke <franke@computer.org>
28160 * util/grub.d/10_windows.in: Use path names instead of
28161 drive letters to prevent warning from Cygwin 1.7.
28162 Add drivemap command to menuentry if needed.
28164 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28166 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28167 gnumach and gnumach.gz.
28169 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28171 * include/grub/i18n.h (gettext): Inline instead of using #define.
28172 (grub_gettext): Likewise.
28175 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28177 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28178 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28179 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28180 (main): Add a slash after pkglibdirroot.
28182 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28184 * util/grub-install.in: Add missing "in" keyword.
28186 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28188 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28189 Reported by: Seth Goldberg.
28191 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28193 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28195 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28197 * configure.ac: Check for Linux device-mapper support.
28199 * util/hostdisk.c (device_is_mapped): New function.
28200 (find_partition_start): New function, partly broken out from
28201 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28202 device-mapper support added.
28203 (linux_find_partition): Use find_partition_start.
28204 (convert_system_partition_to_system_disk): Add `st' argument.
28205 Support Linux /dev/mapper/* devices if device-mapper support is
28206 available; only DM-RAID devices are understood at present.
28207 (find_system_device): Add `st' argument. Pass it to
28208 convert_system_partition_to_system_disk.
28209 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28210 find_system_device and convert_system_partition_to_system_disk. Use
28211 find_partition_start.
28213 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28214 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28215 * util/deviceiter.c [__linux__]: Define MINOR.
28216 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28217 * util/mkdevicemap.c (grub_putchar): New function.
28218 (grub_getkey): New function.
28219 (grub_refresh): New function.
28220 (main): Set debug=all if -v -v is used.
28222 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28224 Fix build with non-GNU libcs.
28226 * util/misc.c (canonicalize_file_name): Move to ...
28227 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28228 grub_make_system_path_relative_to_its_root.
28230 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28232 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28233 we handle finding grub-mkimage. Default to finding grub-mkimage in
28234 ${bindir} with program_transform_name applied, and provide a
28235 --grub-mkimage option to override this.
28237 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28239 Remove grub-mkisofs.
28241 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28242 (grub_mkisofs_SOURCES): Removed.
28243 (grub_mkisofs_CFLAGS): Removed.
28244 * util/mkisofs/defaults.h: Removed.
28245 * util/mkisofs/eltorito.c: Likewise.
28246 * util/mkisofs/exclude.h: Likewise.
28247 * util/mkisofs/hash.c: Likewise.
28248 * util/mkisofs/include/: Likewise.
28249 * util/mkisofs/include/fctldefs.h: Likewise.
28250 * util/mkisofs/include/mconfig.h: Likewise.
28251 * util/mkisofs/include/prototyp.h: Likewise.
28252 * util/mkisofs/include/statdefs.h: Likewise.
28253 * util/mkisofs/iso9660.h: Likewise.
28254 * util/mkisofs/joliet.c: Likewise.
28255 * util/mkisofs/match.c: Likewise.
28256 * util/mkisofs/match.h: Likewise.
28257 * util/mkisofs/mkisofs.c: Likewise.
28258 * util/mkisofs/mkisofs.h: Likewise.
28259 * util/mkisofs/msdos_partition.h: Likewise.
28260 * util/mkisofs/multi.c: Likewise.
28261 * util/mkisofs/name.c: Likewise.
28262 * util/mkisofs/rock.c: Likewise.
28263 * util/mkisofs/tree.c: Likewise.
28264 * util/mkisofs/write.c: Likewise.
28266 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28268 Unify grub-mkimage accross platforms.
28270 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28271 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28272 (grub_mkelfimage_SOURCES): Removed.
28273 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28274 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28275 (bin_UTILITIES): Add grub-mkimage.
28276 (grub_mkimage_SOURCES): New variable.
28277 (kernel_img_HEADERS): Remove machine/kernel.h.
28278 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28279 (pkglib_PROGRAMS): Add kernel.img.
28280 (kernel_img_HEADERS): Add machine/kernel.h.
28281 (kernel_img_FORMAT): Removed.
28282 (bin_UTILITIES): Remove grub-mkimage.
28283 (grub_mkimage_SOURCES): Removed.
28284 (grub_mkimage_CFLAGS): Likewise.
28285 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28286 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28287 (pkglib_PROGRAMS): Add kernel.img.
28288 (bin_UTILITIES): Remove grub-mkimage.
28289 (grub_mkimage_SOURCES): Removed.
28290 (grub_mkimage_CFLAGS): Likewise.
28291 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28292 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28293 (pkglib_PROGRAMS): Add kernel.img.
28294 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28295 (pkglib_PROGRAMS): Add kernel.img.
28296 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28297 (grub_mkimage_SOURCES): Removed.
28298 (grub_mkimage_CFLAGS): Likewise.
28299 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28300 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28301 (pkglib_PROGRAMS): Add kernel.img.
28302 (bin_UTILITIES): Remove grub-mkimage.
28303 (grub_mkimage_SOURCES): Removed.
28304 (grub_mkimage_CFLAGS): Likewise.
28305 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28306 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28307 (grub_mkimage_SOURCES): Removed.
28308 (grub_mkimage_CFLAGS): Likewise.
28309 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28310 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28311 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28312 (grub_pe32_optional_header): ... this.
28313 (grub_pe64_optional_header): ... and this. All users updated.
28314 (GRUB_PE32_PE32_MAGIC): Split into ..
28315 (GRUB_PE32_PE32_MAGIC): .. this.
28316 (GRUB_PE32_PE64_MAGIC): .. and this.
28317 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28318 * include/grub/elf.h (PT_GNU_STACK): New definition.
28319 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28320 * include/grub/i386/efi/kernel.h: Likewise.
28321 * include/grub/i386/kernel.h: Likewise.
28322 * include/grub/i386/pc/kernel.h: Likewise.
28323 * include/grub/i386/qemu/boot.h: Likewise.
28324 * include/grub/mips/kernel.h: Likewise.
28325 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28326 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28327 * include/grub/powerpc/kernel.h: Likewise.
28328 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28329 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28330 * include/grub/sparc64/kernel.h: Likewise.
28331 * include/grub/x86_64/efi/kernel.h: Likewise.
28332 * include/grub/x86_64/kernel.h: Likewise.
28333 * include/grub/offsets.h: New file.
28334 * include/grub/kernel.h (grub_module_info): Split into ...
28335 (grub_module_info32): ... this.
28336 (grub_module_info64): ... and this.
28337 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28338 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28339 (grub_boot_blocklist): Moved from here ...
28340 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28341 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28342 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28343 * include/grub/types.h (grub_target_to_host16): Removed.
28344 (grub_target_to_host32): Likewise.
28345 (grub_target_to_host64): Likewise.
28346 (grub_host_to_target16): Likewise.
28347 (grub_host_to_target32): Likewise.
28348 (grub_host_to_target64): Likewise.
28349 (grub_host_to_target_addr): Likewise.
28351 Support grub-mkrescue for efi, coreboot and qemu.
28353 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28354 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28355 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28356 * util/grub-mkrawimage.c: Moved from here ...
28357 * util/grub-mkimage.c: ... here. All users updated.
28358 (ALIGN_ADDR): Use image_target.
28359 (TARGET_NO_FIELD): New const.
28360 (image_target_desc): New type.
28361 (image_targets): New array.
28362 (grub_target_to_host64): Use image_target.
28363 (grub_target_to_host32): Likewise.
28364 (grub_target_to_host16): Likewise.
28365 (grub_host_to_target64): Likewise.
28366 (grub_host_to_target32): Likewise.
28367 (grub_host_to_target16): Likewise.
28368 (grub_host_to_target_addr): Likewise.
28369 (generate_image): Handle multiimage.
28370 (main): Require -O parameter. All users updated.
28371 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28372 util/efi/grub-mkimage.c
28373 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28374 New option --rom-directory.
28376 * util/i386/efi/grub-mkimage.c: Removed.
28377 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28378 (grub_target_to_host32): Likewise.
28379 (grub_target_to_host64): Likewise.
28380 (grub_host_to_target16): Likewise.
28381 (grub_host_to_target32): Likewise.
28382 (grub_host_to_target64): Likewise.
28383 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28384 (grub_target_to_host32): Likewise.
28385 (grub_target_to_host64): Likewise.
28386 (grub_host_to_target16): Likewise.
28387 (grub_host_to_target32): Likewise.
28388 (grub_host_to_target64): Likewise.
28390 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28392 Source tree is reorganized for emu build.
28394 * include/grub/util/console.h: Move from here...
28395 * include/grub/emu/console.h: ...to here.
28396 * include/grub/util/getroot.h: Move from here...
28397 * include/grub/emu/getroot.h: ...to here.
28398 * include/grub/util/hostdisk.h: Move from here...
28399 * include/grub/emu/hostdisk.h: ...to here.
28400 * util/console.c: Move from here...
28401 * kern/emu/console.c: ...to here.
28402 * util/getroot.c: Move from here...
28403 * kern/emu/getroot.c: ...to here.
28404 * util/grub-emu.c: Move from here...
28405 * kern/emu/main.c: ...to here.
28406 * util/hostdisk.c: Move from here...
28407 * kern/emu/hostdisk.c: ...to here.
28408 * util/hostfs.c: Move from here...
28409 * kern/emu/hostfs.c: ...to here.
28410 * util/mm.c: Move from here...
28411 * kern/emu/mm.c: ...to here.
28412 * util/pci.c: Move from here...
28413 * bus/emu/pci.c: ...to here.
28414 * util/sdl.c: Move from here...
28415 * video/emu/sdl.c: ...to here.
28416 * util/time.c: Move from here...
28417 * kern/emu/time.c: ...to here.
28418 * util/usb.c: Move from here...
28419 * bus/usb/emu/usb.c: ...to here.
28421 * include/grub/emu/misc.h: New header for grub-emu functions.
28422 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28424 * conf/any-emu.rmk: Rule updates for above renames.
28425 * conf/common.rmk: Likewise.
28426 * conf/i386-pc.rmk: Likewise.
28427 * conf/i386-qemu.rmk: Likewise.
28428 * conf/mips.rmk: Likewise.
28429 * conf/sparc64-ieee1275.rmk: Likewise.
28430 * conf/x86-efi.rmk: Likewise.
28432 * disk/lvm.h: #include updates for above renames.
28433 * util/grub-mkrelpath.c: Likewise.
28434 * util/grub-probe.c: Likewise.
28435 * util/i386/pc/grub-setup.c: Likewise.
28436 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28437 * kern/emu/console.c: Likewise.
28438 * kern/emu/getroot.c: Likewise.
28439 * kern/emu/hostdisk.c: Likewise.
28440 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28442 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28443 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28444 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28445 * util/misc.c: Remove grub-emu functions.
28447 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28450 Reported by: Thorsten Grützmacher.
28452 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28454 (circprog_set_property): Register and unregister timeout hook.
28455 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28456 (label_destroy): Free template. and unregister hook.
28457 (label_set_state): New function.
28458 (label_set_property): Handle templates and hooks.
28459 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28461 (progress_bar_set_property): Register and unregister timeout hook.
28462 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28463 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28464 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28465 (update_timeout_visit): Removed.
28466 (update_timeouts): New function.
28467 (redraw_timeouts): Likewise.
28468 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28469 (grub_gfxmenu_clear_timeout): Likewise.
28470 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28471 (grub_gfxmenu_timeout_notify): Likewise.
28472 (grub_gfxmenu_timeout_notifications): New external variable.
28473 (grub_gfxmenu_timeout_register): New function.
28474 (grub_gfxmenu_timeout_unregister): Likewise.
28476 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28478 Transform (broken) vga terminal into (working) vga video driver.
28480 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28481 video/i386/pc/vga.c.
28482 * include/grub/video.h (grub_video_driver_id):
28483 Add GRUB_VIDEO_DRIVER_VGA.
28484 * term/i386/pc/vga.c: Renamed to ...
28485 * video/i386/pc/vga.c: ...this
28486 (DEBUG_VGA): Removed.
28487 (CHAR_WIDTH): Likewise.
28488 (CHAR_HEIGHT): Likewise.
28489 (TEXT_WIDTH): Likewise.
28490 (TEXT_HEIGHT): Likewise.
28491 (DEFAULT_FG_COLOR): Likewise.
28492 (DEFAULT_BG_COLOR): Likewise.
28493 (colored_char): Likewise.
28496 (cursor_state): Likewise.
28497 (fg_color): Likewise.
28498 (bg_color): Likewise.
28499 (text_buf): Likewise.
28502 (framebuffer): New variable.
28503 (set_read_map): Disabled.
28504 (setup): New variable.
28505 (is_target): Likewise.
28506 (grub_vga_mod_init): Likewise.
28507 (grub_vga_mod_fini): Likewise.
28508 (check_vga_mem): Likewise.
28509 (write_char): Likewise.
28510 (write_cursor): Likewise.
28511 (scroll_up): Likewise.
28512 (grub_vga_putchar): Likewise.
28513 (grub_vga_getcharwidth): Likewise.
28514 (grub_vga_getwh): Likewise.
28515 (grub_vga_getxy): Likewise.
28516 (grub_vga_gotoxy): Likewise.
28517 (grub_vga_cls): Likewise.
28518 (grub_vga_setcolorstate): Likewise.
28519 (grub_vga_setcursor): Likewise.
28520 (grub_video_vga_init): New function.
28521 (grub_video_vga_setup): Likewise.
28522 (grub_video_vga_fini): Likewise.
28523 (update_target): Likewise.
28524 (grub_video_vga_blit_bitmap): Likewise.
28525 (grub_video_vga_blit_render_target): Likewise.
28526 (grub_video_vga_set_active_render_target): Likewise.
28527 (grub_video_vga_get_active_render_target): Likewise.
28528 (grub_video_vga_swap_buffers): Likewise.
28529 (grub_video_vga_set_palette): Likewise.
28530 (grub_video_vga_get_info_and_fini): Likewise.
28531 (grub_vga_term): Removed.
28532 (grub_video_vga_adapter): New variable.
28533 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28534 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28536 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28538 * video/readers/jpeg.c: Indented.
28540 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28542 Various jpeg cleanups.
28544 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28545 (grub_jpeg_decode_quan_table): Use sizeof.
28546 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28548 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28550 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28551 tables. Ignore non-last ac bit.
28552 (grub_jpeg_decode_quan_table): Likewise.
28554 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28556 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28557 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28558 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28559 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28560 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28561 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28563 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28565 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28568 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28570 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28572 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28574 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28577 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28579 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28582 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28584 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28587 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28589 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28591 2010-05-01 Christian Franke <franke@computer.org>
28593 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28594 Remove broken Cygwin path conversion.
28595 * util/misc.c: [__CYGWIN__] Add include and define.
28596 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28598 (make_system_path_relative_to_its_root): Simplify loop, replace early
28600 [__CYGWIN__] Add conversion to win32 path.
28601 Include "/" case in trailing slash removal.
28603 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28605 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28606 Reported by: Seth Goldberg
28608 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28610 * commands/help.c (grub_cmd_help): Fix a typo.
28611 Reported by: Seth Goldberg
28613 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28615 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28617 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28618 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28619 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28620 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28621 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28622 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28623 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28624 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28625 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28626 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28627 * normal/context.c (GRUB_MOD_INIT): Likewise.
28628 * normal/main.c (GRUB_MOD_INIT): Likewise.
28629 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28630 * term/serial.c (GRUB_MOD_INIT): Likewise.
28631 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28633 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28635 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28638 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28640 * commands/iorw.c: New file.
28641 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28642 (iorw_mod_SOURCES): New variable.
28643 (iorw_mod_CFLAGS): Likewise.
28644 (iorw_mod_LDFLAGS): Likewise.
28646 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28650 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28651 * normal/main.c (hotkey_aliases): New variable.
28652 (grub_normal_add_menu_entry): Parse "--hotkey".
28653 * normal/menu_text.c (run_menu): Handle hotkeys.
28655 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28657 * kern/i386/coreboot/init.c (grub_machine_init): Call
28658 grub_machine_mmap_init on qemu.
28660 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28662 * boot/i386/qemu/boot.S: Add a missing .code16.
28664 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28666 Use LBIO on coreboot.
28668 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28669 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28670 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28672 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28673 grub_machine_mmap_init on coreboot.
28674 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28675 GRUB_LINUXBIOS_MEMBER_LINK.
28676 (grub_machine_mmap_iterate): Fix declaration.
28677 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28679 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28681 Split coreboot and multiboot ports.
28683 * conf/i386-multiboot.rmk: New file.
28684 * configure.ac: Add multiboot port.
28685 * include/grub/i386/multiboot/boot.h: New file.
28686 * include/grub/i386/multiboot/console.h: Likewise.
28687 * include/grub/i386/multiboot/init.h: Likewise.
28688 * include/grub/i386/multiboot/kernel.h: Likewise.
28689 * include/grub/i386/multiboot/loader.h: Likewise.
28690 * include/grub/i386/multiboot/memory.h: Likewise.
28691 * include/grub/i386/multiboot/serial.h: Likewise.
28692 * include/grub/i386/multiboot/time.h: Likewise.
28693 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28694 * loader/multiboot.c: Likewise.
28695 * loader/multiboot_mbi2.c: Likewise.
28696 * util/grub-mkrescue.in: Generate multiboot rescue.
28698 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28700 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28702 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28704 Merge handling of input and output terminals. Fix a hang.
28706 * commands/terminal.c (abstract_terminal): New struct.
28707 (handle_command): New function. Based on grub_cmd_terminal_input.
28708 (grub_cmd_terminal_input): Use handle_command.
28709 (grub_cmd_terminal_output): Use handle_command.
28711 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28713 Fix comment handling.
28715 * tests/grub_script_comments.in: New testcase.
28716 * conf/tests.rmk: Rules for new testcase.
28717 * script/yylex.l: Updated flex rules.
28719 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28721 * docs/grub.texi (play): Document that zero pitches produce rests.
28722 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28725 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28727 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28730 2010-04-26 Christian Franke <franke@computer.org>
28732 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28733 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28734 (grub_get_prefix): Remove function.
28735 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28736 make_system_path_relative_to_its_root ().
28737 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28739 2010-04-24 Christian Franke <franke@computer.org>
28741 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28742 (kernel_img_LDFLAGS): Remove -static-libgcc.
28744 2010-04-24 Christian Franke <franke@computer.org>
28746 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28747 and CHECK_END_SYMBOL if grub-emu is built.
28748 Unset TARGET_OBJ2ELF if grub-emu is built
28749 without module support.
28751 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28755 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28756 (grub_fstest_SOURCES): Likewise.
28757 (pkglib_MODULES): Add nilfs2.mod.
28758 (nilfs2_mod_SOURCES): New variable.
28759 (nilfs2_mod_CFLAGS): Likewise.
28760 (nilfs2_mod_LDFLAGS): Likewise.
28761 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28762 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28763 * fs/nilfs2.c: New file.
28765 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28767 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28770 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28772 Add grub-mkconfig support for NetBSD.
28774 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28775 * util/grub-mkconfig.in: export new NetBSD specific variables.
28776 * po/POTFILES-shell: added 10_netbsd.in.
28777 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28779 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28781 Fix emu build with grub-emu-pci and grub-emu-modules.
28783 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28785 * include/grub/libpciaccess.h: New file.
28786 * conf/any-emu.rmk: Update kernel headers for emu build.
28788 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28790 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28792 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28794 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28796 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28798 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28799 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28800 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28801 util/ieee1275/ofpath.c.
28802 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28803 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28804 * include/grub/sparc64/ieee1275/boot.h
28805 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28806 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28807 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28808 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28810 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28811 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28812 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28815 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28817 * util/grub-mkconfig.in: Corrected two == equality tests.
28818 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28819 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28820 expect a number appended to it.
28821 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28822 expects a number appended to it.
28824 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28826 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28828 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28830 * util/hostdisk.c (make_device_name): Change to new partition naming.
28832 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28834 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28836 2010-04-17 Christian Franke <franke@computer.org>
28838 * Makefile.in: Add missing localedir setting.
28840 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28842 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28843 mistake in r2156. Noticed by Anthony Fok.
28845 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28847 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28849 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28851 Fix a spurious, uninitialized variable warning.
28853 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28854 Initialize variable, shdr.
28855 (grub_freebsd_load_elfmodule): Likewise.
28856 (grub_freebsd_load_elf_meta): Likewise.
28858 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28860 Fix for escaped dollar in double quoted strings.
28862 * script/yylex.l: Updated flex rules.
28863 * conf/tests.rmk: Rule for new testcase.
28864 * tests/grub_script_dollar.in: New testcase.
28866 2010-04-13 Carles Pina i Estany <carles@pina.cat>
28867 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
28869 Enclose all translated strings in grub.cfg in single quotes, and
28870 escape them appropriately (Ubuntu bug #552921).
28872 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28873 * util/grub.d/10_hurd.in: Use it.
28874 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28875 * util/grub.d/10_linux.in (linux_entry): Likewise.
28877 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28879 Fix cygwin compilation.
28881 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28882 * include/grub/misc.h (__register_frame_info)
28883 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28884 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28885 * kern/misc.c (__register_frame_info)
28886 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28887 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28889 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28891 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28893 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28895 Unify libgcc processing.
28897 * Makefile.in (kernel_img_LDFLAGS): New variable.
28898 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28899 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28901 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28902 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28903 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28904 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28905 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28906 overwriting. Remove -lgcc and -static-libgcc
28907 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28908 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28909 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28910 (kernel_img_LDFLAGS): Append instead of overwriting.
28911 Remove -lgcc and -static-libgcc
28912 * conf/sparc64-ieee1275.rmk: Likewise.
28913 * include/grub/powerpc/libgcc.h: Move to ...
28914 * include/grub/libgcc.h: .. this.
28915 * include/grub/libgcc.h: Don't export most of the function on x86.
28916 (__bswapsi2): New export.
28917 (__bswapdi2): Likewise.
28918 * include/grub/mips/libgcc.h: Removed.
28919 * include/grub/sparc64/libgcc.h: Likewise.
28921 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28923 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
28924 disk_info_msg (conflicts with gettexting into languages with cases).
28926 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
28928 Add grub-probe support for NetBSD.
28930 * util/getroot.c (find_root_device): Convert block device to
28931 character device on NetBSD.
28932 * util/probe.c (probe): Require character device on NetBSD.
28933 * util/hostdisk.c: NetBSD specific headers.
28934 (configure_device_driver): new function to tune device driver
28935 parameters (currently only for NetBSD floppy driver).
28936 (grub_util_biosdisk_open): NetBSD specific code (get disk size
28937 via disklabel ioctl).
28938 (open_device): call configure_device_driver on NetBSD.
28939 (convert_system_partition_to_system_disk): NetBSD specific code.
28940 (device_is_wholedisk): Likewise.
28941 (grub_util_biosdisk_get_grub_dev): Likewise.
28942 (make_device_name): Fixed a typo in bsd_part_str.
28943 * configure.ac: check for opendisk() and getrawpartition() on
28944 NetBSD and set LIBUTIL.
28945 * Makefile.in: add LIBUTIL to LIBS.
28947 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28951 * util/grub-script-check.c: Better help message.
28953 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28957 * configure.ac: Flex version check.
28958 * conf/common.rmk: Add -Wno-error to sh.mod.
28959 * script/yylex.l: Remove all #pragma.
28961 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28963 * include/grub/util/misc.h (canonicalise_file_name): Add missing
28965 Reported by: Seth Goldberg.
28967 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28969 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
28970 Rename "module" to "module2".
28971 Reported by: Seth Goldberg.
28973 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28975 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
28977 Reported by: Seth Goldberg.
28979 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28981 * lib/posix_wrap/locale.h: Add missing file.
28982 Reported by: Seth Goldberg.
28984 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28986 grub-emu module load support.
28988 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
28989 NO_DYNAMIC_MODULES switched to this.
28990 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
28991 (CFLAGS): Likewise.
28992 * conf/any-emu.rmk: Generate symlist.
28993 (kernel_img_HEADERS): Add util/datetime.h.
28994 (kernel_img_HEADERS) [sdl]: Add sdl.h.
28995 (kernel_img_HEADERS) [libusb]: Add libusb.h.
28996 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
28997 kern/$(target_cpu)/cache.S.
28998 * configure.ac (grub-emu-modules): New option.
28999 * genmk.rb: Handle multiple source lists.
29000 * include/grub/sdl.h: New file.
29001 * include/grub/libusb.h: Likewise.
29002 * util/grub-emu.c (main): Hanle (host) root.
29003 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29004 GRUB_ERR_UNKNOWN_DEVICE.
29005 * util/misc.c: Move mm functions to ...
29006 * util/mm.c: ... here. All users updated.
29008 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29010 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29011 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29013 (maintainer-clean): Remove libgcrypt-grub.
29015 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29017 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29019 2010-04-09 EFI Coder <eficoder@hotmail.com>
29021 * normal/menu_text.c (print_message): Clean up the message and show
29022 the Fn information when on EFI
29023 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29025 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29027 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29029 * normal/crypto.c (read_crypto_list): Likewise.
29030 * normal/dyncmd.c (read_command_list): Likewise.
29031 * normal/term.c (read_terminal_list): Likewise.
29032 * normal/main.c (read_lists): Use explicit prefix.
29033 (read_lists_hook): Use read_lists.
29034 (grub_normal_execute): Likewise.
29036 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29038 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29039 Reported by: Thomas Schmitt.
29040 Add -no-emul-boot to grub-mkisofs parameters.
29042 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29044 * font/font.c: Indented.
29046 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29048 Elif support to GRUB script (by Deepak Vankadaru).
29050 * tests/grub_script_if.in: New testcase.
29051 * conf/tests.rmk: Rule for new testcase.
29052 * script/parser.y: Grammar rules for elif.
29054 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29056 While and until loops support to GRUB script.
29058 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29059 (grub_script_create_cmdwhile): New function prototype.
29060 (grub_script_execute_cmdwhile): New function prototype.
29061 * script/execute.c (grub_script_execute_cmdwhile): New function.
29062 * script/parser.y (command): New commands.
29063 (whilecmd): New grammar rule.
29064 (untilcmd): New grammar rule.
29065 * script/script.c (grub_script_create_cmdwhile): New function.
29066 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29069 * tests/grub_script_while1.in: New testcase.
29070 * conf/tests.rmk: Rule for new testcase.
29072 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29074 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29077 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29079 GRUB_BACKGROUND support.
29081 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29082 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29084 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29086 Load fonts and modules for gfxmenu in grub-mkconfig.
29087 Idea by: Mario Vazquez
29089 * util/grub.d/00_header.in: Load pf2 and image modules.
29091 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29093 grub-mkconfig multiple terminal support.
29095 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29096 * util/grub.d/00_header.in: Likewise.
29098 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29100 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29101 we use cd $(srcdir).
29103 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29105 * util/grub.d/10_linux.in: Only use the first word of
29106 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29107 spaces in GRUB_DISTRIBUTOR.
29108 * util/grub.d/10_kfreebsd.in: Likewise.
29109 * util/grub.d/10_hurd.in: Likewise.
29111 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29113 Fix unit testing framework for Qemu 0.12.
29115 * tests/util/grub-shell.in: Remove -serial stdio option.
29117 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29119 POSIX header file wrappers.
29121 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29123 * lib/posix_wrap/ctype.h: Likewise.
29124 * lib/posix_wrap/errno.h: Likewise.
29125 * lib/posix_wrap/langinfo.h: Likewise.
29126 * lib/posix_wrap/limits.h: Likewise.
29127 * lib/posix_wrap/localcharset.h: Likewise.
29128 * lib/posix_wrap/stdint.h: Likewise.
29129 * lib/posix_wrap/stdio.h: Likewise.
29130 * lib/posix_wrap/stdlib.h: Likewise.
29131 * lib/posix_wrap/string.h: Likewise.
29132 * lib/posix_wrap/sys/types.h: Likewise.
29133 * lib/posix_wrap/unistd.h: Likewise.
29134 * lib/posix_wrap/wchar.h: Likewise.
29135 * lib/posix_wrap/wctype.h: Likewise.
29136 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29137 (grub_script.yy.h): Likewise.
29138 * script/yylex.l: Remove POSIX emulation #defines.
29139 * Makefile.in (POSIX_CFLAGS): New variable.
29140 (GNULIB_UTIL_CFLAGS): Likewise.
29144 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29145 (regexp_mod_SOURCES): New variable.
29146 (regexp_mod_CFLAGS): Likewise.
29147 (regexp_mod_LDFLAGS): Likewise.
29148 * commands/regexp.c: New file.
29149 * gnulib/regcomp.c: New file. Imported from gnulib.
29150 * gnulib/regex.c: Likewise.
29151 * gnulib/regex_internal.c: Likewise.
29152 * gnulib/regex_internal.h: Likewise.
29153 * gnulib/regexec.c: Likewise.
29154 * gnulib/regex.h: Likewise.
29156 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29158 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29159 unsupported video mode types.
29161 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29163 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29165 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29167 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29168 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29170 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29172 Remove unused grub_vga_get_font.
29174 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29175 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29177 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29179 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29180 * include/grub/misc.h: Likewise.
29182 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29184 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29185 for which failure is fatal.
29187 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29189 * util/grub-install.in: Use mkdir -p to create grub directory.
29190 * util/i386/efi/grub-install.in: Likewise.
29191 * util/ieee1275/grub-install.in: Likewise.
29193 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29195 * Makefile.in (LEX): new variable.
29197 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29199 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29200 `=' and added double quotes on operands of this equality test.
29202 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29204 * Makefile.in (uninstall): Remove a leftover debug echo.
29205 Reported by: Grégoire Sutre
29207 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29209 MIPS multiboot2 support.
29211 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29212 (multiboot2_mod_SOURCES): New variable.
29213 (multiboot2_mod_CFLAGS): Likewise.
29214 (multiboot2_mod_LDFLAGS): Likewise.
29215 (multiboot2_mod_ASFLAGS): Likewise.
29216 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29218 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29219 (MULTIBOOT_MBI_REGISTER): Likewise.
29220 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29221 (MULTIBOOT_ELF32_MACHINE): Likewise.
29222 (MULTIBOOT_ELF64_MACHINE): Likewise.
29223 * include/grub/mips/multiboot.h: New file.
29224 * include/grub/video.h (grub_video_driver_id): New type
29225 GRUB_VIDEO_DRIVER_SM712.
29226 (grub_video_get_info_and_fini): Export.
29227 (grub_video_get_palette): Likewise.
29228 (grub_video_get_driver_id): Likewise.
29229 * include/multiboot2.h: Resynced with spec.
29230 * loader/i386/multiboot.c: Moved from here ...
29231 * loader/multiboot.c: ... here. All users updated.
29232 (grub_multiboot_boot): Use platform-specific macros.
29233 * loader/i386/multiboot_elfxx.c: Moved from here ...
29234 * loader/multiboot_elfxx.c: ... here. All users updated.
29235 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29236 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29237 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29239 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29241 Import gnulib argp module.
29243 * gnulib/argp-ba.c: New file.
29244 * gnulib/argp-eexst.c: Likewise.
29245 * gnulib/argp-fmtstream.c: Likewise.
29246 * gnulib/argp-fmtstream.h: Likewise.
29247 * gnulib/argp-fs-xinl.c: Likewise.
29248 * gnulib/argp-help.c: Likewise.
29249 * gnulib/argp-namefrob.h: Likewise.
29250 * gnulib/argp-parse.c: Likewise.
29251 * gnulib/argp-pin.c: Likewise.
29252 * gnulib/argp-pv.c: Likewise.
29253 * gnulib/argp-pvh.c: Likewise.
29254 * gnulib/argp-version-etc.c: Likewise.
29255 * gnulib/argp-version-etc.h: Likewise.
29256 * gnulib/argp-xinl.c: Likewise.
29257 * gnulib/argp.h: Likewise.
29259 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29261 * kern/device.c (grub_device_iterate): Clear errors after failed
29264 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29266 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29267 returned by firmware.
29269 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29271 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29272 compilation on coreboot and qemu
29274 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29276 * include/multiboot2.h: Resync with spec.
29278 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29280 Multiboot2 tag support
29282 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29283 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29284 Remove loader/multiboot_loader.c.
29285 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29286 (grub_multiboot2_real_boot): Likewise.
29287 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29288 (grub_get_multiboot_mmap_count): New proto.
29289 (grub_fill_multiboot_mmap): Likewise.
29290 (grub_multiboot_set_video_mode): Likewise.
29291 (grub_multiboot_set_console): Likewise.
29292 (grub_multiboot_load): Likewise.
29293 (grub_multiboot_load_elf): Likewise.
29294 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29295 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29296 * include/multiboot.h: Resynced with specification.
29297 * include/multiboot2.h: Resynced with specification.
29298 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29299 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29300 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29301 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29303 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29304 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29305 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29307 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29309 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29310 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29312 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29313 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29314 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29316 * loader/i386/multiboot_mbi2.c: New file.
29318 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29320 Resync with gnulib.
29322 * Makefile.in (GNULIB_CFLAGS): New variable.
29323 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29324 (grub_script_check_CFLAGS): New variable.
29325 * gnulib/alloca.h: Resync with gnulib.
29326 * gnulib/error.c: Likewise.
29327 * gnulib/error.h: Likewise.
29328 * gnulib/fnmatch.c: Likewise.
29329 * gnulib/fnmatch_loop.c: Likewise.
29330 * gnulib/getdelim.c: Likewise.
29331 * gnulib/getline.c: Likewise.
29332 * gnulib/getopt.c: Likewise.
29333 * gnulib/getopt1.c: Likewise.
29334 * gnulib/getopt_int.h: Likewise.
29335 * gnulib/gettext.h: Likewise.
29336 * gnulib/progname.c: Likewise.
29337 * gnulib/progname.h: Likewise.
29339 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29341 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29342 which is the case with --disabled-nls.
29344 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29345 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29346 * util/misc.c: Likewise.
29347 * util/mkisofs/mkisofs.c: Likewise.
29348 * util/mkisofs/mkisofs.h: Likewise.
29350 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29352 Simplify Apple CC support.
29354 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29355 Add 0 byte at the end not to have a symbol with empty target.
29356 * mmap/i386/pc/mmap_helper.S: Likewise.
29357 * genmk.rb: Ignore errors 2030 and 2050.
29358 * kern/i386/pc/startup.S: Use LOCAL when possible.
29360 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29362 Testcase and the fix for final semicolon on cmdline.
29364 * tests/grub_script_final_semicolon.in: New testcase.
29365 * conf/tests.rmk: Rules for the new testcase.
29366 * script/parser.y: Grammar fix.
29368 2010-03-26 BVK Chaitanya <bvk@localhost>
29370 Blank lines testcase for GRUB script.
29372 * tests/grub_script_blanklines.in: New testcase.
29373 * conf/tests.rmk: Rules for the new testcase.
29375 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29377 Don't use __FILE__.
29379 * genmk.rb: Add -DGRUB_FILE to all C targets.
29380 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29381 * include/grub/list.h: Likewise.
29382 * include/grub/misc.h: Likewise.
29383 * include/grub/mm.h: Likewise.
29384 * include/grub/test.h: Likewise.
29385 * kern/mm.c: Likewise.
29386 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29388 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29390 Sunpc partitions support.
29392 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29393 (grub_fstest_SOURCES): Likewise.
29394 (pkglib_MODULES): Add part_sunpc.mod.
29395 (part_sunpc_mod_SOURCES): New variable.
29396 (part_sunpc_mod_CFLAGS): Likewise.
29397 (part_sunpc_mod_LDFLAGS): Likewise.
29398 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29399 * partmap/sunpc.c: New file.
29401 2010-03-26 BVK Chaitanya <bvk@localhost>
29403 For loop support to GRUB script.
29405 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29406 (grub_script_create_cmdfor): New function prototype.
29407 (grub_script_execute_cmdfor): New function prototype.
29408 * script/execute.c (grub_script_execute_cmdfor): New function.
29409 * script/parser.y (command): New for command.
29410 (forcmd): New grammar rule.
29411 * script/script.c (grub_script_create_cmdfor): New function.
29412 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29414 * tests/grub_script_for1.in: New testcase.
29415 * conf/tests.rmk: Rules for new testcase.
29417 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29421 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29422 'partition' is NULL, grub_partition_get_start already does that.
29423 * commands/loadenv.c (check_blocklists): Likewise.
29424 (write_blocklists): Likewise.
29425 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29426 (grub_fstest_SOURCES): Likewise.
29427 (pkglib_MODULES): Add part_bsd.mod.
29428 (part_bsd_mod_SOURCES): New variable.
29429 (part_bsd_mod_CFLAGS): Likewise.
29430 (part_bsd_mod_LDFLAGS): Likewise.
29431 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29432 (grub_emu_SOURCES): Likewise.
29433 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29434 * include/grub/bsdlabel.h: New file.
29435 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29437 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29438 (grub_partition_map_list): New variable.
29439 (grub_partition_map_register): Inline.
29440 (grub_partition_map_unregister): Likewise.
29441 (FOR_PARTITION_MAPS): New macro.
29442 (grub_partition_map_iterate): Removed.
29443 (grub_partition_get_start): Handle nested partitions.
29444 * include/grub/msdos_partition.h: Remove bsd-related entries.
29445 (grub_pc_partition): Remove.
29446 * kern/disk.c (grub_disk_close): Free partition data.
29447 (grub_disk_adjust_range): Handle nested partitions.
29448 * kern/partition.c (grub_partition_map_probe): New function.
29449 (grub_partition_probe): Parse name to number, handle subpartitions.
29450 (get_partmap): New function.
29451 (grub_partition_iterate): Handle subpartitions.
29452 (grub_partition_get_name): Likewise.
29453 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29454 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29455 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29456 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29458 (acorn_partition_map_probe): Remove.
29459 (acorn_partition_map_get_name): Likewise.
29460 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29462 Set 'index' to 0 since there can be only one partition entry per sector.
29463 (amiga_partition_map_probe): Remove.
29464 (amiga_partition_map_get_name): Likewise.
29465 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29467 Set 'offset' and 'index' to real positions of partitions.
29468 (apple_partition_map_probe): Remove.
29469 (apple_partition_map_get_name): Likewise.
29470 * partmap/bsdlabel.c: New file.
29471 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29473 Allocate 'data' so it can be correctly freed.
29474 Set 'index' to offset inside sector.
29475 (gpt_partition_map_probe): Remove.
29476 (gpt_partition_map_get_name): Likewise.
29477 * partmap/msdos.c (grub_partition_parse): Remove.
29478 (pc_partition_map_iterate): Don't force raw access.
29480 Make 'ext_offset' a local variable.
29481 (pc_partition_map_probe): Remove.
29482 (pc_partition_map_get_name): Remove.
29483 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29485 (sun_partition_map_probe): Remove.
29486 (sun_partition_map_get_name): Likewise.
29487 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29488 (grub_pcpart_type): Likewise.
29489 * util/hostdisk.c (open_device): Handle new numbering scheme.
29490 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29491 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29492 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29493 * util/grub-install.in: Insert all subpartition modules.
29494 * util/ieee1275/grub-install.in: Likewise.
29496 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29498 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29501 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29503 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29505 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29507 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29508 match where 'make install' puts them.
29509 * util/i386/efi/grub-install.in: Likewise.
29511 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29513 * .bzrignore: Add gentrigtables, grub-script-check,
29514 grub_script_check_init.c, grub_script_check_init.h, and
29517 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29519 * kern/parser.c: Indented.
29521 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29523 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29525 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29527 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29528 alpha_mask_size == 0 case.
29530 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29532 GRUB shell lexer and parser improvements.
29534 * conf/any-emu.rmk: Build rule updates.
29535 * conf/common.rmk: Likewise.
29536 * conf/i386-coreboot.rmk: Likewise.
29537 * conf/i386-efi.rmk: Likewise.
29538 * conf/i386-ieee1275.rmk: Likewise.
29539 * conf/i386-pc.rmk: Likewise.
29540 * conf/powerpc-ieee1275.rmk: Likewise.
29541 * conf/x86_64-efi.rmk: Likewise.
29543 * configure.ac: Configure check for flex.
29545 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29547 (grub_lexer_param): Struct member updates.
29548 (grub_parser_param): Likewise.
29549 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29550 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29551 (grub_script_lexer_init): Prototype update.
29552 (grub_script_lexer_record_start): Likewise.
29553 (grub_script_lexer_record_stop): Likewise.
29554 (grub_script_lexer_yywrap): New function prototype.
29555 (grub_script_lexer_fini): Likewise.
29556 (grub_script_execute_argument_to_string): Removed by...
29557 (grub_script_execute_argument_to_argv): ...better version.
29559 * script/execute.c (ROUND_UPTO): New macro.
29560 (grub_script_execute_cmdline): Out of memory fixes.
29561 (grub_script_execute_menuentry): Likewise.
29562 (grub_script_execute_argument_to_string): Removed. Update all
29564 (grub_script_execute_argument_to_argv): ...better version.
29565 * script/function.c (grub_script_function_create): Use
29566 grub_script_execute_argument_to_argv instead of
29567 grub_script_execute_argument_to_string.
29569 * script/lexer.c (check_varstate): Removed.
29570 (check_textstate): Removed.
29571 (grub_script_lexer_record_start): Likewise.
29572 (grub_script_lexer_record_stop): Likewise.
29573 (recordchar): Replaced with...
29574 (grub_script_lexer_record): ...new function.
29575 (nextchar): Removed.
29576 (grub_script_lexer_init): Rewritten.
29577 (grub_script_yylex): Rewritten.
29578 (append_newline): New function.
29579 (grub_script_lexer_yywrap): New function.
29580 (grub_script_lexer_fini): New function.
29581 (grub_script_yyerror): Sets error flag.
29583 * script/yylex.l: New file.
29584 (grub_lexer_yyfree): Wrapper for flex yyffre.
29585 (grub_lexer_yyalloc): Likewise.
29586 (grub_lexer_yyrealloc): Likewise.
29587 * script/parser.y: Refactored.
29589 * script/script.c (grub_script_arg_add): Out of memory fixes.
29590 (grub_script_add_arglist): Likewise.
29591 (grub_script_create_cmdline): Likewise.
29592 (grub_script_create_cmdmenu): Likewise.
29593 (grub_script_add_cmd): Likewise.
29594 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29595 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29598 * tests/grub_script_echo1.in: New testcase.
29599 * tests/grub_script_vars1.in: New testcase.
29600 * tests/grub_script_echo_keywords.in: New testcase.
29602 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29604 Remove some redundancy in build system.
29606 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29607 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29608 (TARGET_LDFLAGS): Add -nostdlib.
29609 (TARGET_IMG_LDFLAGS): Likewise.
29610 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29611 anything since mmap isn't available.
29612 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29614 (pkglib_MODULES): Remove reboot.mod.
29615 (reboot_mod_SOURCES): Removed.
29616 (reboot_mod_CFLAGS): Likewise.
29617 (reboot_mod_LDFLAGS): Likewise.
29618 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29619 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29620 (DEFSYMFILES): Add kernel_syms.lst.
29621 (kernel_img_HEADERS): Add common headers.
29622 (symlist.c): New target.
29623 (kernel_syms.lst): Likewise.
29624 (pkglib_MODULES): Add memdisk.mod.
29625 (memdisk_mod_SOURCES): New variable.
29626 (memdisk_mod_CFLAGS): Likewise.
29627 (memdisk_mod_LDFLAGS): Likewise.
29628 (pkglib_MODULES): Add reboot.mod.
29629 (reboot_mod_SOURCES): New variable.
29630 (reboot_mod_CFLAGS): Likewise.
29631 (reboot_mod_LDFLAGS): Likewise.
29632 (pkglib_MODULES): Add date.mod.
29633 (date_mod_SOURCES): New variable.
29634 (date_mod_CFLAGS): Likewise.
29635 (date_mod_LDFLAGS): Likewise.
29636 (pkglib_MODULES): Add datehook.mod.
29637 (datehook_mod_SOURCES): New variable.
29638 (datehook_mod_CFLAGS): Likewise.
29639 (datehook_mod_LDFLAGS): Likewise.
29640 (pkglib_MODULES): Add lsmmap.mod.
29641 (lsmmap_mod_SOURCES): New variable.
29642 (lsmmap_mod_CFLAGS): Likewise.
29643 (lsmmap_mod_LDFLAGS): Likewise.
29644 (pkglib_MODULES): Add boot.mod.
29645 (boot_mod_SOURCES): New variable.
29646 (boot_mod_CFLAGS): Likewise.
29647 (boot_mod_LDFLAGS): Likewise.
29648 * conf/i386-coreboot.rmk: Removed redundant parts.
29649 * conf/i386-ieee1275.rmk: Likewise.
29650 * conf/i386-pc.rmk: Likewise.
29651 * conf/mips-yeeloong.rmk: Likewise.
29652 * conf/mips.rmk: Likewise.
29653 * conf/powerpc-ieee1275.rmk: Likewise.
29654 * conf/sparc64-ieee1275.rmk: Likewise.
29655 * conf/x86_64-efi.rmk: Likewise.
29656 * conf/i386-coreboot.rmk: Moved qemu parts ..
29657 * conf/i386-qemu.rmk: ... here
29658 * conf/i386-efi.rmk: Moved common parts to...
29659 * conf/x86-efi.rmk: ... here.
29660 * conf/i386.rmk: Added modules common to all x86 variants.
29661 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29662 * disk/memdisk.c: Remove grub/machine/kernel.h.
29663 * gensymlist.sh.in: Include symbol.h.
29664 * hook/datehook.c: Correct module name.
29665 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29666 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29667 * include/grub/i386/efi/serial.h: New file.
29668 * include/grub/x86_64/efi/serial.h: Likewise.
29669 * util/time.c: Likewise.
29670 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29672 2010-03-14 Colin King <colin.king@ubuntu.com>
29673 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29675 Shrink the pre-partition-table part of boot.img by eight bytes.
29677 * boot/i386/pc/boot.S (ERR): New macro.
29678 (chs_mode): Use ERR.
29679 (geometry_error): Likewise.
29680 (hd_probe_error): Remove. This is only used once, so we wrwite
29682 (read_error): Instead of printing read_error_string, just set up
29683 %si and fall through to ...
29684 (error_message): ... this new function, also used by ERR.
29686 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29688 Speed up consecutive hostdisk operations on the same device.
29690 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29691 (grub_util_biosdisk_open): Initialise disk->data.
29692 (struct linux_partition_cache): New structure.
29693 (linux_find_partition): Cache partition start positions; these are
29694 expensive to compute on every read and write.
29695 (open_device): Cache open file descriptor in disk->data, so that we
29696 don't have to reopen it and flush the buffer cache for consecutive
29697 operations on the same device.
29698 (grub_util_biosdisk_close): New function.
29699 (grub_util_biosdisk_dev): Set `close' member.
29701 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29702 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29703 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29704 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29705 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29707 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29709 Compile parts of grub-emu as modules.
29711 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29712 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29713 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29714 (all-local): Add $(GRUB_EMU).
29715 (install-local): Install $(GRUB_EMU).
29716 (uninstall): Uninstall $(GRUB_EMU).
29717 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29718 * kern/dl.c: Likewise.
29719 * commands/sleep.c: Not include machine/time.h.
29720 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29721 (COMMON_CFLAGS): Likewise.
29722 (sbin_UTILITIES): Remove grub-emu.
29723 (grub_emu_SOURCES): Removed.
29724 (kernel_img_RELOCATABLE): New variable.
29725 (pkglib_PROGRAMS): Add kernel.img.
29726 (kernel_img_SOURCES): New variable
29727 (kernel_img_CFLAGS): Likewise.
29728 (kernel_img_LDFLAGS): Likewise.
29729 (TARGET_NO_STRIP): Likewise.
29730 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29731 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29732 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29733 (grub-emu): New target.
29734 (GRUB_EMU): New variable.
29735 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29736 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29737 * loader/xnu.c: Likewise.
29738 * include/grub/pci.h: Likewise.
29739 * genemuinit.sh: New file.
29740 * genemuinitheader.sh: Likewise.
29741 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29742 Support TARGET_NO_DYNAMIC_MODULES.
29743 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29744 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29745 * disk/loopback.c: Likewise.
29746 * font/font_cmd.c: Likewise.
29747 * partmap/acorn.c: Likewise.
29748 * partmap/amiga.c: Likewise.
29749 * partmap/apple.c: Likewise.
29750 * partmap/gpt.c: Likewise.
29751 * partmap/msdos.c: Likewise.
29752 * partmap/sun.c: Likewise.
29753 * parttool/msdospart.c: Likewise.
29754 * term/gfxterm.c: Likewise.
29755 * video/bitmap.c: Likewise.
29756 * video/readers/jpeg.c: Likewise.
29757 * video/readers/png.c: Likewise.
29758 * video/readers/tga.c: Likewise.
29759 * video/video.c: Likewise.
29760 * util/grub-emu.c (read_command_list): Removed.
29761 (main): Don't call util_init_nls.
29762 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29763 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29765 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29767 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29768 date.mod, datehook.mod.
29769 (datetime_mod_SOURCES): New variable.
29770 (datetime_mod_CFLAGS): Likewise.
29771 (datetime_mod_LDFLAGS): Likewise.
29772 (date_mod_SOURCES): Likewise.
29773 (date_mod_CFLAGS): Likewise.
29774 (date_mod_LDFLAGS): Likewise.
29775 (datehook_mod_SOURCES): Likewise.
29776 (datehook_mod_CFLAGS): Likewise.
29777 (datehook_mod_LDFLAGS): Likewise.
29778 * conf/sparc64-ieee1275.rmk: Likewise.
29779 * lib/ieee1275/datetime.c: New file.
29781 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29783 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29784 (ieee1275_fb_mod_SOURCES): New variable.
29785 (ieee1275_fb_mod_CFLAGS): Likewise.
29786 (ieee1275_fb_mod_LDFLAGS): Likewise.
29787 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29789 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29790 (HEAP_MAX_ADDR): Likewise.
29791 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29793 Correct stop condition.
29794 (grub_ieee1275_devices_iterate): New function.
29795 * video/ieee1275.c: New file.
29797 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29799 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29801 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29803 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29804 SCRATCH_PAD_DISKBOOT as scratch.
29805 (bootit): Pass Openfirmware pointer in %o4.
29806 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29808 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29809 with util/grub-mkrawimage.c.
29810 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29811 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29812 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29813 (grub_aout_load) [GRUB_UTIL]: Likewise.
29814 * include/grub/kernel.h (grub_modules_get_end): New proto.
29815 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29816 (SCRATCH_PAD_BOOT): New definition.
29817 (SCRATCH_PAD_DISKBOOT): Likewise.
29818 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29819 * include/grub/sparc64/ieee1275/ieee1275.h
29820 (grub_ieee1275_original_stack): New variable
29821 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29823 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29824 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29825 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29826 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29827 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29828 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29829 (grub_platform_image_format_t): New type.
29830 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29831 * kern/main.c (grub_modules_get_end)
29832 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29833 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29834 (codestart): Switch stacks.
29835 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29837 (grub_heap_init): Use grub_modules_get_end.
29838 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29840 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29842 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29844 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29846 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29848 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29850 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29853 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29855 * genmoddep.awk: Output all missing symbols and not only first.
29857 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29859 * NEWS: Put the date of 1.98 release.
29861 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29863 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29866 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29868 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29869 completition in the middle of string.
29871 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29873 * util/grub-mkrescue.in: Use mktemp with explicit template.
29875 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29877 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29879 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29881 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29884 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29886 Fix FreeBSD compilation.
29888 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29889 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29891 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29893 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29895 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29897 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29899 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29901 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29903 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29905 Support relative image path in theme file.
29907 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29908 (image_set_property): Handle theme_dir and relative path.
29910 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29912 * configure.ac: Alias amd64 to x86_64.
29914 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29916 * NEWS: mention multiboot on EFI.
29918 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29920 * kern/main.c (grub_load_modules): Handle errors from init functions of
29923 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29925 * normal/autofs.c (autoload_fs_module): Handle errors.
29927 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29929 Disable linux.mod on qemu-mips since it's not functional and leads
29930 to compilation failure.
29932 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
29933 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
29934 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
29935 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
29936 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
29937 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
29938 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
29939 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
29940 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
29941 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
29942 Reported by: BVK Chaitanya
29944 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
29946 * INSTALL: Add gettext as a dependency and add qemu to a new section
29947 "Prerequisites for make-check".
29949 2010-03-04 Christian Franke <franke@computer.org>
29951 * util/grub-pe2elf.c: Add missing include "progname.h".
29953 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29955 * normal/crypto.c (read_crypto_list): Fix a typo.
29956 Reported by: Seth Goldberg.
29958 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29960 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
29961 Reported by: Seth Goldberg.
29963 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29965 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
29968 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29970 * genmk.rb: Remove terminal*.lst in make clean.
29971 Reported by: Seth Goldberg.
29973 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29975 * util/i386/efi/grub-install.in: Copy gettext files.
29977 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29979 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
29981 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29983 Wait for user entry basing on presence of output rather than on errors.
29985 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
29986 (grub_install_newline_hook): Likewise.
29987 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
29988 * normal/menu.c (show_menu): Check line_counter to determine presence
29990 * normal/term.c (grub_normal_line_counter): New variable.
29991 (grub_normal_get_line_counter): New function.
29992 (grub_install_newline_hook): Likewise.
29994 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29996 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
29998 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30000 * configure.ac: Update version to 1.98.
30002 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30004 * util/grub.d/10_linux.in (linux_entry): Don't default to
30005 gfxpayload=keep if Linux doesn't support video handover.
30007 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30009 Don't compile video modules on yeeloong since video subsystem is part
30012 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30013 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30014 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30015 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30016 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30017 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30018 * include/grub/bitmap_scale.h: Likewise.
30019 * include/grub/bufio.h: Likewise.
30020 * include/grub/font.h: Likewise.
30021 * include/grub/gfxterm.h: Likewise.
30022 * include/grub/video.h: Likewise.
30023 * include/grub/vbe.h: Don't include video_fb.h.
30024 * video/i386/pc/vbe.c: Include video_fb.h.
30025 * commands/i386/pc/vbetest.c: Include video.h.
30027 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30029 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30030 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30031 default entry if GRUB_SAVEDEFAULT=true. This allows using
30032 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30033 saving a new default on every boot.
30035 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30037 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30038 * normal/term.c (read_terminal_list): Likewise.
30039 * normal/main.c (grub_normal_init_page): Likewise.
30040 (grub_normal_read_line_real): Likewise.
30042 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30044 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30046 Reported by: Seth Goldberg.
30048 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30050 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30051 duplicate declaration of `start'.
30053 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30055 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30057 Reported by: Georgy Buranov
30059 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30061 * util/grub-mkrawimage.c (usage): Change string formatting to
30064 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30066 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30069 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30071 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30072 Reported by: Michael Suchanek.
30074 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30076 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30077 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30079 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30081 Remove any reference to non-free fonts.
30083 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30084 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30085 uses non-free components.
30086 * font/font.c (grub_font_get_name): Remove example name.
30087 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30088 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30089 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30090 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30092 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30094 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30096 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30098 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30100 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30102 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30104 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30106 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30108 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30110 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30111 * docs/grub.texi (Command-line and menu entry commands): Document play
30114 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30116 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30117 parse arguments as inline tempo and notes. Move code for playing notes
30119 (play): ... new function.
30121 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30123 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30124 grub_uint16_t instead of short.
30125 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30126 disk from little endian to cpu endianness.
30128 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30130 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30131 GRUB_TICKS_PER_SECOND instead of 120.
30133 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30135 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30136 escape sequence after \e.
30138 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30140 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30141 non-ASCII characters.
30143 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30145 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30146 set root in single quotes to prevent \, from being unescaped.
30148 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30150 Prevent unknown commands from stopping menuentry execution.
30152 * script/execute.c (grub_script_execute_cmdline): Print error after
30155 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30157 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30158 Reported by: Pavel Pisa.
30160 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30162 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30164 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30166 Merge grub_ieee1275_map_physical into grub_map and rename to
30169 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30170 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30172 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30173 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30175 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30177 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30179 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30180 opening and not after.
30182 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30184 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30187 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30189 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30190 (alloc_phys): Use ALIGN_UP instead of align_addr.
30192 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30194 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30196 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30198 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30200 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30202 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30205 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30207 Fix over-4GiB seek on sparc64.
30209 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30210 Replace pos_i and pos_lo with pos. All users updated.
30211 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30213 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30215 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30218 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30220 * util/grub-mkrawimage.c (main): Call set_program_name.
30222 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30224 Properly align 64-bit targets.
30226 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30227 (generate_image): Use ALIGN_ADDR.
30229 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30231 Properly create cross-endian images.
30233 * include/grub/types.h (grub_host_to_target_addr): New macro
30234 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30236 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30238 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30240 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30242 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30244 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30245 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30246 (grub_linux_boot): Divide by 64K when on VESA.
30248 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30250 Support GRUB_GFXPAYLOAD_LINUX.
30252 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30253 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30255 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30257 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30258 to show messages instead of discarding them.
30259 Process errors after executing command and not before. Keep old method
30262 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30264 * configure.ac: Check for ft2build.h.
30266 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30268 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30270 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30272 * genkernsyms.sh.in: Use TARGET_CC.
30274 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30278 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30280 * include/grub/multiboot2.h: Remove leftover file.
30281 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30282 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30284 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30286 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30288 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30290 Fix warnings in grub-emu when compiling with maximum warning options.
30292 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30293 (grub_arch_modules_addr): Return 0 and not NULL.
30294 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30295 (xstrdup): Use newstr instead of dup.
30296 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30297 of disk to dsk to avoid shadowing.
30298 (find_free_slot): Fix prototype.
30299 * util/getroot.c (grub_util_is_dmraid): Make static.
30300 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30301 Add missing prototype.
30302 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30304 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30306 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30309 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30311 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30314 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30316 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30317 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30318 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30319 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30320 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30321 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30323 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30325 * include/grub/err.h (grub_err_printf): Don't export.
30327 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30329 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30331 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30333 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30334 * kern/misc.c (grub_gettext_dummy): Make static.
30336 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30338 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30340 * kern/term.c (grub_putchar): Likewise.
30342 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30344 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30345 buggy hook call and memory leak.
30347 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30349 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30351 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30353 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30355 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30357 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30359 Return grub_errno on allocation error.
30361 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30363 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30365 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30367 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30368 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30370 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30372 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30374 (grub_pxefs_open): Likewise.
30376 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30378 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30379 * util/grub.d/10_kfreebsd.in: Likewise.
30380 * util/grub.d/10_linux.in: Likewise.
30382 2010-02-06 Colin D Bennett <colin@gibibit.com>
30384 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30385 (gfxmenu_mod_SOURCES): New variable.
30386 (gfxmenu_mod_CFLAGS): Likewise.
30387 (gfxmenu_mod_LDFLAGS): Likewise.
30388 * include/grub/term.h (grub_term_set_current_output): Declare
30390 * docs/gfxmenu-theme-example.txt: New file.
30391 * gfxmenu/gfxmenu.c: Likewise.
30392 * gfxmenu/gui_box.c: Likewise.
30393 * gfxmenu/gui_canvas.c: Likewise.
30394 * gfxmenu/gui_circular_progress.c: Likewise.
30395 * gfxmenu/gui_image.c: Likewise.
30396 * gfxmenu/gui_label.c: Likewise.
30397 * gfxmenu/gui_list.c: Likewise.
30398 * gfxmenu/gui_progress_bar.c: Likewise.
30399 * gfxmenu/gui_string_util.c: Likewise.
30400 * gfxmenu/gui_util.c: Likewise.
30401 * gfxmenu/icon_manager.c: Likewise.
30402 * gfxmenu/model.c: Likewise.
30403 * gfxmenu/named_colors.c: Likewise.
30404 * gfxmenu/theme_loader.c: Likewise.
30405 * gfxmenu/view.c: Likewise.
30406 * gfxmenu/widget-box.c: Likewise.
30407 * include/grub/gfxmenu_model.h: Likewise.
30408 * include/grub/gfxmenu_view.h: Likewise.
30409 * include/grub/gfxwidgets.h: Likewise.
30410 * include/grub/gui.h: Likewise.
30411 * include/grub/gui_string_util.h: Likewise.
30412 * include/grub/icon_manager.h: Likewise.
30414 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30416 Agglomerate scrolling in gfxterm.
30418 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30419 (grub_virtual_screen_setup): Initialise 'total_screen'.
30420 (write_char): Split to ...
30421 (paint_char): ... this ...
30422 (write_char): ... and this.
30423 (paint_char): Handle delayed scrolling.
30424 (draw_cursor): Likewise.
30425 (scroll_up): Split to ...
30426 (real_scroll): ... this ...
30427 (scroll_up): ... and this.
30428 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30430 (grub_gfxterm_refresh): Call real_scroll.
30432 2010-02-06 Colin D Bennett <colin@gibibit.com>
30434 * include/grub/misc.h (grub_iscntrl): New inline function.
30435 (grub_isalnum): Likewise.
30436 (grub_strtol): Likewise.
30438 2010-02-06 Colin D Bennett <colin@gibibit.com>
30440 * normal/menu_text.c (get_entry_number): Move from here ...
30441 * normal/menu.c (get_entry_number): ... moved here.
30442 * include/grub/menu.h (grub_menu_get_default_entry_index):
30444 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30445 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30446 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30447 (grub_menu_viewer_should_return): Likewise.
30448 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30449 * normal/menu_text.c (run_menu): Enable menu switching.
30450 * normal/menu_viewer.c (should_return): New variable.
30451 (menu_viewer_changed): Likewise.
30452 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30453 (grub_menu_viewer_should_return): New function.
30454 (menuviewer_write_hook): Likewise.
30455 (grub_menu_viewer_init): Likewise.
30457 2010-02-06 Colin D Bennet <colin@gibibit.com>
30458 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30460 Support for gfxterm in a window.
30462 * include/grub/gfxterm.h: New file.
30463 * include/grub/video.h (struct grub_video_rect): New declaration.
30464 (grub_video_rect_t): Likewise.
30465 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30466 (refcount): New variable.
30467 (render_target): Likewise.
30468 (window): Likewise.
30469 (repaint_callback): Likewise.
30470 (grub_virtual_screen_setup): Use 'render_target'.
30471 (init_window): New function.
30472 (grub_gfxterm_init_window): Likewise.
30473 (grub_gfxterm_init): Check reference counter.
30475 (destroy_window): New function.
30476 (grub_gfxterm_destroy_window): Likewise.
30477 (grub_gfxterm_fini): Check reference counter.
30478 Use destroy_window.
30479 (redraw_screen_rect): Restore viewport.
30480 Use 'render_target' and 'window'.
30481 Call 'repaint_callback'.
30482 (write_char): Use 'render_target'.
30483 (draw_cursor): Likewise.
30484 (scroll_up): Restore viewport.
30485 Use 'render_target' and 'window'.
30486 Call 'repaint_callback'.
30487 (grub_gfxterm_cls): Likewise.
30488 (grub_gfxterm_refresh): Use 'window'.
30489 (grub_gfxterm_set_repaint_callback): New function.
30490 (grub_gfxterm_background_image_cmd): Use 'window'.
30491 (grub_gfxterm_get_term): New function.
30492 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30494 2010-02-06 Colin D Bennett <colin@gibibit.com>
30496 Bitmap scaling support.
30498 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30499 (bitmap_scale_mod_SOURCES): New variable.
30500 (bitmap_scale_mod_CFLAGS): Likewise.
30501 (bitmap_scale_mod_LDFLAGS): Likewise.
30502 * include/grub/bitmap_scale.h: New file.
30503 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30504 (background_image_cmd_options): New variable.
30505 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30506 (cmd): Rename and change type to ...
30507 (background_image_cmd_handle): ... this. All users updated.
30508 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30509 * video/bitmap_scale.c: New file.
30511 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30515 * Makefile.in (LIBSDL): New variable.
30516 (enable_grub_emu_sdl): Likewise.
30517 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30518 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30519 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30520 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30521 * util/sdl.c: New file.
30523 2010-02-06 Colin D Bennett <colin@gibibit.com>
30524 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30526 Double buffering support.
30528 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30529 * include/grub/video.h: Update comment.
30530 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30532 (grub_video_fb_doublebuf_blit_init): New prototype.
30533 * term/gfxterm.c (scroll_up): Support double buffering.
30534 (grub_gfxterm_refresh): Likewise.
30535 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30536 (grub_video_fb_doublebuf_blit_init): Likewise.
30537 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30538 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30539 'displayed_page', 'render_page' and 'update_screen'.
30540 (grub_video_vbe_fini): Free offscreen buffer.
30541 (doublebuf_pageflipping_commit): New function.
30542 (doublebuf_pageflipping_update_screen): Likewise.
30543 (doublebuf_pageflipping_init): Likewise.
30544 (double_buffering_init): Likewise.
30545 (grub_video_vbe_setup): Enable doublebuffering.
30546 (grub_video_vbe_swap_buffers): Implement.
30547 (grub_video_vbe_set_active_render_target): Handle double buffering.
30548 (grub_video_vbe_get_active_render_target): Likewise.
30549 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30550 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30551 (grub_video_vbe_enable_double_buffering): Likewise.
30552 (grub_video_vbe_swap_buffers): Use update_screen.
30553 (grub_video_set_mode): Use double buffering.
30555 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30557 * maintainance/gentrigtables.py: Remove.
30558 * lib/trig.c: Likewise.
30560 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30562 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30564 (trigtables.c): New rule.
30565 (gentrigtables): Likewise.
30566 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30568 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30570 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30573 2010-02-06 Colin D Bennet <colin@gibibit.com>
30575 Trigonometry support.
30577 * include/grub/trig.h: New file.
30578 * lib/trig.c: Likewise.
30579 * maintainance/gentrigtables.py: Likewise.
30580 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30581 (trig_mod_SOURCES): New variable.
30582 (trig_mod_CFLAGS): Likewise.
30583 (trig_mod_LDFLAGS): Likewise.
30585 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30587 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30590 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30592 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30595 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30597 * util/hostdisk.c (open_device): Don't use partition device when reading
30598 before the partition.
30599 (grub_util_biosdisk_read): Don't read from partition and before the
30600 partition in single operation.
30601 (grub_util_biosdisk_write): Don't write to partition and before the
30602 partition in single operation.
30604 2010-02-03 Torsten Landschoff <torsten@debian.org>
30606 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30609 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30611 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30613 (grub_biosdisk_write): Refuse to write to CDROM.
30615 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30617 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30619 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30621 * font/font.c (find_glyph): Check that bmp_idx is available before
30623 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30624 with (font == NULL).
30626 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30628 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30630 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30632 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30633 * util/grub-script-check.c (getline): Fix empty lines case.
30635 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30637 * Makefile.in (check): Exit with fail status when one of the tests
30639 * tests/example_functional_test.c (example_test): Fix reversed assert.
30640 * tests/example_unit_test.c (example_test): Likewise.
30642 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30644 * util/grub.d/10_linux.in: This script does not use any of the
30645 contents of gettext.sh, only the external command `gettext', so stop
30646 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30647 the same prefix as GRUB.)
30648 * util/grub.d/10_kfreebsd.in: Likewise.
30650 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30652 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30655 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30657 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30660 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30662 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30663 having a 4KiB and not 32KiB buffer size.
30665 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30667 * util/hostfs.c: Include `<errno.h>'.
30668 (grub_hostfs_read): Handle errors from fseeko() and fread().
30670 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30672 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30673 loop when using read hooks on files whose size isn't sector-aligned.
30675 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30677 Remove unused parameter.
30679 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30680 (grub_iso9660_open): Remove initialization of `data->length'.
30682 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30684 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30685 memleak conditions.
30687 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30689 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30690 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30692 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30694 * util/bin2h.c (usage): Fix warning (space after backslash).
30696 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30698 * font/font.c: Include `grub/fontformat.h.
30699 Remove font file format constants.
30700 (grub_font_load): Use the new macros.
30701 * include/grub/fontformat.h: New file.
30702 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30703 (write_font_pf2): Use the new macros.
30705 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30707 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30710 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30712 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30714 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30715 (_start): Macroify `0x7F'.
30717 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30718 (make_install_device): Use "(pxe)" as fallback prefix when booting
30721 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30723 * configure.ac: Reset LIBS after check for libgcc symbols.
30725 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30727 * util/hostdisk.c (open_device): Add trailing newline to debug
30730 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30732 * configure.ac: Check for `limits.h'.
30733 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30735 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30737 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30738 capitalize error strings.
30740 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30742 * util/grub.d/10_hurd.in: Add a recovery mode.
30744 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30746 * configure.ac: Check for libgcc symbols with -nostdlib.
30748 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30750 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30752 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30754 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30755 stack since heap may be unavailable at that point.
30756 (grub_ofconsole_gotoxy): Likewise.
30758 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30760 * configure.ac: Check for _restgpr_14_x.
30761 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30762 and _savegpr_* prototypes.
30764 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30766 Use generic grub_reboot() for i386-efi.
30768 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30769 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30770 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30772 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30774 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30775 presence of "prefix" variable as it breaks when normal.mod is
30778 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30780 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30781 stack since heap is unavailable at that point.
30783 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30785 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30786 (grub_freebsd_bootinfo): Rewritten.
30787 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30789 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30791 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30793 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30795 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30798 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30800 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30801 around for handling "/" to the correct fix. Fix a memory leak. Use
30802 xstrdup instead of strdup.
30804 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30806 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30808 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30810 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30812 * font/font.c (struct grub_font): New member 'bmp_idx'.
30813 (font_init): Initialise 'bmp_idx'.
30814 (load_font_index): Fill 'bmp_idx'.
30815 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30817 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30819 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30822 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30824 Move context handling out of the kernel.
30826 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30827 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30828 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30829 * conf/i386-efi.rmk: Likewise.
30830 * conf/i386-ieee1275.rmk: Likewise.
30831 * conf/i386-pc.rmk: Likewise.
30832 * conf/powerpc-ieee1275.rmk: Likewise.
30833 * conf/sparc64-ieee1275.rmk: Likewise.
30834 * conf/x86_64-efi.rmk: Likewise.
30835 * include/grub/env.h: Include grub/menu.h.
30836 (grub_env_var_type): Removed.
30837 (grub_env_var): Replaced field 'type' with 'global'.
30838 (grub_env_find): New prototype.
30839 (grub_env_context_open): Remove EXPORT_FUNC.
30840 (grub_env_context_close): Likewise.
30841 (grub_env_export): Likewise.
30842 (grub_env_set_data_slot): Removed.
30843 (grub_env_get_data_slot): Likewise.
30844 (grub_env_unset_data_slot): Likewise.
30845 (grub_env_unset_menu): New prototype.
30846 (grub_env_set_menu): Likewise.
30847 (grub_env_get_menu): Likewise.
30848 * include/grub/env_private.h: New file.
30849 * include/grub/normal.h (grub_context_init): New prototype.
30850 (grub_context_fini): Likewise.
30851 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30852 * normal/context.c (grub_cmd_export): ... to here.
30853 * kern/env.c: Include env_private.h.
30854 (HASHSZ): Moved to include/grub/env_private.h.
30855 (grub_env_context): Likewise.
30856 (grub_env_sorted_var): Likewise.
30857 (current_context): Renamed from this ...
30858 (grub_current_context): ...to this. 'static' removed. All users updated.
30859 (grub_env_find): Removed 'static'.
30860 (grub_env_context_open): Moved to normal/context.c.
30861 (grub_env_context_close): Likewise.
30862 (grub_env_export): Likewise.
30863 (mangle_data_slot_name): Removed.
30864 (grub_env_set_data_slot): Likewise.
30865 (grub_env_get_data_slot): Likewise.
30866 (grub_env_unset_data_slot): Likewise.
30867 * kern/main.c (grub_set_root_dev): Don't export root.
30868 It will be done later.
30869 (grub_main): Don't export prefix.
30870 It will be done later.
30871 * normal/context.c: New file.
30872 * normal/main.c (free_menu): Use grub_env_unset_menu.
30873 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30874 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30875 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30876 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30878 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30882 * commands/setpci.c: New file.
30883 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30884 (setpci_mod_SOURCES): New variable.
30885 (setpci_mod_CFLAGS): Likewise.
30886 (setpci_mod_LDFLAGS): Likewise.
30888 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30890 Byte-addressable PCI configuration space.
30892 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30894 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30895 GRUB_PCI_REG_CACHELINE.
30896 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30897 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30898 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30899 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30900 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30901 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30902 grub_pci_make_address.
30903 (lock_rom_area): Likewise.
30904 * commands/lspci.c (grub_lspci_iter): Use macroses
30905 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30906 of grub_pci_make_address.
30907 * disk/ata.c (grub_ata_pciinit): Likewise.
30908 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30909 (GRUB_PCI_REG_VENDOR): Likewise.
30910 (GRUB_PCI_REG_DEVICE): Likewise.
30911 (GRUB_PCI_REG_COMMAND): Likewise.
30912 (GRUB_PCI_REG_STATUS): Likewise.
30913 (GRUB_PCI_REG_REVISION): Likewise.
30914 (GRUB_PCI_REG_CLASS): Likewise.
30915 (GRUB_PCI_REG_CACHELINE): Likewise.
30916 (GRUB_PCI_REG_LAT_TIMER): Likewise.
30917 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
30918 (GRUB_PCI_REG_BIST): Likewise.
30919 (GRUB_PCI_REG_ADDRESSES): Likewise.
30920 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30921 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30922 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30923 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30924 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30925 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30926 (GRUB_PCI_REG_CIS_POINTER): Likewise.
30927 (GRUB_PCI_REG_SUBVENDOR): Likewise.
30928 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
30929 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
30930 (GRUB_PCI_REG_CAP_POINTER): Likewise.
30931 (GRUB_PCI_REG_IRQ_LINE): Likewise.
30932 (GRUB_PCI_REG_IRQ_PIN): Likewise.
30933 (GRUB_PCI_REG_MIN_GNT): Likewise.
30934 (GRUB_PCI_REG_MAX_LAT): Likewise.
30935 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
30936 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
30937 * video/efi_uga.c (find_framebuf): Likewise.
30938 * video/sm712.c (grub_video_sm712_setup): Likewise.
30939 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
30942 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30944 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
30945 can be reliably determined to be supported.
30947 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30949 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
30950 that VESA is supported.
30951 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
30954 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30956 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
30958 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30960 * util/misc.c (make_system_path_relative_to_its_root): Work around
30961 special-casing of "/", as previous incarnation of this routine did.
30963 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30965 Fix any-emu compilation.
30967 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
30968 * grub_bin2h_SOURCES: New variable.
30970 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30972 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
30974 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30976 * util/grub.d/00_header.in: Fix handling of locale_dir.
30978 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30980 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
30981 as possible unifont location (Gentoo).
30982 Reported by: Alexander Brüning
30984 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30986 Don't try to generate lists for kernel.img.
30988 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
30989 (pkglib_MODULES): Remove kernel.img.
30990 (kernel_img_EXPORTS): Removed.
30991 (kernel_img_RELOCATABLE): New variable.
30992 * conf/x86_64-efi.rmk: Likewise.
30993 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
30995 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30997 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
30998 grub_xasprintf or grub_snprintf.
30999 (grub_vsprintf): Likewise.
31000 (grub_snprintf): New proto.
31001 (grub_vsnprintf): Likewise.
31002 (grub_xasprintf): Likewise.
31003 (grub_xvasprintf): Likewise.
31004 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31005 (grub_sprintf): Removed.
31006 (grub_vsnprintf): New function.
31007 (grub_snprintf): Likewise.
31008 (grub_xvasprintf): Likewise.
31009 (grub_xasprintf): Likewise.
31010 (grub_vsprintf): Renamed to ...
31011 (grub_vsnprintf_real): ...this. New argument max_len.
31013 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31015 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31016 fix grub-script-check warning.
31018 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31020 * include/grub/font.h (grub_font_load): Fix prototype.
31022 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31024 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31026 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31028 * include/grub/x86_64/at_keyboard.h: New file.
31030 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31032 * loader/mips/linux.c: Include missing grub/i18n.h.
31034 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31036 * normal/menu.c (notify_execution_failure): Clarify error message.
31038 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31040 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31041 return value (and revert all return statements). Update users.
31043 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31045 * kern/device.c (grub_device_iterate): Allocate new part_ent
31046 structure based on sizeof (*p) rather than sizeof (p->next), to
31047 account for structure padding.
31049 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31050 disk is NULL, which might happen for LVM physical volumes with no
31053 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31055 * loader/mips/linux.c (grub_cmd_initrd)
31056 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31058 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31060 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31061 (grub_video_video_init, grub_video_bitmap_init)
31062 (grub_font_manager_init, grub_term_gfxterm_init)
31063 (grub_at_keyboard_init): New extern declarations.
31064 (grub_machine_init): Initialize gfxterm and at_keyboard.
31066 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31068 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31069 `gfxterm.mod' into core image.
31071 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31072 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31073 (kernel_img_FORMAT): Copy to ...
31075 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31076 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31077 (kernel_img_FORMAT): ... here, and ...
31079 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31080 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31081 (kernel_img_FORMAT): ... here.
31083 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31084 and input (at_keyboard) terminals in kernel.
31085 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31087 (pkglib_MODULES): Remove `pci.mod'.
31088 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31089 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31090 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31091 (at_keyboard_mod_LDFLAGS): Remove variables.
31093 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31095 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31097 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31099 * include/grub/mips/libgcc.h: Only export symbols for functions
31100 that libgcc provides.
31102 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31106 * bus/bonito.c: New file.
31107 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31108 GRUB_PCI_NUM_DEVICES.
31109 * term/i386/pc/serial.c: Move to ...
31110 * term/serial.c: ... here. All users updated.
31111 * util/i386/pc/grub-mkimage.c: Move to ...
31112 * util/grub-mkrawimage.c: ... here. All users updated.
31113 * term/i386/pc/at_keyboard.c: Move to ...
31114 * term/at_keyboard.c: ... here. All users updated.
31115 * conf/mips-qemu-mips.rmk: New file.
31116 * conf/mips-yeeloong.rmk: Likewise.
31117 * conf/mips.rmk: Likewise.
31118 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31120 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31122 (grub_ata_pciinit): Support CS5536.
31123 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31124 * font/font_cmd.c (loadfont_command): Open file before passing it to
31126 (pseudo_file_read): New function.
31127 (pseudo_file_close): Likewise.
31128 (pseudo_fs): New structure.
31129 (load_font_module): New function.
31130 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31131 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31132 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31133 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31134 * include/grub/i386/at_keyboard.h: Split into ...
31135 * include/grub/at_keyboard.h: ... this ...
31136 * include/grub/i386/at_keyboard.h: ... and this.
31137 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31139 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31141 (grub_elf64_size): Likewise.
31142 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31144 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31145 * include/grub/i386/coreboot/serial.h: Rewritten.
31146 * include/grub/i386/ieee1275/serial.h: Include
31147 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31148 * include/grub/i386/pc/serial.h: Moved from here ...
31149 * include/grub/serial.h: ... to here. All users updated.
31150 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31151 (GRUB_PCI_NUM_BUS): Likewise.
31152 (GRUB_PCI_NUM_DEVICES): Likewise.
31153 (grub_pci_device_map_range): Add missing volatile keyword.
31154 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31155 * include/grub/mips/at_keyboard.h: New file.
31156 * include/grub/mips/cache.h: Likewise.
31157 * include/grub/mips/io.h: Likewise.
31158 * include/grub/mips/kernel.h: Likewise.
31159 * include/grub/mips/libgcc.h: Likewise.
31160 * include/grub/mips/pci.h: Likewise.
31161 * include/grub/mips/qemu-mips/boot.h: Likewise.
31162 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31163 * include/grub/mips/qemu-mips/loader.h: Likewise.
31164 * include/grub/mips/qemu-mips/memory.h: Likewise.
31165 * include/grub/mips/qemu-mips/serial.h: Likewise.
31166 * include/grub/mips/qemu-mips/time.h: Likewise.
31167 * include/grub/mips/relocator.h: Likewise.
31168 * include/grub/mips/time.h: Likewise.
31169 * include/grub/mips/types.h: Likewise.
31170 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31171 * include/grub/mips/yeeloong/boot.h: Likewise.
31172 * include/grub/mips/yeeloong/kernel.h: Likewise.
31173 * include/grub/mips/yeeloong/loader.h: Likewise.
31174 * include/grub/mips/yeeloong/memory.h: Likewise.
31175 * include/grub/mips/yeeloong/pci.h: Likewise.
31176 * include/grub/mips/yeeloong/serial.h: Likewise.
31177 * include/grub/mips/yeeloong/time.h: Likewise.
31178 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31179 * kern/elf.c (grub_elf32_size): New parameter. All users
31181 (grub_elf64_size): Likewise.
31182 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31183 Load modules before saying "Welcome to GRUB!".
31184 Call grub_refresh after saying "Welcome to GRUB!".
31185 * kern/mips/cache.S: New file.
31186 * kern/mips/cache_flush.S: Likewise.
31187 * kern/mips/dl.c: Likewise.
31188 * kern/mips/init.c: Likewise.
31189 * kern/mips/qemu-mips/init.c: Likewise.
31190 * kern/mips/startup.S: Likewise.
31191 * kern/mips/yeeloong/init.c: Likewise.
31192 * kern/term.c (grub_putcode): Handle NULL terminal.
31193 (grub_getcharwidth): Likewise.
31194 (grub_getkey): Likewise.
31195 (grub_checkkey): Likewise.
31196 (grub_getkeystatus): Likewise.
31197 (grub_getxy): Likewise.
31198 (grub_getwh): Likewise.
31199 (grub_gotoxy): Likewise.
31200 (grub_cls): Likewise.
31201 (grub_setcolorstate): Likewise.
31202 (grub_setcolor): Likewise.
31203 (grub_getcolor): Likewise.
31204 (grub_refresh): Likewise.
31205 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31206 (write_jump): Add hatch nop.
31207 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31208 * lib/mips/setjmp.S: New file.
31209 * loader/mips/linux.c: Likewise.
31210 * term/i386/pc/at_keyboard.c: Move from here ...
31211 * term/at_keyboard.c: ... to here.
31212 * term/i386/pc/serial.c: Moved from here ...
31213 * term/serial.c: ... to here. All users updated.
31214 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31215 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31216 (serial_translate_key_sequence): Avoid deadlock.
31217 (grub_serial_getkey): Handle backspace.
31218 (grub_serial_putchar): Fix newline handling.
31219 * util/i386/pc/grub-mkimage.c: Move from here ...
31220 * util/grub-mkrawimage.c: ... to here. All users updated.
31221 (generate_image): New parameters 'font_path' and 'format'.
31222 Support embedding font.
31223 Use grub_host_to_target* instead of grub_cpu_to_le*.
31224 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31225 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31226 (options): New option "--font".
31228 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31229 (main): Handle "--font".
31230 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31231 (grub_virtual_screen_setup): Set bg_color_display.
31232 (redraw_screen_rect): Use bg_color_display instead of incorrect
31234 (grub_gfxterm_cls): Likewise.
31235 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31236 Support embedding config file.
31237 (add_segments): Likewise.
31238 (options): New option "--config".
31239 (main): Handle "--config".
31240 * video/sm712.c: New file.
31242 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31244 Fix parallel builds.
31246 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31247 font.c depend on ascii.h).
31249 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31251 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31253 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31255 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31256 By default: disabled.
31257 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31260 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31262 * font/font.c: Update copyright years.
31263 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31265 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31267 * font/font.c: Include `ascii.h'.
31268 (ASCII_BITMAP_SIZE): New macro.
31269 (ascii_font_glyph): Define.
31270 (ascii_glyph_lookup): New function.
31271 (grub_font_get_string_width): Change comment. If glyph not found, use
31272 ascii_glyph_lookup.
31273 (grub_font_get_glyph_with_fallback): If glyph not available returns
31274 ascii_glyph_lookup.
31275 * util/grub-mkfont.c (file_formats): New enum.
31276 (options): Add `ascii-bitmaps' new option.
31277 (usage): Add `asii-bitmaps' new option.
31278 (write_font_ascii_bitmap): New function.
31279 (write_font): Rename to ...
31280 (write_font_p2): ... this. Remove print_glyphs call.
31281 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31282 used. Call print_glyphs.
31283 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31285 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31287 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31288 (grub_bin2h_SOURCES): New variable.
31289 * util/bin2h.c: New file.
31291 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31293 * include/multiboot.h: Resynced with spec.
31294 * include/multiboot2.h: Likewise.
31295 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31296 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31298 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31300 * include/grub/term.h (grub_term_register_input,
31301 grub_term_register_output): Check return of terminal init()
31302 routines, and abort if errors are raised.
31304 * commands/terminal.c: Update copyright year.
31306 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31308 * commands/terminal.c (grub_cmd_terminal_input)
31309 (grub_cmd_terminal_output): Check return of terminal init()
31310 routines, and abort if errors are raised.
31312 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31314 * include/grub/i386/bsd.h: Fix include pathes.
31316 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31318 Add missing *BSD copyright headers.
31320 * include/grub/aout.h: Add BSD licence.
31321 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31322 * include/grub/i386/freebsd_linker.h: ... here,
31323 * include/grub/i386/freebsd_reboot.h: ... here,
31324 * include/grub/i386/netbsd_bootinfo.h: ... here,
31325 * include/grub/i386/netbsd_reboot.h: ... here,
31326 * include/grub/i386/openbsd_bootarg.h: ... here,
31327 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31328 licence to each file.
31330 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31332 * acinclude.m4: Remove `nop' assembly instruction; it's not
31333 implemented by all architectures.
31335 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31337 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31338 ELILO. This is no longer necessary.
31340 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31342 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31344 * util/grub-script-check.c: grub-script-check tool.
31345 * conf/common.rmk: Make rules for grub-script-check.
31347 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31349 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31350 spotting it back in 2008. Shame on me for forgetting he did.
31352 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31354 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31356 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31357 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31358 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31359 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31360 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31361 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31363 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31365 * include/grub/test.h: Add license header.
31366 * tests/example_functional_test.c: Likewise.
31367 * tests/example_unit_test.c: Likewise.
31368 * tests/lib/functional_test.c: Likewise.
31369 * tests/lib/test.c: Likewise.
31370 * tests/lib/unit_test.c: Likewise.
31372 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31374 Use flag-based instead of hook-based video mode selection and "auto"
31377 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31378 (grub_video_set_mode): Changed prototype. All users updated.
31379 (grub_video_check_mode_flag): New inline function.
31380 * video/video.c (parse_modespec): New function.
31381 (grub_video_set_mode): Parse flags and keywords.
31383 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31385 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31388 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31390 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31392 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31394 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31396 * util/grub-emu.c (usage): Likewise.
31397 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31398 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31399 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31400 * util/i386/pc/grub-setup.c (usage): Likewise.
31402 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31404 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31406 (grub_util_info): Likewise.
31407 (grub_util_error): Likewise.
31408 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31409 and/or new lines in `grub_util_warna', `grub_util_info',
31410 `grub_util_error' calls.
31411 * util/getroot.c: Likewise.
31412 * util/grub-editenv.c: Likewise.
31413 * util/grub-emu.c: Likewise.
31414 * util/grub-fstest.c: Likewise.
31415 * util/grub-mkdevicemap.c: Likewise.
31416 * util/grub-mkfont.c: Likewise.
31417 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31418 * util/grub-mkrelpath.c: Likewise.
31419 * util/grub-pe2elf.c: Likewise.
31420 * util/grub-probe.c: Likewise.
31421 * util/hostdisk.c: Likewise.
31422 * util/i386/efi/grub-mkimage.c: Likewise.
31423 * util/i386/pc/grub-mkimage.c: Likewise.
31424 * util/i386/pc/grub-setup.c: Likewise.
31425 * util/ieee1275/ofpath.c: Likewise.
31426 * util/mkisofs/eltorito.c: Likewise.
31427 * util/mkisofs/rock.c: Likewise.
31428 * util/mkisofs/write.c: Likewise.
31429 * util/raid.c: Likewise.
31430 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31431 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31433 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31435 Enable multiboot on non-pc.
31437 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31438 multiboot.mod and multiboot2.mod to ...
31439 * conf/i386.rmk (pkglib_MODULES): ... here.
31440 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31442 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31443 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31445 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31446 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31448 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31449 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31451 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31452 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31454 (ata_mod_SOURCES): Removed.
31455 (ata_mod_CFLAGS): Likewise.
31456 (ata_mod_LDFLAGS): Likewise.
31457 (relocator_mod_SOURCES): Removed.
31458 (relocator_mod_CFLAGS): Likewise.
31459 (relocator_mod_ASFLAGS): Likewise.
31460 (relocator_mod_LDFLAGS): Likewise.
31462 * include/grub/x86_64/multiboot.h: New file.
31463 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31466 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31468 Video multiboot support.
31470 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31472 * include/multiboot.h: Resynced with multiboot specification.
31473 * include/multiboot2.h: Likewise.
31474 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31475 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31476 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31477 (HAS_VGA_TEXT): Likewise.
31478 (accepts_video): New variable.
31479 (grub_multiboot_set_accepts_video): New function.
31480 (grub_multiboot_get_mbi_size): Account for video structures.
31481 (set_video_mode): New function.
31482 (retrieve_video_parameters): Likewise.
31483 (grub_multiboot_make_mbi): Fill video fields.
31485 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31489 * include/grub/video.h (grub_video_driver_id): New type.
31490 (grub_video_adapter): New member 'id'. All users updated.
31491 (grub_video_get_driver_id): New proto.
31492 * video/video.c (grub_video_get_driver_id): New function.
31494 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31496 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31499 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31501 * normal/cmdline.c (print_completion): Gettextizze.
31503 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31505 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31507 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31509 * gettext/gettext.c (grub_gettext_translate): Push and pop
31511 (grub_gettext_delete_list): Change comment style.
31512 * kern/err.c (grub_error): Gettextizze.
31513 (grub_fatal): Gettextizze.
31515 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31517 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31518 (grub_linux16_real_boot): ... this.
31519 * kern/i386/loader.S: Likewise.
31520 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31521 (grub_linux16_boot): New function. Switches to text mode and calls
31522 grub_linux16_real_boot().
31524 * loader/i386/bsd.c: Include `<grub/video.h>'.
31525 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31526 text mode before calling grub_unix_real_boot().
31528 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31529 (grub_multiboot_boot): Switch to text mode before calling
31530 grub_relocator32_boot().
31532 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31533 (grub_chainloader_boot): Switch to text mode before calling
31534 grub_chainloader_real_boot().
31536 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31537 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31539 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31542 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31543 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31545 * util/grub.d/00_header.in: Define a "savedefault" function for use
31547 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31549 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31550 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31552 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31553 saved_entry if boot_once is unset.
31554 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31555 previous saved entry (i.e. grub-reboot).
31557 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31559 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31561 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31563 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31565 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31567 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31569 * util/grub-reboot.in: Fix --version output.
31570 * util/grub-set-default.in: Likewise.
31572 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31574 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31577 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31579 * util/grub.d/00_header.in: Quote the value assigned to `default',
31580 in case it contains spaces.
31582 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31584 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31585 `save_default_entry' call from the macosx case to the linux case.
31587 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31588 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31590 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31591 in `chosen' environment variable.
31592 * normal/menu_text.c (get_entry_number): Check if the variable
31593 matches the title of a menu entry.
31594 (run_menu): Pass menu to get_entry_number.
31596 * util/grub-reboot.in: New file.
31597 * util/grub-set-default.in: New file.
31598 * conf/common.rmk (grub-reboot): New utility.
31599 (grub-set-default): New utility.
31601 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31602 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31603 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31604 move it to `saved_entry' for the next boot. Load environment on
31606 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31607 * util/grub.d/10_hurd.in: Likewise.
31608 * util/grub.d/10_linux.in (linux_entry): Likewise.
31609 * util/grub.d/10_windows.in: Likewise.
31610 * util/grub.d/30_os-prober.in: Likewise.
31612 * util/grub-install.in: Create environment block.
31613 * util/i386/efi/grub-install.in: Likewise.
31614 * util/ieee1275/grub-install.in: Likewise.
31615 * util/sparc64/ieee1275/grub-install.in: Likewise.
31617 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31619 Unit testing framework for GRUB.
31621 * Makefile.in: Test framework build rules for 'make check'.
31622 * conf/tests.rmk: Build rules for individual tests and framework.
31624 * include/grub/test.h: Header file for whitebox tests.
31625 * tests/lib/functional_test.c: Framework support for whitebox
31627 * tests/lib/test.c: Common whitebox testing code for unit and
31629 * tests/lib/unit_test.c: Framework support for whitebox unit
31632 * tests/util/grub-shell-tester.in: Support utility for grub-script
31634 * tests/util/grub-shell.in: Utility to execute grub-script
31635 commands in a Qemu instance.
31637 * tests/example_functional_test.c: Example whitebox functional
31639 * tests/example_grub_script_test.in: Example grub-script test.
31640 * tests/example_scripted_test.in: Example scripted test.
31641 * tests/example_unit_test.c: Example whitebox unit test.
31643 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31645 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31646 Add loader/i386/multiboot_mbi.c.
31647 (multiboot2_mod_SOURCES): Likewise.
31648 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31649 (multiboot2_mod_SOURCES): Likewise.
31650 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31651 (grub_multiboot_make_mbi): Likewise.
31652 (grub_multiboot_free_mbi): Likewise.
31653 (grub_multiboot_init_mbi): Likewise.
31654 (grub_multiboot_add_module): Likewise.
31655 (grub_multiboot_set_bootdev): Likewise.
31656 * loader/i386/multiboot.c (mbi): Removed.
31657 (mbi_dest): Likewise.
31658 (alloc_mbi): New variable.
31659 (grub_multiboot_payload_size): Removed. All users updated.
31660 (grub_multiboot_pure_size): New variable.
31661 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31662 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31663 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31664 (grub_fill_multiboot_mmap): Likewise.
31665 (grub_multiboot_get_bootdev): Likewise.
31666 (grub_multiboot): Use multiboot_mbi functions.
31667 * loader/i386/multiboot_mbi.c: New file.
31669 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31671 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31672 it would result in module crash.
31674 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31676 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31677 (grub_ofconsole_getwh): Split to ...
31678 (grub_ofconsole_getwh): ... this.
31679 (grub_ofconsole_dimensions): ...and this.
31680 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31682 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31684 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31686 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31688 * loader/i386/pc/multiboot2.c: Removed stalled file.
31690 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31692 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31693 Reported by: Grégoire Sutre
31695 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31697 * util/misc.c (canonicalize_file_name): New function.
31698 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31699 instead of realpath().
31701 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31703 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31704 and make it clearer that it's optional. Based on confusion
31707 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31709 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31710 in premature implicit newline.
31712 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31714 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31715 which resulted in garbled command line at the end of screen.
31717 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31719 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31720 initialization with similar approach as with other Linux loaders.
31722 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31724 Fix i386-ieee1275 build.
31726 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31727 and grub_term_height() for video_{width,height} initialization.
31729 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31731 Fix grub-emu build.
31733 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31735 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31736 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31738 Support for multiple terminals.
31740 * Makefile.in (pkglib_DATA): terminal.lst.
31741 (terminal.lst): New target.
31742 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31743 (GRUB_MOD_INIT(handler)): Likewise.
31744 (GRUB_MOD_FINI(handler)): Likewise.
31745 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31746 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31747 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31748 (grub_cmd_sleep): Use grub_term_save_pos.
31749 * commands/terminal.c: New file.
31750 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31751 commands/terminal.c and lib/charset.c.
31752 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31753 (pkglib_MODULES): Add terminal.mod.
31754 (terminal_mod_SOURCES): New variable.
31755 (terminal_mod_CFLAGS): Likewise.
31756 (terminal_mod_LDFLAGS): Likewise.
31757 * genhandlerlist.sh: Don't handle terminals.
31758 * genmk.rb: Generate terminal-*.lst.
31759 * genterminallist.sh: New file.
31760 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31761 (grub_is_valid_utf8): Likewise.
31762 (grub_utf8_to_ucs4_alloc): Likewise.
31763 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31764 (grub_menu_register_viewer): Changed argument.
31765 (grub_menu_try_text): New proto.
31766 (grub_gfxmenu_try_hook): New declaration.
31767 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31768 (grub_menu_init_page): Additional argument term.
31769 (grub_normal_init_page): Likewise.
31770 (grub_cmdline_get): Arguments simplified.
31771 (grub_utf8_to_ucs4_alloc): Removed.
31772 (grub_print_ucs4): Additional argument term.
31773 (grub_getstringwidth): Likewise.
31774 (grub_print_message_indented): Likewise.
31775 (grub_menu_text_register_instances): New proto.
31776 (grub_show_menu): Likewise.
31777 (read_terminal_list): Likewise.
31778 (grub_set_more): Likewise.
31779 * include/grub/parser.h: Include handler.h.
31780 * include/grub/reader.h: Rewritten.
31781 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31782 (GRUB_TERM_WIDTH): Changed to function.
31783 (GRUB_TERM_HEIGHT): Likewise.
31784 (GRUB_TERM_BORDER_WIDTH): Likewise.
31785 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31786 (GRUB_TERM_NUM_ENTRIES): Likewise.
31787 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31788 (GRUB_TERM_CURSOR_X): Likewise.
31789 (grub_term_input_class): Likewise.
31790 (grub_term_output_class): Likewise.
31791 (grub_term_outputs_disabled): New declaration.
31792 (grub_term_inputs_disabled): Likewise.
31793 (grub_term_outputs): Likewise.
31794 (grub_term_inputs): Likewise.
31795 (grub_term_register_input): Rewritten.
31796 (grub_term_register_output): Likewise.
31797 (grub_term_unregister_input): Likewise.
31798 (grub_term_unregister_output): Likewise.
31799 (FOR_ACTIVE_TERM_INPUTS): New macro.
31800 (FOR_DISABLED_TERM_INPUTS): Likewise.
31801 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31802 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31803 * include/grub/terminfo.h: Add oterm argument to all protypes.
31804 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31805 Use grub_rescue_run.
31806 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31808 * kern/reader.c: Removed. All users updated.
31809 * kern/rescue_reader.c (grub_rescue_init): Removed.
31810 (grub_rescue_reader): Likewise.
31811 (grub_register_rescue_reader): Likewise.
31812 (grub_rescue_run): New function based on kern/reader.c.
31813 * kern/term.c: Adapted for multiterm.
31814 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31815 (grub_is_valid_utf8): Likewise.
31816 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31817 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31819 * loader/i386/linux.c (grub_linux_boot): Likewise.
31820 * normal/auth.c (grub_username_get): New function.
31821 (grub_auth_check_authentication): Use grub_username_get.
31822 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31823 * normal/color.c: Adapt for multiterm.
31824 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31825 (grub_normal_init_page): Additional argument term.
31826 (read_lists): Call read_terminal_lists.
31827 (grub_enter_normal_mode): Call grub_cmdline_run.
31828 Handle grub_normal_exit_level.
31829 (grub_cmd_normal): Make reentrant.
31830 (grub_cmd_normal_exit): New function.
31831 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31832 * normal/menu.c: Adapt for multiterm.
31833 * normal/menu_entry.c: Likewise.
31834 * normal/menu_text.c: Likewise.
31835 * normal/menu_viewer.c: Removed. All users updated.
31836 * normal/term.c: New file.
31837 * util/console.c: Change order of includes to workaround a bug in
31839 * term/terminfo.c: New argument oterm on all exported functions.
31841 * util/grub-editenv.c (grub_term_input_class): Removed.
31842 (grub_term_output_class): Likewise.
31844 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31846 Make loader output a bit more user-friendly.
31848 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31849 is being loaded. Likewise for the Hurd.
31851 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31852 that kernel of FreeBSD ${version} is being loaded.
31854 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31856 (grub_cmd_initrd): Likewise.
31857 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31858 that Linux ${version} is being loaded. Likewise for initrd.
31860 2010-01-09 Carles Pina i Estany <carles@pina.cat>
31862 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31864 2010-01-08 Carles Pina i Estany <carles@pina.cat>
31866 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31867 (GRUB_MOD_INIT): Gettextizze.
31868 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31869 (GRUB_MOD_INIT): Gettextizze.
31870 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31871 (grub_cmd_linux): Capitalise Linux.
31872 (GRUB_MOD_INIT): Gettextizze.
31873 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31874 (grub_cmd_linux): Capitalise Linux.
31875 (GRUB_MOD_INIT): Gettextizze.
31876 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31877 (grub_cmd_linux): Capitalise Linux.
31878 (GRUB_MOD_INIT): Gettextizze.
31879 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31880 (GRUB_MOD_INIT): Gettextizze.
31881 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31882 (grub_cmd_linux): Capitalise Linux.
31883 (GRUB_MOD_INIT): Gettextizze.
31884 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31885 (grub_cpu_xnu_init): Gettextizze.
31886 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31887 (GRUB_MOD_INIT): Gettextizze.
31888 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31889 (GRUB_MOD_INIT): Gettextizze.
31890 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31891 (grub_linux_load64): Capitalise Linux.
31892 (GRUB_MOD_INIT): Gettextizze.
31893 * loader/xnu.c: Include `<grub/i18n.h>'.
31894 (GRUB_MOD_INIT): Gettextizze.
31895 * po/POTFILES: Add `loader/efi/appleloader.c',
31896 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31897 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31898 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31899 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31900 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31901 and `loader/xnu.c'.
31903 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31905 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31907 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31909 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31910 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
31911 * util/mkisofs/mkisofs.c (main): Readjust --version output.
31913 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31915 Reset Multiboot 2 support. New loader implements the draft in
31916 /branches/multiboot2 and shares as much code as possible with the
31917 production Multiboot 1 implementation.
31919 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
31920 * loader/multiboot2.c: Likewise.
31921 * loader/i386/multiboot_helper.S: Likewise.
31922 * include/multiboot2.h: Replace with latest version from the draft
31923 in /branches/multiboot2.
31925 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
31926 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
31927 and `loader/multiboot2.c'.
31928 (pkglib_MODULES): Add `multiboot2.mod'.
31929 (multiboot2_mod_SOURCES): New variable.
31930 (multiboot2_mod_LDFLAGS): Likewise.
31931 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
31933 * conf/i386-pc.rmk: Likewise.
31935 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31936 (multiboot_mod_SOURCES): Remove variable.
31937 (multiboot_mod_LDFLAGS): Likewise.
31938 (multiboot_mod_CFLAGS): Likewise.
31940 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
31941 `<multiboot2.h>' instead of `<multiboot.h>'.
31942 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
31943 (MULTIBOOT_HEADER_MAGIC): New macros.
31945 * loader/multiboot_loader.c (module_version_status): Remove variable.
31946 (find_multi_boot2_header): Remove function.
31947 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
31948 logic. Always check for the Multiboot version we're compiling for.
31949 (grub_cmd_module_loader): Likewise.
31950 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
31951 command instead of `multiboot'.
31953 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31955 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
31956 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
31959 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31960 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31962 Fix breakage introduced with previous commit.
31964 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
31966 * normal/handler.c (read_handler_list): Revert part of previous commit
31967 affecting this file.
31968 * normal/main.c (read_lists): Move read_handler_list() call back to ...
31969 (grub_normal_execute): ... here.
31971 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31973 Merge prefix-redefinition-fix branch.
31975 * normal/autofs.c (read_fs_list): Make function capable of being
31976 run multiple times, gracefuly replacing the previous data
31978 * normal/dyncmd.c (read_command_list): Likewise.
31979 * normal/handler.c (read_handler_list): Likewise.
31980 * normal/main.c (read_lists): New function. Calls all the
31981 list reading functions.
31982 (grub_normal_execute): Use read_lists() instead of calling all
31983 list reading functions explicitly. Register read_lists() as a
31984 variable hook attached to ${prefix}.
31986 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31988 Merge crypto branch.
31990 * Makefile.in (pkglib_DATA): Add crypto.lst.
31991 (crypto.lst): New target.
31992 * commands/hashsum.c: New file.
31993 * commands/password.c (check_password): Use grub_crypto_memcmp.
31994 * commands/password_pbkdf2.c: New file.
31995 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
31996 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
31997 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
31998 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
31999 -I$(srcdir)/lib/libgcrypt_wrap.
32000 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32001 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32002 password_pbkdf2.mod.
32003 (crypto_mod_SOURCES): New variable.
32004 (crypto_mod_CFLAGS): Likewise.
32005 (crypto_mod_LDFLAGS): Likewise.
32006 (hashsum_mod_SOURCES): New variable.
32007 (hashsum_mod_CFLAGS): Likewise.
32008 (hashsum_mod_LDFLAGS): Likewise.
32009 (pbkdf2_mod_SOURCES): New variable.
32010 (pbkdf2_mod_CFLAGS): Likewise.
32011 (pbkdf2_mod_LDFLAGS): Likewise.
32012 (password_pbkdf2_mod_SOURCES): New variable.
32013 (password_pbkdf2_mod_CFLAGS): Likewise.
32014 (password_pbkdf2_mod_LDFLAGS): Likewise.
32015 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32016 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32017 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32018 Include conf/gcry.rmk.
32019 * include/grub/auth.h: Rewritten.
32020 * include/grub/crypto.h: New file.
32021 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32022 * include/grub/normal.h (read_crypto_list): New prototype.
32023 * lib/crypto.c: New file.
32024 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32025 * lib/pbkdf2.c: Likewise.
32026 * normal/auth.c (grub_auth_strcmp): Removed.
32027 (grub_iswordseparator): Likewise.
32028 (grub_auth_strword): Likewise.
32029 (is_authenticated): Use grub_strword.
32030 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32031 and grub_strword. Pass entered password to authentication callback.
32032 * normal/crypto.c: New file.
32033 * normal/main.c: Call read_crypto_list.
32034 * util/grub-mkpasswd-pbkdf2.c: New file.
32035 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32037 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32039 Fix descent and ascent calculation.
32041 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32042 (options): New option "asce".
32044 (add_char): Ignore invalid glyphs for descent calculation.
32045 Calculate ascent from actual content.
32046 (print_glyphs): Use 'asce'.
32047 (write_font): Likewise. Allow ascent override.
32048 (main): Handle "asce" option.
32050 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32052 * kern/err.c: Include `<grub/i18n.h>'.
32053 (grub_print_error): Add full stop. Gettextizze.
32054 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32055 (grub_bsd_load_elf): Capitalise ELF.
32056 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32057 (grub_cmd_freebsd_module): Likewise.
32058 (grub_cmd_freebsd_module_elf): Likewise.
32059 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32061 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32063 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32064 * commands/search_file.c (HELP_MESSAGE): New macro.
32065 * commands/search_label.c (HELP_MESSAGE): Likewise.
32066 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32067 * po/POTFILES: Add `commands/search_file.c',
32068 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32069 `commands/search.c'.
32071 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32073 * config.rpath: Update from Gnulib.
32075 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32077 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32079 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32081 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32083 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32085 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32086 arguments to fread so that we get a return value in bytes, rather
32087 than something that will normally be rounded down to 0.
32088 Adjust error handling to avoid producing garbage when size_t is not
32089 the same size as long long.
32091 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32093 * util/mkisofs/write.c (padblock_write): Check return value of
32096 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32098 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32101 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32103 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32105 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32106 instead of manual alignment.
32107 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32108 verbose). Avoid attempts to read past end of the device
32109 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32110 but GRUB_DISK_CACHE_SIZE may exceed that).
32112 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32114 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32115 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32118 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32120 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32122 (grub_efi_piwg_device_path): New structure
32123 (grub_efi_piwg_device_path_t): New type.
32124 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32125 (devpath_1): Transform to a structure. All users updated.
32126 (devpath_2): Likewise.
32127 (devpath_3): Likewise.
32128 (devpath_4): Likewise.
32129 (devpath_5): Likewise.
32131 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32133 * loader/efi/appleloader.c: Restored. Update all users.
32135 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32137 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32139 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32140 (struct boot_blocklist): Move from here ...
32141 * include/grub/i386/pc/boot.h [ASM_FILE]
32142 (struct grub_boot_blocklist): ... to here. Update all users.
32143 (setup): Only initialize `start' member of `first_block'
32144 structure. Add assert() calls to verify the other members.
32146 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32147 (generate_image): Fix broken blocklist length initialization.
32148 Add assert() call to verify blocklist `segment' field.
32150 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32152 * loader/efi/appleloader.c: Remove. Update all users.
32154 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32156 * boot/i386/pc/boot.S: Update copyright year.
32157 * boot/i386/pc/cdboot.S: Likewise.
32158 * boot/i386/pc/diskboot.S: Likewise.
32159 * boot/i386/pc/lnxboot.S: Likewise.
32160 * boot/i386/pc/pxeboot.S: Likewise.
32161 * bus/pci.c: Likewise.
32162 * commands/cmp.c: Likewise.
32163 * commands/help.c: Likewise.
32164 * commands/hexdump.c: Likewise.
32165 * commands/i386/pc/halt.c: Likewise.
32166 * commands/i386/pc/play.c: Likewise.
32167 * commands/i386/pc/vbeinfo.c: Likewise.
32168 * commands/ls.c: Likewise.
32169 * commands/test.c: Likewise.
32170 * disk/dmraid_nvidia.c: Likewise.
32171 * disk/i386/pc/biosdisk.c: Likewise.
32172 * disk/ieee1275/nand.c: Likewise.
32173 * disk/ieee1275/ofdisk.c: Likewise.
32174 * disk/lvm.c: Likewise.
32175 * disk/raid.c: Likewise.
32176 * disk/raid6_recover.c: Likewise.
32177 * disk/scsi.c: Likewise.
32178 * fs/affs.c: Likewise.
32179 * fs/cpio.c: Likewise.
32180 * fs/ext2.c: Likewise.
32181 * fs/hfs.c: Likewise.
32182 * fs/iso9660.c: Likewise.
32183 * fs/ntfs.c: Likewise.
32184 * fs/sfs.c: Likewise.
32185 * fs/udf.c: Likewise.
32186 * fs/ufs.c: Likewise.
32187 * fs/xfs.c: Likewise.
32188 * gencmdlist.sh: Likewise.
32189 * genmk.rb: Likewise.
32190 * include/grub/disk.h: Likewise.
32191 * include/grub/efi/api.h: Likewise.
32192 * include/grub/efi/efi.h: Likewise.
32193 * include/grub/efi/pe32.h: Likewise.
32194 * include/grub/elf.h: Likewise.
32195 * include/grub/fs.h: Likewise.
32196 * include/grub/i386/at_keyboard.h: Likewise.
32197 * include/grub/i386/pc/memory.h: Likewise.
32198 * include/grub/i386/pc/vbe.h: Likewise.
32199 * include/grub/i386/pci.h: Likewise.
32200 * include/grub/i386/tsc.h: Likewise.
32201 * include/grub/ieee1275/ieee1275.h: Likewise.
32202 * include/grub/ntfs.h: Likewise.
32203 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32204 * include/grub/sparc64/libgcc.h: Likewise.
32205 * include/grub/symbol.h: Likewise.
32206 * include/grub/types.h: Likewise.
32207 * include/multiboot2.h: Likewise.
32208 * io/gzio.c: Likewise.
32209 * kern/device.c: Likewise.
32210 * kern/disk.c: Likewise.
32211 * kern/efi/efi.c: Likewise.
32212 * kern/efi/mm.c: Likewise.
32213 * kern/elf.c: Likewise.
32214 * kern/file.c: Likewise.
32215 * kern/i386/dl.c: Likewise.
32216 * kern/i386/pc/init.c: Likewise.
32217 * kern/i386/pc/startup.S: Likewise.
32218 * kern/ieee1275/ieee1275.c: Likewise.
32219 * kern/ieee1275/init.c: Likewise.
32220 * kern/main.c: Likewise.
32221 * kern/mm.c: Likewise.
32222 * kern/powerpc/dl.c: Likewise.
32223 * kern/sparc64/dl.c: Likewise.
32224 * kern/x86_64/dl.c: Likewise.
32225 * lib/hexdump.c: Likewise.
32226 * loader/efi/appleloader.c: Likewise.
32227 * loader/i386/ieee1275/linux.c: Likewise.
32228 * loader/i386/pc/chainloader.c: Likewise.
32229 * loader/i386/pc/linux.c: Likewise.
32230 * loader/i386/pc/multiboot2.c: Likewise.
32231 * loader/ieee1275/multiboot2.c: Likewise.
32232 * loader/multiboot2.c: Likewise.
32233 * loader/multiboot_loader.c: Likewise.
32234 * loader/powerpc/ieee1275/linux.c: Likewise.
32235 * normal/completion.c: Likewise.
32236 * normal/menu_entry.c: Likewise.
32237 * partmap/apple.c: Likewise.
32238 * util/grub.d/10_hurd.in: Likewise.
32239 * util/hostfs.c: Likewise.
32240 * video/readers/png.c: Likewise.
32242 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32244 * include/grub/misc.h (GNUC_PREREQ): New macro.
32245 (ATTRIBUTE_ERROR): New macro.
32246 * include/grub/list.h (grub_bad_type_cast_real): Use
32249 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32251 * normal/menu_text.c (print_message): Change messages.
32253 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32255 * normal/menu_entry.c (store_completion): Gettextizze.
32257 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32259 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32261 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32263 * po/POTFILES: Sort correctly.
32265 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32267 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32268 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32269 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32271 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32272 summary. Gettextizze the strings.
32273 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32274 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32275 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32277 (GRUB_MOD_INIT): Remove command name from summary.
32278 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32280 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32281 * term/i386/pc/serial.c (options): Add full stops.
32282 (GRUB_MOD_INIT): Remove command name from the summary.
32284 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32286 * commands/acpi.c: Gettextizze help strings and/or options. Include
32287 `grub/i18n.h' if needed.
32288 * commands/blocklist.c: Likewise.
32289 * commands/boot.c: Likewise.
32290 * commands/cat.c: Likewise.
32291 * commands/cmp.c: Likewise.
32292 * commands/configfile.c: Likewise.
32293 * commands/crc.c: Likewise.
32294 * commands/date.c: Likewise.
32295 * commands/echo.c: Likewise.
32296 * commands/efi/fixvideo.c: Likewise.
32297 * commands/efi/loadbios.c: Likewise.
32298 * commands/gptsync.c: Likewise.
32299 * commands/halt.c: Likewise.
32300 * commands/handler.c: Likewise.
32301 * commands/hdparm.c: Likewise.
32302 * commands/hexdump.c: Likewise.
32303 * commands/i386/cpuid.c: Likewise.
32304 * commands/i386/pc/drivemap.c: Likewise.
32305 * commands/i386/pc/halt.c: Likewise.
32306 * commands/i386/pc/pxecmd.c: Likewise.
32307 * commands/i386/pc/vbeinfo.c: Likewise.
32308 * commands/i386/pc/vbetest.c: Likewise.
32309 * commands/ieee1275/suspend.c: Likewise.
32310 * commands/keystatus.c: Likewise.
32311 * commands/loadenv.c: Likewise.
32312 * commands/ls.c: Likewise.
32313 * commands/lsmmap.c: Likewise.
32314 * commands/lspci.c: Likewise.
32315 * commands/memrw.c: Likewise.
32316 * commands/minicmd.c: Likewise.
32317 * commands/parttool.c: Likewise.
32318 * commands/password.c: Likewise.
32319 * commands/probe.c: Likewise.
32320 * commands/read.c: Likewise.
32321 * commands/reboot.c: Likewise.
32322 * commands/search.c: Likewise.
32323 * commands/sleep.c: Likewise.
32324 * commands/test.c: Likewise.
32325 * commands/true.c: Likewise.
32326 * commands/usbtest.c: Likewise.
32327 * commands/videotest.c: Likewise.
32328 * commands/xnu_uuid.c: Likewise.
32329 * disk/loopback.c: Likewise.
32330 * hello/hello.c: Likewise.
32331 * loader/i386/bsd.c: Likewise.
32332 * term/i386/pc/serial.c: Likewise.
32333 * po/POTFILES: Add new files.
32335 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32337 * term/i386/pc/at_keyboard.c
32338 (keyboard_controller_wait_untill_ready): Rename to ...
32339 (keyboard_controller_wait_until_ready): ... this. Update all users.
32341 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32343 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32344 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32345 string using string width.
32346 * normal/menu_text.c (grub_print_message_indented): Use
32347 grub_print_spaces and not print_spaces.
32348 (print_timeout): Likewise.
32349 (print_spaces): Move to...
32350 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32352 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32354 Import from Gnulib.
32356 * gnulib/getdelim.c: New file.
32357 * gnulib/getline.c: Likewise.
32359 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32361 * include/grub/list.h (grub_assert_fail): Removed.
32362 (grub_bad_type_cast_real): New function.
32363 (grub_bad_type_cast): New macro.
32364 (GRUB_AS_LIST): Use grub_bad_type_cast.
32365 (GRUB_AS_LIST_P): Likewise.
32366 (GRUB_AS_NAMED_LIST): Likewise.
32367 (GRUB_AS_NAMED_LIST_P): Likewise.
32368 (GRUB_AS_PRIO_LIST): Likewise.
32369 (GRUB_AS_PRIO_LIST_P): Likewise.
32370 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32372 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32374 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32377 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32379 * configure.ac: Check for TARGET_CFLAGS initialization before we
32380 initialize it ourselves (sigh).
32381 Move a few modifications to TARGET_CFLAGS to be unconditional
32382 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32385 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32386 * term/i386/pc/at_keyboard.c
32387 (keyboard_controller_wait_untill_ready): Likewise.
32388 (keyboard_controller_led): Rename `led_status' paramter to avoid
32391 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32393 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32396 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32398 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32400 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32402 * normal/menu_text.c (grub_print_message_indented): Prevent
32403 past-the-end-of-array dereference.
32405 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32407 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32408 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32410 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32412 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32413 * normal/main.c (grub_normal_read_line): Remove a space from the
32416 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32418 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32419 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32420 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32421 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32422 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32423 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32424 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32426 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32428 * video/readers/jpeg.c (cmd): Declare.
32429 (grub_cmd_jpegtest): Use `grub_command_t' type.
32430 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32432 (GRUB_MOD_FINI): Use `cmd' to unregister.
32433 * video/readers/png.c (cmd): Declare.
32434 (grub_cmd_pngtest): Use `grub_command_t' type.
32435 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32437 (GRUB_MOD_FINI): Use `cmd' to unregister.
32438 * video/readers/tga.c (cmd): Declare.
32439 (grub_cmd_tgatest): Use `grub_command_t' type.
32440 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32442 (GRUB_MOD_FINI): Use `cmd' to unregister.
32444 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32446 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32448 * kern/corecmd.c (grub_register_core_commands): Likewise.
32449 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32450 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32451 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32452 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32453 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32454 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32455 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32456 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32457 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32458 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32459 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32460 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32461 * normal/handler.c (insert_handler): Likewise.
32462 * normal/main.c (GRUB_MOD_INIT): Likewise.
32463 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32465 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32467 * commands/help.c (grub_cmd_help): Print the command name before the
32469 (GRUB_MOD_INIT): Remove command name from the summary.
32470 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32472 * lib/arg.c (find_long): Print the command name before the summary.
32473 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32475 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32476 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32477 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32478 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32479 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32480 * commands/date.c (GRUB_MOD_INIT): Likewise.
32481 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32482 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32483 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32484 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32485 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32486 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32487 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32488 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32489 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32490 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32491 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32492 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32493 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32494 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32495 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32496 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32497 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32498 * commands/password.c (GRUB_MOD_INIT): Likewise.
32499 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32500 * commands/read.c (GRUB_MOD_INIT): Likewise.
32501 * commands/search.c (GRUB_MOD_INIT): Likewise.
32502 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32503 * commands/test.c (GRUB_MOD_INIT): Likewise.
32504 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32505 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32506 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32507 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32508 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32509 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32510 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32511 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32512 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32513 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32514 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32515 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32516 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32517 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32519 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32521 Use search command for preliminar UUID search.
32523 * commands/search.c: Split into ...
32524 * commands/search_wrap.c: ...this
32525 * commands/search.c: ...and this.
32526 * commands/search_file.c: New file.
32527 * commands/search_label.c: New file.
32528 * commands/search_uuid.c: New file.
32529 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32530 Add commands/search_wrap.c, commands/search_file.c,
32531 commands/search_label.c and commands/search_uuid.c.
32532 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32533 (search_mod_SOURCES): Set to commands/search_wrap.c.
32534 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32536 (search_fs_file_mod_SOURCES): New variable.
32537 (search_fs_file_mod_CFLAGS): Likewise.
32538 (search_fs_file_mod_LDFLAGS): Likewise.
32539 (search_label_mod_SOURCES): Likewise.
32540 (search_label_mod_CFLAGS): Likewise.
32541 (search_label_mod_LDFLAGS): Likewise.
32542 (search_fs_uuid_mod_SOURCES): New variable.
32543 (search_fs_uuid_mod_CFLAGS): Likewise.
32544 (search_fs_uuid_mod_LDFLAGS): Likewise.
32545 (fs_file_mod_SOURCES): Removed.
32546 (fs_file_mod_CFLAGS): Likewise.
32547 (fs_file_mod_LDFLAGS): Likewise.
32548 (fs_uuid_mod_SOURCES): Removed.
32549 (fs_uuid_mod_CFLAGS): Likewise.
32550 (fs_uuid_mod_LDFLAGS): Likewise.
32551 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32552 Set to util/grub-install.in.
32553 * disk/fs_file.c: Removed.
32554 * disk/fs_uuid.c: Likewise.
32555 * include/grub/search.h: New file.
32556 * util/grub-install.in: Handle sparc64.
32557 Create and use load.cfg.
32558 * util/sparc64/ieee1275/grub-install.in: Removed.
32560 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32562 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32563 Ignore return status if CF is cleared.
32564 (grub_biosdisk_get_diskinfo_standard): Likewise.
32566 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32568 * term/i386/pc/at_keyboard.c
32569 (keyboard_controller_wait_untill_ready): New function.
32570 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32571 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32572 for keyboard polling, rather than duplicate the same loop. This
32573 saves a few bytes in code size.
32575 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32577 Support for (pxe[:server[:gateway]]) syntax and
32578 use environment variable for PXE.
32580 * commands/i386/pc/pxecmd.c (options): Removed.
32581 (print_ip): Removed.
32582 (grub_cmd_pxe): Removed
32583 (grub_cmd_pxe_unload): New function.
32584 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32585 (grub_pxe_your_ip): Made static.
32586 (grub_pxe_default_server_ip): Likewise.
32587 (grub_pxe_default_gateway_ip): Likewise.
32588 (grub_pxe_blksize): Likewise.
32589 (parse_ip): New function.
32590 (grub_pxe_open): Support server and gateway specification.
32591 (grub_pxe_close): Free disk->data.
32592 (grub_pxefs_open): Use disk->data.
32593 (grub_pxefs_read): Likewise.
32594 (grub_env_write_readonly): New function.
32595 (set_mac_env): Likewise.
32596 (set_env_limn_ro): Likewise.
32597 (parse_dhcp_vendor): Likewise.
32598 (grub_pxe_detect): Set the environment variables.
32599 (set_ip_env): New function.
32600 (write_ip_env): Likewise.
32601 (grub_env_write_pxe_default_server): Likewise.
32602 (grub_env_write_pxe_default_gateway): Likewise.
32603 (grub_env_write_pxe_blocksize): Likewise.
32604 (GRUB_MOD_INIT(pxe)): Set environment variables.
32605 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32606 (grub_pxe_mac_addr_t): ... this. All users updated.
32607 (grub_pxe_your_ip): Removed.
32608 (grub_pxe_server_ip): Likewise.
32609 (grub_pxe_gateway_ip): Likewise.
32610 (grub_pxe_blksize): Likewise.
32612 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32614 * commands/help.c: Include `<grub/i18n.h>'.
32615 (grub_cmd_help): Gettextizze.
32616 (GRUB_MOD_INIT): Likewise.
32617 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32618 (GRUB_MOD_INIT): Gettextizze.
32619 * commands/search.c: Include `<grub/i18n.h>'.
32620 (options): Gettextizze.
32621 (GRUB_MOD_INIT): Gettextizze.
32622 * lib/arg.c: Include `<grub/i18n.h>'.
32623 (help_options): Gettextizze.
32624 (find_long): Likewise.
32625 (grub_arg_show_help): Likewise.
32626 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32627 (read_command_list): Gettextizze.
32628 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32629 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32631 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32633 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32634 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32635 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32636 (led_status): New variable.
32637 (keyboard_controller_led): New function.
32638 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32639 update led status for caps lock, num lock and scroll lock.
32641 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32643 * util/hostdisk.c (open_device): Fix a comment.
32645 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32647 * util/grub-install.in (host_os): New variable.
32648 * util/i386/efi/grub-install.in (host_os): Likewise.
32650 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32652 * util/mkisofs/write.c (padblock_write): Abort when given an
32653 excedingly large embed image, instead of silently truncating it.
32655 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32657 * include/multiboot.h: Indentation fixes.
32659 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32661 * include/multiboot.h (struct multiboot_aout_symbol_table)
32662 (struct multiboot_elf_section_header_table): New structure
32663 declarations (stolen from GRUB Legacy).
32664 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32667 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32668 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32671 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32673 * include/multiboot.h: Make comments src2texi-friendly.
32675 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32677 For consistency with [multiboot]/docs/boot.S.
32679 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32680 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32681 (MULTIBOOT_MAGIC2): Rename from this ...
32682 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32684 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32686 * include/multiboot.h: Remove `<grub/types.h>'.
32687 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32688 types. Update all users.
32690 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32692 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32693 `couldn't' and `can not' by `cannot'.
32694 * commands/i386/pc/drivemap.c: Likewise.
32695 * disk/ata.c: Likewise.
32696 * disk/ieee1275/nand.c: Likewise.
32697 * fs/affs.c: Likewise.
32698 * fs/fat.c: Likewise.
32699 * fs/hfs.c: Likewise.
32700 * fs/hfsplus.c: Likewise.
32701 * fs/iso9660.c: Likewise.
32702 * fs/jfs.c: Likewise.
32703 * fs/minix.c: Likewise.
32704 * fs/reiserfs.c: Likewise.
32705 * fs/sfs.c: Likewise.
32706 * fs/udf.c: Likewise.
32707 * fs/ufs.c: Likewise.
32708 * fs/xfs.c: Likewise.
32709 * loader/powerpc/ieee1275/linux.c: Likewise.
32710 * loader/sparc64/ieee1275/linux.c: Likewise.
32711 * util/grub-probe.c: Likewise.
32712 * util/misc.c: Likewise.
32714 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32716 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32718 * commands/acpi.c: Likewise.
32719 * commands/blocklist.c: Likewise.
32720 * commands/efi/loadbios.c: Likewise.
32721 * commands/i386/pc/drivemap.c: Likewise.
32722 * commands/loadenv.c: Likewise.
32723 * commands/memrw.c: Likewise.
32724 * commands/password.c: Likewise.
32725 * commands/videotest.c: Likewise.
32726 * disk/ata.c: Likewise.
32727 * disk/ata_pthru.c: Likewise.
32728 * disk/dmraid_nvidia.c: Likewise.
32729 * disk/ieee1275/nand.c: Likewise.
32730 * disk/ieee1275/ofdisk.c: Likewise.
32731 * disk/loopback.c: Likewise.
32732 * disk/lvm.c: Likewise.
32733 * disk/mdraid_linux.c: Likewise.
32734 * disk/raid.c: Likewise.
32735 * disk/raid6_recover.c: Likewise.
32736 * disk/scsi.c: Likewise.
32737 * efiemu/main.c: Likewise.
32738 * efiemu/mm.c: Likewise.
32739 * efiemu/pnvram.c: Likewise.
32740 * efiemu/symbols.c: Likewise.
32741 * font/font.c: Likewise.
32742 * fs/cpio.c: Likewise.
32743 * fs/hfsplus.c: Likewise.
32744 * fs/iso9660.c: Likewise.
32745 * fs/jfs.c: Likewise.
32746 * fs/minix.c: Likewise.
32747 * fs/ntfs.c: Likewise.
32748 * fs/ntfscomp.c: Likewise.
32749 * fs/reiserfs.c: Likewise.
32750 * fs/ufs.c: Likewise.
32751 * fs/xfs.c: Likewise.
32752 * gettext/gettext.c: Likewise.
32753 * include/grub/auth.h: Likewise.
32754 * kern/elf.c: Likewise.
32755 * kern/file.c: Likewise.
32756 * kern/ieee1275/init.c: Likewise.
32757 * kern/ieee1275/mmap.c: Likewise.
32758 * kern/ieee1275/openfw.c: Likewise.
32759 * kern/powerpc/dl.c: Likewise.
32760 * kern/sparc64/dl.c: Likewise.
32761 * lib/arg.c: Likewise.
32762 * loader/i386/bsd.c: Likewise.
32763 * loader/i386/bsdXX.c: Likewise.
32764 * loader/i386/efi/linux.c: Likewise.
32765 * loader/i386/efi/xnu.c: Likewise.
32766 * loader/i386/ieee1275/linux.c: Likewise.
32767 * loader/i386/linux.c: Likewise.
32768 * loader/i386/multiboot.c: Likewise.
32769 * loader/i386/pc/linux.c: Likewise.
32770 * loader/i386/pc/multiboot2.c: Likewise.
32771 * loader/i386/xnu.c: Likewise.
32772 * loader/ieee1275/multiboot2.c: Likewise.
32773 * loader/macho.c: Likewise.
32774 * loader/machoXX.c: Likewise.
32775 * loader/multiboot2.c: Likewise.
32776 * loader/multiboot_loader.c: Likewise.
32777 * loader/powerpc/ieee1275/linux.c: Likewise.
32778 * loader/sparc64/ieee1275/linux.c: Likewise.
32779 * loader/xnu.c: Likewise.
32780 * loader/xnu_resume.c: Likewise.
32781 * mmap/i386/pc/mmap.c: Likewise.
32782 * normal/menu_viewer.c: Likewise.
32783 * partmap/acorn.c: Likewise.
32784 * partmap/amiga.c: Likewise.
32785 * partmap/apple.c: Likewise.
32786 * script/lexer.c: Likewise.
32787 * term/gfxterm.c: Likewise.
32788 * term/i386/pc/serial.c: Likewise.
32789 * term/i386/pc/vga.c: Likewise.
32790 * term/ieee1275/ofconsole.c: Likewise.
32791 * term/terminfo.c: Likewise.
32792 * video/bitmap.c: Likewise.
32793 * video/efi_gop.c: Likewise.
32794 * video/efi_uga.c: Likewise.
32795 * video/fb/video_fb.c: Likewise.
32796 * video/i386/pc/vbe.c: Likewise.
32797 * video/readers/tga.c: Likewise.
32798 * video/video.c: Likewise.
32800 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32802 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32803 * commands/lspci.c: Likewise.
32804 * commands/probe.c: Likewise.
32805 * commands/xnu_uuid.c: Likewise.
32806 * conf/i386-coreboot.rmk: Likewise.
32807 * conf/i386-efi.rmk: Likewise.
32808 * conf/i386-ieee1275.rmk: Likewise.
32809 * conf/i386-pc.rmk: Likewise.
32810 * conf/powerpc-ieee1275.rmk: Likewise.
32811 * conf/sparc64-ieee1275.rmk: Likewise.
32812 * conf/x86_64-efi.rmk: Likewise.
32813 * fs/i386/pc/pxe.c: Likewise.
32814 * gettext/gettext.c: Likewise.
32815 * include/grub/efi/graphics_output.h: Likewise.
32816 * include/grub/i386/pc/memory.h: Likewise.
32817 * kern/env.c: Likewise.
32818 * kern/i386/qemu/startup.S: Likewise.
32819 * lib/i386/pc/biosnum.c: Likewise.
32820 * lib/i386/relocator.c: Likewise.
32821 * lib/i386/relocator_asm.S: Likewise.
32822 * lib/relocator.c: Likewise.
32823 * loader/i386/bsd.c: Likewise.
32824 * loader/i386/multiboot.c: Likewise.
32825 * loader/i386/pc/chainloader.c: Likewise.
32826 * loader/i386/xnu.c: Likewise.
32827 * loader/xnu.c: Likewise.
32828 * normal/main.c: Likewise.
32829 * normal/menu_text.c: Likewise.
32830 * util/getroot.c: Likewise.
32831 * util/grub-mkconfig_lib.in: Likewise.
32832 * util/grub.d/00_header.in: Likewise.
32833 * util/i386/pc/grub-mkimage.c: Likewise.
32834 * util/mkisofs/eltorito.c: Likewise.
32835 * util/mkisofs/exclude.h: Likewise.
32836 * util/mkisofs/hash.c: Likewise.
32837 * util/mkisofs/iso9660.h: Likewise.
32838 * util/mkisofs/joliet.c: Likewise.
32839 * util/mkisofs/mkisofs.c: Likewise.
32840 * util/mkisofs/mkisofs.h: Likewise.
32841 * util/mkisofs/multi.c: Likewise.
32842 * util/mkisofs/name.c: Likewise.
32843 * util/mkisofs/rock.c: Likewise.
32844 * util/mkisofs/tree.c: Likewise.
32845 * util/mkisofs/write.c: Likewise.
32846 * video/efi_gop.c: Likewise.
32848 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32850 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32853 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32855 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32856 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32858 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32860 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32861 (GRUB_MOD_INIT(memrw)): Update help line.
32863 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32865 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32866 Use grub_extcmd_t. All users updated.
32867 (options): New variable.
32868 (grub_cmd_read): Restructure for readability. Support "-v" option.
32869 (grub_cmd_write): Restructure for readability.
32871 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32873 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32875 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32877 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32878 with the actual contents of the correspondending make variable.
32879 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32880 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32881 specifying `*.lst' and `efiemu??.o'
32883 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32885 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32886 after function name.
32887 Noticed by Rene Engelhard <rene@debian.org>.
32889 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32891 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32892 (options): New variable.
32893 (iospace): Likewise.
32894 (grub_lspci_iter): List IO spaces if "-i" was given.
32895 (grub_cmd_lspci): Parse options.
32896 (GRUB_MOD_INIT(lspci)): Use extcmd.
32897 (GRUB_MOD_FINI(lspci)): Likewise.
32899 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32901 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32902 `function' keyword.
32903 Patch by Tony Mancill <tmancill@debian.org>.
32905 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32907 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32908 (grub_uhci_portstatus): Likewise.
32909 (grub_uhci_portstatus): Add necessary delay.
32910 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
32912 2009-12-21 Carles Pina i Estany <carles@pina.cat>
32914 * commands/acpi.c (options): Fix capitalizations and/or full stops.
32915 (GRUB_MOD_INIT): Likewise.
32916 * commands/boot.c (GRUB_MOD_INIT): Likewise.
32917 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
32918 * commands/echo.c (options): Fix capitalizations and/or full stops.
32919 * commands/efi/loadbios.c (enable_rom_area): Likewise.
32920 (enable_rom_area): Likewise.
32921 (GRUB_MOD_INIT): Likewise.
32922 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32923 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
32924 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32925 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
32926 * commands/hexdump.c (options): Likewise.
32927 * commands/i386/cpuid.c (options): Likewise.
32928 (GRUB_MOD_INIT): Likewise.
32929 * commands/i386/pc/drivemap.c (options): Likewise.
32930 (GRUB_MOD_INIT): Likewise.
32931 * commands/i386/pc/halt (options): Likewise.
32932 (GRUB_MOD_INIT): Likewise.
32933 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32934 * commands/i386/pc/pxecmd.c (options): Likewise.
32935 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
32936 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
32937 * commands/keystatus.c (options): Likewise.
32938 (GRUB_MOD_INIT): Likewise.
32939 * commands/loadenv.c (options): Likewise.
32940 * commands/ls.c (options): Likewise.
32941 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32942 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32943 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32944 * commands/parttool.c (helpmsg): Likewise.
32945 * commands/probe.c (options): Likewise.
32946 * commands/read.c (GRUB_MOD_INIT): Likewise.
32947 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
32948 * commands/search.c (options): Likewise.
32949 * commands/sleep.c (options): Likewise.
32950 * commands/test.c (GRUB_MOD_INIT): Likewise.
32951 * commands/true.c (GRUB_MOD_INIT): Likewise.
32952 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
32953 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
32954 * lib/arg.c (help_options): Likewise.
32955 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
32957 * po/POTFILES: Add `commands/loadenv.c'.
32959 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
32961 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
32962 instead of specifying them explicit.
32964 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32966 * NEWS: Add grub-probe support for GNU/Hurd.
32968 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32970 * NEWS: gettext was added after 1.97.
32972 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32974 * util/mkisofs/msdos_partition.h: New file (based on
32975 include/grub/msdos_partition.h).
32976 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
32977 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
32978 (ld_options, main): Recognize --protective-msdos-label.
32979 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
32980 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
32981 (padblock_write): If `use_protective_msdos_label' is set, patch a
32982 protective DOS-style label in the output image.
32984 * util/grub-mkrescue.in: Use --protective-msdos-label.
32986 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32988 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
32991 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32993 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
32995 (ld_options, main): Recognize `--embedded-boot'.
32996 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
32998 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
32999 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33000 (padblock_write): Likewise. Rewrite to support embedded boot image.
33002 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33003 for BIOS-based disk boot instead of only ElTorito.
33005 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33007 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33008 build (not needed for bootstrap).
33010 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33012 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33013 from i386-pc build (not needed for bootstrap).
33014 Rewrite a pair of strings.
33016 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33018 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33020 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33022 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33024 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33026 * kern/env.c (grub_env_context_open): Mark exported variable for
33029 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33031 * kern/env.c (grub_env_export): Create nonexistent variables before
33034 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33036 * include/grub/auth.h: Include `<grub/i18n.h>'.
33037 (GRUB_GET_PASSWORD): Gettextizze string.
33038 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33040 (grub_utf8_to_ucs4_alloc): Fix indentation.
33041 (grub_print_ucs4): Likewise.
33042 (grub_getstringwidth): Likewise.
33043 (print_message_indented): New declaration.
33044 * normal/auth.c: Include `<grub/i18n.h>'.
33045 (grub_auth_check_authentication): Gettexttize string.
33046 * normal/cmdline.c: Include `<grub/i18n.h>'.
33047 (grub_cmdline_get): Gettextizze.
33048 * normal/color.c: Include `<grub/i18n.h>'.
33049 (grub_parse_color_name_pair): Gettexttize strings.
33050 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33051 string (use `print_message_indented').
33052 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33053 `include/grub/normal.h'.
33054 (print_message_indented): Renamed to ...
33055 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33056 used in normal/main.c).
33057 (print_message): Use `grub_print_message_indented' instead of
33058 `print_message_indented'.
33059 (print_timeout): Likewise.
33060 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33061 (grub_normal_print_device_info): Gettexttize strings.
33062 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33064 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33066 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33067 of arguments. Return number of tokens and not arguments. All users
33070 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33072 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33073 non-MSDOS paritions.
33075 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33077 * include/grub/types.h (UNUSED): Removed since it conflicts with
33078 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33079 Reported by Grégoire Sutre.
33081 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33083 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33084 (grub_print_ucs4_alloc): Likewise.
33085 (grub_getstringwidth): Likewise.
33086 * normal/main.c (grub_normal_init_page): Gettextize version string.
33087 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33088 (getstringwidth): Renamed to ...
33089 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33090 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33091 (grub_print_ucs4): Remove `static' qualifer (now used in
33093 * po/POTFILES: Add normal/main.c.
33095 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33097 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33098 (print_message_indented): Add `margin_left' and `margin_right'
33100 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33102 (print_timeout): Use `print_message_indented' to print the message.
33103 Deletes `second_stage' parameter.
33104 (run_menu): Update `print_timeout' calls.
33106 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33108 Fix console palette on OpenFirmware.
33110 * term/ieee1275/ofconsole.c (MAX): Removed.
33111 (colors): Redone based on VGA palette.
33112 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33113 colors are supported.
33114 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33116 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33118 Fix potential EfiEmu double prepare.
33120 * efiemu/main.c (prepared): New variable
33121 (grub_efiemu_unload): Set prepare to '0'.
33122 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33124 set_virtual_address_map support.
33126 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33128 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33130 (grub_efiemu_crc32): Likewise.
33131 (grub_efiemu_crc64): Likewise.
33132 (grub_efiemu_set_virtual_address_map): Likewise.
33133 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33135 (grub_autoefi_set_virtual_address_map): Likewise.
33136 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33137 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33138 Restructure flow to accomodate it.
33139 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33140 (grub_efiemu_crc): Recompute CRC32.
33141 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33142 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33143 * efiemu/symbols.c (relocated_handle): New variable.
33144 (grub_efiemu_free_syms): Free relocated_handle.
33145 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33146 (grub_efiemu_write_sym_markers): New function.
33147 (grub_efiemu_set_virtual_address_map): Likewise.
33149 Newer XNU parameters.
33151 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33152 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33153 (grub_xnu_fill_devicetree): New prototype.
33154 (grub_xnu_heap_real_start): New variable.
33155 * loader/xnu.c (get_name_ptr): New function.
33156 (grub_xnu_load_driver): Fill namelen and name.
33158 64-bit xnu support.
33160 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33161 and 'loader/macho64.c'.
33162 * conf/i386-pc.rmk: Likewise.
33163 * conf/x86_64-efi.rmk: Likewise.
33164 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33165 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33166 * include/grub/macho.h (grub_macho_segment64): New structure.
33167 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33168 (grub_macho_size32): ... to this.
33169 (grub_macho32_get_entry_point): Renamed from ...
33170 (grub_macho_get_entry_point32): ... to this.
33171 (grub_macho_contains_macho64): New prototype.
33172 (grub_macho_size64): Likewise.
33173 (grub_macho_get_entry_point64): Likewise.
33174 (grub_macho32_load): Renamed from ...
33175 (grub_macho_load32): ... to this.
33176 (grub_macho32_filesize): Renamed from ...
33177 (grub_macho_filesize32): ... to this.
33178 (grub_macho32_readfile): Renamed from ...
33179 (grub_macho_readfile32): ... to this.
33180 (grub_macho_filesize64): New prototype.
33181 (grub_macho_readfile64): Likewise.
33182 (grub_macho_parse32): Likewise.
33183 (grub_macho_parse64): Likewise.
33184 * loader/macho.c: Split into ...
33185 * loader/machoXX.c: ... and this. Replace 32 with XX.
33186 * loader/macho32.c: New file.
33187 * loader/macho64.c: Likewise.
33188 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33189 (grub_cmd_xnu_kernel): Make 32-bit only.
33190 (grub_cmd_xnu_kernel64): New function.
33191 (grub_xnu_load_driver): Support Mach-O 64.
33192 (grub_cmd_xnu_mkext): Likewise.
33193 * util/grub.d/30_os-prober.in (osx_entry): New function.
33194 Generate entries for 64-bit boot too.
33196 Eliminate ad-hoc tree format in XNU and EfiEmu.
33198 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33199 * efiemu/pnvram.c: Rewritten to use environment variables.
33202 Inline utf16_to_utf8.
33204 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33205 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33207 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33209 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33210 * commands/usbtest.c (grub_usb_get_string): ... move here.
33211 (usb_print_str): Fix error handling.
33212 * include/grub/usb.h (grub_usb_get_string): Remove.
33214 UTF-8 to UTF-16 transformation.
33216 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33217 (charset_mod_SOURCES): New variable.
33218 (charset_mod_CFLAGS): Likewise.
33219 (charset_mod_LDFLAGS): Likewise.
33220 * include/grub/utf.h: New file.
33221 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33223 Support for device properties.
33225 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33226 (grub_xnu_devprop_device_header): Likewise.
33227 (grub_xnu_devprop_device_descriptor): Likewise.
33228 (grub_xnu_devprop_add_device): New prototype.
33229 (grub_xnu_devprop_remove_device): Likewise.
33230 (grub_xnu_devprop_remove_property): Likewise.
33231 (grub_xnu_devprop_add_property_utf8): Likewise.
33232 (grub_xnu_devprop_add_property_utf16): Likewise.
33233 (grub_cpu_xnu_init): Likewise.
33234 (grub_cpu_xnu_fini): Likewise.
33235 (grub_cpu_xnu_unload): Likewise.
33236 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33237 (property_descriptor): Likewise.
33238 (devices): New variable.
33239 (grub_xnu_devprop_remove_property): New function.
33240 (grub_xnu_devprop_add_device): Likewise.
33241 (grub_xnu_devprop_remove_device): Likewise.
33242 (grub_xnu_devprop_add_property): Likewise.
33243 (grub_xnu_devprop_add_property_utf8): Likewise.
33244 (grub_xnu_devprop_add_property_utf16): Likewise.
33245 (hextoval): Likewise.
33246 (grub_cpu_xnu_fill_devprop): Likewise.
33247 (grub_cmd_devprop_load): Likewise.
33248 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33249 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33250 (cmd_devprop_load): New variable.
33251 (grub_cpu_xnu_init): New function.
33252 (grub_cpu_xnu_fini): Likewise.
33253 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33254 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33255 (grub_cmd_xnu_devtree): Likewise.
33256 (hextoval): New function.
33257 (unescape): Likewise.
33258 (grub_xnu_fill_devicetree): Likewise.
33260 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33261 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33263 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33265 Workaround for broken ATI VBE.
33267 * video/i386/pc/vbe.c (last_set_mode): New variable.
33268 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33269 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33270 (grub_video_vbe_setup): Don't check for reserved flag.
33272 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33274 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33275 the `find' command.
33277 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33279 UUID support for HFS.
33281 * fs/hfs.c (grub_hfs_uuid): New function.
33282 (grub_hfs_fs): New value .uuid.
33283 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33285 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33287 Fix a segfault with parsing unknown long options.
33289 * util/grub-mkrelpath.c (options): Zero terminate it.
33291 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33293 * include/grub/misc.h (grub_puts): New declaration.
33294 (grub_puts_): Likewise.
33295 * kern/misc.c (grub_puts): New definition.
33296 (grub_puts_): Likewise.
33298 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33300 * util/grub-probe.c (probe): Improve error message.
33302 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33304 * loader/i386/multiboot_elfxx.c
33305 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33308 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33310 Relocator framework
33312 * loader/i386/xnu_helper.S: Removed. All users updated.
33313 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33314 (relocator_mod_SOURCES): New variable.
33315 (relocator_mod_CFLAGS): Likewise.
33316 (relocator_mod_LDFLAGS): Likewise.
33317 (relocator_mod_ASFLAGS): Likewise.
33318 * conf/x86_64.rmk: Likewise.
33319 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33320 (grub_multiboot_payload_entry_offset): Likewise.
33321 (grub_multiboot_forward_relocator): Likewise.
33322 (grub_multiboot_forward_relocator_end): Likewise.
33323 (grub_multiboot_backward_relocator): Likewise.
33324 (grub_multiboot_backward_relocator_end): Likewise.
33325 (grub_multiboot_payload_eip): New variable.
33326 (grub_multiboot_payload_orig): Likewise.
33327 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33328 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33329 * include/grub/i386/memory.h
33330 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33331 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33332 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33333 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33334 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33335 * include/grub/i386/relocator.h: New file.
33336 * include/grub/x86_64/relocator.h: Likewise.
33337 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33338 (XNU_RELOCATOR): New macro.
33339 (grub_xnu_launcher_start): Remove.
33340 (grub_xnu_launcher_end): Likewise.
33341 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33342 (grub_xnu_heap_real_start): Remove.
33343 (grub_xnu_heap_start): Change to void *. All users updated.
33344 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33345 * lib/i386/relocator.c: New file.
33346 * lib/i386/relocator_asm.S: Likewise.
33347 * lib/i386/relocator_backward.S: Likewise.
33348 * lib/mips/relocator.c: Likewise.
33349 * lib/mips/relocator_asm.S: Likewise.
33350 * lib/relocator.c: Likewise.
33351 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33353 (playground): Likewise.
33354 (grub_multiboot_payload_orig): New variable.
33355 (grub_multiboot_payload_dest): Likewise.
33356 (grub_multiboot_payload_size): Likewise.
33357 (grub_multiboot_payload_eip): Likewise.
33358 (grub_multiboot_payload_esp): Likewise.
33359 (grub_multiboot_boot): Use grub_relocator32_boot.
33360 (grub_multiboot_unload): Free relocators.
33361 (grub_multiboot): Setup stack. Use relocators.
33362 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33363 (grub_multiboot_load_elfXX): Use relocators.
33364 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33365 (grub_multiboot_payload_size): Likewise.
33366 (grub_multiboot_payload_dest): Likewise.
33367 (grub_multiboot_payload_entry_offset): Likewise.
33368 (grub_multiboot_forward_relocator): Likewise.
33369 (grub_multiboot_backward_relocator): Likewise.
33370 (grub_multiboot_real_boot): Likewise.
33371 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33372 (grub_xnu_entry_point): Likewise.
33373 (grub_xnu_arg1): Likewise.
33374 (grub_xnu_stack): Likewise.
33375 (grub_xnu_launch): Removed.
33376 (grub_xnu_boot_resume): New function.
33377 (grub_xnu_boot): Use relocators.
33378 * loader/i386/xnu_helper.S: Removed.
33379 * loader/xnu.c (grub_xnu_heap_start): New variable.
33380 (grub_xnu_heap_size): Likewise.
33381 (grub_xnu_heap_malloc): Use relocators.
33382 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33384 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33386 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33389 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33391 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33392 GRUB_ERR_NONE before calling grub_env_set.
33394 2009-12-12 Robert Millan <rmh@aybabtu.com>
33396 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33397 * genmk.rb (video): New variable.
33398 (CLEANFILES, VIDEOFILES): Add #{video}.
33399 (#{video}): New target rule.
33400 * genvideolist.sh: New file.
33401 * Makefile.in (pkglib_DATA): Add video.lst.
33402 (video.lst): New target rule.
33403 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33405 * util/grub.d/30_os-prober.in: Replace `vbe' with
33406 ${GRUB_VIDEO_BACKEND}.
33408 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33410 * THANKS: Add David Miller.
33412 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33414 libpciaccess support.
33416 * Makefile.in (LIBPCIACCESS): New variable.
33417 (enable_grub_emu_pci): Likewise.
33418 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33419 util/pci.c and commands/lspci.c.
33420 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33421 * configure.ac (grub-emu-pci): New option.
33422 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33423 (grub_pci_device_unmap_range): Likewise.
33424 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33425 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33426 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33427 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33428 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33429 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33430 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33431 * include/grub/pciutils.h: New file.
33432 * util/pci.c: Likewise.
33434 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33436 * util/misc.c: Don't include <errno.h> twice.
33438 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33440 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33441 name in an error message.
33442 (grub_biosdisk_rw): Likewise.
33444 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33446 Eliminate NTFS 4Gib barrier.
33448 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33449 (read_run_data): Likewise.
33450 (grub_ntfs_read_run_list): Likewise.
33451 (grub_ntfs_read_block): Likewise.
33452 (grub_ntfs_iterate_dir): Likewise.
33453 (read_mft): Likewise.
33454 (read_data): Likewise.
33456 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33457 to avoid 64-bit division
33458 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33459 (grub_ntfs_rlst): Use grub_disk_addr_t.
33461 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33463 Eliminate grub-fstest 4Gib barrier.
33465 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33466 (read_file): Fix error reporting.
33468 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33470 Eliminate hexdump 4Gib barrier.
33472 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33473 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33475 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33477 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33480 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33482 Remove miscellaneous files in distclean target.
33484 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33486 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33488 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33489 if they're already set. This resolves the conflict between my
33490 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33491 fixing the --grub-probe option again.
33492 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33493 change on 2009-10-06, so that we now once again source
33494 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33496 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33498 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33499 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33500 `util/devicemap.c'.
33502 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33504 * include/grub/misc.h (grub_printf_): New declaration.
33505 * kern/misc.c (grub_printf_): New definition.
33506 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33507 instead of `grub_printf' and `_'.
33508 * normal/menu_entry.c (store_completion): Likewise.
33510 (grub_menu_entry_run): Likewise.
33511 * normal/menu_text.c (grub_wait_after_message): Likewise.
33512 (notify_booting): Likewise.
33513 (notify_fallback): Likewise.
33514 (notify_execution_failure): Likewise.
33516 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33518 * configure.ac: Check for vasprintf.
33519 * util/misc.c (asprintf): Move allocation from here ...
33520 (vasprintf): ... to here. New function.
33521 (xasprintf): New function.
33522 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33524 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33525 * util/grub-mkfont.c (write_font): Likewise.
33526 * util/grub-probe.c (probe): Likewise.
33527 * util/hostdisk.c (make_device_name): Likewise.
33529 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33531 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33532 anything even prefixed with 'cdrom' as a cdrom.
33534 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33536 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33539 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33541 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33542 grub_gettext_msg_list.
33543 (grub_gettext_gettranslation_from_position): Return const char *
33545 (grub_gettext_translate): Add the translated strings into a list,
33546 returns from the list if existing there.
33547 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33548 (grub_gettext_delete_list): Delete the list.
33549 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33550 lang environment variable is changed.
33551 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33553 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33555 Rename kernel.mod to kernel.img.
33557 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33558 (kernel_mod_EXPORTS): Rename to ...
33559 (kernel_img_EXPORTS): ... this.
33560 (kernel_mod_SOURCES): Rename to ...
33561 (kernel_img_SOURCES): ... this.
33562 (kernel_mod_HEADERS): Rename to ...
33563 (kernel_img_HEADERS): ... this. All users updated.
33564 (kernel_mod_CFLAGS): Rename to ...
33565 (kernel_img_CFLAGS): ... this.
33566 (kernel_mod_ASFLAGS): Rename to ...
33567 (kernel_img_ASFLAGS): ... this.
33568 (kernel_mod_LDFLAGS): Rename to ...
33569 (kernel_img_LDFLAGS): ... this.
33570 * conf/x86_64-efi.rmk: Likewise.
33571 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33572 (read_kernel_image): ... this. All users updated.
33573 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33575 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33577 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33578 (print_spaces): New function.
33579 (grub_print_ucs4): New function.
33580 (getstringwidth): New function.
33581 (print_message_indented): New function.
33582 (print_message): Gettexttize strings using print_message_indented.
33583 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33585 (get_entry_number): Gettextize and uses dynamic terminal width.
33586 (notify_booting, notify_fallback, notify_execution_failure):
33588 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33591 (grub_menu_entry_run): Likewise.
33592 * PO/POTFILES: Add normal/menu_entry.c.
33594 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33596 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33598 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33600 * util/grub-install.in: Install gettext .mo files.
33601 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33603 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33605 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33608 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33610 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33611 non-firmware-dependant one in realmode.S takes precedence.
33613 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33615 * commands/halt.c: Replace misc arch-specific headers with
33617 * commands/reboot.c: Likewise.
33618 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33620 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33621 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33622 (kernel_img_SOURCES): ... to here.
33624 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33625 * include/grub/i386/pc/init.h: Likewise.
33626 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33627 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33629 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33631 * include/grub/i386/halt.h: Remove.
33632 * include/grub/i386/reboot.h: Likewise.
33634 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33636 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33638 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33639 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33640 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33642 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33643 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33644 (usage): Add missing comma in printf.
33646 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33648 Use the same reboot approach on i386 coreboot and qemu as we do on
33651 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33652 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33653 * kern/i386/reboot.c: Remove.
33654 * include/grub/i386/reboot.h (grub_reboot): Export function.
33655 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33656 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33657 0xf000:0xfff0 instead of 0xffff:0x0000.
33658 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33659 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33661 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33663 Fix $srcdir != $objdir build.
33665 * Makefile.in (po/%.po): Rewrite as ...
33666 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33668 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33670 Fix GNU/Hurd grub-install crash.
33671 * util/grub-probe.c (probe): Try to access `path' only when it is not
33674 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33676 Correct module naming.
33678 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33679 (GRUB_MOD_INIT(efi_uga)): ... to this
33680 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33681 (GRUB_MOD_FINI(efi_uga)): ... to this
33682 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33683 (GRUB_MOD_INIT(efi_gop)): ... to this
33684 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33685 (GRUB_MOD_FINI(efi_gop)): ... to this
33687 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33689 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33691 (usage): Translate `arg' strings using gettext().
33692 Thanks to Jordi Mallach for the suggestion.
33694 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33696 GOP support. Based on patch from Bean
33697 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33699 * video/efi_gop.c: New file.
33700 * include/grub/efi/graphics_output.h: Likewise.
33701 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33702 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33704 * conf/x86_64-efi.rmk: Likewise.
33706 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33708 Rename efi_fb to efi_uga.
33710 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33712 (efi_fb_mod_SOURCES): Rename this ...
33713 (efi_uga_mod_SOURCES): ... to this.
33714 (efi_fb_mod_CFLAGS): Rename this ...
33715 (efi_uga_mod_CFLAGS): ... to this.
33716 (efi_fb_mod_LDFLAGS): Rename this ...
33717 (efi_uga_mod_LDFLAGS): ... to this.
33718 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33720 (efi_fb_mod_SOURCES): Rename this ...
33721 (efi_uga_mod_SOURCES): ... to this.
33722 (efi_fb_mod_CFLAGS): Rename this ...
33723 (efi_uga_mod_CFLAGS): ... to this.
33724 (efi_fb_mod_LDFLAGS): Rename this ...
33725 (efi_uga_mod_LDFLAGS): ... to this.
33726 * video/efi_fb.c: Move this ...
33727 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33729 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33731 * po/README: New file. Explain our PO file workflow.
33733 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33735 * po/ChangeLog: Remove. Move relevant entries back to ...
33736 * ChangeLog: ... here.
33737 * po/ca.po: Remove (now handled by TLP).
33738 * po/id.po: Likewise.
33739 * po/zh_CN.po: Likewise.
33740 * Makefile.in (LINGUAS): Initialize in a way that supports
33743 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33745 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33746 reliing on po/LINGUAS.
33747 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33748 (po/%.po): ... this.
33750 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33752 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33753 (main): Use `program_name' instead of nonexistent `progname'.
33755 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33757 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33758 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33760 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33762 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33764 * conf/i386-efi.rmk: Likewise.
33765 * conf/i386-ieee1275.rmk: Likewise.
33766 * conf/powerpc-ieee1275.rmk: Likewise.
33767 * conf/sparc64-ieee1275.rmk: Likewise.
33768 * conf/x86_64-efi.rmk: Likewise.
33770 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33772 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33774 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33776 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33778 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33780 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33781 (grub_mkdevicemap_SOURCES): New variable.
33782 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33783 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33784 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33785 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33786 (grub_mkdevicemap_SOURCES): Remove.
33787 * conf/i386-efi.rmk: Likewise.
33788 * conf/i386-ieee1275.rmk: Likewise.
33789 * conf/i386-pc.rmk: Likewise.
33790 * conf/powerpc-ieee1275.rmk: Likewise.
33791 * conf/sparc64-ieee1275.rmk: Likewise.
33792 * conf/x86_64-efi.rmk: Likewise.
33793 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33794 (usage): Fix strings to use `program_name'.
33795 (main): Initialize gettext.
33796 * util/grub-editenv.c: Likewise.
33797 * util/grub-emu.c: Likewise.
33798 * util/grub-fstest.c: Likewise.
33799 * util/grub-mkdevicemap.c: Likewise.
33800 * util/grub-mkfont.c: Likewise.
33801 * util/grub-mkrelpath.c: Likewise.
33802 * util/grub-pe2elf.c: Likewise.
33803 * util/grub-probe.c: Likewise.
33804 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33805 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33806 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33808 * util/misc.c: Include `"progname.h"'.
33809 (progname): Remove variable.
33810 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33812 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33814 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33815 printf and print a newline after the menuentry header line.
33816 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33818 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33820 autoconf >= 2.60 support $(localedir).
33822 * INSTALL: Note that autoconf 2.60 is required.
33823 * configure.ac (AC_PREREQ): Bump to 2.60.
33824 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33825 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33827 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33829 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33832 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33834 * normal/main.c (grub_normal_read_line): Fix off-by-one
33837 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33839 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33840 "parser.grub" in grub_command_execute() call.
33842 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33844 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33845 * conf/i386-efi.rmk: Likewise.
33846 * conf/i386-ieee1275.rmk: Likewise.
33847 * conf/i386-pc.rmk: Likewise.
33848 * conf/powerpc-ieee1275.rmk: Likewise.
33849 * conf/sparc64-ieee1275.rmk: Likewise.
33850 * conf/x86_64-efi.rmk: Likewise.
33851 * gettext/gettex.c: Include <grub/i18n.h>.
33852 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33854 * include/grub/i18n.h: ... to here
33855 * include/grub/i18n.h: ... to here.
33856 * kern/misc.c: Include <grub/i18n.h>
33857 (grub_gettext_dummy): Move above user.
33859 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33861 * util/Makefile.in (install-local): Convert a `for' into a normal
33864 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33866 * autogen.sh: Add automake call.
33867 * config.guess: Remove.
33868 * config.sub: Likewise.
33869 * install-sh: Likewise.
33871 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33873 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33875 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33877 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33878 function to a normal shell `for'.
33880 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33882 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33884 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33886 * util/grub-mkrelpath.c: New file.
33887 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33888 (grub_mkrelpath_SOURCES): New variable.
33889 * include/grub/util/misc.h: New function prototype.
33890 * util/misc.c (make_system_path_relative_to_its_root): New function.
33892 * util/grub-mkconfig_lib.in (bindir): New variable.
33893 (grub_mkrelpath): Likewise.
33894 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33896 * util/probe.c (probe): Make the file path relative to its root.
33897 Change a info message to use the GRUB path. Enable again the
33898 check if we can read the file with GRUB facilities.
33900 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33903 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33905 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33908 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33910 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
33913 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33915 * util/getroot.c (grub_util_is_dmraid): New function.
33916 (grub_util_get_dev_abstraction): Treat dmraid and multipath
33917 devices as normal ones, not as LVM.
33919 2009-11-23 Carles Pina i Estany <carles@pina.cat>
33921 * conf/common.rmk: Add grub-gettext_lib target and updates
33922 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
33924 * gettext/gettext.c: New file. (Reads mo files).
33925 * include/grub/file.h (grub_file_pread): New prototype.
33926 * include/grub/i18n.h (_): New prototype.
33927 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
33929 * kern/misc.c (grub_gettext_dummy): New function.
33930 * normal/menu_text.c: Include <grub/i18n.h>.
33931 * normal/menu_text.c (print_timeout): Gettexttize string.
33932 * normal/menu_text.c (print_message): Gettexttize string.
33933 * po/POTFILES: Add `normal/menu_text.c'.
33934 * po/ca.po: Add new translations.
33935 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
33936 gettext module and defines locale_dir and lang in grub.cfg.
33937 * NEWS: Add gettext support.
33939 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33941 * util/hostdisk.c: Include `<grub/i18n.h>'.
33942 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
33943 (make_device_name): Rewrite using asprintf.
33944 (convert_system_partition_to_system_disk): Replace 0 with NULL.
33945 (find_system_device): If a device is not found, generate one just
33946 by reusing the OS path name.
33947 (read_device_map): Make it permissible for device.map not to exist.
33949 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33951 * script/sh/execute.c: Move from here ...
33952 * script/execute.c: ... to here. Update all users.
33953 * script/sh/function.c: Move from here ...
33954 * script/function.c: ... to here. Update all users.
33955 * script/sh/lexer.c: Move from here ...
33956 * script/lexer.c: ... to here. Update all users.
33957 * script/sh/main.c: Move from here ...
33958 * script/main.c: ... to here. Update all users.
33959 * script/sh/parser.y: Move from here ...
33960 * script/parser.y: ... to here. Update all users.
33961 * script/sh/script.c: Move from here ...
33962 * script/script.c: ... to here. Update all users.
33964 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33966 * configure.ac: Detect all `emu' platforms. Define
33967 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
33968 --enable-grub-emu logic. Disable include/grub/machine
33969 symlink on `emu' platforms.
33971 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
33972 * gensymlist.sh.in: Likewise.
33974 * include/grub/i386/coreboot/machine.h: Remove file.
33975 * include/grub/i386/efi/machine.h: Likewise.
33976 * include/grub/i386/ieee1275/machine.h: Likewise.
33977 * include/grub/i386/pc/machine.h: Likewise.
33978 * include/grub/i386/qemu/machine.h: Likewise.
33979 * include/grub/powerpc/ieee1275/machine.h: Likewise.
33980 * include/grub/sparc64/ieee1275/machine.h: Likewise.
33981 * include/grub/x86_64/efi/machine.h: Likewise.
33983 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
33984 * commands/halt.c: Likewise.
33985 * commands/reboot.c: Likewise.
33986 * include/grub/autoefi.h: Likewise.
33987 * include/grub/i386/at_keyboard.h: Likewise.
33988 * include/grub/i386/kernel.h: Likewise.
33989 * include/grub/i386/loader.h: Likewise.
33990 * include/grub/i386/pc/memory.h: Likewise.
33991 * kern/dl.c: Likewise.
33992 * kern/i386/coreboot/init.c: Likewise.
33993 * loader/i386/bsd.c: Likewise.
33994 * loader/i386/linux.c: Likewise.
33995 * loader/multiboot_loader.c: Likewise.
33996 * term/i386/pc/serial.c: Likewise.
33997 * term/usb_keyboard.c: Likewise.
33999 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34000 `<grub/machine/machine.h>'
34001 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34002 * util/misc.c: Remove `<grub/machine/machine.h>' and
34003 `<grub/machine/time.h>'.
34005 * Makefile.in (enable_grub_emu): Remove variable.
34006 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34008 * conf/any-emu.rmk: New file.
34009 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34010 (grub_emu_init.c): Move from here ...
34011 * conf/any-emu.rmk: ... to here.
34013 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34014 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34015 * conf/any-emu.rmk: ... to here.
34017 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34019 * include/grub/parser.h (grub_parser_register): Document need
34020 of `name' parameter.
34021 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34022 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34025 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34027 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34029 * include/grub/i18n.h (N_): New macro.
34030 * util/mkisofs/mkisofs.h: Likewise.
34031 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34033 (usage): Use gettext() to translate help strings when printing them.
34035 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34037 Based on patch from Bean
34038 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34040 * video/efi_fb.c: New file.
34041 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34042 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34044 * conf/x86_64-efi.rmk: Likewise.
34046 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34048 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34049 * util/i386/pc/grub-setup.c: Likewise.
34051 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34053 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34055 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34056 file_get_storage_info to implement grub_guess_root_device.
34058 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34060 * Makefile.in (target): Use make's builtin $(shell) function
34061 instead of calling directly $(SHELL) to create the locale directories,
34062 inside the $(foreach) function.
34064 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34066 * util/grub-mkrescue.in: Print an error and usage if output option
34067 has not been given.
34069 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34071 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34072 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34073 root and /boot are on different devices.
34075 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34077 Fix build for srcdir != objdir.
34079 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34080 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34082 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34083 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34084 reference for input.
34086 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34088 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34089 or hardlinking it). Remove -J option, Joliet is not compatible with
34090 multiple source directories.
34092 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34093 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34095 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34096 (process_input_dir): New function. Process an arbitrary input
34098 Misc adjustments to support both "override mode" and system-wide mode.
34100 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34102 * configure.ac (UNIFONT_BDF): Rename to ...
34103 (FONT_SOURCE): ... this. Update all users.
34105 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34107 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34108 to the list of unifont files to look for.
34110 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34112 Patch from Joe Auricchio <jauricchio@gmail.com>
34113 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34114 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34115 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34117 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34119 * Makefile.in (install-local): Add a missing backslash.
34121 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34123 * include/grub/x86_64/io.h: New file.
34125 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34127 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34128 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34129 Include `"progname.h"'.
34130 (main): Initialize gettext.
34131 * util/i386/pc/grub-setup.c: Gettexttize.
34132 * util/i386/pc/grub-mkimage.c: Likewise.
34134 * Makefile.in (po/*.po): Redefine as ...
34135 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34137 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34139 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34141 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34142 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34143 (program_name): Remove.
34144 (main): Initialize gettext support.
34145 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34146 Include `<libintl.h>'.
34149 * util/mkisofs/eltorito.c: Gettexttize.
34150 * util/mkisofs/joliet.c: Likewise.
34151 * util/mkisofs/mkisofs.c: Likewise.
34152 * util/mkisofs/multi.c: Likewise.
34153 * util/mkisofs/rock.c: Likewise.
34154 * util/mkisofs/tree.c: Likewise.
34155 * util/mkisofs/write.c: Likewise.
34157 * po/POTFILES: Update with new files.
34159 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34161 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34162 * util/mkisofs/iso9660.h: Likewise.
34163 * util/mkisofs/joliet.c: Likewise.
34164 * util/mkisofs/mkisofs.c: Likewise.
34165 * util/mkisofs/mkisofs.h: Likewise.
34166 * util/mkisofs/rock.c: Likewise.
34167 * util/mkisofs/tree.c: Likewise.
34168 * util/mkisofs/write.c: Likewise.
34170 * util/mkisofs/eltorito.c (rcsid): Remove.
34171 * util/mkisofs/hash.c: Likewise.
34172 * util/mkisofs/joliet.c: Likewise.
34173 * util/mkisofs/name.c: Likewise.
34174 * util/mkisofs/rock.c: Likewise.
34175 * util/mkisofs/tree.c: Likewise.
34176 * util/mkisofs/write.c: Likewise.
34178 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34180 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34181 instead of static allocation.
34182 * util/mkisofs/match.h: Likewise.
34184 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34186 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34187 and `util/grub.d/10_linux.in'.
34188 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34189 translatable Shell files.
34191 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34193 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34195 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34197 * INSTALL: Document Automake is needed for bootstrap.
34198 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34199 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34200 Add gettext initialization.
34201 (kfreebsd_entry): Make menuentry output translatable.
34203 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34205 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34206 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34207 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34208 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34209 (LINGUAS): Auto-generate using `po/LINGUAS'.
34210 * po/LINGUAS: New file.
34212 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34214 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34216 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34217 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34218 bindtextdomain() calls for gettext initialization.
34220 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34222 * gnulib/progname.c: New file (imported from Gnulib).
34223 * gnulib/progname.h: Likewise.
34224 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34225 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34226 (usage): Replace `progname' with `program_name'.
34227 (main): Use set_program_name() for program name initialization.
34229 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34231 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34233 * Makefile.in (CPPFLAGS): ... to here.
34235 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34237 * aclocal.m4: Move from here ...
34238 * acinclude.m4: ... to here.
34239 * autogen.sh: Add call to `aclocal'.
34240 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34242 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34244 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34245 (LINGUAS): New variable.
34246 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34247 (install-local): Install MO files.
34248 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34249 * include/grub/i18n.h: New file.
34250 * po/POTFILES: New file.
34251 * po/ca.po: New file.
34252 * util/grub.d/10_linux.in (bindir): New variable.
34253 Add gettext initialization.
34254 (linux_entry): Make menuentry output translatable.
34255 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34256 (usage): Make --help output translatable.
34257 (main): Initialize gettext.
34259 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34261 * import_gcry.py: New file (written by Vladimir with minor
34263 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34265 * INSTALL: Document that Python is required for bootstrap.
34267 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34269 Import ciphers from libgcrypt 1.4.4.
34271 * lib/libgcrypt/cipher/ChangeLog
34272 * lib/libgcrypt/cipher/ac.c
34273 * lib/libgcrypt/cipher/arcfour.c
34274 * lib/libgcrypt/cipher/bithelp.h
34275 * lib/libgcrypt/cipher/blowfish.c
34276 * lib/libgcrypt/cipher/camellia-glue.c
34277 * lib/libgcrypt/cipher/camellia.c
34278 * lib/libgcrypt/cipher/camellia.h
34279 * lib/libgcrypt/cipher/cast5.c
34280 * lib/libgcrypt/cipher/cipher.c
34281 * lib/libgcrypt/cipher/crc.c
34282 * lib/libgcrypt/cipher/des.c
34283 * lib/libgcrypt/cipher/dsa.c
34284 * lib/libgcrypt/cipher/ecc.c
34285 * lib/libgcrypt/cipher/elgamal.c
34286 * lib/libgcrypt/cipher/hash-common.c
34287 * lib/libgcrypt/cipher/hash-common.h
34288 * lib/libgcrypt/cipher/hmac-tests.c
34289 * lib/libgcrypt/cipher/md.c
34290 * lib/libgcrypt/cipher/md4.c
34291 * lib/libgcrypt/cipher/md5.c
34292 * lib/libgcrypt/cipher/primegen.c
34293 * lib/libgcrypt/cipher/pubkey.c
34294 * lib/libgcrypt/cipher/rfc2268.c
34295 * lib/libgcrypt/cipher/rijndael-tables.h
34296 * lib/libgcrypt/cipher/rijndael.c
34297 * lib/libgcrypt/cipher/rmd.h
34298 * lib/libgcrypt/cipher/rmd160.c
34299 * lib/libgcrypt/cipher/rsa.c
34300 * lib/libgcrypt/cipher/seed.c
34301 * lib/libgcrypt/cipher/serpent.c
34302 * lib/libgcrypt/cipher/sha1.c
34303 * lib/libgcrypt/cipher/sha256.c
34304 * lib/libgcrypt/cipher/sha512.c
34305 * lib/libgcrypt/cipher/tiger.c
34306 * lib/libgcrypt/cipher/twofish.c
34307 * lib/libgcrypt/cipher/whirlpool.c
34309 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34311 Fix build for systems without error().
34313 * gnulib/error.c: New file (imported from Gnulib).
34314 * gnulib/error.h: Likewise.
34315 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34316 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34317 (this variable is now used by error()).
34319 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34321 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34322 instead of relying that char is signed.
34324 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34326 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34327 blocksize different from specified.
34328 (grub_pxefs_read): Likewise.
34330 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34332 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34334 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34335 (grub_ata_readwrite): Likewise. Update 2 format strings.
34336 (grub_atapi_read): Likewise.
34338 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34339 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34340 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34341 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34342 (ata_mod_LDFLAGS): Move from here ...
34343 * conf/i386.rmk: ... to here ...
34344 * conf/x86_64-efi.rmk: ... and here.
34345 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34346 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34348 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34350 Relicense multiboot.h, with RMS' blessing.
34352 * include/multiboot.h: Change to X11 license.
34354 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34356 Support --version in grub-mkisofs.
34358 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34359 (OPTION_VERSION): New macro.
34360 (ld_options): Recognize --version.
34361 (usage): Move `program_name' from here ...
34362 (program_name): ... to here. Add `static' qualifier.
34363 (main): Recognize `OPTION_VERSION'.
34365 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34367 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34368 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34370 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34372 Fix help2man generation for mkisofs.
34374 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34375 (usage): Send output to stdout (rather than stderr).
34377 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34379 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34380 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34381 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34382 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34383 (bin_SCRIPTS): Add `grub-mkfloppy'.
34384 (grub_mkfloppy_SOURCES): New variable.
34386 * util/grub-mkrescue.in: New file.
34387 * util/i386/pc/grub-mkfloppy.in: New file.
34389 * util/i386/coreboot/grub-mkrescue.in: Remove.
34390 * util/i386/pc/grub-mkrescue.in: Remove.
34392 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34394 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34396 * include/multiboot.h (struct multiboot_header): ... to here. Update
34398 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34400 * include/multiboot.h (struct multiboot_info): ... to here. Update
34402 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34404 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34406 * include/grub/multiboot.h (struct grub_mod_list): Move
34408 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34411 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34413 * include/multiboot2.h (multiboot_word): Rename from this ...
34414 (multiboot2_word): ... to this. Update all users.
34415 (multiboot_header): Rename from this ...
34416 (multiboot2_header): ... to this. Update all users.
34417 (multiboot_tag_header): Rename from this ...
34418 (multiboot2_tag_header): ... to this. Update all users.
34419 (multiboot_tag_start): Rename from this ...
34420 (multiboot2_tag_start): ... to this. Update all users.
34421 (multiboot_tag_name): Rename from this ...
34422 (multiboot2_tag_name): ... to this. Update all users.
34423 (multiboot_tag_module): Rename from this ...
34424 (multiboot2_tag_module): ... to this. Update all users.
34425 (multiboot_tag_memory): Rename from this ...
34426 (multiboot2_tag_memory): ... to this. Update all users.
34427 (multiboot_tag_unused): Rename from this ...
34428 (multiboot2_tag_unused): ... to this. Update all users.
34429 (multiboot_tag_end): Rename from this ...
34430 (multiboot2_tag_end): ... to this. Update all users.
34432 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34434 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34435 this platform we should support Multiboot1 first.
34437 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34438 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34439 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34441 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34443 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34444 of write calls (converting them to fwrite() if they aren't already).
34445 (get_torito_desc): Likewise.
34446 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34448 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34450 * util/i386/pc/grub-install.in: Move from here ...
34451 * util/grub-install.in: ... to here. Update all users.
34453 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34455 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34457 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34459 Support for El Torito without floppy emulation.
34461 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34462 (init_boot_catalog): Improve error handling.
34463 (get_torito_desc): Don't use floppy emulation unless requested by
34464 user. Patch boot information table when requested via
34465 `-boot-info-table'.
34466 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34467 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34468 (use_boot_info_table): New variables.
34469 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34470 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34471 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34472 `--eltorito-emul-floppy'.
34473 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34474 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34475 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34476 (use_boot_info_table, get_731): New prototypes.
34477 * util/mkisofs/write.c (get_731): New function.
34479 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34481 Fix the generation of the man page.
34483 * util/pc/i386/grub-install.in: Source
34484 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34486 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34488 Large file support for grub-mkisofs.
34490 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34491 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34492 (session_start): Upgrade type to `uint64_t'. Update all users.
34493 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34494 (struct directory_entry): Upgrade type of `starting_block' and
34495 `size' to `uint64_t'. Update all users.
34496 (struct deferred): Remove unused structure.
34497 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34499 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34500 file is larger than `UINT32_MAX'.
34501 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34502 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34504 (struct deferred_write): Upgrade type of `extent' and `size' to
34505 `uint64_t'. Update all users.
34506 (last_extent_written): Upgrade type to `uint64_t'. Update all
34508 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34509 Update all users. Upgrade type of `remain' to `int64_t' and
34510 `use' to `size_t'. Use error() to handle fread() errors.
34511 (write_files): Rely on write_one_file() rather than calling
34512 xfwrite() directly.
34514 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34516 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34518 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34520 * util/mkisofs/fnmatch.c: Remove.
34521 * util/mkisofs/getopt1.c: Likewise.
34522 * util/mkisofs/getopt.c: Likewise.
34523 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34524 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34525 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34526 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34527 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34529 * configure.ac: Detect `mingw32msvc' host_os.
34530 Check for lstat(), getuid() and getgid().
34532 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34533 instances of `u_char' with `uint8_t'.
34535 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34536 [!HAVE_GETUID] (getuid): New function (stub).
34537 [!HAVE_GETGID] (getgid): Likewise.
34538 [!HAVE_LSTAT] (lstat): Likewise.
34539 [!S_IROTH] (S_IROTH): New macro (dummy).
34540 [!S_IRGRP] (S_IRGRP): Likewise.
34542 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34544 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34545 conditional expression).
34547 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34549 Import from Gnulib.
34551 * gnulib/fnmatch.c: New file.
34552 * gnulib/fnmatch.h: Likewise.
34553 * gnulib/fnmatch_loop.c: Likewise.
34554 * gnulib/getopt.c: Likewise.
34555 * gnulib/getopt.h: Likewise.
34556 * gnulib/getopt1.c: Likewise.
34557 * gnulib/getopt_int.h: Likewise.
34558 * gnulib/gettext.h: Likewise.
34560 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34562 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34563 * normal/handler.c (read_handler_list): Likewise.
34565 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34569 * kern/command.c (grub_register_command_prio): Use
34570 grub_zalloc() instead of explicitly zeroing data.
34571 * kern/list.c: Include `<grub/mm.h>'.
34572 (grub_named_list_find): Replace `0' with `NULL'.
34573 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34574 (fs_module_list): Change type to `grub_named_list_t'. Update all
34576 * normal/dyncmd.c (read_command_list): Add space between function
34577 call and parenthesis.
34578 * normal/handler.c (read_handler_list): Likewise.
34580 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34582 * normal/auth.c (punishment_delay): Moved from here ...
34583 (grub_auth_strcmp): ... to here (inside function).
34585 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34587 * include/grub/list.h (struct grub_named_list): Remove `const'
34588 qualifier from `name'.
34589 (struct grub_prio_list): Likewise.
34591 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34593 * normal/auth.c: Include `<grub/time.h>'.
34594 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34596 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34598 * normal/auth.c (punishment_delay): New variable.
34599 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34600 (grub_auth_check_authentication): Punish failed login attempts with
34601 an incremental (2^N) delay.
34603 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34605 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34606 path with $(srcdir).
34608 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34610 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34612 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34614 * util/i386/coreboot/grub-mkrescue.in: New file.
34615 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34618 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34619 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34620 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34622 * util/mkisofs/defaults.h: New file.
34623 * util/mkisofs/eltorito.c: Likewise.
34624 * util/mkisofs/exclude.h: Likewise.
34625 * util/mkisofs/fnmatch.c: Likewise.
34626 * util/mkisofs/getopt.c: Likewise.
34627 * util/mkisofs/getopt1.c: Likewise.
34628 * util/mkisofs/hash.c: Likewise.
34629 * util/mkisofs/include/fctldefs.h: Likewise.
34630 * util/mkisofs/include/mconfig.h: Likewise.
34631 * util/mkisofs/include/prototyp.h: Likewise.
34632 * util/mkisofs/include/statdefs.h: Likewise.
34633 * util/mkisofs/iso9660.h: Likewise.
34634 * util/mkisofs/joliet.c: Likewise.
34635 * util/mkisofs/match.c: Likewise.
34636 * util/mkisofs/match.h: Likewise.
34637 * util/mkisofs/mkisofs.c: Likewise.
34638 * util/mkisofs/mkisofs.h: Likewise.
34639 * util/mkisofs/multi.c: Likewise.
34640 * util/mkisofs/name.c: Likewise.
34641 * util/mkisofs/rock.c: Likewise.
34642 * util/mkisofs/tree.c: Likewise.
34643 * util/mkisofs/write.c: Likewise.
34645 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34647 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34650 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34652 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34653 `grub-mkimage' (and use $0 when possible).
34655 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34657 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34658 error message for excessively large memory map.
34660 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34662 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34665 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34667 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34668 message for coreboot users.
34670 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34672 Fix build with GNU gold.
34674 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34675 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34676 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34678 * aclocal.m4: Likewise.
34680 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34682 * configure.ac (AC_PREREQ): Bump to 2.59d.
34683 * INSTALL: Make it more clear when Autoconf and Ruby are
34684 needed and when to run `./autogen.sh'.
34686 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34688 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34691 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34693 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34695 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34697 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34698 giving it to GNU Mach.
34700 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34702 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34703 GNU partition number to get internal GRUB partition number.
34705 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34707 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34708 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34710 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34712 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34713 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34716 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34718 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34720 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34724 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34725 `-isystem=$(srcdir)/include'.
34727 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34729 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34730 checked (grub-install doesn't currently rely on it).
34732 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34736 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34737 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34738 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34739 * conf/i386-ieee1275.rmk: Likewise.
34740 * conf/i386-pc.rmk: Likewise.
34741 * conf/powerpc-ieee1275.rmk: Likewise.
34742 * conf/sparc64-ieee1275.rmk: Likewise.
34743 * conf/x86_64-efi.rmk: Likewise.
34745 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34747 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34749 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34751 * include/grub/misc.h: Stop checking for APPLE_CC.
34753 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34755 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34756 doesn't cause an infinite call loop.
34758 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34760 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34763 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34765 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34767 * Makefile.in: Likewise.
34769 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34771 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34773 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34775 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34777 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34779 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34781 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34783 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34785 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34787 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34789 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34790 in $(MAKEINFO) invocation. This makes it clear in output that
34791 errors are being ignored.
34793 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34795 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34797 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34798 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34799 * conf/i386-ieee1275.rmk: Likewise.
34800 * conf/i386-pc.rmk: Likewise.
34801 * conf/powerpc-ieee1275.rmk: Likewise.
34802 * conf/sparc64-ieee1275.rmk: Likewise.
34803 * conf/x86_64-efi.rmk: Likewise.
34805 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34807 * util/grub-editenv.c (main): If only a command is given, use
34808 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34809 (usage): FILENAME is now optional and has a default.
34811 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34813 Improve grub-mkconfig performance when there are several menu
34814 entries on a single filesystem.
34816 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34817 prepare_grub_to_access_device.
34818 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34819 * util/grub.d/30_os-prober.in: Likewise.
34821 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34823 * util/grub.d/10_freebsd.in: Remove.
34824 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34825 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34827 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34829 * docs/grub.cfg: Fix example usage of *BSD loaders.
34831 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34833 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34834 grub_util_error() call.
34836 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34838 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34839 `reserved_first_sector' member.
34840 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34841 `reserved_first_sector' to 1.
34842 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34843 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34844 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34845 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34846 filesystems which begin at first sector.
34847 (options): New option --skip-fs-probe.
34848 (main): Handle --skip-fs-probe and pass it to setup().
34850 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34852 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34853 (memset): Fix function prototype.
34855 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34856 2009-10-25 Vasily Averin <vvs@parallels.com>
34858 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34859 `dirent.direntlen == 0'.
34861 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34863 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34865 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34867 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34869 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34870 `__trampoline_setup' and `__ucmpdi2'.
34871 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34872 that libgcc provides.
34874 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34876 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34877 * include/grub/sparc64/libgcc.h (memset): Likewise.
34878 * include/grub/misc.h (memset, memcmp): New function prototypes.
34880 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34882 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34884 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34886 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34888 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34889 * docs/grub.cfg: Compensate for recent change in multiboot
34890 loader (since 2009-08-14 it won't pass filename to payload).
34891 * util/grub.d/10_hurd.in: Likewise.
34893 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
34895 * config.guess: Update to latest version from config git
34897 * config.sub: Likewise.
34899 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34901 Fix build on sparc64.
34903 * configure.ac: Perform checks for libgcc symbols before
34904 adding `-nostdlib' to LDFLAGS.
34906 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34908 Let user specify OpenBSD root device.
34910 * loader/i386/bsd.c (openbsd_root): New variable.
34911 (openbsd_opts): New option 'root'.
34912 (OPENBSD_ROOT_ARG): New macro.
34913 (grub_openbsd_boot): Use 'openbsd_root'.
34914 (grub_cmd_openbsd): Fill 'openbsd_root'.
34916 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34918 * NEWS: Misc adjustments.
34920 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34922 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
34924 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34926 * configure.ac: Bump version to 1.97.
34928 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
34930 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
34931 -mno-3dnow on x86 architectures. Some toolchains enable these
34932 features by default, but they rely on registers that aren't enabled
34933 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
34935 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
34937 Make entry text a bit more readable.
34939 * util/grub.d/10_linux.in: Add `with' before `Linux'.
34941 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34943 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
34945 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34947 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
34950 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34952 * configure.ac: Add missing dollar.
34954 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34956 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
34958 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
34959 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
34961 * include/grub/sparc64/libgcc.h: Likewise. Use
34962 preprocessor conditionals.
34964 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
34966 * conf/common.rmk (grub-dumpbios): Remove rule.
34967 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
34968 * util/grub-dumpbios.in: Remove file.
34970 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
34972 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
34973 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
34975 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
34976 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
34979 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
34980 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
34981 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
34982 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
34985 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
34987 * term/tparm.c: Switch to GPLv3.
34989 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
34991 * include/grub/i386/cpuid.h: Add header protection.
34993 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
34995 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
34997 * include/grub/i386/cpuid.h: New file.
34998 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
34999 (has_longmode): Rename to ...
35000 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35001 `static' attribute.
35002 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35003 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35004 on a CPU that doesn't implement AMD64 instruction set.
35006 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35008 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35009 that version.texi is rebuilt on version number changes.
35011 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35013 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35016 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35018 * util/i386/pc/grub-install.in: Source
35019 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35020 that the --grub-probe option will work.
35021 * util/sparc64/ieee1275/grub-install.in: Likewise.
35023 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35025 * configure.ac: Bump version to 1.97~beta4.
35027 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35029 Resync grub-mkdevicemap in x86_64-efi.
35031 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35032 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35033 `util/devicemap.c'.
35035 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35037 * util/grub-editenv.c (create_envblk_file): Write new block with a
35038 .new suffix and then rename it into place, to ensure atomic
35041 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35043 Do not automatically install headers.
35045 * Makefile.in (include_DATA): Remove. Update all users.
35047 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35049 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35050 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35052 * util/osdetect.lua: Remove.
35053 * script/lua/lauxlib.c: Likewise.
35054 * script/lua/ldebug.c: Likewise.
35055 * script/lua/grub_main.c: Likewise.
35056 * script/lua/lauxlib.h: Likewise.
35057 * script/lua/ldebug.h: Likewise.
35058 * script/lua/ltablib.c: Likewise.
35059 * script/lua/liolib.c: Likewise.
35060 * script/lua/lstrlib.c: Likewise.
35061 * script/lua/lualib.h: Likewise.
35062 * script/lua/ldo.c: Likewise.
35063 * script/lua/ldump.c: Likewise.
35064 * script/lua/ldo.h: Likewise.
35065 * script/lua/loslib.c: Likewise.
35066 * script/lua/lundump.c: Likewise.
35067 * script/lua/grub_lib.c: Likewise.
35068 * script/lua/ldblib.c: Likewise.
35069 * script/lua/lundump.h: Likewise.
35070 * script/lua/lmem.c: Likewise.
35071 * script/lua/grub_lib.h: Likewise.
35072 * script/lua/lmathlib.c: Likewise.
35073 * script/lua/lstate.c: Likewise.
35074 * script/lua/ltm.c: Likewise.
35075 * script/lua/lvm.c: Likewise.
35076 * script/lua/lmem.h: Likewise.
35077 * script/lua/lstate.h: Likewise.
35078 * script/lua/ltm.h: Likewise.
35079 * script/lua/ltable.c: Likewise.
35080 * script/lua/lvm.h: Likewise.
35081 * script/lua/llex.c: Likewise.
35082 * script/lua/lgc.c: Likewise.
35083 * script/lua/grub_lua.h: Likewise.
35084 * script/lua/loadlib.c: Likewise.
35085 * script/lua/lfunc.c: Likewise.
35086 * script/lua/lopcodes.c: Likewise.
35087 * script/lua/lparser.c: Likewise.
35088 * script/lua/ltable.h: Likewise.
35089 * script/lua/llex.h: Likewise.
35090 * script/lua/lgc.h: Likewise.
35091 * script/lua/lfunc.h: Likewise.
35092 * script/lua/lbaselib.c: Likewise.
35093 * script/lua/lopcodes.h: Likewise.
35094 * script/lua/lparser.h: Likewise.
35095 * script/lua/lzio.c: Likewise.
35096 * script/lua/linit.c: Likewise.
35097 * script/lua/lobject.c: Likewise.
35098 * script/lua/llimits.h: Likewise.
35099 * script/lua/lstring.c: Likewise.
35100 * script/lua/lzio.h: Likewise.
35101 * script/lua/lapi.c: Likewise.
35102 * script/lua/lcode.c: Likewise.
35103 * script/lua/lua.h: Likewise.
35104 * script/lua/lobject.h: Likewise.
35105 * script/lua/lstring.h: Likewise.
35106 * script/lua/lapi.h: Likewise.
35107 * script/lua/lcode.h: Likewise.
35108 * script/lua/luaconf.h: Likewise.
35110 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35112 * docs/grub.texi (Command-line and menu entry commands): Document
35113 date and echo commands.
35115 2009-09-24 Pavel Roskin <proski@gnu.org>
35117 * include/grub/kernel.h (struct grub_module_header): Remove
35118 `grub_module_header_types'. Make `type' unsigned. Make `size'
35119 32-bit on all platforms.
35120 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35121 8-bit field. Use grub_host_to_target32() for `size'.
35122 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35123 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35124 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35126 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35128 Fix "lost keypress" bug in at_keyboard.
35130 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35131 Checks for readyness of input buffer (without flushing it).
35132 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35133 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35135 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35137 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35138 size check within GRUB_MACHINE_PCBIOS section.
35140 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35142 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35144 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35145 KEYBOARD_ISREADY check.
35146 (grub_at_keyboard_checkkey): Rename to ...
35147 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35148 Remove gratuitous cast.
35150 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35152 * configure.ac: Call AC_PROG_MKDIR_P.
35153 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35154 version.texi in $(builddir) rather than $(srcdir).
35155 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35156 to makeinfo's @include search path.
35158 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35160 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35162 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35164 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35167 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35169 Build info documentation. Some code borrowed from Automake.
35171 * configure.ac: Check for makeinfo.
35172 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35173 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35175 (MOSTLYCLEANFILES): Add vti.tmp.
35176 (docs/version.texi, docs/stamp-vti): Update automatically.
35177 (docs/grub.info): Build info documentation. Use --force and ignore
35179 (all-local): Add $(INFOS).
35180 (install-local): Install info files.
35181 (uninstall): Uninstall info files.
35182 * docs/version.texi: Remove from revision control. This file is
35183 automatically generated on build now.
35184 * gendistlist.sh: Add `*.info'.
35186 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35188 * kern/term.c: Fix indentation.
35190 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35192 * util/hostdisk.c: Fix a comment.
35194 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35196 Fix regression introduced in r2539.
35198 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35201 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35203 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35204 os-prober. Under normal operation, it does not print anything to
35205 stderr; if it does, we need to debug it, and throwing away stderr
35206 makes that excessively difficult.
35208 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35210 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35212 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35214 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35215 AC_LANG_PROGRAM from autoconf.
35216 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35217 prototypes (fixes warning).
35219 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35220 `--disable-werror' was used.
35222 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35224 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35225 uninitialized `lastaddr'.
35227 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35229 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35231 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35233 * commands/test.c (get_fileinfo): Return immediately if
35234 grub_fs_probe fails.
35236 2009-09-14 José Martínez <xosemp@gmail.com>
35238 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35240 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35242 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35245 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35247 * configure.ac: Remove --enable-grub-pe2elf. Only build
35248 grub-pe2elf when needed by the build system itself.
35249 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35251 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35253 * configure.ac: Bump version to 1.97~beta3.
35254 * docs/version.texi: Likewise.
35256 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35258 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35259 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35261 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35262 (grub_linux_setup_video): ... to here (with some adjustments).
35264 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35266 Fix memory corruption issue (spotted by Colin Watson).
35268 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35269 causing returned size to be stored in an incorrect memory location.
35270 Fix use of uninitialized value when storing the returned size.
35272 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35274 Change clean rules to properly remove files
35276 * genmk.rb: add new clean rules
35277 * Makefile.in (clean): add the new targets
35278 (mostlyclean): likewise
35280 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35282 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35284 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35285 non-resident files.
35287 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35289 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35290 part of bug #27349.
35292 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35294 * util/grub-mkconfig.in: Make the created config mode 400 and
35295 print a warning if it fails.
35297 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35299 * util/grub.d/40_custom.in: Ask user to type custom entries below
35300 comment, rather than below 'exec tail' line.
35302 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35304 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35305 visible in grub.cfg.
35307 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35309 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35312 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35314 * docs/grub.cfg: Add an example menu entry for memtest86+.
35316 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35318 * config.guess: Update to latest version from config git.
35319 * config.sub: Likewise.
35321 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35323 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35324 unknown-command case. Fixes bug #27320.
35326 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35328 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35329 `help' if the command exists.
35331 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35333 * INSTALL: Require GCC 4.1.3 or later.
35335 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35337 * Makefile.in (RMKFILES): add i386-qemu.rmk
35338 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35339 $(srcdir)/stamp-h.in
35341 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35343 * util/grub-probe.c (probe): Comment out buggy codepath, which
35344 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35345 should be re-enabled after 1.97.
35347 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35349 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35352 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35354 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35355 unnecessary calls to grub_error.
35357 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35359 * NEWS: Mention `keystatus' and Unicode fonts.
35361 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35363 * configure.ac: Bump version to 1.97~beta2.
35364 * docs/version.texi: Likewise.
35366 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35368 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35369 containing unwind information in some cases where it previously did
35370 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35371 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35374 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35376 Embedding loadenv module into grub-emu
35378 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35380 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35381 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35382 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35383 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35384 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35385 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35387 2009-09-03 Magnus Granberg <zorry@ume.nu>
35389 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35390 include -fPIE in the default specs.
35391 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35394 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35396 * INSTALL: Note that GNU Bison 2.3 or later is required.
35398 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35400 * kern/i386/pc/startup.S: Fix typo.
35402 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35404 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35407 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35409 * docs/grub.texi (Naming convention): Describe one-based partition
35411 (Device syntax): Likewise.
35412 (File name syntax): Likewise.
35413 (Block list syntax): Likewise.
35414 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35416 (File name syntax): Likewise.
35417 (Command-line and menu entry commands): Document acpi, blocklist,
35418 crc, export, insmod, keystatus, ls, set, and unset commands.
35420 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35422 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35423 to avoid implying that only one of --shift, --ctrl, or --alt may be
35426 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35428 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35429 rather than comparing against S_IFREG, which will almost never work.
35431 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35433 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35434 (write_blocklists): Likewise.
35436 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35438 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35439 argument to grub_printf.
35441 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35443 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35446 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35448 * kern/file.c (grub_file_read): Spelling fix
35450 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35452 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35453 loading of headers in some cases.
35455 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35457 * configure.ac: Bump version to 1.97~beta1.
35458 * docs/version.texi: Likewise.
35460 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35462 * include/grub/i386/xnu.h: Add license header.
35463 include grub/err.h explicitly.
35465 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35467 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35468 to `ufs' in the vfs.root.mountfrom kernel parameter.
35470 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35472 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35474 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35475 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35477 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35478 `ARRAY_SIZE' macro.
35480 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35482 * kern/file.c (grub_file_read): Check offset.
35483 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35484 * fs/jfs.c (grub_jfs_read_file): Likewise.
35485 * fs/ntfs.c (grub_ntfs_read): Likewise.
35486 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35487 * fs/minix.c (grub_minix_read_file): Correct offset check.
35488 * fs/ufs.c (grub_ufs_read_file): Likewise.
35490 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35492 * term/i386/pc/console.c (bios_data_area): Cast
35493 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35495 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35497 1-bit optimised blitters.
35499 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35501 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35502 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35503 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35504 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35505 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35506 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35507 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35509 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35510 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35511 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35512 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35513 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35514 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35515 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35517 * video/video.c (grub_video_get_blit_format): Return
35518 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35520 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35522 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35523 the first argument to grub_printf.
35525 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35526 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35528 Add `getkeystatus' terminal method. Add a new `keystatus' command
35531 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35532 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35533 modifier key bitmasks.
35534 (struct grub_term_input): Add `getkeystatus' member.
35535 (grub_getkeystatus): Add prototype.
35536 * kern/term.c (grub_getkeystatus): New function.
35538 * include/grub/i386/pc/memory.h
35539 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35540 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35542 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35543 (grub_console_term_input): Set `getkeystatus' member.
35544 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35546 (grub_usb_keyboard_getreport): Likewise.
35547 (grub_usb_keyboard_checkkey): Likewise.
35548 (grub_usb_keyboard_getkeystatus): New function.
35549 (grub_usb_keyboard_term): Set `getkeystatus' member.
35551 * commands/keystatus.c: New file.
35552 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35553 (keystatus_mod_SOURCES): New variable.
35554 (keystatus_mod_CFLAGS): Likewise.
35555 (keystatus_mod_LDFLAGS): Likewise.
35556 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35557 commands/keystatus.c.
35558 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35559 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35560 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35561 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35562 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35563 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35565 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35567 Split befs.mod and afs.mod into *_be.mod and *.mod
35569 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35570 (grub_fstest_SOURCES): Likewise.
35571 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35572 (afs_be_mod_SOURCES): New variable.
35573 (afs_be_mod_CFLAGS): Likewise.
35574 (afs_be_mod_LDFLAGS): Likewise.
35575 (befs_be_mod_SOURCES): Likewise.
35576 (befs_be_mod_CFLAGS): Likewise.
35577 (befs_be_mod_LDFLAGS): Likewise.
35578 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35579 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35580 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35581 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35582 (grub_emu_SOURCES): Likewise.
35583 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35584 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35585 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35586 * fs/afs_be.c: New file.
35587 * fs/befs_be.c: New file.
35588 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35589 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35590 (U16): Replaced with ...
35591 (grub_afs_to_cpu16): ...this. All users updated.
35592 (U32): Replaced with ...
35593 (grub_afs_to_cpu32): ...this. All users updated.
35594 (U64): Replaced with ...
35595 (grub_afs_to_cpu64): ...this. All users updated.
35596 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35597 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35598 (grub_afs_validate_sblock): Check only one endianness.
35599 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35600 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35601 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35602 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35603 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35604 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35605 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35606 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35608 2009-08-26 Bean <bean123ch@gmail.com>
35610 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35612 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35613 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35614 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35616 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35618 NetBSD memory map support.
35620 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35621 (grub_netbsd_btinfo_mmap_header): New structure.
35622 (grub_netbsd_btinfo_mmap_entry): Likewise.
35623 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35625 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35627 Enable bsd.mod on coreboot.
35629 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35630 (bsd_mod_SOURCES): New variable.
35631 (bsd_mod_CFLAGS): Likewise.
35632 (bsd_mod_LDFLAGS): Likewise.
35633 (bsd_mod_ASFLAGS): Likewise.
35634 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35635 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35637 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35639 Cleanup NetBSD root support.
35641 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35642 grub_bsd_get_device.
35645 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35647 * util/grub.d/00_header.in: Move check for the video backend of
35648 gfxterm from here ...
35649 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35650 a suitable video backend.
35652 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35654 Fix breakage in grub-setup.
35656 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35657 "msdos_partition_map".
35659 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35661 Fix breakage in normal/auth.c.
35663 * normal/auth.c (grub_iswordseparator): New function.
35665 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35667 Authentication support.
35669 * commands/password.c: New file.
35670 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35671 (password_mod_SOURCES): New variable.
35672 (password_mod_CFLAGS): Likewise.
35673 (password_mod_LDFLAGS): Likewise.
35674 (normal_mod_SOURCES): Add normal/auth.c.
35675 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35677 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35678 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35679 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35680 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35681 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35682 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35683 * include/grub/auth.h: New file.
35684 * include/grub/err.h (grub_err_t): New enum value
35685 GRUB_ERR_ACCESS_DENIED.
35686 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35688 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35689 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35691 * normal/auth.c: New file.
35692 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35693 (grub_cmdline_run): Don't allow to go to command line without
35695 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35696 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35697 menuentry without superuser rights.
35698 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35699 user isn't a superuser.
35701 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35703 Save space by inlining misc.c functions.
35705 * kern/misc.c (grub_iswordseparator): Made static.
35706 * kern/misc.c (grub_strcat): Moved from here ...
35707 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35708 * kern/misc.c (grub_strncat): Moved from here ...
35709 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35710 * kern/misc.c (grub_strcasecmp): Moved from here ...
35711 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35712 * kern/misc.c (grub_strncasecmp): Moved from here ...
35713 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35714 * kern/misc.c (grub_isalpha): Moved from here ...
35715 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35716 * kern/misc.c (grub_isdigit): Moved from here ...
35717 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35718 * kern/misc.c (grub_isgraph): Moved from here ...
35719 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35720 * kern/misc.c (grub_tolower): Moved from here ...
35721 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35723 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35725 * script/sh/function.c (grub_script_function_find): Cut error message
35726 not to flood terminal.
35727 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35729 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35731 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35733 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35734 `report' grub_uint8_t *.
35735 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35736 Use a 50-millisecond timeout rather than just repeating
35737 grub_usb_keyboard_getreport 50 times.
35738 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35740 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35742 Rename *_partition_map to part_*
35744 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35745 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35746 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35747 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35749 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35751 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35752 * util/grub-probe.c (probe_partmap): Don't transform partition name
35753 to get module name.
35755 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35757 Fix OpenBSD and NetBSD support.
35759 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35760 memory address conflict.
35761 (OPENBSD_MMAP_ACPI): New definition.
35762 (OPENBSD_MMAP_NVS): Likewise.
35763 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35764 and OPENBSD_MMAP_NVS.
35765 Add memory map terminator
35766 Explicit cast when calling grub_unix_real_boot.
35767 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35769 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35771 Let user specify NetBSD root device.
35773 * loader/i386/bsd.c (netbsd_root): New variable.
35774 (netbsd_opts): New option 'root'.
35775 (NETBSD_ROOT_ARG): New macro.
35776 (grub_netbsd_boot): Use 'netbsd_root'.
35777 (grub_bsd_unload): Free 'netbsd_root'.
35778 (grub_cmd_netbsd): Fill 'netbsd_root'.
35780 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35782 Support for 64-bit NetBSD.
35784 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35785 point when booting non-FreeBSD.
35787 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35789 Support --no-smp and --no-acpi for NetBSD.
35791 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35792 (NETBSD_AB_NOACPI): Likewise.
35793 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35794 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35796 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35798 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35800 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35801 errors. Call grub_error when needed.
35803 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35805 * commands/search.c (search_fs): Try searching without autoload first.
35806 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35807 filesystem module explicitly for faster booting.
35809 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35811 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35813 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35815 * util/grub.d/30_os-prober.in: Disable os-prober if
35816 `GRUB_DISABLE_OS_PROBER' was set to true.
35818 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35820 * partmap/pc.c: Rename to ...
35821 * partmap/msdos.c: ... this. Update all users.
35822 (grub_pc_partition_map): Rename to ...
35823 (grub_msdos_partition_map): ... this. Update all users.
35825 * parttool/pcpart.c: Rename to ...
35826 * parttool/msdospart.c: ... this. Update all users.
35828 * include/grub/pc_partition.h: Rename to ...
35829 * include/grub/msdos_partition.h: ... this. Update all users.
35830 (grub_pc_partition_bsd_entry): Rename to ...
35831 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35832 (grub_pc_partition_disk_label): Rename to ...
35833 (grub_msdos_partition_disk_label): ... this. Update all users.
35834 (grub_pc_partition_entry): Rename to ...
35835 (grub_msdos_partition_entry): ... this. Update all users.
35836 (grub_pc_partition_mbr): Rename to ...
35837 (grub_msdos_partition_mbr): ... this. Update all users.
35838 (grub_pc_partition): Rename to ...
35839 (grub_msdos_partition): ... this. Update all users.
35840 (grub_pc_partition_is_empty): Rename to ...
35841 (grub_msdos_partition_is_empty): ... this. Update all users.
35842 (grub_pc_partition_is_extended): Rename to ...
35843 (grub_msdos_partition_is_extended): ... this. Update all users.
35844 (grub_pc_partition_is_bsd): Rename to ...
35845 (grub_msdos_partition_is_bsd): ... this. Update all users.
35847 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35848 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35849 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35850 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35851 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35852 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35853 (gpt_mod_LDFLAGS): Rename to ...
35854 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35855 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35856 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35857 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35858 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35859 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35860 (part_gpt_mod_LDFLAGS): ... this.
35861 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35862 `pcpart.mod' to `msdospart.mod'.
35863 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35865 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35866 (msdospart_mod_LDFLAGS): ... this.
35868 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35870 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35871 (openbsd_opts): Likewise.
35872 (netbsd_opts): Likewise.
35873 (freebsd_flags): Added 0 terminator.
35874 (openbsd_flags): Likewise.
35875 (netbsd_flags): Likewise.
35876 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35877 (grub_cmd_freebsd): Transformed into extended command.
35878 (grub_cmd_openbsd): Likewise.
35879 (grub_cmd_netbsd): Likewise.
35880 (cmd_freebsd): Changed type to grub_extcmd_t.
35881 (cmd_openbsd): Likewise.
35882 (cmd_netbsd): Likewise.
35883 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35884 grub_cmd_openbsd as extended commands.
35885 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35886 cmd_netbsd and cmd_openbsd
35888 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35890 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35892 2009-08-21 Pavel Roskin <proski@gnu.org>
35894 * Makefile.in (install-local): When checking if a file is in the
35895 build directory, use "test -e" to detect symlinks.
35897 * Makefile.in (install-local): Remove all files in
35898 $(DESTDIR)$(pkglibdir) before installing new files there.
35900 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35902 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35905 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35907 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35908 explicitly specified by the user.
35910 2009-08-18 Pavel Roskin <proski@gnu.org>
35912 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
35913 grub_uint8_t pointer for data.
35914 * include/grub/fbutil.h (struct grub_video_fbblit_info):
35916 * video/fb/fbutil.c: Remove unnecessary casts.
35918 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35922 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
35923 (grub_vbe_set_video_mode): Save active mode info
35924 only after setting the mode.
35925 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
35928 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35930 Rename variables for clarity.
35932 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
35933 (active_vbe_mode_info): ... this. All users updated.
35934 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
35936 (initial_mode): Rename to ...
35937 (initial_vbe_mode): ... this. All users updated.
35938 (mode_in_use): Rename to ..
35939 (vbe_mode_in_use): ... this. All users updated.
35940 (mode_list): Rename to ..
35941 (vbe_mode_list): ... this. All users updated.
35942 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
35943 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
35944 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
35945 'mode_list_size' to 'vbe_mode_list_size'.
35946 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
35947 'best_mode_info' to 'best_vbe_mode_info' and
35948 'best_mode' to 'best_vbe_mode'
35950 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35952 Remove duplicate grub_video_fb_get_video_ptr.
35954 * include/grub/fbutil.h (get_data_ptr): Rename to ...
35955 (grub_video_fb_get_video_ptr): ... this.
35956 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
35957 * video/fb/fbutil.c: Add comment about addressing.
35958 (get_data_ptr): Rename to ...
35959 (grub_video_fb_get_video_ptr): ... this. All users updated.
35960 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
35962 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35964 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
35965 grub_dprintf() that was just added.
35967 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35969 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
35970 (DEFAULT_VIDEO_MODE): Remove macros.
35971 (grub_linux_boot): Remove assumption that Linux has FB support,
35972 and use "text" as default video mode.
35974 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
35976 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
35978 * fs/fat.c (grub_fat_read_data): Likewise.
35980 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35982 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
35984 (grub_module): Likewise.
35986 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35988 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
35989 mbi->cmdline but free playground.
35991 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35993 Handle group offset on UFS1.
35995 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
35996 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
35998 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36000 Split ufs.mod into ufs1.mod and ufs2.mod.
36002 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36003 (grub_fstest_SOURCES): Likewise.
36004 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36005 (ufs_mod_SOURCES): Remove.
36006 (ufs_mod_CFLAGS): Likewise.
36007 (ufs_mod_LDFLAGS): Likewise.
36008 (ufs1_mod_SOURCES): New variable.
36009 (ufs1_mod_CFLAGS): Likewise.
36010 (ufs1_mod_LDFLAGS): Likewise.
36011 (ufs2_mod_SOURCES): New variable.
36012 (ufs2_mod_CFLAGS): Likewise.
36013 (ufs2_mod_LDFLAGS): Likewise.
36014 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36015 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36017 (grub_emu_SOURCES): Likewise.
36018 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36019 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36020 (grub_setup_SOURCES): Likewise.
36021 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36022 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36023 (grub_setup_SOURCES): Likewise.
36024 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36026 * fs/ufs2.c: New file.
36027 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36029 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36033 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36034 subsystem at the end.
36035 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36036 (video_fb_mod_SOURCES): New variable.
36037 (video_fb_mod_CFLAGS): Likewise.
36038 (video_fb_mod_LDFLAGS): Likewise.
36039 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36040 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36041 * video/i386/pc/vbeblit.c: Moved from here ...
36042 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36043 * video/i386/pc/vbefill.c: Moved from here ...
36044 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36045 * video/i386/pc/vbeutil.c: Moved from here ...
36046 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36047 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36048 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36049 * include/grub/i386/pc/vbefill.h: Moved from here ...
36050 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36051 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36052 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36053 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36054 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36055 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36056 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36057 (grub_video_adapter): Added 'get_info_and_fini'.
36058 (grub_video_get_info_and_fini): New prototype.
36059 (grub_video_set_mode): make modestring const char *.
36060 * loader/i386/linux.c (grub_linux_setup_video): Use
36061 grub_video_get_info_and_fini.
36062 (grub_linux_boot): Move modesetting just before booting.
36063 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36064 grub_video_get_info_and_fini.
36065 * video/i386/pc/vbe.c: Moved framebuffer part ...
36066 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36067 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36068 grub_video_fbstd_colors and grub_video_fb_set_palette.
36069 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36070 grub_video_fb_init.
36071 (grub_video_vbe_fini): Use grub_video_fb_fini.
36072 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36073 render_target and use grub_video_fb_set_active_render_target and
36074 grub_video_fb_set_palette.
36075 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36076 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36077 (grub_video_vbe_adapter): Use framebuffer.
36078 * video/video.c (grub_video_get_info_and_fini): New function.
36079 (grub_video_set_mode): Make modestring const char *.
36080 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36081 values are already initialised.
36083 2009-08-14 Pavel Roskin <proski@gnu.org>
36085 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36087 * boot/i386/pc/diskboot.S: Likewise.
36088 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36089 sectors allow compilation on MacOSX.
36090 * conf/i386-pc.rmk: Enable unconditional compilation of
36093 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36095 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36096 * util/grub.d/00_header.in: Enter interruptible sleep if
36097 GRUB_HIDDEN_TIMEOUT is set.
36099 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36101 * include/grub/symbol.h: Add the LOCAL macro.
36102 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36103 starting with "L_".
36105 2009-08-13 Pavel Roskin <proski@gnu.org>
36107 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36108 any modern compilers we support.
36110 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36111 Use local labels starting with "L_" so that Apple assembler
36112 knows they are local.
36114 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36116 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36117 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36118 (bsd_kernel_types): ... this enum.
36120 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36121 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36122 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36124 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36125 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36126 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36129 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36131 * util/grub-dumpdevtree: Moved from here ...
36132 * util/i386/efi/grub-dumpdevtree: ... to here.
36133 (hexify): New function. Converts a string to its hex version.
36134 Generate hex versions of "efi" and "device-properties" by calling
36135 hexify() on the ASCII strings rather than by hardcoding numbers.
36137 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36139 * fs/jfs.c: Update copyright year.
36141 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36143 * util/grub.d/00_header.in: Fix a comment.
36144 * util/grub.d/10_linux.in: Likewise.
36145 * util/grub.d/10_windows.in: Likewise.
36146 * util/grub.d/10_hurd.in: Likewise.
36148 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36150 * util/grub-mkconfig.in: Allow the user to specify the used font
36153 2009-08-08 Pavel Roskin <proski@gnu.org>
36155 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36156 available, xfs.mod needs it now.
36158 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36159 the "g" modifier in sed when the intention is to strip something
36160 once. This fixes comparison of kernels with multiple dashes.
36162 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36163 on it. Add missing space before closing bracket. Fix
36164 misleading formatting.
36166 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36168 * docs/grub.texi: Major overhaul. Remove all sections that are
36169 specific to GRUB Legacy, or mostly composed of Legacy-specific
36172 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36174 * docs/version.texi: New file. Provides version information for
36177 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36179 * docs/grub.texi: Update CVS information to SVN.
36180 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36182 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36184 * util/grub-mkconfig.in: Remove a wrong `fi'.
36186 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36188 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36189 (grub_jfs_uuid): New function.
36190 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36192 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36194 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36196 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36197 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36199 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36201 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36202 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36205 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36206 not just "vmlinu[zx]".
36207 Moved from here ...
36208 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36211 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36212 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36215 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36217 * util/grub.d/10_freebsd.in: Use an absolute device path for
36218 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36220 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36222 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36223 handling of multiple abstraction modules.
36225 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36227 Fix a bug resulting in black screen when loading Linux using a
36230 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36233 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36234 (grub_vbe_bios_getset_dac_palette_width): New function.
36235 (grub_vbe_bios_get_dac_palette_width)
36236 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36237 grub_vbe_bios_getset_dac_palette_width()).
36239 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36240 check for return status.
36241 (grub_vbe_get_video_mode_info): When getting information for a packed
36242 mode (<= 8 bpp), obtain DAC palette width using
36243 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36244 {red,green,blue}_mark_size.
36246 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36248 * commands/search.c (options): Fix help output to match actual code.
36250 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36252 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36255 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36257 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36258 on XFS or ReiserFS.
36260 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36262 Support Apple partition map with sector size different from 512 bytes.
36264 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36265 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36266 and 'apart.partmap_size'.
36268 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36269 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36273 * commands/i386/cpuid.c (options): New variable.
36274 (grub_cmd_cpuid): Return real error.
36275 (GRUB_MOD_INIT(cpuid)): Declare options.
36277 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36279 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36282 2009-07-31 Bean <bean123ch@gmail.com>
36284 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36286 (grub_fshelp_node): Move inode field to the end.
36287 (grub_xfs_data): Remove inode field.
36288 (grub_xfs_inode_block): Calculate inode size using sblock.
36289 (grub_xfs_inode_offset): Likewise.
36290 (grub_xfs_read_inode): Calculate inode size using sblock.
36291 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36292 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36293 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36294 to match inode size.
36295 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36296 not accessible when data is null.
36297 (grub_xfs_open): Likewise.
36299 2009-07-31 Bean <bean123ch@gmail.com>
36301 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36302 Don't change pv->disk if it's already set.
36304 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36305 (grub_raid_register): ... here.
36306 (grub_raid_rescan): Removed.
36308 * include/grub/raid.h (grub_raid_rescan): Removed.
36310 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36311 (fstest): Replace grub_raid_rescan with module fini function followed
36314 * util/grub-probe.c: Add include file <grub/raid.h>.
36315 (probe_raid_level): New function.
36316 (probe): Detect abstraction by walking the disk device, support two
36317 level of abstraction (LVM on RAID) when detecting partition map.
36319 2009-07-31 Pavel Roskin <proski@gnu.org>
36321 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36322 to grub_zalloc(), it was erroneous.
36323 Reported by Bean <bean123ch@gmail.com>
36325 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36327 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36328 embedding zone, not only the first one.
36330 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36332 * term/gfxterm.c (clear_char): New function.
36333 (grub_virtual_screen_setup): Use clear_char.
36334 (scroll_up): Likewise.
36335 (grub_virtual_screen_cls): Likewise.
36337 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36339 * util/deviceiter.c (get_acceleraid_disk_name): New static
36341 (grub_util_iterate_devices): Handle Accelraid devices.
36342 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36344 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36346 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36347 separator for the suggested gfxpayload string (';' collides with the
36348 parser and needs escaping).
36350 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36352 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36353 Clear direction flag before jumping to OS.
36354 (grub_multiboot2_real_boot): Likewise.
36356 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36358 * util/i386/pc/grub-install: Fix parsing of --disk-module
36361 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36363 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36366 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36368 * util/grub-mkconfig.in (package_version): New variable.
36369 Use it do display the version.
36371 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36373 * kern/file.c (grub_file_open): Revert to previous check with
36376 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36378 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36379 from help line. It's out of sync with code.
36381 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36383 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36384 entries on failed boot.
36386 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36388 * kern/file.c (grub_file_open): Fix an error check.
36390 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36392 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36393 partition map couldn't be identified.
36395 2009-07-23 Pavel Roskin <proski@gnu.org>
36397 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36398 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36399 case of little endian words becomes just an optimization.
36400 Respect const modifier.
36401 (md5_final): Use code that doesn't depend on endianness.
36403 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36404 to avoid loss of upper bits if align is unsigned and shorter
36407 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36409 UUID support for UFS
36411 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36412 (grub_ufs_uuid): New function.
36413 (grub_ufs_fs): add .uuid
36415 2009-07-21 Pavel Roskin <proski@gnu.org>
36417 * kern/dl.c (grub_dl_check_header): Make static.
36419 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36421 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36422 add drivemap for Vista. It breaks Windows 7.
36424 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36426 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36429 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36433 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36434 (grub_fstest_SOURCES): Likewise.
36435 (pkglib_MODULES): Add befs.mod.
36436 (befs_mod_SOURCES): New variable.
36437 (befs_mod_CFLAGS): Likewise.
36438 (befs_mod_LDFLAGS): Likewise.
36439 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36440 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36441 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36442 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36443 (grub_setup_SOURCES): Likewise.
36444 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36445 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36446 (grub_setup_SOURCES): Likewise.
36447 * fs/befs.c: New file.
36448 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36449 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36450 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36451 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36452 (B_KEY_INDEX_ALIGN): New declaration.
36453 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36454 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36455 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36456 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36457 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36458 (grub_afs_mount) [MODE_BFS]: Likewise.
36459 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36460 (grub_afs_fs): Use GRUB_AFS_FSNAME
36461 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36462 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36463 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36464 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36466 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36468 * util/getroot.c (find_root_device): Add support for MacOSX.
36469 * util/hostdisk.c: Likewise.
36471 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36473 * font/font.c (find_glyph): Check whether a font is present to avoid
36474 segmentation fault.
36476 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36478 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36480 2009-07-20 Pavel Roskin <proski@gnu.org>
36482 * configure.ac: Trim excessively wordy excuses.
36484 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36486 Add symlink, mtime and label support to AtheFS.
36488 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36489 (grub_afs_iterate_dir): Handle symlinks.
36490 (grub_afs_open): Use grub_afs_read_symlink.
36491 (grub_afs_dir): Likewise.
36493 (grub_afs_label): New function.
36494 (grub_afs_fs): Add grub_afs_label.
36495 (grub_afs_read_symlink): New function.
36497 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36499 Fix AtheFS support.
36501 * fs/afs.c: Fix comments style.
36502 (grub_afs_blockrun): Declare as packed.
36503 (grub_afs_datastream): Likewise.
36504 (grub_afs_bnode): Likewise.
36505 (grub_afs_btree): Likewise.
36506 (grub_afs_sblock): Likewise.
36507 Declare `name' as char.
36508 (grub_afs_inode): Declare as packed.
36509 Change void *vnode to grub_uint32_t unused.
36510 (grub_afs_iterate_dir): Check that key_size is positive.
36511 (grub_afs_mount): Don't read superblock twice.
36512 (grub_afs_dir): Don't free node in case of error,
36513 grub_fshelp_find_file already handles this.
36514 (grub_afs_open): Likewise.
36516 2009-07-19 Pavel Roskin <proski@gnu.org>
36518 * Makefile.in: Remove LIBLZO and enable_lzo.
36519 * conf/i386-pc.rmk: Remove lzo support.
36520 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36521 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36523 * kern/i386/pc/lzo1x.S: Remove.
36524 * kern/i386/pc/startup.S: Remove lzo support.
36525 * util/i386/pc/grub-mkimage.c: Likewise.
36527 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36529 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36530 * fs/xfs.c (grub_xfs_dir): Likewise.
36531 * fs/afs.c (grub_afs_dir): Likewise.
36532 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36533 (grub_iso9660_open): Likewise.
36534 * fs/jfs.c (grub_jfs_open): Likewise.
36535 * fs/ext2.c (grub_ext2_dir): Likewise.
36536 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36537 * script/sh/lexer.c (grub_script_yylex): Likewise.
36539 2009-07-16 Pavel Roskin <proski@gnu.org>
36541 * configure.ac: Never add "-c" to CFLAGS.
36543 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36545 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36546 grub_cv_cc_efiemu should be used.
36548 * configure.ac: Typo fixes.
36550 * kern/mm.c (grub_zalloc): New function.
36551 (grub_debug_zalloc): Likewise.
36552 * include/grub/mm.h: Declare grub_zalloc() and
36553 grub_debug_zalloc().
36554 * util/misc.c (grub_zalloc): New function.
36555 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36556 instead of grub_malloc(), remove unneeded initializations.
36557 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36558 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36559 * commands/parttool.c (grub_cmd_parttool): Likewise.
36560 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36561 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36562 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36563 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36564 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36565 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36566 (grub_cmd_efiemu_pnvram): Likewise.
36567 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36568 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36569 (grub_iso9660_iterate_dir): Likewise.
36570 * fs/jfs.c (grub_jfs_opendir): Likewise.
36571 * fs/ntfs.c (list_file): Likewise.
36572 (grub_ntfs_mount): Likewise.
36573 * kern/disk.c (grub_disk_open): Likewise.
36574 * kern/dl.c (grub_dl_load_core): Likewise.
36575 * kern/elf.c (grub_elf_file): Likewise.
36576 * kern/env.c (grub_env_context_open): Likewise.
36577 (grub_env_set): Likewise.
36578 (grub_env_set_data_slot): Likewise.
36579 * kern/file.c (grub_file_open): Likewise.
36580 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36581 * loader/i386/multiboot.c (grub_module): Likewise.
36582 * loader/xnu.c (grub_xnu_create_key): Likewise.
36583 (grub_xnu_create_value): Likewise.
36584 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36585 (read_config_file): Likewise.
36586 * normal/menu_entry.c (make_screen): Likewise.
36587 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36588 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36589 * script/sh/script.c (grub_script_parse): Likewise.
36590 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36591 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36592 * video/readers/png.c (grub_png_output_byte): Likewise.
36593 (grub_video_reader_png): Likewise.
36595 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36597 Enable all targets that can be built by default
36599 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36600 grub-mkfont and grub-fstest if they can be built
36602 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36604 Fix hang and segmentation fault in grub-emu-usb
36606 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36607 * util/usb.c (grub_libusb_devices): likewise
36608 (grub_libusb_init): rename to ...
36609 (GRUB_MOD_INIT (libusb)):...this
36610 (grub_libusb_fini): rename to ..
36611 (GRUB_MOD_FINI (libusb)):...this
36612 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36613 * include/grub/disk.h (grub_raid_init): removed, it's useless
36614 (grub_raid_fini): likewise
36615 (grub_lvm_init): likewise
36616 (grub_lvm_fini): likewise
36617 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36620 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36624 * Makefile.in (LIBUSB): new macro
36625 * genmk.rb (Utility/print_tail): new method
36626 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36627 (top level): call util.print_tail at the end.
36629 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36631 Make FreeBSD accept zpool.cache
36633 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36634 type is /boot/zfs/zpool.cache
36636 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36640 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36641 correct wrong typedef
36642 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36644 2009-07-15 Pavel Roskin <proski@gnu.org>
36646 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36647 * kern/disk.c (struct grub_disk_cache): Likewise.
36649 * commands/probe.c (options): Typo fix.
36651 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36652 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36654 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36656 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36657 the end of "Error" to make the message more readable.
36659 * boot/i386/pc/boot.S (kernel_segment): Remove.
36660 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36663 * boot/i386/pc/boot.S (boot_version): Remove.
36664 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36667 * include/grub/i386/pc/boot.h: Sort all offsets.
36668 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36669 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36670 * boot/i386/pc/boot.S: Assert location of every offset listed in
36671 include/grub/i386/pc/boot.h.
36673 2009-07-13 Pavel Roskin <proski@gnu.org>
36675 * include/grub/i386/coreboot/machine.h: Rename
36676 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36677 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36678 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36680 * kern/dl.c: Force native word size to suppress warnings when
36681 compiling grub-emu.
36683 * kern/device.c (grub_device_iterate): Change struct part_ent to
36684 hold the name, not a pointer to it. Use one grub_malloc() per
36685 partition, not two. Free partition_name if grub_malloc() fails.
36686 Set ents to NULL only before grub_partition_iterate() is called.
36688 2009-07-11 Bean <bean123ch@gmail.com>
36690 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36693 2009-07-10 Bean <bean123ch@gmail.com>
36694 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36696 * kern/ieee1275/openfw.c (grub_children_iterate)
36697 (grub_devalias_iterate): Fix size evaluation for property or path
36698 strings, which was broken since r2132.
36700 2009-07-07 Pavel Roskin <proski@gnu.org>
36702 * commands/search.c (search_file): Merge into ...
36703 (search_fs): ... this. Accept search type as argument.
36704 (grub_cmd_search): Pass search type to search_fs().
36706 * include/grub/util/console.h: New file.
36707 * util/console.c: Use it instead of grub/machine/console.h.
36708 * util/grub-emu.c: Likewise.
36710 * lib/arg.c (find_long_option): Remove.
36711 (find_long): Add `len' argument, make `s' const char *.
36712 (grub_arg_parse): Parse long options in place, not in a
36715 2009-07-06 Pavel Roskin <proski@gnu.org>
36717 * commands/search.c (search_fs): Fix potential NULL pointer
36720 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36723 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36725 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36728 2009-07-05 Pavel Roskin <proski@gnu.org>
36730 * include/grub/i386/linux.h (struct linux_kernel_params):
36731 Restore padding3, it's still needed.
36733 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36735 * util/osdetect.lua: Likewise.
36737 2009-07-05 Bean <bean123ch@gmail.com>
36739 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36741 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36742 (grub_lua_getenv): Likewise.
36743 (grub_lua_setenv): Likewise.
36744 (save_errno): New function.
36745 (push_result): Likewise.
36746 (grub_lua_enum_device): Likewise.
36747 (grub_lua_enum_file): Likewise.
36748 (grub_lua_file_open): Likewise.
36749 (grub_lua_file_close): Likewise.
36750 (grub_lua_file_seek): Likewise.
36751 (grub_lua_file_read): Likewise.
36752 (grub_lua_file_getline): Likewise.
36753 (grub_lua_file_getsize): Likewise.
36754 (grub_lua_file_getpos): Likewise.
36755 (grub_lua_file_eof): Likewise.
36756 (grub_lua_file_exist): Likewise.
36757 (grub_lua_add_menu): Likewise.
36759 * script/lua/grub_lua.h (isupper): New inline function.
36760 (islower): Likewise.
36761 (ispunct): Likewise.
36762 (isxdigit): Likewise.
36763 (strcspn): Change to normal function.
36764 (strpbkr): New function declaration.
36765 (memchr): Likewise.
36767 * script/lua/grub_main.c (scan_str): New function.
36768 (strcspn): Likewise.
36769 (strpbrk): Likewise.
36770 (memchr): Likewise.
36772 * script/lua/linit.c (lualibs): Enable the string library.
36774 * util/osdetect.lua: New file.
36776 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36778 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36779 `capabilities' member.
36781 2009-07-02 Pavel Roskin <proski@gnu.org>
36783 * genparttoollist.sh: Add missing newline at the end.
36785 2009-07-01 Pavel Roskin <proski@gnu.org>
36787 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36789 * util/hostdisk.c (open_device): Remove `const' from
36790 `sysctl_size', as sysctlbyname() can change it (in this case it
36791 doesn't actually happen).
36793 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36794 using signed long int constants.
36796 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36797 constant to avoid a warning on FreeBSD.
36799 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36802 * Makefile.in: Install include/grub/machine symlink.
36804 * Makefile.in: When installing symlinks, use "cp -fR", which
36805 works on FreeBSD and MacOSX.
36806 From Yves Blusseau <cl7m42e02@sneakemail.com>
36808 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36809 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36811 * util/misc.c: Move grub_reboot() and grub_halt() ...
36812 * util/grub-emu.c: ... here. Make main_env static.
36813 * include/grub/util/misc.h: Remove main_env.
36815 * kern/mm.c: Use correct format to print size_t.
36817 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36818 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36819 * kern/powerpc/dl.c: Likewise.
36820 * kern/sparc64/dl.c: Likewise.
36821 * kern/x86_64/dl.c: Likewise.
36823 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36825 Fix grub-emu build on sparc64-ieee1275.
36827 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36830 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36832 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36833 (grub_reboot, grub_halt): New functions.
36835 * util/i386/pc/misc.c: Delete. Update all users.
36836 * util/sparc64/ieee1275/misc.c: Likewise.
36837 * util/powerpc/ieee1275/misc.c: Likewise.
36839 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36841 * conf/i386.rmk (setjmp_mod_SOURCES)
36842 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36843 * conf/common.rmk (setjmp_mod_SOURCES)
36844 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36845 to use $(target_cpu).
36846 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36847 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36848 * conf/powerpc-ieee1275.rmk: Likewise.
36849 * conf/sparc64-ieee1275.rmk: Likewise.
36851 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36852 $(target_cpu) for kern/$(target_cpu)/dl.c.
36853 * conf/i386-efi.rmk: Likewise.
36854 * conf/i386-ieee1275.rmk: Likewise.
36855 * conf/x86_64-efi.rmk: Likewise.
36856 * conf/i386-coreboot.rmk: Likewise.
36857 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36858 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36859 kern/$(target_cpu)/cache.S.
36860 * conf/sparc64-ieee1275.rmk: Likewise.
36862 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36864 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36865 type to `grub_uint8_t', and adjust `padding9' accordingly.
36867 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36869 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36871 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36872 assembly in final jump, using register constraints.
36874 (grub_linux_boot): For text mode, initialize `have_vga' using
36875 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36877 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36878 right before the final jump.
36880 Set `video_mode' to 0x3.
36882 Document initialization of `video_page', `video_mode' and
36885 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36887 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36888 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
36889 and set GRUB_LINUX_FLAG_QUIET appropriately.
36891 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36893 Fix build on Debian / sparc.
36895 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36897 2009-06-28 Pavel Roskin <proski@gnu.org>
36899 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36902 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36904 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36906 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36909 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36913 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
36914 file can't be opened. grub_file_open() is already supposed to set
36915 grub_errno / grub_errmsg appropriately.
36916 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36918 2009-06-27 Pavel Roskin <proski@gnu.org>
36919 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36921 * include/grub/dl.h: Include grub/elf.h.
36922 (struct grub_dl): Add symtab field.
36923 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
36924 GRUB_MODULES_MACHINE_READONLY.
36925 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
36926 of the header for read-only modules.
36927 (grub_dl_unload): Free mod->symtab for read-only modules.
36928 * kern/i386/dl.c: Use mod->symtab.
36929 * kern/powerpc/dl.c: Likewise.
36930 * kern/sparc64/dl.c: Likewise.
36931 * kern/x86_64/dl.c: Likewise.
36933 * conf/i386-qemu.rmk: New file.
36934 * kern/i386/qemu/startup.S: Likewise.
36935 * kern/i386/qemu/mmap.c: Likewise.
36936 * boot/i386/qemu/boot.S: Likewise.
36937 * include/grub/i386/qemu/time.h: Likewise.
36938 * include/grub/i386/qemu/serial.h: Likewise.
36939 * include/grub/i386/qemu/kernel.h: Likewise.
36940 * include/grub/i386/qemu/console.h: Likewise.
36941 * include/grub/i386/qemu/boot.h: Likewise.
36942 * include/grub/i386/qemu/init.h: Likewise.
36943 * include/grub/i386/qemu/machine.h: Likewise.
36944 * include/grub/i386/qemu/loader.h: Likewise.
36945 * include/grub/i386/qemu/memory.h: Likewise.
36947 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
36948 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
36949 [qemu] (pkglib_IMAGES): Add `boot.img'.
36950 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
36951 [qemu] (boot_img_FORMAT): New variables.
36952 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
36953 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
36954 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
36955 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
36956 [qemu] (kernel_img_FORMAT): New variables.
36958 * configure.ac: Recognise `i386-qemu'.
36960 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
36961 (for no compression).
36962 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
36963 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
36964 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
36965 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
36968 2009-06-27 Pavel Roskin <proski@gnu.org>
36970 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
36972 * efiemu/prepare32.c: Likewise.
36973 * efiemu/prepare64.c: Likewise.
36975 2009-06-26 Pavel Roskin <proski@gnu.org>
36977 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
36978 * include/grub/elf.h: Define symbols without "32" or "64" based
36979 on GRUB_TARGET_WORDSIZE.
36980 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
36981 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
36983 * efiemu/loadcore64.c: Likewise.
36984 * loader/i386/bsd32.c: Likewise.
36985 * loader/i386/bsd64.c: Likewise.
36986 * kern/dl.c: Remove own ELF definitions.
36987 * util/i386/efi/grub-mkimage.c: Likewise.
36989 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
36991 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
36992 segment 0x0 unconditionally, because the reference generated by
36993 GAS is an absolute address.
36995 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36997 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
36998 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37000 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37002 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37003 indexes. Check for -f explicitly.
37004 (search_file): Improve error message.
37005 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37007 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37009 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37010 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37012 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37014 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37015 * conf/i386-ieee1275.rmk: Likewise.
37016 * conf/i386-coreboot.rmk: Likewise.
37018 * kern/i386/pc/startup.S (grub_stop): Remove function.
37019 * kern/i386/ieee1275/startup.S: Likewise.
37020 * kern/i386/coreboot/startup.S: Likewise.
37021 * kern/i386/misc.S (grub_stop): New function.
37023 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37025 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37026 * kern/i386/realmode.S (real_to_prot): ... to here.
37028 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37030 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37032 (kernel_elf_SOURCES): Rename to ...
37033 (kernel_img_SOURCES): ... this.
37034 (kernel_elf_HEADERS): Rename to ...
37035 (kernel_img_HEADERS): ... this. Update all users.
37036 (kernel_elf_ASFLAGS): Rename to ...
37037 (kernel_img_ASFLAGS): ... this.
37038 (kernel_elf_CFLAGS): Rename to ...
37039 (kernel_img_CFLAGS): ... this.
37040 (kernel_elf_LDFLAGS): Rename to ...
37041 (kernel_img_LDFLAGS): ... this.
37042 * conf/i386-coreboot.rmk: Likewise.
37043 * conf/powerpc-ieee1275.rmk: Likewise.
37045 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37048 2009-06-21 Pavel Roskin <proski@gnu.org>
37050 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37051 to match nested functions.
37052 * loader/sparc64/ieee1275/linux.c: Likewise.
37054 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37056 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37058 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37059 all i386 platforms.
37061 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37063 Fix asm file handling on ELF, and remove workarounds.
37065 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37066 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37067 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37068 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37070 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37072 Load BSD ELF modules
37074 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37075 and loader/i386/bsd64.c
37076 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37077 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37078 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37079 (grub_freebsd_load_elfmodule32): New declaration
37080 (grub_freebsd_load_elfmoduleobj64): Likewise
37081 (grub_freebsd_load_elf_meta32): Likewise
37082 (grub_freebsd_load_elf_meta64): Likewise
37083 (grub_freebsd_add_meta): Likewise
37084 (grub_freebsd_add_meta_module): Likewise
37085 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37086 (grub_freebsd_add_meta_module): Likewise and move module-specific
37087 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37088 (grub_cmd_freebsd): Add elf-kernel specific parts
37089 based on grub_freebsd_add_meta_module
37090 (grub_cmd_freebsd_module): Add type parsing moved from
37091 grub_freebsd_add_meta_module
37092 (grub_cmd_freebsd_module_elf): New function
37093 (cmd_freebsd_module_elf): New variable
37094 (GRUB_MOD_INIT): Register freebsd_module_elf
37095 * loader/i386/bsd32.c: New file
37096 * loader/i386/bsd64.c: Likewise
37097 * loader/i386/bsdXX.c: Likewise
37098 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37099 (grub_elf64_load): Likewise
37100 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37102 (grub_elf64_load_hook_t): Likewise
37104 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37106 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37108 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37109 don't write a menu entry for recovery mode.
37111 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37113 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37114 after it's no longer needed.
37116 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37118 * include/grub/i386/loader.h (grub_linux_prot_size)
37119 (grub_linux_tmp_addr, grub_linux_real_addr)
37120 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37121 GRUB_MACHINE_PCBIOS.
37122 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37123 common grub_util_info() call to ...
37124 (generate_image): ... here.
37125 Fix use of uninitialized memory, comparison of signed with
37126 unsigned integers and memory leak.
37127 Remove bogus module address message.
37129 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37131 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37133 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37135 2009-06-19 Pavel Roskin <proski@gnu.org>
37137 * configure.ac: Remove stray AC_MSG_CHECKING.
37139 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37141 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37143 2009-06-18 Pavel Roskin <proski@gnu.org>
37145 * conf/common.rmk: Add fs_file.mod.
37146 * disk/fs_file.c: New file.
37147 * include/grub/disk.h (enum grub_disk_dev_id): Add
37148 GRUB_DISK_DEVICE_FILE_ID.
37150 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37152 Fix build with Apple's toolchain. Part 2
37154 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37157 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37159 Fix build with Apple's toolchain. Part 1
37161 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37163 * configure.ac: remove a leftover AC_MSG_RESULT
37164 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37167 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37171 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37172 (decomp_block): initialize ch
37173 use grub_memcpy instead of memcpy
37175 2009-06-17 Pavel Roskin <proski@gnu.org>
37177 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37178 version, use declarations needed to use vga_text as the startup
37181 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37182 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37184 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37185 and grub_at_keyboard_fini(), it's done on module load and
37188 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37190 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37191 file can't be found.
37192 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37194 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37196 Fix newline handling
37198 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37199 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37200 (grub_script_yylex): don't segfault on unterminated script
37201 newline terminates command and variable
37203 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37205 avoid double grub_adjust_range call. Bug reported by David Simner
37207 * kern/disk.c (grub_disk_write): change to raw disk access before
37210 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37212 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37213 spaces, for the benefit of help2man.
37214 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37216 2009-06-16 Pavel Roskin <proski@gnu.org>
37218 * kern/i386/halt.c: Include grub/machine/init.h.
37219 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37221 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37223 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37224 drivemap menuentry.
37226 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37228 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37231 2009-06-16 Pavel Roskin <proski@gnu.org>
37233 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37234 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37235 save %dx, we only need %dl and we never change it.
37236 * boot/i386/pc/cdboot.S: Don't set the root drive.
37237 * boot/i386/pc/pxeboot.S: Likewise.
37238 * include/grub/i386/pc/boot.h: Remove
37239 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37240 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37241 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37242 * kern/i386/pc/init.c (make_install_device): Remove references
37243 to grub_root_drive.
37244 * kern/i386/pc/startup.S: Likewise.
37245 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37247 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37251 * commands/xnu_uuid.c: new file
37252 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37253 (xnu_uuid_mod_SOURCES): new variable
37254 (xnu_uuid_mod_CFLAGS): likewise
37255 (xnu_uuid_mod_LDFLAGS): likewise
37256 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37257 * conf/i386-ieee1275.rmk: likewise
37258 * conf/i386-pc.rmk: likewise
37259 * conf/powerpc-ieee1275.rmk: likewise
37260 * conf/sparc64-ieee1275.rmk: likewise
37261 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37263 2009-06-16 Pavel Roskin <proski@gnu.org>
37265 * configure.ac: Avoid '==' in test command, it's not portable.
37267 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37271 * commands/probe.c: new file
37272 * conf/common.rmk (pkglib_MODULES): add probe.mod
37273 (probe_mod_SOURCES): new variable
37274 (probe_mod_CFLAGS): likewise
37275 (probe_mod_LDFLAGS): likewise
37276 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37277 * conf/i386-ieee1275.rmk: likewise
37278 * conf/i386-pc.rmk: likewise
37279 * conf/powerpc-ieee1275.rmk: likewise
37280 * conf/sparc64-ieee1275.rmk: likewise
37282 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37284 Fix handling of string like \"hello\" and "a
37287 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37288 (grub_script_yylex): fix parsing of quoting, escaping and newline
37290 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37292 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37295 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37297 * util/grub-mkconfig.in: Fix parsing of --output option.
37299 2009-06-12 Pavel Roskin <proski@gnu.org>
37301 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37302 genmk.rb don't need to be generated or installed.
37304 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37306 * commands/i386/pc/drivemap_int13h.S: add more comments
37308 2009-06-11 Pavel Roskin <proski@gnu.org>
37310 * Makefile.in (uninstall): Uninstall manuals.
37312 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37313 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37314 and update-grub_lib in two places.
37315 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37317 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37318 a compiler warning.
37320 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37321 `entry_lo' to fix variable shadowing.
37323 2009-06-11 Christian Franke <franke@computer.org>
37325 * kern/misc.c (__enable_execute_stack): Add missing return type
37326 to prevent gcc warning.
37328 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37330 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37332 2009-06-11 Pavel Roskin <proski@gnu.org>
37334 * Makefile.in: Don't rely on any scripts being executable.
37335 Always use $(SHELL) to run shell scripts.
37337 * configure.ac: Always define ___main if using -nostdlib. This
37338 fixes tests on Cygwin.
37340 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37344 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37345 is in bytes and not in blocks
37347 2009-06-11 Pavel Roskin <proski@gnu.org>
37349 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37352 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37354 * util/grub.d/30_os-prober.in: Fix a comment. Source
37355 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37356 to set the root device. Place drivemap command in the generated
37359 2009-06-11 Pavel Roskin <proski@gnu.org>
37361 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37362 have long been resolved.
37364 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37366 * util/grub.d/10_linux.in: Capitalise "Linux".
37368 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37370 2009-06-11 Pavel Roskin <proski@gnu.org>
37372 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37373 fix a gcc warning and ensure that the function won't ever exit.
37375 * kern/i386/ieee1275/init.c: Add missing prototype for
37376 grub_stop_floppy().
37378 * loader/ieee1275/multiboot2.c [__i386__]: Include
37379 grub/cpu/multiboot.h.
37381 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37382 casts to short - they are not portable and cause warnings. Fix
37383 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37385 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37389 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37391 (grub_get_root_biosnumber_saved): new variable
37392 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37393 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37394 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37395 %dx after the call if necessary
37396 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37397 (boot_mod_SOURCES): remove
37398 (boot_mod_CFLAGS): remove
37399 (boot_mod_LDFLAGS): remove
37400 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37401 (boot_mod_SOURCES): new variable
37402 (boot_mod_CFLAGS): likewise
37403 (boot_mod_LDFLAGS): likewise
37404 * conf/i386-efi.rmk: likewise
37405 * conf/i386-ieee1275.rmk: likewise
37406 * conf/i386-pc.rmk: likewise
37407 * conf/powerpc-ieee1275.rmk: likewise
37408 * conf/sparc64-ieee1275.rmk: likewise
37409 * conf/x86_64-efi.rmk: likewise
37410 * include/grub/i386/pc/biosnum.h: new file
37411 * lib/i386/pc/biosnum.c: likewise
37412 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37413 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37414 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37416 2009-06-10 Pavel Roskin <proski@gnu.org>
37418 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37419 Use separate variables. Read only the file size at the end, but
37420 not the checksum that we don't use.
37422 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37423 Adjust all callers.
37425 * kern/ieee1275/openfw.c: Remove libc includes.
37426 * kern/ieee1275/cmain.c: Likewise.
37427 * include/grub/ieee1275/ieee1275.h: Likewise.
37429 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37432 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37434 * Makefile.in: Remove all trailing whitespace.
37435 * conf/i386-pc.rmk: Likewise.
37436 * conf/powerpc-ieee1275.rmk: Likewise.
37437 * conf/sparc64-ieee1275.rmk: Likewise.
37438 * docs/grub.texi: Likewise.
37439 * docs/texinfo.tex: Likewise.
37440 * disk/fs_uuid.c: Likewise.
37441 * disk/lvm.c: Likewise.
37442 * disk/scsi.c: Likewise.
37443 * disk/ata.c: Likewise.
37444 * disk/ieee1275/ofdisk.c: Likewise.
37445 * disk/i386/pc/biosdisk.c: Likewise.
37446 * disk/host.c: Likewise.
37447 * disk/raid.c: Likewise.
37448 * disk/efi/efidisk.c: Likewise.
37449 * disk/usbms.c: Likewise.
37450 * disk/memdisk.c: Likewise.
37451 * disk/loopback.c: Likewise.
37452 * kern/powerpc/dl.c: Likewise.
37453 * kern/device.c: Likewise.
37454 * kern/dl.c: Likewise.
37455 * kern/sparc64/dl.c: Likewise.
37456 * kern/ieee1275/ieee1275.c: Likewise.
37457 * kern/term.c: Likewise.
37458 * kern/fs.c: Likewise.
37459 * kern/i386/dl.c: Likewise.
37460 * kern/i386/pc/startup.S: Likewise.
37461 * kern/i386/pc/init.c: Likewise.
37462 * kern/i386/pc/mmap.c: Likewise.
37463 * kern/i386/pc/lzo1x.S: Likewise.
37464 * kern/i386/ieee1275/init.c: Likewise.
37465 * kern/i386/realmode.S: Likewise.
37466 * kern/i386/tsc.c: Likewise.
37467 * kern/partition.c: Likewise.
37468 * kern/corecmd.c: Likewise.
37469 * kern/file.c: Likewise.
37470 * kern/efi/efi.c: Likewise.
37471 * kern/efi/init.c: Likewise.
37472 * kern/efi/mm.c: Likewise.
37473 * kern/main.c: Likewise.
37474 * kern/err.c: Likewise.
37475 * kern/env.c: Likewise.
37476 * kern/disk.c: Likewise.
37477 * kern/generic/millisleep.c: Likewise.
37478 * kern/generic/rtc_get_time_ms.c: Likewise.
37479 * kern/misc.c: Likewise.
37480 * kern/parser.c: Likewise.
37481 * genmk.rb: Likewise.
37482 * configure.ac: Likewise.
37483 * boot/i386/pc/diskboot.S: Likewise.
37484 * boot/i386/pc/pxeboot.S: Likewise.
37485 * boot/i386/pc/boot.S: Likewise.
37486 * boot/i386/pc/lnxboot.S: Likewise.
37487 * boot/i386/pc/cdboot.S: Likewise.
37488 * parttool/pcpart.c: Likewise.
37489 * video/readers/tga.c: Likewise.
37490 * video/video.c: Likewise.
37491 * video/bitmap.c: Likewise.
37492 * lib/envblk.c: Likewise.
37493 * lib/i386/setjmp.S: Likewise.
37494 * fs/xfs.c: Likewise.
37495 * fs/afs.c: Likewise.
37496 * fs/fat.c: Likewise.
37497 * fs/ntfs.c: Likewise.
37498 * fs/udf.c: Likewise.
37499 * fs/affs.c: Likewise.
37500 * fs/iso9660.c: Likewise.
37501 * fs/hfs.c: Likewise.
37502 * fs/fshelp.c: Likewise.
37503 * fs/ext2.c: Likewise.
37504 * fs/jfs.c: Likewise.
37505 * fs/reiserfs.c: Likewise.
37506 * fs/hfsplus.c: Likewise.
37507 * fs/minix.c: Likewise.
37508 * fs/cpio.c: Likewise.
37509 * fs/sfs.c: Likewise.
37510 * fs/ufs.c: Likewise.
37511 * efiemu/prepare.c: Likewise.
37512 * efiemu/loadcore_common.c: Likewise.
37513 * efiemu/runtime/efiemu.sh: Likewise.
37514 * efiemu/runtime/efiemu.S: Likewise.
37515 * efiemu/runtime/efiemu.c: Likewise.
37516 * efiemu/pnvram.c: Likewise.
37517 * efiemu/main.c: Likewise.
37518 * efiemu/i386/pc/cfgtables.c: Likewise.
37519 * efiemu/i386/loadcore64.c: Likewise.
37520 * efiemu/i386/loadcore32.c: Likewise.
37521 * efiemu/loadcore.c: Likewise.
37522 * efiemu/symbols.c: Likewise.
37523 * efiemu/mm.c: Likewise.
37524 * include/grub/autoefi.h: Likewise.
37525 * include/grub/datetime.h: Likewise.
37526 * include/grub/term.h: Likewise.
37527 * include/grub/hfs.h: Likewise.
37528 * include/grub/lvm.h: Likewise.
37529 * include/grub/i386/tsc.h: Likewise.
37530 * include/grub/i386/linux.h: Likewise.
37531 * include/grub/i386/xnu.h: Likewise.
37532 * include/grub/i386/efiemu.h: Likewise.
37533 * include/grub/i386/pc/biosdisk.h: Likewise.
37534 * include/grub/i386/pc/memory.h: Likewise.
37535 * include/grub/i386/pc/vbe.h: Likewise.
37536 * include/grub/parttool.h: Likewise.
37537 * include/grub/video.h: Likewise.
37538 * include/grub/memory.h: Likewise.
37539 * include/grub/fs.h: Likewise.
37540 * include/grub/partition.h: Likewise.
37541 * include/grub/xnu.h: Likewise.
37542 * include/grub/efi/api.h: Likewise.
37543 * include/grub/efi/pe32.h: Likewise.
37544 * include/grub/efi/memory.h: Likewise.
37545 * include/grub/multiboot.h: Likewise.
37546 * include/grub/usbdesc.h: Likewise.
37547 * include/grub/multiboot2.h: Likewise.
37548 * include/grub/acpi.h: Likewise.
37549 * include/grub/efiemu/efiemu.h: Likewise.
37550 * include/grub/disk.h: Likewise.
37551 * include/grub/ieee1275/ieee1275.h: Likewise.
37552 * include/grub/net.h: Likewise.
37553 * include/grub/machoload.h: Likewise.
37554 * include/grub/macho.h: Likewise.
37555 * include/multiboot.h: Likewise.
37556 * genmoddep.awk: Likewise.
37557 * normal/main.c: Likewise.
37558 * normal/menu_entry.c: Likewise.
37559 * normal/menu_viewer.c: Likewise.
37560 * normal/completion.c: Likewise.
37561 * normal/cmdline.c: Likewise.
37562 * normal/misc.c: Likewise.
37563 * normal/datetime.c: Likewise.
37564 * bus/usb/usbtrans.c: Likewise.
37565 * bus/usb/ohci.c: Likewise.
37566 * bus/usb/uhci.c: Likewise.
37567 * bus/usb/usb.c: Likewise.
37568 * mmap/efi/mmap.c: Likewise.
37569 * mmap/i386/pc/mmap_helper.S: Likewise.
37570 * mmap/i386/pc/mmap.c: Likewise.
37571 * mmap/i386/mmap.c: Likewise.
37572 * mmap/i386/uppermem.c: Likewise.
37573 * mmap/mmap.c: Likewise.
37574 * commands/acpi.c: Likewise.
37575 * commands/echo.c: Likewise.
37576 * commands/blocklist.c: Likewise.
37577 * commands/loadenv.c: Likewise.
37578 * commands/usbtest.c: Likewise.
37579 * commands/boot.c: Likewise.
37580 * commands/parttool.c: Likewise.
37581 * commands/search.c: Likewise.
37582 * commands/cat.c: Likewise.
37583 * commands/i386/pc/play.c: Likewise.
37584 * commands/i386/pc/drivemap.c: Likewise.
37585 * commands/i386/pc/vbeinfo.c: Likewise.
37586 * commands/i386/pc/acpi.c: Likewise.
37587 * commands/i386/pc/vbetest.c: Likewise.
37588 * commands/ls.c: Likewise.
37589 * commands/cmp.c: Likewise.
37590 * commands/test.c: Likewise.
37591 * commands/efi/acpi.c: Likewise.
37592 * commands/gptsync.c: Likewise.
37593 * commands/help.c: Likewise.
37594 * partmap/amiga.c: Likewise.
37595 * partmap/apple.c: Likewise.
37596 * partmap/acorn.c: Likewise.
37597 * partmap/pc.c: Likewise.
37598 * partmap/sun.c: Likewise.
37599 * partmap/gpt.c: Likewise.
37600 * script/sh/lexer.c: Likewise.
37601 * script/sh/function.c: Likewise.
37602 * font/font.c: Likewise.
37603 * font/font_cmd.c: Likewise.
37604 * loader/powerpc/ieee1275/linux.c: Likewise.
37605 * loader/efi/chainloader.c: Likewise.
37606 * loader/multiboot_loader.c: Likewise.
37607 * loader/macho.c: Likewise.
37608 * loader/i386/multiboot.c: Likewise.
37609 * loader/i386/linux.c: Likewise.
37610 * loader/i386/pc/linux.c: Likewise.
37611 * loader/i386/pc/multiboot2.c: Likewise.
37612 * loader/i386/pc/chainloader.c: Likewise.
37613 * loader/i386/pc/xnu.c: Likewise.
37614 * loader/i386/bsd_trampoline.S: Likewise.
37615 * loader/i386/efi/linux.c: Likewise.
37616 * loader/i386/multiboot_elfxx.c: Likewise.
37617 * loader/i386/bsd_helper.S: Likewise.
37618 * loader/i386/bsd.c: Likewise.
37619 * loader/i386/linux_trampoline.S: Likewise.
37620 * loader/i386/xnu_helper.S: Likewise.
37621 * loader/i386/xnu.c: Likewise.
37622 * loader/i386/bsd_pagetable.c: Likewise.
37623 * loader/i386/multiboot_helper.S: Likewise.
37624 * loader/xnu.c: Likewise.
37625 * loader/xnu_resume.c: Likewise.
37626 * io/gzio.c: Likewise.
37627 * term/efi/console.c: Likewise.
37628 * term/terminfo.c: Likewise.
37629 * term/ieee1275/ofconsole.c: Likewise.
37630 * term/i386/pc/serial.c: Likewise.
37631 * term/i386/pc/vesafb.c: Likewise.
37632 * term/i386/pc/vga.c: Likewise.
37633 * term/usb_keyboard.c: Likewise.
37634 * term/gfxterm.c: Likewise.
37635 * aclocal.m4: Likewise.
37636 * util/lvm.c: Likewise.
37637 * util/grub.d/30_os-prober.in: Likewise.
37638 * util/grub.d/10_hurd.in: Likewise.
37639 * util/console.c: Likewise.
37640 * util/grub-macho2img.c: Likewise.
37641 * util/grub-probe.c: Likewise.
37642 * util/hostfs.c: Likewise.
37643 * util/i386/pc/grub-mkimage.c: Likewise.
37644 * util/i386/pc/grub-setup.c: Likewise.
37645 * util/i386/efi/grub-mkimage.c: Likewise.
37646 * util/grub-mkconfig.in: Likewise.
37647 * util/raid.c: Likewise.
37648 * util/resolve.c: Likewise.
37649 * util/grub-mkdevicemap.c: Likewise.
37650 * util/grub-emu.c: Likewise.
37651 * util/getroot.c: Likewise.
37652 * util/hostdisk.c: Likewise.
37653 * util/usb.c: Likewise.
37654 * util/grub-editenv.c: Likewise.
37655 * util/misc.c: Likewise.
37657 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37659 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37660 `genparttoollist.sh'.
37661 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37662 Add `*.sh' to the list find searches for and change `mdate.sh'
37665 2009-06-10 Pavel Roskin <proski@gnu.org>
37667 * include/grub/multiboot2.h: Provide compatibility defines for
37669 * include/multiboot2.h: Include stdint.h only if needed, using
37671 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37673 * loader/ieee1275/multiboot2.c: Likewise.
37674 * loader/multiboot2.c: Likewise.
37675 * loader/multiboot_loader.c: Likewise.
37677 * configure.ac: Use -nostdlib when probing for the target. It
37678 should not be required to have libc for the target.
37680 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37681 they fail without libc headers for the target.
37682 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37684 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37685 preprocessor conditionals.
37687 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37688 build system doesn't need to be aware of the tar.c internals.
37690 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37692 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37694 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37696 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37697 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37699 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37701 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37702 aren't available if ata.mod gets used.
37704 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37706 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37707 initialising controller.
37708 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37710 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37712 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37713 to choose between ata and biosdisk module on i386-pc.
37715 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37717 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37718 Subclass and Programming Interface fields in terms of the 3 byte
37719 Class Code register.
37720 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37722 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37723 interface is OHCI. Add grub_dprintf for symmetry with
37725 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37726 interface is UHCI. Add interf variable for programming
37727 interface. Print interface with class/subclass.
37729 * bus/usb/ohci.c: Set interf with correct field.
37731 * bus/usb/uhci.c: Remove unneeded doubled lines.
37732 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37733 Remove whitespace inside comment.
37735 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37737 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37738 as fallback an equivalent option without depth.
37740 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37742 Not fail if unable to retrieve C/H/S on LBA disks
37744 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37745 if unable to retrieve C/H/S on LBA disks
37747 2009-06-08 Pavel Roskin <proski@gnu.org>
37749 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37752 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37754 * Makefile.in (uninstall): Remove all $lib_DATA files.
37756 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37758 Bugfix: install on partitionless device
37760 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37763 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37765 * Makefile.in (uninstall): Remove all $include_DATA files.
37767 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37769 * commands/true.c: New file. Implement the true and false commands.
37770 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37771 (true_mod_SOURCES): New variable.
37772 (true_mod_CFLAGS): Likewise.
37773 (true_mod_LDFLAGS): Likewise.
37775 2009-06-05 Colin D Bennett <colin@gibibit.com>
37777 Optimized font character lookup using binary search instead of linear
37778 search. Fonts now are required to have the character index ordered by
37781 * font/font.c (load_font_index): Verify that fonts have ordered
37783 (find_glyph): Use binary search instead of linear search to find a
37784 character in a font.
37786 2009-06-05 Michael Scherer <misc@mandriva.org>
37788 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37789 uses case sensitive btree.
37790 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37791 only for case insensitive filesystems.
37793 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37795 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37796 * conf/common.rmk (search_mod_CFLAGS): likewise
37798 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37800 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37801 compensate a compiler bug
37803 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37805 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37808 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37810 Definitions for creating asm symbols with Apple's CC
37812 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37813 [APPLE_CC] (VARIABLE): likewise
37815 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37817 Disable lnxboot.img when compiled
37820 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37821 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37822 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37823 [! APPLE_CC] (CODE_LENG): skip
37824 [! APPLE_CC] (setup_sects): likewise
37825 [! APPLE_CC]: skip filling
37827 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37829 Address in trampolines based on 32-bit registers when compiled
37832 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37834 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37836 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37838 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37840 * kern/misc.c [APPLE_CC] (memcpy): new function
37841 [APPLE_CC] (memmove): likewise
37842 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37843 (memcpy): define alias conditionally on !APPLE_CC
37846 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37847 APPLE_CC are defined
37848 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37849 (grub_assert_fail): make prototype conditional
37851 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37853 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37855 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37857 (CLEANFILES): add grub-macho2img
37858 (grub_macho2img_SOURCES): new variable
37859 * kern/i386/pc/startup.S (bss_start): new variable
37860 (bss_end): likewise
37861 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37862 * util/grub-macho2img.c: new file
37864 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37866 Use objconv when compiling with Apple's CC
37868 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37869 (efiemu64.o): likewise
37870 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37871 when compiling with Apple's CC
37872 (efiemu64_s.o): likewise
37873 * configure.ac: check for objconv when compiling with Apple's CC
37874 * genmk.rb: use objconv for modules when compiled with Apple's CC
37876 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37878 Define segment as well as section when compiling with
37881 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37882 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37883 (efiemu_convert_pointer): likewise
37884 (efiemu_set_virtual_address_map): likewise
37885 (efiemu_convert_pointer): likewise
37886 (efiemu_getcrc32): likewise
37887 (init_crc32_table): likewise
37888 (reflect): likewise
37889 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37890 (GRUB_MOD_DEP): likewise
37892 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37894 Allow a compilation without -mcmodel=large
37896 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37897 when compiled without -mcmodel=large
37898 (filter_memory_map): remove memory post 4 GiB when compiled
37899 without -mcmodel=large
37900 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
37901 TARGET_CFLAGS when -mcmodel=large isn't supported
37903 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37905 Remove nested functions in efiemu core
37907 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
37909 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37911 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
37913 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
37915 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
37917 (grub_cpu_is_tsc_supported): likewise
37918 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
37920 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37922 Absolute addressing through constant with Apple's cc
37924 * kern/i386/pc/startup.S: Define necessary constants
37925 and address through it when using ABS with Apple's CC
37926 * boot/i386/pc/diskboot.S: likewise
37927 * boot/i386/pc/boot.S: likewise
37928 * boot/i386/pc/lnxboot.S: likewise
37929 * boot/i386/pc/cdboot.S: likewise
37930 * mmap/i386/pc/mmap_helper.S: likewise
37931 * commands/i386/pc/drivemap_int13h.S: likewise
37933 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37935 Check if compiler is apple cc
37937 * Makefile.in (ASFLAGS): new variable
37938 (TARGET_ASFLAGS): likewise
37939 (TARGET_MODULE_FORMAT): likewise
37940 (TARGET_APPLE_CC): likewise
37941 (OBJCONV): likewise
37942 (TARGET_IMG_CFLAGS): likewise
37943 (TARGET_CPPFLAGS): add includedir
37944 * configure.ac: call grub_apple_cc and grub_apple_target_cc
37945 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
37946 Check for linker script only if compiler isn't Apple's CC
37947 (TARGET_MODULE_FORMAT): set
37948 (TARGET_APPLE_CC): likewise
37949 (TARGET_ASFLAGS): likewise
37950 (ASFLAGS): likewise
37951 Check for objcopy only if compiler isn't Apple's CC
37952 Check for BSS symbol only if compiler isn't Apple's CC
37953 * genmk.rb: adapt nm options if we use Apple's utils
37954 * aclocal.m4 (grub_apple_cc): new test
37955 (grub_apple_target_cc): likewise
37957 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37959 Simplify sed expressions and improve awk
37961 * Makefile.in (install-local): simplify sed expression
37962 * gencmdlist.sh: likewise
37963 * genmoddep.awk: avoid adding module as a dependency of itself
37965 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37967 Add missing start symbols
37969 * boot/i386/pc/boot.S: add start
37970 * boot/i386/pc/pxeboot.S: likewise
37972 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37974 Fix wrong assumptions with grub-mkimage on EFI
37976 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
37977 (relocate_addresses): consider both r_addend and value at offset
37978 (make_mods_section): zerofill modinfo and header
37979 (convert_elf): write prefix here
37981 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37983 Use .asciz instead of .string
37985 * i386/pc/diskboot.S: use .asciz instead of .string
37986 * i386/pc/boot.S: likewise
37987 * include/grub/dl.h (GRUB_MOD_DEP): likewise
37988 (GRUB_MOD_NAME): likewise
37990 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37994 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
37995 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
37996 (grub_video_setup): remove
37997 (grub_video_set_mode): new prototype
37998 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38000 (linux_vesafb_res): compile only on PCBIOS
38001 (grub_linux_boot): support gfxpayload
38002 * loader/i386/pc/xnu.c (video_hook): new function
38003 (grub_xnu_set_video): support gfxpayload
38004 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38005 (DEFAULT_VIDEO_HEIGHT): likewise
38006 (DEFAULT_VIDEO_FLAGS): likewise
38007 (DEFAULT_VIDEO_MODE): new definition
38008 (video_hook): new function
38009 (grub_gfxterm_init): use grub_video_set_mode
38010 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38012 * video/video.c (grub_video_setup): removed
38013 (grub_video_set_mode): new function based on grub_gfxterm_init and
38016 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38018 Avoid calling biosdisk in drivemap
38020 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38021 (revparse_biosdisk): likewise
38022 (list_mappings): derive name from id directly
38023 (grub_cmd_drivemap): use tryparse_diskstring
38025 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38029 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38030 (grub_lexer_param): add tokenonhold
38031 (grub_script_create_cmdline): remove cmdline. All callers updated
38032 (grub_script_function_create): make functionname
38033 grub_script_arg. All callers updated
38034 (grub_script_execute_argument_to_string): new prototype
38035 * kern/parser.c (state_transitions): reorder
38036 (grub_parser_cmdline_state): fix a bug and make more compact
38037 * script/sh/execute.c (grub_script_execute_argument_to_string):
38039 (grub_script_execute_cmdline): use new format
38040 * script/sh/function.c (grub_script_function_create): make functionname
38041 grub_script_arg. All callers updated
38042 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38043 (grub_script_yylex): remove
38044 (grub_script_yylex2): renamed to ...
38045 (grub_script_yylex): ...renamed
38046 parse the expressions like a${b}c
38047 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38048 (GRUB_PARSER_TOKEN_VAR): remove
38049 (GRUB_PARSER_TOKEN_NAME): likewise
38050 ("if"): declare as typeless
38051 ("while"): likewise
38052 ("function"): likewise
38057 (argument): likewise
38058 (script): accept empty scripts and make exit on error
38059 (arguments): use GRUB_PARSER_TOKEN_ARG
38060 (function): likewise
38061 (command): move error handling to script
38062 (menuentry): move grub_script_lexer_ref before
38063 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38064 argument. All callers updated
38066 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38068 Prevent GRUB from probing floppies during boot.
38070 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38071 * commands/search.c (options): Add --no-floppy.
38072 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38073 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38074 --no-floppy when searching for UUIDs.
38076 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38078 Simplify the code duplication in commands/search.c.
38080 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38081 (search_fs): ... this. Update all users.
38083 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38085 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38087 2009-05-28 Pavel Roskin <proski@gnu.org>
38089 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38090 Remove the original symlink explicitly.
38092 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38093 just one slash. That's how grub_fshelp_find_file() does it.
38095 2009-05-26 Pavel Roskin <proski@gnu.org>
38097 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38100 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38103 2009-05-25 Christian Franke <franke@computer.org>
38105 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38107 (grub_atapi_identify): Add wait after drive select.
38108 (grub_ata_identify): Do more strict status register check before
38109 calling grub_atapi_identify (). Suppress error message if status
38110 register is 0x00 after command failure. Add status register
38111 check after PIO read to avoid bogus identify due to stuck DRQ.
38112 Thanks to Pavel Roskin for testing.
38113 (grub_device_initialize): Remove unsafe status register check.
38114 Thanks to 'phcoder' for problem report and patch.
38115 Prevent sign extension in debug message.
38117 2009-05-23 Colin D Bennett <colin@gibibit.com>
38119 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38120 definition file, and functions defined in `normal/menu.c' have had
38121 their prototypes moved to `include/grub/menu.h' for consistency.
38123 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38125 (grub_menu_get_entry): Likewise.
38126 (grub_menu_get_timeout): Likewise.
38127 (grub_menu_set_timeout): Likewise.
38128 (grub_menu_execute_entry): Likewise.
38129 (grub_menu_execute_with_fallback): Likewise.
38130 (grub_menu_entry_run): Likewise.
38132 * include/grub/normal.h: Re-ordered and grouped function
38133 prototypes by file that the function is defined in.
38134 (grub_menu_execute_callback): Removed; moved to menu.h.
38135 (grub_menu_get_entry): Likewise.
38136 (grub_menu_get_timeout): Likewise.
38137 (grub_menu_set_timeout): Likewise.
38138 (grub_menu_execute_entry): Likewise.
38139 (grub_menu_execute_with_fallback): Likewise.
38140 (grub_menu_entry_run): Likewise.
38141 (grub_menu_addentry): Renamed from this ...
38142 (grub_normal_add_menu_entry): ... to this.
38144 * normal/main.c (grub_menu_addentry): Renamed from this ...
38145 (grub_normal_add_menu_entry): ... to this.
38147 * script/sh/execute.c (grub_script_execute_menuentry): Update
38148 reference to renamed grub_menu_addentry function.
38150 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38152 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38154 2009-05-22 Pavel Roskin <proski@gnu.org>
38156 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38157 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38158 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38159 compiling for the i386 targets, but not for the utilities.
38161 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38163 (grub_root_drive): Likewise.
38164 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38166 (grub_root_drive): Change size to byte.
38167 (grub_start_addr): Remove.
38168 (grub_end_addr): Likewise.
38169 (grub_apm_bios_info): Likewise.
38171 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38173 * normal/i386: Remove.
38174 * normal/powerpc: Likewise.
38175 * normal/sparc64: Likewise.
38176 * normal/x86_64: Likewise.
38178 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38180 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38181 * loader/i386/linux_trampoline.S: Fix indentation
38182 * loader/i386/xnu_helper.S: Likewise
38184 2009-05-18 Colin D Bennett <colin@gibibit.com>
38186 Display error messages when parsing a Lua statement fails.
38187 Previously, executing a syntactically invalid statement like
38188 ")foo" or "bar;" would silently fail.
38190 * script/lua/grub_main.c (handle_lua_error): New function.
38191 (grub_lua_parse_line): Improved reporting of Lua parser and
38194 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38196 Remove -Werror which causes build to fail on some systems
38198 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38199 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38200 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38202 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38204 trampoline for linux on 64-bit platform
38206 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38207 loader/i386/efi/linux_trampoline.S
38208 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38210 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38212 * loader/i386/linux_trampoline.S: moved here
38213 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38215 (jumpvector): removed
38216 (grub_linux_trampoline_start): new declaration
38217 (grub_linux_trampoline_end): likewise
38218 (grub_linux_boot): use trampoline when on 64-bit platform
38219 * loader/i386/linux.c: likewise
38221 2009-05-16 Pavel Roskin <proski@gnu.org>
38223 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38224 const to avoid a warning.
38225 (grub_lua_setenv): Likewise.
38226 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38227 lmsg to fix a warning.
38229 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38231 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38232 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38233 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38234 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38235 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38236 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38237 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38238 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38240 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38242 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38244 2009-05-16 Bean <bean123ch@gmail.com>
38246 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38247 (lua_mod_SOURCES): New variable.
38248 (lua_mod_CFLAGS): Likewise.
38249 (lua_mod_LDFLAGS): Likewise.
38251 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38252 (setjmp_mod_SOURCES): New variable.
38253 (setjmp_mod_CFLAGS): Likewise.
38254 (setjmp_LDFLAGS): Likewise.
38256 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38257 (setjmp_mod_SOURCES): New variable.
38258 (setjmp_mod_CFLAGS): Likewise.
38259 (setjmp_LDFLAGS): Likewise.
38261 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38262 (setjmp_mod_SOURCES): New variable.
38263 (setjmp_mod_CFLAGS): Likewise.
38264 (setjmp_LDFLAGS): Likewise.
38266 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38267 (setjmp_mod_SOURCES): New variable.
38268 (setjmp_mod_CFLAGS): Likewise.
38269 (setjmp_LDFLAGS): Likewise.
38271 * normal/i386/setjmp.S: Moved from here ...
38272 * lib/i386/setjmp.S: ... Moved here
38273 * normal/x86_64/setjmp.S: Moved from here ...
38274 * lib/x86_64/setjmp.S: ... Moved here
38275 * normal/powerpc/setjmp.S: Moved from here ...
38276 * lib/powerpc/setjmp.S: ... Moved here
38277 * normal/sparc64/setjmp.S: Moved from here ...
38278 * lib/sparc64/setjmp.S: ... Moved here
38280 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38281 returns_twice in mingw.
38283 * script/lua/grub_lib.c: New file.
38284 * script/lua/grub_lib.h: Likewise.
38285 * script/lua/grub_lua.h: Likewise.
38286 * script/lua/grub_main.c: Likewise.
38287 * script/lua/lapi.c: Likewise.
38288 * script/lua/lapi.h: Likewise.
38289 * script/lua/lauxlib.c: Likewise.
38290 * script/lua/lauxlib.h: Likewise.
38291 * script/lua/lbaselib.c: Likewise.
38292 * script/lua/lcode.c: Likewise.
38293 * script/lua/lcode.h: Likewise.
38294 * script/lua/ldblib.c: Likewise.
38295 * script/lua/ldebug.c: Likewise.
38296 * script/lua/ldebug.h: Likewise.
38297 * script/lua/ldo.c: Likewise.
38298 * script/lua/ldo.h: Likewise.
38299 * script/lua/ldump.c: Likewise.
38300 * script/lua/lfunc.c: Likewise.
38301 * script/lua/lfunc.h: Likewise.
38302 * script/lua/lgc.c: Likewise.
38303 * script/lua/lgc.h: Likewise.
38304 * script/lua/linit.c: Likewise.
38305 * script/lua/liolib.c: Likewise.
38306 * script/lua/llex.c: Likewise.
38307 * script/lua/llex.h: Likewise.
38308 * script/lua/llimits.h: Likewise.
38309 * script/lua/lmathlib.c: Likewise.
38310 * script/lua/lmem.c: Likewise.
38311 * script/lua/lmem.h: Likewise.
38312 * script/lua/loadlib.c: Likewise.
38313 * script/lua/lobject.c: Likewise.
38314 * script/lua/lobject.h: Likewise.
38315 * script/lua/lopcodes.c: Likewise.
38316 * script/lua/lopcodes.h: Likewise.
38317 * script/lua/loslib.c: Likewise.
38318 * script/lua/lparser.c: Likewise.
38319 * script/lua/lparser.h: Likewise.
38320 * script/lua/lstate.c: Likewise.
38321 * script/lua/lstate.h: Likewise.
38322 * script/lua/lstring.c: Likewise.
38323 * script/lua/lstring.h: Likewise.
38324 * script/lua/lstrlib.c: Likewise.
38325 * script/lua/ltable.c: Likewise.
38326 * script/lua/ltable.h: Likewise.
38327 * script/lua/ltablib.c: Likewise.
38328 * script/lua/ltm.c: Likewise.
38329 * script/lua/ltm.h: Likewise.
38330 * script/lua/lua.h: Likewise.
38331 * script/lua/luaconf.h: Likewise.
38332 * script/lua/lualib.h: Likewise.
38333 * script/lua/lundump.c: Likewise.
38334 * script/lua/lundump.h: Likewise.
38335 * script/lua/lvm.c: Likewise.
38336 * script/lua/lvm.h: Likewise.
38337 * script/lua/lzio.c: Likewise.
38338 * script/lua/lzio.h: Likewise.
38340 2009-05-16 Bean <bean123ch@gmail.com>
38342 * include/grub/kernel.h (grub_module_header_types): Add type
38345 * kern/main.c (grub_load_config): New function.
38346 (grub_main): Call grub_load_config to read boot config.
38348 * grub-mkimage (generate_image): New parameter config_path.
38349 (options): New option --config.
38350 (main): Parse --config option, and pass it to generate_image.
38352 2009-05-14 Christian Franke <franke@computer.org>
38354 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38355 This fixes build on Cygwin.
38357 2009-05-14 Pavel Roskin <proski@gnu.org>
38359 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38360 jump. This saves two bytes, so the typical case of 2 swapped
38361 drives would fit 32 bytes.
38363 2009-05-13 Pavel Roskin <proski@gnu.org>
38365 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38366 grub_uint32_t to avoid a warning.
38368 * loader/i386/linux.c (allocate_pages): When assigning
38369 real_mode_mem, cast through grub_size_t to fix a warning. The
38370 code already makes sure that the value would fit a pointer.
38371 (grub_linux_setup_video): Cast render_target->data to
38372 grub_size_t to fix a warning.
38374 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38376 * commands/i386/pc/drivemap.c: New file - implement drivemap
38378 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38379 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38381 2009-05-13 Pavel Roskin <proski@gnu.org>
38383 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38384 embedding_area_exists.
38386 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38388 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38389 it easier to understand / work with.
38390 Improve warning messages for cases where there's no embedding area,
38391 or when it is too small (or core.img too large).
38393 2009-05-13 Pavel Roskin <proski@gnu.org>
38395 * loader/i386/pc/multiboot2.c: Add necessary includes for
38396 grub_multiboot2_real_boot().
38398 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38399 PX record is always little-endian. We only need the lower 2
38402 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38403 facilitate code reuse.
38404 (grub_cpio_mount): Use "struct head", not a char buffer. This
38405 fixes a warning reported by gcc 4.4.
38407 * kernel/disk.c (grub_disk_read): Use void pointer for the
38409 (grub_disk_write): Use const void pointer for the buffer.
38410 Adjust all callers. Remove unnecessary casts.
38412 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38414 * util/i386/pc/grub-install.in: Update copyright year.
38416 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38420 * commands/gptsync.c: new file
38421 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38422 (gptsync_mod_SOURCES): new variable
38423 (gptsync_mod_CFLAGS): likewise
38424 (gptsync_mod_LDFLAGS): likewise
38425 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38427 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38428 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38429 * conf/i386-ieee1275.rmk: likewise
38430 * conf/i386-pc.rmk: likewise
38431 * conf/powerpc-ieee1275.rmk: likewise
38433 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38437 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38438 (grub_dl_ref): likewise
38440 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38442 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38443 split in two functions (one for msdos and one for gpt).
38445 2009-05-08 Pavel Roskin <proski@gnu.org>
38447 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38450 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38451 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38452 Initialize them with -1. Add sanity check for bad1. Eliminate
38455 2009-05-08 David S. Miller <davem@davemloft.net>
38457 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38459 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38461 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38464 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38466 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38467 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38469 2009-05-05 David S. Miller <davem@davemloft.net>
38471 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38473 2009-05-05 Pavel Roskin <proski@gnu.org>
38475 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38476 of grub_dl_ref() and grub_dl_unref().
38477 * commands/parttool.c: Remove preprocessor conditionals around
38478 grub_dl_ref() and grub_dl_unref().
38479 * fs/affs.c: Likewise.
38480 * fs/afs.c: Likewise.
38481 * fs/cpio.c: Likewise.
38482 * fs/ext2.c: Likewise.
38483 * fs/fat.c: Likewise.
38484 * fs/hfs.c: Likewise.
38485 * fs/hfsplus.c: Likewise.
38486 * fs/iso9660.c: Likewise.
38487 * fs/jfs.c: Likewise.
38488 * fs/minix.c: Likewise.
38489 * fs/ntfs.c: Likewise.
38490 * fs/reiserfs.c: Likewise.
38491 * fs/sfs.c: Likewise.
38492 * fs/udf.c: Likewise.
38493 * fs/ufs.c: Likewise.
38494 * fs/xfs.c: Likewise.
38495 * include/grub/dl.h: Likewise.
38496 * loader/xnu.c: Likewise.
38498 2009-05-04 Pavel Roskin <proski@gnu.org>
38500 * commands/acpi.c: Remove unused variable my_mod.
38501 * partmap/amiga.c: Likewise.
38502 * partmap/apple.c: Likewise.
38503 * partmap/gpt.c: Likewise.
38504 * partmap/pc.c: Likewise.
38505 * partmap/sun.c: Likewise.
38506 * term/gfxterm.c: Likewise.
38507 * term/i386/pc/vesafb.c: Likewise.
38508 * term/i386/pc/vga.c: Likewise.
38510 2009-05-04 David S. Miller <davem@davemloft.net>
38512 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38513 pointer args to grub_ieee1275_get_property().
38515 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38517 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38518 devices, and do not traverse down under controller nodes.
38520 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38521 (grub_ofdisk_open): Use it to un-escape "," characters.
38522 * kern/disk.c (find_part_sep): New.
38523 (grub_disk_open): Use it to find the first non-escaped ','
38524 character in the disk name.
38525 * util/ieee1275/devicemap.c (escape_of_path): New.
38526 (grub_util_emit_devicemap_entry): Use it.
38527 * util/sparc64/ieee1275/grub-install.in: Update script to
38528 strip partition specifiers properly by not triggering on
38529 '\' escaped ',' characters.
38531 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38533 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38535 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38537 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38538 on documentation from Wikipedia).
38540 2009-05-04 Pavel Roskin <proski@gnu.org>
38542 * disk/ata.c: Spelling fixes.
38543 * disk/raid.c: Likewise.
38544 * disk/usbms.c: Likewise.
38545 * disk/dmraid_nvidia.c: Likewise.
38546 * kern/ieee1275/openfw.c: Likewise.
38547 * kern/ieee1275/init.c: Likewise.
38548 * kern/ieee1275/cmain.c: Likewise.
38549 * boot/i386/pc/cdboot.S: Likewise.
38550 * video/readers/png.c: Likewise.
38551 * video/i386/pc/vbe.c: Likewise.
38552 * fs/udf.c: Likewise.
38553 * fs/hfs.c: Likewise.
38554 * fs/reiserfs.c: Likewise.
38555 * efiemu/runtime/efiemu.c: Likewise.
38556 * efiemu/main.c: Likewise.
38557 * efiemu/mm.c: Likewise.
38558 * include/grub/elf.h: Likewise.
38559 * include/grub/xnu.h: Likewise.
38560 * include/grub/usbdesc.h: Likewise.
38561 * include/grub/usb.h: Likewise.
38562 * include/grub/script_sh.h: Likewise.
38563 * include/grub/lib/LzmaEnc.h: Likewise.
38564 * include/grub/efiemu/efiemu.h: Likewise.
38565 * include/grub/command.h: Likewise.
38566 * normal/menu.c: Likewise.
38567 * normal/main.c: Likewise.
38568 * normal/datetime.c: Likewise.
38569 * bus/usb/uhci.c: Likewise.
38570 * mmap/i386/uppermem.c: Likewise.
38571 * mmap/mmap.c: Likewise.
38572 * commands/acpi.c: Likewise.
38573 * commands/test.c: Likewise.
38574 * partmap/apple.c: Likewise.
38575 * font/font.c: Likewise.
38576 * loader/sparc64/ieee1275/linux.c: Likewise.
38577 * loader/macho.c: Likewise.
38578 * loader/i386/bsd_trampoline.S: Likewise.
38579 * loader/i386/bsd.c: Likewise.
38580 * loader/xnu.c: Likewise.
38581 * term/i386/pc/vesafb.c: Likewise.
38582 * term/usb_keyboard.c: Likewise.
38583 * util/resolve.c: Likewise.
38584 * util/getroot.c: Likewise.
38586 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38588 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38590 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38592 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38595 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38597 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38598 parameter only available on BIOS.
38600 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38602 Removed wrong semicolon in declaration
38604 * grub/misc.h (grub_dprintf): remove semicolon
38606 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38608 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38609 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38610 is done by grub_cmd_linux() now).
38611 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38612 restore video to text mode.
38613 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38614 indicates lack of "vga=" parameter. "vga=0" is mapped to
38615 `GRUB_LINUX_VID_MODE_NORMAL'.
38617 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38619 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38620 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38621 and `normal/script.c'. Add `kern/rescue_reader.c',
38622 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38623 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38624 `grub_script.tab.c'.
38626 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38627 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38629 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38630 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38632 * Makefile.in: Remove duplicated 2008 in Copyright line.
38634 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38636 * util/misc.c (grub_util_warn): New function. Emits a warning
38638 * include/grub/util/misc.h (grub_util_warn): New declaration.
38640 * util/i386/pc/grub-install.in: Understand --force and pass it down
38643 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38645 (setup): Improve error messages and add warnings when requested to
38646 install in odd layouts. Refuse to install using blocklists unless
38649 2009-05-04 martin f. krafft <madduck@madduck.net>
38651 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38653 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38655 Updated copyright year
38657 * fs/hfsplus.c: updated copyright year
38659 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38663 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38664 in the space previously used by unused3
38665 (grub_hfsplus_uuid): new function
38666 (grub_hfsplus_fs): added uuid field
38668 2009-05-03 Pavel Roskin <proski@gnu.org>
38670 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38671 suppress warnings. It's no longer needed.
38672 * disk/host.c: Likewise.
38673 * disk/ata_pthru.c: Likewise.
38674 * disk/loopback.c: Likewise.
38675 * hook/datehook.c: Likewise.
38676 * parttool/pcpart.c: Likewise.
38677 * fs/i386/pc/pxe.c: Likewise.
38678 * fs/ntfscomp.c: Likewise.
38679 * efiemu/main.c: Likewise.
38680 * mmap/mmap.c: Likewise.
38681 * commands/crc.c: Likewise.
38682 * commands/hexdump.c: Likewise.
38683 * commands/hdparm.c: Likewise.
38684 * commands/acpi.c: Likewise.
38685 * commands/echo.c: Likewise.
38686 * commands/minicmd.c: Likewise.
38687 * commands/blocklist.c: Likewise.
38688 * commands/memrw.c: Likewise.
38689 * commands/loadenv.c: Likewise.
38690 * commands/usbtest.c: Likewise.
38691 * commands/lsmmap.c: Likewise.
38692 * commands/boot.c: Likewise.
38693 * commands/parttool.c: Likewise.
38694 * commands/configfile.c: Likewise.
38695 * commands/search.c: Likewise.
38696 * commands/ieee1275/suspend.c: Likewise.
38697 * commands/cat.c: Likewise.
38698 * commands/i386/pc/pxecmd.c: Likewise.
38699 * commands/i386/pc/play.c: Likewise.
38700 * commands/i386/pc/halt.c: Likewise.
38701 * commands/i386/pc/vbeinfo.c: Likewise.
38702 * commands/i386/pc/vbetest.c: Likewise.
38703 * commands/lspci.c: Likewise.
38704 * commands/date.c: Likewise.
38705 * commands/handler.c: Likewise.
38706 * commands/ls.c: Likewise.
38707 * commands/test.c: Likewise.
38708 * commands/cmp.c: Likewise.
38709 * commands/efi/loadbios.c: Likewise.
38710 * commands/efi/fixvideo.c: Likewise.
38711 * commands/halt.c: Likewise.
38712 * commands/help.c: Likewise.
38713 * commands/reboot.c: Likewise.
38714 * hello/hello.c: Likewise.
38715 * script/sh/main.c: Likewise.
38716 * loader/xnu.c: Likewise.
38717 * term/terminfo.c: Likewise.
38718 * term/i386/pc/serial.c: Likewise.
38719 * term/usb_keyboard.c: Likewise.
38721 2009-05-03 David S. Miller <davem@davemloft.net>
38723 * normal/menu.c: Include grub/parser.h
38725 2009-05-03 Pavel Roskin <proski@gnu.org>
38727 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38729 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38730 Suggested by Javier Martín <lordhabbit@gmail.com>
38732 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38733 efiemu??.o doesn't exist.
38734 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38737 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38739 FreeBSD 64-bit support
38741 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38742 and loader/i386/bsd_trampoline.S
38743 (bsd_mod_ASFLAGS): new variable
38744 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38745 (FREEBSD_MODTYPE_KERNEL64): likewise
38746 (grub_bsd64_trampoline_start): likewise
38747 (grub_bsd64_trampoline_end): likewise
38748 (grub_bsd64_trampoline_selfjump): likewise
38749 (grub_bsd64_trampoline_gdt): likewise
38750 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38751 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38752 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38753 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38754 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38756 * loader/i386/bsd_pagetable.c: new file
38757 * loader/i386/bsd_trampoline.S: likewise
38758 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38759 (ALIGN_VAR): likewise
38760 (entry_hi): new variable
38761 (kern_end_mdofs): likewise
38762 (is_64bit): likewise
38763 (grub_freebsd_add_meta): use ALIGN_VAR
38764 (grub_e820_mmap): new declaration
38765 (grub_freebsd_add_mmap): new function
38766 (grub_freebsd_add_meta_module): support 64 bit kernels
38767 (grub_freebsd_list_modules): use ALIGN_VAR
38768 (gdt_descriptor): new declaration
38769 (grub_freebsd_boot): support 64 bit kernels
38770 (grub_bsd_elf64_hook): new function
38771 (grub_bsd_load_elf): support elf64
38773 2009-05-03 Bean <bean123ch@gmail.com>
38775 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38776 after we get the result of if statement.
38778 2009-05-03 Bean <bean123ch@gmail.com>
38780 * Makefile.in (enable_efiemu): New variable.
38782 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38784 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38786 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38787 path, add -mno-red-zone option.
38788 (efiemu64_s.o): Likewise.
38789 (efiemu64.o): Use macro $^ for source file.
38791 * configure.ac (--enable-efiemu): New option.
38793 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38797 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38798 (pkglib_MODULES): add xnu.mod
38799 (xnu_mod_SOURCES): new variable
38800 (xnu_mod_CFLAGS): likewise
38801 (xnu_mod_LDFLAGS): likewise
38802 (xnu_mod_ASFLAGS): likewise
38803 * conf/i386-pc.rmk: likewise
38804 * conf/x86_64-efi.rmk: likewise
38805 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38807 * include/grub/i386/macho.h: new file
38808 * include/grub/i386/xnu.h: likewise
38809 * include/grub/macho.h: likewise
38810 * include/grub/machoload.h: likewise
38811 * include/grub/x86_64/macho.h: likewise
38812 * include/grub/x86_64/xnu.h: likewise
38813 * include/grub/xnu.h: likewise
38814 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38815 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38816 * loader/i386/efi/xnu.c: new file
38817 * loader/i386/pc/xnu.c: likewise
38818 * loader/i386/xnu.c: likewise
38819 * loader/i386/xnu_helper.S: likewise
38820 * loader/macho.c: likewise
38821 * loader/xnu.c: likewise
38822 * loader/xnu_resume.c: likewise
38823 * util/grub-dumpdevtree: likewise
38824 * include/grub/i386/pit.h: include grub/err.h
38825 (grub_pit_wait): export
38826 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38828 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38832 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38833 _linux_efi, linux_efi.
38834 new files in grub-emu
38835 new targets efiemu32.o and efiemu64.o
38836 * loader/linux_normal_efiemu.c: likewise
38837 * loader/i386/efi/linux.c: added preliminary efiemu support
38838 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38840 * include/grub/autoefi.h: new file
38841 * include/grub/i386/efiemu.h: likewise
38842 * include/grub/i386/pc/efiemu.h: likewise
38843 * include/grub/efi/api.h: add LL suffix when necessary
38844 new definitions relating to tables
38845 * include/grub/efiemu/efiemu.h: new file
38846 * include/grub/efiemu/runtime.h: likewise
38847 * efiemu/prepare.c: likewise
38848 * efiemu/loadcore_common.c: likewise
38849 * efiemu/loadcore64.c: likewise
38850 * efiemu/runtime/efiemu.sh: likewise
38851 * efiemu/runtime/efiemu.S: likewise
38852 * efiemu/runtime/efiemu.c: likewise
38853 * efiemu/runtime/config.h: likewise
38854 * efiemu/prepare32.c: likewise
38855 * efiemu/main.c: likewise
38856 * efiemu/modules/pnvram.c: likewise
38857 * efiemu/modules/i386: likewise
38858 * efiemu/modules/i386/pc: likewise
38859 * efiemu/modules/acpi.c: likewise
38860 * efiemu/i386/pc/cfgtables.c: likewise
38861 * efiemu/i386/loadcore64.c: likewise
38862 * efiemu/i386/loadcore32.c: likewise
38863 * efiemu/prepare64.c: likewise
38864 * efiemu/loadcore.c: likewise
38865 * efiemu/symbols.c: likewise
38866 * efiemu/mm.c: likewise
38867 * efiemu/loadcore32.c: likewise
38869 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38873 * commands/acpi.c: new file
38874 * commands/i386/pc/acpi.c: likewise
38875 * commands/efi/acpi.c: likewise
38876 * include/grub/acpi.h: likewise
38877 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38878 (acpi_mod_SOURCES): new variable
38879 (acpi_mod_CFLAGS): likewise
38880 (acpi_mod_LDFLAGS): likewise
38881 * conf/i386-efi.rmk: likewise
38882 * conf/x86_64-efi.rmk: likewise
38884 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38886 Missing part from mmap patch
38888 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38889 (grub_mmap_unregister)
38890 (grub_mmap_free_and_unregister): use grub_mmap_register
38892 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38896 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38897 * loader/i386/linux.c (find_mmap_size): likewise
38898 (allocate_pages): likewise
38899 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38900 (grub_fill_multiboot_mmap): likewise
38901 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38902 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38903 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38904 (OPENBSD_MMAP_RESERVED): likewise
38905 * include/grub/i386/pc/memory.h: include grub/memory.h
38906 (grub_lower_mem): removed
38907 (grub_upper_mem): likewise
38908 (GRUB_MACHINE_MEMORY_ACPI): new definition
38909 (GRUB_MACHINE_MEMORY_NVS): likewise
38910 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
38911 (GRUB_MACHINE_MEMORY_HOLE): likewise
38912 (grub_machine_mmap_register): likewise
38913 (grub_machine_mmap_unregister): likewise
38914 (grub_machine_get_upper): likewise
38915 (grub_machine_get_lower): likewise
38916 (grub_machine_get_post64): likewise
38917 * include/grub/i386/efi/memory.h: new file
38918 * include/grub/x86_64/efi/memory.h: likewise
38919 * include/grub/efi/memory.h: likewise
38920 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
38921 (mmap_mod_SOURCES): new variable
38922 (mmap_mod_LDFLAGS): likewise
38923 (mmap_mod_ASFLAGS): likewise
38924 * conf/i386-coreboot.rmk: likewise
38925 * conf/i386-ieee1275.rmk: likewise
38926 * conf/i386-efi.rmk: likewise
38927 * conf/x86_64-efi.rmk: likewise
38928 * include/grub/types.h (UINT_TO_PTR): new macro
38929 (PTR_TO_UINT32): likewise
38930 (PTR_TO_UINT64): likewise
38931 * include/grub/memory.h: new file
38932 * mmap/i386/pc/mmap.c: likewise
38933 * mmap/i386/pc/mmap_helper.S: likewise
38934 * mmap/i386/uppermem.c: likewise
38935 * mmap/mmap.c: likewise
38936 * mmap/efi/mmap.c: likewise
38937 * kern/i386/coreboot/init.c (grub_machine_init): don't use
38939 * kern/i386/pc/init.c (grub_lower_mem): removed variable
38940 (grub_upper_mem): likewise
38941 (grub_machine_init): don't use grub_upper_mem,
38942 make grub_lower_mem local
38943 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
38944 grub_mmap_iterate and grub_mmap_get_upper
38945 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
38947 2009-05-02 Bean <bean123ch@gmail.com>
38949 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
38950 script/sh/parser.y.
38951 (pkglib_MODULES): Add normal.mod and sh.mod.
38952 (normal_SOURCES): New variable.
38953 (normal_mod_CFLAGS): Likewise.
38954 (normal_mod_LDFLAGS): Likewise.
38955 (sh_mod_SOURCES): Likewise.
38956 (sh_mod_CFLAGS): Likewise.
38957 (sh_mod_LDFLAGS): Likewise.
38959 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
38960 script/sh/lexer.c_DEPENDENCIES.
38961 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
38962 kern/rescue_reader.c and kern/rescue_parser.c.
38963 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
38964 (grub_emu_SOURCES): Change source files.
38965 (pkglib_MODULES): Remove normal.mod.
38966 (normal_SOURCES): Removed.
38967 (normal_mod_CFLAGS): Likewise.
38968 (normal_mod_LDFLAGS): Likewise.
38969 * conf/i386-coreboot.rmk: Likewise.
38970 * conf/i386-efi.rmk: Likewise.
38971 * conf/i386-ieee1276.rmk: Likewise.
38972 * conf/powerpc-ieee1275.rmk: Likewise.
38973 * conf/sparc64-ieee1275.rmk: Likewise.
38974 * conf/x86_64-efi.rmk: Likewise.
38976 * include/grub/command.h (grub_command_execute): New inline function.
38978 * include/grub/menu.h (grub_menu_entry): Removed commands field.
38980 * include/grub/normal.h: Remove <grub/setjmp.h>.
38981 (grub_fs_module_list): Moved to normal/autofs.c.
38982 (grub_exit_env): Removed.
38983 (grub_command_execute): Likewise.
38984 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
38986 (read_command_list): New function declaration.
38987 (read_fs_list): Likewise.
38989 * include/parser.h: Include <grub/reader.h>.
38990 (grub_parser_split_cmdline): Change type of getline parameter.
38991 (grub_parser): New structure.
38992 (grub_parser_class): New variable.
38993 (grub_parser_execute): New function declaration.
38994 (grub_register_rescue_parser): Likewise.
38995 (grub_parser_register): New inline function.
38996 (grub_parser_unregister): Likewise.
38997 (grub_parser_get_current): Likewise.
38998 (grub_parser_set_current): Likewise.
39000 * include/grub/reader.h: New file.
39001 * kern/reader.c: Likewise.
39002 * kern/rescue_parser.c: Likewise.
39003 * kern/rescue_reader.c: Likewise.
39004 * normal/autofs.c: Likewise.
39005 * normal/dyncmd.c: Likewise.
39007 * include/grub/rescue.h: Removed.
39008 * normal/command.h: Likewise.
39010 * include/grub/script.h: Moved to ...
39011 * include/grub/script_sh.h: ... Moved here.
39012 * normal/execute.c: Moved to ...
39013 * script/sh/execute.c: ... Moved here.
39014 * normal/function.c: Moved to ...
39015 * script/sh/function.c: ... Moved here.
39016 * normal/lexer.c: Moved to ...
39017 * script/sh/lexer.c: ... Moved here.
39018 * normal/parser.y: Moved to ...
39019 * script/sh/parser.y: ... Moved here.
39020 * normal/script.c: Moved to ...
39021 * script/sh/script.c: ... Moved here.
39023 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39025 (grub_exit_env): Removed.
39026 (fs_module_list): Moved to normal/autofs.c.
39027 (grub_file_getline): Don't handle comment here.
39028 (free_menu): Skip removed field entry->commands.
39029 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39031 (read_config_file): Removed nested parameter, change getline function.
39032 (grub_enter_normal_mode): Removed.
39033 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39034 (read_command_list): Likewise.
39035 (autoload_fs_module): Moved to normal/autofs.c.
39036 (read_fs_list): Likewise.
39037 (reader_nested): New variable.
39038 (grub_normal_execute): Run parser.sh to switch to sh parser.
39039 (grub_cmd_rescue): Removed.
39040 (cmd_normal): Removed.
39041 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39043 (grub_cmdline_run): New function.
39044 (grub_normal_reader_init): Likewise.
39045 (grub_normal_read_line): Likewise.
39046 (grub_env_write_pager): Likewise.
39047 (cmdline): New variable.
39048 (grub_normal_reader): Likewise.
39049 (GRUB_MOD_INIT): Register normal reader and set as current, register
39050 pager hook, register normal command with grub_register_command_prio,
39051 so that it won't show up in command.lst.
39052 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39053 grub_fs_autoload_hook.
39055 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39056 (grub_menu_execute_entry): Replace grub_script_execute with
39057 grub_parser_execute, change parameter to grub_command_execute.
39059 * normal/menu_text.c: Remove <grub/script.h>.
39061 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39062 and <grub/parser.h>.
39063 (run): Change editor_getline to use new parser interface. Change
39064 parameter to grub_command_execute.
39066 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39067 <grub/reader.h> and <grub/parser.h>.
39068 (grub_load_normal_mode): Execute normal command.
39069 (grub_main): Call grub_register_core_commands,
39070 grub_register_rescue_parser and grub_register_rescue_reader, use
39071 grub_reader_loop to enter input loop.
39073 * kern/parser.c (grub_parser_split_cmdline): Change type of
39075 (grub_parser_class): New variable.
39076 (grub_parser_execute): New function.
39078 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39079 * loader/multiboot2.c: Likewise.
39080 * loader/sparc64/ieee1275/linux.c: Likewise.
39082 * util/grub-emu.c (read_command_list): New dummy function.
39084 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39086 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39087 count to 16 for CCISS and IDA.
39089 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39091 * normal/menu_text.c (grub_wait_after_message): Print a newline
39092 after waiting for user input.
39094 * loader/i386/linux.c: Include `<grub/normal.h>'.
39095 (grub_cmd_linux): Improve the error message about `ask' mode, by
39096 waiting for user input so it's not missed (we can do this, since
39097 user requested interaction).
39099 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39101 Added missing lst to grub-mkrescue
39103 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39104 and ${input_dir}/parttool.lst
39106 2009-04-30 David S. Miller <davem@davemloft.net>
39108 * util/hostdisk.c (device_is_wholedisk): New function.
39109 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39110 zero only if device_is_wholedisk() returns true.
39112 * util/hostdisk.c (convert_system_partition_to_system_disk):
39113 Handle virtual disk devices named /dev/vdiskX as found on sparc
39116 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39117 lettered partition specifier is found, convert to numbered.
39119 2009-04-29 David S. Miller <davem@davemloft.net>
39121 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39122 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39124 * normal/command.c: Add missing newline at end of file.
39126 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39128 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39129 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39130 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39131 ihandles have a 32-bit type but need to be stored in a "void *".
39133 2009-04-28 Pavel Roskin <proski@gnu.org>
39135 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39136 not disk. Adjust all dependencies.
39137 (grub_fs_uuid_close): Use grub_device_close(), not
39140 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39141 parent's partition, don't copy it by reference, as it gets freed
39144 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39146 Preboot hooks support
39148 * commands/boot.c (struct grub_preboot_t): new declaration
39149 (preboots_head): new variable
39150 (preboots_tail): likewise
39151 (grub_loader_register_preboot_hook): new function
39152 (grub_loader_unregister_preboot_hook): likewise
39153 (grub_loader_set): launch preboot hooks
39154 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39155 (grub_loader_register_preboot_hook): new declaration
39156 (grub_loader_unregister_preboot_hook): likewise
39158 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39162 * disk/scsi.c (grub_scsi_open): added missing cast when
39163 calling grub_dprintf
39165 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39167 Bug and warning fixes
39169 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39171 * commands/test.c (test_parse): fixed bug with file tests and corrected
39172 declaration of find_file
39174 2009-04-26 Pavel Roskin <proski@gnu.org>
39176 * Makefile.in: Don't install empty manual pages if help2man is
39177 missing. Use help2man option for output, not shell redirection.
39179 2009-04-26 David S. Miller <davem@davemloft.net>
39181 * util/grub-mkdevicemap.c (make_device_map): Add missing
39182 NESTED_FUNC_ATTR to process_device().
39184 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39188 * commands/test.c: rewritten to use bash-like test
39190 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39192 Parttool autoloading and improvements
39194 * Makefile.in (pkglib_DATA): add parttool.lst
39195 (parttool.lst): new target
39196 * genmk.rb: generate parttool-*
39197 (CLEANFILES): add #{parttool}
39198 (PARTTOOLFILES): new variable
39199 * genparttoollist.sh: new file
39200 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39201 (grub_pcpart_type): likewise
39202 * commands/parttool.c (helpmsg): new variable
39203 (grub_cmd_parttool): output help if not enough arguments are supplied
39205 (GRUB_MOD_INIT(parttool)): use helpmsg
39207 2009-04-24 David S. Miller <davem@davemloft.net>
39209 Avoiding opening same device multiple times in device iterator.
39211 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39212 and use it to build a list of partitions in iterate_disk() and
39213 iterate_partition().
39215 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39218 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39219 grub_devalias_iterate() result instead of unconditional 0.
39220 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39221 Also, capture hook return value, either directly or via
39222 grub_children_iterate(), and propagate to caller.
39223 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39224 grub_children_iterate): Return value is now 'int' instead of
39226 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39227 like a proper iterator, stopping when hooks return non-zero.
39228 (grub_devalias_iterate): Likewise.
39230 2009-04-23 David S. Miller <davem@davemloft.net>
39232 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39234 2009-04-22 David S. Miller <davem@davemloft.net>
39236 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39237 is larger than address_cells, use that value for address_cells too.
39239 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39240 IEEE1275_MAX_PATH_LEN): Define.
39241 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39242 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39243 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39244 'devtype'. Explicitly NULL terminate devalias expansion.
39246 * util/sparc64/ieee1275/misc.c: New file.
39247 * util/sparc64/ieee1275/grub-setup.c: New file.
39248 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39249 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39250 * util/sparc64/ieee1275/grub-install.in: New file.
39251 * util/ieee1275/ofpath.c: New file.
39252 * util/ieee1275/devicemap.c: New file.
39253 * util/devicemap.c: New file.
39254 * util/deviceiter.c: New file.
39255 * kern/sparc64/ieee1275/init.c: New file.
39256 * include/grub/util/ofpath.h: New file.
39257 * include/grub/util/deviceiter.h: New file.
39258 * util/grub-mkdevicemap.c: Include deviceiter.h.
39259 Implement using grub_util_emit_devicemap_entry and
39260 grub_util_iterate_devices.
39261 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39262 util/devicemap.c into grub-mkdevicemap
39263 * conf/i386-efi.rmk: Likewise.
39264 * conf/i386-ieee1275.rmk: Likewise.
39265 * conf/i386-pc.rmk: Likewise.
39266 * conf/powerpc-ieee1275.rmk: Likewise.
39267 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39268 images and installation utilities. Build kernel as image
39269 instead of as elf binary. Use common rules as much as possible.
39271 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39273 Correct GPT definition
39275 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39278 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39280 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39282 2009-04-19 David S. Miller <davem@davemloft.net>
39284 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39285 (grub_rescue_cmd_linux): Rename to...
39286 (grub_cmd_linux): and fix prototype.
39287 (grub_rescue_cmd_initrd): Rename to...
39288 (grub_cmd_initrd): and fix prototype.
39289 (cmd_linux, cmd_initrd): New.
39290 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39291 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39293 2009-04-17 Pavel Roskin <proski@gnu.org>
39295 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39297 (grub_ohci_transfer): Likewise.
39299 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39301 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39302 return without a value. Fix inconsistent indentation.
39304 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39305 match struct grub_fs.
39307 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39308 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39309 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39310 * commands/lspci.c (grub_lspci_iter): Likewise.
39312 2009-04-16 Bean <bean123ch@gmail.com>
39314 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39317 2009-04-15 Pavel Roskin <proski@gnu.org>
39319 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39320 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39321 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39324 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39326 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39327 that no multiple data or metadata areas are supported and `Unknown
39330 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39332 Move loader out of the kernel
39334 * kern/loader.c: moved to ...
39335 * commands/boot.c: ... moved here
39336 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39337 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39338 * include/grub/kernel.h (grub_machine_fini): export
39339 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39340 (grub_loader_set): likewise
39341 (grub_loader_unset): likewise
39342 (grub_loader_boot): likewise
39343 * conf/common.rmk: new module boot.mod
39344 (pkglib_MODULES): add boot.mod
39345 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39346 (grub_emu_SOURCES): likewise
39347 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39348 (grub_emu_SOURCES): likewise
39349 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39350 (grub_emu_SOURCES): likewise
39351 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39352 (grub_emu_SOURCES): likewise
39353 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39354 (grub_emu_SOURCES): likewise
39355 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39356 (grub_emu_SOURCES): likewise
39357 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39358 (grub_emu_SOURCES): likewise
39360 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39362 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39364 * kern/misc.c (grub_itoa): Removed function
39365 (grub_ltoa): likewise
39366 (grub_vsprintf): use grub_lltoa
39368 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39372 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39373 * conf/i386-coreboot.rmk: likewise
39374 * conf/i386-ieee1275.rmk: likewise
39375 * conf/powerpc-ieee1275.rmk: likewise
39377 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39379 * INSTALL: Add that `./autogen.sh' needs to be run before
39382 2009-04-14 Bean <bean123ch@gmail.com>
39384 * Makefile.in (pkglib_DATA): Add handler.lst.
39385 (handler.lst): New rule.
39387 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39388 * conf/i386-coreboot.rmk: Likewise.
39389 * conf/i386-ieee1275.rmk: Likewise.
39390 * conf/i386-efi.rmk: Likewise.
39391 * conf/x86_64-efi.rmk: Likewise.
39392 * conf/powerpc-ieee1275.rmk: Likewise.
39393 * conf/sparc64-ieee1275.rmk: Likewise.
39395 * genhandlerlist.sh: New file.
39397 * genmk.rb: Add rules to generate handler.lst.
39399 * include/grub/normal.h (grub_file_getline): New function definition.
39400 (read_handler_list): Likewise.
39401 (free_handler_list): Likewise.
39403 * include/grub/term.h (grub_term_register_input): Add name parameter
39404 for auto generation of handler.lst.
39405 (grub_term_register_output): Likewise.
39407 * normal/handler.c: New file.
39409 * normal/main.c (get_line): Renamed to grub_file_getline.
39410 (read_config_file): Use the newly renamed grub_file_getline.
39411 (read_command_list): Likewise.
39412 (read_fs_list): Likewise.
39413 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39414 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39416 * term/efi/console.c (grub_console_init): Add name parameter for auto
39417 generation of handler.lst.
39418 * term/gfxterm.c: Likewise.
39419 * term/i386/pc/at_keyboard.c: Likewise.
39420 * term/i386/pc/console.c: Likewise.
39421 * term/i386/pc/serial.c: Likewise.
39422 * term/i386/pc/vesafb.c: Likewise.
39423 * term/i386/pc/vga.c: Likewise.
39424 * term/i386/pc/vga_text.c: Likewise.
39425 * term/ieee1275/ofconsole.c: Likewise.
39426 * term/usb_keyboard.c: Likewise.
39428 2009-04-14 Bean <bean123ch@gmail.com>
39430 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39431 properly with null character.
39433 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39435 * configure: Remove.
39436 * config.h.in: Likewise.
39437 * stamp-h.in: Likewise.
39438 * DISTLIST: Likewise.
39439 * conf/common.mk: Likewise.
39440 * conf/i386-coreboot.mk: Likewise.
39441 * conf/i386-efi.mk: Likewise.
39442 * conf/i386-ieee1275.mk: Likewise.
39443 * conf/i386.mk: Likewise.
39444 * conf/i386-pc.mk: Likewise.
39445 * conf/powerpc-ieee1275.mk: Likewise.
39446 * conf/sparc64-ieee1275.mk: Likewise.
39447 * conf/x86_64-efi.mk: Likewise.
39449 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39452 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39453 David S. Miller <davem@davemloft.net>
39455 * util/hostdisk.c (make_device_name): Fix buffer length
39458 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39460 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39461 <sys/param.h> and <sys/sysctl.h>.
39462 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39463 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39464 opening the device and reset them afterwards.
39466 2009-04-13 Pavel Roskin <proski@gnu.org>
39468 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39469 Reported by John Stanley <jpsinthemix@verizon.net>
39471 2009-04-13 Robert Millan <rmh@aybabtu.com>
39473 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39474 that name for menuentries when appropriate.
39476 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39478 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39480 2009-04-13 Robert Millan <rmh@aybabtu.com>
39482 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39483 to Linux, simply abort telling the user it's no longer supported.
39485 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39487 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39488 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39489 `freebsd_loadenv' only when devices.hints exist.
39491 2009-04-13 Pavel Roskin <proski@gnu.org>
39493 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39495 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39497 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39499 (grub_drive): Likewise.
39501 2009-04-13 David S. Miller <davem@davemloft.net>
39503 * kern/sparc64/ieee1275/ieee1275.c: New file.
39504 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39505 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39506 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39507 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39508 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39509 grub_ieee1275_alloc_physmem): Declare new exported functions.
39511 * include/grub/sparc64/ieee1275/loader.h: New file.
39512 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39513 * include/grub/sparc64/kernel.h: Likewise.
39514 * loader/sparc64/ieee1275/linux.c: Likewise.
39516 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39517 (grub_fstest_SOURCES): Likewise.
39519 * util/hostdisk.c (make_device_name): Do not make any assumptions
39520 about the length of drive names.
39522 * kern/dl.c (grub_dl_load_file): Close file immediately when
39523 we are done using it.
39525 2009-04-12 David S. Miller <davem@davemloft.net>
39527 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39528 values. Noticed by Pavel Roskin.
39530 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39533 * genmk.rb: Add more flexible image type specification, also
39534 pass --strip-unneeded to objcopy.
39535 * conf/i386-pc.rmk: Use *_FORMAT.
39536 * conf/i386-pc.mk: Rebuilt.
39538 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39539 (OFDISK_HASH_SZ): Define.
39540 (ofdisk_hash): New hash table.
39541 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39542 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39543 instead of device phandle which is not unique.
39545 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39546 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39547 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39548 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39549 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39550 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39551 GRUB_KERNEL_MACHINE_DATA_END): Define.
39552 (grub_kernel_image_size, grub_total_module_size): Declare.
39554 2009-04-12 Pavel Roskin <proski@gnu.org>
39556 * configure.ac: Change the logic when we check for target tools.
39557 Do it when the target is specified and it's different from the
39558 specified value of the host.
39560 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39562 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39563 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39564 GNU/kFreeBSD. Check if a device is a character device. Use
39565 DIOCGMEDIASIZE to get the size.
39566 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39567 support for GNU/kFreeBSD.
39568 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39569 is a character device instead of a block device. Add support for
39570 FreeBSD device names.
39572 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39573 is a character device instead of a block device.
39575 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39576 is a character device instead of a block device.
39578 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39580 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39581 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39582 FreeBSD. Check if a device is a character device. Use
39583 DIOCGMEDIASIZE to get the size.
39584 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39585 support for FreeBSD.
39586 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39587 is a character device instead of a block device. Add support for
39588 FreeBSD device names.
39590 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39591 a character device instead of a block device.
39592 (grub_util_check_char_device): New function.
39594 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39595 a character device instead of a block device.
39597 * include/grub/util/getroot.h (grub_util_check_char_device): New
39600 2009-04-11 David S. Miller <davem@davemloft.net>
39602 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39604 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39605 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39606 function, if present.
39607 (__bswapdi2): Likewise.
39609 * include/grub/sparc64/ieee1275/boot.h: New file.
39610 * boot/sparc64/ieee1275/boot.S: Likewise.
39611 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39613 * kern/misc.c (grub_ltoa): New function.
39614 (grub_vsprintf): Use it to format 'long' integers.
39616 2009-04-10 David S. Miller <davem@davemloft.net>
39618 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39619 slots are of type grub_ieee1275_cell_t.
39620 (grub_nand_read): Likewise.
39621 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39622 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39623 macros are used to compare values in arg/ret block of the call.
39624 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39625 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39626 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39627 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39628 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39629 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39630 grub_ieee1275_close, grub_ieee1275_set_property,
39631 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39632 grub_ieee1275_cell_t.
39633 * kern/ieee1275/openfw.c (grub_map): Likewise.
39634 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39635 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39637 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39638 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39639 (grub_devalias_iterate): Likewise.
39641 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39645 * fs/ufs.c (INODE_NBLOCKS): new definition
39646 (struct grub_ufs_dirent): added fields for non-BSD dirents
39647 (grub_ufs_get_file_block): fixed double indirect handling
39648 (grub_ufs_lookup_symlink): use more robust way to determine whether
39650 (grub_ufs_find_file): support for non-BSD dirents
39651 (grub_ufs_dir): support for non-BSD dirents
39653 2009-04-10 Bean <bean123ch@gnail.com>
39655 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39656 attribute, otherwise the size would be wrong for i386 platform.
39658 * include/grub/pci.h (grub_pci_read_word): New inline function.
39659 (grub_pci_read_byte): Likewise.
39660 (grub_pci_write): Likewise.
39661 (grub_pci_write_word): Likewise.
39662 (grub_pci_write_byte): Likewise.
39664 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39666 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39667 (find_framebuf): Scan pci to locate the frame buffer address.
39669 * commands/efi/fixvideo.c: New file.
39671 * commands/efi/loadbios.c: Likewise.
39673 * commands/memrw.c: Likewise.
39675 * util/grub-dumpbios.in: Likewise.
39677 * conf/common.rmk (grub-dumpbios): New utility.
39678 (pkglib_MODULES): New module memrw.mod.
39679 (memrw_mod_SOURCE): New macro.
39680 (memrw_mod_CFLAGS): Likewise.
39681 (memrw_mod_LDFLAGS): Likewise.
39683 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39685 (loadbios_mod_SOURCE): New macro.
39686 (loadbios_mod_CFLAGS): Likewise.
39687 (loadbios_mod_LDFLAGS): Likewise.
39688 (fixvideo_mod_SOURCE): Likewise.
39689 (fixvideo_mod_CFLAGS): Likewise.
39690 (fixvideo_mod_LDFLAGS): Likewise.
39692 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39694 (loadbios_mod_SOURCE): New macro.
39695 (loadbios_mod_CFLAGS): Likewise.
39696 (loadbios_mod_LDFLAGS): Likewise.
39697 (fixvideo_mod_SOURCE): Likewise.
39698 (fixvideo_mod_CFLAGS): Likewise.
39699 (fixvideo_mod_LDFLAGS): Likewise.
39701 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39703 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39705 2009-04-07 David S. Miller <davem@davemloft.net>
39707 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39708 support for R_SPARC_OLO10 relocations. Fix compile warning for
39709 R_SPARC_WDISP30 case.
39710 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39712 2009-04-06 Pavel Roskin <proski@gnu.org>
39714 * include/grub/misc.h (ARRAY_SIZE): New macro.
39715 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39717 * loader/i386/linux.c (allocate_pages): Use free_pages().
39718 (grub_linux_unload): Don't use free_pages().
39719 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39720 wrong index. Treat all other modes as text modes.
39721 (grub_cmd_linux): Initialize vid_mode unconditionally to
39722 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39724 * commands/help.c (print_command_help): Use cmd->prio, not
39725 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39727 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39731 * parttool/pcpart.c: new file
39732 * commands/parttool.c: likewise
39733 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39734 (parttool_mod_SOURCES): new variable
39735 (parttool_mod_CFLAGS): likewise
39736 (parttool_mod_LDFLAGS): likewise
39737 (pcpart_mod_SOURCES): likewise
39738 (pcpart_mod_CFLAGS): likewise
39739 (pcpart_mod_LDFLAGS): likewise
39740 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39741 and parttool/pcpart.c
39742 * conf/i386-efi.rmk: likewise
39743 * conf/i386-ieee1275.rmk: likewise
39744 * conf/i386-pc.rmk: likewise
39745 * conf/powerpc-ieee1275.rmk: likewise
39746 * conf/sparc64-ieee1275.rmk: likewise
39747 * conf/x86_64-ieee1275.rmk: likewise
39749 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39751 Support for mtime and further expandability of dir command
39753 * include/grub/lib/datetime.h: moved to ...
39754 * include/grub/datetime.h: ... moved here and added
39755 declaration of grub_unixtime2datetime. All users updated
39756 * include/grub/fs.h: new syntax for dir and mtime functions in
39758 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39759 and GRUB_FSHELP_FLAGS_MASK
39760 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39761 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39762 (grub_ext2_mtime): new function
39763 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39764 (grub_hfsplus_mtime): new function
39765 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39766 (GRUB_UFS_ATTR_FILE): likewise
39767 (GRUB_UFS_ATTR_LNK): likewise
39768 (struct grub_ufs_sblock): new fields mtime
39769 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39771 (grub_ufs_dir): mtime support
39772 (grub_ufs_mtime): new function
39773 * fs/affs.c (grub_affs_dir): use new dir syntax
39774 * fs/afs.c (grub_afs_dir): likewise
39775 * fs/cpio.c (grub_cpio_dir): likewise
39776 * fs/fat.c (grub_fat_find_dir): likewise
39777 * fs/hfs.c (grub_hfs_dir): likewise
39778 * fs/iso9660.c (grub_iso9660_dir): likewise
39779 * fs/jfs.c (grub_jfs_dir): likewise
39780 * fs/minix.c (grub_minix_dir): likewise
39781 * fs/ntfs.c (grub_ntfs_dir): likewise
39782 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39783 * fs/sfs.c (grub_sfs_dir): likewise
39784 * fs/xfs.c (grub_xfs_dir): likewise
39785 * util/hostfs.c (grub_hostfs_dir): likewise
39786 * lib/datetime.c: moved to ...
39787 * normal/datetime.c: ... moved here
39788 (grub_unixtime2datetime): new function
39789 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39790 * normal/completion.c (iterate_dir): use new dir syntax
39791 * normal/misc.c (grub_normal_print_device_info): tell the
39792 last modification time of a volume
39793 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39794 * conf/common.rmk: added lib/datetime.c to ls.mod
39795 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39796 (normal_mod_SOURCES): likewise
39797 (datetime_mod_SOURCES): Removed lib/datetime.c
39798 * conf/i386-efi.rmk: likewise
39799 * conf/i386-ieee1275.rmk: likewise
39800 * conf/i386-pc.rmk: likewise
39801 * conf/powerpc-ieee1275.rmk: likewise
39802 * conf/sparc64-ieee1275.rmk: likewise
39803 * conf/x86_64-efi.rmk: likewise
39805 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39807 Trim trailing spaces in FAT label and support mtools-like labels
39809 * fs/fat.c (grub_fat_iterate_dir): New function based
39810 on grub_fat_find_dir
39811 (grub_fat_find_dir): use grub_fat_iterate_dir
39812 (grub_fat_label): likewise
39814 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39816 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39818 remove extraneous kernel_elf_HEADERS
39820 2009-04-04 Bean <bean123ch@gnail.com>
39822 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39824 * util/misc.c: Likewise.
39826 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39828 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39829 instead of grub_printf.
39831 2009-04-03 Robert Millan <rmh@aybabtu.com>
39833 * loader/i386/linux.c (grub_linux_setup_video): Fill
39834 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39835 values from `mode info' structure instead of hardcoded
39838 2009-04-01 Pavel Roskin <proski@gnu.org>
39840 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39842 * genmk.rb: Likewise.
39843 * configure.ac: Likewise.
39845 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39847 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39848 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39850 2009-04-01 David S. Miller <davem@davemloft.net>
39852 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39853 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39854 (grub_setjmp): Mark with 'returns_twice' attribute.
39855 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39856 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39857 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39859 2009-04-01 Robert Millan <rmh@aybabtu.com>
39861 Reapply fix from 2008-07-28 which was accidentally reverted; also
39862 perform the same fix to a similar check in same function.
39864 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39865 with the same number are found, just use issue a warning with
39866 grub_dprintf(), as this error has been reported to be non-fatal.
39868 2009-03-31 Pavel Roskin <proski@gnu.org>
39870 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39871 for cross-compilation.
39873 2009-03-30 Robert Millan <rmh@aybabtu.com>
39875 Fix i386-ieee1275 build.
39877 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39878 Remove declaration.
39880 2009-03-30 Pavel Roskin <proski@gnu.org>
39882 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39883 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39884 zero-terminated, rely only on the strlen value. Fix comparison
39885 of strings differing in length.
39887 2009-03-30 Robert Millan <rmh@aybabtu.com>
39889 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39890 checking for abi version. Improve error messages on BIOS to notify
39891 user about `linux16' command.
39893 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39897 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39898 in case of collision
39899 * disk/scsi.c (grub_scsi_open): free scsi in case of error
39901 2009-03-29 Robert Millan <rmh@aybabtu.com>
39903 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39904 set `vid_mode' accordingly.
39905 (grub_linux_boot): Process `vid_mode' and set video mode.
39907 2009-03-29 Robert Millan <rmh@aybabtu.com>
39909 * util/grub.d/10_linux.in (linux_entry): New function.
39910 Factorize generation of Linux boot entries.
39912 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
39914 Make the format of Environment Block plain text. The boot loader
39915 part is not tested well yet.
39917 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
39919 (envblk): Likewise.
39920 (usage): Remove "info" and "clear". Add "unset". Update the
39921 description of "set", as this does not delete variables any
39923 (create_envblk_file): Complete rewrite.
39924 (open_envblk_file): Likewise.
39925 (cmd_info): Removed.
39926 (cmd_list): Likewise.
39927 (cmd_set): Likewise.
39928 (cmd_clear): Likewise.
39929 (list_variables): New function.
39930 (write_envblk): Likewise.
39931 (set_variables): Likewise.
39932 (unset_variables): Likewise.
39933 (main): Complete rewrite.
39935 * commands/loadenv.c (buffer): Removed.
39936 (envblk): Likewise.
39937 (open_envblk_file): New function.
39938 (read_envblk_file): Complete rewrite.
39939 (grub_cmd_load_env): Likewise.
39940 (grub_cmd_list_env): Likewise.
39941 (struct blocklist): New struct.
39942 (free_blocklists): New function.
39943 (check_blocklists): Likewise.
39944 (write_blocklists): Likewise.
39945 (grub_cmd_save_env): Complete rewrite.
39947 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
39948 a plain text signature.
39949 (GRUB_ENVBLK_MAXLEN): Removed.
39950 (struct grub_envblk): Complete rewrite.
39951 (grub_envblk_find): Removed.
39952 (grub_envblk_insert): Likewise.
39953 (grub_envblk_open): New prototype.
39954 (grub_envblk_set): Likewise.
39955 (grub_envblk_delete): Put const to VALUE.
39956 (grub_envblk_iterate): Put const to NAME and VALUE.
39957 (grub_envblk_close): New prototype.
39958 (grub_envblk_buffer): New inline function.
39959 (grub_envblk_size): Likewise.
39961 * lib/envblk.c: Include grub/mm.h.
39962 (grub_env_find): Removed.
39963 (grub_envblk_open): New function.
39964 (grub_envblk_close): Likewise.
39965 (escaped_value_len): Likewise.
39966 (find_next_line): Likewise.
39967 (grub_envblk_insert): Removed.
39968 (grub_envblk_set): New function.
39969 (grub_envblk_delete): Complete rewrite.
39970 (grub_envblk_iterate): Likewise.
39972 2009-03-28 Robert Millan <rmh@aybabtu.com>
39974 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
39975 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
39976 variables. Use 16-bit loader.
39977 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
39979 * kern/i386/loader.S (grub_linux_boot): Rename to ...
39980 (grub_linux16_boot): ... this. Update all users.
39981 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
39982 (grub_linux_boot): ... this. Update all users.
39984 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
39985 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
39986 commands to `linux16' and `initrd16'.
39987 (GRUB_MOD_FINI(linux)): Rename to ...
39988 (GRUB_MOD_FINI(linux16)): ... this.
39990 2009-03-24 Pavel Roskin <proski@gnu.org>
39992 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
39993 not just for compilation.
39995 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
39997 Move multiboot helper out of kernel
39999 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40000 `loader/i386/multiboot_helper.S'.
40001 * conf/i386-coreboot.rmk: Likewise
40002 * conf/i386-ieee1275.rmk: Likewise
40004 * kern/i386/loader.S: Move multiboot helpers from here...
40005 * loader/i386/multiboot_helper.S: ...moved here
40006 * include/grub/i386/loader.h: Move declarations of multiboot
40007 helpers from here...
40008 * include/grub/i386/multiboot.h: ...moved here
40009 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40011 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40013 * kern/env.c (grub_env_context_open): Added an argument to specify
40014 whether a new context inherits exported variables from current
40015 one. This is useful when making a sandbox to interpret a config
40017 All callers updated.
40019 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40021 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40023 * kern/env.c (grub_env_context_close): Fix memory leaks.
40025 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40027 * normal/main.c (grub_normal_execute): Added an argument
40028 BATCH to specify if an interactive interface should be provided
40029 after reading a config file.
40030 All callers updated.
40031 (read_command_list): Prevent being executed twice.
40032 (read_fs_list): Likewise.
40034 * include/grub/normal.h (grub_normal_execute): Updated the
40037 2009-03-22 Pavel Roskin <proski@gno.org>
40039 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40041 * kern/i386/pc/startup.S: Likewise.
40042 * kern/i386/efi/startup.S: Likewise.
40043 * kern/i386/ieee1275/startup.S: Likewise.
40044 * kern/i386/coreboot/startup.S: Likewise.
40045 * kern/x86_64/efi/startup.S: Likewise.
40047 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40048 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40049 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40051 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40053 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40055 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40057 Use vaddr of correct segment for entry_point.
40059 2009-03-21 Bean <bean123ch@gmail.com>
40061 * commands/blocklist.c: Add include file <grub/command.h>, remove
40062 <grub/normal.h> and <grub/arg.h>.
40063 (grub_cmd_blocklist): Use the new command interface.
40064 (GRUB_MOD_INIT): Likewise.
40065 (GRUB_MOD_FINI): Likewise.
40066 * commands/boot.c: Likewise.
40067 * commands/cat.c: Likewise.
40068 * commands/cmp.c: Likewise.
40069 * commands/configfile.c: Likewise.
40070 * commands/crc.c: Likewise.
40071 * commands/echo.c: Likewise.
40072 * commands/halt.c: Likewise.
40073 * commands/handler.c: Likewise.
40074 * commands/hdparm.c: Likewise.
40075 * commands/help.c: Likewise.
40076 * commands/hexdump.c: Likewise.
40077 * commands/loadenv.c: Likewise.
40078 * commands/ls.c: Likewise.
40079 * commands/lsmmap.c: Likewise.
40080 * commands/lspci.c: Likewise.
40081 * commands/loadenv.c: Likewise.
40082 * commands/read.c: Likewise.
40083 * commands/reboot.c: Likewise.
40084 * commands/search.c: Likewise.
40085 * commands/sleep.c: Likewise.
40086 * commands/test.c: Likewise.
40087 * commands/usbtest.c: Likewise.
40088 * commands/videotest.c: Likewise.
40089 * commands/i386/cpuid.c: Likewise.
40090 * commands/i386/pc/halt.c: Likewise.
40091 * commands/i386/pc/play.c: Likewise.
40092 * commands/i386/pc/pxecmd.c: Likewise.
40093 * commands/i386/pc/vbeinfo.c: Likewise.
40094 * commands/i386/pc/vbetest.c: Likewise.
40095 * commands/ieee1275/suspend.c: Likewise.
40096 * disk/loopback.c: Likewise.
40097 * font/font_cmd.c: Likewise.
40098 * hello/hello.c: Likewise.
40099 * loader/efi/appleloader.c: Likewise.
40100 * loader/efi/chainloader.c: Likewise.
40101 * loader/i386/bsd.c: Likewise.
40102 * loader/i386/efi/linux.c: Likewise.
40103 * loader/i386/ieee1275/linux.c: Likewise.
40104 * loader/i386/linux.c: Likewise.
40105 * loader/i386/pc/chainloader.c: Likewise.
40106 * loader/i386/pc/linux.c: Likewise.
40107 * loader/powerpc/ieee1275/linux.c: Likewise.
40108 * loader/multiboot_loader.c: Likewise.
40109 * term/gfxterm.c: Likewise.
40110 * term/i386/pc/serial.c: Likewise.
40111 * term/terminfo.c: Likewise.
40113 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40114 * term/i386/pc/vga.c: Likewise.
40115 * video/readers/jpeg.c: Likewise.
40116 * video/readers/png.c: Likewise.
40117 * video/readers/tga.c: Likewise.
40119 * util/grub-fstest (cmd_loopback): Removed.
40120 (cmd_blocklist): Likewise.
40121 (cmd_ls): Likewise.
40122 (grub_register_command): Likewise.
40123 (grub_unregister_command): Likewise.
40124 (execute_command): Use grub_command_find to locate command and execute
40127 * include/grub/efi/chainloader.h: Removed.
40128 * loader/efi/chainloader_normal.c: Likewise.
40129 * loader/i386/bsd_normal.c: Likewise.
40130 * loader/i386/pc/chainloader_normal.c: Likewise.
40131 * loader/i386/pc/multiboot_normal.c: Likewise.
40132 * loader/linux_normal.c: Likewise.
40133 * loader/multiboot_loader_normal.c: Likewise.
40134 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40136 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40137 and grub_register_command_p1.
40139 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40140 kern/command.c, lib/arg.c and commands/extcmd.c.
40141 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40142 (minicmd_mod_SOURCES): New variable.
40143 (minicmd_mod_CFLAGS): Likewise.
40144 (minicmd_mod_LDFLAGS): Likewise.
40145 (extcmd_mod_SOURCES): Likewise.
40146 (extcmd_mod_CFLAGS): Likewise.
40147 (extcmd_mod_LDFLAGS): Likewise.
40148 (boot_mod_SOURCES): Removed.
40149 (boot_mod_CFLAGS): Likewise.
40150 (boot_mod_LDFLAGS): Likewise.
40152 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40154 (kernel_img_HEADERS): Add command.h.
40155 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40156 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40158 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40159 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40160 remove the corresponding normal mode command.
40161 (normal_mod_SOURCES): Remove normal/arg.c.
40162 * conf/i386-coreboot.rmk: Likewise.
40163 * conf/i386-efi.rmk: Likewise.
40164 * conf/i386-ieee1275.rmk: Likewise.
40165 * conf/powerpc-ieee1275.rmk: Likewise.
40166 * conf/x86_64-efi.rmk: Likewise.
40168 * include/grub/arg.h: Move from here ...
40169 * include/grub/lib/arg.h: ... to here.
40171 * normal/arg.c: Move from here ...
40172 * lib/arg.c: ... to here.
40174 * commands/extcmd.c: New file.
40175 * commands/minicmd.c: Likewise.
40176 * include/grub/command.h: Likewise.
40177 * include/grub/extcmd.h: Likewise.
40178 * kern/command.c: Likewise.
40179 * kern/corecmd.c: Likewise.
40181 * kern/list.c (grub_list_iterate): Return int instead of void.
40182 (grub_list_insert): New function.
40183 (grub_prio_list_insert): Likewise.
40185 * kern/rescue.c (grub_rescue_command): Removed.
40186 (grub_rescue_command_list): Likewise.
40187 (grub_rescue_register_command): Likewise.
40188 (grub_rescue_unregister_command): Likewise.
40189 (grub_rescue_cmd_boot): Move to minicmd.c
40190 (grub_rescue_cmd_help): Likewise.
40191 (grub_rescue_cmd_info): Likewise.
40192 (grub_rescue_cmd_boot): Likewise.
40193 (grub_rescue_cmd_testload): Likewise.
40194 (grub_rescue_cmd_dump): Likewise.
40195 (grub_rescue_cmd_rmmod): Likewise.
40196 (grub_rescue_cmd_lsmod): Likewise.
40197 (grub_rescue_cmd_exit): Likewise.
40198 (grub_rescue_print_devices): Moved to corecmd.c.
40199 (grub_rescue_print_files): Likewise.
40200 (grub_rescue_cmd_ls): Likewise.
40201 (grub_rescue_cmd_insmod): Likewise.
40202 (grub_rescue_cmd_set): Likewise.
40203 (grub_rescue_cmd_unset): Likewise.
40204 (attempt_normal_mode): Use grub_command_find to get normal module.
40205 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40206 commands, remove grub_rescue_register_command calls.
40208 * normal/command.c (grub_register_command): Removed.
40209 (grub_unregister_command): Likewise.
40210 (grub_command_find): Likewise.
40211 (grub_iterate_commands): Likewise.
40212 (rescue_command): Likewise.
40213 (export_command): Moved to corecmd.c.
40214 (set_command): Removed.
40215 (unset_command): Likewise.
40216 (insmod_command): Likewise.
40217 (rmmod_command): Likewise.
40218 (lsmod_command): Likewise.
40219 (grub_command_init): Likewise.
40221 * normal/completion.c (iterate_command): Use cmd->prio to check for
40223 (complete_arguments): Use grub_extcmd_t structure to find options.
40224 (grub_normal_do_completion): Change function grub_iterate_commands to
40225 grub_command_iterate.
40227 * normal/execute.c (grub_script_execute_cmd): No need to parse
40230 * normal/main.c (grub_dyncmd_dispatcher): New function.
40231 (read_command_list): Register unload commands as dyncmd.
40232 (grub_cmd_normal): Use new command interface, register rescue,
40233 unregister normal at entry, register normal, unregister rescue at exit.
40235 * include/grub/list.h (grub_list_test_t): New type.
40236 (grub_list_iterate): Return int instead of void.
40237 (grub_list_insert): New function.
40238 (GRUB_AS_NAMED_LIST_P): New macro.
40239 (GRUB_AS_PRIO_LIST): Likewise.
40240 (GRUB_AS_PRIO_LIST_P): Likewise.
40241 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40242 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40243 (grub_prio_list): New structure.
40244 (grub_prio_list_insert): New function.
40245 (grub_prio_list_remove): New inline function.
40247 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40248 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40249 (GRUB_COMMAND_FLAG_MENU): Likewise.
40250 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40251 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40252 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40253 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40254 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40255 (grub_command): Likewise.
40256 (grub_register_command): Likewise.
40257 (grub_command_find): Likewise.
40258 (grub_iterate_commands): Likewise.
40259 (grub_command_init): Likewise.
40260 (grub_arg_parse): Likewise.
40261 (grub_arg_show_help): Likewise.
40263 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40264 (grub_rescue_unregister_command): Likewise.
40266 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40267 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40268 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40270 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40271 grub_rescue_cmd_initrd.
40272 * include/grub/i386/loader.h: Likewise.
40273 * include/grub/x86_64/loader.h: Likewise.
40275 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40277 2009-03-21 Bean <bean123ch@gmail.com>
40279 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40280 instead of stat in mingw environment.
40282 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40284 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40286 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40289 2009-03-21 Bean <bean123ch@gmail.com>
40291 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40292 out of range error.
40294 2009-03-18 Michel Dänzer <michel@daenzer.net>
40296 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40297 checking inode flags for EXT4_EXTENTS_FLAG.
40299 2009-03-18 Robert Millan <rmh@aybabtu.com>
40301 * loader/i386/linux.c: Include `<grub/video.h>' and
40302 `<grub/i386/pc/vbe.h>'..
40303 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40304 (grub_linux32_boot): Attempt to configure video settings with
40305 grub_linux_setup_video().
40306 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40307 to avoid grub_console_fini() which would step out of graphical mode
40310 2009-03-14 Robert Millan <rmh@aybabtu.com>
40312 Fix build on powerpc.
40313 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40315 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40317 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40318 background image command.
40320 2009-03-12 Colin D Bennett <colin@gibibit.com>
40322 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40323 (grub_gfxterm_putchar): Extract pairs of identical calls to
40324 draw_cursor out of conditional blocks.
40326 2009-03-11 Pavel Roskin <proski@gnu.org>
40328 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40329 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40331 2009-03-11 Robert Millan <rmh@aybabtu.com>
40333 * loader/i386/multiboot_elfxx.c
40334 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40336 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40338 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40341 2009-03-11 Robert Millan <rmh@aybabtu.com>
40343 * loader/i386/multiboot.c (code_size): New variable.
40344 (grub_multiboot): Define offsets by adding to `code_size' rather
40345 than subtracting from `grub_multiboot_payload_size'. Provide
40346 4-byte alignment to MBI and others by increasing
40347 `boot_loader_name_length' appropriately.
40349 * loader/i386/multiboot_elfxx.c
40350 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40352 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40354 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40357 2009-03-08 Robert Millan <rmh@aybabtu.com>
40359 Make loader/i386/linux.c usable on i386-pc again.
40361 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40363 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40366 2009-03-07 Bean <bean123ch@gmail.com>
40368 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40371 2009-03-06 Robert Millan <rmh@aybabtu.com>
40373 Fix display issue on terminals with screen size other than 80x25
40374 (e.g. gfxterm with resolution higher than 640x480).
40376 * normal/main.c (grub_normal_init_page): Display title text in a
40377 position relative to the center of the terminal instead of relying
40378 on a hardcoded offset.
40380 2009-03-04 Robert Millan <rmh@aybabtu.com>
40382 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40385 * Makefile.in (host_kernel): New variable.
40386 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40387 scripts instead of just the windows one.
40388 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40390 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40392 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40394 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40395 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40396 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40397 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40398 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40399 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40401 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40403 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40404 or if there's no space for the disk label and print the partition number on a
40407 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40409 * util/misc.c: Include <time.h>.
40410 (grub_millisleep): New function.
40412 2009-03-04 Bean <bean123ch@gmail.com>
40414 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40415 another option -mno-red-zone.
40417 * commands/handler.c: Change module description.
40419 * kern/handler.c: Add missing space at the end of description line.
40421 * kern/list.c: Likewise.
40423 2009-03-03 Robert Millan <rmh@aybabtu.com>
40425 Move more components to the relocation area, and fix mbi pointer
40426 handling to use the destination rather than the origin (thanks to
40427 Vladimir Serbinenko for spotting).
40429 * loader/i386/multiboot.c (mbi_dest): New variable.
40430 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40431 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40434 2009-03-01 Bean <bean123ch@gmail.com>
40436 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40437 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40438 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40439 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40441 * loader/i386/efi/linux.c (acpi_guid): New variable.
40442 (acpi_guid): Likewise.
40443 (EBDA_SEG_ADDR): New constant.
40444 (LOW_MEM_ADDR): Likewise.
40445 (FAKE_EBDA_SEG): Likewise.
40446 (fake_bios_data): New function.
40447 (grub_linux_boot): Call fake_bios_data.
40449 2009-03-01 Bean <bean123ch@gmail.com>
40451 * commands/terminal.c: Removed.
40453 * commands/handler.c: New file.
40455 * include/grub/list.h: Likewise.
40457 * include/grub/handler.h: Likewise.
40459 * kern/list.c: Likewise.
40461 * kern/handler.c: Likewise.
40463 * kern/term.h: Include header file <grub/handler.h>.
40464 (grub_term_input): Move next field to the beginning.
40465 (grub_term_output): Likewise.
40466 (grub_term_input_class): New variable.
40467 (grub_term_output_class): Likewise.
40468 (grub_term_register_input): Changed to inline function.
40469 (grub_term_register_output): Likewise.
40470 (grub_term_unregister_input): Likewise.
40471 (grub_term_unregister_output): Likewise.
40472 (grub_term_set_current_input): Likewise.
40473 (grub_term_set_current_output): Likewise.
40474 (grub_term_get_current_input): Likewise.
40475 (grub_term_get_current_output): Likewise.
40476 (grub_term_iterate_input): Removed.
40477 (grub_term_iterate_output): Likewise.
40479 * kern/term.c (grub_term_list_input): Removed.
40480 (grub_term_list_output): Likewise.
40481 (grub_term_input_class): New variable.
40482 (grub_term_output_class): Likewise.
40483 (grub_cur_term_input): Change variable as macro.
40484 (grub_cur_term_output): Likewise.
40485 (grub_term_register_input): Removed.
40486 (grub_term_register_output): Likewise.
40487 (grub_term_unregister_input): Likewise.
40488 (grub_term_unregister_output): Likewise.
40489 (grub_term_set_current_input): Likewise.
40490 (grub_term_set_current_output): Likewise.
40491 (grub_term_iterate_input): Likewise.
40492 (grub_term_iterate_output): Likewise.
40493 (grub_term_get_current_input): Likewise.
40494 (grub_term_get_current_output): Likewise.
40496 * util/grub-editenv.c: Include header file <grub/handler.h>.
40497 (grub_term_get_current_input): Removed.
40498 (grub_term_get_current_output): Likewise.
40499 (grub_term_input_class): New variable.
40500 (grub_term_output_class): Likewise.
40502 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40503 (grub_term_get_current_output): Likewise.
40504 (grub_term_input_class): New variable.
40505 (grub_term_output_class): Likewise.
40507 * util/grub-probe.c (grub_term_get_current_input): Removed.
40508 (grub_term_get_current_output): Likewise.
40509 (grub_term_input_class): New variable.
40510 (grub_term_output_class): Likewise.
40512 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40513 (grub_term_get_current_output): Likewise.
40514 (grub_term_input_class): New variable.
40515 (grub_term_output_class): Likewise.
40517 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40518 (terminal_mod_SOURCES): Likewise.
40519 (terminal_mod_CFLAGS): Likewise.
40520 (terminal_mod_LDFLAGS): Likewise.
40522 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40524 (kernel_img_SOURCES): Add list.c and handler.c.
40525 (kernel_img_HEADERS): Add list.h and handler.h.
40527 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40529 (kernel_mod_SOURCES): Add list.c and handler.c.
40530 (kernel_mod_HEADERS): Add list.h and handler.h.
40532 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40534 (kernel_elf_SOURCES): Add list.c and handler.c.
40535 (kernel_elf_HEADERS): Add list.h and handler.h.
40537 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40539 (kernel_elf_SOURCES): Add list.c and handler.c.
40540 (kernel_elf_HEADERS): Add list.h and handler.h.
40542 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40544 (kernel_mod_SOURCES): Add list.c and handler.c.
40545 (kernel_mod_HEADERS): Add list.h and handler.h.
40547 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40549 (kernel_elf_SOURCES): Add list.c and handler.c.
40550 (kernel_elf_HEADERS): Add list.h and handler.h.
40552 2009-02-27 Robert Millan <rmh@aybabtu.com>
40554 Factorize elf32 / elf64 code in Multiboot loader. This will
40555 prevent it from getting out of sync again.
40557 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40558 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40559 grub_multiboot_load_elf64): Move from here ...
40560 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40561 grub_multiboot_load_elf): ... to here (new file).
40563 2009-02-27 Robert Millan <rmh@aybabtu.com>
40565 * util/grub.d/10_linux.in: Rename "single-user mode" to
40568 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40570 Don't leak in SCSI code.
40571 * disk/scsi.c (grub_scsi_close): free `scsi'.
40573 2009-02-27 Robert Millan <rmh@aybabtu.com>
40575 * loader/i386/pc/multiboot.c: Move from here ...
40576 * loader/i386/multiboot.c: ... to here. Update all users.
40578 2009-02-27 Robert Millan <rmh@aybabtu.com>
40580 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40581 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40583 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40585 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40588 2009-02-27 Robert Millan <rmh@aybabtu.com>
40590 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40591 `0x' qualifier as 0 when base is specified as parameter).
40593 2009-02-24 Bean <bean123ch@gmail.com>
40595 * configure.ac: Check for -mcmodel=large in x86_64 target.
40597 * include/grub/efi/api.h (efi_call_10): New macro.
40598 (efi_wrap_10): New function.
40600 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40601 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40602 (GRUB_PE32_REL_BASED_LOW): Likewise.
40603 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40604 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40605 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40606 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40607 (GRUB_PE32_REL_BASED_REL): Likewise.
40608 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40609 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40610 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40612 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40615 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40616 (efi_wrap_10): New function.
40618 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40620 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40621 MB/MBP model (NV chipset).
40622 (devdata_devs): Add devpath_5 to the list.
40624 * load/i386/efi/linux.c (video_base): Remove variable.
40625 (RGB_MASK): New macro.
40626 (RGB_MAGIC): Likewise.
40627 (LINE_MIN): Likewise.
40628 (LINE_MAX): Likewise.
40629 (FBTEST_STEP): Likewise.
40630 (FBTEST_COUNT): Likewise.
40631 (fb_list): New variable.
40632 (grub_find_video_card): Remove function.
40633 (find_framebuf): New function.
40634 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40637 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40638 problem for x86_64.
40640 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40642 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40644 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40647 2009-02-22 Robert Millan <rmh@aybabtu.com>
40649 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40650 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40651 in our relocation, instead of using it directly from heap. Also
40652 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40654 2009-02-21 Robert Millan <rmh@aybabtu.com>
40656 Implement USB keyboard support (based on patch by Marco Gerards)
40658 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40659 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40660 (usb_keyboard_mod_LDFLAGS): New variables.
40662 * term/usb_keyboard.c: New file.
40664 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40666 Corrected wrong declaration
40668 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40670 2009-02-14 Christian Franke <franke@computer.org>
40672 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40673 (grub_lspci_iter): Print class code and programming interface byte.
40675 2009-02-14 Christian Franke <franke@computer.org>
40677 * gendistlist.sh: Ignore `.svn' directories.
40679 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40681 * fs/fat.c: Add 2009 to Copyright line.
40683 2009-02-14 Christian Franke <franke@computer.org>
40685 * commands/hdparm.c: New file. Provides `hdparm' command
40686 which sends ATA commands via grub_disk_ata_pass_through ().
40688 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40690 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40691 and <grub/cpu/io.h> to include/grub/ata.h.
40692 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40693 (GRUB_CDROM_SECTOR_SIZE): Remove.
40694 (GRUB_ATA_*): Move to include/grub/ata.h.
40695 (GRUB_ATAPI_*): Likewise.
40696 (enum grub_ata_commands): Likewise.
40697 (enum grub_ata_timeout_milliseconds): Likewise.
40698 (struct grub_ata_device): Likewise.
40699 (grub_ata_regset): Likewise.
40700 (grub_ata_regget): Likewise.
40701 (grub_ata_regset2): Likewise.
40702 (grub_ata_regget2): Likewise.
40703 (grub_ata_check_ready): Likewise.
40704 (grub_ata_wait_not_busy): Remove static, exported in
40705 include/grub/ata.h.
40706 (grub_ata_wait_drq): Likewise.
40707 (grub_ata_pio_read): Likewise.
40709 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40710 function for hdparm.mod.
40712 * include/grub/ata.h: New file, contains declarations from
40714 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40716 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40717 (grub_disk_ata_pass_through): New exported variable.
40719 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40721 2009-02-13 Colin D Bennett <colin@gibibit.com>
40723 Support multiple fallback entries, and provide an API to support
40724 executing default+fallback menu entries. Renamed the `terminal' menu
40727 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40728 variable declaration.
40729 (grub_menu_execute_callback): New structure declaration.
40730 (grub_menu_execute_callback_t): New typedef.
40731 (grub_menu_execute_with_fallback): New function declaration.
40732 (grub_menu_get_entry): Likewise.
40733 (grub_menu_get_timeout): Likewise.
40734 (grub_menu_set_timeout): Likewise.
40736 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40738 * normal/menu.c (grub_wait_after_message): Moved to
40739 `normal/menu_text.c'.
40740 (draw_border): Likewise.
40741 (print_message): Likewise.
40742 (print_entry): Likewise.
40743 (print_entries): Likewise.
40744 (grub_menu_init_page): Likewise.
40745 (get_entry_number): Likewise.
40746 (print_timeout): Likewise.
40747 (run_menu): Likewise.
40748 (grub_menu_execute_entry): Likewise.
40749 (show_text_menu): Likewise.
40750 (get_and_remove_first_entry_number): New function.
40751 (grub_menu_execute_with_fallback): Likewise.
40752 (get_entry): Renamed to ...
40753 (grub_menu_get_entry): .. this and made it global.
40754 (get_timeout): Renamed to ...
40755 (grub_menu_get_timeout): ... this and made it global.
40756 (set_timeout): Renamed to ...
40757 (grub_menu_set_timeout): ... this and made it global.
40758 (grub_normal_terminal_menu_viewer): Renamed to ...
40759 (grub_normal_text_menu_viewer): ... this.
40761 * normal/menu_text.c: New file. Extracted text-menu-specific code
40762 from normal/menu.c.
40764 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40765 (normal_mod_SOURCES): Likewise.
40767 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40768 (normal_mod_SOURCES): Likewise.
40770 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40771 (normal_mod_SOURCES): Likewise.
40773 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40774 (normal_mod_SOURCES): Likewise.
40776 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40777 (normal_mod_SOURCES): Likewise.
40779 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40780 (normal_mod_SOURCES): Likewise.
40782 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40783 (normal_mod_SOURCES): Likewise.
40785 2009-02-11 Robert Millan <rmh@aybabtu.com>
40787 * util/grub.d/00_header.in: Update old reference to `font' command.
40789 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40791 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40793 Based on patch from Javier Martín.
40795 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40797 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40798 to avoid false positives with FAT.
40799 (grub_fstest_SOURCES): Likewise.
40800 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40801 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40802 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40803 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40804 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40805 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40807 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40809 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40810 bpb.version_specific.fat12_or_fat16.fstype and
40811 bpb.version_specific.fat32.fstype.
40813 2009-02-08 Robert Millan <rmh@aybabtu.com>
40815 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40817 2009-02-08 Robert Millan <rmh@aybabtu.com>
40819 * Makefile.in (host_os, host_cpu): New variables.
40820 (target_os): Remove. Update all users.
40822 2009-02-08 Marco Gerards <marco@gnu.org>
40824 * Makefile.in (enable_grub_emu_usb): New variable.
40825 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40826 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40827 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40828 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40829 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40830 `usbtest.mod' and `usbms.mod'.
40831 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40832 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40833 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40834 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40835 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40838 * disk/usbms.c: New file.
40840 * include/grub/usb.h: Likewise.
40842 * include/grub/usbtrans.h: Likewise.
40844 * include/grub/usbdesc.h: Likewise.
40846 * bus/usb/usbtrans.c: Likewise.
40848 * bus/usb/ohci.c: Likewise.
40850 * bus/usb/uhci.c: Likewise.
40852 * bus/usb/usbhub.c: Likewise.
40854 * bus/usb/usb.c: Likewise.
40856 * commands/usbtest.c: Likewise.
40858 * util/usb.c: Likewise.
40860 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40862 * configure.ac: Test for libusb presence.
40864 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40866 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40868 * kern/mm.c: Add more comments.
40870 2009-02-08 Robert Millan <rmh@aybabtu.com>
40872 Patch from Javier Martín.
40873 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40874 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40876 2009-02-08 Robert Millan <rmh@aybabtu.com>
40878 * fs/cpio.c: Split tar functionality to ...
40879 * fs/tar.c: ... here (new file). Update all users.
40881 2009-02-07 Robert Millan <rmh@aybabtu.com>
40883 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40884 backward-incompatible features.
40886 Based on patch from Javier Martín, with some adjustments.
40888 2009-02-07 Michael Scherer <misc@mandriva.org>
40890 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40892 2009-02-07 Robert Millan <rmh@aybabtu.com>
40894 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40895 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40896 after the RAID stuff.
40898 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40900 Fixes problem when running vbetest command as reported by
40901 Vladimir Serbinenko <phcoder@gmail.com>.
40903 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40905 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
40907 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40908 /dev/md/NpN style mdraid devices.
40910 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40912 * util/unifont2pff.rb: Remove.
40914 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40916 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
40919 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40921 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
40922 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40923 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40924 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40925 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40926 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40927 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40929 2009-02-02 Christian Franke <franke@computer.org>
40931 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
40933 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
40935 * INSTALL: Note that we now require at least autoconf 2.59 and
40936 that LZO is optional.
40938 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40940 Base on patch on bug #24154 created by Tomas Tintera
40941 <trosos@seznam.cz>.
40943 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
40945 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40947 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
40948 <bero@arklinux.org>.
40950 * normal/parser.y (script_init): Add missing semicolon.
40952 2009-01-31 Colin D Bennett <colin@gibibit.com>
40954 * normal/main.c: Add include to grub/menu_viewer.h.
40955 (free_menu_entry_classes): Added.
40956 (grub_normal_menu_addentry): Added class property handling.
40957 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
40958 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
40960 * normal/menu_viewer.c: New file.
40962 * normal/menu.c (run_menu_entry): Renamed to ...
40963 (grub_menu_execute_entry): ... this and made it as global.
40964 (grub_menu_run): Renamed to ...
40965 (show_text_menu): ... this and made it local.
40966 (show_text_menu): Adapt to new function names.
40967 (grub_normal_terminal_menu_viewer): New global variable.
40969 * include/grub/menu.h: New file.
40971 * include/grub/menu_viewer.h: New file.
40973 * include/grub/normal.h: Added include to grub/menu.h.
40974 (grub_menu_entry): Moved to include/grub/menu.h.
40975 (grub_menu_entry_t): Likewise.
40976 (grub_menu): Likewise.
40977 (grub_menu_t): Likewise.
40978 (grub_normal_terminal_menu_viewer): Added.
40979 (grub_menu_execute_entry): Likewise.
40980 (grub_menu_run): Removed.
40982 * DISTLIST: Added include/grub/menu.h.
40983 Added include/grub/menu_viewer.h.
40984 Added normal/menu_viewer.c.
40986 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
40988 * normal/execute.c (grub_script_execute_menuentry): Changed to use
40989 arglist for menutitle arguments.
40991 * normal/main.c (grub_normal_menu_addentry): Likewise.
40993 * normal/parser.y (menuentry): Likewise.
40995 * normal/script.c (grub_script_create_cmdmenu): Likewise.
40997 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
40998 (grub_script_create_cmdmenu): Likewise.
41000 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41002 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41005 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41007 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41009 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41011 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41013 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41015 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41017 2009-01-30 Christian Franke <franke@computer.org>
41019 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41020 in option help text.
41022 2009-01-27 Pavel Roskin <proski@gnu.org>
41024 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41026 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41028 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41030 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41032 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41033 unregister function.
41035 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41037 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41039 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41041 * util/grub-mkfont.c (usage): Fix typo.
41043 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41045 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41047 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41049 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41051 * kern/misc.c (grub_strcasecmp): New function.
41052 (grub_strcasecmp): Use grub_size_t instead of int for length.
41054 * include/grub/misc.h: Update function prototypes.
41056 2009-01-26 Robert Millan <rmh@aybabtu.com>
41058 * configure.ac: Fix cross-compilation check.
41060 2009-01-22 Christian Franke <franke@computer.org>
41062 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41063 (precision) digit string. Allow `.format2' without `format1' (width).
41064 Limit input chars for `%s' output to `format2' if specified. This is
41065 compatible with standard printf ().
41067 2009-01-22 Christian Franke <franke@computer.org>
41069 * disk/ata.c (grub_ata_wait_status): Replace by ...
41070 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41071 other status bits may be invalid while BSY is asserted.
41072 (grub_ata_check_ready): New function.
41073 (grub_ata_cmd): Removed.
41074 (grub_ata_wait_drq): New function.
41075 (grub_ata_strncpy): Remove inline.
41076 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41077 and error check now done by grub_ata_wait_drq ().
41078 (grub_ata_pio_write): Likewise.
41079 (grub_atapi_identify): Set DEV before check for !BSY. Use
41080 grub_ata_wait_drq () to wait for data.
41081 (grub_ata_device_initialize): Add status register check to
41082 detect missing SATA slave devices. Add debug messages.
41083 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41084 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41085 transfer loop by grub_ata_pio_write ().
41086 (grub_ata_identify): Set DEV before check for !BSY. Use
41087 grub_ata_wait_drq () to wait for data.
41088 (grub_ata_setaddress): Set DEV before check for !BSY.
41089 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41090 read/write in one loop. Fix invalid command on write. Fix incomplete
41091 command on (size % batch) == 0. Add missing error check after write of
41092 last block. Add debug messages.
41093 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41095 2009-01-19 Christian Franke <franke@computer.org>
41097 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41098 (GRUB_ATAPI_IREASON_*): Likewise.
41099 (grub_ata_pio_write): Fix timeout error return.
41100 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41101 (grub_atapi_wait_drq): New function.
41102 (grub_atapi_packet): New parameter `size'.
41103 Use grub_atapi_wait_drq () and direct write instead of
41104 grub_ata_pio_write ().
41105 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41106 reads the number of bytes requested by the device for each DRQ
41108 (grub_atapi_write): Remove old implementation, return not
41109 implemented instead.
41111 2009-01-19 Christian Franke <franke@computer.org>
41113 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41114 of 512 to calculate data size.
41115 (grub_scsi_read12): Likewise.
41116 (grub_scsi_write10): Likewise.
41117 (grub_scsi_write12): Likewise.
41118 (grub_scsi_read): Adjust size according to blocksize.
41119 Add checks for invalid blocksize and unaligned transfer.
41121 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41123 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41125 * term/gfxterm.c (write_char): Fix background rendering for wide
41128 2009-01-19 Robert Millan <rmh@aybabtu.com>
41130 * config.guess: Update to latest version from config git.
41131 * config.sub: Likewise.
41133 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41135 * Makefile.in: Change font compilation to use new grub-mkfont instead
41138 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41139 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41140 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41141 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41142 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41143 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41144 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41145 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41146 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41148 2009-01-16 Christian Franke <franke@computer.org>
41150 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41151 (enum grub_ata_timeout_milliseconds): New enum.
41152 (grub_ata_wait_status): Add parameter milliseconds.
41153 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41154 recovery from timed-out commands.
41155 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41156 return grub_errno instead of REG_ERROR.
41157 (grub_ata_pio_write): Add parameter milliseconds.
41158 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41159 Pass milliseconds to grub_ata_wait_status () and
41160 grub_ata_pio_read ().
41161 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41162 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41163 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41164 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41165 It is not suitable for device detection, because DEV bit is ignored,
41166 the command may run too long, and not all devices set the signature
41168 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41169 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41170 Fix device selection, DEV bit must be set first to address the registers
41171 of the correct device.
41172 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41173 grub_ata_pio_read/write ().
41174 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41175 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41177 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41179 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41181 2009-01-13 Bean <bean123ch@gmail.com>
41183 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41185 2009-01-13 Bean <bean123ch@gmail.com>
41187 * Makefile.in: (enable_grub_mkfont): New variable.
41188 (freetype_cflags): Likewise.
41189 (freetype_libs): Likewise.
41191 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41192 (grub_mkfont_SOURCES): New variable.
41193 (grub_mkfont_CFLAGS): Likewise.
41194 (grub_mkfont_LDFLAGS): Likewise.
41196 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41197 library if `--enable-grub-mkfont' is requested.
41198 (enable_grub_mkfont): New variable.
41199 (freetype_cflags): Likewise.
41200 (freetype_libs): Likewise.
41202 * util/grub-mkfont.c: New file.
41204 2009-01-12 Christian Franke <franke@computer.org>
41206 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41207 mode check. Fix setting of compat_use[].
41209 2009-01-10 Robert Millan <rmh@aybabtu.com>
41211 Update a few copyright years which we forgot to do in 2008 (only for
41212 files whose changes made in 2008 were copyright-significant)
41214 * Makefile.in: Add 2008 to Copyright line.
41215 * disk/ieee1275/ofdisk.c: Likewise.
41216 * disk/efi/efidisk.c: Likewise.
41217 * kern/dl.c: Likewise.
41218 * kern/sparc64/ieee1275/init.c: Likewise.
41219 * kern/mm.c: Likewise.
41220 * kern/efi/mm.c: Likewise.
41221 * boot/i386/pc/boot.S: Likewise.
41222 * genfslist.sh: Likewise.
41223 * fs/iso9660.c: Likewise.
41224 * fs/hfs.c: Likewise.
41225 * fs/jfs.c: Likewise.
41226 * fs/minix.c: Likewise.
41227 * fs/ufs.c: Likewise.
41228 * gensymlist.sh.in: Likewise.
41229 * genkernsyms.sh.in: Likewise.
41230 * include/grub/misc.h: Likewise.
41231 * include/grub/types.h: Likewise.
41232 * include/grub/symbol.h: Likewise.
41233 * include/grub/elf.h: Likewise.
41234 * include/grub/kernel.h: Likewise.
41235 * include/grub/disk.h: Likewise.
41236 * include/grub/dl.h: Likewise.
41237 * include/grub/i386/linux.h: Likewise.
41238 * include/grub/i386/pc/biosdisk.h: Likewise.
41239 * include/grub/efi/api.h: Likewise.
41240 * include/grub/efi/pe32.h: Likewise.
41241 * include/grub/util/misc.h: Likewise.
41242 * normal/execute.c: Likewise.
41243 * normal/arg.c: Likewise.
41244 * normal/completion.c: Likewise.
41245 * normal/lexer.c: Likewise.
41246 * normal/parser.y: Likewise.
41247 * normal/misc.c: Likewise.
41248 * commands/i386/pc/vbeinfo.c: Likewise.
41249 * commands/hexdump.c: Likewise.
41250 * commands/terminal.c: Likewise.
41251 * commands/ls.c: Likewise.
41252 * commands/help.c: Likewise.
41253 * partmap/pc.c: Likewise.
41254 * loader/efi/chainloader.c: Likewise.
41255 * loader/multiboot_loader.c: Likewise.
41256 * loader/i386/pc/multiboot2.c: Likewise.
41257 * term/efi/console.c: Likewise.
41258 * term/i386/pc/serial.c: Likewise.
41259 * util/lvm.c: Likewise.
41260 * util/console.c: Likewise.
41261 * util/i386/efi/grub-mkimage.c: Likewise.
41262 * util/raid.c: Likewise.
41264 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41266 * commands/videotest.c: Removed include to grub/machine/memory.h.
41268 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41269 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41270 (video_mod_SOURCES): Removed.
41271 (video_mod_CFLAGS): Likewise.
41272 (video_mod_LDFLAGS): Likewise.
41273 (gfxterm_mod_SOURCES): Likewise.
41274 (gfxterm_mod_CFLAGS): Likewise.
41275 (gfxterm_mod_LDFLAGS): Likewise.
41276 (videotest_mod_SOURCES): Likewise.
41277 (videotest_mod_CFLAGS): Likewise.
41278 (videotest_mod_LDFLAGS): Likewise.
41279 (bitmap_mod_SOURCES): Likewise.
41280 (bitmap_mod_CFLAGS): Likewise.
41281 (bitmap_mod_LDFLAGS): Likewise.
41282 (tga_mod_SOURCES): Likewise.
41283 (tga_mod_CFLAGS): Likewise.
41284 (tga_mod_LDFLAGS): Likewise.
41285 (jpeg_mod_SOURCES): Likewise.
41286 (jpeg_mod_CFLAGS): Likewise.
41287 (jpeg_mod_LDFLAGS): Likewise.
41288 (png_mod_SOURCES): Likewise.
41289 (png_mod_CFLAGS): Likewise.
41290 (png_mod_LDFLAGS): Likewise.
41292 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41293 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41294 (video_mod_SOURCES): Added.
41295 (video_mod_CFLAGS): Likewise.
41296 (video_mod_LDFLAGS): Likewise.
41297 (videotest_mod_SOURCES): Likewise.
41298 (videotest_mod_CFLAGS): Likewise.
41299 (videotest_mod_LDFLAGS): Likewise.
41300 (bitmap_mod_SOURCES): Likewise.
41301 (bitmap_mod_CFLAGS): Likewise.
41302 (bitmap_mod_LDFLAGS): Likewise.
41303 (tga_mod_SOURCES): Likewise.
41304 (tga_mod_CFLAGS): Likewise.
41305 (tga_mod_LDFLAGS): Likewise.
41306 (jpeg_mod_SOURCES): Likewise.
41307 (jpeg_mod_CFLAGS): Likewise.
41308 (jpeg_mod_LDFLAGS): Likewise.
41309 (png_mod_SOURCES): Likewise.
41310 (png_mod_CFLAGS): Likewise.
41311 (png_mod_LDFLAGS): Likewise.
41312 (gfxterm_mod_SOURCES): Likewise.
41313 (gfxterm_mod_CFLAGS): Likewise.
41314 (gfxterm_mod_LDFLAGS): Likewise.
41316 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41317 grub/machine/console.h.
41319 2009-01-04 Jerone Young <jerone@gmail.com>
41321 Make on screen instructions clearer
41323 Based on patch created by Jidanni <jidanni@jidanni.org>
41325 * normal/menu.c: print clearer instructions on the screen
41327 2009-01-02 Colin D Bennett <colin@gibibit.com>
41331 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41332 build system and fixed gfxterm.c to work with different sized fonts.
41334 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41336 * configure: Re-generated.
41338 * DISTLIST: Removed font/manager.c.
41340 Added font/font_cmd.c.
41342 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41345 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41347 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41349 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41351 * normal/menu.c: Likewise.
41353 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41354 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41356 * include/grub/font.h: Replaced with new file.
41358 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41359 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41360 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41361 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41362 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41363 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41364 fg_red, fg_green, fg_blue, fg_alpha.
41365 (grub_video_adapter): Removed blit_glyph.
41366 (grub_video_blit_glyph): Removed.
41368 * font/manager.c: Removed file.
41370 * font/font.c: New file.
41372 * font/font_cmd.c: Likewise.
41374 * video/video.c (grub_video_blit_glyph): Removed.
41376 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41377 (grub_video_vbe_map_rgba): Likewise.
41378 (grub_video_vbe_unmap_color_int): Likewise.
41379 (grub_video_vbe_blit_glyph): Removed.
41380 (grub_video_vbe_adapter): Removed blit_glyph.
41382 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41383 (get_pixel): Likewise.
41384 (set_pixel): Likewise.
41386 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41388 * term/gfxterm.c: Adapted to new font engine.
41390 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41392 * term/i386/pc/vga.c: Likewise.
41394 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41396 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41398 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41400 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41402 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41404 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41406 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41408 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41410 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41412 * util/grub.d/00_header.in: Changed to use new loadfont command.
41414 * util/grub-mkconfig_lib.in: Changed font extension.
41416 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41418 * util/getroot.c (grub_util_get_grub_dev): Add support for
41419 /dev/md/dNNpNN style partitionable mdraid devices.
41421 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41423 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41424 at a time limit of the PXE TFTP API correctly.
41425 (grub_pxefs_close): Likewise.
41427 2008-11-29 Robert Millan <rmh@aybabtu.com>
41429 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41430 grub_ata_device_initialize() calls.
41432 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41434 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41436 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41438 2008-11-28 Robert Millan <rmh@aybabtu.com>
41440 Fix build on powerpc-ieee1275. Based on patch created by
41441 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41442 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41443 `kern/ieee1275/mmap.c'.
41444 * include/grub/powerpc/ieee1275/memory.h: New file.
41446 Provide grub-install on coreboot.
41447 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41448 (grub_install_SOURCES): New variable.
41449 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41450 usable on coreboot.
41452 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41454 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41455 to `grub_term_input_t'.
41456 (grub_term_get_current_output): Change return type to
41457 `grub_term_output_t'.
41459 2008-11-22 Robert Millan <rmh@aybabtu.com>
41461 Fix breakage on coreboot due to declaration mismatch.
41462 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41463 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41464 grub_vga_text_cls().
41466 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41467 comments. Avoid copying one more byte than necessary (just in case).
41469 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41470 to 0x200000 (avoids trouble with some OFW implementations, and matches
41471 with the one in Yaboot).
41472 Reported by Manoel Abranches
41474 2008-11-20 Robert Millan <rmh@aybabtu.com>
41476 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41477 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41479 * util/grub-mkconfig_lib.in (grub_warn): New function.
41480 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41481 warnings, to obtain consistent formatting.
41482 * util/grub.d/00_header.in: Likewise.
41483 * util/update-grub_lib.in: Likewise.
41485 * loader/i386/linux.c (allocate_pages): Fix a warning.
41486 Move comment text to `#error' stanza.
41488 Harmonize ieee1275's grub_available_iterate() with the generic
41489 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41490 build problem on i386-ieee1275):
41491 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41492 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41493 parameter `type'. Update all users of this function.
41494 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41495 `kern/ieee1275/mmap.c'.
41496 * kern/ieee1275/init.c
41497 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41499 (grub_machine_mmap_iterate): ... this.
41500 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41501 return type to `grub_err_t'. Update all implementations of this
41502 function prototype.
41503 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41506 Add `lsmmap' command (lists firmware-provided memory map):
41507 * commands/lsmmap.c: New file.
41508 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41509 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41511 * conf/powerpc-ieee1275.rmk: Likewise.
41512 * conf/i386-coreboot.rmk: Likewise.
41513 * conf/i386-ieee1275.rmk: Likewise.
41515 2008-11-19 Robert Millan <rmh@aybabtu.com>
41517 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41518 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41519 constraints to initrd allocation (based on code from
41520 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41521 for Linux to find it.
41523 2008-11-14 Robert Millan <rmh@aybabtu.com>
41525 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41526 order to cope with duplicate slashes.
41528 2008-11-14 Robert Millan <rmh@aybabtu.com>
41530 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41531 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41532 don't want to mess with lower memory, because it is used in the Linux
41535 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41536 an appropriate place in lower memory, between 0x10000 and 0x90000,
41537 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41538 is in our heap (probably as a result of it being corrupted during
41539 decompression). Add #error instance with comment to explain why this
41540 loader isn't currently usable on PC/BIOS.
41542 2008-11-14 Robert Millan <rmh@aybabtu.com>
41544 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41545 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41547 2008-11-12 Robert Millan <rmh@aybabtu.com>
41549 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41551 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41552 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41554 * include/grub/i386/pc/memory.h: ... to here.
41556 2008-11-12 Robert Millan <rmh@aybabtu.com>
41558 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41561 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41562 (grub_console_cur_color, grub_console_real_putchar)
41563 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41564 (grub_console_setcolorstate, grub_console_setcolor)
41565 (grub_console_getcolor): Move from here ...
41566 * include/grub/i386/vga_common.h: ... to here (new file).
41568 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41569 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41570 `<grub/i386/io.h>'.
41571 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41572 `<grub/i386/vga_common.h>'.
41574 2008-11-12 Robert Millan <rmh@aybabtu.com>
41576 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41577 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41578 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41580 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41581 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41583 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41584 grub_console_init() with call to grub_vga_text_init().
41585 (grub_machine_fini): Replace call to
41586 grub_console_fini() with call to grub_vga_text_fini() and
41587 grub_at_keyboard_fini().
41589 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41590 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41591 (grub_console_setcolorstate, grub_console_setcolor)
41592 (grub_console_getcolor): New function prototypes.
41594 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41595 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41596 (grub_vga_text_setcursor): Static-ize.
41597 (grub_vga_text_term): New structure.
41598 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41600 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41601 (grub_console_cur_color, grub_console_standard_color)
41602 (grub_console_normal_color, grub_console_highlight_color)
41603 (map_char, grub_console_putchar, grub_console_getcharwidth)
41604 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41605 (grub_console_getcolor): Move from here ...
41606 * term/i386/vga_common.c: ... to here (same function names).
41608 2008-11-12 Robert Millan <rmh@aybabtu.com>
41610 Use newly-added Multiboot support in coreboot.
41612 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41613 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41615 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41616 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41617 (codestart): Store the MBI in `startup_multiboot_info' when we're
41618 being loaded using Multiboot.
41620 * kern/i386/coreboot/init.c (grub_machine_init): Move
41621 grub_at_keyboard_init() call to beginning of function (useful for
41622 debugging). Call grub_machine_mmap_init() before attempting to use
41623 grub_machine_mmap_iterate().
41624 (grub_lower_mem, grub_upper_mem): Move from here ...
41625 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41628 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41629 function prototype.
41631 2008-11-12 Robert Millan <rmh@aybabtu.com>
41633 Fix a regression introduced by the at_keyboard.mod split. Because
41634 some terminals are default on some platforms and non-default on
41635 others, the first terminal being registered determines which is
41636 going to be default.
41638 * kern/term.c (grub_term_register_input): If this is the first
41639 terminal being registered, set it as the current one.
41640 (grub_term_register_output): Likewise.
41642 * term/efi/console.c (grub_console_init): Do not call
41643 grub_term_set_current_output() or grub_term_set_current_input().
41644 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41645 * term/i386/pc/console.c (grub_console_init): Likewise.
41646 (grub_console_fini): Do not call grub_term_set_current_input()
41647 (but leave grub_term_set_current_output() to restore text mode).
41649 2008-11-10 Robert Millan <rmh@aybabtu.com>
41651 * util/grub.d/00_header.in: Add backward compatibility check for
41652 versions of terminal.mod that don't understand `terminal_input' or
41655 2008-11-09 Robert Millan <rmh@aybabtu.com>
41657 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41658 `terminal_input' / `terminal_output', not `terminal'.
41660 2008-11-08 Robert Millan <rmh@aybabtu.com>
41662 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41663 (DISTCLEANFILES): Add `build_env.mk'.
41665 2008-11-08 Robert Millan <rmh@aybabtu.com>
41667 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41668 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41669 members. Update all users.
41670 * util/console.c (grub_ncurses_term): Split in ...
41671 (grub_ncurses_term_input): ... this, and ...
41672 (grub_ncurses_term_output): ... this. Update all users.
41673 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41675 2008-11-08 Robert Millan <rmh@aybabtu.com>
41677 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41678 (PKGDATA): Add $(pkgdata_SRCDIR).
41679 (pkglib_BUILDDIR): New variable.
41680 (pkgdata_SRCDIR): New variable.
41681 (build_env.mk): New target.
41682 (include_DATA): New variable.
41683 (install-local): Install $(include_DATA) files in $(includedir).
41685 2008-11-07 Pavel Roskin <proski@gnu.org>
41687 * gendistlist.sh: Use C locale for sorting to ensure consistent
41688 output on all systems.
41690 * util/grub.d/00_header.in: Remove incorrect space before
41693 2008-11-07 Robert Millan <rmh@aybabtu.com>
41695 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41697 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41698 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41699 (based on find_multi_boot1_header).
41700 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41701 using find_multi_boot2_header(), and abort if neither Multiboot or
41702 Multiboot headers were found.
41704 2008-11-07 Robert Millan <rmh@aybabtu.com>
41706 Modularize at_keyboard.mod:
41708 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41709 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41710 (at_keyboard_mod_LDFLAGS): New variables.
41712 Actual terminal split:
41714 * include/grub/term.h (struct grub_term): Split in ...
41715 (struct grub_term_input): ... this, and ...
41716 (struct grub_term_output): ... this. Update all users.
41717 (grub_term_set_current): Split in ...
41718 (grub_term_set_current_input): ... this, and ...
41719 (grub_term_set_current_output): ... this.
41720 (grub_term_get_current): Split in ...
41721 (grub_term_get_current_input): ... this, and ...
41722 (grub_term_get_current_output): ... this.
41723 (grub_term_register): Split in ...
41724 (grub_term_register_input): ... this, and ...
41725 (grub_term_register_output): ... this.
41726 (grub_term_unregister): Split in ...
41727 (grub_term_unregister_input): ... this, and ...
41728 (grub_term_unregister_output): ... this.
41729 (grub_term_iterate): Split in ...
41730 (grub_term_iterate_input): ... this, and ...
41731 (grub_term_iterate_output): ... this.
41733 * kern/term.c (grub_term_list): Split in ...
41734 (grub_term_list_input): ... this, and ...
41735 (grub_term_list_output): ... this. Update all users.
41736 (grub_cur_term): Split in ...
41737 (grub_cur_term_input): ... this, and ...
41738 (grub_cur_term_output): ... this. Update all users.
41739 (grub_term_set_current): Split in ...
41740 (grub_term_set_current_input): ... this, and ...
41741 (grub_term_set_current_output): ... this.
41742 (grub_term_get_current): Split in ...
41743 (grub_term_get_current_input): ... this, and ...
41744 (grub_term_get_current_output): ... this.
41745 (grub_term_register): Split in ...
41746 (grub_term_register_input): ... this, and ...
41747 (grub_term_register_output): ... this.
41748 (grub_term_unregister): Split in ...
41749 (grub_term_unregister_input): ... this, and ...
41750 (grub_term_unregister_output): ... this.
41751 (grub_term_iterate): Split in ...
41752 (grub_term_iterate_input): ... this, and ...
41753 (grub_term_iterate_output): ... this.
41755 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41756 a check for input and one for output (and only attempt to get keys
41757 from user when input works).
41759 * util/grub-probe.c (grub_term_get_current): Split in ...
41760 (grub_term_get_current_input): ... this, and ...
41761 (grub_term_get_current_output): ... this.
41762 * util/grub-fstest.c: Likewise.
41763 * util/i386/pc/grub-setup.c: Likewise.
41764 * util/grub-editenv.c: Likewise.
41766 Portability adjustments:
41768 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41769 `term/i386/pc/at_keyboard.c'.
41770 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41771 grub_keyboard_controller_init() (now handled by terminal .init).
41772 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41773 grub_at_keyboard_init().
41774 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41775 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41776 at_keyboard.mod via input terminal interface).
41777 * include/grub/i386/coreboot/console.h: Convert into a stub for
41778 `<grub/i386/pc/console.h>'.
41780 Migrate full terminals to new API:
41782 * term/efi/console.c (grub_console_term): Split into ...
41783 (grub_console_term_input): ... this, and ...
41784 (grub_console_term_output): ... this. Update all users.
41785 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41786 (grub_ofconsole_init): Split into ...
41787 (grub_ofconsole_init_input): ... this, and ...
41788 (grub_ofconsole_init_output): ... this.
41789 (grub_ofconsole_term): Split into ...
41790 (grub_ofconsole_term_input): ... this, and ...
41791 (grub_ofconsole_term_output): ... this. Update all users.
41792 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41793 (grub_serial_term_input): ... this, and ...
41794 (grub_serial_term_output): ... this. Update all users.
41795 * term/i386/pc/console.c (grub_console_term): Split into ...
41796 (grub_console_term_input): ... this, and ...
41797 (grub_console_term_output): ... this. Update all users.
41798 (grub_console_term_input): Only enable it on PC/BIOS platform.
41799 (grub_console_init): Remove grub_keyboard_controller_init() call.
41801 Migrate input terminals to new API:
41803 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41804 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41805 i386-specific anyway).
41806 (grub_console_checkkey): Rename to ...
41807 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41809 (grub_keyboard_controller_orig): New variable.
41810 (grub_console_getkey): Rename to ...
41811 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41813 (grub_keyboard_controller_init): Static-ize. Save original
41814 controller value so that it can be restored ...
41815 (grub_keyboard_controller_fini): ... here (new function).
41816 (grub_at_keyboard_term): New structure.
41817 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41820 Migrate output terminals to new API:
41822 * term/i386/pc/vga.c (grub_vga_term): Change type to
41823 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41824 members. Update all users.
41825 * term/gfxterm.c (grub_video_term): Change type to
41826 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41827 members. Update all users.
41828 * include/grub/i386/pc/console.h (grub_console_checkkey)
41829 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41832 Migrate `terminal' command and userland tools to new API:
41834 * commands/terminal.c (grub_cmd_terminal): Split into ...
41835 (grub_cmd_terminal_input): ... this, and ...
41836 (grub_cmd_terminal_output): ... this.
41837 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41838 `terminal_input' and `terminal_output'.
41839 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41840 `terminal_input' / `terminal_output' API.
41841 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41842 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41843 provided ${GRUB_TERMINAL}, convert it).
41845 2008-11-04 Robert Millan <rmh@aybabtu.com>
41847 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41849 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41851 2008-11-03 Bean <bean123ch@gmail.com>
41853 * kern/elf.c (grub_elf32_load): Revert to previous code.
41854 (grub_elf64_load): Likewise.
41856 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41858 2008-11-01 Robert Millan <rmh@aybabtu.com>
41860 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41861 (TARGET_CPPFLAGS): Likewise.
41862 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41864 2008-11-01 Carles Pina i Estany <carles@pina.cat>
41866 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41868 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41870 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41871 addition of objects until the code is not going to be able to fail.
41873 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41875 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41876 (add a missing NULL check, and correct them by moving the pointer
41877 operations after the actual check).
41879 2008-10-29 Robert Millan <rmh@aybabtu.com>
41881 * util/i386/pc/grub-install.in: Handle empty string as output from
41882 make_system_path_relative_to_its_root().
41884 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41886 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41887 circular metadata worst case scenario. If the metadata is circular
41888 then copy the wrap in place.
41889 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41890 project lib/format_text/layout.h
41891 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41893 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41895 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
41897 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41899 * util/update-grub_lib.in: Mention filename in warning message.
41901 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41903 * NEWS: Update for rename of update-grub to grub-mkconfig.
41905 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41907 * util/update-grub_lib.in: Copy to ...
41908 * util/grub-mkconfig_lib.in: ... this. Update all users.
41909 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
41910 * util/update-grub.in: Rename to ...
41911 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
41912 option. Add `--output' option to allow users to specify the generated
41913 configuration file. Default to stdout.
41914 (update_grub_dir): Rename to ...
41915 (grub_mkconfig_dir): ... this.
41916 (grub_cfg): Default to an empty string.
41917 * conf/common.rmk (update-grub): Rename to ...
41918 (grub-mkconfig): ... this.
41919 (update-grub_lib): Copy to ...
41920 (grub-mkconfig_lib): ... this.
41921 (update-grub_SCRIPTS): Copy to ...
41922 (grub-mkconfig_SCRIPTS): ... this. Update all users.
41923 (update-grub_DATA): Rename to ...
41924 (grub-mkconfig_DATA): ... this.
41926 2008-09-28 Robert Millan <rmh@aybabtu.com>
41928 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
41929 to `modified'. Add the real `created' field.
41930 (grub_iso9660_uuid): Use `modified' rather than `created' for
41931 constructing the UUID.
41933 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
41935 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
41936 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
41938 2008-09-28 Bean <bean123ch@gmail.com>
41940 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
41941 Thanks to Christian Franke for finding this bug.
41943 2008-09-25 Robert Millan <rmh@aybabtu.com>
41945 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
41946 instances of grub_util_get_disk_name() (see previous commit).
41948 2008-09-25 Robert Millan <rmh@aybabtu.com>
41950 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
41951 `util/i386/get_disk_name.c'.
41952 * conf/i386-efi.rmk: Likewise.
41953 * conf/x86_64-efi.rmk: Likewise.
41954 * conf/i386-coreboot.rmk: Likewise.
41955 * conf/i386-ieee1275.rmk: Likewise.
41956 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
41957 `util/ieee1275/get_disk_name.c'.
41958 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
41959 * util/ieee1275/get_disk_name.c: Remove file.
41960 * util/i386/get_disk_name.c: Remove file.
41961 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
41962 "hd%d" for device.map entries, rather than using
41963 grub_util_get_disk_name().
41965 2008-09-24 Carles Pina i Estany <carles@pina.cat>
41967 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
41969 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
41971 2008-09-24 Carles Pina i Estany <carles@pina.cat>
41973 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
41975 (GRUB_TERM_PPAGE): Changed to 0x4900.
41977 2008-09-24 Robert Millan <rmh@aybabtu.com>
41979 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
41980 macros (they were i386-pc specific).
41981 * include/grub/sparc64/ieee1275/console.h: Likewise.
41982 * include/grub/efi/console.h: Likewise.
41984 2008-09-22 Bean <bean123ch@gmail.com>
41986 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
41987 resident and in attribute list.
41989 * include/grub/ntfs.h (BMP_LEN): Removed.
41991 2008-09-22 Bean <bean123ch@gmail.com>
41993 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
41994 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
41996 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
41997 error occurs, as grub_disk_open will call grub_disk_close, which will
41998 call p->close (scsi).
42000 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42002 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42003 (AC_PREREQ): Bumped to 2.59.
42004 (AC_TRY_COMPILE): Replace obsolete macro with ...
42005 (AC_COMPILE_IFELSE): ... this.
42006 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42007 (AC_LINK_IFELSE): ... this.
42009 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42011 * autogen.sh: Add a call to `gendistlist.sh'.
42013 2008-09-19 Christian Franke <franke@computer.org>
42015 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42016 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42017 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42018 Export __enable_execute_stack() to modules.
42019 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42022 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42024 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42027 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42029 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42030 #include <grub/util/hostdisk.h>.
42032 2008-09-08 Robert Millan <rmh@aybabtu.com>
42034 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42035 segments when their filesz is zero (grub_file_read() interprets
42036 zero-size as "read until EOF", which results in memory corruption).
42037 Use `lowest_segment' rather than 0 for calculating the current
42038 segment load address.
42040 2008-09-08 Robert Millan <rmh@aybabtu.com>
42042 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42043 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42044 clobbered useful information.
42046 2008-09-08 Robert Millan <rmh@aybabtu.com>
42048 * include/grub/util/biosdisk.h: Move to ...
42049 * include/grub/util/hostdisk.h: ... here. Update all users.
42050 * util/biosdisk.c: Move to ...
42051 * util/hostdisk.c: ... here. Update all users.
42053 2008-09-07 Robert Millan <rmh@aybabtu.com>
42055 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42057 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42058 and length can be stored directly in the `mbi->mmap_addr' and
42059 `mbi->mmap_length' struct fields.
42061 2008-09-07 Robert Millan <rmh@aybabtu.com>
42063 * conf/i386.rmk: New file. Provides declaration for building
42065 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42066 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42068 Include `conf/i386.mk'.
42069 * conf/i386-efi.rmk: Likewise.
42070 * conf/x86_64-efi.rmk: Likewise.
42071 * conf/i386-coreboot.rmk: Likewise.
42072 * conf/i386-ieee1275.rmk: Likewise.
42074 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42076 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42077 Adds optimization support for BGR based modes.
42079 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42080 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42081 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42082 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42083 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42084 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42085 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42086 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42087 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42088 (grub_video_i386_vbeblit_index_index): Likewise.
42089 (grub_video_i386_vbeblit_replace_directN): Added.
42090 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42091 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42092 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42093 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42094 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42095 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42096 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42097 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42098 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42099 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42100 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42101 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42102 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42104 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42105 (grub_video_i386_vbefill_R8G8B8): Likewise.
42106 (grub_video_i386_vbefill_index): Likewise.
42107 (grub_video_i386_vbefill_direct32): Added.
42108 (grub_video_i386_vbefill_direct24): Likewise.
42109 (grub_video_i386_vbefill_direct16): Likewise.
42110 (grub_video_i386_vbefill_direct8): Likewise.
42112 * include/grub/video.h (grub_video_blit_format): Removed
42113 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42114 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42115 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42116 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42117 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42119 * video/video.c (grub_video_get_blit_format): Updated to use new
42120 blit formats. Added handling for 16 bit color modes.
42122 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42124 (common_blitter): Updated to use new blitters.
42126 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42128 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42129 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42130 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42131 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42132 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42133 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42134 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42135 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42136 (grub_video_i386_vbeblit_index_index): Likewise.
42137 (grub_video_i386_vbeblit_replace_directN): Added.
42138 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42139 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42140 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42141 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42142 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42143 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42144 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42145 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42146 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42147 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42148 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42149 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42150 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42152 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42153 (grub_video_i386_vbefill_R8G8B8): Likewise.
42154 (grub_video_i386_vbefill_index): Likewise.
42155 (grub_video_i386_vbefill_direct32): Added.
42156 (grub_video_i386_vbefill_direct24): Likewise.
42157 (grub_video_i386_vbefill_direct16): Likewise.
42158 (grub_video_i386_vbefill_direct8): Likewise.
42160 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42163 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42166 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42169 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42172 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42174 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42177 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42179 * fs/iso9660.c (grub_iso9660_date): New structure.
42180 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42181 (grub_iso9660_uuid): New function.
42183 2008-09-05 Bean <bean123ch@gmail.com>
42185 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42187 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42188 insensitive bit for names in Win32 and Win32 & DOS namespace.
42190 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42192 * include/grub/types.h (LONG_MAX): Likewise.
42194 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42196 * util/getroot.c: Include <config.h>.
42197 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42198 add support for /dev/md/N devices and handle LVM double dash escaping.
42200 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42202 * config.guess: Update to latest version from config git.
42203 * config.sub: Likewise.
42205 2008-09-03 Robert Millan <rmh@aybabtu.com>
42207 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42208 `disk->total_sectors'.
42210 2008-09-01 Colin D Bennett <colin@gibibit.com>
42212 * include/grub/normal.h: Fixed incorrect comment for
42213 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42215 2008-09-01 Colin D Bennett <colin@gibibit.com>
42217 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42218 values with defines.
42220 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42221 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42222 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42223 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42224 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42225 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42226 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42227 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42228 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42229 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42230 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42231 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42232 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42233 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42234 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42235 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42236 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42237 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42238 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42240 2008-08-31 Robert Millan <rmh@aybabtu.com>
42242 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42244 (grub_multiboot): Fix a few warnings.
42246 2008-08-31 Robert Millan <rmh@aybabtu.com>
42248 * loader/i386/pc/multiboot.c: Update comment not to say that
42249 boot_device support is unimplemented.
42251 2008-08-31 Robert Millan <rmh@aybabtu.com>
42253 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42254 or memory map support are unimplemented.
42256 2008-08-31 Colin D Bennett <colin@gibibit.com>
42258 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42260 2008-08-31 Colin D Bennett <colin@gibibit.com>
42262 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42263 total video memory in 'vbeinfo' output; show color format details for
42266 2008-08-30 Pavel Roskin <proski@gnu.org>
42268 * util/genmoddep.c: Remove for real this time.
42269 * DISTLIST: Remove util/genmoddep.c.
42271 2008-08-30 Robert Millan <rmh@aybabtu.com>
42273 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42274 as required by Multiboot spec (it was already 4-byte aligned, but
42277 2008-08-29 Pavel Roskin <proski@gnu.org>
42279 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42280 * kern/powerpc/ieee1275/startup.S: ... this.
42281 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42282 * DISTLIST: Likewise.
42284 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42285 grub/cpu/kernel.h. Add start label for consistency with other
42286 platforms. Add grub_prefix immediately after start. Add jump
42287 to the code after grub_prefix.
42288 * include/grub/powerpc/kernel.h: Provide valid values for
42289 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42291 2008-08-29 Bean <bean123ch@gmail.com>
42293 * configure.ac: Change host_os to cygwin for mingw.
42294 (asprintf): New check for function.
42296 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42297 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42299 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42300 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42301 sync, sleep and grub_util_get_disk_size for mingw.
42303 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42304 to get size in mingw.
42305 (open_device): Use flag O_BINARY if it's defined.
42306 (find_root_device): Add dummy code for mingw.
42308 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42309 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42310 (get_scsi_disk_name): Return 0 for mingw.
42312 * util/hostfs.c: #include <grub/util/misc.h>.
42313 (grub_hostfs_open): Use "rb" flag to open file, use
42314 grub_util_get_disk_size to get disk size for mingw.
42316 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42317 (asprintf): New function if HAVE_ASPRINTF is not set.
42318 (sync): New function for mingw.
42320 (grub_util_get_disk_size): Likewise.
42322 2008-08-28 Pavel Roskin <proski@gnu.org>
42324 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42327 2008-08-28 Robert Millan <rmh@aybabtu.com>
42329 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42331 2008-08-28 Robert Millan <rmh@aybabtu.com>
42333 Change find_grub_drive() syntax so it doesn't prevent it from
42334 detecting NULL names as errors.
42336 * util/biosdisk.c (find_grub_drive): Move free slot search code
42338 (find_free_slot): ... to here.
42339 (read_device_map): Use find_free_slot() to search for free slots.
42341 2008-08-27 Marco Gerards <marco@gnu.org>
42343 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42344 (scsi_mod_SOURCES): New variable.
42345 (scsi_mod_CFLAGS): Likewise
42346 (scsi_mod_LDFLAGS): Likewise.
42348 * disk/scsi.c: New file.
42350 * include/grub/scsi.h: Likewise.
42352 * include/grub/scsicmd.h: Likewise.
42354 * disk/ata.c: Include <grub/scsi.h>.
42355 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42357 (grub_ata_iterate): Skip ATAPI devices.
42358 (grub_ata_open): Only handle ATAPI devices.
42359 (struct grub_atapi_read): Removed.
42360 (grub_atapi_readsector): Likewise.
42361 (grub_ata_read): No longer handle ATAPI devices.
42362 (grub_ata_write): Likewise.
42363 (grub_atapi_iterate): New function.
42364 (grub_atapi_read): Likewise.
42365 (grub_atapi_write): Likewise.
42366 (grub_atapi_open): Likewise.
42367 (grub_atapi_close): Likewise.
42368 (grub_atapi_dev): New variable.
42369 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42370 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42372 * include/grub/disk.h (enum grub_disk_dev_id): Add
42373 `GRUB_DISK_DEVICE_SCSI_ID'.
42375 2008-08-26 Robert Millan <rmh@aybabtu.com>
42377 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42378 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42381 2008-08-23 Bean <bean123ch@gmail.com>
42383 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42384 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42385 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42386 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42388 (raid5rec_mod_SOURCES): New macro.
42389 (raid5rec_mod_CFLAGS): Likewise.
42390 (raid5rec_mod_LDFLAGS): Likewise.
42391 (raid6rec_mod_SOURCES): Likewise.
42392 (raid6rec_mod_CFLAGS): Likewise.
42393 (raid6rec_mod_LDFLAGS): Likewise.
42394 (mdraid_mod_SOURCES): Likewise.
42395 (mdraid_mod_CFLAGS): Likewise.
42396 (mdraid_mod_LDFLAGS): Likewise.
42397 (dm_nv_mod_SOURCES): Likewise.
42398 (dm_nv_mod_CFLAGS): Likewise.
42399 (dm_nv_mod_LDFLAGS): Likewise.
42401 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42402 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42403 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42405 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42406 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42408 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42410 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42412 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42414 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42416 * disk/raid5_recover.c: New file.
42418 * disk/raid6_recover.c: Likewise.
42420 * disk/mdraid_linux.c: Likewise.
42422 * disk/dmraid_nvidia.c: Likewise.
42424 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42427 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42428 calculate the size of raid device.
42429 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42430 different layout of raid5.
42431 (grub_raid_scan_device): Remove code specific to mdraid.
42432 (grub_raid_list): New variable.
42433 (free_array): New function.
42434 (grub_raid_register): Likewise.
42435 (grub_raid_unregister): Likewise.
42436 (grub_raid_rescan): Likewise.
42437 (GRUB_MOD_INIT): Don't iterate device here.
42438 (GRUB_MOD_FINI): Use free_array to release resource.
42440 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42441 (grub_raid5_recover_func_t): New function variable type.
42442 (grub_raid6_recover_func_t): Likewise.
42443 (grub_raid5_recover_func): New variable.
42444 (grub_raid6_recover_func): Likewise.
42445 (grub_raid_register): New function.
42446 (grub_raid_unregister): Likewise.
42447 (grub_raid_rescan): Likewise.
42448 (grub_raid_block_xor): Likewise.
42450 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42451 (CMD_CRC): New macro.
42453 (read_file): Handle device as well as file.
42454 (cmd_crc): New function.
42455 (fstest): Handle multiple disks.
42456 (options): Remove part, raw and long, add root and diskcount.
42457 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42458 (main): Find the first non option entry and ignore subsequent options,
42459 add handling for the new options, support multiple disks.
42461 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42463 2008-08-23 Bean <bean123ch@gmail.com>
42465 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42467 * genfslist.sh: Ignore kernel.mod.
42469 * genpartmaplist.sh: Likewise.
42471 2008-08-23 Robert Millan <rmh@aybabtu.com>
42473 * util/getroot.c (find_root_device): Skip anything that starts with
42474 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42476 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42478 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42479 * util/grub.d/00_header.in: Allow the administrator to change default
42480 gfxmode via ${GRUB_GFXMODE}.
42482 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42484 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42486 2008-08-21 Robert Millan <rmh@aybabtu.com>
42488 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42490 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42491 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42493 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42495 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42496 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42498 2008-08-19 Robert Millan <rmh@aybabtu.com>
42500 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42501 (struct grub_virtual_screen): Remove `cursor_color'.
42502 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42504 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42506 2008-08-18 Robert Millan <rmh@aybabtu.com>
42508 Unify (identical) linux_normal.c files.
42509 * loader/i386/efi/linux_normal.c: Move from here ...
42510 * loader/linux_normal.c: ... to here. Update all users.
42511 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42512 * loader/i386/ieee1275/linux_normal.c: Likewise.
42514 2008-08-18 Robert Millan <rmh@aybabtu.com>
42516 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42517 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42518 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42519 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42520 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42522 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42523 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42524 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42525 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42526 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42527 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42528 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42529 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42530 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42531 portably using grub_getxy().
42532 Replace `-EFI' with `-bzImage' in boot message.
42534 2008-08-17 Robert Millan <rmh@aybabtu.com>
42536 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42538 2008-08-17 Robert Millan <rmh@aybabtu.com>
42540 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42542 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42543 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42544 (grub_machine_mmap_iterate): New function declaration.
42545 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42547 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42550 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42551 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42552 Move e820 parsing from here ...
42553 * kern/i386/pc/mmap.c: New file.
42554 (grub_machine_mmap_iterate): ... to here.
42556 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42557 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42558 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42559 (grub_available_iterate): Redeclare to return `void', and redeclare
42560 its hook to use grub_uint64_t as addr and size parameters, and rename
42562 (grub_machine_mmap_iterate): ... this. Update all users.
42564 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42565 to make it more readable. Rename to ...
42566 (grub_machine_mmap_iterate): ... this.
42568 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42569 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42570 (grub_multiboot): Allocate an extra region after the payload, and fill
42571 it with a Multiboot memory map. Adjust a.out loader to calculate size
42572 with the extra space.
42573 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42574 with the extra space.
42576 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42578 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42580 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42582 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42583 mdate-sh to the list `find' searches for.
42584 * DISTLIST: Regenerated.
42586 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42588 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42589 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42590 genmoddep.awk, gensymlist.sh.in.
42591 (DISTDIRS): Add bus, docs, hook, lib.
42592 * DISTLIST: Regenerated.
42593 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42595 2008-08-16 Robert Millan <rmh@aybabtu.com>
42597 * disk/raid.c (grub_raid_init): Handle/report errors set by
42598 grub_device_iterate().
42599 * disk/lvm.c (grub_lvm_init): Likewise.
42601 2008-08-15 Bean <bean123ch@gmail.com>
42603 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42605 (datetime_mod_SOURCES): New macro.
42606 (datetime_mod_CFLAGS): Likewise.
42607 (datetime_mod_LDFLAGS): Likewise.
42608 (date_mod_SOURCES): Likewise.
42609 (date_mod_CFLAGS): Likewise.
42610 (date_mod_LDFLAGS): Likewise.
42611 (datehook_mod_SOURCES): Likewise.
42612 (datehook_mod_CFLAGS): Likewise.
42613 (datehook_mod_LDFLAGS): Likewise.
42615 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42617 (datetime_mod_SOURCES): New macro.
42618 (datetime_mod_CFLAGS): Likewise.
42619 (datetime_mod_LDFLAGS): Likewise.
42620 (date_mod_SOURCES): Likewise.
42621 (date_mod_CFLAGS): Likewise.
42622 (date_mod_LDFLAGS): Likewise.
42623 (datehook_mod_SOURCES): Likewise.
42624 (datehook_mod_CFLAGS): Likewise.
42625 (datehook_mod_LDFLAGS): Likewise.
42627 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42629 (datetime_mod_SOURCES): New macro.
42630 (datetime_mod_CFLAGS): Likewise.
42631 (datetime_mod_LDFLAGS): Likewise.
42632 (date_mod_SOURCES): Likewise.
42633 (date_mod_CFLAGS): Likewise.
42634 (date_mod_LDFLAGS): Likewise.
42635 (datehook_mod_SOURCES): Likewise.
42636 (datehook_mod_CFLAGS): Likewise.
42637 (datehook_mod_LDFLAGS): Likewise.
42639 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42641 (datetime_mod_SOURCES): New macro.
42642 (datetime_mod_CFLAGS): Likewise.
42643 (datetime_mod_LDFLAGS): Likewise.
42644 (date_mod_SOURCES): Likewise.
42645 (date_mod_CFLAGS): Likewise.
42646 (date_mod_LDFLAGS): Likewise.
42647 (datehook_mod_SOURCES): Likewise.
42648 (datehook_mod_CFLAGS): Likewise.
42649 (datehook_mod_LDFLAGS): Likewise.
42651 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42653 (datetime_mod_SOURCES): New macro.
42654 (datetime_mod_CFLAGS): Likewise.
42655 (datetime_mod_LDFLAGS): Likewise.
42656 (date_mod_SOURCES): Likewise.
42657 (date_mod_CFLAGS): Likewise.
42658 (date_mod_LDFLAGS): Likewise.
42659 (datehook_mod_SOURCES): Likewise.
42660 (datehook_mod_CFLAGS): Likewise.
42661 (datehook_mod_LDFLAGS): Likewise.
42663 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42665 * commands/date.c: New file.
42667 * hook/datehook.c: Likewise.
42669 * include/grub/lib/datetime.h: Likewise.
42671 * include/grub/i386/cmos.h: Likewise.
42673 * lib/datetime.c: Likewise.
42675 * lib/i386/datetime.c: Likewise.
42677 * lib/efi/datetime.c: Likewise.
42679 2008-08-14 Robert Millan <rmh@aybabtu.com>
42681 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42682 (grub_mkelfimage_SOURCES): New variable.
42683 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42685 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42686 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42687 * conf/powerpc-ieee1275.rmk: Likewise.
42688 * conf/i386-ieee1275.rmk: Likewise.
42690 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42691 * kern/i386/coreboot/init.c: Likewise.
42693 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42694 with `<grub/cpu/kernel.h>'.
42695 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42697 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42698 * kern/i386/coreboot/startup.S: Likewise.
42700 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42701 (GRUB_MOD_GAP): Remove.
42702 * include/grub/powerpc/kernel.h: New file.
42703 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42704 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42705 * include/grub/i386/kernel.h: New file.
42706 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42707 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42708 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42710 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42712 Use --directory when invoking grub_mkimage.
42714 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42715 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42716 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42717 and GRUB_KERNEL_CPU_PREFIX.
42719 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42721 * include/grub/err.h (grub_err_printf): New function prototype.
42722 * util/misc.c (grub_err_printf): New function.
42723 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42725 * kern/err.c (grub_print_error): Use grub_err_printf.
42727 2008-08-13 Robert Millan <rmh@aybabtu.com>
42729 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42731 2008-08-13 Robert Millan <rmh@aybabtu.com>
42733 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42736 2008-08-12 Robert Millan <rmh@aybabtu.com>
42738 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42739 of the relocation code from here ...
42740 (grub_multiboot): ... to here.
42741 (forward_relocator, backward_relocator): Move from here ...
42742 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42743 (grub_multiboot_backward_relocator): ... to here.
42744 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42745 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42746 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42747 (grub_multiboot_forward_relocator_end)
42748 (grub_multiboot_backward_relocator)
42749 (grub_multiboot_backward_relocator_end): New variables.
42751 2008-08-12 Bean <bean123ch@gmail.com>
42753 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42755 2008-08-11 Robert Millan <rmh@aybabtu.com>
42757 * kern/i386/linuxbios/startup.S: Move from here ...
42758 * kern/i386/coreboot/startup.S: ... to here.
42760 * kern/i386/linuxbios/init.c: Move from here ...
42761 * kern/i386/coreboot/init.c: ... to here.
42763 * kern/i386/linuxbios/table.c: Move from here ...
42764 * kern/i386/coreboot/mmap.c: ... to here.
42766 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42768 2008-08-11 Robert Millan <rmh@aybabtu.com>
42770 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42771 errors. Leave it to the upper layer to handle them.
42773 2008-08-09 Christian Franke <franke@computer.org>
42775 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42776 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42777 Install `grub.d/10_windows' only on Cygwin.
42778 * configure.ac: Add subst of `target_os'.
42779 Check `target_os' also before setting TARGET_OBJ2ELF.
42780 Add `--enable-grub-pe2elf'.
42782 2008-08-08 Robert Millan <rmh@aybabtu.com>
42784 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42785 (grub_last_time): Change type to grub_uint64_t.
42786 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42787 (grub_disk_close): Likewise.
42789 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42790 (run_menu): Migrate code from to using grub_get_time_ms().
42792 * util/misc.c (grub_get_time_ms): New function.
42794 2008-08-08 Marco Gerards <marco@gnu.org>
42796 * disk/ata.c (grub_ata_regget): Change return type to
42798 (grub_ata_regget2): Likewise.
42799 (grub_ata_wait_status): New function.
42800 (grub_ata_wait_busy): Removed function, updated all users to use
42801 `grub_ata_wait_status'.
42802 (grub_ata_wait_drq): Likewise.
42803 (grub_ata_cmd): New function.
42804 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42806 (grub_ata_pio_write): Add error handling.
42807 (grub_atapi_identify): Likewise.
42808 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42810 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42811 handling. Actually use the detected registers. Reorder the
42812 detection logic such that it is easier to read.
42813 (grub_ata_pciinit): Do not assign the same ID to each controller.
42814 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42816 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42818 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42820 2008-08-08 Marco Gerards <marco@gnu.org>
42824 2008-08-07 Bean <bean123ch@gmail.com>
42826 * include/grub/x86_64/pci.h: New file.
42828 2008-08-07 Christian Franke <franke@computer.org>
42830 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42831 (TIMER2_GATE): Likewise.
42832 (grub_pit_wait): Add enable/disable of the timer2 gate
42833 bit of port 0x61. This fixes a possible infinite loop.
42835 2008-08-07 Bean <bean123ch@gmail.com>
42837 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42838 kern/i386/tsc.c and kern/i386/pit.c.
42840 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42843 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42846 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42848 2008-08-07 Bean <bean123ch@gmail.com>
42850 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42852 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42854 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42855 multiple inclusion. Add #include <grub/types.h>.
42857 2008-08-06 Christian Franke <franke@computer.org>
42859 * conf/common.rmk: Build and install `10_windows'.
42860 * util/grub.d/10_windows.in: New script.
42862 2008-08-06 Pavel Roskin <proski@gnu.org>
42864 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42866 2008-08-06 Robert Millan <rmh@aybabtu.com>
42868 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42869 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42871 2008-08-06 Bean <bean123ch@gmail.com>
42873 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42874 (grub_pxefs_fs_int): Remove dummy definition.
42875 (grub_pxefs_open): Use data->block_size to store the current block
42877 (grub_pxefs_read): Use block size stored in data->block_size. As the
42878 value of grub_pxe_blksize can be changed after the file is opened.
42880 2008-08-06 Bean <bean123ch@gmail.com>
42882 * fs/i386/pc/pxe.c (curr_file): new variable.
42883 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42884 require the dummy internal file system anymore.
42885 (grub_pxefs_read): Removed.
42886 (grub_pxefs_close): Likewise.
42887 (grub_pxefs_fs_int): Likewise.
42888 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42889 connection when we switch file.
42890 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42892 2008-08-06 Robert Millan <rmh@aybabtu.com>
42894 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42896 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42897 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42899 * kern/i386/halt.c: New file.
42900 * kern/i386/reboot.c: Likewise.
42901 * include/grub/i386/reboot.h: Likewise.
42902 * include/grub/i386/halt.h: Likewise.
42904 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42905 Include `<grub/cpu/halt.h>'.
42906 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42907 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42909 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42910 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
42911 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
42912 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
42913 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
42914 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
42916 * include/grub/i386/at_keyboard.h: ... to here.
42918 2008-08-05 Robert Millan <rmh@aybabtu.com>
42920 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
42921 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
42922 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
42923 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42924 `kern/generic/millisleep.c'.
42926 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
42927 instead of grub_get_rtc().
42928 (grub_tsc_init): Initialize `tsc_boot_time'.
42930 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
42931 (grub_machine_init): Use grub_tsc_init() rather than
42932 installing an RTC-based handler via grub_install_get_time_ms().
42934 * kern/i386/pit.c: New file.
42935 * include/grub/i386/pit.h: Likewise.
42937 2008-08-05 Bean <bean123ch@gmail.com>
42939 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
42941 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
42942 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
42943 (pxe_mod_SOURCES): New macro.
42944 (pxe_mod_CFLAGS): Likewise.
42945 (pxe_mod_LDFLAGS): Likewise.
42946 (pxecmd_mod_SOURCES): Likewise.
42947 (pxecmd_mod_CFLAGS): Likewise.
42948 (pxecmd_mod_LDFLAGS): Likewise.
42950 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
42951 (grub_pxe_call): Likewise.
42953 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
42955 * commands/i386/pc/pxecmd.c: New file.
42957 * fs/i386/pc/pxe.c: Likewise.
42959 * include/grub/i386/pc/pxe.h: Likewise.
42961 2008-08-05 Bean <bean123ch@gmail.com>
42963 * util/console.c (grub_console_cur_color): New variable.
42964 (grub_console_standard_color): Likewise.
42965 (grub_console_normal_color): Likewise.
42966 (grub_console_highlight_color): Likewise.
42967 (color_map): Likewise.
42968 (use_color): Likewise.
42969 (NUM_COLORS): New macro.
42970 (grub_ncurses_setcolorstate): Handle color properly.
42971 (grub_ncurses_setcolor): Don't change color here, just remember the
42972 settings, color will be set in grub_ncurses_setcolorstate.
42973 (grub_ncurses_getcolor): New function.
42974 (grub_ncurses_init): Initialize color pairs.
42975 (grub_ncurses_term): New member grub_ncurses_getcolor.
42977 2008-08-05 Colin D Bennett <colin@gibibit.com>
42979 High resolution timer support. Implemented for x86 CPUs using TSC.
42980 Extracted generic grub_millisleep() so it's linked in only as needed.
42981 This requires a Pentium compatible CPU; if the RDTSC instruction is
42982 not supported, then it falls back on the generic grub_get_time_ms()
42983 implementation that uses the machine's RTC.
42985 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
42986 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42987 `kern/generic/millisleep.c'.
42989 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
42990 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
42992 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
42993 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
42995 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
42997 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42998 `kern/generic/millisleep.c'.
43000 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43002 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43004 * kern/generic/rtc_get_time_ms.c: New file.
43006 * kern/generic/millisleep.c: New file.
43008 * kern/misc.c: Don't include
43009 <kern/time.h> anymore.
43010 (grub_millisleep_generic): Removed.
43012 * commands/sleep.c (grub_interruptible_millisleep): Uses
43013 grub_get_time_ms() instead of grub_get_rtc().
43015 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43017 (grub_cpu_is_cpuid_supported): New inline function.
43018 (grub_cpu_is_tsc_supported): New inline function.
43019 (grub_tsc_init): New function prototype.
43020 (grub_tsc_get_time_ms): New function prototype.
43022 * kern/i386/tsc.c (grub_get_time_ms): New file.
43024 * include/grub/time.h: Include <grub/types.h.
43025 (grub_millisleep_generic): Removed.
43026 (grub_get_time_ms): New prototype.
43027 (grub_install_get_time_ms): New prototype.
43028 (grub_rtc_get_time_ms): New prototype.
43030 * kern/time.c (grub_get_time_ms): New function.
43031 (grub_install_get_time_ms): New function.
43033 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43034 <grub/time.h> anymore.
43035 (grub_millisleep): Removed.
43036 (grub_machine_init): Call grub_tsc_init.
43038 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43039 get_time_ms() implementation.
43041 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43042 (ieee1275_get_time_ms): New function.
43043 (grub_machine_init): Install get_time_ms() implementation.
43045 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43046 (grub_machine_init): Call grub_tsc_init().
43047 (grub_millisleep): Removed.
43049 * kern/ieee1275/init.c (grub_millisleep): Removed.
43050 (grub_machine_init): Install ieee1275_get_time_ms()
43052 (ieee1275_get_time_ms): New function.
43053 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43056 2008-08-05 Marco Gerards <marco@gnu.org>
43058 * disk/ata.c: Include <grub/pci.h>.
43059 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43060 (grub_ata_initialize): Rewritten.
43061 (grub_ata_device_initialize): New function.
43063 2008-08-04 Pavel Roskin <proski@gnu.org>
43065 * kern/main.c: Include grub/mm.h.
43067 2008-08-04 Robert Millan <rmh@aybabtu.com>
43069 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43070 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43071 corruption problem).
43073 2008-08-04 Robert Millan <rmh@aybabtu.com>
43075 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43076 warnings introduced in my last commit.
43078 2008-08-03 Robert Millan <rmh@aybabtu.com>
43080 Make PCI available on all i386 architectures.
43082 * include/grub/i386/pc/pci.h: Move from here ...
43083 * include/grub/i386/pci.h: ... to here.
43085 * include/grub/i386/pc/pci.h: Remove.
43086 * include/grub/i386/efi/pci.h: Remove.
43087 * include/grub/x86_64/efi/pci.h: Remove.
43089 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43090 `<grub/cpu/pci.h>'.
43092 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43093 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43094 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43096 * conf/i386-ieee1275.rmk: Likewise.
43098 2008-08-03 Robert Millan <rmh@aybabtu.com>
43100 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43101 (grub_console_setcursor): Make it possible to set cursor off.
43103 2008-08-03 Robert Millan <rmh@aybabtu.com>
43105 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43106 of modules instead of assuming which platform provides what.
43107 * util/update-grub.in: Likewise.
43109 2008-08-03 Robert Millan <rmh@aybabtu.com>
43111 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43112 instead of `grub_install_dos_part' to determine whether a drive needs
43113 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43114 because it can be overridden when loading GRUB via Multiboot).
43116 2008-08-02 Robert Millan <rmh@aybabtu.com>
43118 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43120 2008-08-02 Robert Millan <rmh@aybabtu.com>
43122 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43123 of informational grub_dprintf() calls.
43125 2008-08-02 Robert Millan <rmh@aybabtu.com>
43127 * disk/memdisk.c (memdisk_size): Don't initialize.
43128 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43130 * include/grub/i386/pc/kernel.h
43131 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43132 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43133 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43134 (grub_arch_memdisk_size): Remove.
43136 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43137 field (was only used to transfer a constant). Add `type' field to
43138 support multiple module types.
43139 (grub_module_iterate): New function.
43141 * kern/device.c (grub_device_open): Do not hide error messages
43142 when grub_disk_open() fails. Use grub_print_error() instead.
43144 * kern/i386/pc/init.c (grub_arch_modules_addr)
43145 (grub_arch_memdisk_size): Remove functions.
43146 (grub_arch_modules_addr): Return the module address in high memory
43147 (now that it isn't copied anymore).
43149 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43150 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43151 decompression routine (grub_total_module_size already includes that
43152 now). Don't copy modules back to low memory.
43154 * kern/main.c: Include `<grub/mm.h>'.
43155 (grub_load_modules): Split out (and use) ...
43156 (grub_module_iterate): ... this function, which iterates through
43157 module objects and runs a hook.
43158 Comment out grub_mm_init_region() call, as it would cause non-ELF
43159 modules to be overwritten.
43161 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43162 the memdisk image in its own region, make it part of the module list.
43163 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43164 (main): Parse --memdisk|-m option, and pass user-provided path as
43165 parameter to generate_image().
43166 (add_segments): Pass `memdisk_path' down to load_modules().
43167 (load_modules): Embed memdisk image in module section when requested.
43168 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43169 `header.type' instead of `header.offset'.
43171 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43172 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43173 (memdisk_mod_LDFLAGS): New variables.
43174 * conf/i386-coreboot.rmk: Likewise.
43175 * conf/i386-ieee1275.rmk: Likewise.
43177 2008-08-02 Robert Millan <rmh@aybabtu.com>
43179 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43180 (backward_relocator): New variables. Used to allocate and relocate
43181 the payload, respectively.
43182 (grub_multiboot_load_elf32): Load into heap instead of requested
43183 address, install the appropriate relocator code in each bound of
43184 the payload, and set the entry point such that
43185 grub_multiboot_real_boot() will jump to one of them.
43187 * kern/i386/loader.S (grub_multiboot_payload_size)
43188 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43189 (grub_multiboot_payload_entry_offset): New variables.
43190 (grub_multiboot_real_boot): Set cpu context to what the relocator
43191 expects, and jump to the relocator instead of the payload.
43193 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43194 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43195 (grub_multiboot_payload_entry_offset): Export.
43197 2008-08-01 Bean <bean123ch@gmail.com>
43199 * normal/menu_entry.c (editor_getline): Don't return the original
43200 string as result, as it will be released by lexer once it has done
43203 2008-08-01 Robert Millan <rmh@aybabtu.com>
43205 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43206 within menuentries, not before them.
43207 util/grub.d/10_hurd.in: Likewise.
43209 2008-08-01 Bean <bean123ch@gmail.com>
43211 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43212 (bufio_mod_SOURCES): New macro.
43213 (bufio_mod_CFLAGS): Likewise.
43214 (bufio_mod_LDFLAGS): Likewise.
43216 * include/grub/bufio.h: New file.
43218 * io/bufio.c: Likewise.
43220 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43221 (grub_video_reader_png): Use grub_buffile_open to open file.
43223 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43224 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43226 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43227 (grub_video_reader_tga): Use grub_buffile_open to open file.
43229 * font/manager.c: Include <grub/bufio.h>.
43230 (add_font): Use grub_buffile_open to open file.
43232 2008-07-31 Robert Millan <rmh@aybabtu.com>
43234 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43235 ELF segments, use a macro for arbitrarily accessing any of them instead
43236 of preparing a pointer that allows access to one at a time.
43237 (grub_multiboot_load_elf64): Likewise.
43239 2008-07-31 Bean <bean123ch@gmail.com>
43241 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43242 GRUB_KERNEL_MACHINE_DATA_END.
43244 2008-07-30 Robert Millan <rmh@aybabtu.com>
43246 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43247 Increase from 0x50 to 0x60.
43248 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43249 use UUIDs to identify the root drive for them. If that's not
43251 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43252 check, for cross-disk installs.
43254 2008-07-30 Robert Millan <rmh@aybabtu.com>
43256 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43257 is non-empty, use it to set the `prefix' environment variable instead
43258 of the usual approach.
43259 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43260 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43261 environment variable instead of dummy make_install_device().
43263 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43264 (start): Insert a data section, with `grub_prefix' variable.
43265 * kern/i386/linuxbios/startup.S: Likewise.
43267 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43268 New variable reference.
43269 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43270 New macro. Defines offset of `grub_prefix' within startup.S (relative
43272 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43273 section within startup.S (relative to `start').
43274 * include/grub/i386/coreboot/kernel.h: Likewise.
43276 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43277 Overwrite grub_prefix with its contents, at the beginning of the
43279 (main): Understand -p|--prefix.
43281 2008-07-30 Robert Millan <rmh@aybabtu.com>
43283 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43285 2008-07-30 Robert Millan <rmh@aybabtu.com>
43287 * term/i386/pc/vga_text.c (grub_console_cls): Use
43288 grub_console_gotoxy() to go back to beginning of the screen.
43289 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43291 2008-07-29 Christian Franke <franke@computer.org>
43293 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43294 Add conversion of emulated mount points on Cygwin.
43296 2008-07-29 Christian Franke <franke@computer.org>
43298 * util/update-grub.in: Add a check for admin
43300 Remove old `grub.cfg.new' before creation.
43301 Add `-f' to `mv' to handle the different filesystem
43302 semantics of Windows.
43304 2008-07-29 Bean <bean123ch@gmail.com>
43306 * normal/main.c (get_line): Fix buffer overflow bug.
43308 2008-07-28 Robert Millan <rmh@aybabtu.com>
43310 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43311 (struct grub_apple_header): New struct. Describes the layout of
43312 the partmap header.
43313 (apple_partition_map_iterate): Check the header magic as well as the
43314 partition magic (which was already being checked).
43316 2008-07-28 Pavel Roskin <proski@gnu.org>
43318 * genmk.rb: Add a warning to the beginning of the output that
43319 it's a generated file and should not be edited.
43321 2008-07-28 Robert Millan <rmh@aybabtu.com>
43323 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43324 with the same number are found, just use issue a warning with
43325 grub_dprintf(), as this error has been reported to be non-fatal.
43327 2008-07-27 Robert Millan <rmh@aybabtu.com>
43329 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43332 2008-07-27 Bean <bean123ch@gmail.com>
43334 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43335 (grub_fat_find_dir): Ignore case when comparing filename.
43337 2008-07-27 Bean <bean123ch@gmail.com>
43339 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43340 smallino, as it's more descriptive, and i8count can be confused with
43341 the other field count.
43342 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43345 2008-07-27 Bean <bean123ch@gmail.com>
43347 * commands/crc.c: New file.
43349 * lib/crc.c: Likewise.
43351 * include/grub/lib/crc.h: Likewise.
43353 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43355 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43356 (hexdump): Move this function to ...
43358 * lib/hexdump.c: ... here.
43360 * include/grub/hexdump.h: Renamed to ...
43362 * include/grub/lib/hexdump.h: ... this.
43364 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43366 * util/grub-editenv.c: Likewise.
43368 * include/envblk.h: Renamed to ...
43370 * include/lib/envblk.h: ... this.
43372 * util/envblk.c: Renamed to ...
43374 * lib/envblk.c: ... this.
43376 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43378 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43379 (pkglib_MODULES): Add crc.mod.
43380 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43381 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43382 (crc_mod_SOURCES): New macro.
43383 (crc_mod_CFLAGS): Likewise.
43384 (crc_mod_LDFLAGS): Likewise.
43386 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43388 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43390 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43392 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43394 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43396 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43398 * commands/help.c: Include <grub/term.h>.
43399 (TERM_WIDTH): Removed. Updated all users.
43401 2008-07-27 Pavel Roskin <proski@gnu.org>
43403 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43404 spurious warnings about a comment within a comment.
43406 2008-07-25 Robert Millan <rmh@aybabtu.com>
43408 * util/getroot.c (find_root_device): Skip devices that match
43409 /dev/dm-[0-9]. This lets the real device be found for any type of
43410 abstraction (LVM, EVMS, RAID..).
43411 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43412 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43413 device is found first, find_root_device() will now skip it.
43415 2008-07-24 Pavel Roskin <proski@gnu.org>
43417 * include/grub/types.h: Use __builtin_bswap32() and
43418 __builtin_bswap64() with gcc 4.3 and newer.
43420 2008-07-24 Christian Franke <franke@computer.org>
43422 * util/i386/pc/grub-install.in: If `--debug' is specified,
43423 pass `--verbose' to grub-setup.
43424 Abort script if make_system_path_relative_to_its_root() fails.
43426 2008-07-24 Bean <bean123ch@gmail.com>
43428 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43429 variable `target_platform' should be `platform'.
43431 2008-07-24 Bean <bean123ch@gmail.com>
43433 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43434 (grub_png_init_fixed_block): New function.
43435 (grub_png_decode_image_data): Handle fixed huffman code compression.
43437 2008-07-24 Bean <bean123ch@gmail.com>
43439 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43440 (grub_pe2elf_SOURCES): New macro.
43441 (CLEANFILES): Add grub-pe2elf.
43443 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43444 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43445 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43446 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43447 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43448 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43449 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43450 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43451 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43452 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43453 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43454 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43455 (GRUB_PE32_DT_FUNCTION): Likewise.
43456 (GRUB_PE32_REL_I386_DIR32): Likewise.
43457 (GRUB_PE32_REL_I386_REL32): Likewise.
43458 (grub_pe32_symbol): New structure.
43459 (grub_pe32_reloc): Likewise.
43461 * util/grub-pe2elf.c: New file.
43463 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43464 start symbol in non pc platform.
43466 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43468 The following patches are from Christian Franke.
43470 * include/grub/dl.h: Remove .previous, gas supports this only
43473 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43474 Remove .type, gas supports this only for ELF format.
43476 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43477 nullbytes in symbol table. This fixes an infinite loop if table is
43480 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43481 TARGET_IMG_LDFLAGS and EXEEXT.
43483 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43484 TARGET_IMG_LDFLAGS_AC.
43485 (grub_CHECK_STACK_ARG_PROBE): New function.
43487 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43489 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43491 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43492 to set TARGET_IMG_LD* accordingly.
43493 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43494 Add call to grub_CHECK_STACK_ARG_PROBE.
43495 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43497 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43499 * genmk.rb: Add EXEEXT to CLEANFILES.
43501 2008-07-23 Robert Millan <rmh@aybabtu.com>
43503 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43504 define the codes for arrows and lines used for the menu).
43505 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43508 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43509 fonts, because the latter are too slow.
43511 2008-07-21 Bean <bean123ch@gmail.com>
43513 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43514 a20. Run keyboard test last, as it will cause macbook to halt.
43516 2008-07-18 Pavel Roskin <proski@gnu.org>
43518 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43519 load foreign architecture modules correctly anyway. Keep
43520 support for loading host architecture modules, whether we
43521 compile them or not.
43523 2008-07-17 Pavel Roskin <proski@gnu.org>
43525 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43526 change target_cpu. The compiler default can mismatch target_cpu
43529 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43530 * kern/efi/efi.c: Likewise.
43532 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43533 target compiler is functional.
43534 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43537 * configure.ac: Default to efi platform for x86_64-apple. Allow
43538 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43539 adjustments from the rest, only do them if target is not
43540 explicitly given. Merge other adjustments with the final sanity
43541 check. Remove an extraneous check for supported CPU. Be
43542 specific which CPU and which platform is not supported.
43544 * configure.ac: Default to pc platform for x86_64.
43546 2008-07-17 Robert Millan <rmh@aybabtu.com>
43548 Partial LinuxBIOS -> Coreboot rename.
43550 * conf/i386-linuxbios.rmk: Renamed to ...
43551 * conf/i386-coreboot.rmk: ... this.
43552 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43553 * configure.ac: Accept "coreboot" as input platform (but maintain
43554 compatibility with "linuxbios").
43555 * include/grub/i386/linuxbios: Renamed to ...
43556 * include/grub/i386/coreboot: ... this.
43558 2008-07-17 Bean <bean123ch@gmail.com>
43560 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43561 (appleldr_mod_SOURCE): New variable.
43562 (appleldr_mod_CFLAGS): Likewise.
43563 (appleldr_mod_LDFLAGS): Likewise.
43564 (pci_mod_SOURCES): Likewise.
43565 (pci_mod_CFLAGS): Likewise.
43566 (pci_mod_LDFLAGS): Likewise.
43567 (lspci_mod_SOURCES): Likewise.
43568 (lspci_mod_CFLAGS): Likewise.
43569 (lspci_mod_LDFLAGS): Likewise.
43571 * conf/x86_64-efi.rmk: New file.
43573 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43575 (grub_efidisk_write): Likewise.
43577 * include/efi/api.h (efi_call_0): New macro.
43578 (efi_call_1): Likewise.
43579 (efi_call_2): Likewise.
43580 (efi_call_3): Likewise.
43581 (efi_call_4): Likewise.
43582 (efi_call_5): Likewise.
43583 (efi_call_6): Likewise.
43585 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43586 grub_rescue_cmd_chainloader.
43588 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43589 (grub_pe32_optional_header): Change some fields based on i386 or
43591 (GRUB_PE32_PE32_MAGIC): Likewise.
43593 * include/grub/efi/uga_draw.h: New file.
43595 * include/grub/elf.h (STN_ABS): New constant.
43596 (R_X86_64_NONE): Relocation constant for x86_64.
43597 (R_X86_64_64): Likewise.
43598 (R_X86_64_PC32): Likewise.
43599 (R_X86_64_GOT32): Likewise.
43600 (R_X86_64_PLT32): Likewise.
43601 (R_X86_64_COPY): Likewise.
43602 (R_X86_64_GLOB_DAT): Likewise.
43603 (R_X86_64_JUMP_SLOT): Likewise.
43604 (R_X86_64_RELATIVE): Likewise.
43605 (R_X86_64_GOTPCREL): Likewise.
43606 (R_X86_64_32): Likewise.
43607 (R_X86_64_32S): Likewise.
43608 (R_X86_64_16): Likewise.
43609 (R_X86_64_PC16): Likewise.
43610 (R_X86_64_8): Likewise.
43611 (R_X86_64_PC8): Likewise.
43613 * include/grub/i386/efi/pci.h: New file.
43615 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43616 Change it value based on platform.
43617 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43618 (GRUB_E820_RAM): Likewise.
43619 (GRUB_E820_RESERVED): Likewise.
43620 (GRUB_E820_ACPI): Likewise.
43621 (GRUB_E820_NVS): Likewise.
43622 (GRUB_E820_EXEC_CODE): Likewise.
43623 (GRUB_E820_MAX_ENTRY): Likewise.
43624 (grub_e820_mmap): New structure.
43625 (linux_kernel_header): Change the efi field according to different
43626 kernel version, also field from linux_kernel_header.
43628 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43630 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43631 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43632 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43633 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43634 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43635 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43636 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43637 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43638 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43639 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43641 * include/grub/x86_64/efi/kernel.h: New file.
43643 * include/grub/x86_64/efi/loader.h: Likewise.
43645 * include/grub/x86_64/efi/machine.h: Likewise.
43647 * include/grub/x86_64/efi/pci.h: Likewise.
43649 * include/grub/x86_64/efi/time.h: Likewise.
43651 * include/grub/x86_64/linux.h: Likewise.
43653 * include/grub/x86_64/setjmp.h: Likewise.
43655 * include/grub/x86_64/time.h: Likewise.
43657 * include/grub/x86_64/types.h: Likewise.
43659 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43660 GRUB_TARGET_SIZEOF_VOID_P.
43662 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43663 (grub_efi_locate_handle): Likewise.
43664 (grub_efi_open_protocol): Likewise.
43665 (grub_efi_set_text_mode): Likewise.
43666 (grub_efi_stall): Likewise.
43667 (grub_exit): Likewise.
43668 (grub_reboot): Likewise.
43669 (grub_halt): Likewise.
43670 (grub_efi_exit_boot_services): Likewise.
43671 (grub_get_rtc): Likewise.
43673 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43674 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43675 (grub_efi_allocate_pages): Wrap efi calls.
43676 (grub_efi_free_pages): Wrap efi calls.
43677 (grub_efi_get_memory_map): Wrap efi calls.
43679 * kern/x86_64/dl.c: New file.
43681 * kern/x86_64/efi/callwrap.S: Likewise.
43683 * kern/x86_64/efi/startup.S: Likewise.
43685 * loader/efi/appleloader.c: Likewise.
43687 * loader/efi/chainloader.c (cmdline): New variable.
43688 (grub_chainloader_unload): Wrap efi calls.
43689 (grub_chainloader_boot): Likewise.
43690 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43693 * loader/efi/chainloader_normal.c (chainloader_command):
43694 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43697 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43699 (grub_e820_add_region): New function.
43700 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43702 (grub_find_video_card): New function.
43703 (grub_linux_setup_video): New function.
43704 (grub_rescue_cmd_linux): Probe for video information.
43706 * normal/x86_64/setjmp.S: New file.
43708 * term/efi/console.c (map_char): New function.
43709 (grub_console_putchar): Map unicode char.
43710 (grub_console_checkkey): Wrap efi calls.
43711 (grub_console_getkey): Likewise.
43712 (grub_console_getwh): Likewise.
43713 (grub_console_gotoxy): Likewise.
43714 (grub_console_cls): Likewise.
43715 (grub_console_setcolorstate): Likewise.
43716 (grub_console_setcursor): Likewise.
43718 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43720 2008-07-16 Pavel Roskin <proski@gnu.org>
43722 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43725 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43726 pointer, not an integer. This fixes a warning and prevents
43727 precision loss on 64-bit systems.
43728 (relocate_addresses): Remove unneeded cast.
43730 2008-07-15 Pavel Roskin <proski@gnu.org>
43732 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43734 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43736 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43737 Fix comparison between signed and unsigned.
43739 * include/grub/i386/ieee1275/console.h: Declare
43740 grub_console_init() and grub_console_fini().
43742 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43743 It's empty and unused.
43745 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43746 beginning to avoid warnings with some compilers.
43748 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43749 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43751 2008-07-14 Pavel Roskin <proski@gnu.org>
43753 * kern/env.c (grub_register_variable_hook): Don't copy empty
43754 string, it leaks memory. Pass "" to grub_env_set(), it should
43755 handle constant strings.
43757 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43758 * commands/cmp.c (grub_cmd_cmp): Likewise.
43759 * kern/dl.c (grub_dl_flush_cache): Likewise.
43760 (grub_dl_load_core): Likewise.
43761 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43762 (grub_elf64_load_phdrs): Likewise.
43764 2008-07-13 Pavel Roskin <proski@gnu.org>
43766 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43767 between signed and unsigned.
43768 (LzmaEnc_Finish): Fix warning about an unused parameter.
43770 2008-07-13 Bean <bean123ch@gmail.com>
43772 * Makefile.in (enable_lzo): New rule.
43774 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43776 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43778 * boot/i386/pc/lnxboot.S: #include <config.h>.
43780 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43781 its value according to the compression algorithm used, lzo or lzma.
43783 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43784 compression algorithm according to configure macro.
43786 * kern/i386/pc/startup.S (codestart): Likewise.
43788 * kern/i386/pc/lzma_decode.S: New file.
43790 * include/grub/lib/LzFind.h: Likewise.
43792 * include/grub/lib/LzHash.h: Likewise.
43794 * include/grub/lib/LzmaDec.h: Likewise.
43796 * include/grub/lib/LzmaEnc.h: Likewise.
43798 * include/grub/lib/LzmaTypes.h: Likewise.
43800 * lib/LzFind.c: Likewise.
43802 * lib/LzmaDec.c: Likewise.
43804 * lib/LzmaEnc.c: Likewise.
43806 2008-07-13 Bean <bean123ch@gmail.com>
43808 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43809 (grub_ext4_extent_header): New structure.
43810 (grub_ext4_extent): Likewise.
43811 (grub_ext4_extent_idx): Likewise.
43812 (grub_ext4_find_leaf): New function.
43813 (grub_ext2_read_block): Handle extents.
43815 2008-07-12 Robert Millan <rmh@aybabtu.com>
43817 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43819 2008-07-11 Robert Millan <rmh@aybabtu.com>
43821 * util/grub.d/40_custom.in: New file. Example on how to add custom
43822 entries to /etc/grub.d.
43823 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43824 40_custom (implicitly, by merging all the grub.d rules).
43826 2008-07-11 Pavel Roskin <proski@gnu.org>
43828 * commands/read.c (grub_getline): Fix invalid memory access.
43829 Don't add newline to the variable value.
43831 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43832 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43833 (serial_hw_get_port): Check validity of the port number.
43834 (grub_cmd_serial): Check return value of serial_hw_get_port().
43836 2008-07-07 Pavel Roskin <proski@gnu.org>
43838 * boot/i386/pc/diskboot.S (notification_string): Replace
43839 "Loading kernel" with just "loading". This is shorter, less
43840 confusing and saves a few bytes for possible future changes.
43842 2008-07-05 Pavel Roskin <proski@gnu.org>
43844 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43845 size for ATAPI devices, they are undefined. Output sector
43846 number in decimal form.
43848 * disk/ata.c: Use named constants for status bits.
43850 2008-07-04 Pavel Roskin <proski@gnu.org>
43852 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43853 grub_addr_t before casting it to the void pointer to fix a
43854 warning. Non-addressable regions are discarded earlier.
43855 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43856 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43857 (check_signature): Don't shadow table_header.
43858 (grub_linuxbios_table_iterate): Cast numeric constants to
43859 grub_linuxbios_table_header_t.
43860 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43863 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43866 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43867 pointer, which can cause warnings. Support 64-bit addresses.
43869 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43870 of sizeof(long). This fixes PowerPC image generation on x86_64.
43872 2008-07-04 Robert Millan <rmh@aybabtu.com>
43874 This fixes a performance issue when pc & gpt partmap iterators
43875 didn't abort iteration even after our hook found what it was
43876 looking for (often causing expensive probes of non-existent drives).
43878 Some callers relied on previous buggy behaviour, since they would
43879 raise an error when their own hooks caused early abortion of its
43882 * kern/device.c (grub_device_open): Improve error message.
43883 * disk/lvm.c (grub_lvm_open): Likewise.
43884 * disk/raid.c (grub_raid_open): Likewise.
43886 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43887 when hook requests it, independently of grub_errno.
43888 (pc_partition_map_probe): Do not fail when find_func() caused
43889 early abortion of pc_partition_map_iterate().
43891 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43892 when hook requests it, independently of grub_errno.
43893 (gpt_partition_map_probe): Do not fail when find_func() caused
43894 early abortion of gpt_partition_map_iterate().
43896 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43897 when hook requests it, independently of grub_errno. Do not fail when
43898 part_map_iterate_hook() caused early abortion of p->iterate().
43900 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43901 when grub_partition_iterate() returned with non-zero.
43903 2008-07-03 Pavel Roskin <proski@gnu.org>
43905 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43906 like we do in grub_ata_pio_read().
43907 (grub_ata_readwrite): Always write individual sectors. Fix the
43908 sector count for the remainder.
43909 (grub_ata_write): Enable writing to ATA devices. Correctly
43910 report error for ATAPI devices.
43912 2008-07-02 Pavel Roskin <proski@gnu.org>
43914 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
43917 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
43918 for every read sector, we already increment it for the whole
43919 batch. This fixes reading more than 256 sectors at once.
43921 * util/grub-editenv.c (cmd_info): Cast argument to long
43922 explicitly. ptrdiff_t reduces to int on i386.
43924 * util/grub-editenv.c (main): Be specific which parameter is
43927 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
43928 (memdisk): Make memdisk_orig_addr a pointer.
43930 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
43931 for file offsets, use grub_off_t instead. Fix printf format
43934 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
43935 there. Real unexpected warnings should not drown in the noise
43936 about known problems.
43938 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
43939 grub_disk_addr_t for memory addresses.
43941 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
43942 explicitly to fix a warning.
43944 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
43946 * Makefile.in (MODULE_LDFLAGS): New variable.
43947 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
43948 the linker accepts --build-id=none.
43949 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
43951 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
43953 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
43954 those in Linux XFS code. Provide a way to access 64-bit parent
43956 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
43957 the end of struct grub_xfs_dir_header.
43959 2008-07-02 Bean <bean123ch@gmail.com>
43961 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
43962 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43963 and GRUB_IEEE1275_FLAG_NO_ANSI.
43965 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
43966 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43967 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
43969 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
43970 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
43972 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
43973 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
43975 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
43976 esc sequence on non ANSI terminal.
43977 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
43979 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
43982 2008-07-02 Bean <bean123ch@gmail.com>
43984 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
43985 (grub_editenv_SOURCES): New variable.
43986 (pkglib_MODULES): Add loadenv.mod.
43987 (loadenv_mod_SOURCES): New variable.
43988 (loadenv_mod_CFLAGS): Likewise.
43989 (loadenv_mod_LDFLAGS): Likewise.
43991 * include/grub/envblk.h: New file.
43993 * util/envblk.c: New file.
43995 * util/grub-editenv.c: New file.
43997 * commands/loadenv.c: New file.
43999 2008-07-01 Pavel Roskin <proski@gnu.org>
44001 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44002 not unsigned char. This fixes warnings and is consistent with
44005 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44007 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44009 * term/tparm.c (analyze): Always set *popcount.
44011 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44012 cast to fix a warning.
44014 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44015 cast to suppress a warning.
44017 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44018 grub_fshelp_read_file() expects.
44020 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44021 write uuid as a 32-bit value in CPU byte order, so declare and
44024 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44025 long if the format specifier expects it.
44026 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44027 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44028 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44029 long to fix a warning.
44030 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44031 grub_dprintf() arguments to fix warnings.
44033 2008-06-30 Pavel Roskin <proski@gnu.org>
44035 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44036 install_bsd_part immediately before core.img is embedded or
44037 modified on disk. This fixes core.img verification if core.img
44038 cannot be embedded.
44040 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44041 core_path to calculate the blocklist.
44042 Patch from Javier Martín <lordhabbit@gmail.com>
44044 2008-06-29 Robert Millan <rmh@aybabtu.com>
44046 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44047 block to disk block.
44048 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44049 Patch from Niels Böhm <bitbucket@arcor.de>
44051 2008-06-29 Robert Millan <rmh@aybabtu.com>
44053 * util/update-grub_lib.in (font_path): Search for fonts in
44054 /boot/grub first, which is more likely to be readable (we aren't
44055 deciding where fonts live, just looking for them).
44057 2008-06-26 Pavel Roskin <proski@gnu.org>
44059 * util/biosdisk.c (read_device_map): Don't leave dead map
44060 entries for devices failing stat() check.
44062 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44063 core_path_dev for the core.img path on the target device.
44065 2008-06-26 Robert Millan <rmh@aybabtu.com>
44067 * disk/fs_uuid.c: New file.
44068 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44069 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44070 (fs_uuid_mod_LDFLAGS): New variables.
44071 * include/grub/disk.h (grub_disk_dev_id): Add
44072 `GRUB_DISK_DEVICE_UUID_ID'.
44073 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44074 implement iterate().
44076 2008-06-26 Robert Millan <rmh@aybabtu.com>
44078 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44079 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44080 Linux image includes no initrd.
44082 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44084 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44085 call to resolve the core image location that effectively appended the
44088 2008-06-21 Robert Millan <rmh@aybabtu.com>
44090 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44093 * util/grub.d/10_hurd.in: ... to here ...
44094 * util/grub.d/10_linux.in: ... and here.
44096 2008-06-19 Robert Millan <rmh@aybabtu.com>
44098 * kern/main.c (grub_main): Export `prefix' variable immediately
44099 after it has been set by grub_machine_set_prefix().
44101 2008-06-19 Robert Millan <rmh@aybabtu.com>
44103 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44104 search result when not saving to variable, not the other way around.
44105 When saving to variable, abort iteration as soon as a match is found.
44107 2008-06-19 Robert Millan <rmh@aybabtu.com>
44109 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44110 check for partition that provides /boot/grub. Its logic is flawed,
44111 as it prevents prepare_grub_to_access_device() from being called
44114 2008-06-19 Robert Millan <rmh@aybabtu.com>
44116 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44117 "insmod" command directly when abstraction modules are needed,
44118 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44119 since it had already been processed).
44121 2008-06-19 Pavel Roskin <proski@gnu.org>
44123 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44124 changed. This is needed in case GRUB_LIBDIR changes.
44125 * conf/i386-ieee1275.rmk: Likewise.
44126 * conf/i386-linuxbios.rmk: Likewise.
44127 * conf/i386-pc.rmk: Likewise.
44128 * conf/powerpc-ieee1275.rmk: Likewise.
44130 2008-06-18 Pavel Roskin <proski@gnu.org>
44132 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44133 kernel_elf_symlist.c to symlist.c for consistency with other
44134 architectures. Update all users.
44135 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44137 2008-06-18 Robert Millan <rmh@aybabtu.com>
44139 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44142 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44143 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44144 a RAID device, run setup() for all members independently on whether
44145 LVM abstraction is being used.
44146 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44147 If grub-mkimage has set `*install_dos_part == -2', don't override this
44149 Perform *install_dos_part adjustments independently on whether
44150 we're embedding or not.
44151 Clarify error message when image is too big for embedding.
44152 Remove duplicate *install_dos_part stanza.
44154 2008-06-17 Robert Millan <rmh@aybabtu.com>
44156 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44157 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44159 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44160 values in grub_ofconsole_normal_color and
44161 grub_ofconsole_highlight_color (they're not directly related to
44162 background and foreground).
44163 (grub_ofconsole_setcolorstate): Extract background and foreground
44164 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44166 2008-06-17 Robert Millan <rmh@aybabtu.com>
44168 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44169 /boot/grub for the check in last commit, not /boot (they could be
44170 different partitions).
44172 2008-06-16 Robert Millan <rmh@aybabtu.com>
44174 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44175 asked to setup access for the same partition that provides /boot,
44176 don't bother using UUIDs since our root already has the value we
44179 2008-06-16 Robert Millan <rmh@aybabtu.com>
44181 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44183 Patch from Sven Mueller <sven@debian.org>.
44185 2008-06-16 Robert Millan <rmh@aybabtu.com>
44187 * util/update-grub.in: Check for $EUID instead of $UID.
44188 Reported by Vincent Zweije.
44190 2008-06-16 Bean <bean123ch@gmail.com>
44192 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44193 (grub_ext2_read_block): Likewise.
44194 (grub_ext2_read_inode): Likewise.
44195 (grub_ext2_mount): Likewise.
44196 (grub_ext2_close): Likewise.
44197 (grub_ext3_get_journal): Removed.
44199 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44200 (grub_reiserfs_read_symlink): Likewise.
44201 (grub_reiserfs_mount): Likewise.
44202 (grub_reiserfs_open): Likewise.
44203 (grub_reiserfs_read): Likewise.
44204 (grub_reiserfs_close): Likewise.
44205 (grub_reiserfs_get_journal): Removed.
44207 * fs/fshelp.c (grub_fshelp_read): Removed.
44208 (grub_fshelp_map_block): Likewise.
44210 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44211 (grub_fshelp_journal): Likewise.
44212 (grub_fshelp_read): Likewise.
44213 (grub_fshelp_map_block): Likewise.
44215 2008-06-16 Pavel Roskin <proski@gnu.org>
44217 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44218 floating point anymore.
44219 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44221 2008-06-15 Pavel Roskin <proski@gnu.org>
44223 * commands/ls.c (grub_ls_list_files): Use integer calculations
44224 for human readable format, avoid floating point use.
44225 * kern/misc.c (grub_ftoa): Remove.
44226 (grub_vsprintf): Remove floating point support.
44228 2008-06-15 Robert Millan <rmh@aybabtu.com>
44230 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44232 Reported by Max Vozeler.
44234 2008-06-15 Robert Millan <rmh@aybabtu.com>
44236 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44237 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44239 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44240 the beginning of the prefix.
44242 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44243 It is assumed that if we have a memdisk, grub-mkimage has set
44244 grub_prefix to include the "(memdisk)" drive in it.
44246 2008-06-15 Robert Millan <rmh@aybabtu.com>
44248 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44249 Initialize keyboard controller after registering the terminal, so that
44250 grub_printf() can be called from grub_keyboard_controller_init().
44252 2008-06-15 Robert Millan <rmh@aybabtu.com>
44254 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44255 extent-btree which is written as big endian on disk.
44256 Reported by Alain Greppin <al@chilibi.org>.
44258 2008-06-14 Robert Millan <rmh@aybabtu.com>
44260 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44261 * util/i386/pc/grub-install.in (modules): Likewise.
44263 2008-06-13 Pavel Roskin <proski@gnu.org>
44265 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44267 2008-06-13 Bean <bean123ch@gmail.com>
44269 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44271 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44273 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44274 to indicate sparse block.
44276 2008-06-12 Pavel Roskin <proski@gnu.org>
44278 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44279 number, grub_fshelp_read() does it for us.
44281 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44282 linear disk read with journal translation.
44283 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44284 * include/grub/fshelp.h: Declare grub_fshelp_read().
44286 2008-06-09 Pavel Roskin <proski@gnu.org>
44288 * fs/minix.c (grub_minix_mount): Handle error reading
44291 2008-06-08 Robert Millan <rmh@aybabtu.com>
44293 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44294 don't append the RAID prefix afterwards.
44295 Reported by Clint Adams.
44297 2008-06-08 Robert Millan <rmh@aybabtu.com>
44299 Based on description from Pavel:
44300 * kern/disk.c (grub_disk_check_range): Rename to ...
44301 (grub_disk_adjust_range): ... this. Add a comment explaining the
44302 tasks performed by this function.
44304 2008-06-08 Robert Millan <rmh@aybabtu.com>
44306 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44307 `num_serial' (for consistency with other variables).
44308 (struct grub_ntfs_data): Add `uuid' member.
44309 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44310 (grub_ntfs_uuid): New function.
44311 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44313 2008-06-07 Pavel Roskin <proski@gnu.org>
44315 * util/biosdisk.c (open_device): Revert last change to the
44316 function, it broke installation. The sector needs to be
44317 different dependent on which device is opened.
44319 2008-06-06 Robert Millan <rmh@aybabtu.com>
44321 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44322 rest of GRUB, and breakage doesn't happen if its value were modified.
44324 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44325 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44326 a constant (same value).
44327 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44328 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44330 2008-06-06 Robert Millan <rmh@aybabtu.com>
44332 * util/biosdisk.c (open_device): Do not modify sector offset when
44333 accessing a partition. kern/disk.c already handles this for us.
44335 2008-06-06 Robert Millan <rmh@aybabtu.com>
44337 * util/grub-emu.c (grub_machine_init): Move code in this function from
44339 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44340 segfault in case grub_printf() is called).
44342 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44343 grub_probe. Update all users not to explicitly add it again.
44344 (grub_device): New variable; contains corresponding device for grubdir.
44345 (fs_module, partmap_module, devabstraction_module): Pass
44346 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44349 2008-06-05 Robert Millan <rmh@aybabtu.com>
44351 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44352 is found, print it (same layout as with labels).
44354 2008-06-04 Robert Millan <rmh@aybabtu.com>
44356 * util/biosdisk.c (get_drive): Rename to ...
44357 (find_grub_drive): ... this. Update all users.
44359 (get_os_disk): Rename to ...
44360 (convert_system_partition_to_system_disk): ... this. Update all users.
44362 (find_drive): Rename to ...
44363 (find_system_device): ... this. Update all users.
44365 2008-06-04 Robert Millan <rmh@aybabtu.com>
44367 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44368 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44369 (make_device_map): Likewise.
44371 2008-06-01 Robert Millan <rmh@aybabtu.com>
44373 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44374 before dereferencing it.
44376 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44377 union with fat12/fat16-specific ones. Add some new fields, including
44378 `num_serial' for both versions.
44379 (struct grub_fat_data): Add `uuid' member.
44380 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44381 names. Initialize `data->uuid' using `num_serial'.
44382 (grub_fat_uuid): New function.
44383 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44385 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44386 (grub_reiserfs_uuid): New function.
44387 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44390 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44391 (grub_xfs_uuid): New function.
44392 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44394 2008-06-01 Robert Millan <rmh@aybabtu.com>
44396 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44397 code that is backward compatible with pre-uuid search command.
44399 2008-05-31 Robert Millan <rmh@aybabtu.com>
44401 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44402 floppies after everything else, to ensure floppy drive isn't accessed
44403 unnecessarily (patch from Bean).
44405 2008-05-31 Robert Millan <rmh@aybabtu.com>
44407 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44408 not print device names when we were asked to set a variable.
44410 2008-05-31 Robert Millan <rmh@aybabtu.com>
44412 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44413 using "cursor-on" and "cursor-off" commands (understood at least by
44414 the Open Firmware flavour on OLPC).
44416 2008-05-31 Michael Gorven <michael@gorven.za.net>
44418 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44419 on and off sequences.
44421 2008-05-31 Robert Millan <rmh@aybabtu.com>
44423 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44424 * util/update-grub.in: Likewise.
44426 2008-05-30 Pavel Roskin <proski@gnu.org>
44428 * util/biosdisk.c (linux_find_partition): Simplify logic and
44429 make the code more universal. Keep special processing for
44430 devfs, but use a simple rule for all other devices. If the
44431 device ends with a number, append 'p' and the partition number.
44432 Otherwise, append only the partition number.
44434 2008-05-30 Robert Millan <rmh@aybabtu.com>
44436 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44437 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44438 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44439 the `root' parameter to Linux.
44441 2008-05-30 Robert Millan <rmh@aybabtu.com>
44443 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44444 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44445 --fs_uuid with --fs-uuid.
44446 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44447 all filesystems support them).
44449 2008-05-30 Robert Millan <rmh@aybabtu.com>
44451 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44452 grub_printf() flags, since we're printing in units of 2 bytes.
44454 2008-05-30 Robert Millan <rmh@aybabtu.com>
44456 * util/grub.d/00_header.in: Remove obsolete comment referencing
44457 convert_system_path_to_grub_path().
44458 * util/update-grub.in: Likewise.
44459 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44460 (convert_system_path_to_grub_path): Add a warning message explaining
44461 that this function is deprecated. Rely on is_path_readable_by_grub()
44462 for the readability checks.
44463 (font_path): Use is_path_readable_by_grub() for the readability
44464 check rather than convert_system_path_to_grub_path().
44466 2008-05-30 Robert Millan <rmh@aybabtu.com>
44468 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44469 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44470 converting it first.
44471 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44472 grub.cfg for access to font file, and afterwards call it again to set
44475 2008-05-30 Robert Millan <rmh@aybabtu.com>
44477 * commands/search.c (options): Add --fs_uuid option.
44478 (search_fs_uuid): New function.
44479 (grub_cmd_search): Fix --set argument passing.
44480 Use search_fs_uuid() when requested via --fs_uuid.
44481 (grub_search_init): Update help message.
44482 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44483 and redeclare it as an array of 16-bit words.
44484 (grub_ext2_uuid): New function.
44485 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44486 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44487 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44488 (GRUB_DEVICE_BOOT_UUID): New variables.
44489 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44490 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44492 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44493 just assume `root' variable has the right value.
44494 * util/grub.d/10_linux.in: Likewise.
44495 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44497 (main): Recognise `-t fs_uuid' argument.
44499 2008-05-30 Robert Millan <rmh@aybabtu.com>
44501 * util/biosdisk.c (map): Redefine structure to hold information
44502 about GRUB drive name.
44503 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44505 (call_hook): Remove.
44506 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44507 member. Assume drive has partitions.
44508 (grub_util_biosdisk_open): Access device names via `.device' struct
44510 (open_device): Likewise.
44511 (find_drive): Likewise.
44512 (read_device_map): Adjust map[] usage to match the new struct
44513 definition. Don't check for duplicates (still possible, but not cheap
44515 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44516 (make_device_name): Remove assumption of BIOS-like drive names.
44518 2008-05-30 Pavel Roskin <proski@gnu.org>
44520 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44521 compiling execute.c doesn't need grub_script.tab.h anymore.
44522 (normal/command.c_DEPENDENCIES): Likewise.
44523 (normal/function.c_DEPENDENCIES): Likewise.
44524 * conf/i386-ieee1275.rmk: Likewise.
44525 * conf/i386-linuxbios.rmk: Likewise.
44526 * conf/i386-pc.rmk: Likewise.
44527 * conf/powerpc-ieee1275.rmk: Likewise.
44528 * conf/sparc64-ieee1275.rmk: Likewise.
44530 2008-05-29 Pavel Roskin <proski@gnu.org>
44532 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44533 when scanning metadata for volume group name.
44535 * include/grub/script.h: Don't include grub_script.tab.h. It's
44536 a generated file, which may only be included from the files with
44537 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44538 use union YYSTYPE, as the later allows forward declaration.
44539 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44541 2008-05-29 Robert Millan <rmh@aybabtu.com>
44543 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44544 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44545 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44546 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44549 2008-05-29 Robert Millan <rmh@aybabtu.com>
44551 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44552 control key combinations.
44554 2008-05-29 Robert Millan <rmh@aybabtu.com>
44556 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44557 * util/ieee1275/grub-install.in: ... to here.
44558 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44559 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44560 (grub_install_SOURCES): Likewise.
44562 2008-05-29 Robert Millan <rmh@aybabtu.com>
44564 * fs/affs.c: Update copyright year.
44565 * fs/ext2.c: Likewise.
44566 * fs/fshelp.c: Likewise.
44567 * fs/hfsplus.c: Likewise.
44568 * fs/ntfs.c: Likewise.
44569 * fs/xfs.c: Likewise.
44570 * include/grub/fshelp.h: Likewise.
44571 * util/grub-mkdevicemap.c: Likewise.
44573 2008-05-28 Robert Millan <rmh@aybabtu.com>
44575 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44576 might need to be fatfs to support some firmware implementations
44579 2008-05-28 Robert Millan <rmh@aybabtu.com>
44581 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44583 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44584 (make_device_map): Likewise.
44586 2008-05-20 Bean <bean123ch@gmail.com>
44588 * fs/fshelp.c (grub_fshelp_map_block): New function.
44589 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44590 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44592 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44593 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44594 (grub_fshelp_journal): New structure.
44595 (grub_fshelp_map_block): New function prototype.
44596 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44597 (grub_fshelp_map_block): Likewise.
44599 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44600 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44601 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44602 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44603 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44604 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44605 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44606 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44607 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44608 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44609 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44610 (grub_ext2_sblock): New members for journal support.
44611 (grub_ext3_journal_header): New structure.
44612 (grub_ext3_journal_revoke_header): Likewise.
44613 (grub_ext3_journal_block_tag): Likewise.
44614 (grub_ext3_journal_sblock): Likewise.
44615 (grub_fshelp_node): New members logfile and journal.
44616 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44617 grub_fshelp_map_block to get real block number.
44618 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44620 (grub_ext2_read_inode): Likewise.
44621 (grub_ext3_get_journal): New function.
44622 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44623 (grub_ext2_close): Release memory used by journal.
44625 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44626 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44627 (grub_reiserfs_transaction_header): Renamed to
44628 grub_reiserfs_description_block, replace field data with real_blocks.
44629 (grub_reiserfs_commit_block): New structure.
44630 (grub_reiserfs_data): New member journal.
44631 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44633 (grub_reiserfs_read_symlink): Likewise.
44634 (grub_reiserfs_iterate_dir): Likewise.
44635 (grub_reiserfs_open): Likewise.
44636 (grub_reiserfs_read): Likewise.
44637 (grub_reiserfs_get_journal): New function.
44638 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44639 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44640 using grub_reiserfs_get_journal.
44641 (grub_reiserfs_close): Release memory used by journal.
44643 * fs/affs.c (grub_affs_read_block): Change block type to
44644 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44646 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44648 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44650 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44652 * fs/udf.c (grub_udf_read_block): Change block type to
44653 grub_disk_addr_t. Use type cast to avoid warning.
44655 * fs/xfs.c (grub_xfs_read_block): Likewise.
44657 2008-05-16 Christian Franke <franke@computer.org>
44659 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44660 to ensure that break with ESC will always work.
44661 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44662 Remove ESC from keyboard queue.
44664 2008-05-16 Christian Franke <franke@computer.org>
44666 * util/biosdisk.c: [__CYGWIN__] Add includes.
44667 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44668 (get_os_disk): Move variable declarations to OS specific
44669 parts to avoid warning.
44670 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44671 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44672 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44674 * util/getroot.c: [__CYGWIN__] Add includes.
44675 (strip_extra_slashes): Fix "/" case.
44676 [__CYGWIN__] (get_win32_path): New function.
44677 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44678 [__CYGWIN__] (find_root_device): Disable.
44679 [__CYGWIN__] (get_bootsec_serial): New function.
44680 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44681 [__linux__] (grub_guess_root_device): Add early returns to simplify
44683 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44684 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44685 check for Linux only.
44687 2008-05-15 Bean <bean123ch@gmail.com>
44689 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44690 keyboard hang problem in apple's intel mac.
44692 2008-05-09 Robert Millan <rmh@aybabtu.com>
44694 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44696 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44697 (make_device_map): Likewise.
44698 Reported by Aurelien Jarno <aurel32@debian.org>
44700 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44702 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44703 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44704 (make_device_map): Output entries for xvd type disks.
44706 2008-05-07 Robert Millan <rmh@aybabtu.com>
44708 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44710 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44711 (make_device_map): Likewise.
44712 Reported by Roland Dreier <rdreier@cisco.com>
44714 2008-05-07 Robert Millan <rmh@aybabtu.com>
44716 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44717 grub_strstr() call. Correct a few mistakes in failure path handling.
44719 2008-05-06 Robert Millan <rmh@aybabtu.com>
44721 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44722 Do not print a trailing slash (therefore, the root directory is an
44724 (convert_system_path_to_grub_path): Do not remove trailing slash
44725 from make_system_path_relative_to_its_root() output.
44727 * util/i386/pc/grub-install.in: Add trailing slash to output from
44728 make_system_path_relative_to_its_root().
44730 2008-05-06 Robert Millan <rmh@aybabtu.com>
44732 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44733 ensures that output lines aren't intermangled with those sent to
44734 stderr (via grub_util_info()).
44735 * util/grub-probe.c (grub_refresh): Likewise.
44736 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44738 2008-05-05 Christian Franke <franke@computer.org>
44740 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44741 Add Cygwin device names.
44742 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44743 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44744 (check_device): Return error instead of success on empty name.
44745 (make_device_map): Move label inside linux specific code to
44746 prevent compiler warning.
44748 2008-04-30 Robert Millan <rmh@aybabtu.com>
44750 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44751 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44753 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44755 2008-04-29 Robert Millan <rmh@aybabtu.com>
44757 * docs/grub.cfg: New file (example GRUB configuration).
44759 2008-04-26 Robert Millan <rmh@aybabtu.com>
44761 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44762 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44763 and `disk/ieee1275/nand.c'.
44765 2008-04-25 Bean <bean123ch@gmail.com>
44767 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44770 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44771 change the buffer size to 4096 for cdrom device.
44773 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44775 (_linux_mod_SOURCES): New variable.
44776 (_linux_mod_CFLAGS): Likewise.
44777 (_linux_mod_LDFLAGS): Likewise.
44778 (linux_mod_SOURCES): Likewise.
44779 (linux_mod_CFLAGS): Likewise.
44780 (linux_mod_LDFLAGS): Likewise.
44781 (nand_mod_SOURCES): Likewise.
44782 (nand_mod_CFLAGS): Likewise.
44783 (nand_mod_LDFLAGS): Likewise.
44785 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44786 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44787 type property. (nand device in olpc don't have this property)
44789 * include/grub/disk.h (grub_disk_dev_id): New macro
44790 GRUB_DISK_DEVICE_NAND_ID.
44792 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44793 function prototype.
44794 (grub_rescue_cmd_initrd): Likewise.
44796 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44797 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44798 ofw_cif_handler and ofw_idt, adjust padding number.
44800 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44801 GRUB_MACHINE_IEEE1275 is defined.
44803 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44804 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44806 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44807 on nested function heap_init.
44808 (grub_upper_mem): New variable for i386-ieee1275.
44809 (grub_get_extended_memory): New function for i386-ieee1275.
44810 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44812 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44813 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44816 * loader/i386/ieee1275/linux.c: New file.
44818 * loader/i386/ieee1275/linux_normal.c: New file.
44820 * disk/ieee1275/nand.c: New file.
44822 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44824 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44826 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44828 2008-04-18 Robert Millan <rmh@aybabtu.com>
44830 Restructures early code path on ieee1275 to unify grub_main() as
44831 the first C function that is executed in every platform.
44833 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44834 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44836 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44837 * kern/ieee1275/cmain.c (cmain): Rename to ...
44838 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44839 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44842 2008-04-18 Robert Millan <rmh@aybabtu.com>
44844 * util/update-grub.in: Fix syntax error when setting
44845 `GRUB_PRELOAD_MODULES'.
44846 Reported by Stephane Chazelas <stephane@artesyncp.com>
44848 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44850 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44851 section into account, newer toolchains generate unique build ids
44852 * configure.ac: remove the test for --build-id=none acceptance,
44853 we want build ids to be preserved
44854 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44855 far from other sections don't cause the raw binary images grow
44858 2008-04-15 Robert Millan <rmh@aybabtu.com>
44860 * disk/lvm.c: Update copyright year.
44861 * kern/misc.c: Likewise.
44863 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44865 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
44866 there is no memory left for physical volume name.
44868 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44870 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44871 volume name mapping to support bigger than 9 character names properly.
44873 2008-04-13 Robert Millan <rmh@aybabtu.com>
44875 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44876 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44878 2008-04-13 Christian Franke <franke@computer.org>
44880 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44881 to create a floppy emulation boot CD when non emulation mode
44883 Enable Joliet CD filesystem extension.
44885 2008-04-13 Robert Millan <rmh@aybabtu.com>
44887 * kern/misc.c (grub_strncat): Fix off-by-one error.
44888 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44890 * kern/env.c (grub_env_context_close): Clear current context, not
44892 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44894 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44896 2008-04-13 Robert Millan <rmh@aybabtu.com>
44898 Improve robustness when handling LVM.
44900 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
44901 (and leave `*p' unmodified).
44902 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44904 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44905 iterating through it.
44906 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44908 (grub_lvm_scan_device): Check the return value (and fail gracefully
44909 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44910 Don't assume `vg->pvs != NULL' when iterating through it.
44912 2008-04-13 Robert Millan <rmh@aybabtu.com>
44914 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
44915 * genmk.rb (partmap): New variable.
44916 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
44917 (#{partmap}): New target rule.
44918 * genpartmaplist.sh: New file.
44919 * Makefile.in (pkglib_DATA): Add partmap.lst.
44920 (partmap.lst): New target rule.
44921 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
44922 modules (including all partition maps), instead of preloading them.
44924 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
44926 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
44927 `linux-boot-prober' (if installed) to detect other operating
44928 systems which are installed on the computer and add them to
44930 * conf/common.rmk: Build and install 30_os-prober.
44932 2008-04-12 Robert Millan <rmh@aybabtu.com>
44934 * kern/powerpc/ieee1275/init.c: Move from here ...
44935 * kern/ieee1275/init.c: ... to here. Update all users.
44937 * kern/powerpc/ieee1275/cmain.c: Move from here ...
44938 * kern/ieee1275/cmain.c: ... to here. Update all users.
44940 * kern/powerpc/ieee1275/openfw.c: Move from here ...
44941 * kern/ieee1275/openfw.c: ... to here. Update all users.
44943 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
44944 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
44946 2008-04-10 Pavel Roskin <proski@gnu.org>
44948 * configure.ac: Always use "_cv_" in cache variables for
44949 compatibility with Autoconf 2.62.
44951 2008-04-07 Robert Millan <rmh@aybabtu.com>
44953 Revert grub/machine/init.h addition by Pavel (since it breaks on
44954 i386-ieee1275 and others):
44955 * util/i386/pc/misc.c: Remove grub/machine/init.h.
44956 * util/powerpc/ieee1275/misc.c: Likewise.
44958 2008-04-07 Robert Millan <rmh@aybabtu.com>
44960 * util/grub-probe.c (probe): Improve error message.
44962 2008-04-07 Robert Millan <rmh@aybabtu.com>
44964 * util/biosdisk.c (read_device_map): Skip devices that don't exist
44965 (this prevents the presence of a bogus entry from ruining the whole
44968 2008-04-06 Pavel Roskin <proski@gnu.org>
44970 * util/biosdisk.c: Include grub/util/biosdisk.h.
44971 * util/grub-fstest.c (execute_command): Make static.
44972 * util/grub-mkdevicemap.c (check_device): Likewise.
44973 * util/i386/pc/misc.c: Include grub/machine/init.h.
44974 * util/powerpc/ieee1275/misc.c: Likewise.
44975 * util/lvm.c: Include grub/util/lvm.h.
44976 * util/misc.c: Include grub/kernel.h, grub/misc.h and
44978 * util/raid.c: Include grub/util/raid.h.
44979 (grub_util_getdiskname): Make static.
44981 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
44982 grub_hostfs_fini(), as they are called from grub_init_all() and
44983 grub_fini_all() respectively. This fixes an infinite loop in
44984 grub-fstest due to double registration of hostfs.
44985 Reported by Christian Franke <Christian.Franke@t-online.de>
44987 2008-04-05 Pavel Roskin <proski@gnu.org>
44989 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
44990 all 8 functions. Otherwise, probe function 0 only.
44992 2008-04-04 Pavel Roskin <proski@gnu.org>
44994 * commands/lspci.c (grub_lspci_iter): Print the bus number
44997 * commands/lspci.c (grub_pci_classes): Fix typos.
44998 (grub_lspci_iter): Don't print func twice. Print vendor ID
44999 before device ID, as it's normally done.
45001 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45002 Fix signedness warnings.
45003 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45005 * util/ieee1275/get_disk_name.c: Include config.h so that
45006 _GNU_SOURCE is defined and getline() is declared. Mark an
45007 unused argument as such. Fix a signedness warning.
45009 2008-04-02 Pavel Roskin <proski@gnu.org>
45011 * genkernsyms.sh.in: Use more robust assignments for CC and
45012 srcdir. Quote srcdir.
45013 * gensymlist.sh.in: Likewise. Assert at the compile time that
45014 the symbol table is not empty.
45016 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45017 * fs/cpio.c (grub_cpio_read): Likewise.
45019 2008-04-01 Pavel Roskin <proski@gnu.org>
45021 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45022 * disk/host.c (grub_host_open): Likewise.
45023 * disk/loopback.c (grub_loopback_open): Likewise.
45024 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45025 disk->id as in disk/host.c, not a multi-character constant.
45027 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45028 later is obsolete, potentially dangerous and sets a bad example.
45029 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45030 * util/misc.c (grub_util_get_image_size): Likewise.
45032 * disk/loopback.c (options): Improve help for "--partitions".
45034 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45035 options to align them with the short options, e.g. "echo -e".
45037 2008-03-31 Bean <bean123ch@gmail.com>
45039 * video/reader/png.c (grub_png_data): New member is_16bit and
45041 (grub_png_decode_image_header): Detect 16 bit png image.
45042 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45043 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45044 (grub_video_reader_png): Release memory occupied by image_data.
45046 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45048 (grub_nfs_mount): Skip the test for sector per cluster.
45050 * include/grub/ntfs.h (MAX_SPC): Removed.
45052 2008-03-31 Bean <bean123ch@gmail.com>
45054 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45055 (grub_probe_SOURCES): Add fs/afs.c.
45056 (grub_fstest_SOURCES): Likewise.
45057 (afs_mod_SOURCES): New variable.
45058 (afs_mod_CFLAGS): Likewise.
45059 (afs_mod_LDFLAGS): Likewise.
45061 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45062 (grub_emu_SOURCES): Likewise.
45064 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45066 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45068 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45070 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45072 * fs/afs.c: New file.
45074 2008-03-30 Pavel Roskin <proski@gnu.org>
45076 * disk/host.c: Include grub/misc.h to fix a warning.
45077 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45078 warnings about implicit declarations.
45080 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45082 * include/grub/i386/loader.h: Change declaration of
45083 grub_linux_boot() to match what grub_loader_set() expects.
45084 * util/getroot.c (grub_guess_root_device): Return const char* to
45086 * util/grub-probe.c (probe): Fix a warning about uninitialized
45087 abstraction_name variable.
45088 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45089 second argument as unused to fix a warning.
45091 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45092 missing grub_error() call.
45094 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45095 2.60 and newer uses it to define datadir.
45097 * commands/sleep.c: Fix warning about implicit declaration.
45098 * disk/memdisk.c: Likewise.
45099 * loader/aout.c: Likewise.
45100 * loader/i386/bsd_normal.c: Likewise.
45101 * util/grub-probe.c: Likewise.
45103 * commands/i386/cpuid.c (has_longmode): Make static.
45104 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45105 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45107 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45108 GDT. This is more robust, as %ds can change.
45109 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45110 calling real_to_prot().
45111 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45113 2008-03-28 Pavel Roskin <proski@gnu.org>
45115 * kern/i386/pc/startup.S: Assert that uncompressed functions
45116 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45117 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45118 code, as they push parts of the code (error handlers) beyond
45119 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45120 code as correctness and size.
45122 2008-03-28 Pavel Roskin <proski@gnu.org>
45124 * kern/i386/pc/startup.S
45125 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45126 data block address to the real mode, keep offset minimal. This
45127 works around a bug in AWARD BIOS on old Athlon systems, which
45128 makes CD detection hang.
45130 2008-03-26 Pavel Roskin <proski@gnu.org>
45132 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45134 * include/grub/normal.h: Add grub_parse_color_name_pair()
45137 2008-03-24 Bean <bean123ch@gmail.com>
45139 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45140 (cd_count): Removed.
45141 (cd_drive): New variable.
45142 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45143 (grub_biosdisk_call_hook): Likewise.
45144 (grub_biosdisk_iterate): Change cdrom detection method.
45145 (grub_biosdisk_open): Replace cd_start with cd_drive.
45146 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45147 detect cdrom device.
45149 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45151 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45152 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45153 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45154 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45155 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45156 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45157 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45158 (grub_biosdisk_cdrp): New structure.
45159 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45161 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45163 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45166 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45169 2008-03-20 Robert Millan <rmh@aybabtu.com>
45171 Remove 2 TiB limit in ata.mod.
45172 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45173 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45174 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45175 grub_uint64_t instead of grub_uint32_t.
45177 2008-03-05 Bean <bean123ch@gmail.com>
45179 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45180 (grub_multiboot): Set boot device.
45182 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45184 2008-03-02 Bean <bean123ch@gmail.com>
45186 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45189 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45191 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45194 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45197 * docs/fdl.texi: New file.
45199 * docs/mdate-sh: New file. Copied from gnulib.
45200 * docs/texinfo.tex: Likewise.
45202 * config.guess: Updated from gnulib.
45203 * install-sh: Likewise.
45205 2008-02-28 Robert Millan <rmh@aybabtu.com>
45207 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45208 (aout_mod_SOURCES): New variable.
45209 (aout_mod_CFLAGS): Likewise.
45210 (aout_mod_LDFLAGS): Likewise.
45212 * conf/i386-ieee1275.rmk: Likewise.
45214 2008-02-28 Robert Millan <rmh@aybabtu.com>
45216 * util/update-grub.in: Reorganise terminal validity check. Accept
45217 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45218 Based on suggestion by Franklin PIAT.
45220 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45222 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45224 * util/getroot.c (grub_util_check_block_device): New function that
45225 returns the given argument if it is a block device and returns NULL else.
45226 * util/grub-probe.c (argument_is_device): New variable.
45227 (probe): Promote device_name from a variable to an argument. Receive
45228 device_name from grub_util_check_block_device() if path is NULL and from
45229 grub_guess_root_device() else. Do not free() device_name anymore.
45230 (options): Introduce new parameter '-d, --device'.
45231 (main): Add description of the new parameter to the help screen.
45232 Rename path variable to argument. Set argument_is_device if the '-d'
45233 option is given. Pass argument to probe() depending on
45234 argument_is_device.
45236 2008-02-24 Bean <bean123ch@gmail.com>
45238 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45239 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45240 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45241 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45242 (GRUB_ISO9660_VOLDESC_END): Likewise.
45243 (grub_iso9660_primary_voldesc): New member escape.
45244 (grub_iso9660_data): New member joliet.
45245 (grub_iso9660_convert_string): New function.
45246 (grub_iso9660_mount): Detect joliet extension.
45247 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45248 (grub_iso9660_iso9660_label): Likewise.
45250 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45251 (grub_setup_SOURCES): Add fs/udf.c.
45252 (grub_fstest_SOURCES): Likewise.
45253 (udf_mod_SOURCES): New variable.
45254 (udf_mod_CFLAGS): Likewise.
45255 (udf_mod_LDFLAGS): Likewise.
45257 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45258 (grub_emu_SOURCES): Likewise.
45260 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45262 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45264 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45268 * fs/udf.c: New file.
45270 2008-02-24 Robert Millan <rmh@aybabtu.com>
45272 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45273 (normal/lexer.c_DEPENDENCIES): New variables.
45274 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45275 (normal/lexer.c_DEPENDENCIES): Likewise.
45276 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45277 (normal/lexer.c_DEPENDENCIES): Likewise.
45278 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45279 (normal/lexer.c_DEPENDENCIES): Likewise.
45280 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45281 (normal/lexer.c_DEPENDENCIES): Likewise.
45282 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45283 (normal/lexer.c_DEPENDENCIES): Likewise.
45285 2008-02-23 Robert Millan <rmh@aybabtu.com>
45287 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45288 since they were intended to be in hex. This didn't break previously
45289 because of a bug in gpt_partition_map_iterate() (see below).
45291 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45292 when checking the validity of GPT header.
45293 Remove `partno', since it always provides the same information as `i'.
45295 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45297 * include/grub/efi/time.h: Fix a wrong comment.
45299 2008-02-19 Pavel Roskin <proski@gnu.org>
45301 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45304 2008-02-19 Bean <bean123ch@gmail.com>
45306 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45307 (aout_mod_SOURCES): New variable.
45308 (aout_mod_CFLAGS): Likewise.
45309 (aout_mod_LDFLAGS): Likewise.
45310 (_bsd_mod_SOURCES): New variable.
45311 (_bsd_mod_CFLAGS): Likewise.
45312 (_bsd_mod_LDFLAGS): Likewise.
45313 (bsd_mod_SOURCES): New variable.
45314 (bsd_mod_CFLAGS): Likewise.
45315 (bsd_mod_LDFLAGS): Likewise.
45317 * include/grub/aout.h: New file.
45319 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45321 * include/grub/i386/bsd.h: New file.
45323 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45326 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45327 function is called, so that it's possible to change it inside the hook.
45328 (grub_elf64_load): Likewise.
45329 (grub_elf_file): Don't close the file if elf header is not found.
45330 (grub_elf_close): Close the file if grub_elf_file fails (The new
45331 grub_elf_file won't close it).
45332 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45333 (grub_elf64_size): Likewise.
45335 * kern/i386/loader.S (grub_unix_real_boot): New function.
45337 * loader/aout.c: New file.
45339 * loader/i386/bsd.c: New file.
45341 * loader/i386/bsd_normal.c: New file.
45343 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45345 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45346 can test other formats.
45348 2008-02-19 Robert Millan <rmh@aybabtu.com>
45350 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45351 (grub_gpt_partition_type_empty): Redefine with macro from
45352 `<grub/gpt_partition.h>'.
45353 (gpt_partition_map_iterate): Adjust partition type comparison.
45355 Export `entry' as partmap-specific `part.data' struct.
45356 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45358 * include/grub/gpt_partition.h (grub_gpt_header)
45359 (grub_gpt_partentry): ... to here (new file).
45361 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45363 (grub_gpt_partition_type_bios_boot): New const variable, defined
45364 with macro from `<grub/gpt_partition.h>'.
45366 (setup): Replace `first_start' with `embed_region', which keeps
45367 track of the embed region (and is partmap-agnostic).
45369 Replace find_first_partition_start() with find_usable_region(),
45370 which finds a usable region for embedding using partmap-specific
45371 knowledge (supports PC/MSDOS and GPT).
45373 Fix all assumptions that the embed region start at sector 1, using
45374 `embed_region.start' from now on. Similarly, use `embed_region.end'
45375 rather than `first_start' to calculate available size.
45377 In grub_util_info() message, replace "into after the MBR" with an
45378 indication of the specific sector our embed region starts at.
45380 2008-02-19 Robert Millan <rmh@aybabtu.com>
45382 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45383 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45384 `commands/reboot.c'.
45385 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45386 (halt_mod_SOURCES): Likewise.
45387 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45388 (halt_mod_SOURCES): Likewise.
45390 2008-02-17 Christian Franke <franke@computer.org>
45392 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45394 2008-02-17 Robert Millan <rmh@aybabtu.com>
45396 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45397 set `first_start' to 0 for non-PC/MSDOS partition maps.
45399 2008-02-16 Robert Millan <rmh@aybabtu.com>
45401 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45402 do not assume partition map is PC/MSDOS before performing checks that
45403 are specific to that layout.
45405 2008-02-13 Robert Millan <rmh@aybabtu.com>
45407 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45408 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45409 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45411 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45413 * configure.ac: Only a cosmetic change on the handling of
45414 -fno-stack-protector.
45416 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45418 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45419 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45421 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45422 (halt_mod_SOURCES): New variable.
45423 (halt_mod_CFLAGS): Likewise.
45424 (halt_mod_LDFLAGS): Likewise.
45425 (reboot_mod_SOURCES): Likewise.
45426 (reboot_mod_CFLAGS): Likewise.
45427 (reboot_mod_LDFLAGS): Likewise.
45429 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45430 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45432 (halt_mod_SOURCES): Likewise.
45433 (reboot_mod_SOURCES): Likewise.
45435 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45436 commands/i386/pc/reboot.c by commands/reboot.c.
45437 (reboot_mod_SOURCES): Likewise.
45439 * commands/i386/pc/reboot.c: merge this file ...
45441 * commands/ieee1275/reboot.c: ... and this file ...
45443 * commands/reboot.c: ... to this file.
45444 Add some precompiler directive to include the correct header for
45447 * commands/ieee1275/halt.c: move this file ...
45449 * commands/halt.c: ... to here.
45450 Add some precompiler directive to include the correct header for
45453 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45454 (grub_halt): Likewise.
45456 * kern/efi/efi.c (grub_reboot): New function.
45457 (grub_halt): Likewise.
45459 2008-02-12 Robert Millan <rmh@aybabtu.com>
45461 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45462 /dev (like it is done for /dev/mapper). This doesn't provide support
45463 for EVMS, but at least it is now easy to identify the problem when it
45466 2008-02-11 Robert Millan <rmh@aybabtu.com>
45468 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45469 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45470 comparing it with -1, not 0.
45472 2008-02-10 Robert Millan <rmh@aybabtu.com>
45474 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45476 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45477 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45479 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45480 `disk/lvm.c' to the end of the list.
45481 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45482 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45484 2008-02-10 Robert Millan <rmh@aybabtu.com>
45486 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45487 grub_print_error() instead. This will let user know why we're entering
45489 Based on suggestions from Sam Morris.
45491 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45493 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45494 on remaining N args, instead of "--" arg N times.
45496 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45498 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45499 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45500 pattern for unknown glyphs.
45502 2008-02-09 Robert Millan <rmh@aybabtu.com>
45504 * configure.ac: Probe for `help2man'.
45505 * Makefile.in (builddir): New variable.
45506 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45507 or otherwise add a few flags/options to it.
45508 (install-local): For every executable utility or script that is
45509 installed, invoke $(HELP2MAN) to install a manpage based on --help
45512 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45513 that it doesn't prevent --help from working in build tree.
45515 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45516 with `bug-grub@gnu.org'.
45517 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45518 * util/update-grub.in (usage): New function.
45519 Implement proper argument check, with support for --help and --version
45520 (as well as existing -y).
45522 2008-02-09 Christian Franke <franke@computer.org>
45524 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45525 avoid overwriting previous output.
45526 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45528 2008-02-09 Robert Millan <rmh@aybabtu.com>
45530 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45533 2008-02-09 Robert Millan <rmh@aybabtu.com>
45535 * commands/sleep.c: New file.
45536 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45537 (sleep_mod_SOURCES): New variable.
45538 (sleep_mod_CFLAGS): Likewise.
45539 (sleep_mod_LDFLAGS): Likewise.
45541 2008-02-09 Robert Millan <rmh@aybabtu.com>
45543 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45544 situations in which we can deduce the RAID size and the superblock
45547 2008-02-09 Robert Millan <rmh@aybabtu.com>
45549 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45550 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45551 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45553 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45554 and return a grub_diskmemberlist_t composed of physical array members.
45555 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45557 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45559 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45560 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45561 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45563 * util/grub-probe.c (probe): Move partmap probing code from here ...
45564 (probe_partmap): ... to here.
45565 (probe): Use probe_partmap() once for the disk we're probing, and
45566 additionally, when such disk contains a memberlist() struct member,
45567 once for each disk that is contained in the structure returned by
45570 2008-02-09 Robert Millan <rmh@aybabtu.com>
45572 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45573 environment variable to 'all' in order to obtain debug output from
45575 * util/i386/pc/grub-setup.c (main): Likewise.
45577 2008-02-08 Robert Millan <rmh@aybabtu.com>
45579 * disk/raid.c (grub_raid_scan_device): Check for
45580 `array->device[sb.this_disk.number]' rather than for
45581 `array->device[sb.this_disk.number]->name', since the latter is not
45582 guaranteed to be accessible.
45584 2008-02-08 Robert Millan <rmh@aybabtu.com>
45586 * disk/raid.c: Update copyright.
45587 * fs/cpio.c: Likewise.
45588 * include/grub/raid.h: Likewise.
45589 * loader/i386/pc/multiboot.c: Likewise.
45590 * util/hostfs.c: Likewise.
45592 2008-02-08 Robert Millan <rmh@aybabtu.com>
45594 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45595 to a grub_disk_t array.
45596 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45598 (grub_raid_scan_device): Replace `device[x].name' accesses with
45599 `device[x]->name'. Simplify initialization of `array->device[x]'.
45601 2008-02-08 Robert Millan <rmh@aybabtu.com>
45603 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45604 grub_dprintf() calls.
45605 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45608 2008-02-07 Christian Franke <franke@computer.org>
45610 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45611 instead of fseek and ftell to support large files.
45612 (grub_hostfs_read): Likewise.
45614 2008-02-07 Robert Millan <rmh@aybabtu.com>
45616 Patch from Jeroen Dekkers.
45617 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45618 failure, since successfully reading all array members might not be
45621 2008-02-06 Robert Millan <rmh@aybabtu.com>
45623 * util/grub-probe.c (probe): Simplify partmap probing (with the
45624 assumption that the first word up to the underscore equals to
45627 2008-02-06 Christian Franke <franke@computer.org>
45629 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45630 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45631 last block of a cpio or tar stream.
45632 Check for "TRAILER!!!" instead of any empty data
45633 block to detect last block of a cpio stream.
45634 (grub_cpio_dir): Fix constness of variable np.
45635 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45636 cpio or tar trailer is detected. This fixes a crash
45637 on open of a non existing file.
45639 2008-02-05 Bean <bean123ch@gmail.com>
45641 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45643 (grub_multiboot_load_elf64): Likewise.
45644 (grub_multiboot): Initialize mbi structure.
45646 * util/grub-fstest.c: Don't include unused header file script.h.
45648 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45650 (grub_fstest_SOURCES): Likewise.
45652 2008-02-05 Robert Millan <rmh@aybabtu.com>
45654 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45655 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45656 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45657 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45659 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45660 (translation_table): Replace hardcoded values with macros
45661 provided by `<grub/term.h>'.
45663 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45664 (keyboard_map): Correct/add a few values, with macros provided
45665 by `<grub/term.h>'.
45666 (keyboard_map_shift): Zero values that don't differ from their
45667 `keyboard_map' equivalents.
45668 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45669 Discard the second scan code that is always sent by Caps lock.
45670 Only use `keyboard_map_shift' when it provides a non-zero value,
45671 otherwise fallback to `keyboard_map'.
45673 2008-02-04 Bean <bean123ch@gmail.com>
45675 * Makefile.in (enable_grub_fstest): New variable.
45677 * conf/common.rmk (grub_fstest_init.lst): New rule.
45678 (grub_fstest_init.h): Likewise.
45679 (grub_fstest_init.c): Likewise.
45680 (util/grub-fstest.c_DEPENDENCIES): New variable.
45681 (grub_fstest_SOURCES): Likewise.
45683 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45685 * util/grub-fstest.c: New file.
45687 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45689 Make grub-setup handle a separate root device.
45691 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45692 so that the root device can be compared with the destination
45694 When embedding the core image, if the root and destination devices
45695 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45697 When not embedding, set ROOT_DRIVE to 0xFF.
45699 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45701 Add support for having a grub directory in a different drive. This
45702 is still only the data handling part.
45704 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45705 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45706 (grub_root_drive): New variable.
45708 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45709 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45710 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45713 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45715 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45717 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45719 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45720 is bogus, because PXE booting does not specify any drive
45723 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45724 am not sure if this is really correct.
45726 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45727 is always identical to the boot drive when booting from a CD.
45729 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45731 (root_drive): New variable.
45732 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45733 (setup_sectors): Push %dx right after popping it, because %dh will
45735 (copy_buffer): Restore %dx.
45737 2008-02-03 Robert Millan <rmh@aybabtu.com>
45739 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45740 use `cdboot.img' for cdrom images.
45742 2008-02-03 Robert Millan <rmh@aybabtu.com>
45744 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45745 only setup gfxterm when `font' command has succeeded.
45747 2008-02-03 Robert Millan <rmh@aybabtu.com>
45749 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45750 (grub_rescue_cmd_multiboot_loader)
45751 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45753 2008-02-03 Pavel Roskin <proski@gnu.org>
45755 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45756 %edx and %esi from stack only after grub_gate_a20() is called.
45757 grub_gate_a20() clobbers %edx.
45759 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45761 * configure.ac (AC_INIT): Bumped to 1.96.
45763 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45764 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45765 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45766 video/readers/png.c.
45768 2008-02-03 Bean <bean123ch@gmail.com>
45770 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45771 (cdboot_img_SOURCES): New variable.
45772 (cdboot_img_ASFLAGS): New variable.
45773 (cdboot_img_LDFLAGS): New variable.
45775 * boot/i386/pc/cdboot.S: New file.
45777 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45778 (cd_count): Likewise.
45779 (grub_biosdisk_get_drive): Add support for cd device.
45780 (grub_biosdisk_call_hook): Likewise.
45781 (grub_biosdisk_iterate): Likewise.
45782 (grub_biosdisk_open): Likewise.
45783 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45784 (grub_biosdisk_rw): Support reading from cd device.
45785 (GRUB_MOD_INIT): Iterate cd devices.
45787 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45788 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45789 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45791 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45793 2008-02-02 Robert Millan <rmh@aybabtu.com>
45795 * commands/read.c: New file.
45796 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45797 (read_mod_SOURCES): New variable.
45798 (read_mod_CFLAGS): Likewise.
45799 (read_mod_LDFLAGS): Likewise.
45801 2008-02-02 Robert Millan <rmh@aybabtu.com>
45803 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45804 determining whether menu has to be displayed.
45806 2008-02-02 Marco Gerards <marco@gnu.org>
45808 * bus/pci.c: New file.
45810 * include/grub/pci.h: Likewise.
45812 * include/grub/i386/pc/pci.h: Likewise.
45814 * commands/lspci.c: Likewise.
45816 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45818 (pci_mod_SOURCES): New variable.
45819 (pci_mod_CFLAGS): Likewise.
45820 (pci_mod_LDFLAGS): Likewise.
45821 (lspci_mod_SOURCES): Likewise.
45822 (lspci_mod_CFLAGS): Likewise.
45823 (lspci_mod_LDFLAGS): Likewise.
45825 2008-02-02 Bean <bean123ch@gmail.com>
45827 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45828 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45830 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45831 (grub_xfs_btree_node): New structure.
45832 (grub_xfs_btree_root): New structure.
45833 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45834 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45835 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45836 (GRUB_XFS_EXTENT_SIZE): Likewise.
45837 (grub_xfs_read_block): Support btree format type.
45838 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45839 Use directory block as basic unit.
45841 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45843 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45844 __attribute__ ((__regparm__ (1))).
45846 2008-02-01 Robert Millan <rmh@aybabtu.com>
45848 Correct a mistake in previous commit.
45850 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45852 (normal/command.c_DEPENDENCIES): New variable.
45854 2008-02-01 Robert Millan <rmh@aybabtu.com>
45856 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45858 (normal/command.c_DEPENDENCIES): New variable.
45859 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45860 * conf/i386-ieee1275.rmk: Likewise.
45861 * conf/i386-linuxbios.rmk: Likewise.
45862 * conf/i386-pc.rmk: Likewise.
45863 * conf/sparc64-ieee1275.rmk: Likewise.
45864 * conf/powerpc-ieee1275.rmk: Likewise.
45865 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45867 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45869 2008-02-01 Robert Millan <rmh@aybabtu.com>
45871 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45872 call at beginning of function.
45874 2008-01-31 Pavel Roskin <proski@gnu.org>
45876 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
45877 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45878 (grub_mkrescue_SOURCES): Likewise.
45879 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45881 2008-01-30 Robert Millan <rmh@aybabtu.com>
45883 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45884 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45885 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45886 (grub_probe_SOURCES): ... to here.
45888 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45889 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45890 * conf/i386-ieee1275.rmk: Likewise.
45891 * conf/i386-linuxbios.rmk: Likewise.
45892 * conf/powerpc-ieee1275.rmk: Likewise.
45894 2008-01-30 Tristan Gingold <gingold@free.fr>
45896 * kern/rescue.c: Silently accept empty lines.
45898 2008-01-29 Bean <bean123ch@gmail.com>
45900 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45901 (real_code_2): Code cleanup and change comment style.
45902 (move_memory): Avoid using 32-bit address mode.
45904 2008-01-29 Bean <bean123ch@gmail.com>
45906 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45907 (png_mod_SOURCES): New variable.
45908 (png_mod_CFLAGS): Likewise.
45909 (png_mod_LDFLAGS): Likewise.
45911 * video/readers/png.c: New file.
45913 2008-01-28 Robert Millan <rmh@aybabtu.com>
45915 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
45916 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
45917 `ifndef GRUB_MOD_GAP' hack.
45918 * util/elf/grub-mkimage.c (add_segments): Likewise.
45920 2008-01-27 Robert Millan <rmh@aybabtu.com>
45922 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
45923 `GRUB_MOD_GAP' for platforms in which it's not defined.
45924 * util/elf/grub-mkimage.c (add_segments): Likewise.
45926 2008-01-27 Robert Millan <rmh@aybabtu.com>
45928 Get grub-emu to build again (including parallel builds).
45930 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
45932 (util/grub-emu.c_DEPENDENCIES): ... this, ...
45933 (normal/execute.c_DEPENDENCIES): ... this, ...
45934 (grub-emu_DEPENDENCIES): ... and this.
45936 * conf/i386-efi.rmk: Likewise.
45937 * conf/i386-linuxbios.rmk: Likewise.
45938 * conf/i386-ieee1275.rmk: Likewise.
45939 * conf/powerpc-ieee1275.rmk: Likewise.
45940 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
45942 2008-01-27 Robert Millan <rmh@aybabtu.com>
45944 * NEWS: Add a few items.
45946 2008-01-27 Robert Millan <rmh@aybabtu.com>
45948 Fix parallel builds with grub-emu. Based on earlier commit for
45949 grub-probe and grub-setup.
45951 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45952 (util/grub-emu.c_DEPENDENCIES): ... this.
45953 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45954 (util/grub-emu.c_DEPENDENCIES): ... this.
45955 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45956 (util/grub-emu.c_DEPENDENCIES): ... this.
45957 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45958 (util/grub-emu.c_DEPENDENCIES): ... this.
45959 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45960 (util/grub-emu.c_DEPENDENCIES): ... this.
45962 2008-01-27 Pavel Roskin <proski@gnu.org>
45964 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
45965 to create a gap between _end and the modules added to the image
45966 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
45967 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
45968 * util/elf/grub-mkimage.c (add_segments): Likewise.
45970 2008-01-26 Pavel Roskin <proski@gnu.org>
45972 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
45973 just return an error.
45975 2008-01-26 Bean <bean123ch@gmail.com>
45977 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
45978 (grub_reiserfs_get_item): Save offset of the next item.
45979 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
45981 2008-01-25 Robert Millan <rmh@aybabtu.com>
45983 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
45984 make all filesystem sources appear together (possibly fixing omissions
45986 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45987 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45988 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45989 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45991 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
45993 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
45994 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
45995 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
45996 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
45998 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
45999 (probe): Add a sanity check to make sure of our ability to read
46000 requested files when probing for filesystem type.
46002 * genmk.rb: Update copyright year (2007).
46004 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46005 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46006 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46007 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46008 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46009 : Remove function prototypes.
46011 2008-01-25 Robert Millan <rmh@aybabtu.com>
46013 Revert my previous commits (based on wrong assumption of how grub_errno
46016 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46017 * kern/file.c (grub_file_open): Likewise.
46019 2008-01-24 Pavel Roskin <proski@gnu.org>
46021 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46022 that hang if GRUB tries to setup colors.
46023 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46024 colors for firmwares that don't support it.
46025 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46026 Recognize Open Hack'Ware, set flags to work around its
46029 2008-01-24 Robert Millan <rmh@aybabtu.com>
46031 * kern/file.c (grub_file_open): Do not account previous failures of
46032 unrelated functions when grub_errno is checked for.
46033 Reported by Oleg Strikov.
46035 2008-01-24 Bean <bean123ch@gmail.com>
46037 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46038 (grub_ufs_sblock): New member volume name.
46039 (grub_ufs_find_file): Fix string copy bug.
46040 (grub_ufs_label): Implement this function properly.
46042 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46043 (grub_hfs_iterate_records): Use the correct file number for extents
46044 and catalog file. Fix problem in next index calculation.
46045 (grub_hfs_find_node): Replace recursive function call with loop.
46046 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46048 2008-01-23 Robert Millan <rmh@aybabtu.com>
46050 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46051 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46052 (grub_multiboot2_real_boot): New function prototype.
46054 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46055 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46057 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46058 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46060 2008-01-23 Robert Millan <rmh@aybabtu.com>
46062 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46063 #ifdef'ed out grub_printf().
46065 2008-01-23 Robert Millan <rmh@aybabtu.com>
46067 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46068 grub_dprintf calls, since they make "debug=all" mode unusable.
46069 (grub_console_checkkey): Likewise.
46071 2008-01-23 Robert Millan <rmh@aybabtu.com>
46073 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46074 `term/i386/pc/at_keyboard.c'.
46075 (pkglib_MODULES): Add `serial.mod'.
46076 (serial_mod_SOURCES): New variable.
46077 (serial_mod_CFLAGS): Likewise.
46078 (serial_mod_LDFLAGS): Likewise.
46080 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46081 `<grub/powerpc/ieee1275/console.h>'.
46082 (grub_keyboard_controller_init): New function prototype.
46083 (grub_console_checkkey): Likewise.
46084 (grub_console_getkey): Likewise.
46086 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46089 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46090 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46092 2008-01-23 Robert Millan <rmh@aybabtu.com>
46094 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46095 present, "(memdisk)/boot/grub" becomes the default prefix.
46097 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46098 a memdisk tarball with all the modules. Add --overlay=DIR option that
46099 allows users to overlay additional files into the image.
46101 2008-01-23 Robert Millan <rmh@aybabtu.com>
46103 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46104 and `machine/memory.h'.
46105 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46106 (_multiboot_mod_SOURCES): New variable.
46107 (_multiboot_mod_CFLAGS): Likewise.
46108 (_multiboot_mod_LDFLAGS): Likewise.
46109 (multiboot_mod_SOURCES): Likewise.
46110 (multiboot_mod_CFLAGS): Likewise.
46111 (multiboot_mod_LDFLAGS): Likewise.
46113 * include/grub/i386/ieee1275/loader.h: New file.
46115 * include/grub/i386/ieee1275/machine.h: Likewise.
46117 * include/grub/i386/ieee1275/memory.h: Likewise.
46119 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46120 variable declaration.
46121 (grub_os_area_size): Likewise.
46123 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46124 (grub_lower_mem, grub_upper_mem): New variables.
46125 (grub_stop_floppy): New function (just to make
46126 grub_multiboot2_real_boot() happy).
46128 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46129 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46130 (grub_stop): New function.
46131 Include `"../realmode.S"' and `"../loader.S"'.
46133 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46134 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46136 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46137 rely on grub_multiboot2_real_boot() for final boot.
46139 2008-01-22 Robert Millan <rmh@aybabtu.com>
46141 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46142 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46143 device that doesn't look like an SD card.
46144 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46145 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46146 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46147 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46150 2008-01-22 Robert Millan <rmh@aybabtu.com>
46152 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46153 avoid claiming over our own code.
46155 2008-01-22 Bean <bean123ch@gmail.com>
46157 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46158 (jpeg_mod_SOURCES): New variable.
46159 (jpeg_mod_CFLAGS): Likewise.
46160 (jpeg_mod_LDFLAGS): Likewise.
46162 * video/readers/jpeg.c : New file.
46164 2008-01-22 Bean <bean123ch@gmail.com>
46166 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46167 there are no more items.
46169 2008-01-21 Robert Millan <rmh@aybabtu.com>
46171 * kern/mm.c (grub_mm_init_region): Improve debug message.
46173 2008-01-21 Robert Millan <rmh@aybabtu.com>
46175 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46176 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46178 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46180 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46181 Indicates start of upper memory.
46182 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46183 (generate_image): Abort when image size is big enough to corrupt
46186 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46187 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46188 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46189 instead of hardcoding 0xA0000.
46190 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46191 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46192 instead of hardcoding 0xA0000.
46194 2008-01-21 Robert Millan <rmh@aybabtu.com>
46196 * disk/memdisk.c (memdisk_size): New variable.
46197 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46199 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46200 image to dynamic memory.
46201 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46202 `memdisk_size'. Free memdisk block.
46204 2008-01-21 Robert Millan <rmh@aybabtu.com>
46206 Fix detection of very small filesystems (like tar).
46208 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46209 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46210 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46211 a problem with this disk).
46213 2008-01-21 Robert Millan <rmh@aybabtu.com>
46215 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46216 on grub_biosdisk_rw_standard() error.
46218 2008-01-21 Robert Millan <rmh@aybabtu.com>
46220 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46222 * kern/elf.c: Likewise.
46223 * kern/ieee1275/ieee1275.c: Likewise.
46224 * kern/powerpc/ieee1275/openfw.c: Likewise.
46225 * term/ieee1275/ofconsole.c: Likewise.
46227 2008-01-21 Robert Millan <rmh@aybabtu.com>
46229 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46231 * include/grub/kernel.h (grub_arch_memdisk_addr)
46232 (grub_arch_memdisk_size): Moved from here ...
46234 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46235 (grub_arch_memdisk_size): ... to here.
46237 2008-01-21 Robert Millan <rmh@aybabtu.com>
46239 Mostly based on bugfix from Bean.
46241 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46242 attribute with hook() parameter.
46243 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46245 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46246 attribute with hook() parameter.
46247 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46250 2008-01-21 Robert Millan <rmh@aybabtu.com>
46252 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46253 (pkglib_MODULES): Add `memdisk.mod'.
46254 (memdisk_mod_SOURCES): New variable.
46255 (memdisk_mod_CFLAGS): Likewise.
46256 (memdisk_mod_LDFLAGS): Likewise.
46258 * disk/memdisk.c: New file.
46260 * include/grub/disk.h (grub_disk_dev_id): Add
46261 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46263 * include/grub/i386/pc/kernel.h
46264 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46265 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46266 (grub_kernel_image_size): New variable declaration.
46267 (grub_total_module_size): Likewise.
46268 (grub_memdisk_image_size): Likewise.
46270 * include/grub/i386/pc/memory.h
46271 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46273 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46274 (grub_arch_memdisk_addr): New variable declaration.
46275 (grub_arch_memdisk_size): Likewise.
46277 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46278 (grub_arch_memdisk_size): Likewise.
46280 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46281 (codestart): Replace hardcoded `0x100000' with
46282 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46284 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46285 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46286 not NULL, append the contents of the file it refers to, at the end of
46287 the compressed kernel image. Initialize `grub_memdisk_image_size'
46288 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46289 (options): Add "memdisk"|'m' option.
46290 (main): Parse --memdisk|-m option, and pass user-provided path as
46291 parameter to generate_image().
46293 2008-01-20 Robert Millan <rmh@aybabtu.com>
46295 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46296 grub_dprintf() calls from here ...
46297 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46299 2008-01-20 Robert Millan <rmh@aybabtu.com>
46301 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46303 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46305 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46306 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46307 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46308 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46310 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46311 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46313 2008-01-19 Robert Millan <rmh@aybabtu.com>
46315 Get rid of confusing function (superseded by
46316 `grub_ieee1275_get_integer_property')
46317 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46319 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46321 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46322 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46323 in native endianness from grub_ieee1275_get_integer_property().
46325 2008-01-19 Robert Millan <rmh@aybabtu.com>
46327 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46328 command after "shut-down", since implementations differ on which
46329 the command for halt is.
46331 2008-01-19 Robert Millan <rmh@aybabtu.com>
46333 * include/grub/i386/linuxbios/console.h: Add header protection.
46334 (grub_keyboard_controller_init): New function prototype.
46335 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46336 (KEYBOARD_COMMAND_READ): Likewise.
46337 (KEYBOARD_COMMAND_WRITE): Likewise.
46338 (KEYBOARD_SCANCODE_SET1): Likewise.
46339 (grub_keyboard_controller_write): New function.
46340 (grub_keyboard_controller_read): Likewise.
46341 (grub_keyboard_controller_init): Likewise.
46343 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46344 (grub_console_init): On coreboot/LinuxBIOS, call
46345 grub_keyboard_controller_init().
46347 2008-01-19 Robert Millan <rmh@aybabtu.com>
46349 PowerPC changes provided by Pavel Roskin.
46351 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46352 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46353 don't rely on cmain() doing it.
46354 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46355 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46357 2008-01-16 Robert Millan <rmh@aybabtu.com>
46359 * include/grub/i386/linuxbios/memory.h
46360 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46361 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46362 receive `table_header' as argument. Instead, probe for it in the
46363 known memory ranges where it can be present.
46364 (grub_available_iterate): Do not pass a fixed `table_header' address
46365 to grub_linuxbios_table_iterate().
46367 2008-01-15 Robert Millan <rmh@aybabtu.com>
46369 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46370 * conf/i386-ieee1275.rmk: New file.
46371 * include/grub/i386/ieee1275/console.h: Likewise.
46372 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46373 * include/grub/i386/ieee1275/kernel.h: Likewise.
46374 * include/grub/i386/ieee1275/time.h: Likewise.
46375 * kern/i386/ieee1275/init.c: Likewise.
46376 * kern/i386/ieee1275/startup.S: Likewise.
46378 2008-01-15 Robert Millan <rmh@aybabtu.com>
46380 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46381 when pointers are 32-bit (but still do set it to one when they are
46384 2008-01-15 Robert Millan <rmh@aybabtu.com>
46386 * include/grub/ieee1275/ieee1275.h
46387 (grub_ieee1275_get_integer_property): New function prototype.
46389 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46390 (grub_ieee1275_get_integer_property): New function. Wraps around
46391 grub_ieee1275_get_property() to handle endianness.
46393 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46394 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46396 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46397 (grub_map): Likewise.
46398 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46400 2008-01-15 Bean <bean123ch@gmail.com>
46402 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46403 (grub_script_execute_cmdline): Reset grub_errno.
46405 * normal/main.c (read_config_file): Reset grub_errno.
46407 * normal/parse.y (script_init): New.
46408 (script): Move function and menuentry here.
46410 (command): Add delimiter at the end of command.
46411 (commands): Adjust to match the new command.
46412 (commandblock): Remove grub_script_lexer_record_start.
46413 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46414 (if): Use the new commands.
46416 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46418 2008-01-15 Robert Millan <rmh@aybabtu.com>
46420 * normal/menu.c (run_menu): Move timeout message from here ...
46421 (print_timeout): ... to here.
46422 (run_menu): Use print_timeout() once during initial draw to print
46423 the whole message, and again in every clock tick to update only
46424 the number of seconds.
46426 2008-01-15 Robert Millan <rmh@aybabtu.com>
46428 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46429 actual size of `available' from grub_ieee1275_get_property(), and
46430 restrict parsing to that bound.
46432 2008-01-15 Christian Franke <franke@computer.org>
46434 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46435 (argp_program_version): Remove variable.
46436 (argp_program_bug_address): Likewise.
46437 (options): Convert from struct argp_option to struct option.
46438 (struct arguments): Remove.
46439 (parse_opt): Remove.
46440 (usage): New function.
46441 (main): Replace struct args members by simple variables.
46442 Replace argp_parse() by getopt_long().
46443 Add switch to evaluate options.
46444 Add missing "(...)" around root_dev in prefix string.
46446 2008-01-14 Robert Millan <rmh@aybabtu.com>
46448 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46449 for grub_ieee1275_exit(), in order to improve portability.
46451 2008-01-14 Robert Millan <rmh@aybabtu.com>
46453 * util/grub.d/10_linux.in (prefix): Define.
46454 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46456 2008-01-13 Pavel Roskin <proski@gnu.org>
46458 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46459 grub_errno if no errors have been detected.
46461 2008-01-12 Robert Millan <rmh@aybabtu.com>
46463 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46464 (grub_util_get_dev_abstraction): New function prototype.
46466 * util/getroot.c: Include `<grub/util/getroot.h>'
46467 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46468 (grub_util_get_dev_abstraction): ... here (new function).
46470 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46471 `PRINT_ABSTRACTION'.
46472 (probe): Probe for abstraction type when requested.
46473 (main): Understand `--target=abstraction'.
46475 * util/i386/efi/grub-install.in: Add abstraction module to core
46476 image when it is found to be necessary.
46477 * util/i386/pc/grub-install.in: Likewise.
46478 * util/powerpc/ieee1275/grub-install.in: Likewise.
46480 * util/update-grub_lib.in (font_path): Return system path without
46481 converting to GRUB path.
46482 * util/update-grub.in: Convert system path returned by font_path()
46483 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46484 abstraction module is needed for loading fonts (if any). Export
46485 that as `GRUB_PRELOAD_MODULES'.
46486 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46489 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46491 Remove some unused code from reiserfs.
46493 * fs/reiserfs.c (struct grub_reiserfs_key)
46494 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46495 (struct grub_reiserfs_node_body): Removed.
46496 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46498 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46500 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46502 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46504 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46506 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46508 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46509 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46510 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46512 2008-01-10 Robert Millan <rmh@aybabtu.com>
46514 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46515 Determines if a file is garbage left by packaging systems, etc.
46516 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46517 for processing /etc/grub.d scripts.
46518 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46519 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46520 as a condition for processing Linux images.
46522 2008-01-10 Pavel Roskin <proski@gnu.org>
46524 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46525 to compile reiserfs.c on PowerPC.
46527 2008-01-10 Robert Millan <rmh@aybabtu.com>
46529 * kern/device.c (grub_device_iterate): Do not abort device iteration
46530 when one of the devices cannot be opened.
46531 * kern/disk.c (grub_disk_open): Do not account previous failures of
46532 unrelated functions when grub_errno is checked for.
46534 2008-01-08 Robert Millan <rmh@aybabtu.com>
46536 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46537 `! grub_linux_is_bzimage', change order of address comparison to make
46538 it more intuitive, and improve "too big zImage" error message.
46540 2008-01-08 Robert Millan <rmh@aybabtu.com>
46542 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46543 `$(update-grub_DATA)'.
46544 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46547 2008-01-07 Robert Millan <rmh@aybabtu.com>
46549 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46550 which instruction is modified by grub-setup during installation
46551 (since it wasn't obvious by only looking at this file).
46553 2008-01-07 Robert Millan <rmh@aybabtu.com>
46555 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46556 listing actual TODO items.
46558 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46560 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46562 (grub_reiserfs_get_key_offset): Likewise.
46563 (grub_reiserfs_set_key_offset): Likewise.
46564 (grub_reiserfs_set_key_type): Likewise.
46565 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46567 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46568 better to remove the bitfield version completely.
46570 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46572 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46573 allocated from the heap, due to the fshelp implementation.
46574 (grub_reiserfs_dir): Free NODE, due to the same reason.
46576 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46578 Mostly from Vincent Pelletier:
46580 * fs/reiserfs.c: New file.
46582 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46583 (reiserfs_mod_SOURCES): New variable.
46584 (reiserfs_mod_CFLAGS): Likewise.
46585 (reiserfs_mod_LDFLAGS): Likewise.
46587 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46588 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46589 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46592 2008-01-06 Robert Millan <rmh@aybabtu.com>
46594 * normal/color.c: Remove `<grub/env.h>'.
46596 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46598 * include/grub/normal.h: Include <grub/env.h>.
46600 2008-01-05 Robert Millan <rmh@aybabtu.com>
46602 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46603 usage example with `(hd0,1)'.
46604 Reported by Samuel Thibault.
46606 2008-01-05 Robert Millan <rmh@aybabtu.com>
46608 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46609 (grub_linux_boot_zimage): Rename to ...
46610 (grub_linux_boot): ... this.
46611 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46612 (grub_linux_boot_zimage): Conditionalize zImage copy.
46614 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46615 (grub_linux_boot_bzimage): Remove prototype.
46616 (grub_linux_boot_zimage): Rename to ...
46617 (grub_linux_boot): ... this.
46619 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46620 (grub_linux_boot): Remove function.
46622 2008-01-05 Robert Millan <rmh@aybabtu.com>
46624 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46625 (grub_env_write_color_highlight): Likewise.
46626 (grub_wait_after_message): Likewise.
46628 * normal/color.c: New file.
46630 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46631 (normal_mod_DEPENDENCIES): Likewise.
46633 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46634 (normal_mod_DEPENDENCIES): Likewise.
46636 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46637 (normal_mod_DEPENDENCIES): Likewise.
46639 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46640 (normal_mod_DEPENDENCIES): Likewise.
46642 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46643 for waiting after a message is printed.
46644 * normal/main.c (read_config_file): Likewise.
46645 (grub_normal_init): Register grub_env_write_color_normal() and
46646 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46647 `color_highlight' variables as global.
46649 * normal/menu.c (grub_wait_after_message): New function.
46650 (grub_color_menu_normal): New variable. Replaces ...
46651 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46652 (grub_color_menu_highlight): New variable. Replaces ...
46653 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46654 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46655 `GRUB_TERM_COLOR_STANDARD'.
46656 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46657 `normal_code' and `highlight_code' to `old_color_normal' and
46658 `old_color_highlight', respectively.
46659 (grub_menu_init_page): Update colors when drawing the menu, based on
46660 `menu_color_normal' and `menu_color_highlight' variables.
46661 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46662 a message is printed.
46664 2008-01-05 Robert Millan <rmh@aybabtu.com>
46666 * kern/env.c (grub_env_context_open): Propagate hooks for global
46667 variables to new context.
46669 * kern/main.c (grub_set_root_dev): Export `root' variable.
46671 2008-01-05 Robert Millan <rmh@aybabtu.com>
46673 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46674 discs unconditionally, since udev and others have options to provide
46677 2008-01-05 Robert Millan <rmh@aybabtu.com>
46679 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46681 2008-01-04 Christian Franke <franke@computer.org>
46683 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46686 2008-01-03 Pavel Roskin <proski@gnu.org>
46688 * kern/i386/linuxbios/init.c: Put "void" to all function
46689 declarations with no arguments.
46690 * kern/powerpc/ieee1275/init.c: Likewise.
46691 * term/i386/pc/at_keyboard.c: Likewise.
46692 * term/i386/pc/vga_text.c: Likewise.
46693 * util/grub-mkdevicemap.c: Likewise.
46695 2008-01-02 Robert Millan <rmh@aybabtu.com>
46697 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46698 message when loaded image is out of bounds.
46699 (grub_multiboot_load_elf64): Likewise.
46701 2008-01-02 Pavel Roskin <proski@gnu.org>
46703 * util/grub.d/10_linux.in: Try version without ".old" when
46704 looking for initrd. It's better to use initrd from the newer
46705 kernel of the same version than no initrd at all.
46707 2008-01-01 Robert Millan <rmh@aybabtu.com>
46709 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46711 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46713 * include/grub/video.h: Added grub_video_unmap_color and
46714 grub_video_get_active_render_target.
46715 (grub_video_adapter): Added unmap_color and get_active_render_target.
46717 * video/video.c: Added grub_video_unmap_color and
46718 grub_video_get_active_render_target.
46719 (grub_video_get_info): Changed method to accept NULL pointer as an
46720 argument to allow detection of active video adapter.
46722 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46723 grub_video_vbe_unmap_color_int.
46724 Added grub_video_vbe_unmap_color and
46725 grub_video_vbe_get_active_render_target.
46726 (grub_video_vbe_adapter): Added unmap_color and
46727 get_active_render_target.
46729 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46730 with grub_video_vbe_unmap_color_int.
46732 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46733 (DEFAULT_NORMAL_COLOR): Likewise.
46734 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46735 (DEFAULT_FG_COLOR): Removed.
46736 (DEFAULT_BG_COLOR): Likewise.
46737 (DEFAULT_CURSOR_COLOR): Changed value.
46738 (grub_virtual_screen): Added standard_color_setting,
46739 normal_color_setting, highlight_color_setting and term_color.
46740 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46741 (bitmap_width): Added.
46742 (bitmap_height): Likewise.
46743 (bitmap): Likewise.
46744 (set_term_color): Likewise.
46745 (grub_virtual_screen_setup): Changed to use new terminal coloring
46747 (grub_gfxterm_init): Added init for bitmap.
46748 (grub_gfxterm_fini): Added destroy for bitmap.
46749 (redraw_screen_rect): Updated to use background bitmap and new
46751 (scroll_up): Added optimization for case when there is no bitmap.
46752 (grub_gfxterm_cls): Fixed to use correct background color.
46753 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46755 (grub_virtual_screen_setcolor): Likewise.
46756 (grub_virtual_screen_getcolor): Added.
46757 (grub_gfxterm_background_image_cmd): Likewise.
46758 (grub_video_term): Added setcolor and getcolor.
46759 (MOD_INIT): Added registration of background_image command.
46760 (MOD_TERM): Added unregistration for background_image command.
46762 2007-12-30 Pavel Roskin <proski@gnu.org>
46764 * loader/multiboot_loader.c: Fix multiboot command
46765 unregistration. Fix all typos in the word "multiboot".
46767 2007-12-29 Pavel Roskin <proski@gnu.org>
46769 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46770 support for initrd names used in Fedora.
46772 2007-12-26 Bean <bean123ch@gmail.com>
46774 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46775 (cpio_mod_SOURCES): New variable.
46776 (cpio_mod_CFLAGS): Likewise.
46777 (cpio_mod_LDFLAGS): Likewise.
46779 * fs/cpio.c: New file.
46781 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46783 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46785 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46789 2007-12-25 Robert Millan <rmh@aybabtu.com>
46791 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46792 (grub_getcolor): New function.
46794 * kern/term.c (grub_getcolor): New function.
46795 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46796 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46797 (print_entry): Set normal and highlight colors to
46798 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46799 respectively, before printing and restore them to old
46801 (grub_menu_init_page): Likewise. Fill an additional colored space
46802 that would otherwise be left blank.
46804 * term/efi/console.c (grub_console_getcolor): New function.
46805 (struct grub_console_term.getcolor): New variable.
46806 * term/i386/pc/console.c (grub_console_getcolor): New function.
46807 (struct grub_console_term.getcolor): New variable.
46808 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46809 (struct grub_console_term.getcolor): New variable.
46811 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46812 (struct grub_console_term.setcolor): Remove variable.
46813 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46814 (struct grub_console_term.setcolor): Remove variable.
46815 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46816 (struct grub_console_term.setcolor): Remove variable.
46817 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46818 (struct grub_console_term.setcolor): Remove variable.
46820 2007-12-25 Robert Millan <rmh@aybabtu.com>
46822 * configure.ac: Search for possible unifont.hex locations, and
46823 define UNIFONT_HEX if found.
46825 * Makefile.in (UNIFONT_HEX): Define variable.
46826 (DATA): Rename to ...
46827 (PKGLIB): ... this. Update all users.
46828 (PKGDATA): New variable.
46829 (pkgdata_IMAGES): Rename to ...
46830 (pkglib_IMAGES): ... this. Update all users.
46831 (pkgdata_MODULES): Rename to ...
46832 (pkglib_MODULES): ... this. Update all users.
46833 (pkgdata_PROGRAMS): Rename to ...
46834 (pkglib_PROGRAMS): ... this. Update all users.
46835 (pkgdata_DATA): Rename to ...
46836 (pkglib_DATA): ... this. Update all users.
46837 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46838 (unicode.pff, ascii.pff): New rules.
46839 (all-local): Add `$(PKGDATA)' dependency.
46840 (install-local): Process `$(PKGDATA)'.
46842 * util/update-grub_lib.in (font_path): Search for *.pff files in
46843 a few more locations, including `${pkgdata}'.
46845 2007-12-23 Robert Millan <rmh@aybabtu.com>
46847 Patch from Bean <bean123ch@gmail.com>:
46848 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46851 2007-12-21 Bean <bean123ch@gmail.com>
46853 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46854 (ntfscomp_mod_SOURCES): New variable.
46855 (ntfscomp_mod_CFLAGS): Likewise.
46856 (ntfscomp_mod_LDFLAGS): Likewise.
46858 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46859 (grub_probe_SOURCES): Likewise.
46860 (grub_emu_SOURCES): Likewise.
46862 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46863 (grub_emu_SOURCES): Likewise.
46865 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46866 (grub_emu_SOURCES): Likewise.
46868 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46869 (grub_emu_SOURCES): Likewise.
46871 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46872 (read_run_list): Renamed to grub_ntfs_read_run_list.
46873 (decomp_nextvcn): Moved to ntfscomp.c.
46874 (decomp_getch): Likewise.
46875 (decomp_get16): Likewise.
46876 (decomp_block): Likewise.
46877 (read_block): Likewise.
46878 (read_data): Partially moved to ntfscomp.c.
46879 (fixup): Change unsigned to grub_uint16_t.
46880 (read_mft): Change unsigned long to grub_uint32_t.
46881 (read_attr): Likewise.
46882 (read_data): Likewise.
46883 (read_run_data): Likewise.
46884 (read_run_list): Likewise.
46885 (read_mft): Likewise.
46887 * fs/ntfscomp.c: New file.
46889 * include/grub/ntfs.h: New file.
46891 2007-12-16 Robert Millan <rmh@aybabtu.com>
46893 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46894 IDE disk check, since Linux is known to support 20 IDE disks.
46895 Reported by Colin Watson.
46897 2007-12-15 Bean <bean123ch@gmail.com>
46899 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46900 (lnxboot_img_SOURCES): New variable.
46901 (lnxboot_img_ASFLAGS): Likewise.
46902 (lnxboot_img_LDFLAGS): Likewise.
46904 * boot/i386/pc/lnxboot.S: New file.
46906 2007-11-24 Pavel Roskin <proski@gnu.org>
46908 * configure.ac: Test if '--build-id=none' is supported by the
46909 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46910 objcopy to generate incorrect binary files (binutils
46911 2.17.50.0.18-1 as shipped by Fedora 8).
46912 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
46913 linking, so that build ID doesn't break the test.
46915 2007-11-24 Pavel Roskin <proski@gnu.org>
46917 * include/grub/i386/time.h: use "void" in the argument list
46918 of grub_cpu_idle().
46919 * include/grub/powerpc/time.h: Likewise.
46920 * include/grub/sparc64/time.h: Likewise.
46922 2007-11-18 Christian Franke <franke@computer.org>
46924 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
46925 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
46926 This fixes the problem that function keys did not work in grub-emu.
46928 2007-11-18 Christian Franke <franke@computer.org>
46930 * disk/host.c (grub_host_open): Remove attribute unused from
46931 name parameter. Add check for "host". This fixes the problem
46932 that grub-emu does not find partitions.
46934 2007-11-18 Christian Franke <franke@computer.org>
46936 * util/hostfs.c (is_dir): New function.
46937 (grub_hostfs_dir): Handle missing dirent.d_type case.
46938 (grub_hostfs_read): Add missing fseek().
46939 (grub_hostfs_label): Clear label pointer. This fixes a crash
46940 of grub-emu on "ls (host)".
46942 2007-11-18 Christian Franke <franke@computer.org>
46944 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
46945 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
46946 to 64 bit boundary by default.
46948 2007-11-18 Bean <bean123ch@gmail.com>
46950 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
46951 (hexdump_mod_SOURCES): New variable.
46952 (hexdump_mod_CFLAGS): Likewise.
46953 (hexdump_mod_LDFLAGS): Likewise.
46955 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46957 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46959 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46961 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46963 * include/grub/hexdump.h: New file.
46965 * commands/hexdump.c: New file.
46967 2007-11-10 Robert Millan <rmh@aybabtu.com>
46969 * commands/i386/pc/play.c (beep_off): Switch order of arguments
46970 in grub_outb() calls.
46971 (beep_on): Likewise.
46973 2007-11-10 Christian Franke <franke@computer.org>
46975 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
46976 (grub_menu_run): Likewise.
46978 2007-11-10 Robert Millan <rmh@aybabtu.com>
46980 * include/grub/i386/efi/machine.h: New file.
46981 * include/grub/i386/linuxbios/machine.h: Likewise.
46982 * include/grub/i386/pc/machine.h: Likewise.
46983 * include/grub/powerpc/ieee1275/machine.h: Likewise.
46984 * include/grub/sparc64/ieee1275/machine.h: Likewise.
46986 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
46987 (serial_hw_io_addr): New variable.
46988 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
46989 instead of `(unsigned short *) 0x400'.
46991 2007-11-10 Bean <bean123ch@gmail.com>
46993 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
46995 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
46997 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
46998 (vga_mod_SOURCES): Added.
46999 (vga_mod_CFLAGS): Likewise.
47000 (vga_mod_LDFLAGS): Likewise.
47002 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47004 (set_map_mask): Likewise.
47005 (set_read_map): Likewise.
47006 (set_read_address): Likewise.
47007 (vga_font): Removed variable.
47008 (get_vga_glyph): Removed function.
47009 (invalidate_char): Likewise.
47010 (write_char): Changed to use grub_font_get_glyph() for font
47012 (grub_vga_putchar): Likewise.
47013 (grub_vga_getcharwidth): Likewise.
47015 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47017 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47019 (pxeboot_img_LDFLAGS): Likewise.
47020 (diskboot_img_LDFLAGS): Likewise.
47021 (kernel_img_LDFLAGS): Likewise.
47023 2007-11-06 Robert Millan <rmh@aybabtu.com>
47025 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47026 in grub_outb() calls.
47027 (serial_hw_init): Likewise.
47029 2007-11-05 Robert Millan <rmh@aybabtu.com>
47031 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47032 spaces. Skip non-regular files.
47034 2007-11-05 Robert Millan <rmh@aybabtu.com>
47036 * kern/disk.c (grub_disk_firmware_fini)
47037 (grub_disk_firmware_is_tainted): New variables.
47039 * include/grub/disk.h (grub_disk_firmware_fini)
47040 (grub_disk_firmware_is_tainted): Likewise.
47042 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47043 (grub_disk_biosdisk_fini): ... to here.
47044 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47045 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47046 is set. Register grub_disk_biosdisk_fini() in
47047 `grub_disk_firmware_fini'.
47049 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47050 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47051 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47052 to finish existing firmware disk interface.
47054 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47055 (ata_mod_SOURCES): New variable.
47056 (ata_mod_CFLAGS): Likewise.
47057 (ata_mod_LDFLAGS): Likewise.
47059 2007-11-05 Robert Millan <rmh@aybabtu.com>
47061 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47062 (grub_ata_wait): Reimplement using grub_millisleep().
47064 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47065 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47067 2007-11-03 Marco Gerards <marco@gnu.org>
47069 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47070 (CRTC_ADDR_PORT): New macro.
47071 (CRTC_DATA_PORT): Likewise.
47072 (CRTC_CURSOR): Likewise.
47073 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47074 (CRTC_CURSOR_ADDR_LOW): Likewise.
47075 (update_cursor): New function.
47076 (grub_console_real_putchar): Call `update_cursor'.
47077 (grub_console_gotoxy): Likewise.
47078 (grub_console_cls): Set the default color when clearing the
47080 (grub_console_setcursor): Implemented.
47082 2007-11-03 Marco Gerards <marco@gnu.org>
47084 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47086 (grub_ata_pio_write): Likewise.
47088 (grub_atapi_identify): Wait after issuing an ATA command.
47089 (grub_atapi_packet): Likewise.
47090 (grub_ata_identify): Likewise.
47091 (grub_ata_readwrite): Likewise.
47093 2007-11-03 Marco Gerards <marco@gnu.org>
47095 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47096 (grub_ata_pio_write): Likewise.
47097 (grub_ata_readwrite): Use `grub_error', instead of
47098 returning `grub_errno'.
47100 2007-11-03 Marco Gerards <marco@gnu.org>
47102 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47103 grub_ata_pio_write once for every single sector, instead of for
47106 2007-10-31 Robert Millan <rmh@aybabtu.com>
47108 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47110 * conf/i386-linuxbios.rmk: New file.
47112 * kern/i386/pc/hardware.c: Likewise.
47113 * term/i386/pc/at_keyboard.c: Likewise.
47114 * term/i386/pc/vga_text.c: Likewise.
47116 * include/grub/i386/linuxbios/boot.h: Likewise.
47117 * include/grub/i386/linuxbios/console.h: Likewise.
47118 * include/grub/i386/linuxbios/init.h: Likewise.
47119 * include/grub/i386/linuxbios/kernel.h: Likewise.
47120 * include/grub/i386/linuxbios/loader.h: Likewise.
47121 * include/grub/i386/linuxbios/memory.h: Likewise.
47122 * include/grub/i386/linuxbios/serial.h: Likewise.
47123 * include/grub/i386/linuxbios/time.h: Likewise.
47125 * kern/i386/linuxbios/init.c: Likewise.
47126 * kern/i386/linuxbios/startup.S: Likewise.
47127 * kern/i386/linuxbios/table.c: Likewise.
47129 2007-10-31 Marco Gerards <marco@gnu.org>
47131 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47132 (ata_mod_SOURCES): New variable.
47133 (ata_mod_CFLAGS): Likewise.
47134 (ata_mod_LDFLAGS): Likewise.
47136 * disk/ata.c: New file.
47138 * include/grub/disk.h (grub_disk_dev_id): Add
47139 `GRUB_DISK_DEV_ATA_ID'.
47141 2007-10-31 Robert Millan <rmh@aybabtu.com>
47143 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47144 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47146 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47147 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47149 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47152 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47154 2007-10-27 Robert Millan <rmh@aybabtu.com>
47156 * include/grub/types.h (ULONG_MAX): Define macro.
47158 2007-10-22 Robert Millan <rmh@aybabtu.com>
47160 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47162 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47164 2007-10-22 Robert Millan <rmh@aybabtu.com>
47166 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47167 (pkgdata_MODULES): Add `biosdisk.mod'.
47168 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47171 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47172 (grub_biosdisk_init): Replace with ...
47173 (GRUB_MOD_INIT(biosdisk)): ... this.
47174 (grub_biosdisk_fini): Replace with ...
47175 (GRUB_MOD_FINI(biosdisk)): ... this.
47177 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47178 (grub_machine_init): Remove call to grub_biosdisk_init().
47179 (grub_machine_fini): Remove call to grub_machine_fini().
47181 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47183 2007-10-22 Robert Millan <rmh@aybabtu.com>
47185 * include/grub/time.h: New file.
47186 * include/grub/i386/time.h: Likewise.
47187 * include/grub/powerpc/time.h: Likewise.
47188 * include/grub/sparc64/time.h: Likewise.
47190 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47192 (KERNEL_MACHINE_TIME_HEADER): ... this.
47193 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47195 (KERNEL_MACHINE_TIME_HEADER): ... this.
47196 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47198 (KERNEL_MACHINE_TIME_HEADER): ... this.
47200 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47201 (grub_millisleep): New function.
47202 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47203 (grub_millisleep): New function.
47204 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47205 Remove `grub/machine/time.h' include.
47206 (grub_millisleep): New function.
47207 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47208 Remove `grub/machine/time.h' include.
47209 (grub_millisleep): New function.
47211 * include/grub/misc.h (grub_div_roundup): New function.
47213 * kern/misc.c: Include `<grub/time.h>'.
47214 (grub_millisleep_generic): New function.
47216 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47218 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47220 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47221 `machine/time.h'. Add `time.h'.
47222 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47224 2007-10-21 Robert Millan <rmh@aybabtu.com>
47226 * include/grub/misc.h (grub_max): New function.
47228 2007-10-21 Robert Millan <rmh@aybabtu.com>
47230 * util/misc.c (grub_util_info): Call fflush() before returning.
47232 2007-10-20 Robert Millan <rmh@aybabtu.com>
47234 * genmk.rb (Image): Copy `extra_flags' from here ...
47235 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47237 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47238 to `argc' and `args' arguments.
47240 2007-10-17 Robert Millan <rmh@aybabtu.com>
47242 * kern/i386/loader.S: New file.
47244 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47245 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47246 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47247 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47248 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47249 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47250 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47251 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47252 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47253 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47254 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47255 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47256 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47257 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47259 * kern/i386/realmode.S: New file.
47261 * kern/i386/pc/startup.S (protstack): Moved from here ...
47262 * kern/i386/realmode.S (protstack)... to here.
47263 * kern/i386/pc/startup.S (gdt): Moved from here ...
47264 * kern/i386/realmode.S (gdt)... to here.
47265 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47266 * kern/i386/realmode.S (prot_to_real)... to here.
47268 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47269 `kern/i386/realmode.S'.
47271 2007-10-17 Robert Millan <rmh@aybabtu.com>
47273 * include/grub/i386/loader.h: New file.
47275 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47276 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47277 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47278 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47279 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47280 * include/grub/i386/loader.h (grub_linux_prot_size)
47281 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47282 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47283 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47284 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47286 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47288 2007-10-15 Robert Millan <rmh@aybabtu.com>
47290 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47291 filesystem when dev->disk is unset.
47292 Do probe for filesystem even when dev->disk->has_partitions is set.
47293 In case a filesystem is found, always report it.
47294 In case it isn't, if dev->disk->has_partitions is set, report that
47295 a partition table was found instead of reporting that no filesystem
47296 could be identified.
47298 2007-10-12 Robert Millan <rmh@aybabtu.com>
47300 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47301 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47303 * include/grub/types.h (grub_host_to_target16): New macro.
47304 (grub_host_to_target32): Likewise.
47305 (grub_host_to_target64): Likewise.
47306 (grub_target_to_host16): Likewise.
47307 (grub_target_to_host32): Likewise.
47308 (grub_target_to_host64): Likewise.
47310 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47311 Renamed from to ...
47312 (GRUB_MOD_ALIGN): ...this. Update all users.
47314 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47315 grub_host_to_target32.
47316 Replace grub_be_to_cpu32 with grub_target_to_host32.
47317 (load_modules): Likewise.
47318 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47319 Replace grub_be_to_cpu32 with grub_target_to_host32.
47320 Replace grub_cpu_to_be16 with grub_host_to_target16.
47321 Replace grub_cpu_to_be32 grub_host_to_target32.
47323 2007-10-12 Robert Millan <rmh@aybabtu.com>
47325 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47326 * util/elf/grub-mkimage.c: ... here.
47328 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47329 `util/powerpc/ieee1275/grub-mkimage.c'.
47331 2007-10-07 Robert Millan <rmh@aybabtu.com>
47333 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47334 and make it easier to figure out.
47335 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47336 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47337 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47338 leave us with less than HEAP_MIN_SIZE total heap.
47339 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47341 2007-10-03 Robert Millan <rmh@aybabtu.com>
47343 * include/grub/i386/io.h: New file.
47344 * commands/i386/pc/play.c (inb): Removed.
47346 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47348 * term/i386/pc/serial.c (inb): Removed.
47350 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47352 * term/i386/pc/vga.c (inb): Removed.
47354 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47357 2007-10-02 Robert Millan <rmh@aybabtu.com>
47359 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47360 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47361 Reported by Marcin Kurek.
47363 2007-09-07 Robert Millan <rmh@aybabtu.com>
47365 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47366 SmartFirmware version updates (as released by Sven Luther), and avoid
47367 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47368 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47371 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47373 From Hitoshi Ozeki:
47374 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47375 when merging two regions.
47377 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47379 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47380 * normal/completion.c (grub_normal_do_completion): Likewise.
47381 Reported by Hitoshi Ozeki.
47383 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47385 Do not use devices at boot in chainloading.
47387 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47388 (boot_part_addr): Likewise.
47389 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47390 with BOOT_DRIVE and BOOT_PART_ADDR.
47391 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47392 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47394 2007-08-29 Robert Millan <rmh@aybabtu.com>
47396 Patch from Simon Peter <dn.tlp@gmx.net>:
47397 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47398 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47399 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47400 util/i386/pc/grub-setup.c_DEPENDENCIES.
47401 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47402 util/grub-probe.c_DEPENDENCIES.
47403 * conf/powerpc-ieee1275.rmk: Likewise.
47405 2007-08-28 Robert Millan <rmh@aybabtu.com>
47407 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47408 to tell grub-mkdevicemap how to name devices.
47409 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47412 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47413 util/i386/get_disk_name.c.
47414 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47415 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47416 util/ieee1275/get_disk_name.c.
47418 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47420 * DISTLIST: Add util/i386/get_disk_name.c and
47421 util/ieee1275/get_disk_name.c.
47423 * util/grub-mkdevicemap.c: Replace device naming logic with
47424 grub_util_get_disk_name() calls.
47426 2007-08-20 Robert Millan <rmh@aybabtu.com>
47428 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47429 (so that it works for both plural and singular quantities).
47431 2007-08-05 Robert Millan <rmh@aybabtu.com>
47433 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47434 so that [xz] isn't taken into account when determining order.
47436 2007-08-02 Marco Gerards <marco@gnu.org>
47438 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47439 `include/multiboot2.h', `include/grub/elfload.h',
47440 `include/multiboot.h', `include/grub/multiboot.h',
47441 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47442 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47443 `kern/elf.c', `loader/multiboot_loader.c',
47444 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47445 `loader/i386/pc/multiboot2.c',
47446 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47447 `util/i386/pc/grub-mkrescue.in'. Remove
47448 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47449 `include/grub/i386/pc/util/biosdisk.h' and
47450 `include/grub/powerpc/ieee1275/multiboot.h'.
47452 2007-08-02 Bean <bean123ch@gmail.com>
47454 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47455 (ntfs_mod_SOURCES): New variable.
47456 (ntfs_mod_CFLAGS): Likewise.
47457 (ntfs_mod_LDFLAGS): Likewise.
47459 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47460 (grub_probe_SOURCES): Likewise.
47461 (grub_emu_SOURCES): Likewise.
47463 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47464 (grub_emu_SOURCES): Likewise.
47466 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47467 (grub_emu_SOURCES): Likewise.
47469 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47471 * fs/ntfs.c: New file.
47473 2007-08-02 Bean <bean123ch@gmail.com>
47475 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47477 * file.h (grub_file): Likewise.
47479 * fshelp.h (grub_fshelp_read_file): Likewise.
47481 * util/i386/pc/grub-setup.c (setup): Likewise.
47482 (save_first_sector): Likewise.
47483 (save_blocklists): Likewise.
47485 * fs/affs.c (grub_affs_read_file): Likewise.
47487 * fs/ext2.c (grub_ext2_read_file): Likewise.
47489 * fs/fat.c (grub_fat_read_data): Likewise.
47491 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47493 * fs/hfs.c (grub_hfs_read_file): Likewise.
47495 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47497 * fs/jfs.c (grub_jfs_read_file): Likewise.
47499 * fs/minix.c (grub_minix_read_file): Likewise.
47501 * fs/sfs.c (grub_sfs_read_file): Likewise.
47503 * fs/ufs.c (grub_ufs_read_file): Likewise.
47505 * fs/xfs.c (grub_xfs_read_file): Likewise.
47507 * command/blocklist.c (read_blocklist): Likewise.
47508 (print_blocklist): Likewise.
47510 2007-08-02 Marco Gerards <marco@gnu.org>
47512 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47515 * disk/host.c: New file.
47517 * util/hostfs.c: Likewise.
47519 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47520 return `GRUB_ERR_BAD_FS'.
47521 * fs/sfs.c (grub_sfs_mount): Likewise.
47522 * fs/xfs.c (grub_xfs_mount): Likewise.
47524 * include/grub/disk.h (enum grub_disk_dev_id): Add
47525 `GRUB_DISK_DEVICE_HOST_ID'.
47527 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47529 2007-07-24 Jerone Young <jerone@gmail.com>
47531 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47532 modules for compilation.
47533 * conf/powerpc-ieee1275.rmk: Likewise.
47535 * include/multiboot.h: Move multiboot definitions to one file. Rename
47536 many definitions to not get grub specific.
47537 * include/multiboot2.h: Create header with multiboot 2 definitions.
47538 * include/grub/multiboot.h: Header for grub specific function
47539 prototypes and definitions.
47540 * include/grub/multiboot2.h: Likewise.
47541 * include/grub/multiboot_loader.h: Likewise.
47542 * include/grub/i386/pc/multiboot.h: Removed.
47543 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47545 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47546 and 2 to allow for one multiboot and module commands.
47547 * loader/multiboot2.c: Add multiboot2 functionality.
47548 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47549 and definition names.
47550 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47552 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47553 ieee1275 specific multiboot2 code.
47555 * kern/i386/pc/startup.S: Change headers and definition names for
47556 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47558 2007-07-22 Robert Millan <rmh@aybabtu.com>
47560 * geninitheader.sh: Process file specified in first parameter rather
47561 than hardcoding grub_modules_init.lst.
47562 * geninit.sh: Likewise. Also, construct header name dynamically rather
47563 than hardcoding grub_modules_init.h.
47565 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47566 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47567 grub_probe_init.[ch] and grub_setup_init.[ch].
47569 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47570 grub_modules_init.h with grub_emu_init.h.
47571 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47572 grub_probe_init.[ch] files.
47573 * conf/i386-efi.rmk: Likewise.
47574 * conf/i386-pc.rmk: Likewise.
47575 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47576 grub_setup_init.[ch] files.
47578 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47579 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47580 to initialize modules rather than a list of hardcoded functions.
47581 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47582 grub_init_all() to initialize modules rather than a list of hardcoded
47585 2007-07-22 Robert Millan <rmh@aybabtu.com>
47587 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47588 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47590 2007-07-22 Robert Millan <rmh@aybabtu.com>
47592 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47593 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47594 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47595 flag when running on SmartFirmware.
47596 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47597 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47600 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47601 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47602 rather than decreasing it.
47604 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47605 there's not enough space to do it, fail in the same way as when it
47606 can't be done because there are no partitions.
47608 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47609 when nvsetenv failed.
47611 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47613 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47614 because this rule is automatically generated.
47615 (grub-mkrescue): Removed for the same reason as above.
47617 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47619 Migrate to GNU General Public License Version 3.
47621 * COPYING: Replaced with the plain text version of GPLv3.
47623 * config.guess: Updated from gnulib.
47624 * config.sub: Likewise.
47626 * geninit.sh: Output a GPLv3 copyright notice.
47627 * geninitheader.sh: Likewise.
47628 * genmodsrc.sh: Likewise.
47629 * gensymlist.sh.in: Likewise.
47631 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47632 * boot/i386/pc/diskboot.S: Likewise.
47633 * boot/i386/pc/pxeboot.S: Likewise.
47634 * commands/blocklist.c: Likewise.
47635 * commands/boot.c: Likewise.
47636 * commands/cat.c: Likewise.
47637 * commands/cmp.c: Likewise.
47638 * commands/configfile.c: Likewise.
47639 * commands/echo.c: Likewise.
47640 * commands/help.c: Likewise.
47641 * commands/ls.c: Likewise.
47642 * commands/search.c: Likewise.
47643 * commands/terminal.c: Likewise.
47644 * commands/test.c: Likewise.
47645 * commands/videotest.c: Likewise.
47646 * commands/i386/cpuid.c: Likewise.
47647 * commands/i386/pc/halt.c: Likewise.
47648 * commands/i386/pc/play.c: Likewise.
47649 * commands/i386/pc/reboot.c: Likewise.
47650 * commands/i386/pc/vbeinfo.c: Likewise.
47651 * commands/i386/pc/vbetest.c: Likewise.
47652 * commands/ieee1275/halt.c: Likewise.
47653 * commands/ieee1275/reboot.c: Likewise.
47654 * commands/ieee1275/suspend.c: Likewise.
47655 * disk/loopback.c: Likewise.
47656 * disk/lvm.c: Likewise.
47657 * disk/raid.c: Likewise.
47658 * disk/efi/efidisk.c: Likewise.
47659 * disk/i386/pc/biosdisk.c: Likewise.
47660 * disk/ieee1275/ofdisk.c: Likewise.
47661 * font/manager.c: Likewise.
47662 * fs/affs.c: Likewise.
47663 * fs/ext2.c: Likewise.
47664 * fs/fat.c: Likewise.
47665 * fs/fshelp.c: Likewise.
47666 * fs/hfs.c: Likewise.
47667 * fs/hfsplus.c: Likewise.
47668 * fs/iso9660.c: Likewise.
47669 * fs/jfs.c: Likewise.
47670 * fs/minix.c: Likewise.
47671 * fs/sfs.c: Likewise.
47672 * fs/ufs.c: Likewise.
47673 * fs/xfs.c: Likewise.
47674 * hello/hello.c: Likewise.
47675 * include/grub/acorn_filecore.h: Likewise.
47676 * include/grub/arg.h: Likewise.
47677 * include/grub/bitmap.h: Likewise.
47678 * include/grub/boot.h: Likewise.
47679 * include/grub/cache.h: Likewise.
47680 * include/grub/device.h: Likewise.
47681 * include/grub/disk.h: Likewise.
47682 * include/grub/dl.h: Likewise.
47683 * include/grub/elfload.h: Likewise.
47684 * include/grub/env.h: Likewise.
47685 * include/grub/err.h: Likewise.
47686 * include/grub/file.h: Likewise.
47687 * include/grub/font.h: Likewise.
47688 * include/grub/fs.h: Likewise.
47689 * include/grub/fshelp.h: Likewise.
47690 * include/grub/gzio.h: Likewise.
47691 * include/grub/hfs.h: Likewise.
47692 * include/grub/kernel.h: Likewise.
47693 * include/grub/loader.h: Likewise.
47694 * include/grub/lvm.h: Likewise.
47695 * include/grub/misc.h: Likewise.
47696 * include/grub/mm.h: Likewise.
47697 * include/grub/net.h: Likewise.
47698 * include/grub/normal.h: Likewise.
47699 * include/grub/parser.h: Likewise.
47700 * include/grub/partition.h: Likewise.
47701 * include/grub/pc_partition.h: Likewise.
47702 * include/grub/raid.h: Likewise.
47703 * include/grub/rescue.h: Likewise.
47704 * include/grub/script.h: Likewise.
47705 * include/grub/setjmp.h: Likewise.
47706 * include/grub/symbol.h: Likewise.
47707 * include/grub/term.h: Likewise.
47708 * include/grub/terminfo.h: Likewise.
47709 * include/grub/tparm.h: Likewise.
47710 * include/grub/types.h: Likewise.
47711 * include/grub/video.h: Likewise.
47712 * include/grub/efi/api.h: Likewise.
47713 * include/grub/efi/chainloader.h: Likewise.
47714 * include/grub/efi/console.h: Likewise.
47715 * include/grub/efi/console_control.h: Likewise.
47716 * include/grub/efi/disk.h: Likewise.
47717 * include/grub/efi/efi.h: Likewise.
47718 * include/grub/efi/pe32.h: Likewise.
47719 * include/grub/efi/time.h: Likewise.
47720 * include/grub/i386/linux.h: Likewise.
47721 * include/grub/i386/setjmp.h: Likewise.
47722 * include/grub/i386/types.h: Likewise.
47723 * include/grub/i386/efi/kernel.h: Likewise.
47724 * include/grub/i386/efi/loader.h: Likewise.
47725 * include/grub/i386/efi/time.h: Likewise.
47726 * include/grub/i386/pc/biosdisk.h: Likewise.
47727 * include/grub/i386/pc/boot.h: Likewise.
47728 * include/grub/i386/pc/chainloader.h: Likewise.
47729 * include/grub/i386/pc/console.h: Likewise.
47730 * include/grub/i386/pc/init.h: Likewise.
47731 * include/grub/i386/pc/kernel.h: Likewise.
47732 * include/grub/i386/pc/loader.h: Likewise.
47733 * include/grub/i386/pc/memory.h: Likewise.
47734 * include/grub/i386/pc/multiboot.h: Likewise.
47735 * include/grub/i386/pc/serial.h: Likewise.
47736 * include/grub/i386/pc/time.h: Likewise.
47737 * include/grub/i386/pc/vbe.h: Likewise.
47738 * include/grub/i386/pc/vbeblit.h: Likewise.
47739 * include/grub/i386/pc/vbefill.h: Likewise.
47740 * include/grub/i386/pc/vbeutil.h: Likewise.
47741 * include/grub/i386/pc/vga.h: Likewise.
47742 * include/grub/ieee1275/ieee1275.h: Likewise.
47743 * include/grub/ieee1275/ofdisk.h: Likewise.
47744 * include/grub/powerpc/libgcc.h: Likewise.
47745 * include/grub/powerpc/setjmp.h: Likewise.
47746 * include/grub/powerpc/types.h: Likewise.
47747 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47748 * include/grub/powerpc/ieee1275/console.h: Likewise.
47749 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47750 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47751 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47752 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47753 * include/grub/powerpc/ieee1275/time.h: Likewise.
47754 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47755 * include/grub/sparc64/libgcc.h: Likewise.
47756 * include/grub/sparc64/setjmp.h: Likewise.
47757 * include/grub/sparc64/types.h: Likewise.
47758 * include/grub/sparc64/ieee1275/console.h: Likewise.
47759 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47760 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47761 * include/grub/sparc64/ieee1275/time.h: Likewise.
47762 * include/grub/util/biosdisk.h: Likewise.
47763 * include/grub/util/getroot.h: Likewise.
47764 * include/grub/util/lvm.h: Likewise.
47765 * include/grub/util/misc.h: Likewise.
47766 * include/grub/util/raid.h: Likewise.
47767 * include/grub/util/resolve.h: Likewise.
47768 * io/gzio.c: Likewise.
47769 * kern/device.c: Likewise.
47770 * kern/disk.c: Likewise.
47771 * kern/dl.c: Likewise.
47772 * kern/elf.c: Likewise.
47773 * kern/env.c: Likewise.
47774 * kern/err.c: Likewise.
47775 * kern/file.c: Likewise.
47776 * kern/fs.c: Likewise.
47777 * kern/loader.c: Likewise.
47778 * kern/main.c: Likewise.
47779 * kern/misc.c: Likewise.
47780 * kern/mm.c: Likewise.
47781 * kern/parser.c: Likewise.
47782 * kern/partition.c: Likewise.
47783 * kern/rescue.c: Likewise.
47784 * kern/term.c: Likewise.
47785 * kern/efi/efi.c: Likewise.
47786 * kern/efi/init.c: Likewise.
47787 * kern/efi/mm.c: Likewise.
47788 * kern/i386/dl.c: Likewise.
47789 * kern/i386/efi/init.c: Likewise.
47790 * kern/i386/efi/startup.S: Likewise.
47791 * kern/i386/pc/init.c: Likewise.
47792 * kern/i386/pc/lzo1x.S: Likewise.
47793 * kern/i386/pc/startup.S: Likewise.
47794 * kern/ieee1275/ieee1275.c: Likewise.
47795 * kern/powerpc/cache.S: Likewise.
47796 * kern/powerpc/dl.c: Likewise.
47797 * kern/powerpc/ieee1275/cmain.c: Likewise.
47798 * kern/powerpc/ieee1275/crt0.S: Likewise.
47799 * kern/powerpc/ieee1275/init.c: Likewise.
47800 * kern/powerpc/ieee1275/openfw.c: Likewise.
47801 * kern/sparc64/cache.S: Likewise.
47802 * kern/sparc64/dl.c: Likewise.
47803 * kern/sparc64/ieee1275/init.c: Likewise.
47804 * kern/sparc64/ieee1275/openfw.c: Likewise.
47805 * loader/efi/chainloader.c: Likewise.
47806 * loader/efi/chainloader_normal.c: Likewise.
47807 * loader/i386/efi/linux.c: Likewise.
47808 * loader/i386/efi/linux_normal.c: Likewise.
47809 * loader/i386/pc/chainloader.c: Likewise.
47810 * loader/i386/pc/chainloader_normal.c: Likewise.
47811 * loader/i386/pc/linux.c: Likewise.
47812 * loader/i386/pc/linux_normal.c: Likewise.
47813 * loader/i386/pc/multiboot.c: Likewise.
47814 * loader/i386/pc/multiboot_normal.c: Likewise.
47815 * loader/powerpc/ieee1275/linux.c: Likewise.
47816 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47817 * normal/arg.c: Likewise.
47818 * normal/cmdline.c: Likewise.
47819 * normal/command.c: Likewise.
47820 * normal/completion.c: Likewise.
47821 * normal/execute.c: Likewise.
47822 * normal/function.c: Likewise.
47823 * normal/lexer.c: Likewise.
47824 * normal/main.c: Likewise.
47825 * normal/menu.c: Likewise.
47826 * normal/menu_entry.c: Likewise.
47827 * normal/misc.c: Likewise.
47828 * normal/parser.y: Likewise.
47829 * normal/script.c: Likewise.
47830 * normal/i386/setjmp.S: Likewise.
47831 * normal/powerpc/setjmp.S: Likewise.
47832 * normal/sparc64/setjmp.S: Likewise.
47833 * partmap/acorn.c: Likewise.
47834 * partmap/amiga.c: Likewise.
47835 * partmap/apple.c: Likewise.
47836 * partmap/gpt.c: Likewise.
47837 * partmap/pc.c: Likewise.
47838 * partmap/sun.c: Likewise.
47839 * term/gfxterm.c: Likewise.
47840 * term/terminfo.c: Likewise.
47841 * term/efi/console.c: Likewise.
47842 * term/i386/pc/console.c: Likewise.
47843 * term/i386/pc/serial.c: Likewise.
47844 * term/i386/pc/vesafb.c: Likewise.
47845 * term/i386/pc/vga.c: Likewise.
47846 * term/ieee1275/ofconsole.c: Likewise.
47847 * util/biosdisk.c: Likewise.
47848 * util/console.c: Likewise.
47849 * util/genmoddep.c: Likewise.
47850 * util/getroot.c: Likewise.
47851 * util/grub-emu.c: Likewise.
47852 * util/grub-mkdevicemap.c: Likewise.
47853 * util/grub-probe.c: Likewise.
47854 * util/lvm.c: Likewise.
47855 * util/misc.c: Likewise.
47856 * util/raid.c: Likewise.
47857 * util/resolve.c: Likewise.
47858 * util/update-grub.in: Likewise.
47859 * util/update-grub_lib.in: Likewise.
47860 * util/grub.d/00_header.in: Likewise.
47861 * util/grub.d/10_hurd.in: Likewise.
47862 * util/grub.d/10_linux.in: Likewise.
47863 * util/i386/efi/grub-install.in: Likewise.
47864 * util/i386/efi/grub-mkimage.c: Likewise.
47865 * util/i386/pc/grub-install.in: Likewise.
47866 * util/i386/pc/grub-mkimage.c: Likewise.
47867 * util/i386/pc/grub-mkrescue.in: Likewise.
47868 * util/i386/pc/grub-setup.c: Likewise.
47869 * util/i386/pc/misc.c: Likewise.
47870 * util/powerpc/ieee1275/grub-install.in: Likewise.
47871 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47872 * util/powerpc/ieee1275/misc.c: Likewise.
47873 * video/bitmap.c: Likewise.
47874 * video/video.c: Likewise.
47875 * video/i386/pc/vbe.c: Likewise.
47876 * video/i386/pc/vbeblit.c: Likewise.
47877 * video/i386/pc/vbefill.c: Likewise.
47878 * video/i386/pc/vbeutil.c: Likewise.
47879 * video/readers/tga.c: Likewise.
47881 2007-07-02 Robert Millan <rmh@aybabtu.com>
47883 * conf/i386-efi.rmk: Replace obsolete reference to
47884 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47885 with util/getroot.c.
47886 * conf/powerpc-ieee1275.rmk: Likewise.
47887 * conf/sparc64-ieee1275.rmk: Likewise.
47889 * util/grub-emu.c (main): Fix unchecked pointer handling.
47891 2007-07-02 Robert Millan <rmh@aybabtu.com>
47893 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47894 invocation to fail, in order to support partition-less media.
47896 * util/i386/pc/grub-install.in: Likewise.
47898 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47899 which fs or partmap modules are needed (akin to its sister scripts).
47901 Also use grub-probe to get rid of unportable /proc/mounts check.
47903 Print the same informational message that the other scripts do, before
47906 2007-06-23 Robert Millan <rmh@aybabtu.com>
47908 * util/update-grub_lib.in (font_path): New function. Determine whether
47909 a font file can be found and, if so, echo the GRUB path to it.
47911 * util/update-grub.in: Handle multiple terminals depending on user
47912 input, platform availability and font file presence. Propagate
47913 variables of our findings to /etc/grub.d/ children.
47915 * util/grub.d/00_header.in: Handle multiple terminals, based on
47916 environment setup by update-grub.
47918 2007-06-23 Robert Millan <rmh@aybabtu.com>
47920 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
47922 2007-06-21 Robert Millan <rmh@aybabtu.com>
47924 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
47925 indicate end of data section in kernel image.
47926 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
47927 GRUB_KERNEL_MACHINE_DATA_END.
47929 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
47931 * kern/i386/efi/startup.S: Likewise.
47933 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
47934 during image generation. Implement --prefix option to override this
47936 * util/i386/efi/grub-mkimage.c: Likewise.
47938 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
47939 code to make path relative to its root into a separate function.
47941 * util/i386/pc/grub-install.in: Use newly provided
47942 make_system_path_relative_to_its_root() to convert ${grubdir}, then
47943 pass the result to grub-install --prefix.
47945 2007-06-13 Robert Millan <rmh@aybabtu.com>
47947 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
47948 DEFAULT_DEVICE_MAP.
47949 * util/grub-emu.c: Use above definitions from misc.h instead of
47951 * util/grub-mkdevicemap.c: Likewise.
47952 * util/i386/pc/grub-setup.c: Likewise.
47953 * util/grub-probe.c: Likewise.
47954 (probe): Abort with grub_util_error() when either
47955 grub_guess_root_device or grub_util_get_grub_dev fails.
47957 2007-06-12 Robert Millan <rmh@aybabtu.com>
47959 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
47960 "pager" assignment.
47961 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
47963 * util/grub-probe.c (probe): Likewise for "drive_name".
47965 2007-06-11 Robert Millan <rmh@aybabtu.com>
47967 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
47968 not just the cdrom one.
47970 2007-06-11 Robert Millan <rmh@aybabtu.com>
47972 * util/i386/pc/grub-mkrescue.in: Add "set -e".
47973 Add --pkglibdir=DIR option to override pkglibdir.
47974 Mention --image-type=TYPE in help output.
47975 Fix --grub-mkimage (it was a no-op).
47976 Abort gracefully when no parameter is given.
47978 2007-06-11 Robert Millan <rmh@aybabtu.com>
47980 * util/i386/pc/grub-mkrescue.in: New file.
47981 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
47982 * Makefile.in: Handle bin_SCRIPTS.
47984 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
47986 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
47987 list of video modes.
47989 2007-06-06 Robert Millan <rmh@aybabtu.com>
47991 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
47992 file doesn't exist, or if it is in a filesystem grub can't read.
47994 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
47995 not abort if GRUB_DRIVE could not be defined. Rearrange generated
47996 header comment to fit in 80 columns when the variables are resolved.
47998 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
47999 could be identified by update-grub. Remove redundant check for
48000 unifont.pff existence (since convert_system_path_to_grub_path now
48003 2007-06-04 Robert Millan <rmh@aybabtu.com>
48005 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48007 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48009 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48011 2007-06-04 Robert Millan <rmh@aybabtu.com>
48013 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48015 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48016 grub_apple_partition_map_fini.
48019 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48020 to access >2 TiB disks).
48022 Print disk->total_sectors with %llu instead of %lu, since this
48023 variable is always 64-bit (prevents wrong disk size from being displayed
48024 on either >2 TiB disk or big-endian CPU).
48026 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48027 into a generic case that supports all (sane) partition maps.
48029 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48032 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48033 and grub_apple_partition_map_fini() after that.
48035 2007-06-01 Robert Millan <rmh@aybabtu.com>
48037 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48039 * util/grub.d/00_header.in: Only enable gfxterm when
48040 convert_system_path_to_grub_path() succeeds.
48042 2007-05-20 Robert Millan <rmh@aybabtu.com>
48044 * util/update-grub_lib.in: New file.
48045 * DISTLIST: Add update-grub_lib.in.
48046 * conf/common.rmk: Generate update-grub_lib and install it in
48048 * Makefile.in: Add install routine for $(lib_DATA).
48050 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48051 function provided by update-grub_lib to support arbitrary paths of
48053 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48054 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48056 2007-05-19 Robert Millan <rmh@aybabtu.com>
48058 * commands/i386/cpuid.c: New module.
48059 * DISTLIST: Add it.
48060 * conf/i386-efi.rmk: Enable cpuid.mod.
48061 * conf/i386-pc.rmk: Likewise.
48063 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48065 * kern/disk.c (grub_disk_read): Check return value of
48068 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48070 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48072 * disk/raid.c (grub_raid_open): Likewise.
48074 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48076 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48077 stack instead of on the heap.
48079 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48080 before doing a read on it.
48082 * configure.ac: Only use -fno-stack-protector for the target
48085 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48087 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48088 __attribute_ ((unused)) to mode_type argument.
48090 * util/getroot.c (grub_guess_root_device): Fix #endif.
48092 * kern/misc.c (memcmp): Fix prototype.
48094 * include/grub/partition.h [GRUB_UTIL]
48095 (grub_gpt_partition_map_init): Add prototype.
48096 (grub_gpt_partition_map_fini): Likewise.
48098 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48099 at the right place.
48101 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48102 (grub_fat_read_data): Likewise.
48103 (grub_fat_find_dir): Likewise.
48105 * font/manager.c (find_glyph): Make table a const.
48106 (grub_font_get_glyph): Remove bitmap from if statement.
48108 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48110 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48111 code, first search for device in /dev/mapper, then in /dev.
48112 (grub_util_get_grub_dev): New function.
48113 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48115 * util/grub-probe.c (probe): Remove check for RAID, call
48116 grub_util_get_grub_dev() instead of
48117 grub_util_biosdisk_get_grub_dev().
48118 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48119 grub_util_biosdisk_get_grub_dev().
48120 * util/i386/pc/grub-setup.c (main): Likewise.
48122 2007-05-16 Robert Millan <rmh@aybabtu.com>
48124 * DISTLIST: Update for the latest changes.
48125 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48126 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48127 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48128 grub/util/biosdisk.h.
48129 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48130 grub/util/biosdisk.h.
48132 2007-05-16 Robert Millan <rmh@aybabtu.com>
48134 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48136 2007-05-16 Robert Millan <rmh@aybabtu.com>
48138 * util/i386/efi/grub-install.in: New.
48139 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48140 newly added grub-install.
48141 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48143 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48144 grub/util/biosdisk.h.
48145 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48146 grub/util/biosdisk.h.
48148 2007-05-16 Robert Millan <rmh@aybabtu.com>
48150 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48151 * include/grub/util/biosdisk.h: ... here.
48152 * util/i386/pc/biosdisk.c: Moved to ...
48153 * util/biosdisk.c: ... here.
48154 * util/i386/pc/getroot.c: Moved to ...
48155 * util/getroot.c: ... here.
48156 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48157 * util/grub-mkdevicemap.c: ... here.
48158 * util/i386/pc/grub-probe.c: Moved to ...
48159 * util/grub-probe.c: ... here.
48161 2007-05-15 Robert Millan <rmh@aybabtu.com>
48163 * util/update-grub.in: Remove duplicated line in grub.cfg header
48166 2007-05-13 Robert Millan <rmh@aybabtu.com>
48168 * util/update-grub.in: Fix a few assumptions about the devices holding
48169 /, /boot and /boot/grub being the same.
48170 * util/grub.d/00_header.in: Likewise.
48171 * util/grub.d/10_hurd.in: Likewise.
48172 * util/grub.d/10_linux.in: Likewise.
48174 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48175 patterns. Use that to define the `.old' suffix as older than `'.
48177 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48179 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48180 the grub.cfg header message.
48182 2007-05-11 Robert Millan <rmh@aybabtu.com>
48184 * util/update-grub.in: Create device.map if it doesn't already exist,
48185 before attempting to run grub-probe.
48186 Check for grub-probe and grub-mkdevicemap with the same code
48187 grub-install is using.
48190 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48192 * Makefile.in: Add the datarootdir autoconf variable.
48194 2007-05-09 Robert Millan <rmh@aybabtu.com>
48196 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48197 fail gracefully if dev->disk->partition == NULL.
48199 2007-05-07 Robert Millan <rmh@aybabtu.com>
48201 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48202 determine partition map module.
48203 * util/i386/pc/grub-install.in: Use this feature to decide which
48204 partition module to load, instead of hardcoding pc and gpt.
48206 2007-05-07 Robert Millan <rmh@aybabtu.com>
48208 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48209 source directory differs from build directory.
48211 2007-05-05 Robert Millan <rmh@aybabtu.com>
48213 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48216 2007-05-05 Robert Millan <rmh@aybabtu.com>
48218 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48220 2007-05-05 Robert Millan <rmh@aybabtu.com>
48222 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48223 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48225 2007-05-05 Robert Millan <rmh@aybabtu.com>
48227 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48228 (grub_probe_SOURCES): Likewise.
48229 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48230 GPT and initialize dos_part and bsd_part accordingly.
48231 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48233 (main): Activate gpt module for use during partition identification,
48234 and deactivate it afterwards.
48235 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48236 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48237 partition identification, and deactivate it afterwards.
48239 2007-05-05 Robert Millan <rmh@aybabtu.com>
48241 * term/i386/pc/console.c (grub_console_fini): Call
48242 grub_term_set_current() before grub_term_unregister().
48244 2007-05-04 Robert Millan <rmh@aybabtu.com>
48246 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48247 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48248 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48249 and update-grub_DATA.
48250 * conf/common.rmk: Build and install update-grub components.
48251 * conf/common.mk: Regenerate.
48252 * util/update-grub.in: New. Core of update-grub.
48253 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48254 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48255 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48256 * util/grub.d/README: New. Document grub.d directory layout.
48258 2007-05-01 Robert Millan <rmh@aybabtu.com>
48260 * util/grub-emu.c: Move initialization functions
48261 grub_util_biosdisk_init() and grub_init_all() before
48262 grub_util_biosdisk_get_grub_dev(), which relies on them.
48264 2007-04-19 Robert Millan <rmh@aybabtu.com>
48266 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48269 2007-04-18 Jerone Young <jerone@gmail.com>
48271 * kernel/elf.c: Add missing parenthesis for conditional statement
48274 2007-04-10 Jerone Young <jerone@gmail.com>
48276 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48277 continue on and look for device node with real device name.
48279 2007-04-10 Jerone Young <jerone@gmail.com>
48281 * configure.ac: Add argument for autoconf to use transformation
48283 * Makefile.in: Add autoconf package transformation code.
48284 * util/i386/pc/grub-install.in: Likewise.
48285 * util/powerpc/ieee1275/grub-install.in: Likewise.
48287 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48289 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48290 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48291 (EXT2_REVISION): Likewise.
48292 (EXT2_INODE_SIZE): Likewise.
48293 (struct grub_ext2_block_group): Added a missing member
48295 (grub_ext2_read_inode): Divide by the inode size in a superblock
48296 instead of 128 to obtain INODES_PER_BLOCK.
48297 Use the macro EXT2_INODE_SIZE instead of directly using
48298 SBLOCK->INODE_SIZE.
48300 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48302 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48303 superblock instead of the structure size to compute an
48304 offset. This fixes the problem that GRUB could not read a
48305 filesystem when inode size is different from 128-byte.
48307 2007-03-05 Marco Gerards <marco@gnu.org>
48309 * normal/main.c (read_config_file): When "menu" is not set, create
48310 an initial context.
48312 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48314 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48315 (HEAP_LIMIT): New macro.
48316 (grub_claim_heap): Claim memory up to `heaplimit'.
48318 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48320 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48321 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48322 (_start): Likewise.
48323 (grub_arch_modules_addr): Return address after `_end'.
48324 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48325 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48326 (add_segments): Calculate `_end' from phdr size and location.
48327 (ALIGN_UP): Moved to ...
48328 * include/grub/misc.h: here.
48329 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48331 (GRUB_IEEE1275_MODULE_BASE): Removed.
48333 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48335 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48338 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48340 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48342 (grub_elf64_load_hook_t): Likewise.
48343 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48346 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48348 * kern/mm.c: Update copyright.
48349 (grub_mm_debug): Correct syntax error.
48350 (grub_mm_dump_free): New function.
48351 (grub_debug_free): Call `grub_free'.
48352 * include/grub/mm.h: Update copyright.
48353 (grub_mm_dump_free): Add declaration.
48355 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48357 * include/grub/ieee1275/ieee1275.h: Update copyright.
48358 * kern/powerpc/ieee1275/init.c: Likewise.
48359 * kern/powerpc/ieee1275/openfw.c: Likewise.
48361 * loader/powerpc/ieee1275/linux.c: Likewise.
48362 * include/grub/elfload.h: Likewise.
48363 * kern/elf.c: Likewise.
48364 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48366 (grub_elf64_load): Likewise.
48367 (grub_elf32_load_segment): Move to a nested function.
48368 (grub_elf64_load_segment): Likewise.
48370 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48372 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48374 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48375 (grub_heap_len): Likewise.
48376 (HEAP_SIZE): New macro.
48377 (grub_claim_heap): New function.
48378 (grub_machine_init): Don't claim heap directly. Call
48380 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48381 (grub_available_iterate): New function.
48383 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48385 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48386 * configure.ac: Use it for testing the HOST and TARGET compilers.
48388 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48390 * Makefile.in (enable_grub_emu): New variable.
48391 * configure.ac (--enable-grub-emu): New option.
48392 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48393 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48394 * conf/i386-pc.rmk: Likewise.
48395 * conf/powerpc-ieee1275.rmk: Likewise.
48396 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48398 2006-12-12 Marco Gerards <marco@gnu.org>
48400 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48402 * kern/env.c (grub_env_unset): Don't free the member `value' when
48403 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48406 * normal/main.c (current_menu): Removed.
48407 (free_menu): Unset the `menu' environment variable.
48408 (grub_normal_menu_addentry): Make use of the environment variable
48409 `menu', instead of using the global `current_menu'. Allocate
48410 memory for the sourcecode of this entry.
48411 (read_config_file): New argument `nested', changed all callers.
48412 Only in the case of a new context, initialize a new menu. Set the
48413 `menu' environment variable.
48414 (grub_normal_execute): Don't set and unset the environment
48415 variable `menu' here anymore. Only free the menu when leaving the
48418 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48421 2006-12-11 Marco Gerards <marco@gnu.org>
48423 * normal/menu_entry.c (run): Fix off by one bug so the last line
48424 is executed. Move the loader check to outside the loop.
48426 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48428 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48430 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48432 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48433 the number of sectors. Reported by Andrey Shuvikov
48434 <mr_hyro@yahoo.com>.
48436 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48438 * kern/disk.c (grub_disk_read): When there is a read error, always
48439 try to read only the necessary data.
48441 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48443 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48445 [GRUB_UTIL] (grub_raid_fini): Likewise.
48446 [GRUB_UTIL] (grub_lvm_init): Likewise.
48447 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48448 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48449 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48450 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48451 and grub_raid_fini().
48453 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48455 * include/grub/types.h (__unused): Rename to UNUSED.
48456 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48457 (grub_elf64_size): Likewise.
48459 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48461 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48462 grub_error_push and grub_error_pop in the error-handling path.
48463 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48466 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48468 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48469 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48470 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48471 (kernel_elf_SOURCES): Likewise.
48472 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48473 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48474 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48475 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48476 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48477 (elf_mod_SOURCES): New variable.
48478 (elf_mod_CFLAGS): Likewise.
48479 (elf_mod_LDFLAGS): Likewise.
48480 * include/grub/types.h (__unused): New macro.
48481 * include/grub/elfload.h: New file.
48482 * kern/elf.c: Likewise.
48483 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48484 (ELF32_LOADMASK): New macro.
48485 (ELF64_LOADMASK): Likewise.
48486 (vmlinux): Removed.
48487 (grub_linux_load32): New function.
48488 (grub_linux_load64): Likewise.
48489 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48490 Use grub_elf_t instead of grub_file_t.
48492 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48494 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48495 `catch_result' to struct set_color_args.
48497 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48499 * normal/menu.c: Include grub/script.h.
48500 * normal/menu_entry.c: Likewise.
48501 * include/grub/normal.h: Do not include grub/script.h.
48503 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48505 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48507 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48509 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48511 (grub_disk_close): Print debug messages when closing a disk.
48512 (grub_disk_read): Print debug messages when disk read fails.
48513 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48515 * kern/partition.c: Include misc.h.
48516 (grub_partition_iterate): Print debug messages when detecting
48519 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48521 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48523 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48525 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48527 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48528 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48530 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48532 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48533 instead of sizeof(lv). Patch by Michael Guntsche.
48535 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48537 * disk/lvm.c: Rename VGS to VG_LIST.
48538 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48539 (grub_lvm_open): Likewise.
48540 Thanks to Michael Guntsche for finding this bug.
48542 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48544 * configure.ac (AC_INIT): Bumped to 1.95.
48546 2006-10-14 Robert Millan <rmh@aybabtu.com>
48548 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48549 with "/dev/.static/dev/md".
48551 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48553 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48554 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48555 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48556 DRIVE_NAME are always freed.
48558 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48559 DOS_PART, as a DOS partition is counted from one instead of zero
48560 now. Reported by Robert Millan.
48562 2006-10-14 Robert Millan <rmh@aybabtu.com>
48564 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48565 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48566 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48567 string returned by grub_guess_root_device.
48568 * util/i386/pc/grub-setup.c: Likewise.
48569 * util/i386/pc/grub-probefs.c: Likewise.
48571 * util/i386/pc/grub-probefs.c: Rename to ...
48572 * util/i386/pc/grub-probe.c: ... this.
48573 * DISTLIST: Remove grub-probefs, add grub-probe.
48574 * conf/i386-efi.rmk: Likewise.
48575 * conf/i386-pc.rmk: Likewise.
48576 * util/i386/pc/grub-install.in: Likewise.
48578 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48579 choose which information we want to print.
48581 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48583 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48584 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48585 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48586 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48587 video/readers/tga.c and video/i386/pc/vbeutil.c.
48589 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48591 Added support for RAID and LVM.
48593 * disk/lvm.c: New file.
48594 * disk/raid.c: Likewise.
48595 * include/grub/lvm.h: Likewise.
48596 * include/grub/raid.h: Likewise.
48597 * include/grub/util/lvm.h: Likewise.
48598 * include/grub/util/raid.h: Likewise.
48599 * util/lvm.c: Likewise.
48600 * util/raid.c: Likewise.
48602 * include/grub/disk.h (grub_disk_dev_id): Add
48603 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48604 (grub_disk_get_size): New prototype.
48605 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48606 returns a partition.
48607 (grub_disk_get_size): New function.
48609 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48610 verbatim if grub_install_dos_part is -2.
48612 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48615 * util/i386/pc/grub-setup.c (setup): New argument
48616 MUST_EMBED. Force embedding of GRUB when the argument is
48617 true. Close FILE before returning.
48618 (main): Add support for RAID and LVM.
48620 * conf/common.rmk: Add RAID and LVM modules.
48621 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48623 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48625 * kern/misc.c (grub_strstr): New function.
48626 * include/grub/misc.h (grub_strstr): New prototype.
48628 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48630 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48632 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48634 * kern/misc.c (grub_strtoull): Guess the base only if not
48637 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48639 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48642 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48644 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48646 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48647 Remove `flags' argument. All callers changed.
48648 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48649 (IEEE1275_IHANDLE_INVALID): New variable.
48650 (IEEE1275_CELL_INVALID): New variable.
48651 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48652 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48653 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48654 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48655 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48656 codes from Open Firmware. All callers updated.
48657 (grub_ieee1275_next_property): Directly return Open Firmware return
48659 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48660 Standardize error checking from `grub_ieee1275_get_property'.
48661 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48662 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48664 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48666 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48667 `instance_to_package_args' to `instance_to_path_args'.
48669 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48670 `grub_ieee1275_chosen'.
48672 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48673 `grub_ieee1275_interpret'.
48675 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48677 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48679 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48681 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48682 (__cmpdi): Likewise.
48684 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48685 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48688 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48690 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48691 to type `grub_ssize_t'.
48692 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48694 2006-09-22 Marco Gerards <marco@gnu.org>
48696 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48699 2006-09-22 Marco Gerards <marco@gnu.org>
48701 * commands/echo.c: New file.
48703 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48705 * conf/common.rmk (echo_mod_SOURCES): New variable.
48706 (echo_mod_CFLAGS): Likewise.
48707 (echo_mod_LDFLAGS): Likewise.
48709 2006-09-22 Marco Gerards <marco@gnu.org>
48711 * normal/main.c (get_line): Malloc memory instead of using
48712 preallocated memory. Removed the arguments `cmdline' and
48713 `max_len'. Updated all callers.
48715 2006-09-22 Marco Gerards <marco@gnu.org>
48717 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48718 (normal_mod_DEPENDENCIES): Likewise.
48720 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48721 (normal_mod_DEPENDENCIES): Likewise.
48723 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48725 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48727 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48729 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48730 (normal_mod_DEPENDENCIES): Likewise.
48731 * conf/i386-pc.mk: Regenerate.
48732 * conf/i386-efi.mk: Likewise
48733 * conf/common.mk: Likewise.
48734 * conf/powerpc-ieee1275.mk: Likewise.
48735 * conf/sparc64-ieee1275.mk: Likewise.
48737 2006-09-22 Robert Millan <rmh@aybabtu.com>
48739 Sync with i386 version.
48740 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48741 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48743 2006-09-21 Robert Millan <rmh@aybabtu.com>
48745 Import from GRUB Legacy (lib/device.c):
48746 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48747 (init_device_map) [__linux__]: Add support for I2O devices.
48749 2006-09-14 Marco Gerards <marco@gnu.org>
48751 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48754 2006-09-14 Robert Millan <rmh@aybabtu.com>
48756 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48759 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48761 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48762 before adding it to device.map.
48764 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48766 * genmk.rb: Let GCC generate dependencies the first time it
48767 compiles a file; using the -MD option.
48768 * conf/common.mk: Regenerate.
48769 * conf/i386-pc.mk: Likewise.
48770 * conf/i386-efi.mk: Likewise.
48771 * conf/powerpc-ieee1275.mk: Likewise.
48772 * conf/sparc64-ieee1275.mk: Likewise.
48774 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48776 Move the prototypes of grub_setjmp and grub_longjmp to
48777 cpu/setjmp.h, so that each architecture may specify different
48780 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48781 (grub_longjmp): Likewise.
48782 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48783 (grub_longjmp): Likewise.
48784 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48785 (grub_longjmp): Likewise.
48787 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48788 [!GRUB_UTIL] (grub_longjmp): Removed.
48790 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48792 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48793 "color!" method does not return any value.
48795 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48797 * include/grub/bitmap.h: New file.
48799 * include/grub/i386/pc/vbeutil.h: Likewise.
48801 * video/bitmap.c: Likewise.
48803 * video/readers/tga.c: Likewise.
48805 * video/i386/pc/vbeutil.c: Likewise.
48807 * commands/videotest.c: Code cleanup and updated to reflect to new
48810 * term/gfxterm.c: Likewise.
48812 * video/video.c: Likewise.
48814 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48815 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48816 (bitmap_mod_SOURCES): New entry.
48817 (bitmap_mod_CFLAGS): Likewise.
48818 (bitmap_mod_LDFLAGS): Likewise.
48819 (tga_mod_SOURCES): Likewise.
48820 (tga_mod_CFLAGS): Likewise.
48821 (tga_mod_LDFLAGS): Likewise.
48823 * include/grub/video.h (grub_video_blit_operators): New enum type.
48824 (grub_video_render_target): Changed as forward declaration and moved
48825 actual definition to be video driver specific.
48826 (grub_video_adapter.blit_bitmap): Added blitting operator.
48827 (grub_video_adapter.blit_render_target): Likewise.
48828 (grub_video_blit_bitmap): Likewise.
48829 (grub_video_blit_render_target): Likewise.
48831 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48832 driver specific render target definition.
48833 (grub_video_vbe_map_rgba): Added driver internal helper.
48834 (grub_video_vbe_unmap_color): Updated to use
48835 grub_video_i386_vbeblit_info.
48836 (grub_video_vbe_get_video_ptr): Likewise.
48838 * include/grub/i386/pc/vbeblit.h
48839 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48840 grub_video_i386_vbeblit_info.
48841 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48842 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48843 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48844 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48845 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48846 (grub_video_i386_vbeblit_index_index): Likewise.
48847 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48848 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48849 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48850 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48852 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48855 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48856 include/grub/i386/pc/vbeblit.h.
48858 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48859 Updated to use grub_video_i386_vbeblit_info.
48860 (grub_video_i386_vbefill_R8G8B8): Likewise.
48861 (grub_video_i386_vbefill_index): Likewise.
48862 (grub_video_i386_vbefill): Added generic filler.
48864 * video/i386/pc/vbefill.c: Updated to reflect changes on
48865 include/grub/i386/pc/vbefill.h.
48867 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48868 grub_video_i386_vbeblit_info.
48869 (grub_video_vbe_unmap_color): Likewise.
48870 (grub_video_vbe_blit_glyph): Likewise.
48871 (grub_video_vbe_scroll): Likewise.
48872 (grub_video_vbe_draw_pixel): Removed function.
48873 (grub_video_vbe_get_pixel): Likewise.
48874 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48875 updated code to use it.
48876 (common_blitter): Added common blitter for render target and bitmap.
48877 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48878 (grub_video_vbe_blit_render_target): Likewise.
48880 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
48882 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48883 is in text mode if there is no console control protocol instance
48886 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48888 * include/grub/video.h: Code cleanup.
48890 * include/grub/i386/pc/vbe.h: Likewise.
48892 * video/i386/pc/vbe.c: Likewise.
48894 * video/i386/pc/vbeblit.c: Likewise.
48896 * video/i386/pc/vbefill.c: Likewise.
48898 * video/video.c: Likewise. Also added more comments.
48900 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48902 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48903 (struct grub_biosdisk_dap): Likewise.
48905 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48906 linkage settings for all functions.
48908 2006-07-12 Marco Gerards <marco@gnu.org>
48910 * configure.ac (--enable-mm-debug): Fix typo.
48912 * genkernsyms.sh.in: Use proper quoting for `CC'.
48914 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
48916 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
48917 (normal_mod_ASFLAGS): Remove "-m32".
48919 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
48921 * util/misc.c: Include config.h.
48922 [!HAVE_MEMALIGN]: Do not include malloc.h.
48923 (grub_memalign): Use posix_memalign, if present. Then, use
48924 memalign, if present. Otherwise, emit an error.
48926 * util/grub-emu.c: Do not include malloc.h.
48928 * include/grub/util/misc.h: Include unistd.h. This is required for
48929 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
48930 D. Eades III <hde@foobar-qux.org>.
48932 * configure.ac (AC_GNU_SOURCE): Added.
48933 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
48936 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
48938 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
48939 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
48941 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
48943 * include/grub/types.h (grub_host_addr_t): Rename to
48944 grub_target_addr_t.
48945 (grub_host_off_t): Rename to grub_target_off_t.
48946 (grub_host_size_t): Rename to grub_target_size_t.
48947 (grub_host_ssize_t): Rename to grub_target_ssize_t.
48948 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
48950 * include/grub/kernel.h (struct grub_module_header): Change type
48951 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
48952 (grub_module_info): Likewise.
48954 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48956 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
48957 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
48958 Velazquez <jesus.velazquez@gmail.com>.
48960 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48962 Count partitions from 1 instead of 0 in the string representation
48963 of partitions. Still use 0-based internally.
48965 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
48966 (sun_partition_map_iterate): Use grub_partition_t instead of
48967 struct grub_partition *. Cast DESC->START_CYLINDER to
48968 grub_uint64_t after converting the endian.
48969 (sun_partition_map_probe): Subtract 1 for PARTNUM.
48970 (sun_partition_map_get_name): Add 1 to P->INDEX.
48972 * partmap/pc.c (grub_partition_parse): Subtract 1 for
48974 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
48976 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
48977 zero instead of one.
48978 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
48979 (gpt_partition_map_get_name): Add 1 into P->INDEX.
48981 * partmap/apple.c (apple_partition_map_iterate): Change the type
48982 of POS to unsigned.
48983 (apple_partition_map_probe): Subtract 1 for PARTNUM.
48984 (apple_partition_map_get_name): Add 1 into P->INDEX.
48986 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
48987 of POS to unsigned.
48988 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
48989 calculate the offset of a partition.
48990 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
48991 (amiga_partition_map_get_name): Add 1 into P->INDEX.
48993 * partmap/acorn.c (acorn_partition_map_find): Change the type of
48994 SECTOR to grub_disk_addr_t.
48995 (acorn_partition_map_iterate): Likewise.
48996 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
48997 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
48999 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49001 * kern/i386/pc/init.c (make_install_device): Add 1 into
49002 GRUB_INSTALL_DOS_PART.
49004 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49007 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49009 Clean up the code to support 64-bit addressing in disks and
49010 files. This change is not enough for filesystems yet.
49012 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49013 type of "start" to grub_uint64_t.
49014 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49015 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49016 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49019 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49020 to grub_disk_addr_t.
49022 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49025 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49027 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49030 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49032 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49034 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49036 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49037 to grub_off_t, to detect an error from grub_file_seek.
49038 (grub_multiboot_load_elf32): Likewise.
49040 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49041 maximum unsigned long value when an overflow is detected.
49042 (grub_strtoull): New function.
49043 (grub_divmod64): Likewise.
49044 (grub_lltoa): use grub_divmod64.
49046 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49048 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49049 the pointer to next character. Use grub_strtoull instead of
49051 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49052 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49055 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49056 return value is signed.
49057 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49058 test if OFFSET is less than zero, as OFFSET is unsigned now.
49060 * kern/disk.c (struct grub_disk_cache): Change the type of
49061 "sector" to grub_disk_addr_t.
49062 (grub_disk_cache_get_index): Change the type of SECTOR to
49063 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49064 unsigned after shifting.
49065 (grub_disk_cache_invalidate): Change the type of SECTOR to
49067 (grub_disk_cache_unlock): Likewise.
49068 (grub_disk_cache_store): Likewise.
49069 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49070 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49071 grub_disk_addr_t and grub_uint64_t, respectively.
49072 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49073 body, as the value of OFFSET is tweaked by
49074 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49075 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49077 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49078 body, as the value of OFFSET is tweaked by
49079 grub_disk_check_range. Change the types of LEN and N to
49082 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49083 and "saved_offset" to grub_off_t.
49084 (test_header): Cast BUF to char *.
49085 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49087 (grub_gzio_read): Change the types of OFFSET and SIZE to
49088 grub_off_t and grub_size_t, respectively.
49090 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49092 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49093 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49094 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49095 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49096 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49098 * include/grub/types.h (grub_off_t): Unconditionally set to
49100 (grub_disk_addr_t): Changed to grub_uint64_t.
49102 * include/grub/partition.h (struct grub_partition): Change the
49103 types of "start", "len" and "offset" to grub_disk_addr_t,
49104 grub_uint64_t and grub_disk_addr_t, respectively.
49105 (grub_partition_get_start): Return grub_disk_addr_t.
49106 (grub_partition_get_len): Return grub_uint64_t.
49108 * include/grub/misc.h (grub_strtoull): New prototype.
49109 (grub_divmod64): Likewise.
49111 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49112 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49113 grub_off_t, respectively.
49114 All callers and references changed.
49116 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49117 grub_size_t in "read".
49118 All callers and references changed.
49120 * include/grub/file.h (struct grub_file): Change the types of
49121 "offset" and "size" to grub_off_t and grub_off_t,
49122 respectively. Change the type of SECTOR to grub_disk_addr_t in
49124 (grub_file_read): Change the type of LEN to grub_size_t.
49125 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49127 (grub_file_size): Return grub_off_t.
49128 (grub_file_tell): Likewise.
49129 All callers and references changed.
49131 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49132 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49134 (struct grub_disk): Change the type of "total_sectors" to
49135 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49137 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49138 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49139 (grub_disk_write): Likewise.
49140 All callers and references changed.
49142 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49143 char * for grub_strncmp to silence gcc.
49144 (grub_iso9660_mount): Likewise.
49145 (grub_iso9660_mount): Likewise.
49146 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49148 (grub_iso9660_iterate_dir): Likewise.
49149 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49151 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49152 LEN to grub_disk_addr_t and grub_size_t, respectively.
49154 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49156 * fs/jfs.c (grub_jfs_read_file): Likewise.
49158 * fs/minix.c (grub_jfs_read_file): Likewise.
49160 * fs/sfs.c (grub_jfs_read_file): Likewise.
49162 * fs/ufs.c (grub_jfs_read_file): Likewise.
49164 * fs/xfs.c (grub_jfs_read_file): Likewise.
49166 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49167 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49170 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49171 BLKNR to -1 instead of returning GRUB_ERRNO.
49172 (grub_ext2_read_file): Change the types of SECTOR and
49173 LEN to grub_disk_addr_t and grub_size_t, respectively.
49175 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49176 LEN to grub_disk_addr_t and grub_size_t, respectively.
49178 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49181 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49182 string. Do not cast SECTOR explicitly.
49184 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49185 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49186 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49187 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49188 over 2TB and LBA mode is not supported, raise an error.
49189 (get_safe_sectors): New function.
49190 (grub_biosdisk_read): Use get_safe_sectors.
49191 (grub_biosdisk_write): Likewise.
49193 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49194 (grub_efidisk_write): Likewise.
49196 * disk/loopback.c (delete_loopback): Cosmetic changes.
49197 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49199 (grub_loopback_open): Likewise.
49200 (grub_loopback_read): Likewise. Also, change the type of POS to
49201 grub_off_t, and fix the usage of grub_memset.
49203 * commands/i386/pc/play.c: Include grub/machine/time.h.
49205 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49208 * commands/configfile.c: Include grub/env.h.
49210 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49211 GRUB_ERRNO directly instead. Change the type of POS to
49212 grub_off_t. Follow the coding standard.
49214 * commands/blocklist.c: Include grub/partition.h.
49215 (grub_cmd_blocklist): Return an error if the underlying device is
49216 not a disk. Take the starting sector of a partition into account,
49217 if a partition is used.
49219 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49221 (lba_mode): Support 64-bit addresses.
49222 (chs_mode): Likewise.
49223 (copy_buffer): Adapted to the new offsets of a length field and a
49225 (blocklist_default_start): Allocate 64-bit space.
49227 * boot/i386/pc/boot.S (force_lba): Removed.
49228 (boot_drive): Moved to under KERNEL_SECTOR.
49229 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49231 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49233 (lba_mode): Refactored to support a 64-bit address. More size
49235 (setup_sectors): Likewise.
49237 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49239 * DISTLIST: Added include/grub/i386/linux.h. Removed
49240 include/grub/i386/pc/linux.h
49242 * configure.ac (AC_INIT): Bumped to 1.94.
49244 * config.guess: Updated from gnulib.
49245 * config.sub: Likewise.
49246 * install-sh: Likewise.
49247 * mkinstalldirs: Likewise.
49249 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49251 * conf/common.rmk (grub_modules_init.lst): Depended on
49252 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49255 * genmk.rb (PModule::rule): Reverted the previous change.
49257 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49259 * conf/common.rmk (grub_modules_init.lst): Depends on
49260 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49261 that the target does not exist before producing.
49262 (grub_modules_init.h): Remove the target before generating.
49263 (grub_emu_init.c): Likewise.
49265 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49267 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49269 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49270 for the target-specific tests. Make sure that we also have the
49271 up-to-date target variables for those tests.
49273 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49275 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49276 (PModule::rule): Likewise.
49278 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49280 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49281 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49282 target-specific flags should be prefixed.
49283 (PModule::rule): Likewise.
49285 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49287 * configure.ac (CMP): Check if cmp is available explicitly.
49289 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49291 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49292 (target_cpu): New variable.
49293 (pkglibdir): Use target_cpu instead of host_cpu.
49295 * util/i386/pc/grub-install.in (host_cpu): Removed.
49296 (target_cpu): New variable.
49297 (pkglibdir): Use target_cpu instead of host_cpu.
49299 * util/genmoddep.c: Removed.
49301 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49302 instead of GRUB_HOST_SIZEOF_VOID_P.
49303 * kern/dl.c: Likewise.
49305 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49307 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49308 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49309 (GRUB_TARGET_SIZEOF_LONG): ... this.
49310 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49311 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49312 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49314 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49315 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49316 (GRUB_TARGET_SIZEOF_LONG): ... this.
49317 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49318 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49319 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49321 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49322 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49323 (GRUB_TARGET_SIZEOF_LONG): ... this.
49324 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49325 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49327 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49328 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49329 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49330 instead of GRUB_HOST_SIZEOF_LONG.
49331 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49332 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49333 GRUB_CPU_WORDS_BIGENDIAN.
49334 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49335 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49338 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49339 (genmoddep_SOURCES): Likewise.
49340 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49341 (genmoddep_SOURCES): Likewise.
49342 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49343 (genmoddep_SOURCES): Likewise.
49344 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49346 (genmoddep_SOURCES): Likewise.
49348 * genmoddep.awk: New file.
49350 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49351 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49352 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49353 (PModule::rule): Likewise.
49354 (Program::rule): Likewise.
49355 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49356 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49359 * configure.ac: Rewritten intensively to use host and target
49360 instead of build and host, respectively.
49362 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49363 (host_cpu): Removed.
49364 (target_cpu): New variable.
49365 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49366 (BUILD_CC): Removed.
49367 (BUILD_CFLAGS): Likewise.
49368 (BUILD_CPPFLAGS): Likewise.
49369 (TARGET_CC): New variable.
49370 (TARGET_CFLAGS): Likewise.
49371 (TARGET_CPPFLAGS): Likewise.
49372 (TARGET_LDFLAGS): Likewise.
49374 (include): Use target_cpu instead of host_cpu.
49375 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49377 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49379 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49381 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49382 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49383 field 'false' to 'exec_on_false'.
49384 (grub_script_create_cmdif): Renamed argument names to reflect above
49387 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49389 * normal/script.c (grub_script_create_cmdif): Likewise.
49391 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49393 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49395 (grub_hfsplus_btree_recptr): Likewise.
49396 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49397 FILEBLOCK both to pass a block number and store next block
49399 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49400 overflow file correctly. Specify errors appropriately, because
49401 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49402 grub_hfsplus_btree_recptr to get the pointer to a found key.
49403 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49406 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49408 (_linux_mod_SOURCES): New variable.
49409 (_linux_mod_CFLAGS): Likewise.
49410 (_linux_mod_LDFLAGS): Likewise.
49411 (linux_mod_SOURCES): Likewise.
49412 (linux_mod_CFLAGS): Likewise.
49413 (linux_mod_LDFLAGS): Likewise.
49415 * DISTLIST: Added loader/i386/efi/linux.c,
49416 loader/i386/efi/linux_normal.c and
49417 include/grub/i386/efi/loader.h.
49419 * loader/i386/efi/linux.c: New file.
49420 * loader/i386/efi/linux_normal.c: Likewise.
49421 * include/grub/i386/efi/loader.h: Likewise.
49423 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49425 * commands/blocklist.c: New file.
49427 * DISTLIST: Added commands/blocklist.c.
49429 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49430 color for the background, and a darker color for the foreground.
49431 (grub_console_checkkey): Return READ_KEY.
49432 (grub_console_cls): Set the background to
49433 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49435 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49437 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49438 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49440 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49443 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49444 BG. The spec is wrong again.
49446 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49448 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49450 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49451 commands/blocklist.c.
49452 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49454 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49455 (blocklist_mod_SOURCES): New variable.
49456 (blocklist_mod_CFLAGS): Likewise.
49457 (blocklist_mod_LDFLAGS): Likewise.
49459 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49461 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49463 (lba_mode): Use %eax more intensively to reduce the code size.
49465 2006-05-20 Marco Gerards <marco@gnu.org>
49467 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49469 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49471 (script): Accept leading newlines.
49472 (newlines): New rule to describe 0 or more newlines.
49473 (commands): Accept `command' with trailing newline. Fixed the
49474 order in which arguments were passed to `grub_script_add_cmd'.
49475 Accept commands separated by newlines.
49476 (function): Changed to accept newlines.
49477 (menuentry) Rewritten.
49479 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49480 front of the list, instead of to the end.
49482 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49484 * util/i386/pc/grub-install.in (bindir): New variable.
49485 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49486 Shaver <lbgwjl@gmail.com>.
49488 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49490 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49491 grub/machine/linux.h
49492 * loader/i386/pc/linux.c: Likewise.
49494 * include/grub/i386/pc/linux.h: Moved to ...
49495 * include/grub/i386/linux.h: ... here.
49497 * include/grub/i386/linux.h (struct linux_kernel_params): New
49500 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49502 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49504 (grub_video_vbe_blit_glyph): Likewise.
49505 (grub_video_vbe_blit_bitmap): Likewise.
49506 (grub_video_vbe_blit_render_target): Likewise.
49508 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49510 * configure.ac (--with-platform): Properly quote the square
49513 2006-05-08 Marco Gerards <marco@gnu.org>
49515 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49517 (kernel_elf_HEADERS): ...to this. Updated all users.
49518 (grubof_symlist.c): Renamed from this...
49519 (kernel_elf_symlist.c): ...to this. Updated all users.
49520 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49521 (grubof_SOURCES): Renamed from this...
49522 (kernel_elf_SOURCES): ...to this.
49523 (grubof_HEADERS): Renamed from this...
49524 (kernel_elf_HEADERS): ...to this.
49525 (grubof_CFLAGS): Renamed from this...
49526 (kernel_elf_CFLAGS): ...to this.
49527 (grubof_ASFLAGS): Renamed from this...
49528 (kernel_elf_ASFLAGS): ...to this.
49529 (grubof_LDFLAGS): Renamed from this...
49530 (kernel_elf_LDFLAGS): ...to this.
49532 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49534 (kernel_elf_HEADERS): ...to this. Updated all users.
49535 (grubof_symlist.c): Renamed from this...
49536 (kernel_elf_symlist.c): ...to this. Updated all users.
49537 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49538 (grubof_SOURCES): Renamed from this...
49539 (kernel_elf_SOURCES): ...to this.
49540 (grubof_HEADERS): Renamed from this...
49541 (kernel_elf_HEADERS): ...to this.
49542 (grubof_CFLAGS): Renamed from this...
49543 (kernel_elf_CFLAGS): ...to this.
49544 (grubof_ASFLAGS): Renamed from this...
49545 (kernel_elf_ASFLAGS): ...to this.
49546 (grubof_LDFLAGS): Renamed from this...
49547 (kernel_elf_LDFLAGS): ...to this.
49549 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49550 `kernel.elf' instead of `grubof'.
49552 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49554 Add --with-platform to configure. Use pkglibdir instead of
49555 pkgdatadir. This is reported by Roger Leigh.
49557 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49558 (host_vendor): Likewise.
49559 (host_os): Likewise.
49560 (pkgdatadir): Likewise.
49561 (platform): New variable.
49562 (pkglibdir): Likewise.
49563 Use PKGLIBDIR instead of PKGDATADIR.
49565 * util/i386/pc/grub-install.in (datadir): Removed.
49566 (host_vendor): Likewise.
49567 (host_os): Likewise.
49568 (pkgdatadir): Likewise.
49569 (platform): New variable.
49570 (pkglibdir): Likewise.
49571 Use PKGLIBDIR instead of PKGDATADIR.
49573 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49574 instead of GRUB_DATADIR.
49576 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49578 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49581 * configure.ac (--with-platform): New option.
49582 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49584 * Makefile.in: Include a makefile based on PLATFORM instead of
49586 (pkgdatadir): Not appended by the machine type.
49587 (pkglibdir): Appended by the machine type.
49588 (host_vendor): Removed.
49589 (platform): New variable.
49590 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49591 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49592 (uninstall): Likewise.
49594 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49596 Use the environment context in the menu. Remove the commands
49597 "default" and "timeout", and use variables instead.
49599 * normal/menu.c: Include grub/env.h.
49600 (print_entry): Cast TITLE to silence gcc.
49601 (get_timeout): New function.
49602 (set_timeout): Likewise.
49603 (get_entry_number): Likewise.
49604 (run_menu): Use a default entry, a fallback entry and a timeout
49605 in the environment variables "default", "fallback" and
49606 "timeout". Also, tweak the default entry if it is not within the
49607 current menu entries.
49608 (grub_menu_run): Use a fallback entry in the environment variable
49611 * normal/main.c (read_config_file): Do not initialize
49612 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49614 (grub_normal_execute): Use a data slot to store the menu.
49616 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49617 fallback_entry and timeout.
49618 (struct grub_menu_list): Removed.
49619 (grub_menu_list_t): Likewise.
49620 (struct grub_context): Likewise.
49621 (grub_context_t): Likewise.
49622 (grub_context_get): Likewise.
49623 (grub_context_get_current_menu): Likewise.
49624 (grub_context_push_menu): Likewise.
49625 (grub_context_pop_menu): Likewise.
49626 (grub_default_init): Likewise.
49627 (grub_default_fini): Likewise.
49628 (grub_timeout_init): Likewise.
49629 (grub_timeout_fini): Likewise.
49631 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49633 (normal_mod_SOURCES): Removed normal/context.c.
49635 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49636 commands/default.c, commands/timeout.c and normal/context.c.
49637 (normal_mod_SOURCES): Removed normal/context.c.
49639 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49640 commands/timeout.c and normal/context.c.
49641 (normal_mod_SOURCES): Removed normal/context.c.
49643 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49644 commands/default.c, commands/timeout.c and normal/context.c.
49645 (normal_mod_SOURCES): Removed normal/context.c.
49647 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49649 (default_mod_SOURCES): Removed.
49650 (default_mod_CFLAGS): Likewise.
49651 (default_mod_LDFLAGS): Likewise.
49652 (timeout_mod_SOURCES): Removed.
49653 (timeout_mod_CFLAGS): Likewise.
49654 (timeout_mod_LDFLAGS): Likewise.
49656 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49659 * commands/default.c: Removed.
49660 * commands/timeout.c: Likewise.
49661 * normal/context.c: Likewise.
49663 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49665 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49667 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49669 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49670 "next" to "prev" for readability.
49671 (struct grub_env_sorted_var): New struct.
49672 (grub_env_context): Renamed to ...
49673 (initial_context): ... this.
49674 (grub_env_var_context): Renamed to ...
49675 (current_context): ... this.
49676 (grub_env_find): Look only at CURRENT_CONTEXT.
49677 (grub_env_context_open): Rewritten to copy exported variables from
49679 (grub_env_context_close): Rewritten according to the new
49680 scheme. Also, add an assertion to prevent the initial context from
49682 (grub_env_insert): Removed the code for the sorted list.
49683 (grub_env_remove): Likewise.
49684 (grub_env_export): Simply mark the variable with
49685 GRUB_ENV_VAR_GLOBAL.
49686 (grub_env_set): A cosmetic change for naming consistency.
49687 (grub_env_get): Likewise.
49688 (grub_env_unset): Likewise.
49689 (grub_env_iterate): Rewritten to sort variables within this
49691 (grub_register_variable_hook): Fixed for naming consistency. Call
49692 grub_env_find again, only if NAME is not found at the first time.
49693 (mangle_data_slot_name): New function.
49694 (grub_env_set_data_slot): Likewise.
49695 (grub_env_get_data_slot): Likewise.
49696 (grub_env_unset_data_slot): Likewise.
49698 * include/grub/env.h (grub_env_var_type): New enum.
49699 (GRUB_ENV_VAR_LOCAL): New constant.
49700 (GRUB_ENV_VAR_GLOBAL): Likewise.
49701 (GRUB_ENV_VAR_DATA): Likewise.
49702 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49704 (grub_env_set): Replace VAR with NAME for consistency.
49705 (grub_register_variable_hook): Likewise.
49706 (grub_env_export): Specify the name of the argument.
49707 (grub_env_set_data_slot): New prototype.
49708 (grub_env_get_data_slot): Likewise.
49709 (grub_env_unset_data_slot): Likewise.
49711 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49713 Extend the loader so that GRUB can accept a loader which comes
49714 back to GRUB when a loaded image exits. Also, this change adds
49715 support for a chainloader on EFI.
49717 * term/efi/console.c: Include grub/misc.h.
49718 (grub_console_checkkey): Display a scan code on the top for
49719 debugging. This will be removed once the EFI port gets stable.
49720 Correct the scan code mapping.
49722 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49723 allocate memory from larger regions, in order to reduce the number
49724 of allocated regions. Otherwise, the MacOSX loader panics.
49725 (filter_memory_map): Avoid less than 1MB for compatibility with
49727 (add_memory_regions): Allocate from the tail of a region, if
49728 possible, to avoid allocating a region near to 1MB, for the MacOSX
49731 * kern/efi/init.c (grub_efi_set_prefix): Specify
49732 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49734 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49735 argument IMAGE_HANDLE and specify it to get a loaded image.
49736 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49737 grub_efi_get_loaded_image.
49738 (grub_efi_get_filename): Divide the length by the size of
49740 (grub_efi_get_device_path): New function.
49741 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49742 the length by the size of grub_efi_char16_t for a file path device
49745 * kern/loader.c (grub_loader_noreturn): New variable.
49746 (grub_loader_set): Accept a new argument NORETURN. Set
49747 GRUB_LOADER_NORETURN to NORETURN.
49748 All callers changed.
49749 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49752 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49754 (grub_efi_get_loaded_image): Take an argument to specify an image
49757 * include/grub/loader.h (grub_loader_set): Added one more argument
49760 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49761 instead of grub_efi_open_protocol.
49762 (grub_efidisk_get_device_name): Likewise.
49763 (grub_efidisk_close): Print a newline.
49764 (grub_efidisk_get_device_handle): Fixed to use
49765 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49766 GRUB_EFI_DEVICE_PATH_TYPE.
49768 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49769 * kern/efi/efi.c (device_path_guid): ... here.
49771 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49773 (kernel_mod_HEADERS): Added efi/disk.h.
49774 (_chain_mod_SOURCES): New variable.
49775 (_chain_mod_CFLAGS): Likewise.
49776 (_chain_mod_LDFLAGS): Likewise.
49777 (chain_mod_SOURCES): Likewise.
49778 (chain_mod_CFLAGS): Likewise.
49779 (chain_mod_LDFLAGS): Likewise.
49781 * DISTLIST: Added include/grub/efi/chainloader.h,
49782 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49784 * include/grub/efi/chainloader.h: New file.
49785 * loader/efi/chainloader.c: Likewise.
49786 * loader/efi/chainloader_normal.c: Likewise.
49788 2006-04-30 Marco Gerards <marco@gnu.org>
49790 * commands/configfile.c (grub_cmd_source): New function.
49791 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49792 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49794 2006-04-30 Marco Gerards <marco@gnu.org>
49796 * normal/execute.c (grub_script_execute_cmd): Change the return
49797 type to `grub_err_t'. Correctly return the error.
49798 (grub_script_execute_cmdline): In case a command line is not a
49799 command or a function, try to interpret it as an assignment.
49801 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49803 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49804 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49805 skip a node whose name is obviously invalid as UTF-16,
49806 i.e. contains a NUL character. Stop the iteration when the last
49807 directory entry is found. Instead of using the return value of
49808 grub_hfsplus_btree_iterate_node, store the value in RET and use
49809 it, because the iterator can be stopped by the last directory
49812 2006-04-30 Marco Gerards <marco@gnu.org>
49814 * include/grub/env.h (grub_env_export): New prototype. Reported
49815 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49817 2006-04-30 Marco Gerards <marco@gnu.org>
49819 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49820 size of the extents in a catalog file record.
49822 2006-04-29 Marco Gerards <marco@gnu.org>
49824 * commands/configfile.c (grub_cmd_configfile): Execute the
49825 configfile within its own context.
49827 * include/grub/env.h (grub_env_context_open): New prototype.
49828 (grub_env_context_close): Likewise.
49830 * kern/env.c (grub_env): Removed.
49831 (grub_env_sorted): Likewise.
49832 (grub_env_context): New variable.
49833 (grub_env_var_context): Likewise.
49834 (grub_env_find): Search both the active context and the global
49836 (grub_env_context_open): New function.
49837 (grub_env_context_close): Likewise.
49838 (grub_env_insert): Likewise.
49839 (grub_env_remove): Likewise.
49840 (grub_env_export): Likewise.
49841 (grub_env_set): Changed to use helper functions to avoid code
49843 (grub_env_iterate): Rewritten so both the current context and the
49844 global context are being used.
49846 * normal/command.c (export_command): New function.
49847 (grub_command_init): Register the `export' function.
49849 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49851 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49852 explicitly to suppress gcc's warnings.
49853 * fs/fat.c (grub_fat_find_dir): Likewise.
49854 (grub_fat_label): Likewise.
49855 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49856 (grub_xfs_mount): Likewise.
49857 (grub_xfs_label): Likewise.
49858 * fs/affs.c (grub_affs_mount): Likewise.
49859 (grub_affs_label): Likewise.
49860 (grub_affs_iterate_dir): Likewise.
49861 * fs/sfs.c (grub_sfs_mount): Likewise.
49862 (grub_sfs_iterate_dir): Likewise.
49863 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49864 * fs/hfs.c (grub_hfs_mount): Likewise.
49865 (grub_hfs_cmp_catkeys): Likewise.
49866 (grub_hfs_find_dir): Likewise.
49867 (grub_hfs_dir): Likewise.
49868 (grub_hfs_label): Likewise.
49869 * fs/jfs.c (grub_jfs_mount): Likewise.
49870 (grub_jfs_opendir): Likewise.
49871 (grub_jfs_getent): Likewise.
49872 (grub_jfs_lookup_symlink): Likewise.
49873 (grub_jfs_label): Likewise.
49874 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49875 (grub_hfsplus_iterate_dir): Likewise.
49876 (grub_hfsplus_btree_iterate_node): Made static.
49878 * util/grub-emu.c (prefix): New variable.
49879 (grub_machine_set_prefix): New function.
49880 (main): Do not set the environment variable "prefix" here. Only
49881 set PREFIX, which is used later by grub_machine_set_prefix.
49883 * include/grub/video.h: Do not include grub/symbol.h.
49884 (grub_video_register): Not exported. This symbol is not defined in
49886 (grub_video_unregister): Likewise.
49887 (grub_video_iterate): Likewise.
49888 (grub_video_setup): Likewise.
49889 (grub_video_restore): Likewise.
49890 (grub_video_get_info): Likewise.
49891 (grub_video_get_blit_format): Likewise.
49892 (grub_video_set_palette): Likewise.
49893 (grub_video_get_palette): Likewise.
49894 (grub_video_set_viewport): Likewise.
49895 (grub_video_get_viewport): Likewise.
49896 (grub_video_map_color): Likewise.
49897 (grub_video_map_rgb): Likewise.
49898 (grub_video_map_rgba): Likewise.
49899 (grub_video_fill_rect): Likewise.
49900 (grub_video_blit_glyph): Likewise.
49901 (grub_video_blit_bitmap): Likewise.
49902 (grub_video_blit_render_target): Likewise.
49903 (grub_video_scroll): Likewise.
49904 (grub_video_swap_buffers): Likewise.
49905 (grub_video_create_render_target): Likewise.
49906 (grub_video_delete_render_target): Likewise.
49907 (grub_video_set_active_render_target): Likewise.
49909 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49911 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
49913 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
49914 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49915 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49916 instead of $(srcdir)/genkernsyms.sh.
49918 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
49919 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49920 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49921 instead of $(srcdir)/genkernsyms.sh.
49923 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
49924 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49925 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49926 instead of $(srcdir)/genkernsyms.sh.
49928 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
49929 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49930 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49931 instead of $(srcdir)/genkernsyms.sh.
49933 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
49936 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
49938 (gensymlist.sh): New target.
49939 (genkernsyms.sh): Likewise.
49941 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
49942 genkernsyms.sh.in and gensymlist.sh.in.
49944 * genkernsyms.sh: Removed.
49945 * gensymlist.sh: Likewise.
49947 * genkernsyms.sh.in: New file.
49948 * gensymlist.sh.in: Likewise.
49950 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49952 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
49953 clobber "prefix", since we may have already set it manually.
49955 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49957 * kern/misc.c (abort): New alias for grub_abort.
49959 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
49961 A new machine-specific function "grub_machine_set_prefix" is
49962 defined. This is called after loading modules, so that a prefix
49963 initialization can use modules. Also, this change adds an
49964 intensive debugging feature for the memory manager via the
49965 configure option "--enable-mm-debug".
49967 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
49970 * kern/sparc64/ieee1275/init.c (abort): Removed.
49971 (grub_stop): Likewise.
49972 (grub_exit): New function.
49973 (grub_set_prefix): Renamed to ...
49974 (grub_machine_set_prefix): ... this.
49975 (grub_machine_init): Do not call grub_set_prefix.
49977 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
49978 (grub_machine_set_prefix): ... this.
49979 (grub_machine_init): Do not call grub_set_prefix.
49981 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
49982 (grub_machine_init): Do not set the prefix here.
49984 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
49986 * kern/efi/init.c: Include grub/mm.h.
49987 (grub_efi_set_prefix): New function.
49989 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
49990 (grub_efi_get_filename): New function.
49991 (grub_print_device_path): Renamed to ...
49992 (grub_efi_print_device_path): ... this.
49994 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
49995 [MM_DEBUG] (grub_realloc): Likewise.
49996 [MM_DEBUG] (grub_free): Likewise.
49997 [MM_DEBUG] (grub_memalign): Likewise.
49998 [MM_DEBUG] (grub_mm_debug): New variable.
49999 [MM_DEBUG] (grub_debug_malloc): New function.
50000 [MM_DEBUG] (grub_debug_free): New function.
50001 [MM_DEBUG] (grub_debug_realloc): New function.
50002 [MM_DEBUG] (grub_debug_memalign): New function.
50004 * kern/misc.c (grub_abort): Print a newline to distinguish
50007 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50008 grub_set_root_dev after loading modules. This is necessary when
50009 setting a prefix depends on modules.
50011 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50012 (grub_efi_print_device_path): ... this.
50013 (grub_efi_get_filename): New prototype.
50014 (grub_efi_set_prefix): Likewise.
50016 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50018 (grub_efidisk_get_device_handle): New prototype.
50019 (grub_efidisk_get_device_name): Likewise.
50021 * include/grub/mm.h: Include config.h.
50022 (MM_DEBUG): Removed.
50023 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50024 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50025 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50026 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50027 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50028 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50029 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50030 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50031 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50033 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50035 * disk/efi/efidisk.c: Include grub/partition.h.
50036 (iterate_child_devices): New function.
50037 (add_device): First, compare only last device path nodes, so that
50038 devices are sorted by the types.
50039 (grub_efidisk_get_device_handle): New function.
50040 (grub_efidisk_get_device_name): Likewise.
50042 * configure.ac (--enable-mm-debug): New option to enable the
50043 memory manager debugging feature. This makes the binary much
50044 bigger, so is disabled by default.
50046 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50048 Use grub_abort instead of grub_stop, and grub_exit must be
50049 define in each architecture now. Also, this change adds support
50052 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50053 (grub_getkey): New function.
50054 (grub_term_get_current): Likewise.
50056 * util/i386/pc/grub-setup.c: Include grub/term.h.
50057 (grub_getkey): New function.
50058 (grub_term_get_current): Likewise.
50060 * util/misc.c (grub_stop): Renamed to ...
50061 (grub_exit): ... this.
50063 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50064 (grub_exit): ... this.
50065 (grub_machine_init): Use grub_abort instead of abort.
50066 (grub_stop): Removed.
50068 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50071 * kern/i386/pc/startup.S (grub_exit): New function.
50072 (cold_reboot): New label.
50074 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50075 (grub_efi_init): Call grub_efidisk_init.
50076 (grub_efi_fini): Call grub_efidisk_fini.
50078 * kern/efi/efi.c: Include grub/mm.h.
50079 (grub_efi_console_control_guid): Renamed to ...
50080 (console_control_guid): ... this.
50081 (grub_efi_loaded_image_guid): Renamed to ...
50082 (loaded_image_guid): ... this.
50083 (grub_efi_locate_handle): New function.
50084 (grub_efi_open_protocol): Likewise.
50085 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50086 GRUB_EFI_CONSOLE_CONTROL_GUID.
50087 (grub_efi_exit): Removed.
50088 (grub_stop): Likewise.
50089 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50090 (grub_exit): New function.
50091 (grub_print_device_path): Likewise.
50093 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50094 (grub_enter_rescue_mode): Register "exit".
50096 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50097 (grub_abort): New function.
50099 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50101 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50103 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50105 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50106 (grub_print_device_path): New prototype.
50107 (grub_efi_locate_handle): Likewise.
50108 (grub_efi_open_protocol): Likewise.
50110 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50111 * disk/efi/efidisk.c: Likewise.
50113 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50115 * include/grub/efi/console_control.h
50116 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50118 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50119 last 8 bytes as an array.
50120 (GRUB_EFI_DISK_IO_GUID): New macro.
50121 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50122 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50123 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50125 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50126 (struct grub_efi_device_path): Rename the member "sub_type" to
50128 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50129 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50130 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50131 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50132 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50133 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50134 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50135 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50136 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50137 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50138 (struct grub_efi_pci_device_path): New structure.
50139 (grub_efi_pci_device_path_t): New type.
50140 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50141 (struct grub_efi_pccard_device_path): New structure.
50142 (grub_efi_pccard_device_path_t): New type.
50143 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50144 (struct grub_efi_memory_mapped_device_path): New structure.
50145 (grub_efi_memory_mapped_device_path_t): New type.
50146 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50147 (struct grub_efi_vendor_device_path): New structure.
50148 (grub_efi_vendor_device_path_t): New type.
50149 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50150 (struct grub_efi_controller_device_path): New structure.
50151 (grub_efi_controller_device_path_t): New type.
50152 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50153 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50154 (struct grub_efi_acpi_device_path): New structure.
50155 (grub_efi_acpi_device_path_t): New type.
50156 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50157 (struct grub_efi_expanded_acpi_device_path): New structure.
50158 (grub_efi_expanded_acpi_device_path_t): New type.
50159 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50160 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50161 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50162 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50163 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50164 (struct grub_efi_atapi_device_path): New structure.
50165 (grub_efi_atapi_device_path_t): New type.
50166 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50167 (struct grub_efi_fibre_channel_device_path): New structure.
50168 (grub_efi_fibre_channel_device_path_t): New type.
50169 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50170 (struct grub_efi_1394_device_path): New structure.
50171 (grub_efi_1394_device_path_t): New type.
50172 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50173 (struct grub_efi_usb_device_path): New structure.
50174 (grub_efi_usb_device_path_t): New type.
50175 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50176 (struct grub_efi_usb_class_device_path): New structure.
50177 (grub_efi_usb_class_device_path_t): New type.
50178 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50179 (struct grub_efi_i2o_device_path): New structure.
50180 (grub_efi_i2o_device_path_t): New type.
50181 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50182 (struct grub_efi_mac_address_device_path): New structure.
50183 (grub_efi_mac_address_device_path_t): New type.
50184 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50185 (struct grub_efi_ipv4_device_path): New structure.
50186 (grub_efi_ipv4_device_path_t): New type.
50187 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50188 (struct grub_efi_ipv6_device_path): New structure.
50189 (grub_efi_ipv6_device_path_t): New type.
50190 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50191 (struct grub_efi_infiniband_device_path): New structure.
50192 (grub_efi_infiniband_device_path_t): New type.
50193 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50194 (struct grub_efi_uart_device_path): New structure.
50195 (grub_efi_uart_device_path_t): New type.
50196 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50197 (struct grub_efi_vendor_messaging_device_path): New structure.
50198 (grub_efi_vendor_messaging_device_path_t): New type.
50199 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50200 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50201 (struct grub_efi_hard_drive_device_path): New structure.
50202 (grub_efi_hard_drive_device_path_t): New type.
50203 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50204 (struct grub_efi_cdrom_device_path): New structure.
50205 (grub_efi_cdrom_device_path_t): New type.
50206 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50207 (struct grub_efi_vendor_media_device_path): New structure.
50208 (grub_efi_vendor_media_device_path_t): New type.
50209 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50210 (struct grub_efi_file_path_device_path): New structure.
50211 (grub_efi_file_path_device_path_t): New type.
50212 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50213 (struct grub_efi_protocol_device_path): New structure.
50214 (grub_efi_protocol_device_path_t): New type.
50215 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50216 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50217 (struct grub_efi_bios_device_path): New structure.
50218 (grub_efi_bios_device_path_t): New type.
50219 (struct grub_efi_disk_io): New structure.
50220 (grub_efi_disk_io_t): New type.
50221 (struct grub_efi_block_io_media): New structure.
50222 (grub_efi_block_io_media_t): New type.
50223 (struct grub_efi_block_io): New structure.
50224 (grub_efi_block_io_t): New type.
50226 * include/grub/misc.h (grub_stop): Removed.
50227 (grub_exit): New prototype.
50228 (grub_abort): Likewise.
50230 * include/grub/disk.h (enum grub_disk_dev_id): Added
50231 GRUB_DISK_DEVICE_EFIDISK_ID.
50233 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50234 disk/efi/efidisk.c.
50235 (kernel_syms.lst): Remove the target if an error occurs.
50237 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50239 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50240 as it was simply too buggy.
50242 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50244 * kern/misc.c (grub_lltoa): New function.
50245 (grub_vsprintf): Added support for the long long suffix,
50248 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50250 * Makefile.in (LDFLAGS): Add variable.
50251 (LD): Remove variable.
50252 * configure.ac: Add -m32 to LDFLAGS.
50253 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50254 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50255 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50256 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50257 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50259 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50260 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50261 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50263 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50265 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50266 length for unknown glyph.
50268 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50270 Add support for pre-loaded modules into the EFI port.
50272 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50273 completely. Accept one more argument DIR. The caller has changed.
50275 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50277 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50278 (grub_efi_loaded_image_guid): New variable.
50279 (grub_efi_get_loaded_image): New function.
50280 (grub_arch_modules_addr): Likewise.
50282 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50285 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50286 (struct grub_efi_loaded_image): New structure.
50287 (grub_efi_loaded_image_t): New type.
50289 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50291 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50292 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50293 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50295 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50297 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50299 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50301 * DISTLIST: Added include/grub/efi/console.h,
50302 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50303 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50305 * include/grub/efi/console.h: New file.
50306 * include/grub/efi/time.h: Likewise.
50307 * include/grub/i386/efi/kernel.h: Likewise.
50308 * kern/efi/init.c: Likewise.
50309 * kern/efi/mm.c: Likewise.
50310 * term/efi/console.c: Likewise.
50312 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50313 (grub_stop): Removed.
50314 (grub_get_rtc): Likewise.
50315 (grub_machine_init): Simply call grub_efi_init.
50316 (grub_machine_fini): Call grub_efi_fini.
50318 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50319 (grub_efi_output_string): Removed.
50320 (grub_efi_stall): New function.
50321 (grub_stop): Likewise.
50322 (grub_get_rtc): Likewise.
50324 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50325 (grub_efi_stall): New prototype.
50326 (grub_efi_allocate_pages): Likewise.
50327 (grub_efi_free_pages): Likewise.
50328 (grub_efi_get_memory_map): Likewise.
50329 (grub_efi_mm_init): Likewise.
50330 (grub_efi_mm_fini): Likewise.
50331 (grub_efi_init): Likewise.
50332 (grub_efi_fini): Likewise.
50334 * include/grub/i386/efi/time.h: Do not include
50335 grub/symbol.h. Include grub/efi/time.h.
50336 (GRUB_TICKS_PER_SECOND): Removed.
50337 (grub_get_rtc): Likewise.
50339 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50340 Added padding. The EFI spec is buggy.
50341 (GRUB_EFI_BLACK): New macro.
50342 (GRUB_EFI_BLUE): Likewise.
50343 (GRUB_EFI_GREEN): Likewise.
50344 (GRUB_EFI_CYAN): Likewise.
50345 (GRUB_EFI_RED): Likewise.
50346 (GRUB_EFI_MAGENTA): Likewise.
50347 (GRUB_EFI_BROWN): Likewise.
50348 (GRUB_EFI_LIGHTGRAY): Likewise.
50349 (GRUB_EFI_BRIGHT): Likewise.
50350 (GRUB_EFI_DARKGRAY): Likewise.
50351 (GRUB_EFI_LIGHTBLUE): Likewise.
50352 (GRUB_EFI_LIGHTGREEN): Likewise.
50353 (GRUB_EFI_LIGHTCYAN): Likewise.
50354 (GRUB_EFI_LIGHTRED): Likewise.
50355 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50356 (GRUB_EFI_YELLOW): Likewise.
50357 (GRUB_EFI_WHITE): Likewise.
50358 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50359 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50360 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50361 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50362 (GRUB_EFI_BACKGROUND_RED): Likewise.
50363 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50364 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50365 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50366 (GRUB_EFI_TEXT_ATTR): Likewise.
50368 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50369 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50370 (kernel_mod_HEADERS): Added efi/time.h.
50372 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50374 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50375 include/grub/efi/api.h, include/grub/efi/console_control.h,
50376 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50377 include/grub/i386/efi/time.h, kern/efi/efi.c,
50378 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50379 and util/i386/efi/grub-mkimage.c.
50381 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50383 * genmk.rb (PModule#rule): Do not export symbols if
50384 #{prefix}_EXPORTS is set to "no".
50386 * conf/i386-efi.mk: New file.
50387 * conf/i386-efi.rmk: Likewise.
50388 * include/grub/efi/api.h: Likewise.
50389 * include/grub/efi/console_control.h: Likewise.
50390 * include/grub/efi/efi.h: Likewise.
50391 * include/grub/efi/pe32.h: Likewise.
50392 * include/grub/i386/efi/time.h: Likewise.
50393 * kern/efi/efi.c: Likewise.
50394 * kern/i386/efi/init.c: Likewise.
50395 * kern/i386/efi/startup.S: Likewise.
50396 * util/i386/efi/grub-mkimage.c: Likewise.
50398 2006-04-17 Marco Gerards <marco@gnu.org>
50400 * include/grub/script.h: Include <grub/parser.h> and
50401 "grub_script.tab.h".
50402 (struct grub_lexer_param): New struct.
50403 (struct grub_parser_param): Likewise.
50404 (grub_script_create_arglist): Pass the state in an argument.
50405 (grub_script_add_arglist): Likewise.
50406 (grub_script_create_cmdline): Likewise.
50407 (grub_script_create_cmdblock): Likewise.
50408 (grub_script_create_cmdif): Likewise.
50409 (grub_script_create_cmdmenu): Likewise.
50410 (grub_script_add_cmd): Likewise.
50411 (grub_script_arg_add): Likewise.
50412 (grub_script_lexer_ref): Likewise.
50413 (grub_script_lexer_deref): Likewise.
50414 (grub_script_lexer_record_start): Likewise.
50415 (grub_script_lexer_record_stop): Likewise.
50416 (grub_script_mem_record): Likewise.
50417 (grub_script_mem_record_stop): Likewise.
50418 (grub_script_malloc): Likewise.
50419 (grub_script_yylex): Likewise.
50420 (grub_script_yyparse): Likewise.
50421 (grub_script_yyerror): Likewise.
50422 (grub_script_yylex): Likewise.
50423 (grub_script_lexer_init): Return the state.
50425 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50426 (grub_script_lexer_done): Likewise.
50427 (grub_script_lexer_getline): Likewise.
50428 (grub_script_lexer_refs): Likewise.
50429 (script): Likewise.
50430 (newscript): Likewise.
50431 (record): Likewise.
50432 (recording): Likewise.
50433 (recordpos): Likewise.
50434 (recordlen): Likewise.
50435 (grub_script_lexer_init): Return the state instead of setting
50437 (grub_script_lexer_ref): Use the newly added argument for state
50438 instead of globals.
50439 (grub_script_lexer_deref): Likewise.
50440 (grub_script_lexer_record_start): Likewise.
50441 (grub_script_lexer_record_stop): Likewise.
50442 (recordchar): Likewise.
50443 (nextchar): Likewise.
50444 (grub_script_yylex2): Likewise.
50445 (grub_script_yylex): Likewise.
50446 (grub_script_yyerror): Likewise.
50448 * normal/parser.y (func_mem): Removed variable.
50449 (menu_entry): Likewise.
50451 (%lex-param): New parser option.
50452 (%parse-param): Likewise.
50453 (script): Always return the AST.
50454 (argument): Pass the state around.
50455 (arguments): Likewise.
50456 (grubcmd): Likewise.
50457 (commands): Likewise.
50458 (function): Likewise.
50459 (menuentry): Likewise.
50460 (if_statement): Likewise.
50463 * normal/script.c (grub_script_memused): Removed variable.
50464 (grub_script_parsed): Likewise.
50465 (grub_script_malloc): Added a state argument. Use that instead of
50467 (grub_script_mem_record): Likewise.
50468 (grub_script_mem_record_stop): Likewise.
50469 (grub_script_arg_add): Likewise.
50470 (grub_script_add_arglist): Likewise.
50471 (grub_script_create_cmdline): Likewise.
50472 (grub_script_create_cmdif): Likewise.
50473 (grub_script_create_cmdmenu): Likewise.
50474 (grub_script_add_cmd): Likewise.
50475 (grub_script_parse): Setup the state before calling the parser.
50477 2006-04-16 Marco Gerards <marco@gnu.org>
50479 * normal/command.c (grub_command_init): Remove the title command.
50481 * normal/lexer.c (grub_script_yylex): Renamed from this...
50482 (grub_script_yylex2): ... to this.
50483 (grub_script_yylex): New function. Temporary
50484 introduced to filter some tokens.
50485 (grub_script_yyerror): Print a newline.
50487 * normal/main.c (read_config_file): Output information about the
50488 lines that contain errors. Wait for a key after all lines have
50489 been processed. Don't return an empty menu.
50491 * normal/parser.y (func_mem): Don't initialize.
50492 (menu_entry): Likewise.
50493 (err): New variable.
50494 (script): Don't return anything when an error was encountered.
50495 (ws, returns): Removed rules.
50496 (argument): Disabled concatenated variable support.
50497 (arguments): Remove explicit separators.
50498 (grubcmd): Likewise.
50499 (function): Likewise.
50500 (menuentry): Likewise.
50502 (commands): Likewise. Add error handling.
50504 * normal/script.c (grub_script_create_cmdline): If
50505 `grub_script_parsed' is 0, assume the parser encountered an error.
50507 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50509 * configure.ac: Add support for EFI. Fix the typo
50510 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50512 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50514 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50515 foreign multibyte characters should be shown correctly.
50517 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50519 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50521 (read_config_file): Made it to close file before returning.
50523 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50525 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50526 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50527 video/i386/pc/vbefill.c.
50529 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50530 video/i386/pc/vbefill.c.
50532 * include/grub/video.h (grub_video_blit_format): New enum.
50533 (grub_video_mode_info): Added new member blit_format.
50534 (grub_video_get_blit_format): New function prototype.
50536 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50537 function prototype.
50538 (grub_video_vbe_map_rgb): Likewise.
50539 (grub_video_vbe_unmap_color): Likewise.
50541 * include/grub/i386/pc/vbeblit.h: New file.
50543 * include/grub/i386/pc/vbefill.h: New file.
50545 * video/video.c (grub_video_get_blit_format): New function.
50546 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50547 (grub_video_vbe_map_rgb): Likewise.
50548 (grub_video_vbe_unmap_color): Likewise.
50550 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50552 (grub_video_vbe_blit_render_target): Changed to use more optimized
50554 (grub_video_vbe_setup): Added detection for optimized settings.
50555 (grub_video_vbe_create_render_target): Likewise.
50557 * video/i386/pc/vbeblit.c: New file.
50559 * video/i386/pc/vbefill.c: New file.
50561 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50563 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50566 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50567 parsing to support both hex and dec ranges. If filename was missing
50568 show usage information.
50570 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50572 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50573 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50575 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50576 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50577 (video_mod_SOURCES): Added.
50578 (video_mod_CFLAGS): Likewise.
50579 (video_mod_LDFLAGS): Likewise.
50580 (gfxterm_mod_SOURCES): Likewise.
50581 (gfxterm_mod_CFLAGS): Likewise.
50582 (gfxterm_mod_LDFLAGS): Likewise.
50583 (videotest_mod_SOURCES): Likewise.
50584 (videotest_mod_CFLAGS): Likewise.
50585 (videotest_mod_LDFLAGS): Likewise.
50586 (vesafb_mod_SOURCES): Removed.
50587 (vesafb_mod_CFLAGS): Likewise.
50588 (vesafb_mod_LDFLAGS): Likewise.
50589 (vga_mod_SOURCES): Likewise.
50590 (vga_mod_CFLAGS): Likewise.
50591 (vga_mod_LDFLAGS): Likewise.
50593 * commands/videotest.c: New file.
50595 * font/manager.c (fill_with_default_glyph): Modified to use
50597 (grub_font_get_glyph): Likewise.
50598 (fontmanager): Renamed from this...
50599 (font_manager): ... to this.
50601 * include/grub/font.h (grub_font_glyph): Added new structure.
50602 (grub_font_get_glyph): Modified to use grub_font_glyph.
50604 * include/grub/misc.h (grub_abs): Added as inline function.
50606 * include/grub/video.h: New file.
50608 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50609 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50610 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50611 (grub_vbe_get_controller_info): Renamed from this...
50612 (grub_vbe_bios_get_controller_info): ... to this.
50613 (grub_vbe_get_mode_info): Renamed from this...
50614 (grub_vbe_bios_get_mode_info): ... to this.
50615 (grub_vbe_set_mode): Renamed from this...
50616 (grub_vbe_bios_set_mode): ... to this.
50617 (grub_vbe_get_mode): Renamed from this...
50618 (grub_vbe_bios_get_mode): ... to this.
50619 (grub_vbe_set_memory_window): Renamed from this...
50620 (grub_vbe_bios_set_memory_window): ... to this.
50621 (grub_vbe_get_memory_window): Renamed from this...
50622 (grub_vbe_bios_get_memory_window): ... to this.
50623 (grub_vbe_set_scanline_length): Renamed from this...
50624 (grub_vbe_set_scanline_length): ... to this.
50625 (grub_vbe_get_scanline_length): Renamed from this...
50626 (grub_vbe_bios_get_scanline_length): ... to this.
50627 (grub_vbe_set_display_start): Renamed from this...
50628 (grub_vbe_bios_set_display_start): ... to this.
50629 (grub_vbe_get_display_start): Renamed from this...
50630 (grub_vbe_bios_get_display_start): ... to this.
50631 (grub_vbe_set_palette_data): Renamed from this...
50632 (grub_vbe_bios_set_palette_data): ... to this.
50633 (grub_vbe_set_pixel_rgb): Removed.
50634 (grub_vbe_set_pixel_index): Likewise.
50636 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50638 (grub_vbe_bios_get_controller_info): ... to this.
50639 (grub_vbe_get_mode_info): Renamed from this...
50640 (grub_vbe_bios_get_mode_info): ... to this.
50641 (grub_vbe_set_mode): Renamed from this...
50642 (grub_vbe_bios_set_mode): ... to this.
50643 (grub_vbe_get_mode): Renamed from this...
50644 (grub_vbe_bios_get_mode): ... to this.
50645 (grub_vbe_set_memory_window): Renamed from this...
50646 (grub_vbe_bios_set_memory_window): ... to this.
50647 (grub_vbe_get_memory_window): Renamed from this...
50648 (grub_vbe_bios_get_memory_window): ... to this.
50649 (grub_vbe_set_scanline_length): Renamed from this...
50650 (grub_vbe_set_scanline_length): ... to this.
50651 (grub_vbe_get_scanline_length): Renamed from this...
50652 (grub_vbe_bios_get_scanline_length): ... to this.
50653 (grub_vbe_set_display_start): Renamed from this...
50654 (grub_vbe_bios_set_display_start): ... to this.
50655 (grub_vbe_get_display_start): Renamed from this...
50656 (grub_vbe_bios_get_display_start): ... to this.
50657 (grub_vbe_set_palette_data): Renamed from this...
50658 (grub_vbe_bios_set_palette_data): ... to this.
50659 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50660 getting corrupted after calling it. Added more pushes and pops.
50661 (grub_vbe_bios_set_mode): Likewise.
50662 (grub_vbe_bios_get_mode): Likewise.
50663 (grub_vbe_bios_get_memory_window): Likewise.
50664 (grub_vbe_bios_set_scanline_length): Likewise.
50665 (grub_vbe_bios_get_scanline_length): Likewise.
50666 (grub_vbe_bios_get_display_start): Likewise.
50667 (grub_vbe_bios_set_palette_data): Likewise.
50669 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50670 (cl_insert): Likewise.
50671 (cl_delete): Likewise.
50673 * term/gfxterm.c: New file.
50675 * term/i386/pc/vesafb.c: Removed file.
50677 * video/video.c: New file.
50679 * video/i386/pc/vbe.c (real2pm): Added new function.
50680 (grub_video_vbe_draw_pixel): Likewise.
50681 (grub_video_vbe_get_video_ptr): Likewise.
50682 (grub_video_vbe_get_pixel): Likewise
50683 (grub_video_vbe_init): Likewise.
50684 (grub_video_vbe_fini): Likewise.
50685 (grub_video_vbe_setup): Likewise.
50686 (grub_video_vbe_get_info): Likewise.
50687 (grub_video_vbe_set_palette): Likewise.
50688 (grub_video_vbe_get_palette): Likewise.
50689 (grub_video_vbe_set_viewport): Likewise.
50690 (grub_video_vbe_get_viewport): Likewise.
50691 (grub_video_vbe_map_color): Likewise.
50692 (grub_video_vbe_map_rgb): Likewise.
50693 (grub_video_vbe_map_rgba): Likewise.
50694 (grub_video_vbe_unmap_color): Likewise.
50695 (grub_video_vbe_fill_rect): Likewise.
50696 (grub_video_vbe_blit_glyph): Likewise.
50697 (grub_video_vbe_blit_bitmap): Likewise.
50698 (grub_video_vbe_blit_render_target): Likewise.
50699 (grub_video_vbe_scroll): Likewise.
50700 (grub_video_vbe_swap_buffers): Likewise.
50701 (grub_video_vbe_create_render_target): Likewise.
50702 (grub_video_vbe_delete_render_target): Likewise.
50703 (grub_video_vbe_set_active_render_target): Likewise.
50704 (grub_vbe_set_pixel_rgb): Remove function.
50705 (grub_vbe_set_pixel_index): Likewise.
50706 (index_color_mode): Remove static variable.
50707 (active_mode): Likewise.
50708 (framebuffer): Likewise.
50709 (bytes_per_scan_line): Likewise.
50710 (grub_video_vbe_adapter): Added new static variable.
50711 (framebuffer): Likewise.
50712 (render_target): Likewise.
50713 (initial_mode): Likewise.
50714 (mode_in_use): Likewise.
50715 (mode_list): Likewise.
50717 2006-03-10 Marco Gerards <marco@gnu.org>
50719 * configure.ac (AC_INIT): Bumped to 1.93.
50721 * DISTLIST: Added `include/grub/hfs.h'.
50723 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50725 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50726 18H, which might help the BIOS falling back to next boot media.
50728 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50730 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50731 Poe Chen <poe.poechen@gmail.com>.
50733 2006-01-17 Marco Gerards <marco@gnu.org>
50735 * include/grub/normal.h: Include <grub/script.h>.
50736 (grub_command_list): Removed struct.
50737 (grub_command_list_t): Removed type.
50738 (grub_menu_entry): Remove members `num' and `command_list'. Add
50739 members `commands' and `sourcecode'.
50740 * include/grub/script.h: Add inclusion guards.
50741 (grub_script_cmd_menuentry): New struct.
50742 (grub_script_execute_menuentry): New prototype.
50743 (grub_script_lexer_record_start): Likewise.
50744 (grub_script_lexer_record_stop): Likewise.
50745 * normal/execute.c (grub_script_execute_menuentry): New function.
50746 * normal/lexer.c (record, recording, recordpos, recordlen): New
50748 (grub_script_lexer_record_start): New function.
50749 (grub_script_lexer_record_stop): Likewise.
50750 (recordchar): Likewise.
50751 (nextchar): Likewise.
50752 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50753 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50754 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50755 (current_menu): New variable.
50756 (free_menu): Mainly rewritten.
50757 (grub_normal_menu_addentry): New function.
50758 (read_config_file): Rewritten.
50759 * normal/menu.c (run_menu_entry): Mainly rewritten.
50760 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50762 (run): Mainly rewritten.
50763 * normal/parser.y (menu_entry): New variable.
50764 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50765 (menuentry): New rule.
50766 (command): Add `menuentry'.
50767 (if_statement): Allow additional returns before `fi'.
50768 * normal/script.c (grub_script_create_cmdmenu): New function.
50770 2006-01-03 Marco Gerards <marco@gnu.org>
50772 * INSTALL: GNU Bison is required.
50773 * configure.ac: Rewritten the test to detect Bison.
50774 * Makefile.in (YACC): New variable. Reported by Xun Sun
50775 <xun.sun.cn@gmail.com>.
50777 2006-01-03 Marco Gerards <marco@gnu.org>
50779 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50780 the HFS+ filesystem to filesystem blocks.
50781 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50782 GCC warning is silenced.
50784 2006-01-03 Marco Gerards <marco@gnu.org>
50786 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50787 read from disk from big endian to host byte order.
50789 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50791 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50793 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50794 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50795 embedded HFS+ filesystem.
50796 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50797 (grub_hfs_sblock): Move from here...
50798 * include/grub/hfs.h: To here... New file.
50799 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50801 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50803 (grub_hfsplus_volheader): Change type of member `magic' to
50805 (grub_hfsplus_data): Add new member `embedded_offset'.
50806 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50808 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50809 Calculate the offset.
50811 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50813 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50815 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50817 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50819 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50820 ENV->NAME is NULL after allocating ENV->VALUE.
50822 2005-12-25 Marco Gerards <marco@gnu.org>
50824 * kern/env.c (grub_env_set): Rewritten the error handling code.
50826 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50828 * geninit.sh: Made more robust, and more portable.
50830 2005-12-25 Marco Gerards <marco@gnu.org>
50832 Add support for Apple HFS+ filesystems.
50834 * fs/hfsplus.c: New file.
50836 * DISTLIST: Added `fs/hfsplus.c'.
50838 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50839 (hfsplus_mod_SOURCES): New variable.
50840 (hfsplus_mod_CFLAGS): Likewise.
50841 (hfsplus_mod_LDFLAGS): Likewise.
50842 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50843 (grub_setup_SOURCES): Likewise.
50844 (grub_mkdevicemap_SOURCES): Likewise.
50845 (grub_emu_SOURCES): Likewise.
50846 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50848 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50850 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50852 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50854 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50855 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50856 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50857 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50858 normal/lexer.c, normal/parser.y, normal/script.c, and
50860 Removed kern/sparc64/cache.c.
50862 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50863 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50866 * configure.ac (AC_INIT): Bumped to 1.92.
50868 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50870 * kern/err.c (grub_error_push): Added new function to support error
50872 (grub_error_pop): Likewise.
50873 (grub_error_stack_items): New local variable to support error stacks.
50874 (grub_error_stack_pos): Likewise.
50875 (grub_error_stack_assert): Likewise.
50876 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50878 (grub_print_error): Added support to print errors from error stack.
50880 * include/grub/err.h (grub_error_push): Added function prototype.
50881 (grub_error_pop): Likewise.
50883 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50885 * configure.ac: Accept `powerpc64' as host_cpu.
50886 (amd64): Rename to `biarch32'.
50888 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50889 non-cacheline-aligned addresses.
50891 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50892 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50893 if `size' is non-zero.
50895 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
50897 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50898 and `cd' to make sure the filename is not prefixed with a
50900 (pkgdata_MODULES): Add `gpt.mod'.
50901 (gpt_mod_SOURCES): New variable.
50902 (gpt_mod_CFLAGS): Likewise.
50903 (gpt_mod_LDFLAGS): Likewise.
50905 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50907 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50910 * partmap/gpt.c: New file.
50912 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
50913 GPT partition map is detected.
50915 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
50917 * commands/i386/pc/play.c: New file.
50918 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
50919 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
50922 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
50924 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
50925 ((unused))' to silence gcc warning.
50927 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
50929 * configure.ac: Correct `AC_PROG_YACC' test.
50931 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50933 * util/powerpc/ieee1275/grub-install.in: Run the mount point
50934 check before installing files.
50936 2005-11-22 Mike Small <smallm@panix.com>
50938 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
50939 number regex so multidigit numbers are recognized correctly.
50941 2005-11-22 Mike Small <smallm@panix.com>
50943 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
50944 debugging message before attempting to claim memory.
50945 (grub_rescue_cmd_initrd): Add a claim debugging message and try
50946 multiple addresses in case of failure.
50948 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50950 * term/tparm.c (get_space): Remove empty `if' statement.
50952 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
50954 * kern/parser.c (check_varstate): Rename `state' to 's'.
50956 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50958 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
50959 variable definitions to the beginning of each function. Sort stack
50961 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
50962 `buf' argument to `char *'.
50964 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50966 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
50967 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
50968 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
50969 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
50970 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
50971 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
50972 configfile.mod, search.mod, gzio.mod and test.mod.
50973 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
50974 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
50975 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
50976 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
50977 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
50978 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
50979 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
50980 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
50981 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
50982 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
50983 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50984 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50985 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
50986 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
50987 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
50988 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
50989 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50990 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
50991 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
50992 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
50993 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
50994 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
50995 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
50997 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
50999 (pkgdata_MODULES): Add test.mod.
51001 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51003 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51004 appending to variables with "+=".
51005 (PModule): Use full pathname to generate *.lst filenames.
51007 * Makefile.in: Fixed list rules moved from genmk.rb.
51008 (.DELETE_ON_ERROR): New special target.
51009 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51011 * conf/i386-pc.rmk: Include conf/common.mk.
51012 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51013 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51014 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51015 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51016 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51017 configfile.mod, search.mod, gzio.mod and test.mod.
51018 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51019 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51020 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51021 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51022 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51023 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51024 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51025 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51026 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51027 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51028 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51029 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51030 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51031 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51032 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51033 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51034 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51035 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51036 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51037 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51038 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51039 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51040 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51042 * conf/common.rmk: ... to here. New file.
51044 * conf/common.mk: New file.
51046 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51048 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51049 (grub_script.tab.c): ... here.
51051 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51052 (grub_script.tab.c): ... here.
51054 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51055 (grub_script.tab.c): ... here.
51057 * normal/command.c (grub_command_find): Fixed a memory leak of
51058 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51060 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51062 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51063 "@" which marks the start of a comment on ARM.
51064 (VARIABLE): Likewise.
51066 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51068 Add support for Linux/ADFS partition tables.
51070 * partmap/acorn.c: New file.
51072 * include/grub/acorn_filecore.h: Likewise.
51074 * DISTLIST: Added `partmap/acorn.c' and
51075 `include/grub/acorn_filecore.h'.
51077 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51079 (pkgdata_MODULES): Add `acorn.mod'.
51080 (acorn_mod_SOURCES): New variable.
51081 (acorn_mod_CFLAGS): Likewise.
51083 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51085 (pkgdata_MODULES): Add `acorn.mod'.
51086 (acorn_mod_SOURCES): New variable.
51087 (acorn_mod_CFLAGS): Likewise.
51089 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51090 (pkgdata_MODULES): Add `acorn.mod'.
51091 (acorn_mod_SOURCES): New variable.
51092 (acorn_mod_CFLAGS): Likewise.
51093 (acorn_mod_LDFLAGS): Likewise.
51095 * include/types.h (grub_disk_addr_t): New typedef.
51097 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51099 * geninit.sh: New file.
51101 * geninitheader.sh: Likewise.
51103 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51104 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51105 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51106 * commands/configfile.c (grub_configfile_init)
51107 (grub_configfile_fini): Likewise.
51108 * commands/default.c (grub_default_init, grub_default_fini):
51110 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51111 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51112 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51113 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51115 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51116 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51118 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51119 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51121 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51123 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51125 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51126 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51127 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51128 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51129 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51130 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51131 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51132 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51133 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51134 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51135 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51136 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51137 * partmap/amiga.c (grub_amiga_partition_map_init)
51138 (grub_amiga_partition_map_fini): Likewise.
51139 * partmap/apple.c (grub_apple_partition_map_init)
51140 (grub_apple_partition_map_fini): Likewise.
51141 * partmap/pc.c (grub_pc_partition_map_init)
51142 (grub_pc_partition_map_fini): Likewise.
51143 * partmap/sun.c (grub_sun_partition_map_init,
51144 grub_sun_partition_map_fini): Likewise.
51145 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51148 * util/grub-emu.c: Include <grub_modules_init.h>.
51149 (main): Don't initialize and de-initialize any modules directly,
51150 use `grub_init_all' and `grub_fini_all' instead.
51152 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51153 `grub_vesafb_mod_init'.
51154 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51156 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51157 `grub_vga_mod_init'. Updated all users.
51158 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51160 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51161 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51164 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51165 Generate a function to initialize the module in utilities.
51166 Updated all callers.
51167 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51168 initialize the module in utilities. Updated all callers.
51170 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51172 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51173 escape sequence and a literal ^L to clear the screen.
51175 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51176 when returning from Open Firmware.
51178 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51180 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51181 (grub_ofconsole_height): Likewise.
51182 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51183 manually insert a '\n'.
51184 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51185 `grub_ofconsole_height'. Return early if these are already set.
51187 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51189 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51190 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51191 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51192 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51193 and `normal/script.c'.
51194 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51195 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51196 (test_mod_SOURCES): New variable.
51197 (test_mod_CFLAGS): Likewise.
51198 (test_mod_LDFLAGS): Likewise.
51199 (pkgdata_MODULES): Add `test.mod'.
51200 (grub_script.tab.c): New rule.
51201 (grub_script.tab.h): Likewise.
51203 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51205 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51206 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51207 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51208 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51209 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51210 (test_mod_SOURCES): New variable.
51211 (test_mod_CFLAGS): Likewise.
51212 (pkgdata_MODULES): Add `test.mod'.
51213 (grub_script.tab.c): New rule.
51214 (grub_script.tab.h): Likewise.
51216 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51218 Add initial scripting support.
51220 * commands/test.c: New file.
51221 * include/grub/script.h: Likewise.
51222 * normal/execute.c: Likewise.
51223 * normal/function.c: Likewise.
51224 * normal/lexer.c: Likewise.
51225 * normal/parser.y: Likewise.
51226 * normal/script.c: Likewise.
51228 * configure.ac: Add `AC_PROG_YACC' test.
51230 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51231 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51232 `normal/function.c' and `normal/script.c'.
51233 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51234 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51235 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51237 (pkgdata_MODULES): Add `test.mod'.
51238 (grub_script.tab.c): New rule.
51239 (grub_script.tab.h): Likewise.
51241 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51243 * include/grub/normal.h (grub_test_init): New prototype.
51244 (grub_test_fini): Likewise.
51246 * normal/command.c: Include <grub/script.h>.
51247 (grub_command_execute): Rewritten.
51249 * util/grub-emu.c (main): Call `grub_test_init' and
51252 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51254 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51256 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51257 there are no pending characters.
51259 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51261 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51262 `grub_strndup' to drop device arguments. Replace unnecessary
51263 `grub_strndup' with `grub_strdup'.
51265 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51267 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51268 `debug' environment variable has been set.
51270 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51272 * Makefile.in (install-local): Use $(DATA).
51273 (uninstall): Likewise.
51274 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51275 (sbin_UTILITIES): ... to here.
51276 (sbin_SCRIPTS): New variable.
51277 (grub_install_SOURCES): New variable.
51278 * util/powerpc/ieee1275/grub-install.in: New file.
51279 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51281 (add_segments): Call `grub_util_get_path'.
51283 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51285 From Timothy Baldwin:
51286 * commands/ls.c (grub_ls_list_files): Close FILE with
51288 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51290 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51292 * include/grub/parser.h: New file.
51294 * kern/parser.c: Likewise.
51296 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51297 (grub_setup_SOURCES): Likewise.
51298 (grub_probefs_SOURCES): Likewise.
51299 (grub_emu_SOURCES): Likewise.
51300 (kernel_img_HEADERS): Add `parser.h'.
51302 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51303 (grub_emu_SOURCES): Add `kern/parser.c'.
51304 (grubof_SOURCES): Likewise.
51306 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51307 (grubof_SOURCES): Add `kern/parser.c'.
51309 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51311 * kern/misc.c (grub_split_cmdline): Removed function.
51313 * kern/rescue.c: Include <grub/parser.h>.
51314 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51315 of `grub_split_cmdline'.
51317 * normal/command.c: Include <grub/parser.h>.
51318 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51319 of `grub_split_cmdline'.
51321 * normal/completion.c: Include <grub/parser.h>.
51322 (cmdline_state): New variable.
51323 (iterate_dir): End the filename with a quote depending on the
51324 command line state.
51325 (get_state): new function.
51326 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51327 split the arguments and determine the current argument. When the
51328 argument string is not quoted, escape all spaces.
51330 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51332 * normal/sparc64/setjmp.S: New file.
51334 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51336 * include/grub/sparc64/libgcc.h: New file.
51337 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51338 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51339 normal/sparc64/setjmp.c.
51341 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51343 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51344 * kern/sparc64/cache.S: New file.
51345 * kern/sparc64/cache.c: Removed.
51346 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51347 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51349 (COMMON_LDFLAGS): Add -melf64_sparc.
51350 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51351 (grubof_SOURCES): Use cache.S instead of cache.c.
51352 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51353 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51354 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51356 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51357 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51358 (linux_mod_CFLAGS): Commented out.
51359 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51360 out because module isn't built.
51361 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51362 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51363 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51364 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51365 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51366 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51367 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51368 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51369 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51370 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51371 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51372 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51373 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51374 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51376 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51378 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51379 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51380 longer, because HFS should not be used on PC.
51382 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51384 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51385 consistently within the loop.
51387 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51389 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51390 directory can not be read.
51392 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51394 * configure.ac (AC_INIT): Increase the version number to 1.91.
51396 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51397 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51398 term/i386/pc/serial.c.
51400 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51402 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51403 file size must be permitted.
51405 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51406 between %ah and %al.
51408 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51410 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51412 Call the hook with a NUL-terminated filename.
51413 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51416 * kern/term.c (cursor_state): New variable.
51417 (grub_term_set_current): Reset the cursor state on a new
51419 (grub_setcursor): Rewritten to use CURSOR_STATE.
51420 (grub_getcursor): New function.
51422 * include/grub/term.h (grub_getcursor): New prototype.
51424 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51425 integers on ARM. Reported by Timothy Baldwin
51426 <T.E.Baldwin99@members.leeds.ac.uk>.
51428 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51430 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51432 (grub_sfs_dir): Likewise.
51434 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51436 Add support for the SFS filesystem.
51438 * fs/sfs.c: New file.
51440 * DISTLIST: Added `fs/sfs.c'.
51442 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51443 (grub_probefs_SOURCES): Likewise.
51444 (grub_emu_SOURCES): Likewise.
51445 (pkgdata_MODULES): Add `sfs.mod'.
51446 (sfs_mod_SOURCES): New variable.
51447 (sfs_mod_CFLAGS): Likewise.
51448 (sfs_mod_LDFLAGS): Likewise.
51450 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51451 (pkgdata_MODULES): Add `sfs.mod'.
51452 (sfs_mod_SOURCES): New variable.
51453 (sfs_mod_CFLAGS): Likewise.
51455 * util/grub-emu.c (main): Call `grub_sfs_init' and
51458 * include/grub/fs.h (grub_sfs_init): New prototype.
51459 (grub_sfs_fini): Likewise.
51461 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51463 Add support for the AFFS filesystem.
51465 * fs/affs.c: New file.
51467 * DISTLIST: Added `fs/affs.c'.
51469 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51470 (grub_probefs_SOURCES): Likewise.
51471 (grub_emu_SOURCES): Likewise.
51472 (pkgdata_MODULES): Add `affs.mod'.
51473 (affs_mod_SOURCES): New variable.
51474 (affs_mod_CFLAGS): Likewise.
51475 (affs_mod_LDFLAGS): Likewise.
51477 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51478 (pkgdata_MODULES): Add `affs.mod'.
51479 (affs_mod_SOURCES): New variable.
51480 (affs_mod_CFLAGS): Likewise.
51482 * util/grub-emu.c (main): Call `grub_affs_init' and
51485 * include/grub/fs.h (grub_affs_init): New prototype.
51486 (grub_affs_fini): Likewise.
51488 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51490 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51492 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51494 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51497 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51500 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51501 (COMMON_LDFLAGS): New variable.
51502 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51503 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51504 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51505 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51506 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51507 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51508 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51509 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51510 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51511 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51512 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51513 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51514 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51515 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51516 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51518 (normal_mod_ASFLAGS): Add `-m32'.
51520 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51521 (grub_host_size_t, grub_host_ssize_t): New types.
51522 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51523 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51524 `GRUB_HOST_SIZEOF_VOID_P'.
51526 * include/grub/kernel.h (struct grub_module_header): Type of
51527 member offset changed to `grub_host_off_t'. Type of member size
51528 changed to `grub_host_size_t'.
51529 (struct grub_module_info): Type of member offset changed to
51530 `grub_host_off_t'. Type of member size changed to
51531 `grub_host_size_t'.
51533 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51535 Make GRUB's kernel compliant to Multiboot Specification.
51537 * kern/i386/pc/startup.S (multiboot_header): New label.
51538 (multiboot_entry): Likewise.
51539 (multiboot_trampoline): Likewise.
51541 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51542 Increased to 0x4A0.
51544 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51545 put parentheses after a question mark.
51546 [!GRUB_UTIL] (my_mod): New variable.
51548 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51550 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51552 Adds support for the XFS filesystem. Btrees are not supported
51555 * fs/xfs.c: New file.
51557 * DISTLIST: Added `fs/xfs.c'.
51559 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51560 (grub_probefs_SOURCES): Likewise.
51561 (grub_emu_SOURCES): Likewise.
51562 (pkgdata_MODULES): Add `xfs.mod'.
51563 (xfs_mod_SOURCES): New variable.
51564 (xfs_mod_CFLAGS): Likewise.
51566 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51567 (pkgdata_MODULES): Add `xfs.mod'.
51568 (xfs_mod_SOURCES): New variable.
51569 (xfs_mod_CFLAGS): Likewise.
51571 * util/grub-emu.c (main): Call `grub_xfs_init' and
51574 * include/grub/fs.h (grub_xfs_init): New prototype.
51575 (grub_xfs_fini): Likewise.
51578 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51580 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51581 color modes, allow greater than 16 colors to be configured as
51584 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51586 * normal/completion.c (complete_arguments): Add the qualifier
51587 const into OPTIONS.
51589 From Omniflux <omniflux+lists@omniflux.com>:
51590 * include/grub/terminfo.h: New file.
51591 * include/grub/tparm.h: Likewise.
51592 * include/grub/i386/pc/serial.h: Likewise.
51593 * term/terminfo.c: Likewise.
51594 * term/tparm.c: Likewise.
51595 * term/i386/pc/serial.c: Likewise.
51596 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51598 (terminfo_mod_SOURCES): New variable.
51599 (terminfo_mod_CFLAGS): Likewise.
51600 (serial_mod_SOURCES): Likewise.
51601 (serial_mod_CFLAGS): Likewise.
51603 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51605 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51606 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51607 and kern/powerpc/ieee1275/cmain.c, respectively.
51609 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51610 * kern/powerpc/ieee1275/crt0.S: ... here.
51612 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51613 * kern/powerpc/ieee1275/cmain.c: ... here.
51615 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51616 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51617 instead of boot/powerpc/ieee1275/crt0.S and
51618 boot/powerpc/ieee1275/cmain.c, respectively.
51620 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51621 sectors. It was not used anyway.
51623 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51625 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51626 `unused parameter' warning.
51628 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51630 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51632 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51635 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51637 * include/grub/normal.h (enum grub_completion_type): Added
51638 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51640 * normal/cmdline.c (print_completion): Handle
51641 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51642 * normal/menu_entry.c (store_completion): Likewise.
51644 * normal/completion.c (complete_arguments): New function.
51645 (grub_normal_do_completion): Call `complete_arguments' when the
51646 current words start with a dash.
51648 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51650 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51651 `gzio.mod' instead of `io.mod').
51653 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51655 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51656 (DISTDIRS): Added io and video.
51657 Rewrite the search routine to make an output consistently.
51659 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51660 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51661 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51662 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51663 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51664 util/powerpc/ieee1275/misc.c.
51666 * include/grub/gzio.h: New file.
51667 * io/gzio.c: Likewise.
51669 * kern/file.c (grub_file_close): Call grub_device_close only if
51670 FILE->DEVICE is not NULL.
51672 * include/grub/mm.h [!NULL] (NULL): New macro.
51674 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51676 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51677 (pkgdata_MODULES): Added gzio.mod.
51678 (gzio_mod_SOURCES): New variable.
51679 (gzio_mod_CFLAGS): Likewise.
51681 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51682 (pkgdata_MODULES): Added gzio.mod.
51683 (gzio_mod_SOURCES): New variable.
51684 (gzio_mod_CFLAGS): Likewise.
51686 * commands/cat.c: Include grub/gzio.h.
51687 (grub_cmd_cat): Use grub_gzfile_open instead of
51690 * commands/cmp.c: Include grub/gzio.h.
51691 (grub_cmd_cmp): Use grub_gzfile_open instead of
51694 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51695 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51697 (grub_rescue_cmd_module): Likewise.
51699 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51701 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51702 kern/sparc64/ieee1275/init.c because it contains _start.
51703 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51705 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51707 * configure.ac: Add support for sparc64 host with ieee1275
51709 * configure: Generated from configure.ac.
51710 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51712 (grub_ofdisk_read): Likewise.
51713 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51714 pointers as (void *) to remove a warning.
51715 (grub_ofdisk_close): Likewise.
51716 (grub_ofdisk_read): Likewise.
51717 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51718 returns, so make it return void to remove a warning.
51719 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51720 Corresponding prototype change.
51721 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51722 values, and cast the pointers as (void *) to remove a warning.
51723 (grub_mm_dump): Likewise.
51724 * conf/sparc64-ieee1275.mk: New file.
51725 * conf/sparc64-ieee1275.rmk: Likewise.
51726 * include/grub/sparc64/setjmp.h: Likewise.
51727 * include/grub/sparc64/types.h: Likewise.
51728 * include/grub/sparc64/ieee1275/console.h: Likewise.
51729 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51730 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51731 * include/grub/sparc64/ieee1275/time.h: Likewise.
51732 * kern/sparc64/cache.c: Likewise.
51733 * kern/sparc64/dl.c: Likewise.
51734 * kern/sparc64/ieee1275/init.c: Likewise.
51735 * kern/sparc64/ieee1275/openfw.c: Likewise.
51737 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51739 * util/console.c (grub_ncurses_putchar): If C is greater than
51740 0x7f, set C to a question mark.
51741 (grub_ncurses_getcharwidth): New function.
51742 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51745 * normal/menu.c (print_entry): Made aware of Unicode. First,
51746 convert TITLE to UCS-4, and predict the cursor position by
51749 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51751 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51753 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51755 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51756 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51759 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51760 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51761 grub_strcpy and grub_strlen. Take it into account that a space
51762 character is inserted as a delimiter.
51764 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51766 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51767 invalid magic in the error.
51769 * commands/search.c: New file.
51771 * util/grub-emu.c (main): Call grub_search_init and
51774 * kern/rescue.c (grub_rescue_print_disks): Removed.
51775 (grub_rescue_print_devices): New function.
51776 (grub_rescue_cmd_ls): Use grub_device_iterate with
51777 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51778 grub_rescue_print_disks.
51780 * kern/partition.c (grub_partition_iterate): Return the result of
51781 PARTMAP->ITERATE instead of GRUB_ERRNO.
51783 * kern/device.c: Include grub/partition.h.
51784 (grub_device_iterate): New function.
51786 * include/grub/partition.h (grub_partition_iterate): Return int
51787 instead of grub_err_t.
51789 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51791 [GRUB_UTIL] (grub_search_fini): Likewise.
51793 * include/grub/device.h (grub_device_iterate): New prototype.
51795 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51797 (pkgdata_MODULES): Added search.mod.
51798 (search_mod_SOURCES): New variable.
51799 (search_mod_CFLAGS): Likewise.
51801 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51802 (pkgdata_MODULES): Added search.mod.
51803 (search_mod_SOURCES): New variable.
51804 (search_mod_CFLAGS): Likewise.
51806 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51807 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51808 All callers changed.
51810 * DISTLIST: Added commands/search.c.
51812 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51814 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51816 (grub_getcharwidth): New function.
51818 * kern/misc.c (grub_utf8_to_ucs4): New function.
51820 * include/grub/term.h (struct grub_term): Added a new member
51822 (grub_getcharwidth): New prototype.
51824 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51826 * term/i386/pc/console.c (map_char): New function. Segregated from
51827 grub_console_putchar.
51828 (grub_console_putchar): Use map_char.
51829 (grub_console_getcharwidth): New function.
51830 (grub_console_term): Specified grub_console_getcharwidth as
51833 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51834 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51836 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51838 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51839 on grub_strtoul completely.
51840 (write_char): Declare local variables in the beginning of the
51842 (grub_vesafb_getcharwidth): New function.
51843 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51846 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51848 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51849 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51850 commands/i386/pc/vbetest.c.
51852 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51853 call grub_vbe_get_controller_info again, because the returned
51854 information is volatile.
51855 (grub_vbe_set_video_mode): Mostly rewritten.
51856 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51857 grub_vbe_status_t correctly.
51858 (grub_vbe_get_video_mode_info): Likewise.
51859 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51860 several if statements.
51862 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51863 * commands/i386/pc/vbeinfo.c: ... this.
51865 * commands/i386/pc/vbe_test.c: Renamed to ...
51866 * commands/i386/pc/vbetest.c: ... this.
51868 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51870 (grub_cmd_vbeinfo): ... this. Save video modes before
51871 iterating. Skip a video mode, if it is not available, not enough
51872 information is given or it is monochrome. Show the memory
51873 model. Leave the interpretation of MODEVAR to grub_strtoul
51875 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51876 (GRUB_MOD_FINI): Likewise.
51878 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51879 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51880 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51881 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51882 grub_strtoul completely.
51883 (real2pm): Removed.
51884 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51885 (GRUB_MOD_FINI): Likewise.
51887 * normal/misc.c: Include grub/mm.h.
51889 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51890 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51891 (vbe_list_modes_mod_SOURCES): Removed.
51892 (vbe_list_modes_mod_CFLAGS): Likewise.
51893 (vbe_test_mod_SOURCES): Likewise.
51894 (vbe_test_mod_CFLAGS): Likewise.
51895 (vbeinfo_mod_SOURCES): New variable.
51896 (vbeinfo_mod_CFLAGS): Likewise.
51897 (vbetest_mod_SOURCES): Likewise.
51898 (vbetest_mod_CFLAGS): Likewise.
51900 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51902 * normal/misc.c: New file.
51904 * DISTLIST: Added normal/misc.c.
51906 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51907 DISK to HOOK. Call HOOK with DISK.
51908 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51909 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51910 * partmap/sun.c (sun_partition_map_iterate): Likewise.
51912 * normal/menu_entry.c (struct screen): Added a new member
51913 "completion_shown".
51914 (completion_buffer): New global variable.
51915 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
51916 (store_completion): New function.
51917 (complete): Likewise.
51918 (clear_completions): Likewise.
51919 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
51920 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
51921 a tab, call complete.
51923 * normal/completion.c (disk_dev): Removed.
51924 (print_simple_completion): Likewise.
51925 (print_partition_completion): Likewise.
51926 (print_func): New global variable.
51927 (add_completion): Do not take the arguments WHAT or PRINT any
51928 longer. Added a new argument TYPE. Instead of printing directly,
51929 call PRINT_FUNC if not NULL.
51930 All callers changed.
51931 (complete_device): Use a local variable DEV instead of
51932 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
51933 (grub_normal_do_completion): Take a new argument HOOK. Do not
51934 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
51935 empty string, return NULL instead.
51936 All callers changed.
51938 * normal/cmdline.c (print_completion): New function.
51940 * kern/partition.c (grub_partition_iterate): Add an argument DISK
51942 All callers changed.
51944 * kern/disk.c (grub_print_partinfo): Removed.
51946 * include/grub/partition.h (struct grub_partition_map): Add a new
51947 argument DISK into HOOK of ITERATE.
51948 (grub_partition_iterate): Add a new argument DISK to HOOK.
51950 * include/grub/normal.h (enum grub_completion_type): New enum.
51951 (grub_completion_type_t): New type.
51952 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
51953 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
51954 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
51955 (GRUB_COMPLETION_TYPE_FILE): Likewise.
51956 (grub_normal_do_completion): Added a new argument HOOK.
51957 (grub_normal_print_device_info): New prototype.
51959 * include/grub/disk.h (grub_print_partinfo): Removed.
51961 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
51962 (normal_mod_SOURCES): Likewise.
51963 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51964 (normal_mod_SOURCES): Likewise.
51966 * commands/ls.c (grub_ls_list_disks): Use
51967 grub_normal_print_device_info instead of grub_print_partinfo. Free
51969 (grub_ls_list_files): Use grub_normal_print_device_info instead of
51970 duplicating the code.
51972 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
51974 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
51975 follow GCS more precisely.
51976 * commands/i386/pc/vbe_test.c: Likewise.
51977 * include/grub/i386/pc/vbe.h: Likewise.
51978 * term/i386/pc/vesafb.c: Likewise.
51979 * video/i386/pc/vbe.c: Likewise.
51981 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
51983 * DISTLIST: Added term/i386/pc/vesafb.c
51984 DISTLIST: Added video/i386/pc/vbe.c
51985 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
51986 DISTLIST: Added commands/i386/pc/vbe_test.c.
51987 * commands/i386/pc/vbe_list_modes.c: New file.
51988 * commands/i386/pc/vbe_test.c: Likewise.
51989 * term/i386/pc/vesafb.c: Likewise.
51990 * video/i386/pc/vbe.c: Likewise.
51991 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
51992 (grub_vbe_probe) Added prototype.
51993 (grub_vbe_set_video_mode) Likewise.
51994 (grub_vbe_get_video_mode) Likewise.
51995 (grub_vbe_get_video_mode_info) Likewise.
51996 (grub_vbe_set_pixel_rgb) Likewise.
51997 (grub_vbe_set_pixel_index) Likewise.
51998 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
51999 (pkgdata_MODULES): Added vesafb.mod.
52000 (pkgdata_MODULES): Added vbe_list_modes.mod.
52001 (pkgdata_MODULES): Added vbe_test.mod.
52002 (vbe_mod_SOURCES): Added.
52003 (vbe_mod_CFLAGS): Likewise.
52004 (vesafb_mod_SOURCES): Likewise.
52005 (vesafb_mod_CFLAGS): Likewise.
52006 (vbe_list_modes_mod_SOURCES): Likewise.
52007 (vbe_list_modes_mod_CFLAGS): Likewise.
52008 (vbe_test_mod_SOURCES): Likewise.
52009 (vbe_test_mod_CFLAGS): Likewise.
52011 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52013 * normal/command.c (grub_command_execute): If INTERACTIVE is
52014 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52015 CMDLINE. Disable the pager if INTERACTIVE is true.
52016 All callers are changed.
52018 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52019 before reading a config file.
52020 * normal/main.c (read_config_file): Even if a command is not
52021 found, register it if it is within an entry.
52023 * util/grub-emu.c: Include sys/types.h and unistd.h.
52024 (options): Added --hold.
52025 (struct arguments): Added a new member "hold".
52026 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52028 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52029 cleared by a debugger, if it is not zero.
52031 * include/grub/normal.h (grub_command_execute): Add an argument
52034 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52036 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52038 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52040 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52041 program with another one, because the old one didn't detect a bug
52042 in gcc-3.4. Always use regparm 2, because the new test is still
52043 not enough for gcc-4.0. Someone must investigate a simple test
52044 case which detects a bug in gcc-4.0.
52046 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52048 * DISTLIST: Added normal/completion.c.
52050 * normal/completion.c: New file.
52052 * term/i386/pc/console.c (grub_console_getwh): New function.
52053 (grub_console_term): Assign grub_console_getwh to getwh.
52055 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52056 function is defined in normal/completion.c as
52057 grub_normal_do_completion.
52058 (grub_cmdline_get): Use grub_normal_do_completion instead of
52061 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52062 returns non-zero, otherwise return 0.
52063 (grub_partition_iterate): First, probe the partition map. Then,
52064 call ITERATE only for this partition map.
52066 * kern/misc.c (grub_strncmp): Rewritten.
52068 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52069 returns non-zero. Otherwise return 0.
52071 * include/grub/partition.h (grub_partition_map_iterate): Return
52072 int instead of void.
52074 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52076 * include/grub/misc.h (grub_strncmp): Change the type of N to
52079 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52082 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52083 unsigned explicitly before comparing it with I.
52085 * kern/main.c (grub_env_write_root): Add the attribute unused into
52088 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52089 normal/completion.c.
52090 (normal_mod_SOURCES): Likewise.
52091 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52092 (normal_mod_SOURCES): Likewise.
52094 * normal/command.c (grub_iterate_commands): If ITERATE returns
52095 non-zero, return one immediately.
52097 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52099 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52100 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52102 (grub_vbe_get_controller_info): New function.
52103 (grub_vbe_get_mode_info): Likewise.
52104 (grub_vbe_set_mode): Likewise.
52105 (grub_vbe_get_mode): Likewise.
52106 (grub_vbe_set_memory_window): Likewise.
52107 (grub_vbe_get_memory_window): Likewise.
52108 (grub_vbe_set_scanline_length): Likewise.
52109 (grub_vbe_get_scanline_length): Likewise.
52110 (grub_vbe_set_display_start): Likewise.
52111 (grub_vbe_get_display_start): Likewise.
52112 (grub_vbe_set_palette_data): Likewise.
52113 * include/grub/i386/pc/vbe.h: New file.
52115 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52117 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52118 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52119 * DISTLIST: Likewise.
52120 * kern/ieee1275/of.c: Moved to ...
52121 * kern/ieee1275/ieee1275.c: ... here.
52123 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52125 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52126 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52127 Pass 0 as `end' parameter to grub_strtoul().
52129 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52131 * include/grub/powerpc/ieee1275/console.h: Do not include
52132 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52134 (grub_console_cur_color): Remove i386-specific prototype.
52135 (grub_console_real_putchar): Likewise.
52136 (grub_console_checkkey): Likewise.
52137 (grub_console_getkey): Likewise.
52138 (grub_console_getxy): Likewise.
52139 (grub_console_gotoxy): Likewise.
52140 (grub_console_cls): Likewise.
52141 (grub_console_setcursor): Likewise.
52142 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52143 Include <grub/machine/console.h>.
52144 * term/ieee1275/ofconsole.c: Likewise.
52146 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52148 * Makefile.in (LIBLZO): New variable.
52150 * configure.ac: Check for LZO version 2.
52152 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52153 lzo/lzo1x.h instead of lzo1x.h.
52155 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52158 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52159 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52161 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52162 copying the data from PARTITION to P.
52164 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52166 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52167 negative, unload the module.
52169 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52170 map is "pc_partition_map" but not "pc".
52171 (usage): Fix the description. The options are --boot-image and
52172 --core-image but not --boot-file or --core-file.
52173 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52174 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52177 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52178 --core-file. Specify INSTALL_DEVICE as an argument.
52180 * util/console.c: Include config.h.
52181 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52182 [HAVE_NCURSES_H]: Include ncurses.h.
52183 [HAVE_CURSES_H]: Include curses.h.
52184 [!A_NORMAL] (A_NORMAL): Defined as zero.
52185 [!A_STANDOUT] (A_STANDOUT): Likewise.
52187 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52189 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52191 * configure.ac: Check for curses libraries and headers.
52193 * Makefile.in (LIBCURSES): New variable.
52195 * genmk.rb (Script::rule): Set the executable bits.
52197 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52198 name of the PC partition map is "pc_partition_map" but not "pc".
52200 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52202 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52203 (modules): Likewise.
52204 (usage): Added descriptions for --modules and --grub-probefs.
52205 Handle --modules and --grub-probefs. Save the arguments in MODULES
52206 and GRUB_PROBEFS, respectively.
52207 Auto-detect a filesystem module against GRUBDIR. If the result is
52208 empty and modules are not specified explicitly, abort the
52209 installation. Add the result to MODULES.
52211 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52212 disk/powerpc/ieee1275/ofdisk.c,
52213 include/grub/powerpc/ieee1275/init.h and
52214 term/powerpc/ieee1275/ofconsole.c.
52215 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52216 term/ieee1275/ofconsole.c.
52218 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52220 * COPYING: Upgraded to the latest version. Only the address of the
52221 FSF office has changed.
52223 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52225 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52226 kern/ieee1275.c with kern/ieee1275/of.c.
52228 * kern/ieee1275.c: Moved to ...
52229 * kern/ieee1275/of.c: ... here.
52231 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52233 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52236 * config.guess: Updated to the latest version from gnulib.
52237 * config.sub: Likewise.
52238 * install.sh: Likewise.
52239 * mkinstalldirs: Likewise.
52241 * include/grub/console.h: Removed. This file is arch-specific. Do
52242 not put this in include/grub.
52244 * include/grub/i386/pc/console.h: Resurrected.
52246 * util/console.c: Include grub/machine/console.h instead of
52248 * util/grub-emu.c: Likewise.
52250 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52252 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52255 From Vincent Pelletier <subdino2004@yahoo.fr>
52256 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52257 Redefined to use grub_getwh.
52258 (grub_term): New member named getwh.
52259 (grub_getwh): New prototype.
52260 * kern/term.c (grub_getwh): New function.
52261 * term/i386/pc/console.c (grub_console_getwh): New function.
52262 (grub_console_term): New member `getwh'.
52263 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52264 (grub_vga_term): New member `getwh'.
52265 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52267 (grub_ofconsole_getw): New function.
52268 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52269 (grub_ofconsole_term): New field named getwh and new initial
52272 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52274 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52275 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52276 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52277 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52278 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52279 of <grub/machine/ieee1275.h>.
52280 * commands/ieee1275/reboot.c: Likewise.
52281 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52282 * kern/ieee1275.c: ... to here. All users updated. Change all
52283 parameter structs to use new type `grub_ieee1275_cell_t'.
52284 * term/powerpc/ieee1275/ofconsole.c: Move ...
52285 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52286 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52287 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52288 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52290 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52291 Remove unused prototypes. All users updated.
52292 * include/grub/powerpc/ieee1275/console.h: Removed.
52293 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52294 `grub_ieee1275_cell_t'.
52295 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52296 Cast comparisons with -1 to the correct type.
52297 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52298 type to match `grub_ieee1275_entry_fn'.
52300 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52302 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52304 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52305 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52307 (grub_probefs_SOURCES): New variable.
52309 * util/i386/pc/grub-probefs.c: New file.
52311 * util/i386/pc/grub-setup.c (main): Call
52312 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52313 grub_hfs_init and grub_jfs_init to initialize the system. Call
52314 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52315 grub_pc_partition_map_fini to finish the system.
52317 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52319 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52321 (grub_multiboot_load_elf32): Likewise.
52322 (grub_multiboot_is_elf64): Likewise.
52323 (grub_multiboot_load_elf64): Likewise.
52324 (grub_multiboot_load_elf): Likewise.
52325 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52326 an ELF32 or ELF64 file.
52327 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52329 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52330 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52331 NULL before calling FS->LABEL.
52332 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52333 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52334 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52335 before calling FS->LABEL.
52337 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52339 * util/i386/pc/grub-install.in (datadir): New variable.
52341 (pkgdatadir): New variable.
52342 (pkglibdir): Removed.
52344 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52346 * DISTLIST: Added util/i386/pc/grub-install.in.
52348 * util/i386/pc/grub-install.in: New file.
52350 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52351 (grub_install_SOURCES): Likewise.
52353 * genmk.rb: Added support for scripts.
52354 (Script): New class.
52355 (scripts): New variable.
52357 * Makefile.in (install-local): Install sbin_SCRIPTS by
52359 (uninstall): Remove sbin_SCRIPTS.
52361 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52362 device, try to get a GRUB device by
52363 grub_util_biosdisk_get_grub_dev.
52366 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52367 description for --device-map.
52369 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52371 Change the semantics of variable hooks. They now return strings
52372 instead of error values.
52374 * util/i386/pc/grub-setup.c: Include grub/env.h.
52375 (setup): Use grub_device_set_root instead of grub_env_set.
52377 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52378 grub_env_get instead of grub_device_set_root and
52379 grub_device_get_root, respectively.
52381 * kern/main.c (grub_env_write_root): New function.
52382 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52383 grub_env_set instead of grub_device_set_root.
52385 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52387 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52388 rather than calling ENV->WRITE_HOOK afterwards.
52389 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52390 passing a pointer of a pointer.
52391 (grub_register_variable_hook): Change the types of "read_hook" and
52392 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52394 Allocate the default empty string on the heap, because this string
52395 may be freed later.
52397 * kern/device.c: Include grub/env.h.
52398 (grub_device_set_root): Removed.
52399 (grub_device_get_root): Likewise.
52400 (grub_device_open): Use grub_env_get instead of
52401 grub_device_get_root.
52403 * include/grub/env.h (grub_env_read_hook_t): New type.
52404 (grub_env_write_hook_t): Likewise.
52405 (grub_env_var): Change the types of "read_hook" and "write_hook"
52406 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52407 (grub_register_variable_hook): Likewise.
52409 * include/grub/device.h (grub_device_set_root): Removed.
52410 (grub_device_set_root): Likewise.
52412 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52413 make sure that DIRNAME terminates with '/', so that
52414 grub_fat_find_dir will fail if PATH is not a directory.
52416 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52418 Use the qualifier auto for print_files and print_files_long.
52419 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52421 Put a newline only if there is no error.
52422 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52425 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52427 * kern/partition.c (grub_partition_probe): Initialize PART to
52428 NULL. Otherwise, when no partition map is registered, this returns
52431 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52433 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52434 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52437 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52439 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52440 information on each device, if it does not have partitions. Print
52441 "Device" instead of "Disk", because this function is not specific
52444 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52445 static to ensure that it is put on the memory rather than a
52448 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52450 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52451 (grub_cat_init): Likewise.
52452 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52453 (options): Likewise.
52454 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52455 (grub_configfile_init): Likewise.
52456 * font/manager.c (GRUB_MOD_INIT): Likewise.
52457 * commands/help.c (GRUB_MOD_INIT): Likewise.
52458 (grub_help_init): Likewise.
52459 * normal/command.c (grub_command_init): Likewise.
52460 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52461 * disk/loopback.c (grub_loop_init): Likewise.
52462 (GRUB_MOD_INIT): Likewise.
52463 * commands/ls.c (grub_ls_init): Likewise.
52464 (GRUB_MOD_INIT): Likewise.
52465 (options): Likewise.
52466 * commands/boot.c (grub_boot_init): Likewise.
52467 (GRUB_MOD_INIT): Likewise.
52468 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52469 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52470 (GRUB_MOD_INIT): Likewise.
52471 * commands/cmp.c (grub_cmp_init): Likewise.
52472 (GRUB_MOD_INIT): Likewise.
52474 * normal/arg.c: Use <> instead of "" to include header files.
52475 (SHORT_ARG_HELP): New macro.
52476 (SHORT_ARG_USAGE): Likewise.
52477 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52478 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52480 (find_short): Check if C is 'h' or 'u' explicitly.
52481 (grub_arg_show_help): Use space characters instead of tabs. Treat
52482 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52483 are shown with --help and --usage only if they are not used for
52484 the command itself.
52485 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52488 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52489 const into "longarg". Change the type of "shortarg" to int.
52491 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52493 * boot/i386/pc/boot.S (boot_drive_check): New label.
52495 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52498 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52499 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52501 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52503 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52504 When turning off Gate A20, skip the check and return immediately,
52505 because this is not fatal usually.
52507 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52509 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52510 be 0x7C00 instead of 0x8000.
52512 * boot/i386/pc/pxeboot.S: Rewritten.
52514 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52516 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52519 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52521 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52522 robustness. This routine now supports a BIOS call and System
52523 Control Port A to modify the gate A20.
52525 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52526 Increased to 0x440.
52528 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52530 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52531 device path and resulting ihandle.
52532 (grub_ofdisk_close): dprintf the ihandle being closed.
52533 (grub_ofdisk_read): dprintf function parameters.
52534 * kern/mm.c (grub_mm_init_region): Likewise.
52535 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52536 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52537 size, and boot arguments.
52538 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52539 before loading into memory.
52540 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52541 before loading into memory.
52543 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52545 * kern/mm.c: Added much documentation.
52546 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52547 8, set to 5 instead of 8.
52549 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52551 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52553 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52554 (grub_mkdevicemap_SOURCES): New variable.
52556 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52557 lib/device.c of GRUB Legacy.
52559 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52561 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52562 instead of PATH is NULL.
52564 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52566 * commands/cmp.c (BUFFER_SIZE): New macro.
52567 (grub_cmd_cmp): Close the right file at the right time. Compare
52568 only data just read. Don't report files of different size as
52569 identical. Dynamically allocate buffers. Move variable
52570 declarations at the beginning of function.
52572 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52574 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52577 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52579 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52580 when backspace is pressed at beginning of line.
52582 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52584 * DISTLIST: Added genfslist.sh.
52586 * normal/main.c (fs_module_list): New variable.
52587 (autoload_fs_module): New function.
52588 (read_fs_list): Likewise.
52589 (grub_normal_execute): Call read_fs_list.
52591 * kern/fs.c (grub_fs_autoload_hook): New variable.
52592 (grub_fs_probe): Added support for auto-loading.
52594 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52595 (grub_fs_module_list_t): New type.
52597 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52598 (grub_fs_autoload_hook): New prototype.
52600 * genfslist.sh: New file.
52602 * genmk.rb: Added a rule to generate a filesystem list.
52604 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52606 * configure.ac: Fix the test for cross-compiling.
52608 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52609 define GRUB_UTIL anymore.
52611 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52612 so this function works on other systems than just big endian.
52613 (load_modules): Likewise.
52614 (add_segments): Likewise.
52616 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52618 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52619 contains `l' modifier, get a long from va_arg().
52621 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52623 * kern/mm.c (grub_free): If the next free block which is being
52624 merged is the first free block, set the first block to the block
52626 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52628 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52630 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52631 `grub_ieee1275_chosen'.
52633 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52635 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52636 (grub_ieee1275_chosen): New variable.
52637 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52639 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52640 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52641 Rename first argument to `phandle' for consistency.
52642 (grub_ieee1275_get_property_length): Likewise.
52643 (grub_ieee1275_next_property): Likewise. Change type of first argument
52644 to grub_ieee1275_phandle_t.
52645 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52646 Move export next to declaration.
52647 (grub_ieee1275_chosen): New variable.
52648 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52649 Correct cosmetic typo.
52650 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52651 `grub_ieee1275_chosen'.
52652 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52653 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52654 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52655 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52656 `grub_ieee1275_chosen'.
52658 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52660 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52662 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52663 /chosen/bootargs as "variable=value" pairs.
52665 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52667 * include/grub/misc.h (grub_dprintf): New macro.
52668 (grub_real_dprintf): New prototype.
52669 (grub_strword): Likewise.
52670 (grub_iswordseparator): Likewise.
52671 * kern/misc.c (grub_real_dprintf): New function.
52672 (grub_strword): Likewise.
52673 (grub_iswordseparator): Likewise.
52675 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52677 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52678 (roundup): Remove macro.
52679 (grub_ieee1275_flags): Make static.
52680 (grub_ieee1275_realmode): Remove.
52681 (grub_ieee1275_test_flag): New function.
52682 (grub_ieee1275_set_flag): Likewise.
52683 (find_options): Rename to `grub_ieee1275_find_options'; update
52684 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52685 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52686 (cmain): New prototype.
52687 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52688 `grub_ieee1275_flags' directly.
52689 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52690 machine/biosdisk.h.
52691 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52692 Don't include grub/machine/init.h.
52693 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52694 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52696 (grub_ieee1275_realmode): Likewise.
52697 (grub_ieee1275_flag): New enum.
52698 (grub_ieee1275_test_flag): New prototype.
52699 (grub_ieee1275_set_flag): New prototype.
52700 * include/grub/powerpc/ieee1275/init.h: Remove file.
52701 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52702 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52703 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52704 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52706 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52707 `grub_ieee1275_test_flag'.
52708 (grub_ieee1275_encode_devname): Likewise.
52710 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52712 * include/grub/powerpc/ieee1275/ieee1275.h
52713 (grub_ieee1275_encode_devname): New prototype.
52714 (grub_ieee1275_get_filename): Likewise.
52715 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52717 (grub_set_prefix): Likewise.
52718 (grub_machine_init): Call grub_set_prefix.
52719 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52720 (grub_parse_type): New enum.
52721 (grub_ieee1275_get_devargs): New function.
52722 (grub_ieee1275_get_devname): Likewise.
52723 (grub_ieee1275_parse_args): Likewise.
52724 (grub_ieee1275_get_filename): Likewise.
52725 (grub_ieee1275_encode_devname): Likewise.
52727 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52729 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52730 `grub_loader_unset'.
52732 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52734 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52735 instead of grub_ieee1275_interpret.
52736 (grub_halt_init): New function.
52737 (grub_halt_fini): Likewise.
52738 (GRUB_MOD_INIT): Correct message grammar.
52739 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52740 instead of grub_ieee1275_interpret.
52741 (grub_reboot_init): New function.
52742 (grub_reboot_fini): Likewise.
52743 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52744 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52745 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52746 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52747 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52749 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52751 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52753 (grub_halt): Likewise.
52754 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52755 (cmain): Remove __attribute__((unused)).
52756 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52757 (grub_heap_len): Likewise.
52758 (grub_machine_fini): New function.
52759 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52760 (grub_halt): Likewise.
52761 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52763 * util/powerpc/ieee1275/misc.c: New file.
52765 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52767 * DISTLIST: New file.
52768 * gendistlist.sh: Likewise.
52770 * Makefile.in (COMMON_DISTFILES): Removed.
52771 (BOOT_DISTFILES): Likewise.
52772 (CONF_DISTFILES): Likewise.
52773 (DISK_DISTFILES): Likewise.
52774 (FS_DISTFILES): Likewise.
52775 (INCLUDE_DISTFILES): Likewise.
52776 (KERN_DISTFILES): Likewise.
52777 (LOADER_DISTFILES): Likewise.
52778 (TERM_DISTFILES): Likewise.
52779 (UTIL_DISTFILES): Likewise.
52780 (DISTFILES): Likewise.
52781 (uninstall): Uninstall files in $(pkgdata_DATA).
52782 (DISTLIST): New target.
52783 (distdir): Use the contents of the file DISTLIST to get a list of
52786 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52788 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52789 descriptor. This is ported from GRUB Legacy.
52791 * gencmdlist.sh: Added an extra semicolon to make it work with
52792 old sed versions. Reported by Robert Bihlmeyer
52793 <robbe@orcus.priv.at>.
52795 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52797 Automatic loading of commands is supported.
52799 * normal/main.c (read_command_list): New function.
52800 (grub_normal_execute): Call read_command_list.
52802 * normal/command.c (grub_register_command): Return zero or CMD.
52803 Allocate CMD->NAME from the heap.
52804 Initialize CMD->MODULE_NAME to zero.
52805 Find the same name as well. If the same command is found and it is
52806 a dummy command, overwrite members. If it is not a dummy command,
52808 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52809 (grub_command_find): If a dummy command is found, load a module
52810 and retry to find a command only once.
52812 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52813 make sure that each command is loaded.
52815 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52817 (struct grub_command): Remove const from the member `name'.
52818 Add a new member `module_name'.
52819 (grub_register_command): Return grub_command_t.
52821 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52822 sure that each command is loaded.
52824 * genmk.rb (PModule::rule): Specify a module name without the
52825 suffix ".mod" to gencmdlist.sh.
52827 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52829 * gencmdlist.sh: New file.
52831 * genmk.rb (PModule::rule): Generate a rule for a command list.
52833 Generate command.lst from $(COMMANDFILES).
52835 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52836 (DATA): Added $(pkgdata_DATA).
52837 (install-local): Install files in $(pkgdata_DATA).
52839 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52841 * term/i386/pc/vga.c (debug_command): Removed.
52842 (GRUB_MOD_INIT): Do not register the command "debug".
52844 From Hollis Blanchard:
52845 * commands/configfile.c: New file.
52846 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52847 commands/configfile.c.
52848 (pkgdata_MODULES): Added configfile.mod.
52849 (configfile_mod_SOURCES): New variable.
52850 (configfile_mod_CFLAGS): Likewise.
52851 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52852 commands/configfile.c.
52853 (pkgdata_MODULES): Added configfile.mod.
52854 (configfile_mod_SOURCES): New variable.
52855 (configfile_mod_CFLAGS): Likewise.
52856 * util/grub-emu.c (main): Call grub_configfile_init and
52857 grub_configfile_fini.
52858 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52860 [GRUB_UTIL] (grub_configfile_fini): Likewise.
52862 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52864 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52867 * commands/help.c (grub_cmd_help): Do not print newlines after
52868 the last command in print_command_help.
52870 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52872 * commands/default.h: New file.
52873 * commands/timeout.h: Likewise.
52874 * normal/context.c: Likewise.
52876 * util/misc.c: Do not include sys/times.h.
52877 Include sys/time.h and grub/machine/time.h.
52878 (grub_get_rtc): Rewritten with gettimeofday.
52880 * util/grub-emu.c (main): Call grub_default_init and
52881 grub_timeout_init before grub_normal_init, and call
52882 grub_timeout_fini and grub_default_fini after grub_main.
52884 * util/console.c (grub_ncurses_checkkey): Return the read
52887 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52890 * normal/main.c (read_config_file): Push MENU. If this fails,
52891 print an error and wait for a user input.
52892 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52893 If a menu is empty or an error occurs, pop MENU.
52894 (grub_normal_execute): Pop and free MENU after grub_menu_run
52897 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52899 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52901 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52903 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52905 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52908 * include/grub/normal.h (struct grub_menu_list): New struct.
52909 (grub_menu_list_t): New type.
52910 (struct grub_context): New struct.
52911 (grub_context_t): New type.
52912 (grub_register_command): Got rid of EXPORT_FUNC.
52913 (grub_unregister_command): Likewise.
52914 (grub_context_get): New prototype.
52915 (grub_context_get_current_menu): Likewise.
52916 (grub_context_push_menu): Likewise.
52917 (grub_context_pop_menu): Likewise.
52918 [GRUB_UTIL] (grub_default_init): Likewise.
52919 [GRUB_UTIL] (grub_default_fini): Likewise.
52920 [GRUB_UTIL] (grub_timeout_init): Likewise.
52921 [GRUB_UTIL] (grub_timeout_fini): Likewise.
52923 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
52924 commands/timeout.c and normal/context.c.
52925 (pkgdata_MODULES): Added default.mod and timeout.mod.
52926 (normal_mod_SOURCES): Added normal/context.c.
52927 (default_mod_SOURCES): New variable.
52928 (default_mod_CFLAGS): Likewise.
52929 (timeout_mod_SOURCES): Likewise.
52930 (timeout_mod_CFLAGS): Likewise.
52931 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
52933 (pkgdata_MODULES): Added default.mod and timeout.mod.
52934 (normal_mod_SOURCES): Added normal/context.c.
52935 (default_mod_SOURCES): New variable.
52936 (default_mod_CFLAGS): Likewise.
52937 (timeout_mod_SOURCES): Likewise.
52938 (timeout_mod_CFLAGS): Likewise.
52940 * Makefile.in (all-local): Added $(MKFILES).
52942 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
52944 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
52945 (grub_emu_SOURCES): Likewise.
52946 (pkgdata_MODULES): Add `sun.mod'.
52947 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52948 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52950 (pkgdata_MODULES): Add `sun.mod'.
52951 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52952 * include/grub/partition.h (grub_sun_partition_map_init): New
52954 (grub_sun_partition_map_fini): Likewise.
52955 * partmap/sun.c: New file.
52956 * util/grub-emu.c (main): Initialize and de-initialize the sun
52957 partitionmap support.
52959 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
52961 This implements an Emacs-like menu entry editor.
52963 * normal/menu_entry.c: New file.
52965 * util/console.c (grub_ncurses_putchar): Translate some Unicode
52966 characters to ASCII.
52967 (saved_char): New variable.
52968 (grub_ncurses_checkkey): Rewritten completely.
52969 (grub_ncurses_getkey): Likewise.
52970 (grub_ncurses_init): Call raw instead of cbreak.
52972 * normal/menu.c (print_entry): Do not put a space.
52973 (init_page): Renamed to ...
52974 (grub_menu_init_page): ... this. All callers changed.
52975 (edit_menu_entry): Removed.
52976 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
52978 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
52980 * kern/misc.c (grub_vprintf): Call grub_refresh.
52982 * normal/menu.c (DISP_LEFT): Renamed to ...
52983 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
52984 * normal/menu.c (DISP_UP): Renamed to ...
52985 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
52986 * normal/menu.c (DISP_RIGHT): Renamed to ...
52987 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
52988 * normal/menu.c (DISP_DOWN): Renamed to ...
52989 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
52990 * normal/menu.c (DISP_HLINE): Renamed to ...
52991 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
52992 * normal/menu.c (DISP_VLINE): Renamed to ...
52993 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
52994 * normal/menu.c (DISP_UL): Renamed to ...
52995 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
52996 * normal/menu.c (DISP_UR): Renamed to ...
52997 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
52998 * normal/menu.c (DISP_LL): Renamed to ...
52999 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53000 * normal/menu.c (DISP_LR): Renamed to ...
53001 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53002 * normal/menu.c (TERM_WIDTH): Renamed to ...
53003 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53004 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53005 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53006 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53007 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53008 * normal/menu.c (TERM_MARGIN): Renamed to ...
53009 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53010 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53011 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53012 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53013 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53014 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53015 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53016 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53017 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53018 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53019 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53020 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53021 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53022 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53023 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53024 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53025 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53026 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53027 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53028 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53029 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53030 All callers changed.
53032 * include/grub/normal.h: New prototype.
53034 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53035 normal/menu_entry.c.
53036 (normal_mod_SOURCES): Likewise.
53037 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53038 (normal_mod_SOURCES): Likewise.
53040 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53042 * include/grub/normal.h (grub_halt_init): New prototype.
53043 (grub_halt_fini): Likewise.
53044 (grub_reboot_init): Likewise.
53045 (grub_reboot_fini): Likewise.
53047 * util/grub-emu.c: Include signal.h.
53048 (main_env): New global variable.
53049 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53051 (grub_machine_fini): New function.
53052 (main): Call grub_halt_init and grub_reboot_init before
53053 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53054 Call setjmp with MAIN_ENV to go back afterwards.
53055 Call grub_machine_fini right before return.
53057 * include/grub/util/misc.h: Include setjmp.h.
53058 (main_env): New prototype.
53060 * include/grub/kernel.h (grub_machine_fini): New prototype.
53061 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53062 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53064 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53065 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53066 * term/i386/pc/console.c (grub_console_fini): Likewise.
53068 * util/i386/pc/misc.c: New file.
53070 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53071 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53072 commands/i386/pc/reboot.c.
53074 2005-02-14 Guillem Jover <guillem@hadrons.org>
53076 * include/grub/dl.h (grub_dl_check_header): New prototype.
53077 (grub_arch_dl_check_header): Change return type to grub_err_t,
53078 remove size parameter and export function. Update all callers.
53079 * kern/dl.c (grub_dl_check_header): New function.
53080 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53081 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53082 are inside the core.
53083 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53084 independent ELF header checks.
53085 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53086 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53087 `grub_dl_check_header' instead of explicit checks. Check for the
53089 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53090 `grub_dl_check_header' instead of explicit checks. Remove arch
53091 specific ELF header checks.
53093 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53096 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53098 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53099 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53101 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53103 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53104 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53105 (part_map_iterate): Clear `grub_errno' and return 0 if
53106 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53107 * partmap/amiga.c (amiga_partition_map_iterate): Return
53108 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53109 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53111 2005-02-01 Guillem Jover <guillem@hadrons.org>
53113 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53116 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53118 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53120 (grub_rescue_cmd_linux): New prototype.
53121 (grub_rescue_cmd_initrd): Likewise.
53122 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53124 (grub_linux_release_mem): Release the memory for the initrd.
53125 (grub_load_linux): Renamed from this...
53126 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53127 Changed `entry' not to be static. Loop over memory regions to
53128 find another one when the default fails.
53129 (grub_rescue_cmd_initrd): New function.
53130 (grub_linux_init): Remove function.
53131 (grub_linux_fini): Likewise.
53132 (GRUB_MOD_INIT): Register `initrd'.
53133 (GRUB_MOD_FINI): Unregister `initrd'.
53134 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53136 (grub_linux_normal_fini): Likewise.
53137 (GRUB_MOD_INIT): Register `initrd'.
53138 (GRUB_MOD_FINI): Unregister `initrd'.
53140 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53142 * commands/help.c: New file.
53143 * normal/arg.c (show_help): Renamed to...
53144 (grub_arg_show_help): ... this.
53145 * commands/i386/pc/halt.c: New file.
53146 * commands/i386/pc/reboot.c: Likewise.
53147 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53148 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53149 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53150 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53154 (pkgdata_MODULES): Add `help.mod'.
53155 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53156 * grub/i386/pc/init.h (grub_reboot): New prototype.
53157 (grub_halt): Likewise.
53158 * include/grub/normal.h (grub_arg_show_help): New prototype.
53159 (grub_help_init): Likewise.
53160 (grub_help_fini): Likewise.
53161 * util/grub-emu.c (main): Initialize and deinitialize the help
53164 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53166 * normal/command.c (grub_command_init): Fixed the description of
53167 the `set' and `unset' commands.
53169 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53171 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53173 * commands/ieee1275/halt.c: New file.
53174 * commands/ieee1275/reboot.c: Likewise.
53175 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53176 `__attribute__ ((unused))'. Some GCS related fixed.
53177 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53178 (grub_suspend_fini): Likewise.
53179 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53181 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53182 (halt_mod_CFLAGS): New variables.
53183 * include/grub/powerpc/ieee1275/ieee1275.h
53184 (grub_ieee1275_interpret): New prototype.
53186 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53188 * include/grub/misc.h (memmove): New prototype.
53189 (memcpy): Likewise.
53191 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53193 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53194 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53196 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53198 * kern/misc.c (grub_strndup): Function rewritten.
53200 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53202 * normal/menu.c (TERM_WIDTH): Macro redefined.
53203 (TERM_TOP_BORDER_Y): Likewise.
53204 (draw_border): Replaced while-loop by a for-loop. Make the number
53205 of lines consistent with the number of lines displayed in
53206 print_entries. Added a margin below the rectangle.
53207 (print_entry): Make the entry fit in the rectangle.
53208 (print_entries): Display the scroll arrows next to the right
53211 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53213 * fs/minix.c (grub_minix_find_file): Reserve more space for
53214 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53215 `grub_strncpy' to copy `path' into it.
53217 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53219 Add the loopback device, a device via which files can be accessed
53222 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53223 (pkgdata_MODULES): Add loopback.mod.
53224 (loopback_mod_SOURCES): New variable.
53225 (loopback_mod_CFLAGS): Likewise.
53226 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53228 (pkgdata_MODULES): Add loopback.mod.
53229 (loopback_mod_SOURCES): New variable.
53230 (loopback_mod_CFLAGS): Likewise.
53231 * disk/loopback.c: new file.
53232 * include/grub/normal.h (grub_loop_init): New prototype.
53233 (grub_loop_fini): New prototype.
53234 * util/grub-emu.c (main): Initialize and de-initialize loopback
53236 * include/grub/disk.h (grub_disk_dev_id): Add
53237 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53239 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53241 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53243 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53244 (suspend_mod_SOURCES): New variable.
53245 (suspend_mod_CFLAGS): Likewise.
53246 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53248 * commands/ieee1275/suspend.c: New file.
53250 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53252 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53253 ((unused))' to `__attribute__ ((used))'.
53254 (GRUB_MOD_FINI): Likewise.
53255 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53256 * genmk.rb (PModule): Assign space to common symbols when linking
53259 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53261 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53262 `unsigned' arguments to `grub_size_t'.
53263 (grub_malloc): Likewise.
53264 (grub_realloc): Likewise.
53265 (grub_memalign): Likewise.
53266 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53267 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53268 * util/misc.c (grub_malloc): Likewise.
53269 (grub_realloc): Likewise.
53270 * kern/mm.c (get_header_from_pointer): Change the casts to
53271 `unsigned' into a cast to `grub_size_t'.
53273 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53274 point to `currnode' when `currnode' is changed.
53276 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53277 Schottelius <nico-linux@schottelius.org>.
53279 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53281 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53282 (note_path): Remove variable.
53283 (GRUB_IEEE1275_NOTE_NAME): New macro.
53284 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53285 (grub_ieee1275_note_hdr): New structure.
53286 (grub_ieee1275_note_desc): Likewise.
53287 (grub_ieee1275_note): Likewise.
53288 (load_note): Remove `dir' argument. All callers updated. Remove
53289 `note_img' and `path'. Do not load a file from `note_path'.
53290 Initialize a struct grub_ieee1275_note and write that to `out'.
53291 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53293 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53295 * util/misc.c (grub_util_read_image): Revert last change. It
53296 called `grub_util_read_at', which seeks from the beginning of the
53299 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53301 * TODO: Add note about endianness in grub-mkimage.
53302 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53304 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53305 (grub_mkimage_SOURCES): New target.
53306 * include/grub/kernel.h (grub_start_addr): Remove variable.
53307 (grub_end_addr): Likewise.
53308 (grub_total_module_size): Likewise.
53309 (grub_kernel_image_size): Likewise.
53310 (GRUB_MODULE_MAGIC): New constant.
53311 (grub_module_info): New structure.
53312 (grub_arch_modules_addr): New prototype.
53313 (grub_get_end_addr): Remove prototype.
53314 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53315 * include/grub/powerpc/ieee1275/kernel.h: New file.
53316 * include/grub/util/misc.h (grub_util_get_fp_size): New
53318 (grub_util_read_at): Likewise.
53319 (grub_util_write_image_at): Likewise.
53320 * kern/main.c (grub_get_end_addr): Remove function.
53321 (grub_load_modules): Call grub_arch_modules_addr instead of using
53322 grub_end_addr. Look for a grub_module_info struct in memory. Use
53323 the grub_module_info fields instead of calling grub_get_end_addr
53324 as loop conditions. Move grub_add_unused_region code here.
53325 (grub_add_unused_region): Remove function.
53326 * kern/i386/pc/init.c: Include grub/cache.h.
53327 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53328 one call to add_mem_region.
53329 (grub_arch_modules_addr): New function.
53330 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53331 (grub_total_module_size): Likewise.
53332 Include grub/machine/kernel.h.
53333 (grub_arch_modules_addr): New function.
53334 * util/grub-emu.c (grub_end_addr): Remove variable.
53335 (grub_total_module_size): Likewise.
53336 (grub_arch_modules_addr): New function.
53337 * util/misc.c: Include unistd.h.
53338 (grub_util_get_fp_size): New function.
53339 (grub_util_read_at): Likewise.
53340 (grub_util_write_image_at): Likewise.
53341 (grub_util_read_image): Call grub_util_read_at.
53342 (grub_util_write_image): Call grub_util_write_image_at.
53343 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53344 additional memory in kernel_img for a struct grub_module_info.
53345 Fill in that grub_module_info.
53346 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53348 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53350 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53352 * include/grub/powerpc/ieee1275/ieee1275.h
53353 (grub_ieee1275_milliseconds): New prototype.
53354 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53356 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53357 grub_ieee1275_milliseconds.
53359 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53361 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53363 (find_options): New function.
53364 (cmain): Call find_options.
53365 * include/grub/powerpc/ieee1275/ieee1275.h
53366 (grub_ieee1275_realmode): New extern variable.
53367 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53368 grub_map if grub_ieee1275_realmode is false.
53370 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53372 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53373 lines are inserted and make it work like readline. Reported by
53374 Vincent Pelletier <subdino2004@yahoo.fr>.
53376 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53378 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53380 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53381 `kern/powerpc/cache.S'.
53383 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53385 * genmk.rb: Handle the `Program' class in the main loop. Written
53386 by Johan Rydberg <jrydberg@gnu.org>.
53387 (Program): New class.
53388 (programs): New variable.
53389 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53390 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53391 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53392 (help_arch): Function removed.
53393 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53394 `powerpc/libgcc.h' and `loader.h'.
53395 (pkgdata_PROGRAMS): New variable.
53396 (sbin_UTILITIES): Variable removed.
53397 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53398 (grubof_SOURCES): Variable re-defined so it only includes the
53399 core functionality.
53400 (grubof_CFLAGS): Remove `-DGRUBOF'.
53401 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53402 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53403 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53404 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53405 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53406 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53407 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53408 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53409 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53410 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53411 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53412 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53413 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53414 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53415 (pc_mod_CFLAGS): New variables.
53416 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53417 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53418 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53419 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53421 * include/grub/i386/pc/init.h (grub_os_area_addr)
53422 (rub_os_area_size): ... to here.
53423 * include/grub/powerpc/ieee1275/ieee1275.h
53424 (grub_ieee1275_entry_fn): Export symbol.
53425 * include/grub/powerpc/ieee1275/init.h: New file.
53426 * include/grub/powerpc/libgcc.h: Likewise.
53427 * include/grub/cache.h: Likewise.
53428 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53429 <hollis@penguinppc.org>.
53430 * kern/dl.c: Include <grub/cache.h>.
53431 (grub_dl_flush_cache): New function.
53432 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53434 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53435 (grub_console_init): Removed prototypes.
53436 (grub_machine_init): Don't initialize the modules anymore.
53437 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53439 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53440 Macro undef removed.
53441 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53442 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53443 relocation `R_PPC_REL32'. Return an error when the relocation is
53445 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53446 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53447 * util/misc.c (grub_arch_sync_caches): Likewise.
53449 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53451 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53452 `symlist.c', add `grubof_symlist.c'.
53453 (symlist.c): Variable removed.
53454 (grubof_HEADERS): Variable added.
53455 (grubof_symlist.c): New target.
53456 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53457 `kernel_img_HEADERS'.
53458 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53459 * kern/powerpc/dl.c: New file.
53460 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53462 (grub_arch_dl_relocate_symbols): Likewise.
53463 (grub_register_exported_symbols): Likewise.
53465 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53467 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53468 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53469 to fail instead. Reported by Vincent Pelletier
53470 <subdino2004@yahoo.fr>.
53472 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53473 it is not allocated. Reported by Vincent Pelletier
53474 <subdino2004@yahoo.fr>.
53476 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53477 output so the output looks better.
53479 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53481 Modulize the partition map support and add support for the amiga
53484 * commands/ls.c: Include <grub/partition.h> instead of
53485 <grub/machine/partition.h>.
53486 * kern/disk.c: Likewise.
53487 * kern/rescue.c: Likewise.
53488 * loader/i386/pc/chainloader.c: Likewise.
53489 * normal/cmdline.c: Likewise.
53490 * kern/powerpc/ieee1275/init.c: Likewise.
53491 (grub_machine_init): Call `grub_pc_partition_map_init',
53492 `grub_amiga_partition_map_init' and
53493 `grub_apple_partition_map_init'.
53494 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53495 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53496 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53497 `partition.h' and `pc_partition.h'.
53498 (grub_setup_SOURCES): Remove
53499 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53500 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53501 (grub_emu_SOURCES): Likewise.
53502 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53503 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53504 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53505 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53506 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53507 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53508 (grubof_SOURCES): Likewise.
53509 * disk/i386/pc/partition.c: File removed.
53510 * disk/powerpc/ieee1275/partition.c: Likewise.
53511 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53512 * include/grub/i386/pc/partition.h: Likewise.
53513 * kern/partition.c: New file.
53514 * partmap/amiga.c: Likewise.
53515 * partmap/apple.c: Likewise.
53516 * partmap/pc.c: Likewise.
53517 * include/grub/partition.h: Likewise..
53518 * include/grub/pc_partition.h: Likewise.
53519 * util/grub-emu.c: Include <grub/partition.h> instead of
53520 <grub/machine/partition.h>.
53521 (main): Call `grub_pc_partition_map_init',
53522 `grub_amiga_partition_map_init' and
53523 `grub_apple_partition_map_init' and deinitialize afterwards.
53524 * util/i386/pc/biosdisk.c: Include `#include
53525 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53526 `<grub/machine/partition.h>'.
53527 * util/i386/pc/grub-setup.c: Likewise.
53528 * util/i386/pc/biosdisk.c: Likewise.
53529 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53530 partition information in case of a PC partition.
53531 * util/i386/pc/grub-setup.c: Include `#include
53532 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53533 `<grub/machine/partition.h>'.
53534 (setup): Only access the PC specific partition information in case
53537 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53539 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53540 (grub_longjmp): Likewise.
53541 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53543 * normal/powerpc/setjmp.S: New file.
53544 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53545 `normal/powerpc/setjmp.S'.
53546 (grubof_CFLAGS): Add `-DGRUBOF'.
53547 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53548 [GRUB_UTIL && !GRUBOF].
53550 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53552 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53553 property named `name'. Correctly handle the error returned by
53554 `grub_ieee1275_finddevice' if a device can not be opened.
53556 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53558 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53559 `actual' for negativity.
53560 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53563 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53565 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53566 (PAGE_OFFSET): New macro.
53567 (CRTC_ADDR_PORT): Likewise.
53568 (CRTC_DATA_PORT): Likewise.
53569 (START_ADDR_HIGH_REGISTER): Likewise.
53570 (START_ADDR_LOW_REGISTER): Likewise.
53571 (GRAPHICS_ADDR_PORT): Likewise.
53572 (GRAPHICS_DATA_PORT): Likewise.
53573 (READ_MAP_REGISTER): Likewise.
53574 (INPUT_STATUS1_REGISTER): Likewise.
53575 (INPUT_STATUS1_VERTR_BIT): Likewise.
53576 (page): New variable.
53577 (wait_vretrace): New function.
53578 (set_read_map): Likewise.
53579 (set_start_address): Likewise.
53580 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53582 (check_vga_mem): Take the page into account.
53583 (write_char): Likewise.
53584 (write_cursor): Likewise.
53585 (scroll_up): Likewise. Copy the page to the page that is not
53586 shown and switch between both pages.
53587 (grub_vga_putchar): Fix off by one error.
53588 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53591 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53593 Add support for iso9660 (including rockridge).
53595 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53596 (iso9660_mod_SOURCES): New variable.
53597 (iso9660_mod_CFLAGS): Likewise.
53598 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53599 * include/grub/fs.h (grub_iso9660_init): New prototype.
53600 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53601 * fs/iso9660.c: New file.
53603 * include/grub/misc.h (grub_strncat): New prototype.
53604 * kern/misc.c (grub_strncat): New function.
53606 * fs/hfs.c (grub_hfs_mount): Translate the error
53607 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53608 * fs/jfs.c (grub_jfs_mount): Likewise.
53609 * fs/ufs.c (grub_ufs_mount): Likewise.
53611 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53613 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53614 which initialized BAT registers.
53615 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53616 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53618 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53619 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53621 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53622 (grub_mapclaim): Likewise.
53623 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53624 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53627 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53629 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53630 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53631 -ffreestanding and -msoft-float.
53633 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53635 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53636 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53637 set in grub_ieee1275_flags.
53639 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53641 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53643 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53644 grub_console_init first.
53645 Change the memory range used for grub_ieee1275_claim and
53646 grub_mm_init_region.
53647 Print an error message if the claim fails.
53648 Include <grub/misc.h>.
53650 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53652 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53653 Call grub_children_iterate for device nodes of type `scsi',
53655 (grub_ofdisk_open): Remove manual device alias resolution.
53656 Fix memory leak when device cannot be opened.
53657 * include/grub/powerpc/ieee1275/ieee1275.h
53658 (grub_children_iterate): New prototype.
53659 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53661 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53662 Return -1 if args.size was -1.
53664 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53666 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53667 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53668 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53669 Open Firmware's memory for it; claim memory from _start to _end.
53670 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53671 (_end): New extern.
53672 (_start): Zero BSS from __bss_start to _end.
53673 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53675 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53677 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53679 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53680 -1 if args.base was -1.
53682 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53684 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53685 escape sequence instead of a literal ^L. Also call
53686 grub_ofconsole_gotoxy.
53688 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53690 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53691 void * arguments to grub_addr_t. All callers updated. Also make
53692 the `result' argument optional.
53693 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53694 All callers updated.
53696 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53698 * commands/ls.c (grub_ls_list_files): Use the string following the
53699 initial ')', if present, as the filesystem path.
53700 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53702 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53704 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53706 Make the source code of the menu interface more readable.
53708 * normal/menu.c: Include grub/mm.h.
53709 (TERM_WIDTH): New macro.
53710 (TERM_HEIGHT): Likewise.
53711 (TERM_INFO_HEIGHT): Likewise.
53712 (TERM_MARGIN): Likewise.
53713 (TERM_SCROLL_WIDTH): Likewise.
53714 (TERM_TOP_BORDER_Y): Likewise.
53715 (TERM_LEFT_BORDER_X): Likewise.
53716 (TERM_BORDER_WIDTH): Likewise.
53717 (TERM_MESSAGE_HEIGHT): Likewise.
53718 (TERM_BORDER_HEIGHT): Likewise.
53719 (TERM_NUM_ENTRIES): Likewise.
53720 (TERM_FIRST_ENTRY_Y): Likewise.
53721 (TERM_ENTRY_WIDTH): Likewise.
53722 (TERM_CURSOR_X): Likewise.
53723 (draw_border): Use macros instead of magic numbers.
53724 (print_entry): Likewise.
53725 (print_entries): Likewise.
53726 (run_menu): Likewise. Also, handle the key 'e'.
53727 (run_menu_entry): Ignore empty command lines.
53728 (print_message): Added a new argument EDIT. If EDIT is true,
53729 print a different message.
53730 (init_page): Likewise.
53731 (edit_menu_entry): New function. Not implemented yet.
53733 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53735 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53736 can be loaded from normal mode.
53738 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53740 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53741 (multiboot_mod_CFLAGS): New variables.
53742 * loader/i386/pc/linux_normal.c: New file.
53743 * loader/i386/pc/multiboot_normal.c: Likewise.
53745 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53746 attribute `unused'.
53748 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53749 `fdiro' to read the mode information from instead of `diro'.
53751 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53752 looking up a symlink.
53754 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53756 * normal/command.c (grub_command_execute): Don't parse the
53757 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53758 flags of the command.
53760 * normal/menu.c (grub_menu_run): Fix typo.
53762 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53764 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53766 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53767 `y + 1' instead of `y - 1'.
53769 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53771 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53773 From Hollis Blanchard <hollis@penguinppc.org>:
53774 * kern/misc.c (memmove): New alias for grub_memmove.
53775 (memcmp): New alias for grub_memcmp.
53776 (memset): New alias for grub_memset.
53777 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53778 Change "int handle" to "grub_ieee1275_phandle_t handle".
53779 * include/grub/powerpc/ieee1275/ieee1275.h
53780 (grub_ieee1275_get_property): Likewise.
53782 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53784 Added normal mode command `chainloader' as module chain.mod, which
53785 depends on normal.mod and _chain.mod.
53787 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53788 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53789 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53791 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53792 but arguments parsing moved to ...
53793 (grub_chainloader_cmd): ... here. New function.
53794 * include/grub/i386/pc/chainloader.h: New file.
53795 * loader/i386/pc/chainloader_normal.c: Likewise.
53797 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53799 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53800 (grub_mkimage_LDFLAGS): Likewise.
53801 (grub_emu_SOURCES): Likewise.
53802 (kernel_img_HEADERS): Added fshelp.h.
53803 * fs/ext2.c: Include <grub/fshelp.h>.
53804 (FILETYPE_REG): New macro.
53805 (FILETYPE_INO_REG): Likewise.
53806 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53808 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53810 (grub_fshelp_node): New struct.
53811 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53813 (grub_ext2_get_file_block): Removed function.
53814 (grub_ext2_read_block): New function.
53815 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53816 This function was written.
53817 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53818 (grub_ext2_find_file): Removed function.
53819 (grub_ext2_read_symlink): New function.
53820 (grub_ext2_iterate_dir): Likewise.
53821 (grub_ext2_open): Rewritten.
53822 (grub_ext2_dir): Rewritten.
53823 * include/grub/fshelp.h: New file.
53824 * fs/fshelp.c: Likewise.
53826 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53828 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53829 (print_message): Add a missing newline.
53830 (run_menu): Added timeout support.
53831 (run_menu_entry): New local function.
53832 (grub_menu_run): Added support for booting.
53834 * kern/loader.c (grub_loader_is_loaded): New function.
53836 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53837 (grub_get_rtc): Exported.
53839 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53840 (grub_get_rtc): Exported.
53842 * include/grub/normal.h (struct grub_command_list): Remove
53843 constant from the member `command'.
53845 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53847 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53849 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53851 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53853 Add support for the JFS filesystem.
53855 * fs/jfs.c: New file.
53856 * include/grub/fs.h (grub_jfs_init): New prototype.
53857 (grub_jfs_fini): New prototype.
53858 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53859 (grub_emu_SOURCES): Likewise.
53860 (pkgdata_MODULES): Add jfs.mod.
53861 (jfs_mod_SOURCES): New variable.
53862 (jfs_mod_CFLAGS): Likewise.
53863 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53864 (grubof_SOURCES): Likewise.
53865 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53867 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53868 endian to the host endian.
53869 (grub_fat_utf16_to_utf8): Move function from there...
53870 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
53871 the endianness of the source string anymore.
53872 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53874 2004-08-24 Marco Gerards <metgerards@student.han.nl>
53876 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53877 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53878 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53879 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
53881 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53882 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53883 for `node_found' and `it_dir'.
53884 (grub_hfs_dir): Add prototype for `dir_hook'.
53886 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53887 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53888 and `indir32' to silence a gcc warning.
53890 * include/grub/fs.h (grub_hfs_init): New prototype.
53891 (grub_hfs_fini): Likewise.
53894 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53896 Each disk device has its own id now. This is useful to make use
53897 of multiple disk devices.
53899 * include/grub/disk.h (grub_disk_dev_id): New enum.
53900 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53901 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53903 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53904 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53906 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53907 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53909 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53910 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53912 * include/grub/disk.h (struct grub_disk_dev): Added a new member
53913 "id" which is used by the cache manager.
53915 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
53918 2004-08-18 Marco Gerards <metgerards@student.han.nl>
53920 * fs/hfs.c: New file.
53921 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
53922 (grub_emu_SOURCES): Likewise.
53923 (pkgdata_MODULES): Add hfs.mod.
53924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
53925 (grubof_SOURCES): Likewise.
53926 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
53928 * include/grub/misc.h (grub_strncasecmp): Add prototype.
53929 * kern/misc.c (grub_strncasecmp): Add function.
53931 2004-08-14 Marco Gerards <metgerards@student.han.nl>
53933 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
53936 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
53937 (grub_ext2_dir): In case the directory entry type is unknown, read
53940 2004-08-02 Peter Bruin <pjbruin@dds.nl>
53942 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
53943 grub_load_linux instead of grub_rescue_cmd_linux as second
53944 argument of grub_rescue_register_command.
53946 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
53948 2004-07-27 Marco Gerards <metgerards@student.han.nl>
53950 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
53952 * commands/boot.c: Remove the check for `GRUB_UTIL'.
53953 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53954 `loader/powerpc/ieee1275/linux.c',
53955 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
53956 * include/grub/powerpc/ieee1275/ieee1275.h
53957 (grub_ieee1275_release): New prototype.
53958 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
53959 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
53960 normal, boot, linux and linux_normal.
53961 * loader/powerpc/ieee1275/linux.c: New file.
53962 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
53964 2004-07-12 Marco Gerards <metgerards@student.han.nl>
53966 * normal/arg.c (grub_arg_parse): Correct error handling after
53967 reallocating the argumentlist (check if `argl' is not null instead
53968 of checking if `args' is not null).
53969 * kern/mm.c (grub_realloc): Return the same pointer when using the
53970 same region, instead of returning the header address.
53972 2004-07-11 Marco Gerards <metgerards@student.han.nl>
53974 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
53975 one block instead of two when looking for the initial partition.
53976 (grub_partition_probe): Initialize the local variable `p' with 0.
53977 Use base 10 for the grub_strtoul call.
53978 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
53979 need for one local variable.
53980 (grub_strtoul): Don't add the new value to `num', instead of that
53983 2004-07-11 Marco Gerards <metgerards@student.han.nl>
53985 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
53986 (pxeboot_img_SOURCES): New variable.
53987 (pxeboot_img_ASFLAGS): Likewise.
53988 (pxeboot_img_LDFLAGS): Likewise.
53989 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
53990 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
53991 <lode_leroy@hotmail.com>.
53993 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53995 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
53996 there was no input.
53998 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54000 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54001 the history buffer logic.
54003 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54005 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54006 (FILETYPE_INO_SYMLINK): New macros.
54007 (grub_ext2_find_file): Check if the node is a directory using the
54008 inode stat information instead of using the filetype in the
54009 dirent. Exclude the first character of an absolute symlink.
54010 (grub_ext2_dir): Mask out the filetype part of the mode member of
54013 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54015 Add support for UFS version 1 and 2. Add support for the minix
54016 filesystem version 1 and 2, both the variants with 14 and 30 long
54019 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54021 (grub_emu_SOURCES): Likewise.
54022 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54023 (ufs_mod_SOURCES): New variable.
54024 (ufs_mod_CFLAGS): Likewise.
54025 (minix_mod_SOURCES): Likewise.
54026 (minix_mod_CFLAGS): Likewise.
54027 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54029 (grubof_SOURCES): Likewise.
54030 * fs/ufs.c: New file.
54031 * fs/minix.c: New file.
54032 * include/grub/fs.h (grub_ufs_init): New prototype.
54033 (grub_ufs_fini): Likewise.
54034 (grub_minix_init): Likewise.
54035 (grub_minix_fini): Likewise.
54036 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54039 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54041 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54042 commands/ls.c, commands/terminal.c, commands/boot.c,
54043 commands/cmp.c and commands/cat.c.
54044 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54046 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54049 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54051 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54052 and grub_, respectively. Because the conversion is trivial and
54053 mechanical, I omit the details here. Please refer to the CVS
54054 if you need more information.
54056 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54058 * include/pupa: Renamed to ...
54059 * include/grub: ... this.
54060 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54061 * util/i386/pc/grub-mkimage.c: ... this.
54062 * util/i386/pc/pupa-setup.c: Renamed to ...
54063 * util/i386/pc/grub-setup.c: ... this.
54064 * util/pupa-emu.c: Renamed to ...
54065 * util/grub-emu.c: ... this.
54067 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54069 Add support for the newworld apple macintosh (PPC). This has been
54070 tested on the powerbook 2000 only. It only adds support for
54071 generic ieee1275 functions, console and disk support. This should
54072 be easy to port to other architectures with support for Open
54075 * configure.ac: Accept the powerpc as host_cpu. In the case of
54076 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54077 specific tests are only executed while building for the i386.
54078 Inverse test for crosscompile.
54079 * genmk.rb (Utility): Allow assembler files.
54080 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54081 * conf/powerpc-ieee1275.rmk: New file.
54082 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54083 * disk/powerpc/ieee1275/partition.c: Likewise.
54084 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54085 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54086 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54087 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54088 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54089 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54090 * include/pupa/powerpc/ieee1275/loader.h
54091 * include/pupa/powerpc/setjmp.h: Likewise.
54092 * include/pupa/powerpc/types.h: Likewise.
54093 * kern/powerpc/ieee1275/init.c: Likewise.
54094 * kern/powerpc/ieee1275/openfw.c: Likewise.
54095 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54097 These files were written by Johan Rydberg
54098 (jrydberg@night.trouble.net) and I only modified them slightly.
54100 * boot/powerpc/ieee1275/cmain.c: New file.
54101 * boot/powerpc/ieee1275/crt0.S: Likewise.
54102 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54103 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54105 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54107 * Makefile.in: Update copyright.
54108 * genmodsrc.sh: Likewise.
54109 * gensymlist.sh: Likewise.
54110 * term/i386/pc/vga.c: Indent correctly.
54112 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54113 bugreporting address.
54114 * util/i386/pc/pupa-setup.c (usage): Likewise,
54115 (main): Call pupa_ext2_init and pupa_ext2_fini.
54117 * fs/fat.c (log2): Renamed to ...
54118 (fat_log2): ... this.
54119 All callers changed.
54120 * kern/misc.c (memcpy): Alias to pupa_memmove.
54121 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54123 * util/console.c (pupa_ncurses_fini): Return 0.
54125 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54126 Move fail label here.
54127 [__GNU__]: Don't warn when using stat.
54128 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54129 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54130 long int. Use strtol instead of strtoul.
54132 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54134 * commands/boot.c: New file.
54135 * commands/cat.c: Likewise.
54136 * commands/cmp.c: Likewise.
54137 * commands/ls.c: Likewise.
54138 * commands/terminal.c: Likewise.
54139 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54140 (pupa_register_command): Changed interface to match the new
54142 (pupa_command_execute): Changed (almost rewritten) so it uses
54143 pupa_split_command. Added support for setting variables using the
54145 (rescue_command): Changed to work with the new argument parser.
54146 (terminal_command): Moved from here to commands/terminal.c.
54147 (set_command): New function.
54148 (unset_command): New function.
54149 (insmod_command): New function.
54150 (rmmod_command): New function.
54151 (lsmod_command): New function.
54152 (pupa_command_init): Don't initialize the command terminal
54153 anymore. Initialize the commands set, unset, insmod, rmmod and
54155 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54156 (kernel_img_HEADERS): Add arg.h and env.h.
54157 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54158 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54159 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54161 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54163 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54164 (boot_mod_SOURCES): New variable.
54165 (terminal_mod_SOURCES): Likewise.
54166 (ls_mod_SOURCES): Likewise.
54167 (cmp_mod_SOURCES): Likewise.
54168 (cat_mod_SOURCES): Likewise.
54170 * normal/arg.c: New file.
54171 * kern/env.c: Likewise.
54172 * include/pupa/arg.h: Likewise.
54173 * include/pupa/env.h: Likewise.
54174 * font/manager.c (font_command): Changed to match argument parsing
54176 (PUPA_MOD_INIT): Likewise.
54177 * hello/hello.c (pupa_cmd_hello): Likewise.
54178 (PUPA_MOD_INIT): Likewise.
54179 * include/pupa/disk.h: Include <pupa/device.h>.
54180 (pupa_print_partinfo): New prototype.
54181 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54182 (pupa_dl_get_prefix): Likewise.
54183 * include/pupa/misc.h: Include <pupa/err.h>.
54184 (pupa_isgraph): New prototype.
54185 (pupa_isdigit): Likewise.
54186 (pupa_split_cmdline): Likewise.
54187 * include/pupa/normal.h: Include <pupa/arg.h>.
54188 (pupa_command): Changed the prototype of the member `func' to
54189 match the argument parsing interface. Added member `options'.
54190 (pupa_register_command): Updated to match function.
54191 (pupa_arg_parse): New prototype.
54192 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54193 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54194 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54195 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54196 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54197 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54198 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54199 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54200 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54201 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54202 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54203 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54204 * kern/disk.c: Include <pupa/file.h>.
54205 (pupa_print_partinfo): New function.
54206 * kern/dl.c: Include <pupa/env.h>.
54207 (pupa_dl_dir): Variable removed.
54208 (pupa_dl_load): Use the environment variable `prefix' instead of
54209 the variable pupa_dl_dir.
54210 (pupa_dl_set_prefix): Function removed.
54211 (pupa_dl_get_prefix): Likewise.
54212 * kern/i386/pc/init.c: Include <pupa/env.h>.
54213 (pupa_machine_init): Use the environment variable `prefix' instead of
54214 using pupa_dl_set_prefix to set the prefix.
54215 * kern/main.c: Include <pupa/env.h>.
54216 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54217 using pupa_dl_get_prefix to get the prefix.
54218 * kern/misc.c: Include <pupa/env.h>.
54219 (pupa_isdigit): New function.
54220 (pupa_isgraph): Likewise.
54221 (pupa_ftoa): Likewise.
54222 (pupa_vsprintf): Added support for printing values of the type
54223 `double'. Make it possible to format variable output when using
54224 formatting like `%1.2%f'.
54225 (pupa_split_cmdline): New function.
54226 * kern/rescue.c: Include <pupa/env.h>.
54227 (next_word): Removed function.
54228 (pupa_rescue_cmd_prefix): Likewise.
54229 (pupa_rescue_cmd_set): New function.
54230 (pupa_rescue_cmd_unset): New function.
54231 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54232 split the command line instead of splitting it here. Added
54233 support for setting variables using the syntax `foo=bar'. Don't
54234 initialize the prefix command anymore. Initialized the set and
54236 * normal/cmdline.c: Include <pupa/env.h>.
54237 (pupa_tab_complete): Added prototypes for print_simple_completion,
54238 print_partition_completion, add_completion, iterate_commands,
54239 iterate_dev, iterate_part and iterate_dir. Moved code to print
54240 partition information from here to kern/disk.c.
54241 (pupa_cmdline_run): Don't check if the function exists anymore.
54242 * normal/main.c: Include <pupa/env.h>.
54243 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54244 instead of using pupa_dl_get_prefix to get the prefix.
54245 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54246 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54248 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54249 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54250 ((unused))' to silence a gcc warning.
54251 (pupa_vga_setcolor): Likewise.
54252 (debug_command): Changed to match argument parsing
54254 * util/pupa-emu.c: Include <pupa/env.h>.
54255 (options): Added 0's for unused fields to silence a gcc warning.
54257 (main): Use the environment variable `prefix' instead of using
54258 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54259 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54262 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54263 * util/misc.c: Include <malloc.h>.
54264 (pupa_malloc): Rewritten so errors are correctly reported.
54265 (pupa_realloc): Likewise.
54266 (pupa_memalign): Likewise.
54267 (pupa_mm_init_region): Declare unused variables with
54268 `__attribute__ ((unused))' to silence a gcc warning.
54269 * normal/i386/setjmp.S: Remove tab at the end of the file to
54270 silence a gcc warning.
54271 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54272 variables with `__attribute__ ((unused))' to silence a gcc
54274 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54275 local variable i unsigned to silence a gcc warning.
54277 * kern/term.c: Include <pupa/misc.h>.
54278 (pupa_more_lines): New variable.
54279 (pupa_more): Likewise.
54280 (pupa_putcode): When the pager is active pause at the end of every
54282 (pupa_set_more): New function.
54283 * include/pupa/term.h (pupa_set_more): New prototype.
54286 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54288 Now this project is GRUB 2 rather than PUPA. The location of
54289 the CVS repository was moved to GRUB's.
54291 * configure.ac: Use bug-grub as the reporting address.
54292 Use GRUB instead of PUPA.
54293 Change the version number to 1.90.
54295 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54297 * genkernsyms.sh: Updated copyright information.
54298 * genmk.rb: Likewise.
54299 * genmodsrc.sh: Likewise.
54300 * gensymlist.sh: Likewise.
54301 * boot/i386/pc/boot.S: Likewise.
54302 * boot/i386/pc/diskboot.S: Likewise.
54303 * disk/i386/pc/biosdisk.c: Likewise.
54304 * disk/i386/pc/partition.c: Likewise.
54305 * font/manager.c: Likewise.
54306 * fs/ext2.c: Likewise.
54307 * fs/fat.c: Likewise.
54308 * include/pupa/boot.h: Likewise.
54309 * include/pupa/device.h: Likewise.
54310 * include/pupa/disk.h: Likewise.
54311 * include/pupa/dl.h: Likewise.
54312 * include/pupa/elf.h: Likewise.
54313 * include/pupa/err.h: Likewise.
54314 * include/pupa/file.h: Likewise.
54315 * include/pupa/font.h: Likewise.
54316 * include/pupa/fs.h: Likewise.
54317 * include/pupa/kernel.h: Likewise.
54318 * include/pupa/loader.h: Likewise.
54319 * include/pupa/misc.h: Likewise.
54320 * include/pupa/mm.h: Likewise.
54321 * include/pupa/net.h: Likewise.
54322 * include/pupa/normal.h: Likewise.
54323 * include/pupa/rescue.h: Likewise.
54324 * include/pupa/setjmp.h: Likewise.
54325 * include/pupa/symbol.h: Likewise.
54326 * include/pupa/term.h: Likewise.
54327 * include/pupa/types.h: Likewise.
54328 * include/pupa/i386/setjmp.h: Likewise.
54329 * include/pupa/i386/types.h: Likewise.
54330 * include/pupa/i386/pc/biosdisk.h: Likewise.
54331 * include/pupa/i386/pc/boot.h: Likewise.
54332 * include/pupa/i386/pc/console.h: Likewise.
54333 * include/pupa/i386/pc/init.h: Likewise.
54334 * include/pupa/i386/pc/kernel.h: Likewise.
54335 * include/pupa/i386/pc/linux.h: Likewise.
54336 * include/pupa/i386/pc/loader.h: Likewise.
54337 * include/pupa/i386/pc/memory.h: Likewise.
54338 * include/pupa/i386/pc/multiboot.h: Likewise.
54339 * include/pupa/i386/pc/partition.h: Likewise.
54340 * include/pupa/i386/pc/time.h: Likewise.
54341 * include/pupa/i386/pc/vga.h: Likewise.
54342 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54343 * include/pupa/util/getroot.h: Likewise.
54344 * include/pupa/util/misc.h: Likewise.
54345 * include/pupa/util/resolve.h: Likewise.
54346 * kern/device.c: Likewise.
54347 * kern/disk.c: Likewise.
54348 * kern/dl.c: Likewise.
54349 * kern/err.c: Likewise.
54350 * kern/file.c: Likewise.
54351 * kern/fs.c: Likewise.
54352 * kern/loader.c: Likewise.
54353 * kern/main.c: Likewise.
54354 * kern/misc.c: Likewise.
54355 * kern/mm.c: Likewise.
54356 * kern/rescue.c: Likewise.
54357 * kern/term.c: Likewise.
54358 * kern/i386/dl.c: Likewise.
54359 * kern/i386/pc/init.c: Likewise.
54360 * kern/i386/pc/lzo1x.S: Likewise.
54361 * kern/i386/pc/startup.S: Likewise.
54362 * loader/i386/pc/chainloader.c: Likewise.
54363 * loader/i386/pc/linux.c: Likewise.
54364 * loader/i386/pc/multiboot.c: Likewise.
54365 * normal/cmdline.c: Likewise.
54366 * normal/command.c: Likewise.
54367 * normal/main.c: Likewise.
54368 * normal/menu.c: Likewise.
54369 * normal/i386/setjmp.S: Likewise.
54370 * term/i386/pc/console.c: Likewise.
54371 * term/i386/pc/vga.c: Likewise.
54372 * util/console.c: Likewise.
54373 * util/genmoddep.c: Likewise.
54374 * util/misc.c: Likewise.
54375 * util/pupa-emu.c: Likewise.
54376 * util/resolve.c: Likewise.
54377 * util/unifont2pff.rb: Likewise.
54378 * util/i386/pc/biosdisk.c: Likewise.
54379 * util/i386/pc/getroot.c: Likewise.
54380 * util/i386/pc/pupa-mkimage.c: Likewise.
54381 * util/i386/pc/pupa-setup.c: Likewise.
54383 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54385 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54386 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54387 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54388 reading and reset it after reading.
54389 (pupa_ext2_close): Return PUPA_ERR_NONE.
54391 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54393 (struct linux_kernel_header): Add kernel_version and
54395 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54396 pupa_file_read succeeds.
54397 (pupa_rescue_cmd_initrd): Implement.
54399 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54401 * fs/ext2.c (pupa_ext2_label): New function.
54402 (pupa_ext2_fs): Added label.
54403 * fs/fat.c (pupa_fat_label): New function.
54404 (pupa_fat_fs): Added label.
54405 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54407 * kern/misc.c (pupa_strndup): New function.
54408 * include/pupa/misc.h (pupa_strndup): New prototype.
54410 * include/pupa/normal.h: Include <pupa/err.h>.
54411 (pupa_set_history): New prototype.
54412 (pupa_iterate_commands): New prototype.
54413 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54414 <pupa/disk.h>, <pupa/file.h>.
54415 (hist_size): New variable.
54416 (hist_lines): Likewise.
54417 (hist_end): Likewise.
54418 (hist_used): Likewise.
54419 (pupa_set_history): New function.
54420 (pupa_history_get): Likewise.
54421 (pupa_history_add): Likewise.
54422 (pupa_history_replace): Likewise.
54423 (pupa_tab_complete): Likewise.
54424 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54425 completion shows partitionnames while completing partitions, this
54426 feature was suggested by Jeff Bailey.
54427 * normal/command.c (pupa_iterate_commands): New function.
54428 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54429 (pupa_normal_init): Initialize history buffer.
54430 (PUPA_MOD_INIT): Likewise.
54431 (pupa_normal_fini): Free the history buffer.
54432 (PUPA_MOD_FINI): Likewise.
54434 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54437 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54438 * configure.ac [i386]: Check for regparam bug.
54439 (NESTED_FUNC_ATTR) [! i386]: Defined.
54441 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54443 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54444 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54445 (pupa_emu_SOURCES): New variable.
54446 (pupa_emu_LDFLAGS): Likewise.
54447 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54448 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54449 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54450 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54451 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54452 (pupa_jmp_buf): New typedef.
54453 (pupa_setjmp) [PUPA_UTIL]: New macro.
54454 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54455 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54456 (pupa_refresh): New prototype.
54457 * include/pupa/util/getroot.h: New file.
54458 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54460 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54461 (pupa_rescue_cmd_cat): Likewise.
54462 (pupa_rescue_cmd_ls): Likewise.
54463 (pupa_rescue_cmd_testload): Likewise.
54464 (pupa_rescue_cmd_lsmod): Likewise.
54465 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54466 * normal/menu.c (run_menu): Likewise.
54467 * kern/term.c (pupa_cls): Likewise.
54468 (pupa_refresh): New function.
54469 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54470 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54471 * util/console.c: New file.
54473 * util/i386/pc/getroot.c: New file.
54474 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54475 (pupa_putchar): New function.
54476 (pupa_refresh): Likewise.
54477 (xgetcwd): Function moved to ...
54478 (strip_extra_slashes): Likewise.
54479 (get_prefix): Likewise.
54480 * util/i386/pc/getroot.c: ... here.
54481 (find_root_device): Function moved and renamed to...
54482 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54483 Changed all callers.
54484 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54486 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54487 Changed all callers.
54488 * util/misc.c (pupa_memalign): New function.
54489 (pupa_mm_init_region): Likewise.
54490 (pupa_register_exported_symbols): Likewise.
54491 (pupa_putchar): Function removed.
54492 * util/pupa-emu.c: New file.
54494 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54496 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54497 (_multiboot_mod_SOURCES): New variable.
54498 (_multiboot_mod_CFLAGS): Likewise.
54499 * loader/i386/pc/multiboot.c: New file.
54500 * include/pupa/i386/pc/multiboot.h: Likewise.
54501 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54502 (pupa_multiboot_real_boot): New function.
54503 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54504 (pupa_multiboot_real_boot): New prototype.
54505 (pupa_rescue_cmd_multiboot): Likewise
54506 (pupa_rescue_cmd_module): Likewise.
54508 * kern/loader.c (pupa_loader_set): Continue when
54509 pupa_loader_unload_func() fails.
54510 (pupa_loader_unset): New function.
54511 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54513 * kern/misc.c (pupa_stpcpy): New function.
54514 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54516 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54518 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54519 for available extensions.
54521 * include/pupa/i386/pc/time.h: New file.
54522 * kern/disk.c: Include <pupa/machine/time.h>.
54523 (PUPA_CACHE_TIMEOUT): New macro.
54524 (pupa_last_time): New variable.
54525 (pupa_disk_open): Flush the cache when there was a timeout.
54526 (pupa_disk_close): Reset the timer.
54527 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54529 * util/misc.c: Include <sys/times.h>
54530 (pupa_get_rtc): New function.
54532 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54534 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54536 (pupa_ext2_get_file_block): Use blocks member.
54538 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54539 first block. Return -1 instead of pupa_errno on error.
54541 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54543 * README: In the pupa-mkimage example use _chain instead of chain
54544 and ext2 instead of fat.
54545 * TODO: Replace ext2fs with jfs as an example. Add an item for
54546 adding journal playback for ext2fs.
54547 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54548 (pkgdata_MODULES): Added ext2.mod.
54549 (ext2_mod_SOURCES): New variable.
54550 (ext2_mod_CFLAGS): Likewise.
54551 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54552 * include/pupa/misc.h (pupa_strncpy): New prototype.
54553 (pupa_strcat): Likewise.
54554 (pupa_strncmp): Likewise.
54555 * kern/misc.c (pupa_strcat): Enable function.
54556 (pupa_strncpy): New function.
54557 (pupa_strncmp): Likewise.
54558 * fs/ext2.c: New file.
54560 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54561 when the read failed before retrying.
54562 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54563 (_FILE_OFFSET_BITS): Likewise.
54564 * configure.ac: Added AC_SYS_LARGEFILE.
54566 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54568 * genmk.rb (PModule#rule): Make sure to get only symbol names
54569 from the output of nm.
54570 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54572 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54574 I forgot to check in these changes for a long time. This adds
54575 incomplete support for VGA console, and this is still very
54576 buggy. Also, a lot of consideration is required for I18N,
54577 UNICODE, and VGA font issues. Therefore, assume that this is
54578 such that "better than nothing".
54580 * font/manager.c: New file.
54581 * include/pupa/font.h: Likewise.
54582 * include/pupa/i386/pc/vga.h: Likewise.
54583 * term/i386/pc/vga.c: Likewise.
54584 * util/unifont2pff.rb: Likewise.
54586 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54587 (pkgdata_MODULES): Added vga.mod and font.mod.
54588 (vga_mod_SOURCES): New variables.
54589 (vga_mod_CFLAGS): Likewise.
54590 (font_mod_SOURCES): Likewise.
54591 (font_mod_CFLAGS): Likewise.
54593 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54595 * include/pupa/term.h: Include pupa/err.h.
54596 (struct pupa_term): Added init and fini.
54597 Changed the argument of putchar to pupa_uint32_t.
54599 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54600 (pupa_console_real_putchar): New prototype.
54601 (pupa_console_putchar): Removed.
54602 (pupa_console_checkkey): Exported.
54603 (pupa_console_getkey): Likewise.
54605 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54608 * kern/term.c (pupa_term_set_current): Rewritten.
54609 (pupa_putchar): Likewise.
54610 (pupa_putcode): New function.
54612 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54613 (pupa_console_real_putchar): ... this.
54614 (pupa_vga_set_mode): New function.
54615 (pupa_vga_get_font): Likewise.
54617 * normal/command.c: Include pupa/term.h.
54618 (terminal_command): New function.
54619 (pupa_command_init): Register the command "terminal".
54621 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54622 (DISP_UP): Likewise.
54623 (DISP_RIGHT): Likewise.
54624 (DISP_DOWN): Likewise.
54625 (DISP_HLINE): Likewise.
54626 (DISP_VLINE): Likewise.
54627 (DISP_UL): Likewise.
54628 (DISP_UR): Likewise.
54629 (DISP_LL): Likewise.
54630 (DISP_LR): Likewise.
54632 * term/i386/pc/console.c (pupa_console_putchar): New function.
54634 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54636 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54637 FIX. Reverse the path_list.
54639 * include/pupa/normal.h: Export pupa_register_command and
54640 pupa_unregister_command.
54642 * hello/hello.c (pupa_cmd_hello): New module.
54643 * conf/i386-pc.rmk: Added hello.mod.
54645 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54647 * kern/i386/pc/lzo1x.S: New file.
54649 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54650 (compress_kernel): New variable.
54651 (generate_image): Heavily modified to support compressing a
54652 large part of the core image.
54654 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54656 (pupa_util_load_image): New function.
54658 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54659 (pupa_compressed_size): New variable.
54660 (codestart): Enable Gate A20 here.
54661 Decompress the compressed part of the core image.
54662 Rearrange the code to put functions and variables which are
54663 required for initialization in the non-compressed part.
54666 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54669 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54671 * include/pupa/i386/pc/kernel.h
54672 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54673 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54674 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54675 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54676 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54678 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54680 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54681 (Utility#rule): Likewise.
54683 * configure.ac: Check if LZO is available.
54685 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54687 * include/pupa/normal.h: New file.
54688 * include/pupa/setjmp.h: Likewise.
54689 * include/pupa/i386/setjmp.h: Likewise.
54690 * normal/cmdline.c: Likewise.
54691 * normal/command.c: Likewise.
54692 * normal/main.c: Likewise.
54693 * normal/menu.c: Likewise.
54694 * normal/i386/setjmp.S: Likewise.
54696 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54697 (pupa_rescue_cmd_initrd): Likewise.
54699 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54702 * kern/i386/pc/startup.S (translation_table): New variable.
54703 (translate_keycode): New function.
54704 (pupa_console_getkey): Call translate_keycode.
54706 * kern/rescue.c (attempt_normal_mode): New function.
54707 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54708 it failed, print a message.
54710 * kern/mm.c (pupa_real_malloc): Print more information when a
54711 free magic is broken.
54712 (pupa_free): If the first free header is not free actually, set
54715 * kern/main.c (pupa_load_normal_mode): Just load the module
54717 (pupa_main): Don't print the message
54718 "Entering into rescue mode..." here.
54720 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54722 (pupa_rescue_cmd_initrd): Likewise.
54723 (pupa_rescue_cmd_initrd): Likewise.
54725 * include/pupa/symbol.h (FUNCTION): Specify the type.
54726 (VARIABLE): Likewise.
54728 * include/pupa/err.h (pupa_err_t): Added
54729 PUPA_ERR_UNKNOWN_COMMAND.
54731 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54732 (pupa_dl_get_prefix): Likewise.
54734 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54735 Added _chain.mod and _linux.mod instead of chain.mod and
54737 (chain_mod_SOURCES): Renamed to ...
54738 (_chain_mod_SOURCES): ... this.
54739 (chain_mod_CFLAGS): Renamed to ...
54740 (_chain_mod_CFLAGS): ... this.
54741 (linux_mod_SOURCES): Renamed to ...
54742 (_linux_mod_SOURCES): ... this.
54743 (linux_mod_CFLAGS): Renamed to ...
54744 (_linux_mod_CFLAGS): ... this.
54745 (normal_mod_SOURCES): New variable.
54746 (normal_mod_CFLAGS): Likewise.
54747 (normal_mod_ASFLAGS): Likewise.
54749 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54751 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54754 * kern/dl.c (pupa_dl_ref): Refer depending modules
54756 (pupa_dl_unref): Unrefer depending modules recursively.
54757 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54758 a module is unloaded before one depending on that module is
54760 (pupa_dl_unload): Unload depending modules explicitly,
54763 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54765 * include/pupa/i386/pc/linux.h: New file.
54766 * loader/i386/pc/linux.c: Likewise.
54768 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54770 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54771 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54772 of PUPA_CHAINLOADER_BOOT_SECTOR.
54774 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54775 (pupa_linux_prot_size): New variable.
54776 (pupa_linux_tmp_addr): Likewise.
54777 (pupa_linux_real_addr): Likewise.
54778 (pupa_linux_boot_zimage): New function.
54779 (pupa_linux_boot_bzimage): Likewise.
54781 * kern/i386/pc/init.c (struct mem_region): New structure.
54782 (MAX_REGIONS): New macro.
54783 (mem_regions): New variable.
54784 (num_regions): Likewise.
54785 (pupa_os_area_addr): Likewise.
54786 (pupa_os_area_size): Likewise.
54787 (pupa_lower_mem): Likewise.
54788 (pupa_upper_mem): Likewise.
54789 (add_mem_region): New function.
54790 (compact_mem_regions): Likewise.
54791 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54792 the size of the conventional memory and that of so-called upper
54793 memory (before the first memory hole).
54794 Instead of adding each found region to free memory, use
54795 add_mem_region and add them after removing overlaps.
54796 Also, add only 1/4 of the upper memory to free memory. The rest
54797 is used for loading OS images. Maybe this is ad hoc, but this
54798 makes it much easier to relocate OS images when booting.
54800 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54801 (pupa_enter_rescue_mode): Don't register initrd and module.
54803 * kern/mm.c: Include pupa/dl.h.
54805 * kern/main.c: Include pupa/file.h and pupa/device.h.
54807 * kern/loader.c (pupa_loader_load_module_func): Removed.
54808 (pupa_loader_load_module): Likewise.
54810 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54813 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54814 (pupa_linux_tmp_addr): Likewise.
54815 (pupa_linux_real_addr): Likewise.
54816 (pupa_linux_boot_zimage): Likewise.
54817 (pupa_linux_boot_bzimage): Likewise.
54819 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54820 (pupa_upper_mem): Likewise.
54821 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54822 module is too dangerous.
54824 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54825 (pupa_os_area_size): Likewise.
54826 (pupa_loader_set): Remove the first argument. Loader doesn't
54827 manage modules or initrd any longer.
54828 (pupa_loader_load_module): Removed.
54830 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54831 (linux_mod_SOURCES): New variable.
54832 (linux_mod_CFLAGS): Likewise.
54834 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54836 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54837 the length of a blocklist correctly.
54839 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54840 Use ioctl only if the OS file is a block device.
54841 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54842 not very useful for normal files.
54844 * kern/main.c (pupa_set_root_dev): New function.
54845 (pupa_load_normal_mode): Likewise.
54846 (pupa_main): Call those above.
54848 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54851 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54853 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54855 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54856 (setup): Configure the installed partition information and the
54859 * loader/i386/pc/chainloader.c (my_mod): New variable.
54860 (pupa_chainloader_unload): New function.
54861 (pupa_rescue_cmd_chainloader): Refer itself.
54862 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54864 * kern/i386/pc/startup.S (install_partition): Removed.
54865 (version_string): Likewise.
54866 (config_file): Likewise.
54867 (pupa_install_dos_part): New variable.
54868 (pupa_install_bsd_part): Likewise.
54869 (pupa_prefix): Likewise.
54870 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54872 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54874 (make_install_device): New function.
54875 (pupa_machine_init): Set the dl prefix.
54877 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54878 (buf): Renamed to ...
54879 (linebuf): ... this.
54880 (pupa_rescue_cmd_prefix): New function.
54881 (pupa_rescue_cmd_insmod): Likewise.
54882 (pupa_rescue_cmd_rmmod): Likewise.
54883 (pupa_rescue_cmd_lsmod): Likewise.
54884 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54887 * kern/mm.c (pupa_memalign): If failed even after invalidating
54888 disk caches, unload unneeded modules and retry.
54890 * kern/misc.c (pupa_memmove): New function.
54891 (pupa_memcpy): Removed.
54892 (pupa_strcpy): New function.
54893 (pupa_itoa): Made static.
54895 * kern/dl.c (pupa_dl_iterate): New function.
54896 (pupa_dl_ref): Likewise.
54897 (pupa_dl_unref): Likewise.
54898 (pupa_dl_unload): Return if succeeded or not.
54899 (pupa_dl_unload_unneeded): New function.
54900 (pupa_dl_unload_all): Likewise.
54901 (pupa_dl_init): Renamed to ...
54902 (pupa_dl_set_prefix): ... this.
54903 (pupa_dl_get_prefix): New function.
54905 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54906 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54907 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54908 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54909 (pupa_install_dos_part): Declared.
54910 (pupa_install_bsd_part): Likewise.
54911 (pupa_prefix): Likewise.
54912 (pupa_boot_drive): Likewise.
54914 * include/pupa/types.h: Fix a typo.
54916 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
54918 (pupa_memmove): Declared.
54919 (pupa_strcpy): Likewise.
54921 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
54922 pupa_mod_init takes one argument, its own module.
54923 (pupa_dl_unload_unneeded): Declared.
54924 (pupa_dl_unload_all): Likewise.
54925 (pupa_dl_ref): Likewise.
54926 (pupa_dl_unref): Likewise.
54927 (pupa_dl_iterate): Likewise.
54928 (pupa_dl_init): Renamed to ...
54929 (pupa_dl_set_prefix): ... this.
54930 (pupa_dl_get_prefix): Declared.
54932 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
54933 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
54935 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
54936 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
54938 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
54939 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
54941 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54943 * util/i386/pc/pupa-setup.c (setup): Define the internal
54944 function find_first_partition_start at the top level, because GCC
54945 3.0.x cannot compile internal functions in deeper scopes
54947 (find_root_device): Use lstat instead of stat.
54948 Don't follow symbolic links.
54949 Fix the path-constructing code.
54951 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
54952 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
54953 by a BLKGETSIZE ioctl first, because block devices don't fill
54954 the member st_mode of the structure stat on Linux.
54955 [__linux__] (linux_find_partition): Use a temporary buffer
54956 REAL_DEV for the working space. Copy it to DEV before returning.
54957 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
54958 buffer cache consistent.
54959 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
54960 strncmp. The previous value was merely wrong.
54961 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
54963 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
54964 FAT size is 12. The previous value was merely wrong.
54966 * kern/main.c (pupa_main): Don't split the starting message from
54969 * kern/term.c (pupa_putchar): Put CR after LF instead of before
54970 LF, because BIOS goes crazy about character attributes in this
54973 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54975 * include/i386/pc/util/biosdisk.h: New file.
54976 * util/i386/pc/biosdisk.c: Likewise.
54977 * util/i386/pc/pupa-setup.c: Likewise.
54979 * Makefile.in (INCLUDE_DISTFILES): Added
54980 include/pupa/i386/pc/util/biosdisk.h.
54981 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
54982 directory util/i386/pc.
54983 (install-local): Added a rule for sbin_UTILITIES.
54984 (uninstall): Likewise.
54986 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
54988 * util/misc.c (xrealloc): New function.
54989 (pupa_malloc): Likewise.
54990 (pupa_free): Likewise.
54991 (pupa_realloc): Likewise.
54992 (pupa_stop): Likewise.
54993 (pupa_putchar): Likewise.
54995 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
54997 * include/pupa/util/misc.h (xrealloc): Declared.
54999 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55001 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55002 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55004 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55005 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55007 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55008 way should be implemented.
55009 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55011 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55012 the size of NAME for safety.
55013 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55016 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55017 (pupa_setup_SOURCES): Likewise.
55019 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55021 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55023 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55024 bunch of pushl's from pusha, because this destroys the return
55027 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55029 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55030 This means that any missing prototypes could be fatal. Also, you
55031 must take care when writing assembly code. See the comments at
55032 the beginning of startup.S, for more details.
55034 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55035 compilation mechanism.
55036 (pupa_chainloader_real_boot): Likewise.
55037 (pupa_biosdisk_rw_int13_extensions): Likewise.
55038 (pupa_biosdisk_rw_standard): Likewise.
55039 (pupa_biosdisk_check_int13_extensions): Likewise.
55040 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55041 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55042 (pupa_get_memsize): Likewise.
55043 (pupa_get_mmap_entry): Likewise.
55044 (pupa_console_putchar): Likewise.
55045 (pupa_console_setcursor): Likewise.
55046 (pupa_getrtsecs): Use pushl instead of push.
55048 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55049 memory instead of the stack for a mmap entry, because some
55050 BIOSes may ignore the maximum size and overflow.
55052 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55054 * genmk.rb (PModule#rule): Compile automatically generated
55055 sources with module-specific CFLAGS as well as other sources.
55057 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55059 * configure.ac: Check ld.
55060 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55061 respectively, before checking endianness and sizes.
55063 * Makefile.in (LD): New variable.
55065 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55067 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55069 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55071 * Changelog: New file.