1 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
5 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
7 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
8 kernels whose paths contain regex metacharacters.
9 * util/grub.d/10_kfreebsd.in: Likewise.
10 * util/grub.d/10_linux.in: Likewise.
11 * util/grub.d/20_linux_xen.in: Likewise.
13 Reported by: Heimo Stranner.
15 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
17 * docs/grub-dev.texi (Finding your way around): The build system no
18 longer uses AutoGen directly.
20 2014-06-21 Роман Пехов <roman_pekhov>
22 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
24 2014-06-21 Glenn Washburn <development@efficientek.com>
26 * util/grub-install.c: Fix handling of --disk-module.
28 2014-06-21 Stephane Rochoy <sheda>
30 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
33 2014-06-21 Stephane Rochoy <sheda>
35 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
36 EFI system table physical address.
38 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
40 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
42 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
44 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
46 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
48 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
51 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
53 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
55 Reported by: Yves Blusseau <blusseau@zetam.org>.
57 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
59 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
60 GDT in conventional memory.
62 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
64 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
65 UUID. Other parts of grub-mkconfig tolerate these, they were
66 previously allowed here up to commit
67 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
68 practice when the system has active LVM snapshots.
69 Fixes Ubuntu bug #1287436.
71 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
73 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
74 "logical_volumes" block a little more accurately.
76 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
78 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
80 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
82 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
85 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
87 Replace few instances of memcmp/memcpy in the code that should be
88 grub_memcmp/grub_memcpy.
90 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
92 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
95 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
97 btrfs: fix get_root key comparison failures due to endianness
99 * grub-core/fs/btrfs.c (get_root): Convert
100 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
102 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
104 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
106 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
107 no longer to be forgiving of trailing spaces on grub-probe output
108 lines, which among other things means that util/grub.d/10_linux.in
109 no longer detects LVM. To fix this, make grub-probe's output
110 delimiting more consistent. As a bonus, this improves the coverage
113 Fixes Debian bug #735935.
115 * grub-core/disk/cryptodisk.c
116 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
117 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
119 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
121 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
122 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
123 probe_mods): Adjust for extra user-data arguments.
124 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
125 probe_abstraction): Use configured delimiter. Update callers.
127 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
129 * util/grub-probe,c (options): Make -0 work again (broken by
131 (main): Simplify logic.
133 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
135 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
137 2014-03-26 Fu Wei <fu.wei@linaro.org>
139 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
141 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
143 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
144 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
146 Suggested by: Markus Müller.
148 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
150 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
151 if E820 failed to return any regions.
153 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
155 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
156 tables for low memory calculations.
158 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
160 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
163 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
165 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
168 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
170 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
173 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
175 Add bootpath parser for open firmware.
177 It enables net boot even when there is no bootp/dhcp server.
179 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
180 and call it at grub_ieee1275_net_config_real.
181 * grub-core/kern/ieee1275/init.c: Add bootpath to
182 grub_ieee1275_net_config.
183 * include/grub/ieee1275/ieee1275.h: Likewise.
186 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
188 Add grub_env_set_net_property function.
190 * grub-core/net/bootp.c: Remove set_env_limn_ro.
191 * grub-core/net/net.c: Add grub_env_set_net_property.
192 * include/grub/net.h: Likewise.
194 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
196 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
198 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
200 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
202 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
204 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
205 7 seconds to recover if last poweroff was bad.
207 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
209 * grub-core/disk/ahci.c: Properly handle transactions with no
212 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
214 * grub-core/disk/ahci.c: Add safety cleanups.
216 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
218 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
219 slots to avoid pointing to uninited area.
221 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
223 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
224 enabling busmaster for the end.
226 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
228 * util/grub-mkfont.c: Downgrade warnings about unhandled features
231 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
233 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
235 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
237 * .gitignore: add missing files and .exe variants.
239 2014-01-26 Mike Gilbert <floppym@gentoo.org>
241 grub-install: support for partitioned partx loop devices.
243 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
244 /dev/loopX as being the parent of /dev/loopXpY.
246 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
248 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
249 Ensure that pointers are inited to NULL and that pointers are not
252 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
254 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
255 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
256 * include/grub/emu/misc.h: ... and here.
257 * include/grub/err.h: ... and here.
258 * util/import_gcry.py: ... and here (in files g10lib.h).
260 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
262 * util/grub-mkimage.c: Make prefix argument mandatory.
264 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
266 Fix several translatable strings.
268 Suggested by: D. Prévot.
270 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
272 * util/grub-install.c: List available targets.
274 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
276 * util/grub-install.c (write_to_disk): Add an info message.
278 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
280 * Makefile.am: Allow adding extra files to generated Windows ZIP
281 archive by setting GRUB_WINDOWS_EXTRA_DIST.
283 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
285 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
286 Show detected font path in summary.
288 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
290 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
292 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
293 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
294 * grub-core/net/tftp.c (tftp_open): Likewise.
295 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
297 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
299 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
302 In net/net.c there is a while (1) that only exits if there is a stop
303 condition and more then 10 packages or if there is no package received.
305 If GRUB is idle and enter in this loop, the only condition to leave is
306 if it doesn't have incoming packages. In a network with heavy traffic
309 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
311 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
312 EPERM when modifying kern.geom.debugflags. It is only a problem for
313 such things as installing GRUB to the MBR, in which case there'll be
314 an error later anyway, not for opening files during tests.
316 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
318 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
319 instead of MOD_FILES.
320 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
321 both with and without .exe.
322 * grub-core/genemuinitheader.sh: Same.
324 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
326 * util/grub-install.c: Fix a typo.
328 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
330 * grub-core/normal/main.c (read_config_file): Buffer config file.
333 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
335 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
336 symbolic link to directory. It fails in Msys shell on Windows 2003.
338 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
340 * Makefile.am (default_payload.elf): Add modules
341 multiboot cbmemc linux16 gzio echo help.
343 2014-01-18 Mike Gilbert <floppym@gentoo.org>
345 * Makefile.util.def: Link grub-ofpathname with zfs libs.
347 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
349 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
352 Reported by: Andrey Borzenkov.
354 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
356 * include/grub/misc.h: Move macros for compiler features to ...
357 * include/grub/compiler.h: ... new file.
358 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
359 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
360 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
361 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
362 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
363 * grub-core/video/capture.c: Include <grub/misc.h>.
364 * include/grub/command.h: Include <grub/misc.h>.
365 * include/grub/dl.h: Include <grub/misc.h>.
366 * include/grub/procfs.h: Include <grub/misc.h>.
368 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
370 * configure.ac: Add support for BUILD_EXEEXT and use it ...
371 * Makefile.am: ... here.
372 * Makefile.util.def: ... and here.
373 * grub-core/Makefile.am: ... and here.
375 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
377 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
378 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
380 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
382 * grub-core/term/terminfo.c: Recognize keys F1-F12.
384 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
386 * configure.ac: Add support for BUILD_LDFLAGS.
387 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
388 * grub-core/Makefile.am: ... and here.
389 * INSTALL: Mention BUILD_LDFLAGS.
391 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
393 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
395 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
397 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
400 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
402 * NEWS: Add few missing entries.
404 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
406 * util/grub.d/00_header.in (make_timeout): Use && rather than test
408 * util/grub.d/10_windows.in: Likewise.
409 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
411 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
414 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
416 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
417 redundant preprocessor conditional.
419 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
421 * Makefile.util.def (grub-macbless): Change mansection to 8.
423 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
425 * grub-core/loader/arm64/linux.c: correctly set device path end length.
427 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
429 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
430 arm64 to comply with EFI specification. Also use grubaa64.efi for
432 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
434 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
436 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
437 on MinGW-64 when compiling for 32 bits.
439 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
441 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
443 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
445 * NEWS: Add few missing entries. Correct existing ones.
447 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
449 Don't abort() on unavailable coreboot tables if not running on coreboot.
451 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
453 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
456 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
458 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
459 mention of it from 2.02.
461 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
463 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
465 As these functions are used on pre-ARMv6 CPUs as well we don't want
466 to make assembler assume that architecture is higher than default one.
468 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
470 * NEWS: First draft of 2.02 entry.
472 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
474 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
475 * docs/grub.texi (Getting the source code): Likewise.
477 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
479 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
482 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
484 * configure.ac: Set version to 2.02~beta2.
486 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
488 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
490 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
492 * util/grub-probe.c: Improve help message and simplify list handling.
494 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
496 Fix buffer overflow in grub_efi_print_device_path.
498 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
500 Show SATA device path.
502 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
504 Revert grub-file usage in grub-mkconfig.
506 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
508 Make newly-created files other than grub.cfg world-readable.
510 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
512 * util/grub.d/00_header.in: Improve compatibility with old config.
514 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
516 Make rijndael.c respect aliasing rules.
518 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
520 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
522 Make grub_util_device_is_mapped_stat available in grub-emu core.
524 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
526 Add -Qn to TARGET_CFLAGS if it's supported.
527 Fixes compilation on cygwin.
529 Reported by: Andrey Borzenkov.
530 Suggested by: Andrey Borzenkov.
532 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
534 Save TARGET_CC version in modinfo.sh.
536 Suggested by: Andrey Borzenkov.
538 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
540 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
541 follow the same algorithm to avoid method mismatch. Don't assume
542 DMRAID- UUID to mean full disk but instead check that mapping is linear.
544 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
546 Declare GRUB_EFI_VENDOR_APPLE_GUID.
548 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
550 Dump type and vendor specific data when printing device path.
552 2013-12-23 Colin Watson <cjwatson@debian.org>
554 Update some documentation to refer to Git rather than Bazaar.
556 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
558 * po/README: Likewise. Fix spelling mistake.
560 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
562 Don't distribute config.h.
564 * Makefile.am (platform_HEADERS): Move to ...
565 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
566 failure when building from a distributed tarball.
568 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
570 * configure.ac: Fix spelling.
571 * grub-core/commands/parttool.c: Fix grammar.
572 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
573 Embedding Partition".
575 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
577 ARM64 support for grub-mkrescue.
579 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
581 Install modinfo.sh to keep build information around.
583 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
585 * grub-core/modinfo.sh.in: Add build config information.
587 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
589 ARM64 grub-file and grub-mkconfig support.
591 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
593 Remove leftover options defines.
595 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
597 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
599 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
601 * grub-core/loader/arm64/linux.c: Add missing bracket.
603 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
605 Add arm64-efi recognition to grub-file.
607 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
609 Fix ia64-efi recognition in grub-file.
611 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
613 Recognize raspberry pi kernel in grub-file.
615 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
617 Enable cache on ARM U-Boot port.
619 Without it the port is reidiculously slow.
621 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
623 Fix ARM cache maintainance.
625 More code was converted from ASM to C for easier handling.
627 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
629 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
632 Suggested by: Leif Lindholm.
634 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
636 * util/grub-mkconfig.in: Fix Xen platform conditions.
638 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
640 * util/grub-mkrescue.c: Split single help message string in several
641 strings used in previous shell version.
643 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
645 Add arm64 Linux loader.
647 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
649 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
651 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
653 Add module loading and parsing boot time checkpoints.
655 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
657 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
660 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
662 * util/grub-mkconfig.in: Skip non-executable files.
664 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
666 Workaround buggy timer in raspberry pie by using our own timer
669 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
671 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
672 Increase to 16 MiB to allow loading the whole memdisk.
674 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
676 Fix ARM Linux Loader on non-FDT platforms.
678 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
680 * configure.ac: Choose link format based on host_os on emu.
682 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
684 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
686 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
688 * grub-core/kern/emu/main.c: Build fix for emu.
690 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
692 Build fixes for argp.h with older gcc.
694 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
696 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
699 Suggested by: David Prévot.
701 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
703 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
705 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
707 Enable -Wformat=2 if it's supported.
709 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
711 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
712 -Wmissing-declarations if supported.
714 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
716 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
717 u32 as both HFS and HFS+ have 32-bit inodes.
719 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
721 * include/grub/misc.h (grub_strtol): Fix overflow.
723 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
725 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
726 as return type in both conditionals.
728 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
730 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
731 to use uint8_t for color.
733 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
735 * util/misc.c (grub_util_get_image_size): Check for overflow.
737 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
739 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
742 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
744 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
745 for pointer difference.
747 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
749 * util/import_gcry.py: Skip sample keys.
751 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
753 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
755 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
757 * configure.ac: Remove duplicate warning arguments.
759 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
761 Add missing static qualifiers.
763 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
765 Add missing includes.
767 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
769 Inline printf templates when possible to enable format checking.
771 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
773 * include/grub/crypto.h: Don't discard const attribute.
775 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
777 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
780 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
782 * grub-core/lib/crypto.c: Don't discard const attribute.
784 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
786 * grub-core/lib/disk.c: Fix potential overflow.
788 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
790 * grub-core/lib/arg.c: Don't discard const attribute.
792 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
794 * grub-core/kern/dl.c: Don't discard const attribute.
796 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
798 * grub-core/kern/disk.c: Fix potential overflow.
800 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
802 * conf/Makefile.common: Don't include non-existing directory
803 grub-core/lib/libgcrypt-grub/include.
805 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
807 Clarify several translatable messages.
809 2013-12-21 David Prévot <david@tilapin.org>
811 Correct some translatable strings.
813 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
815 * util/grub-mkrescue.c: Rephrase mkrescue description.
817 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
818 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
820 Clarify several translatable messages.
822 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
824 Be more verbose about some configure failures.
826 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
828 Fix various build problems on GNU/Hurd.
830 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
833 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
834 [__GNU__]: Add prototype.
835 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
836 long int using %ld rather than %d.
838 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
840 * util/grub-install.c: Inform user about install platform.
842 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
844 * configure.ac: Set version to 2.02~beta1.
846 2013-12-18 Allen Pais <allen.pais@oracle.com>
847 2013-12-18 Bob Picco <bob.picco@oracle.com>
849 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
851 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
853 Make grub_zlib_decompress handle incomplete chunks.
857 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
859 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
862 2013-12-18 Aleš Nesrsta <starous@volny.cz>
864 * grub-core/disk/usbms.c: Retry on unknown errors.
865 Reuse the same tag on retries.
867 2013-12-18 Aleš Nesrsta <starous@volny.cz>
869 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
871 Avoid confusing them with already completed transfers.
873 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
877 Due to XEN bug it prevents Linux boot. Remove it at least, until
880 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
882 * po/exclude.pot: Add 2 missing excludes.
884 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
886 Add missing license section in macbless.mod and macho.mod.
888 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
890 Allow compilation without thumb-interwork as long as no thumb is
891 involved or only thumb2 is used.
893 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
895 Use -Wl,--no-relax rather than -mno-relax for uniformity.
897 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
899 * INSTALL: Update comment as to why sparc64 clang isn't usable.
901 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
903 Add __attribute__ ((sysv_abi)) only if it's really needed.
905 Some compilers don't support it.
907 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
909 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
911 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
913 Remove -Wold-style-definition.
915 Not very useful and interaction of it with regexp depends on GCC
918 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
920 Make grub_util_get_windows_path_real static.
922 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
924 * grub-core/commands/fileXX.c: Silence cast-align.
925 * grub-core/loader/i386/xen_fileXX.c: Likewise.
927 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
929 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
930 rather than LL suffix.
932 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
934 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
936 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
938 * grub-core/loader/arm/linux.c: Use common initrd functions.
940 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
942 Decrease number of strings to translate.
944 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
946 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
948 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
950 Mark strings for translation and add remaining ones to exclude list.
952 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
954 * util/grub-file.c (main): Fix sizeof usage.
956 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
958 Silence spurious warning.
960 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
962 Remove check_nt_hiberfil as it's been superseeded by file command.
964 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
966 * docs/osdetect.cfg: Add isolinux config to detected OSes.
968 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
970 Implement syslinux parser.
972 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
974 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
976 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
980 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
982 Use AT keyboard on Yeeloong 3A.
984 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
986 Add Yeeloong 3A reboot and halt.
988 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
990 Add Radeon Yeeloong 3A support.
992 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
994 Add bonito 3A support.
996 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
998 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1000 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1002 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1004 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1006 * grub-core/loader/macho.c: Fix compilation on non-i386.
1008 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1010 Add missing format_arg attribute to check that printf with translated
1011 messages has proper arguments.
1013 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1015 Use grub_xasprintf to format translated error messages containing
1018 2013-12-17 Jon McCune <jonmccune@google.com>
1020 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1022 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1024 Unify message for unsupported relocation.
1026 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1028 Mark miscompile error for translation.
1030 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1032 Use %I64 and not %ll when using OS printf if compiling for windows.
1034 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1036 Update Mac code to match new register_efi prototype.
1038 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1040 Implement better integration with Mac firmware.
1042 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1044 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1047 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1049 Include serial module in default_payload.elf.
1051 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1053 Add explicit thumb interwork bx in asm files.
1055 Shouldn't matter for armv >= 5 but let's be safe.
1057 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1059 Implement Truecrypt ISO loader.
1061 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1063 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1065 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1067 Implement grub_file tool and use it to implement generating of config
1070 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1072 Change to v1 xen grants.
1074 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1076 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1078 GRUB relied on %ebx being preserved across hypercall which isn't true.
1080 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1082 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1084 GRUB relied on %rdi being preserved across hypercall which isn't true.
1086 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1088 Implement XEN VFB support.
1090 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1092 Remove grub_bios_interrupt on coreboot.
1094 It's not used currently and cannot be used safely currently.
1096 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1098 Update exclude.pot and mark few strings for translation.
1100 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1102 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1104 Reported by: Jon McCune
1106 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1108 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1109 Add verbose information which firmware directories were tried.
1111 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1113 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1114 function to optionally redirect all three standard descriptors.
1115 Redefine grub_util_exec, grub_util_exec_redirect and
1116 grub_util_exec_redirect_null to use it.
1117 * include/grub/emu/exec.h: Define it.
1118 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1119 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1120 Use grub_util_exec_redirect_all to redirect error to NULL.
1122 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1124 * grub-core/tests/sleep_test.c: Silence spurious warning.
1126 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1128 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1129 linker trying to "fixup" the code.
1131 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1133 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1135 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1137 Add support for converting PE+ to Elf64.
1139 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1141 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1143 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1145 Remove practice of assigning random const pointers to device id.
1147 This is not required as cache code already checks driver id as well.
1149 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1151 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1154 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1156 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1157 mingw or cygwin as API already matches.
1159 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1161 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1163 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1165 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1168 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1170 Handle X86_64_PC64 relocation.
1172 Those are generated by some cygwin compilers.
1174 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1176 Determine the need for mingw-related stubs at compile time rather than
1177 using not very significant $target_os.
1179 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1181 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1182 may not work with ELF.
1184 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1186 Use unix functions for temporary files and special files on cygwin.
1188 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1190 Define functions explicitly rather than using --defsym in tests
1191 whenever possible. Respect locality in remaining cases.
1193 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1195 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1197 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1199 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1200 unlikely errors when getting EFI variables and make exhaustive search
1201 for all BootNNNN variables to find matching one.
1203 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1205 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1207 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1209 New functional test for sleep function.
1211 This test allows to check sleep without qemu. Keep qemu version as
1212 well as functional test won't notice if all clocks are going too fast
1215 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1217 Add explicit sysv_abi on amd64 asm routines.
1219 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1221 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1224 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1226 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1229 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1231 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1234 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1236 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1238 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1240 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1243 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1245 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1247 In case of quick removal of loopback and adding another one it may
1248 get same ID, confusing the cache system.
1250 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1252 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1255 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1257 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1258 than converting to long.
1260 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1262 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1264 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1266 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1267 than almost useless pointer.
1269 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1271 Add gcc_struct to all packed structures when compiling with mingw.
1273 Just "packed" doesn't always pack the way we expect.
1275 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1277 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1279 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1281 * util/grub-pe2elf.c: Fix handling of .bss.
1283 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1285 Implement windows flavour of EFI install routines.
1287 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1289 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1291 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1293 Change grub_install_register_efi interface to pass GRUB device.
1295 This allows grub_install_register_efi to request partition info
1298 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1300 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1302 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1304 Do not use TCHAR string functions as they are not available on cygwin.
1306 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1308 Workaround windows bug when querying EFI system partition parameters.
1310 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1312 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1315 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1317 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1319 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1321 Make i386-* other than i386-pc compileable under cygwin.
1323 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1325 Fix definition of grub_efi_hard_drive_device_path. Take care that
1326 existing code would work even if by some reason bogus definition is
1327 used by EFI implementations.
1329 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1331 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1333 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1335 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1338 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1340 * util/config.c: Remove trailing newline from distributor in simple
1343 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1345 * include/grub/efi/api.h: Rename protocol and interface to avoid
1348 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1350 * .gitignore: add .exe variants. add missing files. remove few outdated
1353 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1355 * grub-core/osdep/exec.c: Use unix version on cygwin.
1357 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1359 Implement multiboot2 EFI BS specification.
1361 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1363 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1364 Crash happened only in some cases like a string starting at the
1365 half of the screen of same length.
1367 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1369 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1370 with EFI counterpart.
1372 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1374 Propagate the EFI commits to x86-efi specific parts.
1376 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1378 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1380 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1382 Introduce grub_efi_packed_guid and use it where alignment is not
1385 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1387 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1388 unaligned u16 rather than u8[2].
1390 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1392 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1393 for relocation range.
1395 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1397 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1398 non-function pcrel21b relocation. It happens with .text.unlikely
1401 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1403 * make MAX_USABLE_ADDRESS platform-specific
1404 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1406 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1408 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1410 2013-12-09 Jon McCune <jonmccune@google.com>
1412 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1413 in grub-install and grub-bios-setup for x86 BIOS targets.
1415 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1417 Add missing compile and link options for sparc64-emu.
1419 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1421 Implement sparc64 trampolines (needed for sparc64-emu).
1423 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1425 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1426 range of R_SPARC_HI22.
1427 Implement R_SPARC_LM22.
1429 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1431 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1432 Do not explicitly check for symbol table as it's already checked in
1433 platform-independent layer.
1435 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1437 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1438 on ia64 as __clear_cache is a dummy on ia64.
1440 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1442 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1443 Do not explicitly check for symbol table as it's already checked in
1444 platform-independent layer.
1446 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1448 * util/grub-mkconfig.in: Add missing newline to output.
1450 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1452 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1453 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1455 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1457 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1458 compilation with GCC <= 4.2.
1459 * grub-core/kern/emu/argp_common.c: Likewise.
1461 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1463 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1464 right platform rather than leaking to sparc64-emu.
1466 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1468 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1469 But ensure that the variables in question are indeed unsigned.
1471 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1473 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1475 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1477 Remove grub_memalign on emu.
1479 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1481 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1482 truncate incomplete lines but instead flushes them.
1484 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1486 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1487 and implement windows variant.
1489 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1491 Fix mips-emu compilation.
1493 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1495 * configure.ac: Check for freetype library usability.
1497 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1501 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1503 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1505 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1507 * docs/grub.texi (Environment): Update color_normal and color_highlight
1508 defaults (light-gray instead of white).
1510 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1512 * grub-core/normal/main.c (INIT): Set default color to light-gray
1513 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1514 and apparently BIOS defaults.
1516 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1518 Transform -C option to grub-mkstandalone to --core-compress available
1519 in all grub-install flavours.
1521 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1523 Merge GRUBFS and GRUB_FS variables.
1525 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1527 Revert commit 69ca97c820, it caused failures when using OS device name
1528 in grub-install. Instead just strip off parenthesis in grub-install
1529 if (hdX) was passed.
1531 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1533 * util/grub-install.c (push_partmap_module): Add helper to convert
1534 partmap names to module names and use it in probe_mods(). Fixes
1535 failure to find partmap modules in diskfilter case.
1537 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1539 * configure.ac: Make unifont mandatory on coreboot.
1541 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1543 * configure.ac: Skip unifont 6.3 pcf and bdf.
1545 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1547 * Makefile.am: Remove partial font files if generation failed.
1549 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1551 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1553 * include/grub/util/misc.h: Define it ...
1554 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1556 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1558 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1561 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1563 Don't add -mlong-calls when compiling with clang.
1565 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1567 * configure.ac: Fix a typo.
1569 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1571 Revamp relocation handling.
1573 Move more code to common dl.c. Add missing veneers for arm and arm64.
1574 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1576 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1578 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1580 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1582 * INSTALL: Raise minimum python version to 2.6.
1583 * gentpl.py: Use python3-style print function.
1585 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1587 * util/grub-install.c: Mention Boot* variable.
1589 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1591 * grub-core/osdep/linux/hostdisk.c
1592 (grub_util_find_partition_start_os): Initialise start to avoid
1593 spurious compiler warning.
1595 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1597 On Linux, read partition start offsets from sysfs if possible, to
1598 cope with block device drivers that don't implement HDIO_GETGEO.
1599 Fixes Ubuntu bug #1237519.
1601 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1603 (sysfs_partition_start): Likewise.
1604 (grub_util_find_partition_start_os): Try sysfs_partition_start
1607 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1609 * grub-core/kern/fdt.c: Update struct size when adding node.
1611 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1613 Handle unaligned .bss on sparc64.
1615 Current code improperly assumes that both __bss_start and _end are
1616 aligned to 8-bytes. Eliminating this assumption and explicitly align
1619 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1621 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1622 so it doesn't land in the middle of loaded image.
1624 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1626 * configure.ac: Move all warning options that may be absent in
1627 gcc >= 3.1 to optional.
1629 Note: while this allows to compile with older GCC, official requirements
1630 remain the same and no support for older GCC.
1632 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1634 Copying the themes directory in grub-shell isn't
1635 parallel-test-friendly and breaks on the second test when the source
1636 directory is read-only (as in "make distcheck"). Instead, add a
1637 hidden --themes-directory option to grub-mkrescue et al, and use it
1640 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1642 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1643 as it's no longer necessarry.
1645 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1647 * configure.ac: Allow compilation with older GCC for ARM.
1649 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1651 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1652 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1655 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1657 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1659 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1661 Pass font config to config.h and not by TARGET_CFLAGS as adding
1662 arguments doesn't work if TARGET_CFLAGS is specified on command
1665 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1667 * configure.ac: Add -Wvla if compiler supports it.
1669 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1671 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1672 Remove variable length arrays.
1673 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1675 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1677 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1679 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1681 * include/grub/types.h: Declare all byteswaps as inline functions
1682 except compile-time ones.
1684 Solves variable shadowing in constructions like
1685 cpu_to_le (le_to_cpu(x) + 1).
1687 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1689 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1691 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1693 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1696 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1698 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1699 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1701 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1703 * grub-core/Makefile.core.def (setjmp): Distribute
1706 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1708 Add a new timeout_style environment variable and a corresponding
1709 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1710 controls hidden-timeout handling more simply than the previous
1711 arrangements, and pressing any hotkeys associated with menu entries
1712 during the hidden timeout will now boot the corresponding menu entry
1715 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1716 generates a warning, and if it shows the menu it will do so as if
1717 the second timeout were not present. Other combinations are
1718 translated into reasonable equivalents.
1720 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1722 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1724 * util/config.c: Add missing pointer adjustment.
1725 Reported by: qwertial
1727 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1729 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1730 directly, not via `cpu' link, to fix libgrub.pp generation.
1732 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1736 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1738 * docs/grub.texi (sleep): Document exit codes.
1740 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1742 Ensure that -mno-unaligned-access or some equivalent option is used.
1744 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1746 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1749 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1751 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1753 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1755 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1756 builds, since we don't have an EPS version of font_char_metrics.png.
1757 Add leading dot to image extension per the Texinfo documentation.
1759 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1761 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1762 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1763 * util/grub-gen-widthspec.c: Likewise.
1764 * util/grub-mkfont.c: Likewise.
1766 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1768 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1769 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1770 failed to install on (hdX).
1771 * util/grub-setup.c (get_device_name): Remove, not needed after
1774 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1776 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1778 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1780 * util/grub-fstest.c: Remove variable length arrays.
1782 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1784 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1786 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1788 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1789 computing crc32 rather than handling with md fundtions directly.
1791 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1793 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1794 checking fwstart.img rather than md fundtions directly.
1796 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1798 * util/grub-mkrescue.c (main): Check that fread succeeded.
1800 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1802 * conf/Makefile.common: Remove -mexplicit-relocs and
1803 -DUSE_ASCII_FALLBACK on yeeloong.
1805 -DUSE_ASCII_FALLBACK is already added by font snippets.
1806 -mexplicit-relocs isn't needed is compiler/assemblera are
1807 configured properly.
1808 If they're not we shouldn't attempt to fix it by ourselves.
1809 Binary compare between before and after shows no difference.
1811 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1813 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1814 sources in dependencies directly.
1816 This was the only instance of "library" in core config. A bug was
1817 reported that -fno-stack-protector wasn't passed to it. Instead of
1818 figuring out why it failed just remove this construction used
1821 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1823 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1826 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1828 * docs/grub.texi (ls): Fix command description in case of a device name
1831 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1833 Eliminate variable length arrays in grub_vsnprintf_real.
1835 A bit tricky because this function has to continue to work without
1836 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1837 but make all stack references use 32-bit offset rather than 8-bit one.
1838 So split va_args preparsing to separate function and put the prealloc
1841 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1843 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1844 Fixes build for windows.
1846 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1848 * gentpl.py: Don't generate platform-dependent conditionals for
1849 platform-independent targets.
1851 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1853 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1854 references to mdadm from otherwise generic code.
1855 (grub_util_exec_pipe): Likewise.
1856 (grub_util_exec_pipe_stderr): Likewise.
1857 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1858 This function calls vgs, not mdadm; adjust variable names
1861 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1863 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1864 of Autogen. The Autogen definitions files remain intact as they
1865 offer a useful abstraction.
1867 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1869 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1870 into no-ops, and use it in programs that copy files but do not need
1871 to take special care to sync writes (grub-mknetdir, grub-rescue,
1874 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
1876 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1877 than hardcoding /usr/local/bin/xorriso.
1879 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1881 Add PCI command activation to all PCI drivers as required for coreboot
1882 and maybe some other firmwares.
1884 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1886 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1887 and non-Apple variants of efiemu compile.
1889 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1891 * configure.ac: Add explicit check for linking format of
1892 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1893 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1894 hardcoding linking format.
1896 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1898 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1901 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
1902 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1904 Add a --locale-directory option to grub-install and related tools.
1906 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1907 --locale-directory option.
1908 (enum grub_install_options): Add
1909 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1910 * util/grub-install-common.c (grub_install_help_filter): Handle
1911 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1912 (grub_install_parse): Likewise.
1913 (get_localedir): New function to check for a user-provided option
1914 before trying grub_util_get_localedir.
1915 (copy_locales): Use get_localedir rather than
1916 grub_util_get_localedir. Handle differing locale directory layouts.
1917 (grub_install_copy_files): Likewise.
1919 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1921 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1922 Don't rely on PATH_MAX.
1924 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1926 * grub-core/genmoddep.awk: Use more portable && rather than and.
1928 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1930 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
1931 an object after data. While it doesn't seem right solution, it
1932 works well enough and OSX isn't main compilation platform.
1934 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1936 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
1937 While it doesn't seem right solution, it works well enough and
1938 OSX isn't main compilation platform.
1940 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1942 * configure.ac: Add -static to LDFLAGS when using apple linker to
1943 prevent it from pulling in dynamic linker.
1945 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1947 Apple assembly doesn't handle symbol arithmetic well. So define an
1948 offset symbol in boot.S and use it.
1950 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1952 Apple assembly doesn't handle symbol arithmetic well. So instead
1953 of getting addres of kernel_sector + 4 define kernel_sector_high.
1954 It also makes code more readable.
1956 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1958 With Apple assembly in .macro environvemnt you have to use $$ instead
1959 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
1960 to $$x on Apple and to $x on everything else.
1962 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1964 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
1967 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1969 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
1970 and non-Apple. This instruction is shorter and faster,
1971 so no reason not to use it on both.
1973 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1975 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
1976 .text when compiling for Apple.
1978 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1980 * grub-core/term/arc/console.c: Add missing cast to silence warning.
1982 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1984 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
1985 %dx restore the probe worked on non-existant drive. Reorganize the
1986 code a little bit to free 2 bytes necessary for push/pop.
1988 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1990 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
1991 Add missing cast to silence warning.
1993 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
1995 * util/grub-install.c (update_nvram): Support --no-nvram flag
1998 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2000 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2002 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2004 * util/garbage-gen.c: Add missing include of sys/time.h.
2006 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2008 Don't add -mflush-func if it's not supported by compiler.
2010 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2012 Move common BIOS/coreboot memory map declarations to
2013 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2015 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2017 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2019 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2021 * INSTALL: Document why older clang versions aren't appropriate.
2023 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2025 * INSTALL: Document about clang for mips.
2027 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2029 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2032 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2034 Add *-xen to the list of grub-install-common platforms.
2036 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2038 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2041 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2043 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2045 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2047 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2048 with -mcmodel=large.
2050 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2052 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2053 range-checking for 32-bit quantities.
2055 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2057 * configure.ac: Compile with -fPIC when compiling with clang on
2060 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2062 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2063 when compiling with clang.
2065 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2067 clang emits calls to abort () under some unknown conditions.
2068 Export abort () when compiling with clang.
2070 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2072 * docs/grub-dev.texi: Document stack and heap sizes.
2074 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2076 * include/grub/i386/pc/memory.h: Decrease
2077 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2078 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2079 The binary doesn't change (checked). It's more to better reflect actual
2082 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2084 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2085 at compile time that enough of scratch size is available.
2087 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2089 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2090 Previously we misaligned stack by 8 in startup.S and compensated
2091 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2092 right behaviour is to align stack in startup.S and keep it aligned
2093 in callwrap.S. startup.S part was committed few commits before. This
2094 takes care of callwrap.S.
2095 Reported by: Gary Lin.
2097 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2099 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2100 .data and .bss. May happen if compiler and assembly use different
2103 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2105 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2108 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2110 Add support for a new magic symbol _gp_disp on mips to handle PIC
2113 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2115 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2117 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2119 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2120 when rest of GRUB is compiled for hisher stepping. Instead use
2121 .set mips3/.set mips1 around cache and sync opcodes.
2123 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2125 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2126 do essentially the same thing, do it in similar way.
2128 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2130 * util/grub-mkrescue.c (main): If a source directory is not
2131 specified, read platform-specific files from subdirectories of
2132 pkglibdir, not pkgdatadir.
2134 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2136 * grub-core/normal/progress.c: Remove unused file.
2138 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2140 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2143 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2145 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2148 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2150 * coreboot.cfg: Add missing file.
2152 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2154 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2156 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2158 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2159 selectively skipping systems.
2161 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2163 * Makefile.util.def (grub-mkimage): Add
2164 grub-core/osdep/aros/config.c to extra_dist.
2165 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2166 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2167 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2168 grub-core/gnulib-no-gets.diff.
2170 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2172 Add automated filesystem checking based on scripts I've used now for
2173 quite some time locally. Most of the test require root so they are
2174 skipped when run without necessarry privelegies.
2176 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2178 * util/grub-install.c (main): Adjust info messages to match
2179 installed paths of grub-bios-setup and grub-sparc64-setup.
2181 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2183 * util/grub-install-common.c (copy_locales): Consistently use
2184 grub_util_get_localedir () rather than LOCALEDIR.
2185 (grub_install_copy_files): Likewise.
2187 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2189 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2190 16-byte boundary, as required by the x86-64 ABI, before calling
2191 grub_main. In some cases, GCC emits code that assumes this
2192 alignment, which crashes if not aligned. The EFI firmware is also
2193 entitled to assume that stack alignment without checking.
2195 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2197 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2198 4k page boundaries as expected by firmware rather than 1k
2200 (grub_mmap_malign_and_register): Likewise.
2202 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2204 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2205 fragmentation 512M is enough.
2207 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2209 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2210 pointer to 32K. This is the size of cache element which is the most
2211 common allocation >1K. This way the pointer is always around blocks
2212 of 32K and so we keep performance while decreasing fragmentation.
2214 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2216 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2217 current memory when allocating large chunks. This significantly
2218 decreases memory fragmentation.
2220 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2222 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2224 * tests/lzocompress_test.in: Skip if lzop is not installed.
2225 * tests/xzcompress_test.in: Skip if xz is not installed.
2227 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2229 * util/grub-mkrescue.c (main): Fix typo.
2231 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2233 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2234 clock frequency to 200 MHz,
2236 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2238 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2240 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2242 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2243 Load config file from (cbfsdisk)/etc/grub.cfg.
2245 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2247 * util/grub-install-common.c (grub_install_copy_files): Fix module
2248 destination directory.
2250 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2252 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2253 files have not been built.
2255 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2257 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2258 Handle errors from mkstemp.
2259 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2261 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2263 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2264 on primary master on pseries.
2266 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2268 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2269 already loaded. This saves memory needed for tests,
2271 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2273 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2276 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2278 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2281 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2283 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2284 master since with some combinations of qemu and firmware only primary
2285 IDE channel is available.
2287 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2289 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2290 low-memory platforms where we don't have enough memory for them.
2291 * grub-core/tests/videotest_checksum.c: Likewise.
2293 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2295 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2296 already loaded. This saves memory needed for tests,
2298 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2300 Fix handling of install lists.
2302 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2304 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2306 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2308 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2309 the devices before accessing them.
2311 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2313 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2316 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2318 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2320 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2322 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2323 (grub_file_close): Free file->name.
2325 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2327 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2328 (grub_load_public_key): Likewise.
2329 (grub_verify_signature_real): Likewise.
2330 (grub_cmd_verify_signature): Likewise.
2332 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2334 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2337 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2339 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2340 (grub_longjmp): Restore r31.
2341 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2343 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2345 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2346 modules to be in line with make_image_abs.
2348 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2350 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2352 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2354 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2356 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2358 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2360 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2361 to leave some memory to firmware.
2363 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2365 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2366 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2367 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2370 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2372 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2373 now needs full arguments.
2375 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2377 * util/grub-mkrescue.c (main): Add trailing \n in
2378 .disk_label.contentDetails to be in line with previous shell script.
2380 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2382 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2384 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2386 * util/grub-install-common.c (grub_install_parse): Recognize
2387 --compress=none like shell script did.
2389 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2391 * include/grub/misc.h: Replace check for __sparc64__ with one for
2392 __sparc__ as __sparc64__ isn't actually defined.
2394 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2396 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2397 counterpart of fixing the naming of escc ports.
2399 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2401 * util/grub-install-common.c (platforms): Fix the order of entries and
2402 remove useless field val.
2404 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2406 * util/grub-install.c: Add new option --no-bootsector to skip
2407 installing of bootsector. Accept --grub-setup=/bin/true as
2408 backwards-compatible synonym.
2410 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2412 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2413 order of qsort arguments (number of elements vs. element size).
2415 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2417 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2418 the function of these files exceeds what can be sanely handled in shell
2419 in posix-comaptible way. Also writing it in C extends the functionality
2420 to non-UNIX-like OS and minimal environments.
2422 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2424 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2425 compiling to thumb2.
2426 * grub-core/kern/arm/cache_armv7.S: Likewise.
2427 * grub-core/lib/arm/setjmp.S: Likewise.
2429 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2431 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2432 in grub_uboot_syscall
2434 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2436 Decrease stack usage in lexer.
2438 We have only 92K of stack and using over 4K per frame is wasteful
2440 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2441 as macros so that compiler would remove useless structure on stack.
2442 Better solution would be to fix flex not to put this structure on
2443 the stack but flex is external program.
2445 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2447 Decrease stack usage in signature verification.
2449 We have only 92K of stack and using over 4K per frame is wasteful
2451 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2453 (grub_verify_signature_real): Likewise.
2455 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2457 Decrease stack usage in mdraid 0.9x.
2459 We have only 92K of stack and using over 4K per frame is wasteful
2461 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2464 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2466 Decrease stack usage in BtrFS.
2468 We have only 92K of stack and using over 4K per frame is wasteful
2470 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2473 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2475 Decrease stack usage in JFS.
2477 We have only 92K of stack and using over 4K per frame is wasteful
2479 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2480 stack. Note: this function is recursive.
2481 (grub_jfs_read_inode): Read only part we care about.
2483 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2485 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2488 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2490 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2492 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2494 * docs/grub.texi (Environment): Document cmdpath.
2496 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2498 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2499 Remove "unused" attribute from arguments, they are used.
2501 2013-11-15 Colin Watson <cjwatson@debian.org>
2503 * .gitignore: Only ignore grub-mk* at the top level.
2505 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2507 * util/grub-reboot.in (usage): Fix a typo.
2509 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2511 Replace libgcc version of ctz with our own.
2513 On upcoming arm64 port libgcc ctz* are not usable in standalone
2514 environment. Since we need ctz* for this case and implementation is
2515 in C we may as well use it on all concerned platforms.
2517 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2519 * configure.ac: Probe for linking format rather than guessing it based
2522 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2524 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2525 "1" prior to handoff.
2527 Reported by: M A Young.
2529 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2531 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2534 Reported by: M A Young.
2536 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2538 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2539 compilation on NetBSD.
2541 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2543 * acinclude.m4: Don't add -P on initial nm test.
2545 Note: even though this patch postdates Andrey's it bears 14 Nov as
2546 date due to timezone difference.
2548 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2550 * grub-core/Makefile.core.def (signature_test): Add missing
2553 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2555 * util/grub-install_header: Set localedir here, since this file is
2557 * util/grub-install.in: Remove setting of localedir.
2558 * util/grub-mkrescue.in: Likewise.
2560 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2562 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2564 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2566 * configure.ac: Move nm checks to the end.
2567 Call grub_PROG_NM_WORKS.
2568 * acinclude.m4: New check grub_PROG_NM_WORKS.
2569 Use $TARGET_CFLAGS -c when compiling test binary.
2571 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2573 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2576 2013-11-14 Matthew Garrett <mjg@redhat.com>
2578 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2579 cmdpath to firmware directory.
2581 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2583 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2584 at the start of second iteration.
2586 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2588 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2590 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2592 * Makefile.am (default_payload.elf): New target for easier coreboot
2595 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2597 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2598 clang (not necessarry with -no-integrated-as).
2599 * include/grub/symbol.h [__arm__]: Likewise.
2601 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2603 * configure.ac: Use -no-integrated-as on arm with clang.
2604 * INSTALL: Mention ARM compilation with clang.
2606 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2608 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2611 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2613 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2614 code for indirect block handling.
2616 Saves 185 bytes on compressed image.
2618 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2622 * Makefile.am: Remove build-grub-* in make clean.
2624 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2626 New files to gitignore.
2628 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2629 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2631 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2633 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2635 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2637 * .gitignore: fix rules for .dep* and add *.a post git migration
2639 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2641 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2644 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2646 * grub-core/kern/misc.c: Don't redirect divisions in the
2648 * include/grub/misc.h: Likewise.
2650 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2652 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2653 systems that require checking the return value of write.
2655 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2657 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2658 efibootmgr quiet when --debug is not used, rather than when it is.
2660 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2662 * gentpl.py (define_macro_for_platform_dependencies): Remove
2663 first (and thus unused) of two definitions for this function.
2664 (platform_dependencies): Likewise.
2666 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2668 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2669 functions, we only need to check this for the target, not the host.
2670 * configure.ac (grub_apple_cc): Likewise.
2672 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2674 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2675 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2676 asm to stay in arm even if surrounding is thumb.
2678 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2680 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2681 helper functions are needed for thumb.
2683 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2685 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2686 level / 3 division explicitly unsigned. Saves few bytes.
2688 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2690 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2692 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2694 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2697 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2699 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2700 grub_uboot_boot_data to asm part.
2702 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2704 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2706 (grub_uboot_syscall): Save/restore r9 and align stack.
2708 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2710 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2712 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2714 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2715 occurencies with END.
2717 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2719 * util/grub-editenv.c (help_filter, argp): Document how to delete
2720 the whole environment block.
2721 Reported by Dan Jacobson. Fixes Debian bug #726265.
2723 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2725 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2728 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2730 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2731 increment/decrement.
2733 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2735 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2736 compiling with clang.
2738 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2740 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2743 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2745 Redirect all divisions to grub_divmod64.
2747 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2749 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2751 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2753 Add missing includes of loader.h.
2755 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2757 * configure.ac: Allow disabling themes.
2759 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2761 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2763 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2765 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2766 until it becomes operational.
2768 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2770 * grub-core/Makefile.core.def (legacy_password_test): Disable
2771 on platforms where no legacycfg is compiled.
2772 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2773 load legacy_password_test.
2775 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2777 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2779 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2781 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2783 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2785 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2786 strict-aliasing warning.
2787 (fsync): Silence cast warning.
2789 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2791 * grub-core/commands/verify.c: Remove variable length arrays.
2792 Load gcry_dsa/gcry_rsa automatically.
2794 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2796 * grub-core/tests/signature_test.c: New test.
2798 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2800 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2803 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2805 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2806 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2808 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2810 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2812 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2814 * grub-core/fs/proc.c: Allow \0 in proc files.
2816 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2818 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2820 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2822 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2824 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2826 * grub-core/fs/ext2.c: Remove variable length arrays.
2828 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2830 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2833 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2835 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2836 * grub-core/disk/cryptodisk.c: Likewise.
2837 * grub-core/disk/geli.c: Likewise.
2838 * grub-core/disk/luks.c: Likewise.
2840 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2842 * grub-core/tests/legacy_password_test.c: New test.
2843 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2845 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2847 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2849 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2851 * grub-core/tests/pbkdf2_test.c: New test.
2853 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2855 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2857 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2859 * grub-core/io/lzopio.c: Remove variable length arrays.
2861 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2863 * include/grub/crypto.h: Add maximums on hash size and cipher block
2866 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2868 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2870 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2872 * grub-core/tests/xnu_uuid_test.c: New test.
2874 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2876 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2879 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2881 * grub-core/commands/hashsum.c: Remove variable length arrays.
2883 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2885 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2887 * tests/grub_func_test.in: Increase memory allocation.
2889 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2891 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2892 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2895 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2897 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2898 (grub_util_get_fd_size_os): ...this.
2899 (grub_hostdisk_flush_initial_buffer): New empty function.
2901 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2903 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2904 without --defined-only.
2906 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2908 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2909 rip-relative addressing in prologue.
2911 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2913 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2914 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2916 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2918 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2919 Add missing semicolon.
2921 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2923 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2925 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2927 * configure.ac: Check for lzma.h for enabling liblzma and allow
2930 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2932 Add missing includes of loader.h.
2934 2013-11-11 Fam Zheng <famcool@gmail.com>
2936 * util/grub.d/30_os-prober.in: Add minix entry.
2938 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2940 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
2941 right buffer for temporary load.
2943 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2945 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
2947 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2949 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
2952 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2954 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
2956 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
2958 (LzmaDec_InitDicAndState): Make static.
2960 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2962 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
2964 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2966 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
2968 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
2970 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2972 * docs/grub-dev.texi: Replace bzr references with git ones.
2974 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2976 * docs/grub.texi (Simple configuration): Remove reference to
2977 grub-reboot from saved default entry description - grub-default
2978 does not use it anymore.
2980 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2982 * configure.ac: Make efiemu test cflags match the cflags efiemu is
2985 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2987 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
2989 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2991 Fix grub_machine_fini bitrot.
2993 Reported by: Glenn Washburn.
2995 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2997 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
2999 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3001 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3003 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3006 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3008 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3009 Add -march=core2 when testing compile of efiemu64.
3011 Thanks Andrey Borzenkov for spotting this.
3013 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3015 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3016 XEN PV environment and load kernels.
3018 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3020 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3021 * grub-core/loader/multiboot_mbi2.c: Likewise.
3023 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3025 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3028 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3030 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3032 Tested by: Denis 'GNUtoo' Carikli.
3034 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3036 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3038 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3040 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3041 Use to get rounded angle rather than truncated.
3043 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3045 * grub-core/term/serial.c: Add option for enabling/disabling
3046 RTS/CTS flow control.
3048 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3050 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3053 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3055 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3056 Use grub_fatal rather than divide by zero.
3057 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3059 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3061 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3063 (grub_fixed_fsf_divide): Likewise.
3065 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3067 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3068 division by-zero and senseless negative divisions.
3070 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3072 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3073 division by-zero and senseless negative divisions.
3074 (circprog_set_property): Don't accept negative num_ticks.
3076 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3078 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3079 division by-zero and senseless negative divisions.
3081 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3083 * configure.ac: Use elf_*_fbsd on kfreebsd.
3085 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3087 * grub-core/tests/div_test.c: New test.
3089 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3091 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3092 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3093 * grub-core/gfxmenu/view.c: Likewise.
3094 * grub-core/video/fb/video_fb.c: Introduce new functions:
3095 grub_video_set_area_status, grub_video_get_area_status,
3096 grub_video_set_region, grub_video_get_region.
3097 * grub-core/video/bochs.c: Likewise.
3098 * grub-core/video/capture.c: Likewise.
3099 * grub-core/video/video.c: Likewise.
3100 * grub-core/video/cirrus.c: Likewise.
3101 * grub-core/video/efi_gop.c: Likewise.
3102 * grub-core/video/efi_uga.c: Likewise.
3103 * grub-core/video/emu/sdl.c: Likewise.
3104 * grub-core/video/radeon_fuloong2e.c: Likewise.
3105 * grub-core/video/sis315pro.c: Likewise.
3106 * grub-core/video/sm712.c: Likewise.
3107 * grub-core/video/i386/pc/vbe.c: Likewise.
3108 * grub-core/video/i386/pc/vga.c: Likewise.
3109 * grub-core/video/ieee1275.c: Likewise.
3110 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3111 * include/grub/video.h: Likewise.
3112 * include/grub/video_fb.h: Likewise.
3113 * include/grub/fbfill.h: Updated render_target structure.
3114 grub_video_rect_t viewport, region, area
3115 int area_offset_x, area_offset_y, area_enabled
3116 * include/grub/gui.h: New helper function
3117 grub_video_bounds_inside_region.
3118 * docs/grub-dev.texi: Added information about new functions.
3120 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3122 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3125 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3127 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3129 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3131 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3133 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3134 simple division on arm and ia64.
3136 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3138 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3141 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3143 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3145 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3147 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3148 prefix symbol, not @.
3150 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3152 * INSTALL: Add note about older gcc and clang.
3154 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3156 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3158 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3160 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3161 NULL pointer dereference.
3163 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3165 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3168 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3170 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3173 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3175 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3177 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3178 * grub-core/disk/geli.c (ascii2hex): Likewise.
3180 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3182 * configure.ac: Run linker tests without -Werror.
3183 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3184 Change all occurences of -static-libgcc resp -lgcc to
3185 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3187 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3189 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3191 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3193 Allow compiling with clang (not really supported though).
3195 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3197 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3198 Add -mrtd -mregparm=3 on i386 when not using clang.
3199 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3201 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3203 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3205 * grub-core/lib/reed_solomon.c: Likewise.
3206 * include/grub/i386/gdb.h: Likewise.
3207 * include/grub/i386/pc/int.h: Likewise.
3208 * include/grub/i386/pc/pxe.h: Likewise.
3209 * include/grub/ieee1275/ieee1275.h: Likewise.
3211 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3213 Import libgcrypt 1.5.3.
3215 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3217 * configure.ac: Don't add -Wcast-align on x86.
3219 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3221 * configure.ac: Add -freg-struct-return on all platforms that
3224 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3226 * acinclude.m4: Use -Werror on parameter tests.
3227 * configure.ac: Likewise.
3229 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3231 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3233 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3235 * configure.ac: Check that -malign-loops works rather than assuming that
3236 either -falign-loops or -malign-loops work.
3238 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3240 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3242 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3244 * configure.ac: Prevent cflags leaking to subsequent tests by always
3245 resetting cflags to target_cflags in target tests.
3247 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3249 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3252 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3254 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3256 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3258 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3260 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3262 * grub-core/normal/cmdline.c (grub_cmdline_get):
3263 Remove nested functions.
3265 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3267 * tests/test_sha512sum.in: Make it work on emu.
3269 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3271 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3273 (grub_bidi_line_logical_to_visual): Likewise.
3275 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3277 Remove vestiges of -Wunsafe-loop-optimisations.
3279 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3280 -Wno-unsafe-loop-optimisations.
3281 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3283 * grub-core/io/gzio.c: Likewise.
3284 * grub-core/script/parser.y: Likewise.
3285 * grub-core/script/yylex.l: Likewise.
3286 * util/grub-mkfont.c: Likewise.
3288 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3290 * util/grub-mkfont.c (process_cursive): Remove nested function.
3292 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3294 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3295 (grub_boot_time): Likewise.
3297 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3299 * include/grub/symbol.h (FUNCTION): Use @function rather than
3301 (VARIABLE): Likewise.
3303 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3305 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3307 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3309 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3310 (parse_dhcp_vendor): Likewise.
3312 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3314 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3316 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3318 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3319 Define after defining type and not before.
3321 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3323 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3325 (grub_gcm_decrypt): Likewise.
3326 (algo_decrypt): Likewise.
3327 (grub_zfs_decrypt_real): Transform error type.
3329 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3331 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3333 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3335 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3336 (grub_usbms_cbi_reset): Likewise.
3337 (grub_usbms_bo_reset): Likewise.
3338 (grub_usbms_reset): Likewise.
3339 (grub_usbms_attach): Likewise.
3340 (grub_usbms_transfer_cbi): Likewise.
3342 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3344 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3345 "checksum = checksum;".
3347 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3349 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3352 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3354 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3357 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3359 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3361 (grub_ehci_fini_hw): Likewise.
3362 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3364 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3366 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3367 return grub_usb_err_t for cosistency. All users updated.
3369 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3371 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3372 assigning to itself.
3374 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3375 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3377 Issue separate DNS queries for ipv4 and ipv6
3379 Adding multiple questions on a single DNS query is not supportted by
3380 most DNS servers. This patch issues two separate DNS queries
3381 sequentially for ipv4 and then for ipv6.
3383 Fixes: https://savannah.gnu.org/bugs/?39710
3385 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3386 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3387 * (grub_net_dns_lookup): Now using separated dns packages.
3388 * (grub_cmd_nslookup): Add error condition.
3389 * (grub_cmd_list_dns): Print DNS option.
3390 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3391 --prefer-ipv4, and --prefer-ipv6.
3392 * include/grub/net.h (grub_dns_option_t): New enum.
3393 * (grub_net_network_level_address): option added.
3395 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3397 * grub-core/video/fb/video_fb.c: Merge two blit functions
3400 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3402 * grub-core/term/terminfo.c: Add sequences for home and end.
3404 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3406 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3409 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3411 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3414 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3416 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3417 e-mail by Per Öberg.
3419 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3421 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3424 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3426 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3428 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3430 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3432 * docs/grub.texi: Document usage of menuentry id.
3434 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3436 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3438 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3440 * grub-core/commands/i386/nthibr.c: New command.
3442 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3444 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3446 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3448 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3451 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3453 Support GRUB_DISABLE_SUBMENU config.
3455 Inspired by patch from Prarit Bhargava.
3457 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3459 * docs/grub.texi: Mention RSA support.
3461 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3463 * grub-core/commands/verify.c: Add RSA support.
3465 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3467 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3468 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3469 device is known to be ATAPI.
3471 2013-11-03 Mike Frysinger <vapier>
3473 * configure.ac: Don't add target-prefix.
3475 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3477 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3480 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3482 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3483 if language is English.
3485 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3487 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3489 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3491 * configure.ac: Don't add -m32/-m64 on emu.
3495 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3496 broken linux headers.
3498 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3500 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3502 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3504 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3505 Reed-Solomon recovery if more than half of redundancy info is 0.
3507 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3509 * util/grub-mount.c: Handle symlinks to directories.
3511 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3513 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3514 find_file recursively for symlink.
3516 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3518 * tests/util/grub-shell.in: Copy themes.
3520 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3522 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3524 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3526 * configure.ac: Use 0x8000 for address instead of 8000.
3528 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3530 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3533 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3535 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3538 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3540 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3542 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3544 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3545 file_progress_read_hook.
3546 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3548 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3550 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3553 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3555 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3557 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3559 Rewrite blocklist functions in order to get progress when
3560 reading large extents and decrease amount of blocklist hook calls.
3562 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3564 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3567 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3569 Support --base-clock for serial command to handle weird cards with
3570 non-standard base clock.
3572 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3574 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3576 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3577 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3578 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3579 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3580 + strcpy rather than strncpy.
3582 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3584 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3585 (check_pool_label): Likewise. Fixes overflow.
3586 (nvlist_find_value): Fix comparison.
3588 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3590 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3591 more appropriate functions.
3593 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3595 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3598 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3600 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3602 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3604 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3607 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3609 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3611 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3613 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3614 (initialize_tables): reset tl and td to NULL after freeing.
3616 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3618 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3620 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3622 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3625 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3627 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3629 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3631 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3634 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3636 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3637 a page in protected space.
3639 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3641 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3642 allocate space for zero-sized modules.
3644 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3646 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3648 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3650 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3652 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3654 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3655 safeguards. Fixes a crash with i386/pc/console.c.
3657 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3659 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3660 and grub_hostfs_init.
3662 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3664 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3665 windows method on other platforms without good stat as well.
3667 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3669 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3671 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3673 Make / in btrfs refer to real root, not the default volume.
3674 Modify mkrelpath to work even if device is mounted with subvolid option.
3676 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3678 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3680 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3683 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3685 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3688 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3690 * docs/autoiso.cfg: New file.
3692 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3694 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3695 COND_GRUB_PE2ELF conditions.
3697 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3699 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3700 "vnd", "rd" and "fd" disks.
3702 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3704 Move grub_disk_write out of kernel into disk.mod.
3706 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3708 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3711 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3713 * grub-core/kern/misc.c (grub_abort): Make static
3715 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3717 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3718 transform invalid unicode codepoints.
3720 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3722 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3725 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3727 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3729 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3731 Consolidate cpuid code.
3733 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3735 Move cpuid code to cpuid.h and TSC code to tsc.c.
3737 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3739 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3741 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3743 * util/grub-mkconfig.in: Replace $0 with $self.
3744 * util/grub-reboot.in: Likewise.
3745 * util/grub-set-default.in: Likewise.
3747 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3749 * docs/osdetect.cfg: New file.
3751 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3753 * tests/util/grub-shell.in: Add new --debug option.
3755 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3757 * tests/test_unset.in: New test.
3759 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3761 * tests/test_sha512sum.in: New test.
3763 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3765 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3766 * include/grub/misc.h: Remove strncat.
3767 * grub-core/lib/posix_wrap/string.h: Likewise.
3769 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3771 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3772 Try to handle more than 0xFFFF packets.
3773 Reported by: Bernhard Übelacker <bernhardu>.
3774 He also spotted few overflows in first version of this patch.
3776 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3778 * tests/date_unit_test.c: New test.
3780 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3782 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3783 of first three years after start of validity of unixtime.
3785 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3787 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3788 division as the one making more sense.
3789 (update_screen): Likewise.
3790 (complete): Likewise.
3792 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3794 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3796 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3798 Make char and string width grub_size_t rather than grub_ssize_t.
3800 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3802 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3804 (grub_history_replace): Likewise.
3806 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3808 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3811 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3813 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3816 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3818 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3819 Use unsigned divisions rather than signed variants.
3821 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3823 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3824 unsigned arithmetics.
3827 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3829 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3831 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3833 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3834 rather than signed one.
3835 (recovery): Likewise.
3837 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3839 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3841 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3843 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3846 2013-10-25 Jon McCune <jonmccune@google.com>
3848 * docs/grub.texi: Cleanup security documentation around signatures.
3850 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3852 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3854 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3856 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3859 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3861 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3862 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3863 functions when compiling for kernel.
3865 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3867 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3868 unsigned long long when using %llu.
3870 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3872 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3873 terminal after updating progress.
3875 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3877 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3878 argument. We don't disable Gate A20 in this code.
3880 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3882 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3883 Conceptually based on change in branch "vbe-on-coreboot".
3885 2013-10-24 Robert Millan <rmh@gnu.org>
3887 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3888 numeric constants with their symbolic equivalent.
3889 Taken from branch "vbe-on-coreboot".
3891 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3893 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3895 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3897 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3898 divmod64 for offset division.
3900 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3902 Rename .bzrignore to .gitignore. Add "*.o" rule.
3904 * .bzrignore: Renamed to...
3905 * .gitignore: ...this.
3907 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3909 Add new progress module that displays the load progress of files.
3911 * grub-core/lib/progress.c: New file.
3912 * grub-core/Makefile.core.def (progress): New module.
3913 * grub-core/kern/file.c (grub_file_open): File name added.
3914 * (grub_file_read): Progress hook added.
3915 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3916 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3917 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3918 * include/grub/file.h (struct grub_file): Add progress module members.
3919 * include/grub/term.h (struct grub_term_output): Likewise.
3920 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3921 Terminal velocity added.
3922 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3923 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3924 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
3925 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
3926 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
3927 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
3928 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
3929 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
3930 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
3931 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
3932 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
3933 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
3935 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3937 Verify signatures of signatures unless --skip-sig is specified.
3939 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3941 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3944 Saves 70 bytes on compressed image.
3946 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3948 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
3951 Saves 10 bytes on compressed image.
3953 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3955 * grub-core/kern/misc.c (grub_isprint): Move to ...
3956 * include/grub/misc.h (grub_isprint): ... here. Make inline.
3958 Saves 20 bytes on compressed image due to remving exporting.
3960 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3962 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
3964 Saves 5 bytes on compressed image.
3966 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3968 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
3971 Saves 379 bytes on compressed image.
3973 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3975 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
3977 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3979 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
3981 Saves 40 bytes on compressed image.
3983 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3985 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
3986 mask rather than 64-bit type.
3988 Saves 20 bytes on compressed image.
3990 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3992 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
3993 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
3995 Saves 273 bytes on compressed image.
3997 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3999 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4000 variable length arrays.
4002 Saves 50 bytes on compressed image.
4004 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4006 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4008 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4010 * grub-core/fs/ufs.c: Remove variable length arrays.
4012 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4014 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4016 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4018 * grub-core/fs/zfs.c: Remove variable length arrays.
4019 Reduces zfs.mod by 160 bytes (208 compressed).
4021 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4023 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4025 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4027 * grub-core/net/arp.c: Remove variable length arrays.
4028 * grub-core/net/bootp.c: Likewise.
4029 * grub-core/net/dns.c: Likewise.
4030 * grub-core/net/icmp6.c: Likewise.
4031 * grub-core/net/net.c: Likewise.
4033 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4035 * grub-core/fs/ntfs.c: Remove variable length arrays.
4036 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4039 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4041 * grub-core/fs/hfs.c: Remove variable length arrays.
4042 Reduces hfs.mod by 8 bytes (52 compressed).
4044 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4046 * grub-core/fs/udf.c: Remove variable length arrays.
4047 Increases udf.mod by 128 bytes (but decreases by 13 when
4050 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4052 * grub-core/fs/iso9660.c: Remove variable length arrays.
4053 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4056 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4058 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4059 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4062 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4064 * grub-core/fs/xfs.c: Remove variable length arrays.
4065 Reduces xfs.mod by 40 bytes (43 compressed).
4067 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4069 * grub-core/fs/fshelp.c: Remove variable length arrays.
4070 Reduces fshelp.mod by 116 bytes (23 compressed).
4072 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4074 * grub-core/normal/completion.c: Remove variable length arrays.
4075 * grub-core/normal/menu_entry.c: Likewise.
4077 Reduces normal.mod by 496 bytes.
4079 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4081 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4082 by 356 bytes (158 compressed).
4084 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4086 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4087 by 364 bytes (169 compressed).
4089 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4091 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4092 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4093 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4095 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4097 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4098 bitmasks to small structures of size chosen to fit in registers.
4100 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4102 * conf/Makefile.common: Use -freg-struct-return on i386. This
4103 decreases code size and improves performance.
4105 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4107 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4109 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4111 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4113 Simplify expressions to save around 256 bytes in kernel.img.
4114 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4116 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4118 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4119 Use GRUB_UTIL_FD_O_* rather than O_*.
4121 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4123 Add haiku-specific functions.
4125 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4127 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4129 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4131 Move stat () and device mode checking into OS-dependent files as
4132 long as performance doesn't suffer.
4134 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4136 Split make_system_path_relative_to_its_root into separate file
4137 relpath.c from getroot.c as it's common between unix and haiku
4138 but otherwise haiku doesn't use any functions from unix getroot.c.
4140 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4142 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4144 (grub_util_is_special_file): Likewise.
4146 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4148 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4149 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4151 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4153 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4154 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4156 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4158 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4159 (load_image): Likewise.
4161 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4163 * util/grub-render-label.c: Move backend part to ...
4164 * util/render-label.c: ... here.
4166 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4168 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4169 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4171 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4173 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4175 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4177 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4178 CD-ROM in case when it's declared as having subpartitions.
4180 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4182 Don't add -lm on haiku.
4184 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4186 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4189 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4191 * configure.ac: Use -melf_*_haiku as target on haiku.
4193 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4195 * Makefile.util.def: Add util/setup.c to extra_dist.
4197 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4199 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4200 unknown types through.
4202 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4204 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4205 (grub_util_check_char_device): Likewise.
4206 * include/grub/emu/getroot.h: Likewise.
4208 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4210 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4211 memset rather than inline static function.
4213 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4215 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4216 not doing embedded decompressor.
4218 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4220 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4222 * grub-core/kern/disk.c: Likewise.
4223 * grub-core/kern/misc.c: Likewise.
4224 * include/grub/parser.h: Likewise.
4225 * include/grub/script_sh.h: Likewise.
4226 * include/grub/zfs/zfs.h: Likewise.
4228 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4230 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4232 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4234 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4235 defined before trying to use it.
4237 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4239 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4242 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4244 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4245 Use __unused__ rather than __used__ on gcc < 3.2.
4247 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4249 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4251 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4253 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4255 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4257 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4259 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4260 * include/grub/emu/misc.h: Likewise.
4262 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4264 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4267 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4269 * grub-core/tests/checksums.h: Regenerated due to progress bar
4270 get_minimal_size changes.
4272 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4274 Added `tr' command support.
4276 * grub-core/commands/tr.c: New file.
4277 * grub-core/Makefile.core.def: Build rules for new module.
4279 * tests/grub_cmd_tr.in: New test.
4280 * Makefile.util.def: Build rules for new test.
4282 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4284 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4286 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4288 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4289 * docs/gurb.texi: Likewise.
4291 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4293 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4294 Pixmap highlighted section with east and west slices was displayed
4295 incorrectly due to negative width of the central slice.
4297 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4299 * docs/grub.texi: Graphical options information update.
4300 Removed outdated. Updated current. Inserted missed.
4302 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4304 * docs/grub.texi: Mention few new platform-specific commands.
4306 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4308 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4309 currently used so this doesn't really have any effect.
4310 Reported by: Douglas Ray <dougray>
4312 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4314 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4315 compilation but prevents gcc from displaying messages in non-Latin
4317 * conf/Makefile.common: Likewise.
4319 2013-10-16 Hiroyuki YAMAMORI
4321 Handle Japanese special keys.
4322 Reported by: Hiroyuki YAMAMORI.
4323 Codes supplied by: Hiroyuki YAMAMORI.
4325 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4327 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4329 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4331 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4332 * docs/grub.texi: Likewise.
4334 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4336 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4337 value in case of incomplete read.
4338 (grub_util_fd_write): Likewise.
4340 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4342 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4344 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4346 * util/grub-editenv.c (create_envblk_file): More from here ...
4347 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4349 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4351 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4352 canonicalize file name before doing the rest.
4354 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4356 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4359 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4361 Define grub_util_is_directory/regular/special_file and
4362 use OS-dependent versions rather than to rely on stat().
4364 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4366 * util/grub-mkimage.c: Move backend part to ...
4367 * util/mkimage.c: ... here.
4369 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4371 Allow compilation with mingw64 albeit with warnings due to lack of
4374 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4375 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4376 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4377 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4379 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4381 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4383 Remove leftover references to some of the system headers.
4385 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4387 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4390 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4392 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4395 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4397 Split out blocklist retrieving from setup.c to
4398 grub-core/osdep/blocklist.c and add windows implementation since
4399 generic version doesn't work on NTFS on Windows due to aggressive
4402 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4404 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4407 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4409 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4410 Cut tailing newline. Remove arbitrary limitation. Always use
4411 grub_util_tchar_to_utf8.
4413 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4415 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4416 * tests/printf_unit_test.c (printf_test): Add %% tests.
4417 Reported by: Paulo Flabiano Smorigo.
4419 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4421 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4424 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4426 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4427 use nvlist_lookup_string and don't use nvlist_print.
4429 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4431 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4432 closedir to handle filename charset translation.
4434 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4436 * include/grub/emu/hostdisk.h: Move file operations to
4437 * include/grub/emu/hostfile.h: ... here.
4439 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4441 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4444 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4446 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4448 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4450 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4451 and remove export.h.
4453 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4455 * grub-core/kern/emu/error.c: Removed.
4456 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4457 explicitly as it's already in libgnu.a.
4459 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4461 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4462 config-util.h include.
4464 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4466 Split emunet into platform-dependent and GRUB-binding parts. Keep
4467 platform-dependent part in kernel for easy access to OS functions.
4469 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4471 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4474 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4476 * grub-core/osdep/windows/emuconsole.c: New file.
4478 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4480 * conf/Makefile.extra-dist: Add osdep/*/init.c
4482 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4484 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4486 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4488 * util/grub-probe.c (probe): Separate different drives in hint-str
4489 by spaces and not newlines.
4490 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4492 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4494 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4497 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4499 Pass-through unknown E820 types. It required reorganisation of mmap
4502 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4504 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4506 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4508 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4511 2013-10-14 qwertial <qwertial>
4513 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4515 2013-10-14 Jon McCune <jonmccune@google.com>
4517 * docs/grub.texi: Document new signatures possibility.
4519 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4521 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4523 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4525 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4527 (grub_util_tchar_to_utf8): Likewise.
4529 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4531 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4532 * grub-core/kern/emu/main.c: Add missing include.
4533 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4534 Don't call grub_util_init_nls.
4535 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4538 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4540 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4543 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4545 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4547 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4549 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4551 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4553 Add a wrapper for fopen. On unix-like systems just pass-through. On
4554 windows use unicode version.
4556 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4558 Move set_program_name and init_nls to host_init. On windows
4559 fix in this fuction console and argument charset as well.
4561 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4563 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4564 GRUB_ENABLE_CRYPTODISK.
4566 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4567 GRUB_ENABLE_CRYPTODISK.
4568 * util/grub-mkconfig_lib.in: Likewise.
4570 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4572 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4574 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4576 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4577 error when enabling debug.
4579 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4581 * configure.ac: Use -melf_*_obsd on openbsd.
4583 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4585 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4587 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4589 * include/grub/misc.h: Use gnu_printf rather than printf as format
4590 template since our functions are independent of libc.
4592 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4594 * util/grub-setup.c (setup): Move copying of partition table as
4595 futher up as possible to avoid possible overwrite by floppy routines.
4597 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4599 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4601 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4603 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4604 * docs/grub.texi: Likewise.
4606 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4608 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4609 it's mostly unused. Move vestiges to the callers.
4611 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4613 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4614 version of salt and hash. Use grub_snprintf rather than snprintf.
4616 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4618 * docs/grub.texi: Fix problem with braces.
4620 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4622 * conf/Makefile.extra-dist: Fix extra-dist list.
4623 * grub-core/Makefile.core.def: Likewise.
4625 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4627 * docs/grub.texi: Document disk names used on Windows and AROS.
4629 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4631 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4633 * grub-core/osdep/aros/hostdisk.c: Likewise.
4635 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4637 Avoid including hostfile.h when not necessarry as it pulls
4638 in OS-specific headers which may redefine generic names
4641 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4643 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4644 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4645 scrollbar_bottom_pad
4646 * docs/grub.texi: Likewise.
4648 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4650 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4652 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4654 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4656 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4658 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4660 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4663 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4665 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4668 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4670 Move OS-specific driver configuration to grub_util_fd_open. This
4671 moves OS-dependent parts from kern/emu/hostdisk.c to
4672 grub-core/osdep/*/hostdisk.c.
4674 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4676 * util/grub-mkimage.c (generate_image): Use size_t instead of
4678 * util/grub-mkimagexx.c (locate_sections): Likewise.
4679 (load_image): Likewise.
4681 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4683 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4685 (grub_util_write_image): Likewise.
4687 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4689 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4690 get random when no RNG is available.
4691 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4693 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4695 * include/grub/util/lvm.h: Removed.
4697 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4699 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4700 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4702 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4704 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4706 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4708 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4710 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4712 * grub-core/net/drivers/emu/emunet.c: Move to ..
4713 * grub-core/osdep/linux/emunet.c: ..here.
4715 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4717 * util/ieee1275/ofpath.c: Move to ...
4718 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4719 * grub-core/osdep/basic/ofpath.c: ..here.
4721 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4723 Move password-querying (util-version) routines to grub-core/osdep.
4725 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4727 Move sleep routines to grub-core/osdep.
4729 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4731 Move OS-dependent files to grub-core/osdep and document it.
4733 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4735 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4736 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4738 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4740 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4742 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4744 * util/misc.c: Remove leftover inclusion of malloc.h.
4746 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4748 * include/grub/setjmp.h: Remove leftover GRUBOF.
4750 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4752 * util/raid.c: Fold into ...
4753 * util/getroot_linux.c: ... here. Make all functions static.
4755 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4757 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4758 macros to GRUB ones.
4760 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4762 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4763 occasional bug. If there are too many boot entries or too low
4764 scrollbar height then we need to use another formula to calculate
4765 the position and size of the scrollbar thumb.
4767 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4769 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4771 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4773 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4774 * docs/grub.texi: Likewise.
4776 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4778 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4781 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4783 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4784 minimal width calculations.
4786 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4788 * docs/grub.texi: Update note on colors on emu console.
4790 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4792 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4793 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4794 it's FS and not GRUB limitation.
4796 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4798 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4800 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4802 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4804 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4806 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4807 kernels by version order.
4809 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4811 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4813 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4815 Add AROS hostdisk and getroot routines.
4817 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4819 Make cryptodisk and diskfilter probe data retrievable programmatically
4820 and not just printable.
4822 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4824 Split random retrieving code into separate files.
4826 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4828 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4831 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4833 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4835 * grub-core/tests/fake_input.c: Likewise.
4836 * grub-core/tests/cmdline_cat_test.c: Likewise.
4838 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4840 * grub-core/video/capture.c: Do not do finalization when .fini
4841 is called as there is explicit capture_end.
4843 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4845 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4846 changing windows to avoid crash.
4848 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4850 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4852 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4854 * po/exclude.pot: Add several strings to exclude.
4856 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4858 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4860 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4862 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4863 ./util/grub-gen-asciih.c to exclude list.
4865 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4867 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4868 and don't mark error strings for translation.
4870 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4872 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4873 properly in case of missing block size.
4875 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4877 * grub-core/lib/arm/setjmp.S: Add missing license section.
4879 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4881 * po/swiss.sed: Add replacement for key names and for term computer.
4883 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4885 * grub-core/gfxmenu/theme_loader.c: New global options for the
4886 theme background image handling. desktop-image-scale-method,
4887 desktop-image-h-align, desktop-image-v-align.
4888 * grub-core/gfxmenu/view.c: Likewise.
4889 * include/gfxmenu_view.h: Likewise.
4890 * include/bitmap_scale.h: Proportional scale functions introduced.
4891 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4892 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4893 cases of unexpected input variables for scale functions.
4894 * docs/grub.texi: Updated documentation for new options.
4896 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4898 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4900 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4902 * grub-core/tests/checksums.h: Corrected due to changes in
4903 bilinear interpolation function.
4905 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4907 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4908 to eliminate artefacts in bilinear interpolation.
4910 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4912 * grub-core/video/readers/tga.c: Support paletted tga.
4914 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4916 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4917 incorrect cbcr setting when in color mode.
4919 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4921 * grub-core/video/readers/png.c: Support paletted images and clean up
4924 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4926 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
4927 usage of wrong table which resulted in mishandling of 4-byte
4930 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4932 * grub-core/term/terminfo.c: Add Home and End key sequences.
4934 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4936 * grub-core/video/readers/png.c (grub_png_decode_image_header):
4937 Fix formula for computing total number of bytes.
4939 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4941 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
4942 image processing, fix big-endian and support grayscale.
4944 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4946 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
4947 Correctly will with maximum transparency when using index color.
4949 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4951 * grub-core/video/readers/png.c: Support grayscale
4953 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4955 * grub-core/video/readers/jpeg.c: Support grayscale.
4957 2013-09-26 Jon McCune <jonmccune@google.com>
4959 * grub-core/commands/loadenv.c: Support skipping signature check
4960 and variable names filtering.
4962 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4964 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
4965 * grub-core/kern/emu/hostfs.c: Likewise.
4966 * util/getroot_unix.c: Likewise.
4968 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4970 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
4971 Migrate all explicit defines to this new one.
4973 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4975 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
4976 grub_util_fd_strerror when using grub_util_fd_*.
4977 (grub_util_fd_open_device): Likewise.
4978 (grub_util_biosdisk_read): Likewise.
4979 (grub_util_biosdisk_write): Likewise.
4980 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
4981 (grub_util_fd_strerror): Likewise.
4982 (grub_util_fd_sync): Likewise.
4983 (grub_util_fd_close): Likewise.
4984 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
4985 (grub_util_fd_close): Likewise.
4986 (grub_util_fd_strerror): Likewise.
4987 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
4988 function proto rather than macro.
4989 (grub_util_fd_sync): Likewise.
4990 (grub_util_fd_open): Likewise.
4991 (grub_util_fd_strerror): New proto.
4993 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4995 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
4996 platforms on which it doesn't work.
4998 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5000 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5001 stat immediately to where it's used.
5003 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5005 * util/getroot.c (grub_util_check_block_device): Move to ...
5006 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5007 * util/getroot.c (grub_util_check_char_device): Move to ...
5008 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5010 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5012 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5015 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5017 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5019 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5021 * docs/grub.texi (File name syntax): Document ZFS filenames
5022 (/volume@snapshot/...).
5024 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5026 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5027 Always return full path. Fixes a problem with mkrelpath.
5029 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5031 * util/grub-install.in: Add GPT PReP support.
5032 * util/grub-probe.c (probe): Support GPT partition type.
5033 (main): Support -t gpt_parttype.
5035 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5037 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5039 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5041 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5043 2013-09-23 Tim Hardeck <thardeck>
5045 * util/grub.d/10_hurd.in: Filter out character for the class.
5046 * util/grub.d/10_kfreebsd.in: Likewise.
5047 * util/grub.d/10_linux.in: Likewise.
5048 * util/grub.d/20_linux_xen.in: Likewise.
5050 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5052 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5055 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5057 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5060 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5062 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5063 doesn't use posix_wrap. Keep literal -fno-builtin however.
5065 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5067 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5069 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5072 * configure.ac: Do not enable -Wmissing-noreturn as its
5073 usefulness is limited and creates problems on some OS notably with
5074 code generated by bison.
5076 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5079 * configure.ac: Do not explicitly enable -Waddress as it's not
5080 supported by all gcc and when it is, it's already enabled by -Wall.
5082 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5084 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5085 desactivated use of EDID at all.
5087 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5090 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5091 video if no text is available.
5093 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5096 * configure.ac: Substitute TARGET_RANLIB.
5098 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5101 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5103 Based on patches from AROS.
5105 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5108 * grub-core/Makefile.am: Override STRIP and RANLIB.
5109 * configure.ac: compute TARGET_RANLIB.
5110 * INSTALL: Document TARGET_RANLIB
5112 Based on patches from AROS.
5114 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5116 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5117 that floppies are unpartitioned.
5119 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5121 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5122 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5124 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5126 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5127 less nice but more portable.
5128 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5130 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5132 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5134 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5136 (grub_cryptodisk_cheat_insert): Likewise.
5137 (grub_cryptodisk_close): Likewise.
5139 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5141 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5142 Use windows path for DEFAULT_DIRECTORY.
5144 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5146 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5147 difference was likely just gcc version, not anything mingw-related.
5149 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5151 Use Winapi on both cygwin and mingw32 to share more code between both.
5153 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5155 * util/grub-install.in: Add --grub-editenv option.
5156 * util/grub-install_header (grub_compress_file): Explicitly check for
5157 plain file to avoid cp error.
5159 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5161 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5162 names; fix LVM driver name (lvm, not lv).
5163 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5166 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5168 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5169 files rather than one file with loads of #if's.
5170 * util/getroot.c: Likewise.
5172 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5174 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5176 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5178 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5179 GNU/Hurd to the list of checked PRNG.
5181 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5183 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5185 2013-09-21 Ales Nesrsta <starous@volny.cz>
5187 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5189 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5191 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5192 * grub-core/disk/lvm.c: Add LVM UUIDs.
5193 * util/getroot.c: Use LVM UUIDs whenever possible.
5195 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5197 * docs/grub.texi (Networking commands): Add documentation for
5198 network related commands.
5200 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5202 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5203 to determine if device is handled by devmapper.
5204 (convert_system_partition_to_system_disk): Likewise.
5205 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5206 already done in grub_util_open_dm.
5208 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5210 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5211 Clean up stack manipulation (sync_caches_armv*)
5213 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5215 * util/lvm.c: Remove since unused. Remove remaining references.
5217 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5219 Handle the case of partitioned LVM properly.
5221 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5222 Stop on meeting LVM, mpath or DMRAID.
5223 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5224 (read_device_map): Likewise.
5225 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5226 device is full disk rather than erroring out on LVM and similar cases.
5228 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5230 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5232 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5234 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5236 Reported by: Leif Lindholm
5238 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5239 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5241 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5244 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5246 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5247 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5249 2013-09-18 Douglas Ray <dougray@cpan.org>
5251 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5254 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5256 * docs/grub.texi: Fix broken link.
5258 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5260 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5261 to break endless loop.
5263 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5265 * util/grub-fstest.c: Fix several printf formats.
5266 * util/grub-mkimage.c: Likewise.
5267 * util/grub-mkimagexx.c: Likewise.
5268 * util/grub-script-check.c: Likewise.
5270 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5272 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5275 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5277 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5279 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5281 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5282 removed in current versions cygwin_conv_*.
5284 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5286 * configure.ac: Disable efiemu runtime on cygwin.
5288 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5290 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5291 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5293 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5295 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5298 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5300 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5302 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5305 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5307 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5308 when on x86 and not cygwin.
5309 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5312 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5314 * configure.ac: Set CPP to build one when checkoing for freetype for
5317 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5319 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5320 [!GRUB_BUILD]: Remove has_argument.
5322 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5324 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5325 Replace with a dummy.
5327 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5329 * configure.ac: Don't change host_os from mingw to cygwin.
5331 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5333 * configure.ac: Change target_os from windows to cygwin.
5335 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5337 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5339 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5340 (build-grub-gen-asciih): Likewise.
5341 (build-grub-gen-widthspec): Likewise.
5342 * Makefile.util.def (grub-pe2elf): Remove.
5343 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5344 * configure.ac: Separate tests for build.
5345 Move ./build-grub-pe2elf to grub-core.
5347 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5348 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5350 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5352 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5353 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5354 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5356 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5358 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5359 mingw32 as well based on grub_util_get_disk_size.
5360 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5361 grub_util_get_fd_size.
5363 (fsync): Moved to ...
5364 * grub-core/kern/emu/misc.c (fsync): ... here.
5366 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5368 * include/grub/mm.h (grub_extend_alloc): Remove.
5369 * grub-core/loader/i386/pc/plan9.c: Use own version of
5370 grub_extend_alloc with appropriate types.
5372 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5374 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5376 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5378 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5380 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5382 Fix dependencies on cygwin.
5384 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5385 dependencies when used and defined.
5386 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5388 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5390 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5391 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5393 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5395 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5396 implementation available to cause compile-time rather than runtime
5399 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5401 * util/grub-fstest.c: Don't check for symlinks on windows.
5403 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5405 * INSTALL: Mention unavailability of man pages when cross-compiling.
5407 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5409 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5411 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5413 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5415 * INSTALL: Document cross-compilation.
5416 * acinclude.m4: Determine whether nm support -P and --defined-only.
5417 * configure.ac: Add TARGET_ to all variables pertaining to target
5418 that don't have it yet.
5419 * gentpl.py: Likewise.
5420 * grub-core/Makefile.am: Likewise.
5421 * grub-core/genmod.sh.in: Likewise.
5422 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5425 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5427 * configure.ac: Remove -Wempty-body. It's not essential and needs
5430 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5432 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5433 * util/getroot.c: Likewise.
5435 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5437 * grub-core/disk/ahci.c: Add needed explicit cast.
5438 * grub-core/lib/backtrace.c: Likewise.
5439 * grub-core/net/ip.c: Likewise.
5440 * grub-core/net/tcp.c: Likewise.
5441 * grub-core/net/udp.c: Likewise.
5443 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5445 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5447 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5449 * util/import_gcry.py: Add final newline in visibility.h.
5451 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5453 * conf/Makefile.common: Fix typo.
5455 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5457 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5459 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5461 * Makefile.am (widthspec.h): Fix typo.
5462 * util/grub-gen-widthspec.c: Likewise.
5464 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5466 Move ascii.h and widthspec.h generation to a separate build-time-only
5469 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5471 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5472 Always fill bootdisk info and improve check for NetBSD disklabel.
5474 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5476 * conf/Makefile.extra-dist: Add util/bin2h.c.
5477 Reported by: floppym.
5479 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5481 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5483 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5485 * configure.ac: Disable unifont and starfield if no freetype was found.
5487 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5489 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5490 on NetBSD and OpenBSD.
5492 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5494 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5496 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5498 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5499 reduced. Inheritant options are processed during the theme loading.
5501 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5503 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5505 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5507 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5509 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5511 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5514 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5516 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5517 remove-potcdate.sed.
5519 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5521 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5522 unused attribute from pull argument.
5524 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5526 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5529 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5531 * util/getroot.c (pull_lvm_by_command): add --separator option
5532 to vgs call to disable padding of output to 10 characters.
5534 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5536 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5538 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5541 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5543 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5546 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5548 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5549 full Canadian cross. Tested with build=x86_64, host=arm,
5550 target=ppc-ieee1275.
5552 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5554 * configure.ac: Error if no $BUILD_CC could be found.
5557 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5559 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5562 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5564 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5565 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5567 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5569 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5570 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5571 falling back to the partition device, otherwise a later call to this
5572 function may fail spuriously.
5573 Reported by Axel Beckert. Fixes Debian bug #708614.
5575 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5577 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5579 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5581 Prevent shadowing of stdlib's devname(3) on BSD.
5583 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5584 and devlast to diskname and disklast, respectively.
5586 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5588 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5590 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5592 * docs/grub.texi: Introduce terminal window position options:
5593 terminal-left: terminal window's left position
5594 terminal-top: terminal window's top position
5595 terminal-width: terminal window's width
5596 terminal-height: terminal window's height
5597 terminal-border: terminal window's border width
5598 * grub-core/gfxmenu/theme-loader.c: Likewise.
5599 * include/grub/gfxmenu_view.h: Likewise.
5600 * po/exlude.pot: Likewise.
5601 * grub-core/gfxmenu/view.c: Likewise.
5602 Also updated minimal window size.
5603 Also terminal_sanity_check function has been introduced.
5604 * grub-core/tests/checksums.h: Update (terminal window height
5605 is adjusted now for low resolution screen)
5607 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5609 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5612 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5614 * po/exclude.pot: Add few recent exceptions.
5616 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5618 * tests/grub_func_test.in: Add unicode.pf2.
5620 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5622 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5623 standard rather than noral color, in line with other terminals.
5625 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5627 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5630 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5632 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5634 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5636 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5637 inappropriate printf.
5639 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5641 * .bzrignore: Remove grub-core/lib/dtc-grub,
5642 grub-core/Makefile.libfdt.def
5643 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5645 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5647 * include/grub/video.h (grub_video_register): Keep double-linked as
5648 well as single-linked invariants.
5649 Reported by: qwertial.
5651 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5653 * grub-core/commands/nativedisk.c (get_uuid): Handle
5654 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5656 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5658 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5659 maximum of NW, N, NE heights instead of N's height and maximum of
5660 NW, W, SW widths instead of W's width. (So the box will be always
5663 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5665 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5666 Fix misuse of variable count.
5668 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5669 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5670 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5672 New ports to arm-uboot and arm-efi.
5673 Mostly by Leif Lindholm with some additions from
5674 Francesco Lavra and cleanup by Vladimir Serbinenko.
5676 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5678 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5680 Reported by: Leon Drugi.
5682 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5684 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5685 Reported by: Paulo Flabiano Smorigo.
5687 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5689 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5691 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5693 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5695 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5697 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5699 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5701 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5703 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5705 * grub-core/net/bootp.c: Export net_* variables.
5706 * grub-core/net/net.c: Likewise.
5708 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5710 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5712 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5714 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5716 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5718 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5720 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5722 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5724 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5726 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5729 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5731 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5734 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5736 * grub-core/fs/zfs/zfs_lz4.c: New file.
5737 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5739 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5741 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5743 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5745 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5746 (check_pool_label): Likewise.
5747 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5749 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5751 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5753 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5755 * docs/grub.texi (Commands): Document postition parameters
5756 for menuentry command.
5758 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5760 * util/grub-mknetdir.in: Remove stray line from help output.
5762 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5764 Remove early sm712 init as there is no reason for it (the "watchdog"
5765 effect was due to wrong GPIO map).
5767 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5769 * grub-core/commands/pcidump.c: Remove static variables.
5771 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5773 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5775 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5777 * configure.ac: Move delimiter after the infos.
5779 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5781 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5783 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5785 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5786 not filling whole 8x16 space.
5788 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5790 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5792 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5794 * configure.ac: Indicate which liblzma is used if any.
5796 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5797 2013-06-21 Craig Sanders <savannah@taz.net.au>
5799 * util/grub-reboot.in: Document submenu usage.
5801 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5803 * .bzrignore: Update with a number of new test-related files.
5805 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5807 * util/grub-script-check.c: Fail on scripts containing no
5808 commands, to guard against corrupted grub-mkconfig setups that
5809 produce no useful output.
5810 * tests/grub_script_no_commands.in: New test.
5811 * Makefile.util.def (grub_script_no_commands): Add.
5812 Reported by Hans Putter. Fixes Debian bug #713886.
5814 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5816 * grub-core/disk/diskfilter.c: Forgot to remove comment
5817 from previous commit.
5819 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5821 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5822 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5824 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5826 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5828 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5830 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5831 rescan diskfilter devices until nothing new is found.
5833 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5835 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5837 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5839 Don't try to detect cbfs on *-emu.
5841 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5843 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5845 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5847 Add support for processed coreboot payload chainloading.
5849 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5851 Enable coreboot information commands even when not loaded as
5852 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5854 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5856 Support for cbfs. Also factor out the part which is common
5857 for all archives to a separate module. This splits tar from cpio
5858 as they are very different but keeps cpio, cpio_be, odc and newc
5859 together since they're very similar.
5861 2013-06-15 David Michael <fedora.dm0@gmail.com>
5863 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5864 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5866 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5868 * tests/grub_script_eval.in: Really add the eval test.
5870 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5872 Move flavour-specific parts out of common cpio.c file and
5873 rename remaining to cpio_common.c
5875 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5877 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5878 off new function grub_script_execute_new_scope. Change callers to use
5879 either of them as appropriate.
5880 * grub-core/commands/eval.c: New command eval.
5881 * docs/grub.texi (Commands): Document it.
5883 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5885 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5886 to fetch values when listing.
5888 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5890 Fix make dist on non-pc.
5892 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
5894 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5895 without a device name.
5897 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5899 Remove enable_executable_check as it's not needed anymore.
5900 Reported by: dougray.
5902 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5904 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5905 ambigouos RAID before discovering RAIDs on top of it.
5908 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5910 Fix typo (failback vs fallback).
5912 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5914 * util/grub.d/30_os-prober.in: Add support for probing EFI
5915 System Partition (as of os-prober 1.58).
5917 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5919 * configure.ac: Add yet another path to unifont. For parabola.
5921 2013-05-30 Josh Triplett <josh@joshtriplett.org>
5923 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5924 handling to copy the killed characters to the kill buffer as
5925 UCS4 stored as grub_uint32_t rather than as 8-bit characters
5926 stored as char. Eliminates UCS4 truncation and corruption
5927 observed when killing characters with Ctrl-u and yanking them
5930 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5932 Detach optional parts of gfxterm and integrate in with coreboot init.
5934 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5936 Move blit and fill dispatcher to appropriate files to decrease export
5937 and relocation overhead.
5939 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5941 * grub-core/font/font.c, include/grub/font.h: Inline simple font
5944 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5946 * grub-core/Makefile.am: Fix compilation problem with some
5949 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5951 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
5953 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5955 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
5958 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5960 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
5963 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
5965 * grub-core/partmap/dfly.c: New partition map.
5967 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5969 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
5971 Reported by: Francesco Lavra.
5973 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
5975 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
5976 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
5978 * conf/Makefile.common: define dist_grubconf_DATA
5980 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5982 Progressively skip menu elements on small terminals rather
5985 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5987 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
5988 to avoid losing last column.
5990 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5992 * po/exclude.pot: Add missing string "%C".
5994 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5996 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
5999 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6001 * util/grub-install.in: Gettextize "Not found" message.
6003 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6006 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6008 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6010 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6012 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6014 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6016 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6018 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6020 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6021 attribute since structure is not necessarily aligned.
6023 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6025 * docs/grub.texi (Device syntax): Clarify description of network
6028 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6030 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6031 for vasprintf presence.
6033 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6035 * util/grub-install.in: Handle efibootmgr presence check.
6036 Reported by: Leif Lindholm.
6038 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6040 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6041 new strings to translate.
6043 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6045 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6046 yet another string (pun intended) to translate.
6048 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6050 * po/POTFILES-shell.in: Autogenerate it.
6052 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6054 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6056 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6058 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6061 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6063 * docs/grub.texi (Network): Add description of net_default_interface,
6064 net_default_ip and net_default_mac. Rewrite variables description
6065 to emphasize that they are per-interface.
6067 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6069 New test: cmdline and cat.
6071 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6073 * grub-core/commands/cat.c: Show UTF-8 characters.
6075 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6077 * conf/Makefile.common: Poison float and double on non-emu.
6079 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6081 * configure.ac: Don't disable extended registers on emu.
6083 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6085 * configure.ac: Don't use extended registers on x86_64.
6086 Reported by: Peter Jones.
6088 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6090 * grub-core/term/efi/console.c: Fix compile error.
6092 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6094 Compressed HFS+ support.
6096 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6098 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6101 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6105 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6107 * grub-core/tests/setjmp_test.c: New test.
6109 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6111 New variables 'net_default_*' to determine MAC/IP of default interface.
6113 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6115 * tests/gettext_strings_test.in: A test to check for strings not
6116 marked for translation.
6118 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6120 * autogen.sh: Exclude unused libgcrypt files from translation.
6122 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6124 Simplify few strings.
6126 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6128 Mark few forgotten strings for translation.
6130 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6132 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6135 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6137 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6139 * grub-core/video/readers/tga.c: Likewise.
6141 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6143 * tests/priority_queue_unit_test.cc: New test.
6145 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6147 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6150 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6152 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6153 variable for one time boot menu entry.
6155 2013-05-05 Bean <bean123ch@gmail.com>
6157 * grub-core/commands/testspeed.c: New command testspeed.
6159 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6161 Factor-out human-size printing.
6163 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6165 Agglomerate more mallocs to speed-up gfxterm.
6167 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6169 Speed-up gfxterm by slightly agglomerating mallocs.
6171 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6175 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6177 Speed-up gfxterm by saving intermediate results in index+alpha
6180 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6182 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6185 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6187 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6188 line of timeout as it may contain the rest of long line.
6190 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6192 * grub-core/normal/main.c: Fix freed memory dereference.
6194 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6196 Fix several memory leaks.
6198 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6200 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6202 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6204 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6206 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6208 Fix test -a and -o precedence.
6209 Reported by: adrian15.
6211 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6213 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6215 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6217 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6218 and add it as source to functional_test module.
6220 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6222 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6224 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6226 New series of tests for gfxterm and gfxmenu.
6228 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6230 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6231 the theme path relative to $prefix/themes.
6233 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6235 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6237 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6239 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6241 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6244 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6246 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6247 grub_gfxmenu_timeout_notifications.
6248 (grub_gfxmenu_view_destroy): Likewise.
6250 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6252 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6254 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6256 Several fixes to ieee1275 and big-endian video.
6258 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6260 Add missing exports on mips.
6262 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6264 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6265 if no unifont is found.
6266 Restore original keyboard.
6268 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6270 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6271 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6273 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6275 First automated video test (running videotest and comparing results)
6277 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6279 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6280 instead of 2 to have full RGB/CMY test pattern.
6282 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6286 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6288 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6289 ARCS. All users updated.
6291 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6293 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6295 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6297 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6299 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6301 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6302 Reported by: qwertial.
6304 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6306 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6307 with syntax "XXX deg"/"XXX °".
6309 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6311 Make PCI init in i386-qemu port more robust.
6313 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6315 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6316 cached view is reused.
6317 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6320 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6322 Unify more code in grub-install_header.
6324 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6328 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6330 Enforce disabling of firmware disk drivers when native drivers kick in.
6332 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6334 * grub-core/commands/nativedisk.c: Customize the list of modules on
6335 platform. Don't try to search for disks already using native drivers.
6337 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6339 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6342 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6344 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6345 handling of variables containing backslash.
6347 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6349 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6351 Reported by: qwertial.
6353 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6355 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6357 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6359 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6361 Reported by: qwertial.
6363 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6365 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6367 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6369 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6371 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6373 New command `nativedisk'.
6375 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6377 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6378 * grub-core/loader/i386/bsd.c: Likewise.
6380 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6382 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6384 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6386 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6387 grub_get_unaligned16 rather than shifts.
6389 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6391 * grub-core/kern/file.c: Use const char * rather than casting to
6394 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6396 * grub-core/commands/probe.c: Add missing grub_device_close.
6398 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6400 * INSTALL: Document linguas.sh.
6402 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6404 Remove POTFILES.in and regenerate it in autogen.sh.
6406 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6408 Move --directory/--override-directorry to grub-install_header and unify.
6410 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6412 * grub-core/term/morse.c: Macroify dih and dah.
6414 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6416 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6418 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6420 * grub-core/term/ns8250.c: Systematically probe ports by writing
6421 to SR before using them.
6423 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6425 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6427 (check_sas): Get sas_adress info.
6429 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6431 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6434 2013-04-27 Leon Drugi <eyak>
6436 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6439 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6441 Core compression test.
6443 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6445 Implement grub_machine_get_bootlocation for ARC.
6447 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6449 Improve AHCI detection and command issuing.
6451 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6455 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6457 Make 'make check' work on emu.
6459 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6461 Replace libcurses with our own vt100 handling for the ease of testing
6462 and decreasing prerequisites.
6464 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6466 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6468 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6470 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6471 compile when not needed.
6473 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6475 * tests/pseries_test.in: New test.
6477 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6479 Add test to check that different boot mediums work.
6481 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6483 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6484 ofw limited ISO support.
6486 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6488 * configure.ac: Fix loongson conditional.
6490 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6494 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6496 Add serial on ARC platform.
6498 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6500 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6503 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6505 * tests/partmap_test.in: Add missing double semicolon.
6507 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6509 * util/grub-mkrescue.in: Fix loongson filename.
6511 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6513 * util/grub-mkrescue.in: Move all files that don't have a location
6514 set in stone under /boot/grub. Use ISO hard links rather than copies
6517 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6519 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6522 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6524 Make check work on mips-arc.
6526 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6528 * util/grub-mkrescue.in: Alias sashARCS as sash.
6530 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6532 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6535 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6537 * util/grub-install.in: Fix target fo qemu_mips.
6538 Fix extension on EFI.
6540 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6542 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6543 in front of chosen entry to mark it even if highlighting is lost.
6545 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6547 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6548 gfxpayload=keep if cbfb is active.
6550 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6552 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6554 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6556 Add missing video ids to coreboot and ieee1275 video.
6558 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6560 * util/grub-mkrescue.in: Add mips-arc support.
6562 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6564 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6566 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6568 Move mips-arc link address. Previous link address was chosen
6569 in belief that RAM on SGI platforms grows down while in fact it
6570 grows up from an unusual base.
6572 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6574 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6575 Fix a type which prevented CD-ROM and floppy boot.
6577 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6579 Support coreboot framebuffer.
6581 * grub-core/video/i386/coreboot/cbfb.c: New file.
6583 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6585 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6586 detecting too small regions.
6588 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6590 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6592 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6594 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6596 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6598 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6600 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6601 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6602 * grub-core/loader/powerpc/ieee1275/linux.c
6603 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6605 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6607 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6608 Look for /boot-rom as well as /rom/boot-rom.
6610 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6612 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6613 handling when creating text_layer failed.
6614 * grub-core/video/video.c (grub_video_create_render_target):
6615 Set result to 0 on error.
6616 (grub_video_delete_render_target): Do not dereference NULL.
6618 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6620 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6621 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6622 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6623 (grub_linux_load64): Mask out 2 high bits.
6625 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6627 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6630 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6632 Add support for pseries and other bootinfo machines to grub-mkrescue.
6634 Tested by: Paulo Flabiano Smorigo.
6636 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6638 * util/grub-mkrescue.in: Add GPT for EFI boot.
6640 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6642 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6643 It improves performance in qemu.
6645 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6647 * build-aux/snippet: Add missing gnulib files.
6649 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6651 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6653 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6655 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6657 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6658 2013-04-15 Peter Jones <pjones@redhat.com>
6660 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6662 Based on patch by Peter Jones.
6664 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6666 Fix DMRAID partition handling.
6668 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6670 * tests/grub_cmd_date.in: Skip on sparc64.
6672 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6674 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6675 firmware error messages.
6677 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6679 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6680 source and destination differ.
6682 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6684 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6687 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6689 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6690 match config-util.h to avoid warnings and increase compatibility.
6692 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6693 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6695 Add option to compress files on install/image creation.
6697 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6699 * docs/grub-dev.texi: Rearrange menu to match the section order.
6700 Reported by: Bryan Hundven.
6702 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6704 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6706 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6708 Move GRUB out of system area when using xorriso 1.2.9 or later.
6710 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6712 * tests/grub_cmd_date.in: Add missing exit 1.
6714 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6716 * tests/partmap_test.in: Skip on sparc64.
6718 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6720 Support grub-shell on sparc64.
6722 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6724 Support mkrescue on sparc64.
6726 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6728 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6729 Needed on OpenBIOS due to incomplete device tree.
6731 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6733 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6734 would be otherwise excluded.
6736 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6738 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6739 Inline name defines used only once.
6741 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6743 Fix memory leaks in ofnet.
6744 Reported by: Francesco Lavra.
6746 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6748 * docs/man/grub-glue-efi.h2m: Add missing file.
6750 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6752 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6754 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6756 Better support Apple Intel Macs on CD.
6758 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6760 Replace stpcpy with grub_stpcpy in tools.
6762 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6764 Handle Japanese special keys.
6765 Reported by: Hiroyuki YAMAMORI.
6766 Codes supplied by: Hiroyuki YAMAMORI.
6768 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6770 * util/grub-mkimage.c: Document memdisk implying --prefix.
6772 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6774 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6775 much we can do about it anyway.
6777 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6779 Fix handling of split transfers.
6781 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6783 * grub-core/net/http.c: Fix bad free.
6785 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6787 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6790 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6792 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6794 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6796 * tests/util/grub-shell.in: Fix it on powerpc.
6798 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6800 Turn off QEMU ACPI-way since new releases don't have shutdown port
6803 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6805 * docs/grub.texi: Update coreboot status info.
6807 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6809 * tests/grub_cmd_date.in: New test for datetime.
6811 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6813 * tests/partmap_test.in: Fix missing qemudisk setting.
6815 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6817 Support i386-ieee1275 grub-mkrescue and make check on it.
6819 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6821 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6824 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6826 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6827 GRUB_CMDLINE_XEN_DEFAULT.
6828 Reported by: Marc Warne (GigaTux) <gigatux>
6830 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6834 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6836 Use ACPI shutdown intests as traditional port was removed.
6838 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6840 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6843 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6845 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6846 Fix few warining messages and leaks while on it.
6848 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6850 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6851 links under grub-core/lib/libgcrypt-grub/mpi.
6853 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6855 Fix ia64-efi image generation on big-endian machines. Deduplicate
6856 some code while on it.
6857 Reported by: Leif Lindholm.
6859 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6861 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6864 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6866 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6868 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6870 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6873 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6875 * grub-core/normal/term.c: Few more fixes for menu entry editor
6877 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6879 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6881 * grub-core/normal/term.c: Few more fixes for menu entry editor
6883 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6885 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6887 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6888 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6890 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6892 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6893 instead of hardcoding grub.mo.
6895 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6897 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6899 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6901 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6902 grub-core/disk/geli.c.
6904 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6906 * util/grub-mkfont.c: Prefer enum to #define.
6908 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6910 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6912 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6914 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6916 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6918 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6920 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6922 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6924 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6926 * include/grub/bsdlabel.h: Use enums.
6928 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6930 Move GRUB_CHAR_BIT to types.h.
6932 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6934 * docs/grub.texi: Document more user commands.
6936 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6938 * docs/grub.texi: Document menuentry --id option.
6940 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
6942 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
6944 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6946 Unify file copying setup across different install scripts. Add
6947 options for performing partial install.
6949 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6950 2013-04-04 Peter Jones <pjones@redhat.com>
6952 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
6954 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6956 Use TSC as a possible time source on i386-ieee1275.
6958 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6960 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
6963 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6965 * util/grub-setup.c (setup): Handle some corner cases.
6967 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6969 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
6971 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6973 * grub-core/commands/verify.c: Save verified file to avoid it being
6974 tampered with after verification was done.
6976 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6978 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
6979 reported width by one to compensate for curesor algorithm problem.
6981 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6983 Fix screen corruption in menu entry editor and simplify the code
6986 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
6988 * util/grub-mount.c (fuse_init): Return error if fuse_main
6991 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
6993 * include/grub/elf.h: Add missing ARM relocation codes and fix
6996 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6998 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7000 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7001 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7003 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7004 into account when calculating radius.
7006 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7008 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7010 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7012 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7014 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7016 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7017 missing closing bracket.
7019 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7021 * INSTALL: Mention xorriso requirement.
7023 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7025 * grub-core/commands/verify.c: Fix hash algorithms values for
7026 the first three hashes - they start with 1, not with 0.
7028 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7030 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7031 Try terminating EFI services several times due to quirks in some
7034 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7036 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7037 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7038 BankField extended opcodes.
7039 (get_sleep_type): Add minimal scope handling (just enough to
7040 handle setting the scope to the root path).
7041 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7042 * include/grub/acpi.h: Add enumeration values for Event, Device,
7043 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7045 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7047 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7050 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7052 * grub-core/disk/ahci.c: Give more time for AHCI request.
7054 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7056 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7059 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7061 Replace the region at 0 from coreboot tables to available in BSD
7064 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7066 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7069 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7071 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7074 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7076 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7077 handling of multi-device filesystems.
7079 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7081 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7084 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7086 Add new 'proc' filesystem framework and put luks_script into it.
7088 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7090 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7093 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7095 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7097 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7099 Add ability to generate newc additions on runtime.
7101 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7103 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7106 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7108 * po/POTFILES.in: Regenerate.
7110 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7112 * grub-core/commands/verify.c (hashes): Add several hashes
7115 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7117 Slight improve in USB-related boot-time checkpoints.
7119 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7121 * grub-core/commands/boottime.c: Fix copyright header.
7123 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7125 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7126 coreboot tables content. Support for cbmemc.
7128 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7130 Fix a conflict between ports structures with 2 controllers of
7133 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7135 * include/grub/boottime.h: Add missing file.
7137 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7139 Initialize USB ports in parallel to speed-up boot.
7141 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7143 Fix USB devices not being detected when requested
7144 due to delayed attach.
7146 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7148 Implement boot time analysis framework.
7150 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7152 Remove get_endpoint_descriptor and change all functions needing
7153 descriptor to just receive it as argument rather than endpoint
7156 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7158 Better estimate the maximum USB transfer size.
7160 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7162 Resend a packet if we got the wrong buffer in status.
7164 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7166 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7167 multiplication rather than division.
7169 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7171 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7174 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7176 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7177 operations to have intended shifts and not divisions.
7179 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7181 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7182 intended shifts rather than division.
7184 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7186 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7187 computation for some years before epoch. Avode confusing division
7190 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7192 * grub-core/video/i386/pc/vbe.c
7193 (grub_video_vbe_print_adapter_specific_info): Replace division by
7196 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7198 Adjust types in gdb module to have intended unsigned shifts rather than
7201 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7203 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7204 maximum size is 4G - 1 on hfs
7206 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7208 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7210 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7212 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7215 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7217 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7218 causing gcc error with gcc 4.7.1.
7220 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7222 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7223 dereference null pointer. While the code is technically correct, gcc
7224 may eliminate a null check if pointer is already dereferenced.
7226 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7228 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7230 * grub-core/normal/term.c (read_terminal_list): Likewise.
7232 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7234 Lift up core size limits on some platforms. Fix potential memory
7235 corruption with big core on small memory systems. Document remaining
7238 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7240 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7243 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7245 Remove all trampoline support. Add -Wtrampolines when
7246 present. Remove symbols used for trampolines to make
7247 link fail if trampolines are present.
7249 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7251 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7252 append out of its parent.
7254 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7256 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7259 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7261 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7262 all vars to a macro. All users updated.
7264 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7266 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7269 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7271 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7273 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7275 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7277 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7279 Move to more hookless approach in IEEE1275 devices handling.
7281 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7283 * grub-core/kern/term.c (grub_term_normal_color),
7284 (grub_term_highlight_color): Add back lost defaults.
7286 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7288 Make elfload not use hooks. Opt for flags and iterators instead.
7290 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7292 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7293 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7295 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7297 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7299 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7301 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7302 hook pass-through parameter. All users updated and unnested.
7304 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7306 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7309 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7311 * grub-core/fs/hfs.c: Remove nested functions.
7313 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7315 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7316 the context through.
7317 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7319 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7321 * util/grub-editenv.c (list_variables): Move print_var out of its
7324 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7326 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7329 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7331 * grub-core/gentrigtables.c: Make tables const.
7333 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7335 Remove nested functions from videoinfo iterators.
7337 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7339 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7340 for 64-bit platforms.
7342 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7344 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7345 a FOR_CHILDREN macro.
7347 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7349 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7350 platform from firmware path.
7352 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7354 Enable linux16 on non-BIOS systems for i.a. memtest.
7356 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7358 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7360 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7362 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7363 Fix end of table condition.
7365 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7367 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7370 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7372 * grub-core/fs/jfs.c: Remove nested functions.
7374 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7376 * grub-core/fs/minix.c: Remove nested functions.
7378 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7380 * grub-core/fs/iso9660.c: Remove nested functions.
7382 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7384 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7387 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7389 * util/grub-fstest.c: Remove nested functions.
7391 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7393 * grub-core/loader/machoXX.c: Remove nested functions.
7395 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7397 Remove nested functions from disk and file read hooks.
7399 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7400 (struct grub_disk): Add read_hook_data member.
7401 * include/grub/file.h (struct grub_file): Likewise.
7402 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7407 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7409 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7410 Fix off by one error in enumerating extended partitions.
7412 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7414 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7415 memory leak if device name is not found.
7417 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7419 * grub-core/normal/menu_entry.c (update_screen): remove
7420 unused variable `off' which caused scroll down arrow to be always shown.
7422 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7424 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7425 access to unallocated memory.
7427 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7429 * Makefile.util.def: Add partmap/msdos.c to common library.
7430 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7431 * grub-core/disk/ldm.c: Check for existence of
7432 GRUB_PC_PARTITION_TYPE_LDM.
7434 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7436 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7437 sizes and display sector size.
7439 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7441 Implement new command cmosdump.
7443 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7445 Support Openfirmware disks with non-512B sectors.
7447 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7449 * (grub_ofdisk_get_block_size): New function.
7450 * (grub_ofdisk_prepare): Use the correct block size.
7451 * (grub_ofdisk_read): Likewise.
7452 * (grub_ofdisk_write): Likewise.
7453 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7456 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7458 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7460 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7462 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7465 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7467 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7470 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7472 Implement USBDebug (full USB stack variant).
7474 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7476 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7477 unless they have unexpected values.
7479 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7481 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7484 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7486 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7487 zero-out of port structure.
7489 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7491 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7492 of extended attributes.
7494 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7496 * util/grub-install.in: change misleading comment about
7499 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7501 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7502 when menu highlight color isn't set.
7504 2013-01-27 C. Masloch <pushbx@38.de>
7506 Improve FreeDOS direct loading support compatibility.
7508 * include/grub/i386/relocator.h (grub_relocator16_state):
7510 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7512 (grub_relocator16_boot): Handle %ebp.
7513 * grub-core/lib/i386/relocator16.S: Likewise.
7514 * grub-core/loader/i386/pc/freedos.c:
7515 Load BPB to pass kernel which partition to load from.
7516 Check that kernel file is not too large.
7517 Set register dl to BIOS unit number as well.
7519 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7521 * util/grub-reboot.in (usage): Document the need for
7523 * util/grub-set-default.in (usage): Likewise.
7524 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7526 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7528 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7529 than defining WORDS_BIGENDIAN manually.
7531 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7533 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7536 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7538 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7540 (blit_comb: add_device_width): Likewise.
7542 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7544 Remove nested functions from USB iterators.
7546 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7547 (grub_usb_controller_iterate_hook_t): Likewise.
7548 (grub_usb_iterate): Add hook_data argument.
7549 (grub_usb_controller_iterate): Likewise.
7550 (struct grub_usb_controller_dev.iterate): Likewise.
7552 Update all implementations and callers.
7554 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7556 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7557 margin when not needed.
7559 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7561 Make color variables global instead of it being per-terminal.
7563 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7565 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7568 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7570 Fix powerpc and sparc64 build failures caused by un-nesting memory
7573 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7575 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7576 parameter declarations.
7578 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7580 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7582 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7584 Improve spkmomdem reliability by adding a separator between bytes.
7586 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7588 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7589 an Acer registration utility with several sightings in the wild.
7590 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7592 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7594 Remove nested functions from filesystem directory iterators.
7596 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7597 (struct grub_fs.dir): Add hook_data argument.
7599 Update all implementations and callers.
7601 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7603 * docs/grub.texi (Multi-boot manual config): Fix typo for
7606 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7608 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7609 until after its use in generate_image.
7611 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7613 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7614 initrd size to addr_min, since the initrd will be allocated after
7617 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7619 * conf/Makefile.common: Fix autogen rules to pass definition
7620 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7622 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7624 * include/grub/elf.h: Update ARM definitions based on binutils.
7626 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7628 Split long USB transfers into short ones.
7630 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7632 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7633 is interrupted by ESC.
7635 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7637 * util/grub-script-check.c (main): Uniform the error message.
7639 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7641 Remove nested functions from ELF iterators.
7643 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7645 Remove nested functions from device iterators.
7647 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7648 (grub_arc_iterate_devs): Add hook_data argument.
7649 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7650 (struct grub_ata_dev.iterate): Add hook_data argument.
7651 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7652 (grub_device_iterate): Add hook_data argument.
7653 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7654 (struct grub_disk_dev.iterate): Add hook_data argument.
7655 (grub_disk_dev_iterate): Likewise.
7656 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7658 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7660 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7662 (struct grub_partition_map.iterate): Add hook_data argument.
7663 (grub_partition_iterate): Likewise.
7664 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7665 (struct grub_scsi_dev.iterate): Add hook_data argument.
7669 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7671 Fix typos for "developer" and "development".
7673 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7675 Add license header to spkmodem-recv.c.
7677 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7679 Rewrite spkmodem to use PIT for timing. Double the speed.
7681 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7683 Add new command pcidump.
7685 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7687 New terminal outputs using serial: morse and spkmodem.
7689 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7691 Improve bidi handling in entry editor.
7693 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7695 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7696 argument to prevent name collision.
7698 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7700 Remove nested functions from script reading and parsing.
7702 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7703 getline_data argument, passed to getline.
7704 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7705 getline_data argument, passed to grub_parser_split_cmdline.
7706 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7707 lexerstate->getline_data to lexerstate->getline.
7708 (grub_script_lexer_init): Add getline_data argument, saved in
7709 lexerstate->getline_data.
7710 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7711 argument, passed to grub_script_parse.
7712 * grub-core/script/script.c (grub_script_parse): Add getline_data
7713 argument, passed to grub_script_lexer_init.
7714 * include/grub/parser.h (grub_parser_split_cmdline): Update
7715 prototype. Update all callers to pass appropriate getline data.
7716 (struct grub_parser.parse_line): Likewise.
7717 (grub_rescue_parse_line): Likewise.
7718 * include/grub/reader.h (grub_reader_getline_t): Add void *
7720 * include/grub/script_sh.h (struct grub_lexer_param): Add
7721 getline_data member.
7722 (grub_script_parse): Update prototype. Update all callers to pass
7723 appropriate getline data.
7724 (grub_script_lexer_init): Likewise.
7725 (grub_normal_parse_line): Likewise.
7727 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7729 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7730 static instead of nested. Rename to ...
7731 (grub_parser_execute_getline): ... this.
7732 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7734 * grub-core/normal/main.c (read_config_file: getline): Make static
7735 instead of nested. Rename to ...
7736 (read_config_file_getline): ... this.
7737 (grub_normal_read_line): Add unused data argument.
7738 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7739 getline): Make static instead of nested. Rename to ...
7740 (grub_script_execute_sourcecode_getline): ... this.
7741 * util/grub-script-check.c (main: get_config_line): Make static
7744 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7746 Remove nested functions from memory map iterators.
7748 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7749 argument, passed to hook.
7750 * grub-core/kern/i386/coreboot/mmap.c
7751 (grub_linuxbios_table_iterate): Likewise.
7752 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7754 (grub_machine_mmap_iterate): Add hook_data argument.
7755 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7756 Add hook_data argument, passed to hook.
7757 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7759 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7761 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7763 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7765 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7767 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7769 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7770 (grub_machine_mmap_iterate): Likewise.
7771 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7772 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7774 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7775 Remove NESTED_FUNC_ATTR from here and from all users.
7776 (grub_mmap_iterate): Update prototype.
7777 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7778 pass appropriate hook data.
7779 (grub_machine_mmap_iterate): Likewise.
7781 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7782 static instead of nested.
7783 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7785 (lsmmap_hook): ... this.
7786 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7788 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7789 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7790 heap_init): Likewise.
7791 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7793 (mmap_iterate_hook): ... this.
7794 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7796 * grub-core/lib/ieee1275/relocator.c
7797 (grub_relocator_firmware_get_max_events: count): Likewise.
7798 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7800 (grub_relocator_firmware_fill_events_iter): ... this.
7801 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7802 hook): Likewise. Rename to ...
7803 (grub_relocator_alloc_chunk_align_iter): ... this.
7804 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7806 (generate_e820_mmap_iter): ... this.
7807 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7809 (count_hook): ... this.
7810 (grub_linux_boot: hook): Likewise. Rename to ...
7811 (grub_linux_boot_mmap_find): ... this.
7812 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7813 (grub_linux_boot_mmap_fill): ... this.
7814 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7815 hook): Likewise. Rename to ...
7816 (grub_fill_multiboot_mmap_iter): ... this.
7817 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7818 hook): Likewise. Rename to ...
7819 (count_hook): ... this.
7820 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7821 hook): Likewise. Rename to ...
7822 (grub_fill_multiboot_mmap_iter): ... this.
7823 * grub-core/loader/powerpc/ieee1275/linux.c
7824 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7825 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7826 Likewise. Rename to ...
7827 (alloc_phys_choose): ... this.
7828 (determine_phys_base: get_physbase): Likewise.
7829 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7830 find_hook): Likewise.
7831 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7832 (malloc_hook: count_hook): Likewise.
7833 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7834 Likewise. Rename to ...
7835 (lower_hook): ... this.
7836 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7837 (upper_hook): ... this.
7838 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7839 (post64_hook): ... this.
7840 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7841 Likewise. Rename to ...
7842 (lower_hook): ... this.
7843 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7844 (upper_hook): ... this.
7845 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7846 (grub_mmap_iterate: fill_hook): Likewise.
7847 (fill_mask): Pass addr and mask within a single struct.
7848 (grub_cmd_badram: hook): Make static instead of nested. Rename
7850 (badram_iter): ... this.
7851 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7852 (cutmem_iter): ... this.
7854 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7856 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7857 delimit path in strings using quotes.
7858 * util/getroot.c (grub_guess_root_devices): Likewise.
7859 (grub_make_system_path_relative_to_its_root): Likewise.
7860 * util/grub-probe.c (probe): Likewise.
7861 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7862 (xrealpath): Likewise.
7864 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7866 Fix compilation with older compilers.
7868 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7869 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7871 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7872 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7873 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7875 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7876 * include/grub/crypto.h: Add type defines.
7877 * util/import_gcrypth.sed: Remove duplicate type defines.
7879 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7881 New command list_trusted.
7883 * grub-core/commands/verify.c (grub_cmd_list): New function.
7885 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7887 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7890 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7892 Remove nested functions from PCI iterators.
7894 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7895 passed to hook. Update all callers to pass appropriate hook data.
7896 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7897 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7898 Remove NESTED_FUNC_ATTR from here and from all users.
7899 (grub_pci_iterate): Update prototype.
7900 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7901 instead of nested. Rename to ...
7902 (grub_cs5536_find_iter): ... this.
7903 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7904 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7906 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7908 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7910 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7912 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7913 * grub-core/video/radeon_fuloong2e.c
7914 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7915 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7916 find_card): Likewise.
7917 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7920 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7922 * grub-core/commands/verify.c: Mark messages for translating.
7924 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7926 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
7929 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7931 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
7934 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7936 * autogen.sh: Do not try to delete nonexistant files.
7937 * util/import_gcrypth.sed: Add some missing header removals.
7939 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
7941 Clean up dangling references to grub-setup.
7942 Fixes Ubuntu bug #1082045.
7944 * docs/grub.texi (Images): Refer generally to grub-install rather
7945 than directly to grub-setup.
7946 (Installing GRUB using grub-install): Remove direct reference to
7948 (Device map) Likewise.
7949 (Invoking grub-install): Likewise.
7950 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7951 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7952 * util/grub-install.in (usage): Likewise.
7954 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
7955 Apply to grub-bios-setup and grub-sparc64-setup rather than to
7957 * configure.ac: Remove grub_setup output variable.
7959 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
7961 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
7962 grub-setup to grub-sparc64-setup.
7964 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7966 Import gcrypt public-key cryptography and implement signature checking.
7968 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7970 * grub-core/fs/ntfs.c: Ue more appropriate types.
7971 * grub-core/fs/ntfscomp.c: Likewise.
7972 * include/grub/ntfs.h: Likewise.
7974 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7976 Support Apple FAT binaries on non-Apple platforms.
7978 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
7979 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
7981 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
7984 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7986 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
7989 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
7991 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
7992 explicitly zeroing elements.
7993 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
7994 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
7995 of elements in a structure already allocated using grub_zalloc.
7996 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
7998 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8000 * docs/grub.texi (grub_cpu): New subsection.
8001 (grub_platform): Likewise.
8003 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8005 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8007 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8009 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8012 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8014 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8015 * grub-core/fs/ntfscomp.c: Likewise.
8016 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8017 (grub_ntfs_comp): Likewise.
8019 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8021 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8023 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8024 of groups_per_block. All users updated.
8026 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8028 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8029 grub_error properly.
8030 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8031 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8033 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8035 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8036 always in /boot/zfs.
8037 Reported by: Yuta Satoh.
8039 2013-01-03 Yuta Satoh <nigoro>
8041 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8044 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8046 * configure.ac: Extend -Wno-trampolines to host.
8048 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8050 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8053 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8055 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8056 (Invoking grub-script-check): Likewise.
8058 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8060 * docs/grub.texi (Invoking grub-mount): New section.
8061 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8063 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8065 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8066 test failures, so that a failing unit test correctly causes 'make
8069 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8071 Fix failing printf test.
8073 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8074 '$' in the correct order when collecting type information.
8076 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8078 * docs/grub.texi (configfile): Explain environment variable
8080 (source): New section.
8081 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8083 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8085 Remove several trivially-unnecessary uses of nested functions.
8087 * grub-core/commands/i386/pc/sendkey.c
8088 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8090 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8092 (legacy_file_getline): ... this.
8093 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8095 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8096 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8098 (probe_dummy_iter): ... this.
8099 * grub-core/kern/i386/coreboot/mmap.c
8100 (grub_linuxbios_table_iterate: check_signature): Likewise.
8101 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8102 check_varstate): Likewise. Mark inline.
8103 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8104 an additional parameter.
8105 (find_long: fnd_long): Likewise. Pass two additional parameters.
8106 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8107 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8108 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8109 Likewise. Rename to ...
8110 (grub_cmos_find_port_iter): ... this.
8111 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8113 (find_rtc_iter): ... this.
8115 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8116 function directly into the function body, since it is only called
8119 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8121 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8122 __attribute__ ((unused)).
8123 * grub-core/video/bochs.c (find_card): Likewise.
8124 * grub-core/video/cirrus.c (find_card): Likewise.
8125 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8126 * grub-core/video/sis315pro.c (find_card): Likewise.
8127 * grub-core/video/sm712.c (find_card): Likewise.
8129 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8131 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8132 Fixes Savannah bug #37821.
8134 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8136 Apply program name transformations at build-time rather than at
8137 run-time. Fixes Debian bug #696465.
8139 * acinclude.m4 (grub_TRANSFORM): New macro.
8140 * configure.ac: Create output variables with transformed names for
8142 * util/bash-completion.d/grub-completion.bash.in: Use
8143 pre-transformed variables for program names.
8144 * util/grub-install.in: Likewise.
8145 * util/grub-kbdcomp.in: Likewise.
8146 * util/grub-mkconfig.in: Likewise.
8147 * util/grub-mkconfig_lib.in: Likewise.
8148 * util/grub-mknetdir.in: Likewise.
8149 * util/grub-mkrescue.in: Likewise.
8150 * util/grub-mkstandalone.in: Likewise.
8151 * util/grub-reboot.in: Likewise.
8152 * util/grub-set-default.in: Likewise.
8153 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8154 * tests/util/grub-shell-tester.in: Remove unused assignment.
8155 * tests/util/grub-shell.in: Likewise.
8156 * util/grub.d/00_header.in: Likewise.
8158 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8160 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8162 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8164 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8166 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8168 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8169 Reported by: Eriks Latosheks <foresterlv>.
8171 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8173 * docs/grub.texi (Network): Update instructions on generating netboot
8176 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8178 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8179 around device name if necessarry.
8181 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8183 * util/grub-install.in: Follow the symbolic link parameter added
8184 to the file command.
8186 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8188 * util/grub-install.in: Remove stale TODO.
8190 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8192 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8193 dynamic allocation for the bootpath buffer.
8195 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8197 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8200 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8202 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8203 argument rather than font name. All users updated.
8204 (grub_gfxterm_set_window): Likewise.
8206 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8208 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8211 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8213 * util/getroot.c (convert_system_partition_to_system_disk): Support
8216 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8218 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8219 infinite loop on corrupted FS.
8221 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8223 Fix big-endian mtime.
8225 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8226 together sec and usec.
8227 (grub_ufs_dir): Use correct byteswapping for UFS time.
8229 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8231 Support big-endian UFS1.
8233 * Makefile.util.def (libgrubmods): Add ufs_be.c
8234 * grub-core/Makefile.core.def (ufs1_be): New module.
8235 * grub-core/fs/ufs_be.c: New file.
8236 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8239 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8241 * include/grub/types.h: Fix functionality unaffecting typo in
8242 GRUB_TARGET_WORDSIZE conditional macro.
8244 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8246 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8248 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8250 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8251 that /netbsd appears first (when it exists).
8253 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8255 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8256 Fixes Savannah bug #37558.
8258 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8260 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8261 description of extract_entries_configfile.
8263 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8265 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8267 (grub_cmd_linux): Likewise.
8268 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8269 preferred_lifetime. Update all users.
8271 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8273 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8274 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8276 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8278 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8279 errors from grub-probe to /dev/null, not stdout.
8281 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8283 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8286 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8288 * util/grub-install.in: Make the error message if $source_dir
8289 doesn't exist more useful.
8291 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8293 Fix grub-emu build on FreeBSD.
8295 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8296 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8298 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8299 implementation is currently Linux-specific.
8300 * util/getroot.c (exec_pipe): Define only on Linux or when either
8301 libzfs or libnvpair is unavailable.
8302 (find_root_devices_from_poolname): Remove unused path variable.
8304 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8306 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8307 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8308 should fit before end == 63.
8310 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8312 * util/grub-setup.c (write_rootdev): Remove unused core_img
8313 parameter. Update all callers.
8314 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8315 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8318 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8320 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8321 (grub_add_tab): New function.
8322 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8323 * util/grub.d/10_illumos.in: Likewise.
8324 * util/grub.d/10_kfreebsd.in: Likewise.
8325 * util/grub.d/10_linux.in: Likewise.
8326 * util/grub.d/10_netbsd.in: Likewise.
8327 * util/grub.d/10_windows.in: Likewise.
8328 * util/grub.d/10_xnu.in: Likewise.
8329 * util/grub.d/20_linux_xen.in: Likewise.
8330 * util/grub.d/30_os-prober.in: Likewise.
8332 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8334 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8335 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8336 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8337 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8338 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8340 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8341 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8343 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8345 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8347 Reported by: BURETTE, Bernard.
8349 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8351 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8354 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8356 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8357 IEEE1275 machines. Fixes powerpc-emu compilation.
8358 * include/grub/terminfo.h: Likewise.
8360 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8362 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8364 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8366 (efiemu_set_variable): Make vendor_guid a const pointer.
8368 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8370 Don't require grub-mkconfig_lib to generate manpages for programs.
8372 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8373 dependencies, don't add grub-mkconfig_lib.
8374 (program): Pass empty adddeps.
8375 (script): Pass grub-mkconfig_lib as adddeps.
8377 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8379 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8380 * util/getroot.c (grub_find_device): Likewise.
8381 (get_mdadm_uuid): Likewise.
8382 (grub_util_is_imsm): Likewise.
8383 (grub_util_pull_device): Likewise.
8384 * util/grub-probe.c (probe): Likewise.
8386 2012-09-10 Benoit Gschwind <gschwind>
8388 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8389 (devs): Add devpath_8.
8391 2012-09-08 Peter Jones <pjones@redhat.com>
8393 * grub-core/Makefile.core.def (efifwsetup): New module.
8394 * grub-core/commands/efi/efifwsetup.c: New file.
8395 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8396 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8398 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8400 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8402 * configure.ac: Add SuSe path.
8404 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8408 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8410 * util/import_gcry.py: Sort cipher_files, to make build system
8411 generation more deterministic.
8413 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8415 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8416 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8417 (grub_set_datetime): Likewise.
8419 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8421 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8424 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8426 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8428 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8430 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8432 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8434 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8435 required for checkouts from bzr, but it may be useful for users or
8436 distributors wishing to update translations against a tarball
8437 distribution, and it can be helpful for the tarball to be a superset
8440 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8442 * Makefile.am (EXTRA_DIST): Add
8443 grub-core/tests/boot/linux.init-mips.S,
8444 grub-core/tests/boot/linux.init-ppc.S, and
8445 grub-core/tests/boot/linux-ppc.cfg.
8447 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8449 * grub-core/mmap/mips/loongson: Remove empty directory.
8451 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8453 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8456 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8458 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8461 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8463 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8465 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8467 * po/POTFILES.in: Regenerated.
8469 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8471 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8472 (NetBSD): New subsection.
8474 2012-07-22 Ales Nesrsta <starous@volny.cz>
8476 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8477 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8479 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8481 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8482 * util/grub.d/10_hurd.in: Add missing quoting.
8483 * util/grub.d/10_illumos.in: Likewise.
8484 * util/grub.d/10_kfreebsd.in: Likewise.
8485 * util/grub.d/10_linux.in: Likewise.
8486 * util/grub.d/20_linux_xen.in: Likewise.
8488 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8490 New command `lsefi'.
8492 * grub-core/Makefile.core.def (lsefi): New module.
8493 * grub-core/commands/efi/lsefi.c: New file.
8494 * include/grub/efi/api.h: Add more GUIDs.
8496 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8498 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8499 (grub_bsd_elf32_hook): Likewise.
8500 (grub_bsd_elf64_size_hook): Likewise.
8501 (grub_bsd_elf64_hook): Likewise.
8502 (grub_bsd_load_elf): Likewise.
8504 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8506 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8507 if hash function is unavailable.
8508 (dec_stream_header): Likewise.
8510 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8512 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8515 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8517 Fix coreboot compilation.
8519 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8520 (grub_vga_text_init_real): ... this.
8521 (grub_vga_text_fini): Rename to ...
8522 (grub_vga_text_fini_real): ... this.
8524 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8526 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8528 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8530 * grub-core/lib/legacy_parse.c: Support clear and testload.
8532 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8534 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8536 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8538 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8540 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8542 * grub-core/net/tftp.c (ack): Fix endianness problem.
8543 (tftp_receive): Likewise.
8544 Reported by: Michael Davidsaver.
8546 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8548 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8550 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8552 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8553 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8554 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8556 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8558 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8560 Reported by: Stuart Hayes.
8562 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8564 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8566 * grub-core/Makefile.core.def (mda_text): New module.
8567 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8568 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8569 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8570 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8572 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8573 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8574 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8576 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8578 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8580 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8582 * grub-core/term/i386/vga_common.c: Removed.
8583 * include/grub/i386/vga_common.h: Likewise.
8584 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8585 (grub_vga_cr_bw_read): Likewise.
8586 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8587 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8588 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8589 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8590 grub_vga_cr_read/grub_vga_cr_write.
8591 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8593 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8595 * configure.ac: Bump version to 2.00.
8596 * grub-core/normal/main.c (features): Add feature_200_final.
8598 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8599 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8601 * NEWS: Fix unclarity and language mistakes.
8603 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8605 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8606 additional size to 3 pages.
8607 Reported by: Stuart Hayes.
8609 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8611 * NEWS: Add 2.00 entry.
8613 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8615 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8616 put explicit "/" for empty path.
8617 (wildcard_expand): Improve dprintf.
8619 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8621 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8622 it's equal to currnode. This can happen with "" symlink.
8624 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8626 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8627 echo shell command by printf command.
8629 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8631 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8632 the value returned by firmware is the maximal position, not diumension.
8633 (grub_terminfo_output_state): Use a more sane fallback.
8635 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8637 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8639 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8641 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8642 frequency to 150 MHz.
8644 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8648 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8650 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8652 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8654 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8656 Handle slash in HFS label.
8658 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8659 (grub_hfs_dir): Tanslate slash.
8660 (grub_hfs_label): Don't translate slash.
8662 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8664 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8665 network protocol listing since it introduces problematic dependency on
8668 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8670 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8672 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8674 Init video early on yeeloong to avoid being rebooted by watchdog.
8676 * grub-core/Makefile.am (gensm712): New target.
8677 (sm712_start.S): Likewise.
8678 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8679 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8680 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8682 * include/grub/vga.h: Move registry definitions to...
8683 * include/grub/vgaregs.h: ... here.
8685 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8687 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8690 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8692 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8693 platforms with firmware disk drivers in the core.
8695 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8697 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8698 informative verbose message.
8699 (read_lv): Handle 64-bit segment size.
8701 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8703 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8705 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8707 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8708 character but still remove trainling spaces.
8709 (grub_fat_label): Ignore archive flag.
8711 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8713 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8714 cast between linux_kernel_header and linux_kernel_params.
8716 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8718 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8720 (grub_raid6_recover_func_t): Likewise.
8721 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8722 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8724 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8726 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8728 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8732 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8733 [__NetBSD__]: Add explicit cast before bitshift.
8735 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8737 * configure.ac: Bump to 2.00~rc1.
8739 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8741 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8744 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8745 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8747 * docs/grub.texi: Fix search syntax.
8748 (Multi-boot manual config): Put msdos rather than GPT example.
8749 Grammar corrections.
8751 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8753 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8755 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8757 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8759 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8761 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8762 message on double free. Put the value of magic in case of mismatch.
8764 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8766 Speed-up video on yeeloong.
8768 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8770 (grub_video_sm712_video_fini): Unmap cached_ptr.
8771 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8772 (grub_video_sm712_set_active_render_target): Removed.
8773 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8774 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8777 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8779 Avoid flushing the same line multiple times on loongson.
8781 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8782 Step in 32 bytes and not 1 byte.
8783 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8786 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8788 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8791 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8793 Implement flow control for http.
8795 * grub-core/net/http.c (parse_line): Handle response 206.
8796 (http_receive): Stall if too many packets are in the queue.
8797 (http_establish): Fix range header.
8798 (http_seek): Fix double free.
8799 (http_close): Likewise.
8800 (http_packets_pulled): New function.
8801 (grub_http_protocol): Set http_seek
8802 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8803 (ack_real): Set window depending on i_stall.
8804 (grub_net_send_tcp_packet): Likewise.
8805 (grub_net_tcp_stall): New function.
8806 (grub_net_tcp_unstall): Likewise.
8807 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8808 (grub_net_tcp_unstall): Likewise.
8810 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8812 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8814 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8816 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8818 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8820 * tests/util/grub-shell.in: Fix a typo.
8822 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8824 Implement flow control for tftp.
8826 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8827 packets but stop only if stop condition is satisfied.
8828 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8829 `stall' instead of `eof' as stop condition.
8830 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8831 (http_err): Likewise.
8832 * grub-core/net/tftp.c (ack): Replace the first argument with data
8834 (tftp_receive): Stall if too many packets are in wait queue.
8835 (tftp_packets_pulled): New function.
8836 (grub_tftp_protocol): Set packets_pulled.
8837 * include/grub/net.h (grub_net_packets): New field count.
8838 (grub_net_put_packet): Increment count.
8839 (grub_net_remove_packet): Likewise.
8840 (grub_net_app_protocol): New field `packets_pulled'.
8841 (grub_net): New field `stall'.
8843 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8845 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8846 sync part to handle them.
8848 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8850 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8851 * grub-core/net/drivers/ieee1275/ofnet.c
8852 (grub_ieee1275_net_config_real): Likewise.
8854 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8856 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8857 the direct route for server/gateway.
8859 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8861 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8862 IP address to server name since we may not hame the DNS.
8864 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8866 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8867 freeing random buffer on failure.
8868 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8870 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8872 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8874 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8876 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8878 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8879 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8880 Handle malloc error correctly.
8882 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8884 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8887 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8889 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8892 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8894 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8895 none is explicitly specified.
8897 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8899 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8902 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8904 Respect netmask from bootp/dhcp.
8906 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8907 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8908 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8910 (grub_net_add_ipv4_local): ... this.
8911 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8912 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8913 (grub_net_add_ipv4_local): New proto.
8915 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8917 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8918 determining EFI memory map size.
8920 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8922 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8924 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8926 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
8927 when looking for partition separator.
8929 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8931 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8934 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8936 Restructure FAT driver to avoid hook in label reading as it hits a
8939 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
8940 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
8941 (grub_fat_iterate_dir): Split into ...
8942 (grub_fat_iterate_init): ... this, ...
8943 (grub_fat_iterate_fini): ... this, ...
8944 (grub_fat_iterate_dir_next): ... and this. All users updated.
8946 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8948 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8949 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
8950 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8951 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
8952 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
8953 New fields last_key and last_key_time.
8954 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
8955 extended key-esc into extended key-extended key.
8957 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8959 Avoid unnecessary memcpy of whole video buffer.
8961 * grub-core/video/fb/video_fb.c (dirty): New struct.
8962 (framebuffer): Add members current_dirty and previous_dirty.
8963 (dirty): New function.
8964 (grub_video_fb_fill_rect): Update dirty.
8965 (common_blitter): Likewise.
8966 (grub_video_fb_scroll): Likewise.
8967 (doublebuf_blit_update_screen): Copy only dirty part.
8968 (doublebuf_pageflipping_update_screen): Likewise.
8969 (grub_video_fb_doublebuf_blit_init): Init dirty.
8970 (doublebuf_pageflipping_init): Likewise.
8971 (grub_video_fb_setup): Likewise.
8973 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8975 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
8978 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8980 Fix wildcard regexp dot and other special characters handling.
8981 Reported by: Robert Mabee.
8983 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
8984 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
8985 (split_path): Trigger expansion on '?'.
8986 (unescape): New function.
8987 (wildcard_expand): Unescape parts copied without globbing.
8988 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
8989 (grub_script_arglist_to_argv): Don't unescape expansions.
8991 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8993 * include/grub/net.h (grub_net_card): New member txbufsize.
8994 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
8995 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
8996 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
8997 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
8999 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9000 compatible property to check for macs. Set
9001 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9002 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9003 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9004 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9005 (send_card_buffer): Use txbuf.
9006 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9007 nested function out of the parent while on it.
9009 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9011 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9013 (grub_ieee1275_net_config_real): Fix config pointer.
9015 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9017 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9018 filename parsing to non-block devices.
9020 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9022 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9024 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9026 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9029 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9031 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9032 UUID search command even if hints probing failed.
9034 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9036 * po/POTFILES.in: Regenerated.
9038 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9040 Speed-up video on fuloong.
9042 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9044 (grub_pci_device_unmap_range): Handle non-cached address.
9045 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9047 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9048 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9049 (grub_video_sis315pro_set_active_render_target): Removed.
9050 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9051 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9052 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9054 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9057 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9059 * docs/grub.texi (Multi-boot manual config): New section.
9061 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9063 Avoid slow read-back from VRAM.
9065 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9067 * grub-core/video/fb/video_fb.c
9068 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9069 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9070 (front_target): Remove front_target. Add pages.
9071 (grub_video_fb_init): Skip setting front_pages.
9072 (grub_video_fb_fini): Likewise.
9073 (doublebuf_blit_update_screen): Use pages.
9074 (grub_video_fb_doublebuf_blit_init): Likewise.
9075 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9076 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9077 (grub_video_fb_setup): Prefer doublebuffing.
9079 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9081 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9084 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9088 * tests/util/grub-shell.in: Handle loongson.
9089 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9091 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9092 Reboot instead of shutdown if REBOOT is defined.
9094 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9096 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9097 sized ports since unlike on real hardware qemu supports only 32-bit
9100 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9102 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9103 * util/grub-mkrescue.in: Handle loongson.
9105 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9107 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9108 Set is_part appropriately.
9109 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9110 names. Canonicalize partition without full disk.
9112 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9114 Revert usb-quiesce since it's wrong.
9116 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9117 (grub_ofdisk_init): Don't do quiesce.
9119 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9121 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9122 PowerMac workaround to Xserves as well.
9123 Information supplied by: Benjamin Herrenschmidt.
9125 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9127 Don't assume that beginning address is also the entry point on ppc.
9129 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9130 (grub_linux_boot): Use linux_entry.
9131 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9132 (grub_linux_load64): Likewise.
9134 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9136 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9138 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9140 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9141 needlessly lose the console.
9143 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9145 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9148 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9150 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9151 than current grub_get_rtc() not implemented when booted with
9152 coreboot without TSC.
9154 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9155 Add machine/time.h to kernel headers on loongson.
9156 * grub-core/Makefile.core.def (kernel): Remove
9157 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9158 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9159 (grub_get_rtc): Likewise.
9160 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9161 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9162 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9163 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9164 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9165 rather than installing known non-working time source.
9166 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9167 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9168 * include/grub/time.h: Don't include machine/time.h.
9169 * include/grub/efi/time.h: Removed.
9170 * include/grub/i386/efi/time.h: Likewise.
9171 * include/grub/i386/ieee1275/time.h: Likewise.
9172 * include/grub/powerpc/ieee1275/time.h: Likewise.
9173 * include/grub/sparc64/ieee1275/time.h: Likewise.
9174 * include/grub/x86_64/efi/time.h: Likewise.
9176 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9178 Remove dot on i and j when combining with above diacritics.
9180 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9182 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9183 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9184 with dotless variants when any combining above is present.
9186 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9188 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9189 text and not binary.
9191 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9193 Stop polling as soon as we have the packet we were waiting for.
9195 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9197 * grub-core/net/arp.c (have_pending): New var.
9198 (pending_req): Likewise.
9199 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9201 (grub_net_arp_receive): Set have_pending.
9202 * grub-core/net/dns.c (recv_data): New field stop.
9203 (recv_hook): Set stop.
9204 (grub_net_dns_lookup): Init stop and use as stop condition.
9205 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9207 * grub-core/net/net.c (grub_net_poll_cards): New argument
9208 stop_condition. Stop when it goes true.
9209 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9211 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9213 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9215 Keep TX and RX buffers on EFI rather than always allocate new ones.
9217 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9218 card. All users updated.
9219 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9220 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9221 (get_card_packet): Likewise.
9222 (grub_efinet_findcards): Init new fields.
9224 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9226 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9227 compilation error on sparc64.
9229 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9231 Use ITC on IA64 rather than broken routine based on daytime.
9233 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9235 (grub_get_rtc) [__ia64__]: Likewise.
9236 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9237 (get_itc): New function.
9238 (grub_rtc_get_time_ms): Likewise.
9239 (grub_machine_init): Calibrate ITC.
9240 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9241 Keep only on non-ia64. Don't export since it's broken and used only
9242 if TSC is unavailable.
9244 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9246 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9248 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9249 Skip if parent is unused.
9251 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9253 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9255 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9257 Fix wildcard escaping.
9259 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9260 * grub-core/script/execute.c (wildcard_escape): .. to here.
9262 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9263 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9265 * grub-core/script/execute.c (gettext_append): Always escape.
9266 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9267 * grub-core/script/yylex.l: Don't cut away the escaping.
9268 * tests/grub_script_echo1.in: Add tests with wildcard.
9270 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9272 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9273 (ftdi_hw_configure): Likewise.
9274 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9276 (real_config): Handle 1.5 stop bits.
9277 (pl2303_hw_configure): Likewise.
9279 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9281 * Makefile.am: Add ppc linux bootcheck.
9282 * grub-core/tests/boot/linux-ppc.cfg: New file.
9283 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9285 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9287 * tests/grub_script_expansion.in: Skip network protocols.
9289 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9291 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9293 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9295 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9299 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9301 ESCC serial driver for conducting sautomated tests in qemu.
9302 Not tested on real hardware.
9304 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9305 * grub-core/term/ieee1275/escc.c: New file.
9306 * grub-core/Makefile.core.def (escc): New module.
9308 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9310 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9312 (serial_hw_fetch): Don't read invalid handle.
9313 (serial_hw_put): Don't write into invalid handle.
9315 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9317 Add a 1.5 stop bits value.
9319 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9320 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9321 GRUB_SERIAL_STOP_BITS_1_5.
9323 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9325 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9326 value rather than let it uninited.
9328 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9330 * grub-core/commands/wildcard.c (+check_file): New function.
9331 (wildcard_expand): Don't expand to non-existing files, expand with
9332 suffix and not attempt to expand if not needed.
9334 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9336 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9337 out of partitions containing other partitions.
9339 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9341 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9342 on some qemu versions with GRUB.
9344 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9346 (grub_openbsd_bootarg_pcibios): New struct.
9347 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9350 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9352 * tests/util/grub-shell.in: Trim firmware output on EFI.
9354 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9356 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9357 and coreboot since it's already in kernel.
9359 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9361 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9362 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9363 to here. New return value start. All users updated.
9364 Recursively scan linear mappings.
9365 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9367 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9368 Use grub_util_get_dm_node_linear_info.
9369 * util/getroot.c (convert_system_partition_to_system_disk): Use
9370 grub_util_info rather than grub_dprintf.
9371 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9373 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9375 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9377 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9378 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9380 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9382 * include/grub/types.h (grub_set_unaligned64): New function.
9383 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9386 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9388 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9389 (grub_ofdisk_fini): Quiesce USB devices.
9391 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9393 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9396 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9398 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9400 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9402 * grub-core/disk/pata.c (grub_pata_pio_read)
9403 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9404 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9406 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9408 Extend automated tests to qemu-mips.
9410 * Makefile.am: reorganise tests and enable qemu-mips.
9411 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9412 * grub-core/tests/boot/linux.init-mips.S: New file.
9413 * tests/partmap_test.in: Handle ata0 disks.
9414 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9417 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9419 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9421 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9424 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9426 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9427 (grub_halt): Likewise.
9428 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9430 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9432 * grub-core/term/serial.c (grub_serial_register)
9433 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9434 the behaviour in line with x86 platforms.
9436 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9438 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9439 (grub_ata_strncpy): Likewise.
9440 (grub_ata_identify): Add missing byteswaps.
9442 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9444 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9446 (screen_read_char): Likewise.
9447 (grub_vga_text_cls): Likewise.
9449 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9451 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9453 (make_file_path): Likewise.
9455 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9457 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9459 Tested by: Paulo Flabiano Smorigo.
9460 Crucial information about API supplied by: Coleen <Last name unknown>.
9461 Reviewed by: Coleen <Last name unknown>.
9463 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9465 * util/grub-mkimage.c: Disable -Wcast-align.
9467 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9469 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9472 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9474 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9476 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9478 * util/grub-probe.c (escape_of_path): Fix double free.
9480 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9482 * grub-core/commands/videoinfo.c (hook): Show pitch.
9484 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9486 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9488 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9490 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9491 (probe): Add ieee1275 to OFW devices.
9493 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9495 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9497 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9499 Handle IBM OFW path.
9501 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9503 (of_path_of_scsi): Handle vdevice.
9505 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9507 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9508 Allocate in multiples of 16 to avoid adding a few bytes free region the
9511 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9513 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9514 Allocate in multiples of 16 to avoid adding a few bytes free region the
9516 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9518 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9520 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9522 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9523 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9525 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9527 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9529 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9531 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9532 resulted in \\ at the end of the line.
9534 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9536 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9537 (grub_parser_cmdline_state): Likewise.
9538 (grub_parser_split_cmdline): Likewise.
9540 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9542 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9543 /dev/root and /dev/dm-*.
9545 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9547 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9548 fix partially stale display.
9550 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9552 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9555 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9557 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9558 Fix MBR remapping workaround.
9559 (grub_util_biosdisk_read) [__linux__]: Likewise.
9561 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9563 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9565 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9567 * configure.ac: Bump to beta6.
9569 2012-05-31 Christer Weinigel <christer@weinigel.se>
9571 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9573 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9575 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9576 (grub_cmd_linux): Likewise.
9578 2012-05-31 Christer Weinigel <christer@weinigel.se>
9582 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9583 (GRUB_EHCI_MULT_TWO): Likewise.
9584 (GRUB_EHCI_MULT_THREE): Likewise.
9585 (GRUB_EHCI_CMASK_MASK): New enum value.
9586 (GRUB_EHCI_SMASK_MASK): Likewise.
9587 (GRUB_EHCI_CMASK_OFF): Likewise.
9588 (GRUB_EHCI_SMASK_OFF): Likewise.
9589 (grub_ehci_pci_iter): Enable periodic schedule.
9590 (grub_ehci_parse_notrun): Likewise.
9591 (grub_ehci_restore_hw): Likewise.
9592 (grub_ehci_setup_qh): Set flags for low speed transfers.
9593 (grub_ehci_find_qh): Use periodic list for low speed.
9594 (grub_ehci_setup_transfer): Check periodic queue as well.
9595 (grub_ehci_check_transfer): Likewise.
9596 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9598 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9600 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9603 2012-05-31 Peter Jones <pjones@redhat.com>
9605 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9606 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9607 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9609 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9611 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9612 uninited variable. Allocate at least setup_sects.
9614 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9616 Fix handling of EFI with big memory maps.
9618 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9619 (real_mode_mem): Likewise.
9620 (real_mode_target): Likewise.
9621 (real_mode_pages): Likewise.
9622 (prot_mode_pages): Likewise.
9623 (linux_params): New var.
9624 (linux_cmdline): Likewise.
9625 (free_pages): Don't set real mode variables.
9626 (allocate_pages): Don't allocate real mode memory.
9627 (grub_e820_add_region): Remove the limit.
9628 (grub_linux_boot): Allocate and copy real mode memory.
9629 (grub_linux_unload): Free linux_cmdline.
9630 (grub_cmd_linux): Use temporary storage for parameters.
9631 (grub_cmd_initrd): Likewise.
9632 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9633 (linux_kernel_params): Make it 1K big.
9635 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9637 * Makefile.util.def: Remove -Wno-format.
9638 * grub-core/Makefile.core.def: Likewise.
9640 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9642 * tests/cmp_unit_test.c: Add missing failure message.
9643 * tests/example_unit_test.c: Likewise.
9644 * tests/printf_unit_test.c: Likewise.
9646 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9648 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9649 relaxation of protective MBR requirements.
9651 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9653 * configure.ac: Add condition for COND_HOST_XNU.
9654 * Makefile.util.def (10_xnu): New script.
9655 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9657 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9659 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9662 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9664 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9665 Binary on other platforms stays identical.
9667 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9669 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9672 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9674 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9676 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9678 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9679 rather than defining size_t ourselves to avoid conflict.
9681 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9683 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9684 initialisation to avoid __bzero reference.
9686 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9688 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9690 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9691 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9692 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9693 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9694 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9696 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9698 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9699 * grub-core/kern/misc.c: Likewise.
9700 * grub-core/loader/i386/xnu.c: Likewise.
9701 * include/grub/i386/tsc.h: Likewise.
9702 * include/grub/symbol.h: Likewise.
9704 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9706 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9707 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9710 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9712 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9713 Implement Apple flavour.
9714 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9716 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9718 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9719 (memmove) [__APPLE__]: Likewise.
9720 (memcpy) [__APPLE__]: Likewise.
9721 (memset) [__APPLE__]: Likewise.
9722 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9723 (memmove) [__APPLE__]: Likewise.
9724 (memcpy) [__APPLE__]: Likewise.
9725 (memset) [__APPLE__]: Likewise.
9727 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9729 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9732 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9734 * grub-core/normal/main.c (read_config_file): Provide config_file and
9736 * util/grub.d/41_custom.in: Use config_directoy when available.
9738 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9740 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9741 (grub_bfs_dir): Likewise.
9743 2012-05-27 Peter Jones <pjones@redhat.com>
9745 The old code gives arguments to a printf function which can't work
9746 correctly, and the compiler complains.
9748 * grub-core/tests/example_functional_test.c (example_test): Add
9750 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9751 * include/grub/test.h (grub_test_assert_helper): New declaration.
9752 (grub_test_assert): Use grub_test_assert_helper.
9754 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9756 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9757 (exfctest): ... this to avoid overlong filenames.
9760 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9762 Handle "." and ".." on squashfs.
9764 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9765 Make inode numbers into stack.
9766 (grub_squash_read_symlink): Use stack.
9767 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9768 (make_root_node): Fill stack.
9769 (grub_squash_open): Use stack.
9771 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9773 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9776 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9778 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9779 stderr on test calls.
9781 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9783 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9785 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9787 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9789 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9791 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9794 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9796 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9797 (grub_hfsplus_iterate_dir): Add "." and "..".
9799 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9801 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9802 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9804 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9806 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9807 (find_path): Handle "." and "..".
9809 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9811 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9812 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9813 (grub_affs_iterate_dir): Handle hardlinks.
9815 2012-05-26 Matthew Garrett <mjg@redhat.com>
9817 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9818 (grub_efi_console_fini): Likewise.
9819 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9820 (grub_video_gop_fill_mode_info): Rename to ...
9821 (grub_video_gop_fill_real_mode_info): ... this.
9822 (grub_video_gop_fill_mode_info): New function.
9823 (grub_video_gop_setup): Setup double framebuffer.
9824 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9826 (grub_video_gop_swap_buffers): Copy framebuffer.
9827 (grub_video_gop_fini): Free offscreen buffer.
9828 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9830 (grub_efi_gop_blt_pixel): New struct.
9832 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9834 * gentpl.py: Remove error disabling for objconv.
9836 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9838 * configure.ac: Remove -Wunitialized as it's not available on older
9841 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9843 Fix extent overflow comparator.
9845 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9846 (grub_hfsplus_read_block): Set type.
9847 (grub_hfsplus_cmp_extkey): Compare type.
9849 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9851 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9853 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9855 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9858 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9860 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9861 (dejavu_bold_14.pf2): New target.
9863 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9865 * configure.ac: Fix djvu font detection.
9867 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9869 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9870 ext* instead of ext2.
9872 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9874 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9877 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9879 * docs/grub-dev.texi: Remove dot from .png.
9881 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9883 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9884 protective entry in any slot.
9885 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9886 if protective entry is found in any slot.
9888 Protective entry in non-first slot make no sense but is a widespread
9891 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9893 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9895 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9897 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9899 (grub_reiserfs_open): Don't free root.
9901 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9903 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9904 after freeing for safety.
9906 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9908 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9909 Reported by: Jordan Uggla.
9911 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9913 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9914 actual implementation. Specifically, clarify that the grub menu will
9915 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9918 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9920 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9923 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9925 Remove unjustified hard dependency of normal.mod on gfxterm.
9927 * include/grub/term.h (grub_term_output): New member fullscreen.
9928 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
9929 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
9930 (grub_gfxterm): Set .fullscreen.
9931 * grub-core/normal/menu.c (menu_init): Use fullscreen.
9932 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
9934 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9936 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
9937 mentioning possible problems with non-ASCII (non-compliant) ISOs.
9938 Mention case-insensitive AFFS, SFS and JFS.
9940 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9942 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
9944 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9946 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9949 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9951 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
9952 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
9954 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9956 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
9957 (grub_jfs_mount): Fill caseins.
9958 (grub_jfs_find_file): Respect caseins.
9960 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9962 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
9965 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9967 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
9968 New argument origpath. All users updated.
9970 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9972 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
9973 (read_attr): Ensure that we read start of possibly compressed block.
9975 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9977 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
9978 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
9981 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9983 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
9984 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
9985 (dejavu.pf2): Replace with ...
9986 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
9989 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9991 * util/grub.d/20_linux_xen.in: Add missing line.
9993 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9995 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
9996 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
9997 (grub_utf16_to_utf8): Likewise.
9999 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10001 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10002 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10003 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10004 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10005 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10006 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10008 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10010 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10013 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10015 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10016 (grub_udf_read_symlink): Handle read_string failure.
10018 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10020 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10023 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10025 Fix handling of UDF symlinks.
10027 * grub-core/fs/udf.c (read_string): New argument outbuf.
10029 (grub_ufs_read_symlink): Rename to ...
10030 (grub_udf_read_symlink): ... this. All users updated.
10031 Handle symlinks with more than one component.
10033 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10035 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10036 symlinks. Replace leading colon with a slash.
10038 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10040 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10043 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10045 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10046 match in inner node.
10048 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10050 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10051 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10052 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10053 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10054 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10055 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10056 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10057 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10058 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10060 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10062 Use grub-probe and not cmp to check that disk is empty.
10064 * util/grub-install.in: Use grub-probe for zero-check.
10065 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10066 (probe): Handle PRINT_ZERO_CHECK.
10067 (argp_parser): Handle -t zero_check.
10069 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10071 Flush block cache on adding disk to device map.
10073 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10074 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10076 (read_device_map): Likewise.
10077 (open_device): Flush on opening.
10079 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10081 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10082 (handle_symlink): Fix off-by-one error.
10083 Canonicalize the target.
10084 (grub_cpio_dir): Canonicalize the name.
10087 (grub_cpio_open): Canonicalize the name.
10089 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10091 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10094 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10096 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10097 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10099 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10101 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10102 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10105 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10107 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10110 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10112 Fix UFS1 big file support.
10114 * grub-core/fs/ufs.c (INODE): Removed.
10115 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10117 (INODE_MODE): Simplify.
10118 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10119 (grub_ufs_lookup_symlink): Don't use INODE.
10121 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10123 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10125 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10126 (grub_minix_data): Replace log_block_size with block_size.
10127 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10128 (grub_minix_mount): Fill block_size.
10130 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10132 * configure.ac: Bump to beta5.
10134 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10136 Fix wrapped HFS+ handling.
10138 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10139 blocks_start. All users updated.
10140 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10142 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10144 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10146 Fix long symlinks on reiserfs.
10148 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10149 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10150 (grub_reiserfs_iterate_dir): Save size for non-directories.
10151 (grub_reiserfs_open): Don't reread stat block as we already know the
10153 (grub_reiserfs_read): Split into...
10154 (grub_reiserfs_read_real): ... and ...
10155 (grub_reiserfs_read): ...this.
10157 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10159 Fix non-indexed JFS.
10161 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10162 (grub_jfs_data): New field namecomponentlen.
10163 (grub_jfs_mount): Fill namecomponentlen.
10164 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10166 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10168 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10169 * tests/grub_script_echo1.in: Add tests.
10171 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10173 * util/grub-install.in: Ignore empty devicetree directory.
10175 2012-05-08 Bean <bean123ch@gmail.com>
10177 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10179 (free_rsm): Free header as well.
10180 (free_old_fragments): Fix memory leak.
10181 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10182 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10183 (destroy_pq): Likewise.
10184 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10186 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10188 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10189 resulting hash as a precaution.
10191 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10193 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10194 '_' in variable names.
10195 * grub-core/net/net.c (grub_net_network_level_interface_register):
10198 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10200 Fix AFFS with non-512B blocks.
10202 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10203 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10204 (grub_affs_data): Replace blocksize with log_blocksize.
10205 (grub_affs_read_block): Fix non-512B blocks.
10206 (grub_affs_read_symlink): Likewise.
10207 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10208 (grub_affs_read): Fix non-512B blocks.
10209 (grub_affs_label): Likewise.
10210 (grub_affs_mtime): Likewise.
10211 (grub_affs_mount): Fix block detection routine.
10213 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10215 Add filesystem mtime to AFFS.
10217 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10218 (aftime2ctime): New function.
10219 (grub_affs_dir): Use aftime2ctime.
10220 (grub_affs_label): Fix return value.
10221 (grub_affs_mtime): New function.
10222 (grub_affs_fs): Add mtime.
10224 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10226 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10229 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10231 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10234 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10236 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10238 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10240 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10242 (FLAGS_CASE_SENSITIVE): New enum value.
10243 (cache_entry): New struct.
10244 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10245 cache_size and cache.
10246 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10247 Add log_blocksize and fshelp_flags.
10248 (grub_sfs_read_extent): Handle non-512 blocks.
10249 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10250 (grub_sfs_read_file): Handle non-512 blocks.
10251 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10253 (grub_sfs_read_symlink): Handle non-512 blocks.
10254 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10255 (grub_sfs_dir): Free cache.
10256 (grub_sfs_close): Likewise.
10258 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10260 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10263 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10265 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10267 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10269 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10271 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10273 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10274 (grub_sfs_read_extent): Likewise.
10275 (grub_sfs_read_block): Likewise.
10276 (grub_sfs_mount): Likewise.
10277 (grub_sfs_iterate_dir): Likewise.
10278 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10279 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10281 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10283 Fix errors on compressed NTFS with 512B clusters.
10285 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10287 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10289 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10290 Relax check for inline extents.
10291 (ntfscomp): Return correct -1 on error and not 0.
10293 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10295 * util/grub-install.in: Fix handling of prefix containing spaces.
10297 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10299 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10300 (grub_squash_read_data): Fix offset byte-swapping.
10302 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10304 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10305 per common usage and preffered in several parts of code.
10306 (grub_memcmp): Likewise.
10307 (grub_strncmp): Likewise.
10308 * include/grub/misc.h (grub_strcasecmp): Likewise.
10309 (grub_strncasecmp): Likewise.
10310 * Makefile.util.def (cmp_test): New test.
10311 (grub_script_strcmp): Likewise.
10312 * tests/cmp_unit_test.c: New file.
10313 * tests/grub_script_strcmp.in: Likewise.
10314 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10316 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10318 * include/grub/pci.h: Move enums into no-asm part.
10320 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10322 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10324 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10326 * util/getroot.c (find_hurd_root_device): Try to make error message
10327 and comments to translators clearer.
10329 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10331 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10333 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10335 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10338 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10340 * docs/grub.cfg: Update.
10342 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10344 * docs/grub.texi (PXE): Remove not present variables.
10346 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10348 * grub-core/net/net.c (defserver_set_env): New function.
10349 (defserver_get_env): Likewise.
10350 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10352 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10354 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10357 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10359 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10360 * grub-core/kern/emu/hostdisk.c: Likewise.
10362 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10364 Handle hurd userspace partitions.
10366 * util/getroot.c (find_hurd_root_device): New function.
10367 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10369 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10371 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10373 Reported by: Bastian Blank.
10375 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10377 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10378 crossing page boundary.
10380 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10382 Fix B-tree search in BFS, especially in presence of non-ASCII
10385 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10386 (find_in_b_tree): Use standard bsearch + btree algorithm.
10388 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10390 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10393 2012-05-03 Matthew Garrett <mjg@redhat.com>
10394 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10396 Suspend broadcom cards in order to stop their DMA.
10398 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10399 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10400 (pci): Don't build on x86 EFI.
10401 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10402 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10404 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10405 stop_broadcom if running on EFI.
10406 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10407 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10408 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10409 (grub_pci_find_capability): New proto.
10411 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10413 * docs/grub.texi: Remove dot from the extension as it apparently
10414 doesn't work with some makeinfo versions.
10416 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10418 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10419 with GRUB expectance.
10421 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10423 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10425 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10427 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10428 zero after directory block since last entry may be not 0-terminated if
10429 it ends on block boundary. Use continue instead of if spanning whole
10432 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10434 Support 4K sectors UDF inline files.
10436 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10437 (grub_udf_extended_file_entry): Likewise.
10438 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10440 (get_fshelp_size): New function.
10441 (grub_udf_read_icb): Read whole block.
10442 (grub_udf_iterate_dir): Likewise.
10443 (grub_udf_dir): Likewise.
10444 (grub_udf_open): Likewise.
10446 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10448 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10450 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10452 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10453 inline symlinks in addition to workaround.
10455 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10457 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10459 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10461 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10463 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10465 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10467 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10469 Fix reiserfs big seek times.
10471 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10472 exact. All users updated.
10473 (grub_reiserfs_read): Use nearest btree search for seeking.
10474 Fix return value on error.
10476 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10478 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10480 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10481 * docs/grub.texi: Update menuentry description.
10483 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10485 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10486 crash when embedding onto filesystem.
10488 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10490 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10493 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10495 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10497 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10499 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10502 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10503 2012-05-01 Bean <bean123ch@gmail.com>
10505 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10507 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10509 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10510 Special behaviour for len = 0 to read whole file isn't used anywhere and
10511 can cause buffer ovewrflows in several places.
10513 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10515 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10517 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10519 Handle RAIDZ on non-512B sectors.
10521 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10522 max_children_ashift.
10523 (fill_vdev_info_real): Fill max_children_ashift.
10524 (read_device): Use max_children_ashift.
10526 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10528 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10530 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10532 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10534 * docs/grub.texi: Update device.map parts.
10536 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10538 Don't scan into non-diskfilter devices having diskfilter names.
10540 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10541 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10543 (scan_disk_hook): New function.
10545 2012-04-29 Bean <bean123ch@gmail.com>
10547 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10550 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10552 * configure.ac: Detect starfield theme font path
10553 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10555 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10557 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10558 geometry on serial consoles.
10560 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10562 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10563 because of network consoles.
10565 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10567 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10570 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10572 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10573 falls on Q syndrom.
10575 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10577 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10578 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10580 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10582 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10583 Allocate at lest 8192 for temporary buffer as required for lzo.
10585 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10587 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10588 to cluster_bits, since it's already added in.
10589 (grub_fat_read_data): Likewise.
10591 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10593 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10594 as long as cluster size is multiple of 512 bytes.
10596 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10598 * util/grub-mkrescue.in: Fix locale directory.
10600 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10602 * grub-core/kern/emu/hostdisk.c (map): Make static.
10604 2012-04-23 Bean <bean123ch@gmail.com>
10606 * util/grub-fstest.c (fstest): Add missing break.
10608 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10612 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10613 not define nr variable.
10614 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10615 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10616 grub_find_device): Do not define.
10618 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10620 Fix kfreebsd compile and behaviour.
10622 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10624 * util/getroot.c: Fix wait.h include.
10625 (grub_guess_root_devices): Error if grub_find_device fails.
10626 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10627 (grub_util_get_dev_abstraction): Likewise.
10628 (grub_util_pull_device): Likewise.
10629 (grub_util_get_grub_dev): Likewise.
10630 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10632 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10634 Fix and unify wholedisk detection.
10636 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10637 is_part. All users updated.
10638 (device_is_wholedisk): Removed.
10639 (grub_util_biosdisk_get_grub_dev): Use is_part.
10641 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10643 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10646 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10648 * configure.ac: Bump to beta4.
10650 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10652 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10653 --fs-uuid --set UUID syntax.
10655 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10657 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10660 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10662 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10664 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10666 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10668 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10670 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10672 2012-04-18 Bean <bean123ch@gmail.com>
10674 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10677 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10679 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10681 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10682 corresponding to GRUB partitions.
10683 (grub_util_biosdisk_write): Likewise.
10685 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10687 Scan mdraid before LVM.
10689 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10690 (grub_diskfilter_register_front): ... this.
10691 (grub_diskfilter_register_back): New function.
10692 All users of grub_diskfilter_register updated.
10694 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10696 * util/grub-install.in: Fix an automatic target detection bug.
10698 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10700 * util/grub-install.in: New option --efi-directory.
10702 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10704 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10705 boot services if we have no other choice.
10707 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10709 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10711 * tests/util/grub-shell.in: Update to --directory.
10713 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10715 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10717 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10719 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10720 (grub_minix_read_file): Likewise.
10721 (grub_minix_read_inode): Likewise.
10722 (grub_minix_find_file): Likewise.
10723 (grub_minix_dir): Likewise.
10725 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10727 * util/grub-setup.c (setup): Fix partition handling and blocklist
10730 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10732 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10733 redundant buggy overlap check.
10735 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10737 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10740 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10742 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10743 kh.loadflags on pre-2.00 kernels.
10745 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10747 Terminate UNDI and PXE before launching the payload to avoid problems
10750 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10751 (grub_loader_flags): ... this. All users updated.
10752 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10753 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10754 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10755 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10757 (grub_pxe_restore): Likewise.
10758 (fini_hnd): New var.
10759 (GRUB_MOD_INIT): Register shutdown hook.
10760 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10761 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10762 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10763 (grub_loader_set): Rename second argument to flags.
10765 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10767 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10769 (grub_get_num_of_utf8_bytes): New function.
10770 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10771 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10773 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10774 (grub_ucs4_to_utf8): Change return type.
10776 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10778 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10780 * grub-core/fs/bfs.c (hop_level): Likewise.
10781 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10783 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10785 * grub-core/lib/adler32.c: Recode due to license unclearness.
10787 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10789 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10790 (test_header): Likewise.
10792 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10794 Fix --help formatting.
10796 * util/grub-mkconfig_lib.in (print_option_help): New function.
10797 (grub_fmt): Likewise.
10798 * util/grub-install.in: Use print_option_help and grub_fmt.
10799 * util/grub-kbdcomp.in: Likewise.
10800 * util/grub-mkconfig.in: Likewise.
10801 * util/grub-mknetdir.in: Likewise.
10802 * util/grub-mkrescue.in: Likewise.
10803 * util/grub-mkstandalone.in: Likewise.
10804 * util/grub-reboot.in: Likewise.
10805 * util/grub-set-default.in: Likewise.
10806 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10808 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10810 * linguas.sh: Remove autogenerated *.po.
10812 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10814 * po/README: Move language fetcing to ...
10815 * linguas.sh: ... here.
10816 * po/README: Point to linguas.sh.
10818 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10820 * po/README: Exclude ko.po due to disclaimer problems.
10822 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10824 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10826 (grub_gettext_translate_real): Handle 0th string.
10827 (grub_gettext_translate): Ensure that "" isn't translated.
10829 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10831 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10832 TRANSLATORS comment.
10833 (grub_diskfilter_print_partmap): Propagate changing of error into
10836 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10838 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10839 to uint64_t to prevent overflow.
10840 (grub_diskfilter_lv): Increase start_extent and extent_count
10841 to uint64_t to prevent overflow.
10843 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10845 * configure.ac: Increase version.
10847 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10849 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10851 * po/Rules-translit: New file.
10852 * po/arabic.sed: Likewise.
10853 * po/cyrillic.sed: Likewise.
10854 * po/greek.sed: Likewise.
10855 * po/hebrew.sed: Likewise.
10856 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10857 * po/Makefile.in.in: Add extra_dist4.
10859 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10861 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10863 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10864 modify names. Introduce MODE_BIGENDIAN.
10865 * grub-core/fs/minix_be.c: New file.
10866 * grub-core/fs/minix2_be.c: Likewise
10867 * grub-core/fs/minix3_be.c: Likewise.
10868 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10870 * grub-core/Makefile.core.def (minix_be): New module.
10871 (minix2_be): Likewise.
10872 (minix3_be): Likewise.
10874 2012-04-01 Felix <email@hamburg.de>
10876 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10877 (devs): Add MBP 2011.
10879 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10881 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10883 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10885 * grub-core/normal/cmdline.c (print_completion): New field
10887 (grub_cmdline_get): Handle width properly.
10889 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10891 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10893 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10895 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
10896 after 29th of February.
10898 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10900 Fix exfat endianness handling.
10902 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10903 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10904 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10905 Byte-swap utf16 when necessary.
10906 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10908 2012-03-31 Anton Blanchard <anton@samba.org>
10909 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10911 Fix btrfs endianness handling.
10913 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10914 (lower_bound): Make root uint64_t. Use root in le.
10915 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10916 (find_path): Fix template key init.
10917 (grub_btrfs_dir): Fix mtime byteswap.
10918 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10920 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10922 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10923 recursion_depth. Break infinite resursions. All users updated.
10925 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10927 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
10929 Reported by: Peter Jones.
10931 2012-03-31 Anton Blanchard <anton@samba.org>
10933 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
10936 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10938 * util/grub-install.in: Fix nvram call for PreP.
10940 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10942 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
10943 the error when some elements are missing into a warning.
10945 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10947 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
10949 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
10951 * docs/grub.texi (Invoking grub-probe): New section.
10952 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
10954 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10956 Fix tab and wide character handling in editor and menu.
10958 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
10959 agglomerate control characters with combining marks.
10960 (bidi_line_wrap): Allow break on tab.
10961 (grub_unicode_get_comb_start): New function.
10962 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
10964 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
10966 * grub-core/normal/term.c (print_ucs4_terminal): New argument
10967 fixed_tab_size. All users updated.
10968 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
10969 (grub_term_getcharwidth): Handle \t.
10970 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
10973 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10975 Handle big-endian mdraid.
10977 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
10978 * grub-core/Makefile.core.def (mdraid09_be): New module.
10979 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
10980 rather than grub_le_to_cpu* and grub_cpu_to_le*.
10981 * grub-core/disk/mdraid_linux_be.c: New file.
10983 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10985 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
10987 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10989 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
10990 missing quotes which caused confusion among translators.
10992 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10994 * util/grub-mkconfig_lib.in: Fix typo.
10996 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10998 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11000 * tests/grub_script_leading_whitespace.in: New file.
11001 * Makefile.util.def (grub_script_leading_whitespace): New test.
11003 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11005 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11008 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11010 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11011 starts with control character.
11013 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11015 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11017 (grub_gdb_outbuf): Likewise.
11019 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11021 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11022 zero terminator. Fixes a crash.
11024 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11026 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11028 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11029 images independently of preffered adderss field.
11031 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11033 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11034 * grub-core/commands/regexp.c: Likewise.
11035 * grub-core/loader/i386/linux.c: Likewise.
11036 * grub-core/partmap/msdos.c: Likewise.
11037 * grub-core/script/execute.c: Likewise.
11038 * grub-core/term/gfxterm.c: Likewise.
11040 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11042 Add variable parsing in $"..." and fix several mismatches with bash.
11044 * Makefile.util.def (grub_script_gettext): New test.
11045 * grub-core/script/execute.c (parse_string): New function.
11046 (gettext_append): Likewise.
11047 (grub_script_arglist_to_argv): Use gettext_append.
11048 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11049 * tests/grub_script_gettext.in: New file.
11051 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11053 Fix handling of leading spaces in scripts.
11055 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11057 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11058 other than skipping \r. All users updated.
11059 * tests/grub_script_echo1.in: Add space-related tests.
11060 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11062 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11064 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11066 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11068 * configure.ac: Bump up the version to beta2.
11070 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11072 Fix gettext reload bugs (e.g. inability to disable gettext
11075 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11076 main_context and secondary_context. All functions updated.
11077 (grub_gettext_translate): Rename to ...
11078 (grub_gettext_translate_real): ... this. Return NULL on failed
11080 (grub_gettext_translate): Handle secondary context.
11081 (grub_gettext_delete_list): Close file and zero-out the context.
11082 (grub_mofile_open): Don't call grub_gettext_delete_list.
11084 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11085 if locale="" to avoid pointless error message.
11086 (grub_gettext_env_write_lang): Update lang even if load fails.
11087 Handle secondary context.
11088 (grub_gettext_reread_prefix): New function.
11089 (read_main): Likewise.
11090 (read_secondary): Likewise.
11091 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11092 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11093 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11094 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11096 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11098 * configure.ac: Decrease warning level to avoid spurious warnings and
11099 to be able to compile with GCC 4.2.
11100 * Makefile.util.def: Remove -Wno-error=logical-op.
11102 2012-03-10 William Bittner <william.bittner@gmail.com>
11104 * util/import_unicode.py: Add missing brackets around string for
11107 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11109 Fix efi chainloader on network root.
11111 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11113 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11116 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11118 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11119 unused show_text member.
11120 * docs/grub.texi: Document "text" property.
11122 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11124 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11127 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11129 Fix IMSM handling on Fedora.
11131 * util/getroot.c (grub_util_is_imsm): New function.
11132 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11134 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11136 * Makefile.am: Strip gold section.
11137 * conf/Makefile.common: Likewise.
11138 * gentpl.py: Likewise.
11139 * grub-core/Makefile.core.def: Likewise.
11140 * grub-core/genmod.sh.in: Likewise.
11142 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11144 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11145 * util/grub.d/20_linux_xen.in: Likewise.
11146 Based on Debian patch.
11148 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11150 * util/grub.d/10_linux.in: Fix syntax error resulting in
11151 Richard Laager's patch.
11152 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11154 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11156 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11159 2012-03-10 Richard Laager <rlaager@wiktel.com>
11161 * util/grub.d/10_linux.in: Fix ZFS root passing.
11163 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11165 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11166 * grub-core/commands/xnu_uuid.c: Likewise.
11167 * grub-core/loader/efi/appleloader.c: Likewise.
11168 * grub-core/script/execute.c: Likewise.
11169 * grub-core/script/main.c: Likewise.
11170 * util/grub-mkfont.c: Likewise.
11172 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11174 * util/grub-mkfont.c (options): Use more appropriate "select" that
11175 "set" for face index.
11177 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11179 * util/grub-editenv.c (options): Gettextize command summaries.
11181 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11183 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11184 "out of memory" error messagge.
11186 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11188 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11189 of diskfilter for diskfilter on diskfilter support.
11191 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11193 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11195 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11197 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11200 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11202 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11204 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11206 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11208 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11210 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11213 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11215 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11217 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11219 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11221 * util/grub-install.in: Fix and gettextize error message.
11223 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11225 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11227 * util/grub-mount.c (options): Likewise.
11229 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11231 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11233 * grub-core/commands/search_wrap.c (options): Likewise.
11235 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11237 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11239 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11241 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11243 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11246 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11248 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11249 "temporary" since it's used in identifier and is limited in space.
11251 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11253 * po/POTFILES.in: Regenerate. Include *.h since they contain
11254 translatable strings as well.
11256 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11258 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11259 byte-swap on big-endian.
11260 Reported by: Lennart Sorensen
11262 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11264 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11265 (allocate_pages): Improve dprintf.
11266 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11267 code32_start. Fill code32_start and kernel_alignment in params.
11268 (grub_cmd_initrd): Use prot_init_space.
11270 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11272 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11274 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11276 * util/grub-install.in: Add missing dot at the end of sentence.
11278 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11280 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11281 * grub-core/commands/videotest.c: Likewise.
11282 * grub-core/loader/i386/linux.c: Likewise.
11284 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11286 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11288 Reported by: Milo Casagrande.
11290 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11292 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11293 * grub-core/commands/gptsync.c: Likewise.
11294 * grub-core/commands/hashsum.c: Likewise.
11295 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11296 * grub-core/commands/legacycfg.c: Likewise.
11297 * grub-core/io/gzio.c: Likewise.
11298 * grub-core/net/net.c: Likewise.
11299 * grub-core/term/gfxterm.c: Likewise.
11300 * grub-core/term/terminfo.c: Likewise.
11301 * grub-core/tests/test_blockarg.c: Likewise.
11302 * grub-core/video/video.c: Likewise.
11303 * util/grub-install.in: Likewise.
11304 * util/grub-mkfont.c: Likewise.
11306 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11308 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11310 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11312 * grub-core/commands/search_wrap.c (options): Fix a typo.
11313 Reported by: David Prévot.
11315 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11317 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11320 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11322 * util/grub-script-check.c (main): Fix a syntax error message which was
11325 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11327 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11329 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11331 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11334 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11336 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11338 * util/grub-mount.c (options): Likewise.
11340 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11342 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11344 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11346 * grub-core/net/http.c: Add TRANSLATORS comments.
11347 * grub-core/normal/cmdline.c: Likewise.
11348 * grub-core/normal/misc.c: Likewise.
11349 * grub-core/partmap/msdos.c: Likewise.
11350 * grub-core/parttool/msdospart.c: Likewise.
11351 * grub-core/script/execute.c: Likewise.
11352 * grub-core/script/main.c: Likewise.
11353 * grub-core/term/terminfo.c: Likewise.
11354 * grub-core/video/bitmap.c: Likewise.
11355 * util/grub-install.in: Likewise.
11356 * util/grub-mkimage.c: Likewise.
11357 * util/grub-mklayout.c: Likewise.
11358 * util/grub-setup.c: Likewise.
11360 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11362 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11363 with similar messages in grub-fstest.
11365 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11367 * util/grub-install.in: Unify "option requires an argument" message
11368 with similar messages in other files.
11369 * util/grub-mkconfig.in: Likewise.
11371 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11373 * util/grub-set-default.in: Replace printf with gettext_printf (the
11374 string in in question is already translated from grub-reboot)
11376 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11378 * configure.ac: Bump up the version to beta1.
11380 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11382 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11383 case when min_align = 0.
11385 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11387 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11388 and fix a case when line_start overflows.
11390 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11392 * util/grub-reboot.in (usage): Mention id posibility.
11393 * util/grub-set-default.in (usage): Likewise.
11395 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11397 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11398 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11399 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11400 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11401 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11402 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11403 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11405 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11407 * grub-core/commands/menuentry.c (options): Remove
11408 GRUB_ARG_OPTION_REPEATABLE.
11409 Reported by: Andreas Vogel
11411 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11413 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11415 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11417 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11420 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11422 Use sort -V by the idea of Georgi Georgiev.
11424 * util/grub-mkconfig_lib.in (version_sort): New function.
11425 (version_test_numeric): Use version_sort.
11427 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11429 Use submenus in grub-mkconfig.
11431 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11432 * util/grub-mkconfig_lib.in (grub_quote): New function.
11433 (gettext_printf): Use gettext and not gettext_quoted to fix several
11435 * util/grub.d/10_hurd.in: Use submenus.
11436 * util/grub.d/10_kfreebsd.in: Likewise.
11437 * util/grub.d/10_linux.in: Likewise.
11438 * util/grub.d/10_netbsd.in: Likewise.
11439 * util/grub.d/20_linux_xen.in: Likewise.
11440 * util/grub.d/30_os-prober.in: Likewise.
11441 * util/grub.d/10_illumos.in: Add missing quoting.
11442 * util/grub.d/10_windows.in: Likewise.
11444 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11446 Fix menu title instability bug.
11448 * grub-core/commands/menuentry.c (options): New option --id.
11449 (grub_normal_add_menu_entry): New argument id. All users updated.
11450 (grub_cmd_menuentry): Handle --id.
11451 (grub_menu_init): Accept unknown arguments.
11452 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11453 feature_menuentry_options.
11454 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11456 (get_entry_number): Match with id as well.
11457 * include/grub/menu.h (grub_menu_entry): New member id.
11458 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11459 * util/grub.d/00_header.in: Define menuentry_id_option.
11460 * util/grub.d/10_hurd.in: Define id.
11461 * util/grub.d/10_illumos.in: Likewise.
11462 * util/grub.d/10_kfreebsd.in: Likewise.
11463 * util/grub.d/10_linux.in: Likewise.
11464 * util/grub.d/10_netbsd.in: Likewise.
11465 * util/grub.d/10_windows.in: Likewise.
11466 * util/grub.d/20_linux_xen.in: Likewise.
11467 * util/grub.d/30_os-prober.in: Likewise.
11469 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11471 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11472 "scope" with "body".
11474 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11476 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11477 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11478 prot_size and prot_file_size.
11480 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11482 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11483 All users updated. If easily=1 require raid-5/-6 to be full.
11484 (is_node_readable): Likewise.
11485 (scan_devices): Scan incomplete but readable LVs at the end.
11486 (grub_diskfilter_memberlist): Pull missing devices.
11487 (insert_array): Skip scanning until device is complete or scan is
11489 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11491 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11492 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11494 2012-03-03 Matthew Garrett <mjg@redhat.com>
11495 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11497 Avoid EFI boot services when loading Linux.
11499 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11500 avoid_efi_bootservices. All users updated.
11501 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11502 argument avoid_efi_bootservices. All users updated.
11503 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11504 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11505 align, min_align, relocatable, prefered_address. All users updated.
11506 Allocate avoiding boot services if kernel is relocatable.
11507 (grub_cmd_linux): Check if kernel is relocatable.
11508 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11509 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11510 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11511 avoid_efi_boot_services.
11512 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11513 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11514 (linux_kernel_params): Likewise.
11516 2012-03-03 Matthew Garrett <mjg@redhat.com>
11517 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11521 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11523 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11524 modes. Set gop_handle.
11525 (grub_video_gop_get_edid): New function.
11526 (grub_gop_get_preferred_mode): Likewise.
11527 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11528 (grub_video_efi_gop_adapter): Set .get_edid.
11529 * include/grub/efi/edid.h: New file.
11530 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11532 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11534 * util/grub-install.in: Load efivars unconditionally.
11536 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11538 * po/Rules-piglatin: Change suffix from .po-update-en to
11539 .po-update-en-piglatin.
11541 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11545 * po/piglatin.sed: New file.
11546 * po/en@piglatin.header: Likewise.
11547 * po/Rules-piglatin: Likewise.
11548 * po/README: Add en@piglatin to autogenerated languages.
11550 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11552 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11554 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11555 "Check" since we don't check anything.
11556 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11558 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11559 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11560 (grub_md_sha512_real): Likewise.
11562 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11564 * grub-core/commands/gptsync.c: Fix typographic quoting.
11565 * grub-core/commands/ieee1275/suspend.c: Likewise.
11566 * grub-core/commands/parttool.c: Likewise.
11567 * grub-core/commands/search_wrap.c: Likewise.
11568 * grub-core/commands/videoinfo.c: Likewise.
11569 * grub-core/gfxmenu/gui_label.c: Likewise.
11570 * grub-core/hello/hello.c: Likewise.
11571 * grub-core/kern/emu/main.c: Likewise.
11572 * grub-core/net/net.c: Likewise.
11573 * grub-core/normal/menu.c: Likewise.
11574 * grub-core/normal/menu_text.c: Likewise.
11575 * grub-core/normal/misc.c: Likewise.
11576 * util/grub-editenv.c: Likewise.
11577 * util/grub-install.in: Likewise.
11578 * util/grub-kbdcomp.in: Likewise.
11579 * util/grub-mkconfig.in: Likewise.
11580 * util/grub-mknetdir.in: Likewise.
11581 * util/grub-mkrescue.in: Likewise.
11582 * util/grub-mkstandalone.in: Likewise.
11583 * util/grub-reboot.in: Likewise.
11584 * util/grub-set-default.in: Likewise.
11585 * util/grub-setup.c: Likewise.
11586 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11588 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11590 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11591 * grub-core/commands/keystatus.c: Likewise.
11592 * grub-core/commands/loadenv.c: Likewise.
11593 * grub-core/commands/probe.c: Likewise.
11594 * grub-core/commands/regexp.c: Likewise.
11595 * grub-core/commands/true.c: Likewise.
11596 * grub-core/commands/videoinfo.c: Likewise.
11597 * grub-core/disk/cryptodisk.c: Likewise.
11598 * grub-core/disk/ldm.c: Likewise.
11599 * grub-core/disk/loopback.c: Likewise.
11600 * grub-core/disk/luks.c: Likewise.
11601 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11602 * grub-core/kern/disk.c: Likewise.
11603 * grub-core/kern/emu/hostdisk.c: Likewise.
11605 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11607 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11608 * util/grub-install.in: Add missing quote in the comment.
11610 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11612 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11613 * grub-core/commands/lsmmap.c: Likewise.
11614 * grub-core/commands/minicmd.c: Likewise.
11615 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11616 * grub-core/commands/regexp.c: Likewise.
11617 * grub-core/gdb/gdb.c: Likewise.
11618 * grub-core/term/gfxterm.c: Likewise.
11619 * util/grub-mkconfig.in: Likewise.
11620 * util/grub-mkfont.c: Likewise.
11621 * util/grub-mklayout.c: Likewise.
11622 * util/grub-mknetdir.in: Likewise.
11623 * util/grub-mkrescue.in: Likewise.
11624 * util/grub.d/30_os-prober.in: Likewise.
11626 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11628 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11629 with "Direct color" and "Packed" with "Packed pixel".
11630 (grub_cmd_videoinfo): Simplify legend.
11632 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11634 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11635 absolutely unclear error message.
11637 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11639 * util/grub-mkstandalone.in: Remove confusing leftover print.
11641 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11643 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11645 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11646 (GRUB_MOD_INIT): Likewise.
11647 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11649 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11651 * util/grub-install.in (usage): Likewise.
11652 Spell ID in whole letters.
11653 Add missing ending dot.
11655 * util/grub-reboot.in: Fix capitalisation.
11656 * util/grub-set-default.in: Likewise.
11658 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11660 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11661 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11662 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11663 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11664 Disable -Werror for -Wdeprecated-declarations.
11665 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11666 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11667 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11668 (grub_util_get_grub_dev): Make luks handling dependent on
11669 HAVE_DEVICE_MAPPER and not __linux__.
11670 (get_win32_path): Fix format security.
11671 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11672 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11673 Don't try grub_find_zpool_from_dir.
11674 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11675 #ifdef-out paresdir.
11677 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11679 * util/grub-pe2elf.c (usage): Add missing noreturn.
11680 (write_section_data): Rename name to shname to avoid shadowing.
11681 (write_symbol_table): Rename name to symname to avoid shadowing.
11682 Fix write_reloc_section call.
11684 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11686 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11687 to ensure that it's after the last byte of .text.
11689 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11691 * util/ieee1275/ofpath.c (my_isdigit): New function.
11692 (trailing_digits): Use my_isdigit.
11693 (strip_trailing_digits): Likewise.
11695 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11697 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11698 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11700 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11702 * grub-core/kern/i386/pc/startup.S: Define __start.
11704 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11706 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11707 strip already transforms he format.
11709 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11711 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11713 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11715 * util/grub-install.in: Add missing gettext init.
11716 * util/grub-kbdcomp.in: Likewise.
11717 * util/grub-mkconfig.in: Likewise.
11718 * util/grub-mknetdir.in: Likewise.
11719 * util/grub-mkrescue.in: Likewise.
11720 * util/grub-mkstandalone.in: Likewise.
11721 * util/grub-reboot.in: Likewise.
11722 * util/grub-set-default.in: Likewise.
11723 * util/grub.d/00_header.in: Likewise.
11724 * util/grub.d/10_hurd.in: Likewise.
11725 * util/grub.d/10_windows.in: Likewise.
11726 * util/grub.d/30_os-prober.in: Likewise.
11727 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11729 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11731 * po/Rules-swiss: Fix header comment.
11733 2012-02-29 Andreas Vogel <anvoit>
11735 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11736 resulted in leak of arguments.
11738 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11740 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11741 reed_solomon_size const definition instead of computing it since
11742 Apple assembler doesn't support the later.
11744 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11746 * gentpl.py (kernel): Rewrite Apple part.
11748 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11750 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11752 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11754 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11756 (load_image): Likewise.
11758 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11760 * configure.ac: Fix a typo in previous commit.
11762 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11764 Don't add -Wl,-N on Apple platform.
11766 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11767 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11769 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11771 * grub-core/Makefile.core.def (lzma_decompress): Use
11772 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11774 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11776 * grub-core/genmod.sh.in: Rewrite the Apple part.
11778 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11780 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11783 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11785 * acinclude.m4 (grub_CHECK_PIC): New test.
11786 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11788 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11790 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11791 to avoid the warning.
11793 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11795 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11796 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11797 after. All users updated.
11799 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11801 Use the common size routine in hostfs so we can read disks as well.
11803 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11804 (grub_util_get_fd_size): ... this. Return size in bytes.
11806 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11807 grub_util_get_fd_size.
11809 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11811 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11812 Add blocksize retrieval.
11814 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11816 * configure.ac: Restore CFLAGS after efiemu check.
11818 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11820 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11823 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11825 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11827 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11829 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11830 (grub_cmd_halt): Likewise.
11832 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11834 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11835 for local arithmetics.
11836 Break %sp init into 2 instructions.
11837 Add 0 byte at the end.
11839 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11841 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11844 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11846 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11849 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11851 * grub-core/disk/ldm.c (make_vg): Init part.name.
11852 (grub_ldm_detect): Silence spurious warning.
11853 (grub_util_is_ldm): Likewise.
11855 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11857 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11858 sane value to avoid a spurious warning.
11860 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11862 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11863 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11865 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11867 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11868 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11870 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11872 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11873 hardcoding the relevant info.
11875 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11877 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11878 missing const qualifiers.
11879 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11881 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11883 * util/getroot.c [__APPLE__]: Add missing includes.
11884 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11886 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11888 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11890 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11892 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11895 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11897 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11899 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11901 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11902 and grub_file_close call.
11904 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11906 Add LZSS Mach-O support (needed for new xnu kernelcache).
11908 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11909 * grub-core/loader/lzss.c: New file.
11910 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11911 on Mach-O open failure.
11912 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11913 Don't free cmdsXX in uncompressedXX is set.
11914 (grub_macho_file): Init new fields.
11915 New argument is_64bit. All users updated.
11916 Handle compressed. Error out if no suitable architecture is found.
11918 (grub_macho_open): New argument is_64bit. All users updated.
11919 * grub-core/loader/macho32.c: Add defines for new fields.
11920 * grub-core/loader/macho64.c: Likewise.
11921 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11922 (grub_macho_parse): Handle compressed.
11923 Defer actual processing if compressed.
11924 (grub_macho_cmds_iterate): Decompress if compressed. New argument
11925 "filename". All users updated.
11926 (grub_macho_size): New argument "filename". All users updated.
11927 (grub_macho_get_entry_point): Likewise.
11928 (grub_macho_load): Handle compressed.
11929 * include/grub/macho.h (grub_macho_lzss_header): New struct.
11930 (GRUB_MACHO_LZSS_OFFSET): New define.
11931 (grub_decompress_lzss): New proto.
11932 * include/grub/machoload.h (grub_macho_file): New fields to handle
11934 (grub_macho_contains_macho64): Remove proto.
11935 (grub_macho_contains_macho32): Likewise.
11936 * util/grub.d/30_os-prober.in: Use kernel cache if available.
11938 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11940 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
11942 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11946 * Makefile.am (starfield_theme_files): New var.
11947 (starfield_DATA): Use starfield_theme_files.
11948 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
11949 Add bootcheck-related files.
11950 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
11951 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
11952 and font_char_metrics.txt.
11953 * grub-core/Makefile.core.def (kernel): Update extra_dist.
11954 (setjmp): Add lib/ia64/longjmp.S.
11955 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
11956 * po/POTFILES.in: Regenerate.
11957 * po/Rules-swiss: use DISTFILES.common.extra2 and not
11958 DISTFILES.common.extra1.
11959 * util/devicemap.c: Removed.
11960 * grub-core/lib/i386/relocator_backward.S: Likewise.
11961 * util/import_gcry.py: Remove unused files. Add extra_dist for
11964 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11966 * grub-core/gettext/gettext.c (grub_mofile_open): Call
11967 grub_gettext_delete_list before changing grub_gettext_max to avoid
11968 running out of array bounds.
11970 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11972 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
11973 grub_vga_text_init/grub_vga_text_fini.
11975 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11977 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
11979 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11981 * configure.ac: Bump to 2.00~beta0.
11983 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11985 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
11986 missing initialisation.
11988 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11990 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
11992 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11994 Support v2 xnu boot arguments.
11996 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
11997 New argument fsbfreq_out.
11998 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
11999 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12001 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12003 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12004 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12005 (grub_xnu_boot_params): Rename to ...
12006 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12007 (grub_xnu_boot_params_v2): New struct.
12009 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12011 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12012 zeroing of CRC field before computing CRC.
12014 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12016 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12017 Change order of allocations to decrease fragmentation.
12019 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12021 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12023 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12025 Use write-combining MTRR to speed up video with buggy BIOSes.
12027 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12028 (cpuid): New define.
12031 (mtrr_base): Likewise.
12032 (mtrr_mask): Likewise.
12033 (grub_vbe_enable_mtrr_entry): New function.
12034 (grub_vbe_enable_mtrr): Likewise.
12035 (grub_vbe_disable_mtrr): Likewise.
12036 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12037 control off to BIOS.
12038 (grub_video_vbe_init): Fill mtrr.
12039 (grub_video_vbe_fini): Disable mtrr.
12040 (grub_video_vbe_get_info_and_fini): Likewise.
12041 (grub_video_vbe_setup): Enable mtrr.
12043 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12045 * include/grub/partition.h (grub_partition_map): Change prototype of
12046 embed to take a maximum value for nsectors.
12047 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12048 * include/grub/fs.h (grub_fs): Likewise.
12049 * grub-core/partmap/msdos.c (embed_signatures): New array.
12050 (pc_partition_map_embed): Check for and avoid sectors matching any
12051 of the signatures in embed_signatures, up to max_nsectors.
12052 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12053 returned sector map to max_nsectors.
12054 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12055 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12056 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12057 * util/grub-setup.c (setup): Allow for the embedding area being
12058 split into multiple blocklists. Tell dest_partmap->embed the
12059 maximum number of sectors we care about.
12061 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12063 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12064 Specify blocklist_install and reserver_first_sector for all fs.
12065 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12068 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12070 * util/grub-install.in: Clarify strings.
12071 Fix source dir check.
12073 2012-02-27 Richard Laager <rlaager@wiktel.com>
12075 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12076 "zfs" and "fuse.zfs" as synonyms.
12078 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12080 * configure.ac: Put platform and target_cpu substitutions back since
12081 they are used for directories.
12083 2012-02-27 Richard Laager <rlaager@wiktel.com>
12084 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12086 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12087 * util/grub.d/20_linux_xen.in: Likewise.
12089 2012-02-27 Richard Laager <rlaager@wiktel.com>
12091 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12094 2012-02-27 Richard Laager <rlaager@wiktel.com>
12096 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12099 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12101 Don't use insecure popen in getroot.
12103 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12104 (exec_pipe): ... here.
12105 (find_root_devices_from_poolname): Use exec_pipe.
12107 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12109 Remove platform and target_cpu replacement.
12111 * configure.ac: Remove platform and target_cpu substitutions.
12112 * tests/util/grub-shell.in: Use modinfo.
12113 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12116 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12118 Autodetect platform in grub-install but allow override.
12120 * util/grub-install.in: Autodetect platform. Support --target and
12121 --directory. Read platform from modinfo.sh.
12123 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12125 Support btrfs multi-volume probe.
12127 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12128 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12129 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12130 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12131 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12132 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12133 grub_find_root_devices_from_btrfs if on btrfs.
12135 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12137 Remove any awareness of *.c util files about target.
12139 * Makefile.util.def (grub-setup): Split to ...
12140 (grub-bios-setup): ... and this.
12141 (grub-sparc64-setup): ... and this.
12142 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12143 * docs/man/grub-setup.h2m: Split into ...
12144 * docs/man/grub-sparc64-setup.h2m: ... this.
12145 * docs/man/grub-bios-setup.h2m: ... and this.
12146 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12147 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12148 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12149 (grub_target_addr_t): Remove.
12150 (grub_target_size_t): Remove.
12151 (grub_target_ssize_t): Remove.
12152 * util/grub-install.in: Use new grub-*-setup.
12153 * util/grub-mkimagexx.c (Elf_Word): New define.
12154 (Elf_Half): Likewise.
12155 (Elf_Section): Likewise.
12156 (ELF_ST_TYPE): Likewise.
12157 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12158 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12160 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12162 Replace grub_target_addr with more appropriate types.
12164 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12165 grub_target_addr with grub_addr.
12166 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12167 grub_target_addr with grub_port.
12168 (grub_cmd_write): Likewise.
12169 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12170 grub_target_addr with grub_addr.
12171 (grub_cmd_write): Likewise.
12172 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12174 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12176 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12177 const qualifier for vendor_guid.
12179 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12181 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12183 (efiemu_memequal): Likewise.
12184 (find_variable): Likewise.
12186 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12188 Fix missing console prototype on qemu-mips.
12190 * include/grub/mips/qemu_mips/console.h: New file.
12192 2012-02-27 Matthew Garrett <mjg@redhat.com>
12193 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12195 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12196 * include/grub/efi/efi.h: Likewise.
12197 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12198 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12199 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12200 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12201 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12202 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12204 2012-02-27 Matthew Garrett <mjg@redhat.com>
12206 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12208 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12210 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12213 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12215 * configure.ac: Remove inappropriate use of program_transform_name
12216 on grubdir and bootdir but allow explicit specification of those
12219 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12221 * util/grub-mknetdir.in (grub_prefix): Removed.
12222 (subdir): Use @bootdirname@ and @grubdirname@.
12224 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12226 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12228 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12230 * po/POTFILES.in: Regenerated.
12232 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12234 Remove improper use of program_transform_name on pkglibrootdir.
12236 * configure.ac (pkglibrootdir): Removed.
12237 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12238 * util/grub-mkimage.c: Likewise.
12240 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12242 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12245 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12247 * util/grub-install.in: Use file identifier if no UUID is available
12248 or user explicitly prompted for it.
12250 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12252 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12253 (freebsd_get_zfs): New function.
12254 (grub_freebsd_boot): Pass zfs UUID.
12255 (grub_cmd_freebsd): Set zfs UUID.
12257 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12259 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12262 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12264 Add configure flag to control libzfs integration.
12266 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12268 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12270 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12272 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12275 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12277 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12278 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12279 be used on non-modules.
12281 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12282 Rename to grub_boot_init.
12283 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12284 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12285 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12286 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12287 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12288 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12289 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12290 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12292 (grub_machine_init): Remove empty inits.
12293 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12295 (grub_machine_init): Remove empty inits.
12296 * grub-core/term/arc/console.c: Remove explicit proto.
12297 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12298 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12299 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12300 grub_at_keyboard_fini.
12301 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12302 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12303 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12305 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12306 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12307 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12309 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12310 * grub-core/term/serial.c (GRUB_MOD_INIT)
12311 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12312 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12314 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12315 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12316 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12317 grub_terminfo_fini.
12318 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12319 (GRUB_MOD_FINI): Likewise.
12320 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12321 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12322 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12323 grub_video_radeon_fuloong2e_fini.
12324 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12325 [LOONGSON]: Rename to grub_video_sis315pro_init.
12326 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12327 grub_video_sis315pro_fini.
12328 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12329 [LOONGSON]: Rename to grub_video_sm712_init.
12330 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12331 grub_video_sm712_fini.
12332 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12333 (grub_at_keyboard_fini): Likewise.
12334 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12335 Don't declare grub_{modname}_init.
12336 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12337 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12339 (grub_keylayouts_fini) [!EMU]: Likewise.
12340 * include/grub/serial.h (grub_serial_init) [!EMU]:
12342 (grub_serial_fini) [!EMU]: Likewise.
12343 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12345 (grub_terminfo_fini) [!EMU]: Likewise.
12346 * include/grub/video.h (grub_font_init) [!EMU]:
12348 (grub_font_fini) [!EMU]: Likewise.
12349 (grub_gfxterm_init) [!EMU]: Likewise.
12350 (grub_gfxterm_fini) [!EMU]: Likewise.
12351 (grub_video_sm712_init) [!EMU]: Likewise.
12352 (grub_video_sm712_fini) [!EMU]: Likewise.
12353 (grub_video_sis315pro_init) [!EMU]: Likewise.
12354 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12355 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12356 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12358 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12360 Make nand a prefix for nand devices.
12362 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12364 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12366 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12367 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12369 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12371 * include/grub/env.h (grub_env_find): Remove prototype.
12372 * grub-core/kern/env.c (grub_env_find): Make static.
12373 (grub_env_set): Remove useless set.
12375 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12377 * grub-core/kern/i386/realmode.S: Remove useless align.
12379 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12381 * include/grub/dl.h (grub_dl_load_file): Don't export.
12383 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12385 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12388 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12390 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12392 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12393 not reloading whole superblock but only the part which is really needed.
12394 Remove useless grub_errors.
12395 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12398 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12400 Don't export grub_get_rtc.
12402 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12403 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12405 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12407 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12409 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12411 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12412 argument since it can be deduced from diskfilter. All users updated.
12414 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12418 * include/grub/list.h (grub_prio_list): Removed.
12419 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12420 GRUB_COMMAND_PRIO_MASK.
12421 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12422 GRUB_COMMAND_FLAG_ACTIVE.
12423 (grub_prio_list_insert): Removed.
12424 (grub_prio_list_remove): Likewise.
12425 (GRUB_AS_PRIO_LIST): Likewise.
12426 (GRUB_AS_PRIO_LIST_P): Likewise.
12427 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12428 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12429 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12430 * grub-core/kern/command.c (grub_register_command_prio): Inline
12431 the prio_list code.
12432 (grub_unregister_command): Likewise.
12434 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12436 Fix interrupt mixup from previous commit.
12438 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12439 (grub_realidt): New var.
12440 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12442 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12444 (grub_relocator16_boot): Set grub_relocator16_idt.
12445 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12446 (LOCAL(realidt)): ... this.
12447 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12448 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12449 (grub_realidt): New variable.
12451 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12453 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12454 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12455 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12456 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12458 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12459 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12460 * po/POTFILES.in: Regenerate.
12462 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12464 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12467 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12469 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12471 (add_length): Likewise.
12473 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12474 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12476 GDB serial and backtrace support.
12478 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12479 (prot_to_real): Likewise.
12480 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12481 * grub-core/Makefile.core.def (backtrace): New module.
12483 * grub-core/gdb/cstub.c: New file.
12484 * grub-core/gdb/gdb.c: Likewise.
12485 * grub-core/gdb/i386/idt.c: Likewise.
12486 * grub-core/gdb/i386/machdep.S: Likewise.
12487 * grub-core/gdb/i386/signal.c: Likewise.
12488 * grub-core/lib/i386/backtrace.c: Likewise.
12489 * grub-core/lib/backtrace.c: Likewise.
12490 * include/grub/backtrace.h: Likewise.
12491 * include/grub/gdb.h: Likewise.
12492 * include/grub/i386/gdb.h: Likewise.
12494 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12496 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12498 (add_length): Likewise.
12499 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12500 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12502 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12503 __argp_get_display_len.
12505 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12507 $"..." support in scripts.
12509 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12510 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12511 * grub-core/script/yylex.l: Likewise.
12512 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12515 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12517 * gentpl.py: Remove obsolete pkglib_DATA handling.
12519 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12521 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12524 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12525 * util/grub-kbdcomp.in: Likewise.
12526 * util/grub-mkconfig.in: Likewise.
12527 * util/grub-mkconfig_lib.in: Likewise.
12528 * util/grub-mknetdir.in: Likewise.
12529 * util/grub-mkrescue.in: Likewise.
12530 * util/grub-mkstandalone.in: Likewise.
12531 * util/grub-reboot.in: Likewise.
12532 * util/grub-set-default.in: Likewise.
12533 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12535 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12537 Remove GRUB_PREFIX.
12539 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12540 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12541 used for backward compatibility.
12543 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12545 Add new all_video module.
12547 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12548 * grub-core/Makefile.core.def (all_video): New module.
12549 * grub-core/genmoddep.awk: Generate dependency of all_video from
12551 * grub-core/lib/fake_module.c: New file.
12552 * grub-core/normal/main.c (features): Add feature_all_video_module.
12553 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12554 don't do explicit search again.
12555 insmod all_video in load_video if available.
12557 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12559 Another round of string clarification and adding TRANSLATORS comments.
12561 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12563 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12565 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12567 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12569 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12570 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12572 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12574 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12575 trailing newline implicitly. All users updated.
12577 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12579 Implement serial on IEEE1275 and EFI.
12581 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12582 on emu. Mention arc and emu as the only platforms without serial
12584 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12585 ieee1275 platforms.
12586 * grub-core/term/efi/serial.c: New file.
12587 * grub-core/term/ieee1275/serial.c: Likewise.
12588 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12589 specification if no ns8250 driver is available.
12590 (grub_cmd_serial): Likewise.
12591 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12592 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12593 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12594 (grub_efi_parity_type_t): New type.
12595 (grub_efi_stop_bits_t): Likewise.
12596 (grub_efi_serial_io_interface): New struct.
12597 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12598 available for all interfaces.
12599 Add EFI and IEEE1275 fields.
12600 (grub_ofserial_init): New proto.
12601 (grub_efiserial_init): Likeiwse.
12602 * util/grub.d/00_header.in: Don't check for the presence of serial
12605 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12607 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12608 name as if it was an alias.
12610 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12612 * grub-core/commands/lsacpi.c (options): Fix typo.
12614 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12616 Convert grub-emu to argp.
12618 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12620 * util/argp_common.c: Rename to ...
12621 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12622 Add missing includes.
12623 * grub-core/kern/emu/main.c: Convert to argp.
12624 * po/POTFILES.in: Regenerate.
12625 * util/grub-install.in (usage): Make first letter lowcase in messages
12627 * util/grub-setup.c (options): Likewise.
12629 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12631 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12632 Put back accidently commented-out code.
12634 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12636 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12637 loop check using Brent algorithm.
12638 (grub_hfsplus_btree_search): Likewise.
12640 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12642 * util/grub-install.in: Fix usage of wrong device for PreP install.
12644 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12646 * conf/Makefile.common (CFLAGS_GNULIB): Add
12647 -Wno-unsafe-loop-optimizations.
12648 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12650 * grub-core/commands/legacycfg.c: Add pragma to skip
12651 -Wunsafe-loop-optimizations.
12652 (check_password_md5_real): Fix loop counter type.
12653 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12655 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12656 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12658 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12659 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12660 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12662 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12663 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12664 avoid possible infinite loops.
12665 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12666 and -Wunsafe-loop-optimizations.
12667 * grub-core/script/yylex.l: Likewise.
12668 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12669 (print_glyphs): Avoid infinite loops.
12670 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12672 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12674 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12675 to avoid infinite loop.
12676 (disp_acpi_rsdt_table): Likewise.
12678 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12680 * grub-core/font/font.c (grub_font_load): Add support for default
12681 path for fonts ($prefix/fonts).
12682 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12683 for checking if string is a path.
12684 * grub-core/normal/main.c (features): Add feature_default_font_path.
12685 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12686 * util/grub.d/00_header.in: Use default directory if possible.
12687 * util/grub-install.in: Install unicode.pf2.
12689 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12691 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12692 * po/Rules-swiss: New file.
12693 * po/swiss.sed: Likewise.
12695 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12697 * grub-core/fs/btrfs.c (find_device): Fix typos.
12698 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12699 * util/grub-mkrelpath.c (argp_parser): Likewise.
12700 Reported by: Yuri Chornoivan.
12702 2012-02-23 Dalet Omega <daletomega@gmail.com>
12704 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12705 for usual informative messages.
12707 2012-02-23 Dalet Omega <daletomega@gmail.com>
12711 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12712 * conf/Makefile.common: Define starfielddir.
12713 * configure.ac: Configure starfield.
12714 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12715 * themes/starfield/README: Likewise.
12716 * themes/starfield/blob_w.png: Likewise.
12717 * themes/starfield/boot_menu_c.png: Likewise.
12718 * themes/starfield/boot_menu_e.png: Likewise.
12719 * themes/starfield/boot_menu_n.png: Likewise.
12720 * themes/starfield/boot_menu_ne.png: Likewise.
12721 * themes/starfield/boot_menu_nw.png: Likewise.
12722 * themes/starfield/boot_menu_s.png: Likewise.
12723 * themes/starfield/boot_menu_se.png: Likewise.
12724 * themes/starfield/boot_menu_sw.png: Likewise.
12725 * themes/starfield/boot_menu_w.png: Likewise.
12726 * themes/starfield/slider_c.png: Likewise.
12727 * themes/starfield/slider_n.png: Likewise.
12728 * themes/starfield/slider_s.png: Likewise.
12729 * themes/starfield/src/blob_nw.xcf: Likewise.
12730 * themes/starfield/src/bootmenu/: Likewise.
12731 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12732 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12733 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12734 * themes/starfield/src/slider_c.xcf: Likewise.
12735 * themes/starfield/src/slider_n.xcf: Likewise.
12736 * themes/starfield/src/slider_s.xcf: Likewise.
12737 * themes/starfield/src/terminalbox/: Likewise.
12738 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12739 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12740 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12741 * themes/starfield/starfield.png: Likewise.
12742 * themes/starfield/terminal_box_c.png: Likewise.
12743 * themes/starfield/terminal_box_e.png: Likewise.
12744 * themes/starfield/terminal_box_n.png: Likewise.
12745 * themes/starfield/terminal_box_ne.png: Likewise.
12746 * themes/starfield/terminal_box_nw.png: Likewise.
12747 * themes/starfield/terminal_box_s.png: Likewise.
12748 * themes/starfield/terminal_box_se.png: Likewise.
12749 * themes/starfield/terminal_box_sw.png: Likewise.
12750 * themes/starfield/terminal_box_w.png: Likewise.
12751 * themes/starfield/theme.txt: Likewise.
12753 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12755 * util/grub.d/00_header.in: Add missing export theme.
12757 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12759 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12761 Reported by: Eren D.
12763 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12765 * conf/Makefile.common (grubdatadir): Removed.
12766 (Makefile.am): Move eveything grubdata to pkgdata.
12768 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12770 * grub-core/commands/acpihalt.c (get_sleep_type):
12771 Remove unused variable.
12773 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12775 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12776 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12777 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12778 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12779 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12780 i18n with gettext no-op.
12781 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12782 GRUB_ACPI_OPCODE_STRING_CONST.
12783 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12784 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12786 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12788 * po/POTFILES.in: Regenerate.
12790 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12792 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12793 -Wno-error=missing-noreturn.
12795 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12797 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12798 condition to avoid possibly infinite loops.
12799 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12800 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12802 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12804 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12805 condition to avoid possibly infinite loops.
12807 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12809 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12812 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12814 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12816 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12818 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12820 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12822 * util/bin2h.c (usage): Add missing attribute noreturn.
12824 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12826 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12827 if the size isn't divisible by 512.
12829 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12831 Make list_push and list_remove functions rather than inline functions
12832 to decrease size and avoid aliasing violations.
12834 * include/grub/list.h (grub_list_push): Move to ...
12835 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12836 * include/grub/list.h (grub_list_remove): Move to ...
12837 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12839 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12841 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12842 and -Wunused-result.
12844 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12846 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12847 Reported by: Seth Goldberg
12849 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12851 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12853 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12855 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12856 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12858 * docs/grub.texi (Simple configuration): Document
12859 GRUB_CMDLINE_GNUMACH.
12861 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12863 * conf/Makefile.common (platform_SCRIPTS): New variable.
12864 (platform_PROGRAMS): Likewise.
12865 * gentpl.py: Mark *,module and *.image for install.
12866 * grub-core/gdb_grub.in: Add a notice of expected environment.
12867 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12868 (gmodule.pl): Likewise.
12870 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12872 Replace grub_checkkey with grub_getkey_noblock.
12874 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12875 (grub_getkey_noblock): ... this. All users updated.
12877 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12879 * grub-core/kern/emu/console.c: Move to ...
12880 * grub-core/term/emu/console.c: ...here.
12881 (grub_ncurses_getkey): Fix return value if no key is detected.
12883 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12885 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12886 (grub_unit_test_fini): Likewise.
12887 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12889 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12891 * include/grub/test.h (GRUB_UNIT_TEST)
12893 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12895 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12896 Better error handling.
12897 (grub_script_return): Likewise.
12898 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12900 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12902 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12903 rimplicit redifinition.
12905 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12907 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12910 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12912 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12913 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12916 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12918 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12919 as GRUB_ERR_BUG. Don't malloc if no device is available.
12921 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12923 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12924 Mark calling with invalid term as GRUB_ERR_BUG.
12926 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12928 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
12929 packets rather than raising an error.
12931 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12933 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
12936 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12938 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
12939 diagnostic to dprintf.
12940 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12942 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12944 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
12947 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12949 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
12950 (grub_ntfs_iterate_dir): Likewise.
12952 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12954 Efiemu stylistic fixes and gettext.
12956 * grub-core/efiemu/i386/loadcore32.c
12957 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
12958 * grub-core/efiemu/i386/loadcore64.c
12959 (grub_arch_efiemu_relocate_symbols64): Likewise.
12960 * grub-core/efiemu/i386/pc/cfgtables.c
12961 (grub_machine_efiemu_init_tables): Likewise.
12962 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
12963 (grub_efiemu_loadcore_initXX): Add a filename argument.
12965 Improved error message.
12966 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
12967 Add a filename argument.
12969 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
12970 Reclassify double relocation as GRUB_ERR_BUG.
12972 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12974 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
12977 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12979 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
12982 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12984 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
12986 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12988 Improve string. Gettextize.
12990 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12992 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
12994 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
12996 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12998 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
12999 [GRUB_UTIL]: New function.
13000 (insert_array) [GRUB_UTIL]: Store partmaps.
13001 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13003 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13004 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13005 (probe_abstraction): Print diskfilter and not raid.
13006 Reported by: Lennart Sorensen
13008 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13010 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13011 * util/grub-mkimagexx.c (MASK3): New define.
13012 (add_value_to_slot_20b): Use MASK3.
13013 (add_value_to_slot_21): Likewise.
13014 (relocate_addresses): Fix format specification.
13015 (load_image): Explicitly init symtab_section.
13017 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13019 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13020 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13022 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13024 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13026 Reported by: Lennart Sorensen
13028 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13030 * gentpl.py: Add missing license header.
13031 * docs/grub.texi: Update copyright year.
13033 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13035 Source grub-mkconfig_lib from the build directory at build time.
13036 Suggested by: Vladimir Serbinenko.
13038 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13039 * util/grub-install.in: Define pkgdatadir if not already set, and source
13040 grub-mkconfig_lib from there.
13041 * util/grub-kbdcomp.in: Likewise.
13042 * util/grub-mkconfig.in: Likewise.
13043 * util/grub-mknetdir.in: Likewise.
13044 * util/grub-mkrescue.in: Likewise.
13045 * util/grub-mkstandalone.in: Likewise.
13046 * util/grub-reboot.in: Likewise.
13047 * util/grub-set-default.in: Likewise.
13048 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13050 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13052 Increase warning level.
13054 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13055 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13056 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13057 (TARGET_CFLAGS): Likewise.
13058 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13059 * grub-core/Makefile.core.def (decompressor_xz): Add
13060 -Wno-unreachable-code.
13061 (normal): Add -Wno-redundant-decls.
13062 (xzio): Add -Wno-unreachable-code.
13063 (lzopio): Add -Wno-redundant-decls -Wno-error.
13064 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13065 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13066 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13067 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13068 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13069 * grub-core/kern/i386/coreboot/init.c: Add exception to
13070 -Wsuggest-attribute=noreturn.
13071 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13072 * grub-core/kern/ia64/dl_helper.c: Likewise.
13073 * grub-core/kern/mips/dl.c: Likewise.
13074 * grub-core/kern/sparc64/dl.c: Likewise.
13075 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13076 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13077 (memcmp): Likewise.
13078 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13079 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13080 * grub-core/loader/mips/linux.c: Likewise.
13081 * grub-core/loader/multiboot_elfxx.c: Likewise.
13082 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13083 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13084 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13085 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13087 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13088 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13091 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13093 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13096 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13098 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13099 Avoid improper use of strings.
13100 (grub_cmd_legacy_initrdnounzip): Likewise.
13102 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13104 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13106 (grub_util_info): Likewise.
13107 (grub_util_error): Likewise.
13109 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13111 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13112 * util/grub-fstest.c (fstest): Likewise.
13114 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13116 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13117 (grub_md_sha512_real): Likewise.
13118 (grub_util_get_geli_uuid): Likewise.
13119 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13120 (grub_util_biosdisk_open): Fix format specification.
13121 Respect format security.
13122 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13123 (xrealloc): Likewise.
13124 (xasprintf): Likewise.
13126 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13128 * util/import_gcry.py: Include grub/crypto.h in init.c.
13130 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13132 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13133 (generate_image): Make prefix a const char *.
13134 Fix format specifications. Respect format security.
13135 Avoid void * arithmetics.
13137 (argp_parser): Remove unused variable. Respect format security.
13138 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13139 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13140 (count_funcs): Remove unused variable.
13141 (relocate_addresses): Fix format specification.
13142 Disable x86-64 with elf32. Remove unused variables.
13143 (add_fixup_entry): Avoid shadowing.
13144 (make_reloc_section): Fix format specification.
13146 (locate_sections): Fix format specifications.
13147 (load_image): Avoid shadowing.
13149 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13151 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13152 Fix format specifications. Respect format security.
13153 Don't translate already translated grub_errmsg.
13154 (argp_parser): Remove unused variable
13156 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13158 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13160 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13162 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13163 (main): Likewise. Use xmalloc. Respect format security.
13165 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13167 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13169 (argp_parser): Remove unused variable.
13171 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13173 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13174 (add_pixel): Make static.
13175 (add_font): Likewise.
13176 (write_string_section): Make name and str a const char *.
13177 (write_be16_section): Make name a const char *.
13178 (print_glyphs): Make static.
13179 (write_font_ascii_bitmap): Likewise.
13180 (write_font_width_spec): Likewise.
13181 (write_font_pf2): Likewise.
13182 (argp_parser): Remove unused variable.
13183 Respect format security.
13184 (main): Avoid shadowing. Respect format security.
13186 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13188 * util/grub-editenv.c (argp_parser): Make static.
13189 (create_envblk_file): Use xmalloc.
13190 (open_envblk_file): Likewise.
13191 Resepect format security.
13192 (set_variables): Respect format security.
13194 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13196 * util/getroot.c (grub_find_device): Respect format security.
13197 (get_mdadm_uuid): Remove unused variable.
13198 (grub_util_pull_device): Dont call gettext on already translated
13200 (find_system_device): Remove unused variable.
13201 (grub_util_get_grub_dev): Likewise.
13202 (grub_make_system_path_relative_to_its_root): Respect format security.
13204 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13206 * util/grub-fstest.c (execute_command): Make first argument
13208 (read_file): Avoid shadowing.
13209 Reuse underlying error message if device open fails.
13210 (cmd_cmp): Respect format security.
13211 (root): Make const char *.
13212 (fstest): Remove args argument and use global copy.
13213 Respect format security.
13214 (argp_parser): Make static.
13215 (main): Make default_root const char *.
13217 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13219 * util/grub-mount.c (root): Make const char *.
13220 (execute_command): Make first argument a const char *.
13221 (fuse_init): Respect format security.
13222 (argp_parser): Make static. Remove unused variable.
13223 (main): Make default_root a const char *.
13224 Respect format security.
13226 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13228 * util/grub-probe.c (probe): Don't call gettext on already translated
13230 Remove unused variables.
13231 (argp_parser): Remove unused variable.
13233 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13235 * util/grub-script-check.c (argp_parser): Remove unused variable.
13236 (main): Rename read to curread to avoid shadowing.
13238 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13240 * util/misc.c (grub_util_write_image_at): Fix format specification.
13241 (grub_util_write_image): Likewise.
13242 (grub_script_execute_argument_to_string): Removed (unused).
13243 (grub_script_execute_menuentry): Likewise.
13244 (grub_putchar): Likewise.
13246 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13248 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13249 (FUNCTION) [GRUB_UTIL]: Likewise.
13250 (VARIABLE) [GRUB_UTIL]: Likewise.
13252 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13254 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13255 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13257 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13259 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13262 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13264 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13265 (LzmaEnc_SaveState): Removed (unused).
13266 (LzmaEnc_RestoreState): Likewise.
13267 (LzmaEnc_InitPriceTables): Made static.
13268 (LzmaEnc_Construct): Likewise.
13269 (LzmaEnc_FreeLits): Likewise.
13270 (LzmaEnc_Destruct): Likewise.
13271 (LzmaEnc_Init): Likewise.
13272 (LzmaEnc_InitPrices): Likewise.
13273 (LzmaEnc_Finish): Likewise.
13274 (LzmaEnc_PrepareForLzma2): Removed (unused).
13275 (LzmaEnc_MemPrepare): Likewise.
13276 (LzmaEnc_GetNumAvailableBytes): Likewise.
13277 (LzmaEnc_GetCurBuf): Likewise.
13278 (LzmaEnc_CodeOneMemBlock): Likewise.
13280 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13282 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13283 (grub_util_ldm_embed): Likewise.
13285 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13287 * util/grub-editenv.c (print_var): Rename name to varname to
13289 (main): Rename index to curindex to avoid shadowing.
13290 Make filename a const char *.
13292 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13294 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13295 to arg_getline to avoid shadowing.
13297 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13299 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13300 disk_ to avoid shadowing.
13302 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13304 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13305 curindex to avoid shadowing.
13307 (MatchFinder_GetNumAvailableBytes): Make static.
13309 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13311 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13314 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13316 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13317 argument from encrypt to do_encrypt to avoid shadowing.
13319 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13321 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13322 incorrect nesting of #if's.
13324 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13326 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13327 checks which are always false on some platforms.
13328 (grub_cmd_lsacpi): Likewise.
13329 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13330 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13333 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13335 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13336 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13338 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13340 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13341 re_dfa_t to avoid breaking alignment invariants.
13342 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13343 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13345 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13347 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13348 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13350 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13352 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13355 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13357 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13358 conserve alignment invariants.
13359 (grub_ehci_ehcc_read16): Likewise.
13360 (grub_ehci_oper_read32): Likewise.
13361 (grub_ehci_oper_write32): Likewise.
13362 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13363 Conserve alignment invariants.
13365 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13367 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13368 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13371 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13373 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13374 Remove unused variable.
13376 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13378 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13381 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13383 * include/grub/net.h: Remove double declarations.
13385 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13387 Remove "payload" command in ia64 Linux loader since I couldn't
13388 find any evidence of it being used for anything.
13389 Replace "relocate" command with an environment variable
13391 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13393 (ia64_boot_payload): Removed.
13394 (last_payload): Likewise.
13395 (RELOCATE_OFF): Likewise.
13396 (RELOCATE_ON): Likewise.
13397 (RELOCATE_FORCE): Likewise.
13398 (relocate): Likewise.
13399 (free_pages): Don't free payloads.
13400 (grub_load_elf64): Use common error messages.
13401 Use "linux_relocate" variable.
13402 Increase the space after boot_params.
13403 (grub_cmd_payload): Removed.
13404 (grub_cmd_relocate): Likewise.
13405 (grub_cmd_fpswa): Improve messages.
13406 (cmd_payload): Removed.
13407 (cmd_relocate): Likewise.
13408 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13409 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13411 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13413 Convert UHCI to DMA framework.
13415 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13416 (grub_uhci_pci_iter): Fill new members
13417 (grub_alloc_td): Use P2V and V2P functions.
13418 (grub_free_queue): Likewise.
13419 (grub_alloc_qh): Likewise.
13420 (grub_uhci_setup_transfer): Likewise.
13421 (grub_uhci_check_transfer): Likewise.
13423 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13425 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13426 Remove assignment in if while on it.
13428 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13430 * util/grub-mkstandalone.in: Fix modules directory.
13432 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13434 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13436 (argp_parser): Accept "auto" as compression specification.
13438 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13440 Fix `help' with unloaded modules.
13442 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13443 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13444 (grub_dyncmd_dispatcher): Small stylistic fix.
13445 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13446 explicit help is requested.
13448 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13450 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13451 Explicitly init restart while on it.
13453 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13455 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13458 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13460 * util/grub-mknetdir.in: Use . rather than source for POSIX
13463 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13465 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13467 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13469 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13472 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13474 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13477 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13479 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13481 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13483 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13484 iteration of partitions.
13486 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13488 Improve gettext support. Stylistic fixes and error handling fixes while
13491 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13493 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13494 part. Instead setup the correct stack in RM.
13495 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13497 * include/grub/i386/relocator_private.h: New file.
13499 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13501 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13503 * util/grub-fstest.c (options): Add missing DEVICE part.
13505 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13507 Clarify and unify messages.
13509 * grub-core/commands/hashsum.c (options): Unify messages.
13510 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13511 literal-only message as translatable.
13512 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13513 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13514 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13516 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13517 key, not the key used to unlock. Clarify what it's used for.
13518 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13519 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13520 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13521 * util/grub-editenv.c (options): Unify "verbose" message.
13522 * util/grub-fstest.c (read_file): Unify error message.
13523 (fstest): Add quotes around commands.
13524 (options): Unify "verbose" message.
13525 * util/grub-install.in: Add quotes around variable name.
13526 * util/grub-kbdcomp.in: Unify error message.
13527 * util/grub-mkfont.c (main): Likewise.
13528 * util/grub-mkrescue.in: Likewise.
13529 * util/grub-mklayout.c (options): Unify "verbose" message.
13530 * util/grub-mkstandalone.in: Unify help and verbose messages.
13531 * util/grub-mount.c (options): Unify "verbose" message.
13532 * util/grub-probe.c (options): Likewise.
13533 * util/grub-script-check.c (options): Likewise.
13534 * util/grub-setup.c (setup): Unify no-terminator message.
13535 (options): Use DEVICE and not DEV.
13536 Unify "verbose" message.
13537 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13539 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13541 Improve and unify messages.
13543 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13544 name. All users updated.
13545 Print filename in error.
13546 (read_device_map): Print filename in error.
13547 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13548 (grub_util_get_os_disk): Likewise.
13549 (grub_util_biosdisk_get_grub_dev): Likewise.
13550 (grub_util_check_block_device): Likewise.
13551 (grub_util_check_char_device): Likewise.
13552 (grub_make_system_path_relative_to_its_root): Likewise.
13553 * util/grub-editenv.c (create_envblk_file): Likewise.
13554 (open_envblk_file): Likewise.
13555 (write_envblk): Likewise.
13556 * util/grub-fstest.c (cmd_cp): Likewise.
13557 (cmd_cat): Likewise.
13558 (cmd_cmp): Likewise.
13559 * util/grub-menulst2cfg.c (main): Likewise.
13560 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13561 (write_font_width_spec): Likewise.
13562 (write_font_pf2): Likewise.
13563 * util/grub-mkimage.c (generate_image): New argument outname.
13565 Remove unreacheable message.
13566 (options): Unify messages.
13567 (help_filter): Likewise.
13568 * util/grub-mklayout.c (usage): Removed (unused).
13569 (main): Print filename in error.
13570 * util/grub-mkrescue.in: Fix wrong quoting.
13571 * util/grub-setup.c (setup): Print filename in error.
13572 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13573 (check_sas): Likewise.
13574 * util/misc.c (grub_util_get_fp_size): Removed.
13575 (grub_util_get_image_size): Print filename in error.
13576 (grub_util_read_at): Removed.
13577 (grub_util_read_image): Print filename in error.
13578 (grub_util_load_image): Likewise.
13579 (grub_util_write_image_at): New argument filename. All users updated.
13580 Print filename in error.
13581 (grub_util_write_image): New argument filename. All users updated.
13582 Print filename in error.
13583 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13584 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13586 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13588 * grub-core/Makefile.core.def (pxechain): New module.
13589 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13590 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13592 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13593 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13595 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13597 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13598 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13599 * include/grub/err.h (grub_error_saved): New struct.
13600 (grub_errmsg): Make array size explicit.
13601 * include/grub/misc.h (grub_error_save): New function.
13602 (grub_error_load): Likewise.
13603 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13604 (grub_error_push): Update `errno' member name.
13605 (grub_error_pop): Likewise
13606 * grub-core/net/tftp.c (tftp_data): New member save_err.
13607 (tftp_receive): Save error.
13608 (tftp_open): Restore error.
13610 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13612 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13613 to real mode down to execute A20-related code in protected mode as
13616 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13618 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13619 NULL when the argument `level' has an unexpected value.
13621 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13623 Move platform-dependent files from $prefix to $prefix/$platform.
13625 * config.h.in (GRUB_TARGET_CPU): New definition.
13626 (GRUB_PLATFORM): Likewise.
13627 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13628 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13629 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13630 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13631 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13632 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13633 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13634 * grub-core/normal/term.c (read_terminal_list): Likewise.
13635 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13637 (grub_gettext_init_ext): Likewise.
13638 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13640 * util/grub-install.in: Update directories.
13641 * util/grub-mknetdir.in: Likewise.
13642 * util/grub-mkrescue.in: Likewise.
13644 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13646 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13647 grub_error framework. All users updated.
13649 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13651 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13652 lists (by always binsearching), improve caching (cache strings
13653 used for binsearch, not only results), improve
13654 maintainability (by using more structured binary search) and correct
13657 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13659 * grub-core/script/execute.c (grub_script_return): Fix warning.
13661 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13663 * grub-core/script/execute.c (grub_script_return): Fix potential
13665 Reported by: Jim Meyering.
13667 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13669 * po/POTFILES.in: Regenerate.
13670 * util/grub-install.in: Gettextize the strings missed in first pass.
13672 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13674 * Makefile.util.def (grub-mkdevicemap): Removed.
13675 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13676 * include/grub/util/deviceiter.h: Removed.
13677 * util/deviceiter.c: Likewise.
13678 * util/getroot.c (grub_util_get_os_disk): New function.
13679 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13680 replacement for EFI.
13681 * util/grub-mkdevicemap.c: Removed.
13682 * util/grub-probe.c (probe): Handle PRINT_DISK.
13683 (argp_parser): Handle -t disk.
13685 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13687 * util/grub-mkfont.c: Migrate to argp.
13688 * util/grub-mklayout.c: Likewise.
13689 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13690 * util/grub-mkrelpath.c: Likewise.
13691 * util/grub-probe.c: Likewise.
13692 * util/grub-script-check.c: Likewise.
13694 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13696 * util/grub-reboot.in: Add missing datarootdir.
13697 Add missing newline.
13698 * util/grub-set-default.in: Add missing datarootdir.
13699 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13700 * util/grub-mkrescue.in: Likewise.
13702 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13704 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13706 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13708 * util/grub-kbdcomp.in: Add decent help and gettextize.
13709 * docs/man/grub-kbdcomp.h2m: New file.
13711 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13713 Migrate grub-mkimage.c to argp.
13715 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13716 (grub-setup): Likewise.
13717 * util/grub-setup.c (print_version): Move to ...
13718 * util/argp_common.c (print_version): ... here.
13719 * util/grub-setup.c (argp_program_version_hook): Move to ...
13720 * util/argp_common.c (argp_program_version_hook): ... here.
13721 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13723 * util/grub-mkimage.c (main): Migrate to argp.
13725 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13727 * util/grub-mkrescue.in: Use same message as
13728 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13729 for better translations.
13731 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13733 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13734 options with generic grub-mkrescue.in with the goal of future
13737 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13739 * grub-core/kern/mm.c: Add missing include of i18n.h
13740 * grub-core/lib/relocator.c: Likewise.
13742 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13744 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13746 (allocate_pages): Check return value.
13747 Replace fatal with error.
13748 (grub_linux_boot): Replace printf with dprintf.
13749 Check find_mmap_size return value.
13750 Replace fatal with error.
13751 Don't call grub_machine_fini.
13752 (grub_load_elf64): Replace printf with dprintf.
13753 (grub_cmd_linux): Likewise.
13754 (grub_cmd_initrd): Likewise.
13755 (grub_cmd_payload): Likewise.
13757 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13759 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13761 * grub-core/video/radeon_fuloong2e.c
13762 (grub_video_radeon_fuloong2e_setup): Likewise.
13763 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13764 * grub-core/video/video.c (grub_video_set_mode): Don't override
13765 standard out of memory message.
13767 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13769 NetBSD disk wedge support.
13771 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13772 [__NetBSD__]: Handle NetBSD disk wedges.
13773 * util/getroot.c (convert_system_partition_to_system_disk)
13774 [__NetBSD__]: Likewise.
13776 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13778 * util/grub-mkconfig.in: Use umask rather than chmod to create
13779 grub.cfg.new to avoid insecure grub.cfg.
13781 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13783 * grub-core/commands/ls.c: Gettextize.
13784 * grub-core/commands/setpci.c: Likewise.
13785 * grub-core/commands/videotest.c: Likewise.
13786 * grub-core/disk/geli.c: Likewise.
13787 * grub-core/kern/mm.c: Likewise.
13788 * grub-core/lib/relocator.c: Likewise.
13789 * grub-core/loader/efi/appleloader.c: Likewise.
13790 * grub-core/loader/i386/xnu.c: Likewise.
13791 * grub-core/loader/ia64/efi/linux.c: Likewise.
13792 * grub-core/loader/xnu.c: Likewise.
13793 * grub-core/net/dns.c: Likewise.
13794 * grub-core/net/net.c: Likewise.
13795 * grub-core/script/lexer.c: Likewise.
13796 * grub-core/script/parser.y: Likewise.
13797 * grub-core/script/yylex.l: Likewise.
13798 * util/getroot.c: Likewise.
13799 * util/grub-setup.c: Likewise.
13801 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13803 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13806 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13808 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13810 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13812 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13814 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13815 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13817 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13819 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13820 * util/grub-install.in: Gettextize.
13821 * util/grub-mkconfig.in: Likewise.
13822 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13824 (grub_warn): Gettextize.
13825 * util/grub-mknetdir.in: Gettextize.
13826 * util/grub-mkrescue.in: Likewise.
13827 * util/grub-mkstandalone.in: Likewise.
13828 * util/grub-reboot.in: Likewise.
13829 * util/grub-set-default.in: Likewise.
13830 * util/grub.d/00_header.in: Likewise.
13831 * util/grub.d/10_hurd.in: Likewise.
13832 * util/grub.d/10_kfreebsd.in: Likewise.
13833 * util/grub.d/10_linux.in: Likewise.
13834 * util/grub.d/10_netbsd.in: Likewise.
13835 * util/grub.d/10_windows.in: Likewise.
13836 * util/grub.d/20_linux_xen.in: Likewise.
13837 * util/grub.d/30_os-prober.in: Likewise.
13838 * po/POTFILES-shell.in: Regenerate.
13840 2012-02-03 Richard Laager <rlaager@wiktel.com>
13842 * util/grub-mkimage.c (main): Fix format-security warning.
13843 * util/grub-mkrelpath.c (main): Likewise.
13844 * util/grub-probe.c (main): Likewise.
13846 2012-02-03 Richard Laager <rlaager@wiktel.com>
13848 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13850 Put back lost PRINT_DRIVE.
13852 2012-02-03 Richard Laager <rlaager@wiktel.com>
13854 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13855 (grub_guess_root_devices): Replace strlen with sizeof.
13857 (find_root_devices_from_poolname): Remove unused variable.
13860 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13862 Support install on multi-device filesystems.
13864 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13865 (grub_guess_root_devices): ...this. Return char **. All users updated.
13866 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13868 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13869 (find_root_devices_from_poolname): ... here.
13870 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13872 (grub_guess_root_device): Rename to ...
13873 (grub_guess_root_devices): ... this. Return char **. All users updated.
13874 * util/grub-install.in: Handle multi-device filesystems.
13875 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13876 argument. All users updated.
13877 Handle multi-device filesystems.
13878 Use 'delim' as separator.
13879 Remove device check to allow filesystems on file.
13880 (main): Support -0 argument. Handle multi-device.
13881 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13882 Fix a cross-device check while on it.
13883 (arguments): Remove root_dev.
13884 (argp_parser): Remove -r.
13885 (main): Remove root_dev.
13887 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13889 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13891 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13893 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13895 Reported by: NODA, Kai <nodakai>.
13897 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13901 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13903 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13904 (grub_ehci_setup_qh): Likewise.
13905 (grub_ehci_find_qh): Likewise.
13906 (grub_ehci_transaction): Likewise.
13907 (grub_ehci_setup_transfer): Likewise.
13908 (grub_ehci_check_transfer): Likewise.
13909 (grub_ehci_portstatus): Likewise.
13910 (grub_ehci_detect_dev): Likewise.
13911 (grub_ehci_transfer_controller_data): New field td_last_phys.
13912 (grub_ehci_setup_transfer): Fill td_last_phys.
13913 (grub_ehci_check_transfer): Use td_last_phys.
13915 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13917 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13918 if no submenu is present.
13920 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13924 * include/grub/usb.h (grub_usbms_protocol_t): New values
13925 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
13926 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
13927 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
13928 (grub_usbms_dev): Add subclass, protocol and intrpt.
13929 Remove in_maxsz and out_maxsz.
13930 (grub_usbms_reset): Rename to ...
13931 (grub_usbms_bo_reset): .. this.
13932 (grub_usbms_cbi_cmd): New function.
13933 (grub_usbms_cbi_reset): Likewise.
13934 (grub_usbms_reset): Likewise.
13935 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
13936 (grub_usbms_transfer): Rename to ...
13937 (grub_usbms_transfer_bo): ... this.
13938 (grub_usbms_transfer_cbi): Likewise.
13939 (grub_usbms_transfer): Likewise.
13941 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13942 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13944 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
13945 the support for the CS5536 modification thereos and few bugfixes.
13947 * grub-core/Makefile.core.def (ehci): New module.
13948 * grub-core/bus/usb/ehci.c: New file.
13949 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
13950 port and hubaddr. All users updated.
13951 Save port and hubaddr into dev structure.
13952 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
13954 * include/grub/pci.h (grub_dma_phys2virt): New function.
13955 (grub_dma_virt2phys): Likewise.
13956 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
13958 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13960 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
13961 check as some mkfs implementations omit it.
13963 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13965 * docs/grub.texi (Unicode): Mention identifier and space limitations.
13967 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13969 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
13970 Add new member volname2.
13971 (grub_jfs_label): Use volname2 if available.
13973 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13975 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
13976 over last_mounted as seen in image generated by mkfs.nilfs2.
13977 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
13979 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13981 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
13982 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
13983 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
13985 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13987 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
13990 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13992 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
13993 subvolume name (by removing a bogus and useless check).
13995 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13997 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
13998 sizeof while on it.
14000 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14002 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14003 (grub_scsi_read_capacity10): ... this.
14004 (grub_scsi_read_capacity16): New function.
14005 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14007 Fix off-by-one error.
14008 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14010 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14011 (grub_scsi_read_capacity10): ... this.
14012 (grub_scsi_read_capacity_data): Rename to ...
14013 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14014 (grub_scsi_read_capacity16): New struct.
14015 (grub_scsi_read_capacity16_data): Likewise.
14016 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14017 grub_scsi_cmd_read_capacity10.
14018 New command grub_scsi_cmd_read_capacity16.
14020 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14022 SCSI >2TiB support.
14024 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14025 (grub_scsi_write16): Likewise.
14026 (grub_scsi_read): Use read16 when necessary.
14027 (grub_scsi_write): Likewise.
14028 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14029 (grub_scsi_write16): Likewise.
14030 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14032 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14034 SCSI write support (for usbms mainly).
14036 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14038 (grub_scsi_write): Implement.
14039 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14041 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14043 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14046 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14048 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14050 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14052 * po/POTFILES.in: Regenerate.
14054 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14056 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14057 with grub_printf to avoid unnecessary fatal failure.
14059 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14061 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14062 (INT_MAX): Likewise.
14063 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14064 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14065 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14066 (strcpy): Likewise.
14067 (strstr): Likewise.
14068 (strchr): Likewise.
14069 (strncpy): Likewise.
14070 (strcat): Likewise.
14071 (strncat): Likewise.
14072 (strcoll): Likewise.
14073 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14074 (GRUB_INT_MAX): Likewise.
14076 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14078 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14080 (optimize_utf8): Likewise.
14081 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14083 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14085 * grub-core/boot/i386/pc/lnxboot.S: Use
14086 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14087 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14089 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14091 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14093 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14095 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14096 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14097 now to avoid double free.
14098 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14100 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14101 * util/grub-probe.c (escape_of_path): Always return a new copy.
14102 (print_full_name): Escape path.
14103 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14104 Fix hints on abstractions.
14106 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14108 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14109 Don't add "root" line if no compatibility hont is available.
14110 Suggested by: Seth Goldberg.
14112 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14114 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14115 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14116 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14117 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14119 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14121 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14123 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14125 * util/grub-pe2elf.c (ehdr): Make static.
14127 (num_sections): Likewise.
14128 (offset): Likewise.
14130 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14132 Eliminate ofpath limits and possible overflows.
14134 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14135 (OF_PATH_MAX): Removed.
14136 (MAX_DISK_CAT): New const.
14137 (find_obppath): Use allocated rather than preallocated buffer.
14138 Return result. Argument of_path removed. All users updated.
14139 Add missing fdstat.
14140 (xrealpath): New function.
14141 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14142 Allocate rather than use preallocated buffer. All users updated.
14143 (__of_path_common): Use allocated rather than preallocatecd buffer.
14144 Return result. Argument of_path removed. All users updated.
14145 (vendor_is_ATA): Read only needed part form the file.
14146 (check_sas): Allocate depending on contents rather than fixed.
14147 (main) [STANDALONE]: Handle NULL result.
14149 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14151 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14153 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14155 Cryptodisk write support.
14157 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14158 (grub_cryptodisk_decrypt): Moved logic to ...
14159 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14160 (grub_cryptodisk_write): Implement.
14161 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14162 (grub_util_fd_write): ... this. Make global.
14163 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14165 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14167 * include/grub/list.h (grub_list_remove): Don't crash if element is
14170 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14172 Rename ofconsole to console.
14174 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14175 as sysnonym to console.
14176 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14177 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14178 Rename grub_ofconsole_ to grub_console_. All users updated
14179 (grub_console_term_output): Rename "ofconsole" to "console".
14180 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14183 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14185 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14187 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14188 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14189 GRUB_DISK_DEVICE_FILE_ID.
14191 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14193 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14194 and improve performance.
14196 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14198 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14199 missing ieee1275/ prefix on whole disk.
14201 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14203 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14204 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14206 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14208 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14210 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14212 Merge common RAID and LVM logic to an abstract diskfilter.
14213 Add LDM support using the same framework.
14215 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14216 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14217 (libgrubmods): Remove grub-core/disk/raid.c and
14218 grub-core/partmap/gpt.c.
14219 * grub-core/Makefile.core.def (ldm): New module.
14220 (raid): Renamed to diskfilter. All users updated.
14221 * grub-core/disk/raid.c: Moved to ...
14222 * grub-core/disk/diskfilter.c: ... here.
14223 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14225 (find_array): Renamed to ...
14226 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14227 (grub_is_array_readable): Renamed to ...
14228 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14229 (insert_array): New argument id.
14230 (is_node_readable): New function.
14231 (scan_device): Rename to ...
14232 (scan_disk): .. this. Restrict to one disk.
14233 (scan_devices): New function.
14234 (grub_diskfilter_iterate): Support multi-LV.
14235 Skip invisible and nameless LVs.
14236 (grub_diskfilter_memberlist): Support multi-LV.
14237 (grub_diskfilter_read_node): New function.
14238 (grub_raid_read): Most of logic moved to ...
14239 (read_segment): ... here
14240 (read_lv): New function.
14241 (grub_diskfilter_get_vg_by_uuid): New function.
14242 (grub_diskfilter_make_raid): Likewise.
14243 * grub-core/disk/ldm.c: New file.
14244 * grub-core/disk/lvm.c (vg_list): Removed.
14245 (lv_count): Likewise.
14246 (scan_depth): Likewise.
14247 (is_lv_readable): Likewise.
14248 (grub_lvm_getvalue): Advance pointer past the number.
14249 (find_lv): Removed.
14250 (do_lvm_scan): Refactored into ...
14251 (grub_lvm_detect): ... this. Support raid.
14252 (grub_lvm_iterate): Removed.
14253 (grub_lvm_memberlist): Likewise.
14254 (grub_lvm_open): Likewise.
14255 (grub_lvm_close): Likewise.
14256 (read_lv): Likewise.
14257 (read_node): Likewise.
14258 (is_node_readable): Likewise.
14259 (is_lv_readable): Likewise.
14260 (grub_lvm_read): Likewise.
14261 (grub_lvm_write): Likewise.
14262 (grub_lvm_dev): Use diskfilter
14263 (GRUB_MOD_INIT): Likewise.
14264 (GRUB_MOD_FINI): Likewise.
14265 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14267 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14268 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14269 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14270 grub_diskfilter_read_node.
14271 Fix a bug with xor.
14272 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14273 grub_diskfilter_read_node.
14274 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14275 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14276 (grub_disk_dev_iterate): Move from here...
14277 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14278 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14280 (grub_hostdisk_find_partition_start): Likewise.
14281 (grub_hostdisk_os_dev_to_grub_drive): New function.
14282 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14283 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14284 * util/getroot.c (make_device_name): ... here.
14285 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14287 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14288 * grub-core/kern/emu/hostdisk.c
14289 (convert_system_partition_to_system_disk): Move to ...
14290 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14291 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14292 * util/getroot.c (device_is_wholedisk): ... here.
14293 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14294 * util/getroot.c (find_system_device): ... here.
14295 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14297 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14298 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14300 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14302 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14304 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14305 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14306 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14308 * include/grub/raid.h: Renamed to ...
14309 * include/grub/diskfilter.h: ... this.
14310 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14311 (GRUB_RAID_LAYOUT_*): Make into array.
14312 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14313 (grub_diskfilter_vg): New struct.
14314 (grub_diskfilter_pv_id): Likewise.
14315 (grub_raid_member): Removed.
14316 (grub_raid_array): Likewise.
14317 (grub_diskfilter_pv): New struct.
14318 (grub_diskfilter_lv): Likewise.
14319 (grub_diskfilter_segment): Likewise.
14320 (grub_diskfilter_node): Likewise.
14321 (grub_diskfilter_get_vg_by_uuid): New proto.
14322 (grub_raid_register): Inline.
14323 (grub_diskfilter_unregister): Likewise.
14324 (grub_diskfilter_make_raid): New proto.
14325 (grub_diskfilter_vg_register): Likewise.
14326 (grub_diskfilter_read_node): Likewise.
14327 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14328 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14329 (grub_util_is_ldm): Likewise.
14330 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14331 (grub_hostdisk_find_partition_start): Likewise.
14332 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14333 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14335 (grub_gpt_partition_map_iterate): New proto.
14336 * include/grub/lvm.h (grub_lvm_vg): Removed.
14337 (grub_lvm_pv): Likewise.
14338 (grub_lvm_lv): Likewise.
14339 (grub_lvm_segment): Likewise.
14340 (grub_lvm_node): Likewise.
14341 * util/getroot.c [...]
14342 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14343 (probe_abstraction): Likewise.
14344 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14345 (main): Remove dead logic.
14347 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14349 Simplify root device discover and don't fail when trying to open
14352 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14354 (get_diskname_from_path): Likewise.
14355 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14358 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14360 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14362 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14364 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14367 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14369 * util/grub-install.in: Add missing \.
14370 Reported by: gentoofan
14372 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14374 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14375 (direct_read): Use correct compressed size.
14376 (grub_squash_read_data): Likewise.
14378 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14380 * docs/grub.texi (Platform limitations): New section.
14381 (Platform-specific operations): Likewise.
14382 * docs/grub-dev.texi (Porting): Likewise.
14384 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14386 IEEE1275 disk write support.
14388 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14390 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14391 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14392 and seek loginc to ...
14393 (grub_ofdisk_prepare): ... here.
14394 (grub_ofdisk_write): Implement.
14396 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14398 ARC disk write support.
14400 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14401 (reopen): New argument writable. All users updated.
14402 Handle required access mode.
14403 (grub_arcdisk_write): Implement.
14404 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14405 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14407 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14409 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14410 (read_sblock): Don't attempt to read superblocks outside the disk size.
14412 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14414 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14415 first superblock to find the second one when possible.
14417 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14419 * util/grub-install.in: Fix an ARC bug.
14420 Print a warning if no platform-specific setup is available.
14422 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14424 Use static allocation rather than scratch pointer in reed_solomon.
14425 It decreases its size significantly and avoids a variable in .text.
14427 * grub-core/lib/reed_solomon.c (scratch): Removed.
14428 (chosenstat): New const or static array.
14430 (errpot): Likewise.
14431 (errpos): Likewise.
14434 (errvals): Likewise.
14435 (eqstat): Likewise.
14436 (pol_evaluate): Replace x with log_x argument. All users updated.
14437 (syndroms): Removed.
14438 (gauss_solve): Use statically allocated arrays.
14439 (rs_recover): Likewise.
14440 Calculate syndroms directly.
14441 (decode_block): Use statically allocated arrays.
14442 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14443 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14445 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14447 Eliminate fixed limit on reed solomon decoder length.
14449 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14450 rather than hardcoding the address.
14451 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14452 no_reed_solomon_length.
14453 Move gate_a20 to no-reed-solomon part.
14454 Don't force a particular size of no reed-solomon part.
14455 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14457 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14458 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14460 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14462 * grub-core/commands/wildcard.c (match_files): Handle filenames
14463 without explicit device.
14464 (wildcard_expand): Don't add explicit device if not already present.
14465 * tests/grub_script_echo1.in: Add a new expansion test.
14467 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14469 Replace single-linked with double-linked lists. It results in more
14470 compact and more efficient code.
14472 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14473 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14474 (grub_list_remove): Moved from here ...
14475 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14476 (grub_prio_list_insert): Set prev.
14477 * include/grub/list.h (grub_list): Add prev. All users updated.
14479 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14481 Handle newer autotools. Add some missing quotes while on it.
14483 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14484 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14485 (pkgdata_DATA): ... here.
14486 * Makefile.util.def (update-grub_lib): Removed.
14487 * conf/Makefile.common (pkglib_DATA): Removed.
14488 (pkglib_SCRIPTS): Likewise.
14489 (pkgdata_DATA): New variable.
14490 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14492 Add missing quotes.
14493 Remove unused variable while on it.
14494 * tests/util/grub-shell.in: Likewise.
14495 * util/grub-install.in: Likewise.
14496 * util/grub-mkconfig.in: Likewise.
14497 * util/grub-mknetdir.in: Likewise.
14498 * util/grub-mkrescue.in: Likewise.
14499 * util/grub-mkstandalone.in: Likewise.
14500 * util/grub.d/00_header.in: Likewise.
14501 * util/grub.d/10_hurd.in: Likewise.
14502 * util/grub.d/10_illumos.in: Likewise.
14503 * util/grub.d/10_kfreebsd.in: Likewise.
14504 * util/grub.d/10_linux.in: Likewise.
14505 * util/grub.d/10_netbsd.in: Likewise.
14506 * util/grub.d/10_windows.in: Likewise.
14507 * util/grub.d/20_linux_xen.in: Likewise.
14508 * util/grub.d/30_os-prober.in: Likewise.
14509 * util/update-grub_lib.in: Removed.
14511 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14513 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14514 a workaround for intel problem.
14516 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14517 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14518 2012-01-23 pfsmorigo
14520 * util/grub-install.in: Support dd'in into PreP partition.
14521 * util/grub-probe.c (probe): Support discovering partition type.
14522 (main): Support -t msdos_parttype.
14524 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14526 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14527 infinite recursion using counter.
14528 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14529 init to skip it if the magic check fails.
14530 (dec_stream_header): Init s->crc32.
14532 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14533 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14534 2012-01-22 Richard Laager <rlaager@wiktel.com>
14536 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14538 (find_bestub): Determine correct size.
14539 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14540 (scan_disk): Align the size down.
14541 Call check pool before find_bestub to have ashift.
14543 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14545 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14546 dprintf in no-malloc zone.
14548 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14550 * configure.ac: Add back in test for limits.h.
14552 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14554 Support 4K-sector NTFS.
14556 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14557 (grub_ntfs_data): Remove blocksize.
14558 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14559 Remove data argument. All users updated.
14561 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14563 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14564 being in .text to avoid dprel references.
14565 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14566 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14567 (grub_arch_highmemsize): Likewise.
14568 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14569 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14570 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14572 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14574 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14576 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14577 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14579 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14581 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14583 (grub_set_datetime_cmos): Likewise.
14585 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14587 Make XZ compression parameters dependent on target and not host CPU.
14589 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14590 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14592 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14594 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14595 set but not used variable.
14597 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14599 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14600 created when no uuid support is compiled into mkfs.reiser.
14602 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14604 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14605 (utf8_to_macroman): Do the opposite.
14606 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14608 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14610 * configure.ac: Refise build qemu_mips w/o unifont.
14612 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14614 Eliminate grub_min/grub_max prone to overflow usage.
14616 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14617 (poll_nonroot_hub): Likewise.
14618 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14619 (grub_affs_label): Likewise.
14620 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14621 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14622 (grub_hfs_label): Likewise.
14623 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14624 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14625 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14626 (zap_leaf_array_get): Likewise.
14627 (dnode_get_path): Likewise.
14628 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14629 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14630 * grub-core/script/execute.c (grub_script_break): Likewise.
14631 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14633 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14634 * include/grub/misc.h (grub_min): Removed.
14635 (grub_max): Likewise.
14637 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14639 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14642 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14644 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14646 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14648 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14650 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14652 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14653 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14655 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14657 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14658 rather than a hack for grub_strncasemap.
14660 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14662 Support multiple initrds
14663 Note: part of this was accidently committed in r3739.
14665 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14667 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14668 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14669 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14670 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14671 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14673 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14675 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14676 disks with unknown size.
14677 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14679 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14681 Remove defines pertaining to arbitrary limits not affecting GRUB
14684 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14685 (EXT2_MAX_SYMLINKCNT): Likewise.
14686 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14687 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14688 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14689 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14690 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14691 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14692 (DN_MAX_OBJECT_SHIFT): Likewise.
14693 (DN_MAX_OFFSET_SHIFT): Likewise.
14694 (DN_MAX_OBJECT): Likewise.
14695 (DNODES_PER_LEVEL_SHIFT): Likewise.
14696 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14697 (SPA_MAXBLOCKSIZE): Likewise.
14698 (SPA_BLOCKSIZES): Likewise.
14699 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14700 (MZAP_MAX_BLKSZ): Likewise.
14702 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14704 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14705 handle NULL appropriately.
14708 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14712 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14714 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14715 * configure.ac: Fix efiemu check.
14717 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14719 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14721 Reported by: adamwill
14723 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14725 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14727 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14729 Fix handling of wide characters in gfxterm.
14731 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14732 (clear_char): Likewise.
14733 (paint_char): Skip code == NULL chars.
14734 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14736 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14738 * grub-core/normal/charset.c: Move comment to right place.
14740 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14742 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14743 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14744 (grub_affs_mount): Revert the correct version checking.
14746 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14748 * docs/grub.texi (Unicode): Mention several other unsupported features.
14750 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14752 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14753 case statements as compile-time one.
14754 (direct_read): Prevent spurious warnings.
14755 (grub_squash_read_data): Likewise.
14757 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14759 Various squash4 fixes and LZO and XZ support.
14761 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14762 Add xzembed source files.
14763 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14764 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14765 (grub_squash_inode): New subtype long_dir.
14766 (SQUASH_TYPE_LONG_DIR): New inode type.
14767 (COMPRESSION): New enum.
14768 (XZBUFSIZ): New const.
14769 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14770 (read_chunk): Use data->decompress.
14771 (zlib_decompress): New function.
14772 (lzo_decompress): Likewise.
14773 (xz_decompress): Likewise.
14774 (squash_mount): Set new data fields.
14775 (grub_squash_iterate_dir): Handle long dir.
14776 (squash_unmount): Free xzdec and xzbuf.
14777 (grub_squash_open): Check ino type.
14778 (direct_read): Stylistic fixes. Use data->decompress.
14779 (grub_squash_read_data): Likewise.
14780 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14781 (get_byte): Likewise.
14782 (grub_zlib_disk_read): Removed.
14783 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14784 (GRUB_POSIX_BOOL_DEFINED): New define.
14785 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14786 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14787 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14788 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14790 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14792 Don't override more informative errors.
14794 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14795 * grub-core/font/font.c (open_section): Likewise.
14796 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14797 filename. Don't override errors.
14798 (grub_cmd_openbsd_ramdisk): Don't override errors.
14799 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14800 (grub_cmd_initrd): Likewise.
14801 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14802 (grub_cmd_initrd): Likewise.
14803 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14804 (grub_cmd_linux): Likewise.
14805 (grub_cmd_initrd): Likewise.
14806 (grub_cmd_payload): Likewise.
14807 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14808 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14809 (grub_cmd_module): Likewise.
14810 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14811 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14812 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14813 (grub_cmd_xnu_mkext): Likewise.
14814 (grub_cmd_xnu_ramdisk): Likewise.
14815 (grub_xnu_check_os_bundle_required): Likewise.
14816 (grub_xnu_load_kext_from_dir): Likewise.
14817 (grub_cmd_xnu_kextdir): Likewise.
14818 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14820 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14822 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14823 as 1024 in block size field. Found on one of my test images.
14824 Small optimisation while on it.
14826 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14828 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14829 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14830 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14831 performance fixes while on it.
14832 (grub_sfs_close): Fix memory leak while on it.
14833 (grub_sfs_label): Convert Latin1 to UTF-8.
14835 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14837 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14838 space to avoid overflows.
14839 (grub_hfs_label): Convert from macroman to UTF-8.
14841 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14843 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14845 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14847 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14849 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14851 * unicode: Import Unicode 6.0 data.
14853 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14855 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14858 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14860 Avoid cutting in the middle of UTF-8 character.
14862 * include/grub/charset.h (grub_getend): New function.
14863 * grub-core/script/function.c (grub_script_function_find): Use
14865 * grub-core/normal/completion.c (add_completion): Likewise.
14867 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14869 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14870 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14871 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14872 (GRUB_UNICODE_TAG_END): Likewise.
14873 (GRUB_UNICODE_LAST_VALID): Likewise.
14875 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14877 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14878 len and make it smaller. All users updated.
14879 * util/import_unicode.py: Put length and not end character.
14882 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14884 Make better Unicode-compliant and unify some UTF-8 code pathes.
14886 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14888 (grub_is_valid_utf8): Use grub_utf8_process.
14889 Check resulting code range.
14890 (grub_utf8_to_ucs4): Use grub_utf8_process.
14891 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14894 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14896 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14898 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14900 * docs/grub.texi (Filesystems): Mention AFS.
14902 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14904 * docs/grub.texi (Filesystems): Clarify restrictions.
14905 (Regexp): Mention non-Unicode regexp behaviour.
14906 (Other): Mention non-Unicode matching behaviour.
14908 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14910 Make HFS implementation use MacRoman.
14912 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14913 (macroman): New const array.
14914 (macroman_to_utf8): New function.
14915 (utf8_to_macroman): Likewise.
14916 (grub_hfs_find_dir): Use utf8_to_macroman.
14917 (grub_hfs_dir): Use macroman_to_utf8.
14918 Set case_insensitive.
14920 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14922 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14924 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14926 Integrate hints into autogeneration scripts.
14928 * docs/grub.texi (Filesystems): Add a hostdisk example.
14929 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
14930 (grub-probe): Add ofpath.
14931 * gentpl.py: Remove group nosparc64.
14932 * grub-core/commands/search.c (cache_entry): New struct.
14934 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
14935 * grub-core/commands/search_wrap.c (options): Add platform-specific
14937 (grub_cmd_search): Handle platform-specific hints.
14938 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
14939 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
14940 (grub_util_biosdisk_data): Likewise.
14941 (grub_util_biosdisk_open): Set device_map.
14942 (read_device_map): Handle "" as indication of no map.
14944 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
14945 (grub_util_biosdisk_get_compatibility_hint): New function.
14946 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
14947 * include/grub/emu/hostdisk.h
14948 (grub_util_biosdisk_get_compatibility_hint): New proto.
14949 * util/grub-install.in: Don't call grub-mkdevicemap.
14950 Add platform-specific hint to load.cfg.
14951 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
14952 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
14953 hints. Set root preliminary to compatibility hint, not to OS name.
14954 * util/grub-probe.c (PRINT_*): Add hints.
14955 (print): Make static.
14956 (escape_of_path): New function.
14957 (guess_bios_drive): Likewise.
14958 (guess_efi_drive): Likewise.
14959 (guess_baremetal_drive): Likewise.
14960 (print_full_name): Likewise.
14961 (probe): Handle hints.
14963 * util/ieee1275/devicemap.c: Removed.
14964 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
14966 (grub_util_devname_to_ofpath): Return NULL on failure.
14968 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
14970 * util/getroot.c (grub_util_pull_device): Fix memory leak.
14972 * po/POTFILES.in: Regenerated.
14974 Allow purely long options
14976 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
14977 (SHORT_ARG_USAGE): Likewise.
14978 (grub_arg_show_help): Compare opt with help_options.
14979 (parse_option): Receive opt as argument. If makes big simplificatons.
14982 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14984 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
14985 Restructure to avoid warning.
14987 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14989 * util/grub-install.in: Account for possible escaped comma in device
14992 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14994 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
14997 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14999 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15000 allocation and zero-setting.
15001 (grub_ieee1275_get_devname): Check that alias is complete.
15003 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15005 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15006 unaligned segments.
15008 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15010 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15012 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15013 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15014 Add ieee1275 prefix.
15016 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15018 * docs/grub.texi (Filesystems): Update.
15020 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15022 Support odc, newc and bigendian cpio formats.
15024 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15025 * grub-core/Makefile.core.def (newc): New module.
15027 (cpio_be): Likewise.
15028 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15030 (MAGIC2): Likewise.
15031 (head) [MODE_ODC]: Adapt for the format.
15032 (head) [MODE_NEWC]: Likewise.
15033 (head) [!MODE_*]: Write fields of interest as arrays.
15034 (MAGIC_USTAR): Removed.
15035 (read_number) [MODE_NEWC]: Change to hex.
15036 (read_number) [!MODE_*]: Parse binary arrays.
15037 (grub_cpio_find_file): Factor out the code for better structure and
15038 always use read_number.
15039 (grub_cpio_mount): Use MAGIC and MAGIC2.
15040 (grub_cpio_dir): Exit on first hook non-0 return.
15041 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15042 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15043 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15044 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15045 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15046 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15047 * grub-core/fs/newc.c: New file.
15048 * grub-core/fs/odc.c: Likewise.
15049 * grub-core/fs/cpio_be.c: Likewise.
15051 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15053 Fix handling of tar numbers occupying the whole field.
15055 * grub-core/fs/cpio.c (read_number): New function.
15056 (grub_cpio_find_file): Use read_number instead of strtoull.
15058 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15060 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15061 occupying the whole field size.
15063 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15065 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15067 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15069 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15071 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15073 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15074 TARGET_IMG_LDFLAGS.
15076 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15078 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15079 (mountinfo_entry): Increase the field size to take escaping into
15081 (find_root_device_from_libzfs): Add one byte to size of strings for
15084 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15086 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15088 * util/grub-setup.c (setup): Likewise.
15090 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15092 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15095 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15097 * docs/grub.texi (Internationalisation): New section.
15099 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15101 * docs/grub.texi (Loopback booting): New section.
15103 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15105 * util/grub-mkstandalone.in: Fix minor typo errors.
15107 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15109 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15111 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15112 net/icmp.c and net/icmp6.c.
15113 (http): New module.
15114 (priority_queue): Likewise.
15115 * grub-core/io/bufio.c: Rewritten.
15116 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15117 TYPE_WITH_CONFIGFILE_OPTION.
15118 (legacy_commands): Add bootp and dhcp.
15119 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15120 (grub_legacy_parse): Likewise.
15121 * grub-core/lib/priority_queue.c: New file.
15122 * grub-core/net/arp.c: Add missing license header.
15123 (arp_find_entry): Removed.
15124 (arp_find_entry): Likewise.
15125 (grub_net_arp_resolve): Rename to ...
15126 (grub_net_arp_send_request): ...this.
15127 (grub_net_arp_receive): New card argument.
15128 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15129 Set router and DNS server.
15130 (grub_net_configure_by_dhcp_ack): Handle routing information.
15131 (grub_cmd_bootp): Set checksum.
15132 (grub_bootp_init): Remove net_dhcp.
15133 * grub-core/net/dns.c: New file.
15134 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15136 (get_card_packet): Handle allocation.
15137 (grub_efinet_findcards): Set mtu.
15138 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15139 (get_card_packet): Handle allocation.
15140 (emucard): Set mtu.
15141 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15142 (GRUB_MOD_INIT): Set mtu.
15143 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15145 (get_card_packet): Handle allocation.
15146 (grub_ofnet_findcards): Set mtu.
15147 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15149 (grub_net_recv_ethernet_packet): Handle IPv6.
15150 * grub-core/net/http.c: New file.
15151 * grub-core/net/icmp.c: Likewise.
15152 * grub-core/net/icmp6.c: Likewise.
15153 * grub-core/net/ip.c (ip6addr): New type.
15154 (ip6hdr): Likewise.
15155 (reassemble): Likewise.
15156 (cmp): New function.
15157 (reassembles): New variable.
15158 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15159 (id): New variable.
15160 (send_fragmented): New function.
15161 (grub_net_send_ip_packet): Rename to ...
15162 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15164 (grub_net_recv_ip_packets): Rename to ...
15165 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15166 (free_rsm): New function.
15167 (free_old_fragments): Likewise.
15168 (grub_net_recv_ip4_packets): New function.
15169 (grub_net_send_ip6_packet): Likewise.
15170 (grub_net_send_ip_packet): Likewise.
15171 (grub_net_recv_ip6_packets): Likewise.
15172 (grub_net_recv_ip_packets): Likewise.
15173 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15174 (LINK_LAYER_CACHE_SIZE): New const.
15175 (link_layer_find_entry): New function.
15176 (grub_net_link_layer_add_address): Likewise.
15177 (grub_net_link_layer_resolve_check): Likewise.
15178 (grub_net_link_layer_resolve): Likewise.
15179 (grub_net_ipv6_get_slaac): Likewise.
15180 (grub_net_ipv6_get_link_local): Likewise.
15181 (grub_cmd_ipv6_autoconf): Likewise.
15182 (parse_ip): Handle one number representation.
15183 (parse_ip6): New functoion.
15184 (match_net): Handle IPv6.
15185 (grub_net_resolve_address): Handle IPv6 and DNS.
15186 (grub_net_resolve_net_address): Handle IPv6.
15187 (route_cmp): New function.
15188 (grub_net_route_address): Find best route.
15189 (grub_net_addr_to_str): Handle IPv6.
15190 (grub_net_addr_cmp): New function.
15191 (grub_net_add_addr): Register local route.
15192 (print_net_address): Handle net address.
15193 (grub_net_poll_cards): Retransmit TCP.
15194 (grub_net_poll_cards_idle_real): Likewise.
15195 (have_ahead): New function.
15196 (grub_net_seek_real): Use underlying seek.
15197 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15198 * grub-core/net/tcp.c: New file.
15199 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15200 (cmp): New function.
15202 (tftp_receive): Handle unordered input.
15203 (destroy_pq): New function.
15204 (tftp_close): Close pq.
15205 * grub-core/net/udp.c: Put missing license header.
15206 (grub_net_udp_socket): New function.
15207 (udp_socket_register): Likewise.
15208 (grub_net_udp_close): Likewise.
15209 (grub_net_recv_udp_packet): Check checksum.
15210 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15211 * include/grub/misc.h (grub_memchr): New function.
15212 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15213 (grub_net_card_driver): Return buf in recv.
15214 (grub_net_slaac_mac_list): New struct.
15215 (grub_network_level_protocol_id): Add ipv6.
15216 (grub_net_network_level_addr): Likewise.
15217 (grub_net_network_level_net_addr): Likewise.
15218 (grub_net_app_protocol): Add seek.
15219 (grub_net_socket): Removed.
15220 (grub_net_sockets): Likewise.
15221 (grub_net_socket_register): Likewise.
15222 (grub_net_socket_unregister): Likewise.
15223 (FOR_NET_SOCKETS): Likewise.
15224 (grub_net_add_addr): Add const.
15225 (GRUB_NET_BOOTP_*): New enum.
15226 (grub_net_addr_cmp): New proto.
15227 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15228 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15229 (grub_net_hwaddr_to_str): NEw proto.
15230 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15231 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15232 (grub_dns_init): New proto.
15233 (grub_dns_fini): Likewise.
15234 (grub_net_tcp_retransmit): Likewise.
15235 (grub_net_link_layer_add_address): Likewise.
15236 (grub_net_link_layer_resolve_check): Likewise.
15237 (grub_net_link_layer_resolve): Likewise.
15238 (grub_net_dns_lookup): Likewise.
15239 (grub_net_add_dns_server): Likewise.
15240 (grub_net_remove_dns_server): Likewise.
15241 (GRUB_NET_TRIES): New const.
15242 (GRUB_NET_INTERVAL): Likewise.
15243 * include/grub/net/arp.h: Mostly rewritten.
15244 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15245 * include/grub/net/ip.h: Mostly rewritten.
15246 * include/grub/net/netbuff.h: Indent.
15247 * include/grub/net/tcp.h: New file.
15248 * include/grub/net/udp.h: Mostly rewritten.
15249 * include/grub/priority_queue.h: New file.
15250 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15251 (grub_swap_bytes64_compile_time): Likewise.
15252 (grub_cpu_to_be16_compile_time): Likewise.
15253 (grub_cpu_to_be32_compile_time): Likewise.
15254 (grub_cpu_to_be64_compile_time): Likewise.
15255 (grub_be_to_cpu64_compile_time): Likewise.
15257 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15259 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15260 UINT_TO_PTR with cast.
15262 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15264 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15267 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15269 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15272 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15274 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15277 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15279 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15280 Add missing const attribute.
15281 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15283 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15286 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15288 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15290 (serpent_setkey): Likewise.
15291 (serpent_encrypt_internal): Likewise.
15292 (serpent_decrypt_internal): Likewise.
15293 (serpent_encrypt): Don't put an alignment-increasing cast.
15294 (serpent_decrypt): Likewise.
15295 (serpent_test): Likewise.
15297 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15299 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15301 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15303 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15305 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15307 (PTR_TO_UINT64): Likewise.
15308 (PTR_TO_UINT32): Likewise.
15310 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15312 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15314 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15317 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15319 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15320 text_width > available width a bit more gracefully.
15322 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15324 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15325 current address calculation.
15327 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15329 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15331 (encode_block): Likewise.
15333 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15335 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15338 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15340 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15341 non-RS part to avoid RS messing with GDT.
15342 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15343 Increase to suit in realmode routines.
15345 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15347 * grub-core/kern/i386/realmode.S: Increase alignment.
15348 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15350 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15352 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15354 (syndroms): Compute 0 syndrom.
15355 (rs_recover): Use 0 syndrom.
15357 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15359 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15361 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15363 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15366 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15368 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15370 (get_top_pad): Likewise.
15371 (get_right_pad): Likewise.
15372 (get_bottom_pad): Likewise.
15374 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15376 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15378 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15380 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15381 attribute as the structure isn't guaranteed to be properly aligned.
15382 (grub_efi_pci_device_path): Likewise.
15383 (grub_efi_pccard_device_path): Likewise.
15384 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15385 specify the size of `memory_type'.
15386 (grub_efi_vendor_device_path): Likewise.
15387 (grub_efi_controller_device_path): Likewise.
15388 (grub_efi_acpi_device_path): Likewise.
15389 (grub_efi_expanded_acpi_device_path): Likewise.
15390 (grub_efi_atapi_device_path): Likewise.
15391 (grub_efi_scsi_device_path): Likewise.
15392 (grub_efi_fibre_channel_device_path): Likewise.
15393 (grub_efi_1394_device_path): Likewise.
15394 (grub_efi_usb_device_path): Likewise.
15395 (grub_efi_usb_class_device_path): Likewise.
15396 (grub_efi_i2o_device_path): Likewise.
15397 (grub_efi_mac_address_device_path): Likewise.
15398 (grub_efi_ipv4_device_path): Likewise.
15399 (grub_efi_ipv6_device_path): Likewise.
15400 (grub_efi_infiniband_device_path): Likewise.
15401 (grub_efi_uart_device_path): Likewise.
15402 (grub_efi_vendor_messaging_device_path): Likewise.
15403 (grub_efi_hard_drive_device_path): Likewise.
15404 (grub_efi_cdrom_device_path): Likewise.
15405 (grub_efi_vendor_media_device_path): Likewise.
15406 (grub_efi_file_path_device_path): Likewise.
15407 (grub_efi_protocol_device_path): Likewise.
15408 (grub_efi_piwg_device_path): Likewise.
15409 (grub_efi_bios_device_path): Likewise.
15411 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15413 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15414 (grub_ucs4_to_utf8_alloc): Likewise.
15415 (grub_ucs4_to_utf8): Likewise.
15416 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15417 (grub_ucs4_to_utf8_alloc): Likewise.
15419 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15421 AFFS never uses unicode.
15423 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15424 (grub_latin1_to_utf8): New inline function.
15425 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15427 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15429 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15432 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15434 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15435 (grub_squash_dirent_header): Likewise.
15436 (read_chunk): Don't double swap.
15437 (grub_squash_iterate_dir): Fix swap sizes.
15439 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15441 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15443 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15445 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15446 (grub_hfs_iterate_dir): Likewise.
15448 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15450 Fix video on platforms where unaligned access is forbidden.
15451 Make several optimisations while on it.
15453 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15454 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15455 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15456 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15458 (grub_video_fbblit_replace_16bit_1bit):
15459 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15460 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15461 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15462 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15463 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15464 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15465 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15466 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15467 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15468 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15469 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15470 (grub_video_fbblit_replace_index_RGB888): Likewise.
15471 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15472 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15473 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15474 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15475 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15476 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15477 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15479 (grub_video_fbblit_blend_XXX565_1bit):
15480 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15481 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15482 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15484 * grub-core/video/fb/video_fb.c (common_blitter)
15485 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15486 (grub_video_fb_create_render_target_from_pointer)
15487 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15488 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15489 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15491 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15493 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15495 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15496 HH22 and HM10 relocations.
15498 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15500 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15502 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15504 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15505 allocation succeeded.
15507 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15509 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15510 argument a u8 pointer. All users updated.
15511 Handle unaligned buffers.
15513 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15515 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15516 add_part to workaround compiler bug.
15518 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15520 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15522 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15524 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15525 Reserve alignment invariants.
15526 (grub_multiboot_load): Likewise.
15527 (retrieve_video_parameters): Likewise.
15528 (grub_multiboot_make_mbi): Likewise.
15530 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15532 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15535 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15537 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15538 (grub_pata_pio_write): Likewise.
15540 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15542 Add noreturn attributes and remove unreachable code.
15544 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15546 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15547 code. Mark as noreturn.
15548 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15549 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15550 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15552 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15553 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15554 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15555 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15556 * include/grub/kernel.h (grub_main): Mark as noreturn.
15557 * include/grub/reader.h (grub_rescue_run): Likewise.
15559 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15561 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15562 redundant declaration.
15564 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15566 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15567 redundant declaration.
15568 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15570 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15572 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15573 to ensure alignment.
15574 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15575 alignment. Ensure tmp alignment.
15576 (grub_cmd_hdparm): Ensure buf alignment.
15577 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15578 to ensure alignment.
15579 (grub_ata_dumpinfo): Ensure text alignment.
15580 (grub_atapi_identify): Preserve alignment invariant.
15581 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15583 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15585 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15586 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15587 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15588 * include/grub/misc.h (grub_reboot)
15589 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15590 (grub_halt) [__mips__]: Likewise.
15592 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15594 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15595 Remove redundant declaration.
15596 (grub_mmap_get_post64): Likewise.
15597 (grub_mmap_get_upper): Likewise.
15598 (grub_mmap_get_lower): Likewise.
15600 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15602 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15603 uint32_t * to ensure alignment.
15604 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15606 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15608 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15609 uint16_t * to ensure alignment.
15610 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15613 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15615 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15616 to ensure alignment.
15617 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15619 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15621 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15622 Handle unaligned pointers.
15625 (fixup): Use byte access instead of v16at.
15626 (find_attr): Fix imporper usage of v32at.
15627 (read_data): Likewise.
15628 (list_file): Handle byte-swapping and unaligned strings.
15629 (grub_ntfs_label): Likewise.
15631 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15633 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15634 as it's not necessarily aligned.
15636 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15638 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15639 redundant declaration.
15640 (grub_serial_init): Likewise.
15641 (grub_terminfo_init): Likewise.
15643 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15645 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15647 (ZAP_HASH_IDX): Likewise.
15648 (ZAP_LEAF_HASH_SHIFT): Likewise.
15649 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15650 (LEAF_HASH): Likewise.
15651 (ZAP_LEAF_NUMCHUNKS): Likewise.
15652 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15653 alignment invariants. Return pointer. All users updated.
15654 (ZAP_LEAF_ENTRY): Make into inline function.
15657 (xor_out): Use grub_crypto_xor.
15658 (dnode_get_path): Use grub_get_unaligned.
15659 (nvlist_find_value): Likewise.
15660 (grub_zfs_nvlist_lookup_uint64): Likewise.
15661 (grub_zfs_nvlist_lookup_string): Likewise.
15662 (get_nvlist_size): Likewise.
15663 (grub_zfs_open): Likewise.
15664 (fill_fs_info): Likewise.
15665 (grub_zfs_dir): Likewise.
15666 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15667 alignment invariants.
15668 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15669 necessarily aligned.
15671 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15673 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15675 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15677 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15678 arithmetic to conserve alignment invariants.
15680 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15682 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15683 redundant declaration.
15684 (grub_efiemu_mm_obtain_request): Likewise.
15685 (grub_efiemu_prepare): Likewise.
15687 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15689 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15692 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15694 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15695 case of aunaligned recptr.
15696 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15698 (grub_hfsplus_btree_search): Handle unaligned index.
15700 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15702 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15703 to get freetag and skip.
15705 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15707 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15709 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15710 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15712 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15714 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15715 name for checksum and fix allocation algorithm.
15717 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15719 * include/grub/types.h (grub_properly_aligned_t): New type.
15720 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15721 (grub_get_unaligned16): Add explicit casts.
15722 (grub_get_unaligned32): Likewise.
15723 (grub_get_unaligned64): Likewise.
15724 (grub_set_unaligned16): New function.
15725 (grub_set_unaligned32): Likewise.
15727 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15729 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15731 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15733 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15734 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15735 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15737 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15739 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15742 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15744 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15745 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15747 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15749 Unify and improve RAID and crypto xor.
15751 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15752 changed to grub_crypto_xor
15753 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15754 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15755 Use bigger types when possible.
15757 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15759 * grub-core/disk/raid.c (scan_devices): Fix condition.
15761 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15763 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15764 Make name a const ptr.
15766 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15768 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15769 first argument a const pointer.
15770 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15771 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15773 (grub_children_iterate): Likewise.
15774 (grub_machine_mmap_iterate): Remove redundant declaration.
15776 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15778 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15779 (grub_cmd_acpi) [!x86]: Disable EBDA.
15781 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15783 Enable UTF8 in gnulib regexp.
15785 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15786 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15787 (isupper): Use grub_isupper.
15788 (isascii): New inline function.
15789 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15790 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15791 * grub-core/normal/charset.c (grub_utf8_process): New function.
15792 (grub_utf8_to_utf16): Use grub_utf8_process.
15793 (grub_encode_utf8_character): New function.
15794 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15795 * include/grub/charset.h (grub_utf8_process): New declaration.
15796 (grub_encode_utf8_character): Likewise.
15797 * include/grub/misc.h (grub_islower): New inline function.
15798 (grub_isupper): Likewise.
15799 (grub_strchrsub): Moved down to fix the definitions.
15801 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15803 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15806 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15808 * include/grub/loader.h (grub_loader_register_preboot_hook):
15809 Use struct preboot * and not void * for handle. All users updated.
15810 (grub_loader_unregister_preboot_hook): Likewise.
15812 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15814 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15815 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15816 UTF-16-BE. All users updated.
15817 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15818 (grub_hfsplus_iterate_dir): Likewise.
15819 (grub_hfsplus_label): Likewise.
15821 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15823 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15825 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15827 Add missing const qualifiers.
15829 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15830 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15831 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15832 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15833 (grub_lvm_check_flag): Likewise.
15834 * grub-core/efiemu/i386/coredetect.c
15835 (grub_efiemu_get_default_core_name): Likewise
15836 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15837 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15838 * grub-core/fs/ntfs.c (fixup): Likewise.
15839 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15840 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15841 (fzap_lookup): Likewise.
15842 (zap_lookup): Likewise.
15843 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15844 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15845 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15846 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15847 (grub_freebsd_add_meta_module): Likewise.
15848 (grub_cmd_freebsd_module): Likewise.
15849 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15850 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15851 (grub_xnu_writetree_get_size): Likewise.
15852 (grub_xnu_writetree_toheap_real): Likewise.
15853 (grub_xnu_find_key): Likewise.
15854 (grub_xnu_create_key): Likewise.
15855 (grub_xnu_create_value): Likewise.
15856 (grub_xnu_register_memory): Likewise.
15857 (grub_xnu_check_os_bundle_required): Likewise.
15858 (grub_xnu_scan_dir_for_kexts): Likewise.
15859 (grub_xnu_load_kext_from_dir): Likewise.
15860 * grub-core/normal/color.c (color_list): Likewise.
15861 * grub-core/normal/completion.c (current_word): Likewise.
15862 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15863 * grub-core/term/serial.c (grub_serial_find): Likewise.
15864 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15865 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15867 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15868 (grub_freebsd_add_meta_module): Likewise.
15869 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15870 * include/grub/net.h (grub_net_card_driver): Likewise.
15871 (grub_net_card): Likewise.
15872 (grub_net_app_protocol): Likewise.
15873 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15874 * include/grub/serial.h (grub_serial_find): Likewise.
15875 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15876 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15877 (grub_xnu_create_value): Likewise.
15878 (grub_xnu_find_key): Likewise.
15879 (grub_xnu_scan_dir_for_kexts): Likewise.
15880 (grub_xnu_load_kext_from_dir): Likewise.
15882 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15883 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15884 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15885 Moved from here ...
15886 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15888 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
15890 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15892 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15894 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15895 (read_device): Fix size calculation.
15897 2011-11-25 Robert Millan <rmh@gnu.org>
15899 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15900 (find_root_device_from_libzfs): Add zpool output parser to be used
15901 as fallback when libzfs isn't available.
15903 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15905 * po/Makefile.in.in: Add missing escape-continuation.
15907 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15909 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15911 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15913 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15915 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15917 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15919 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15921 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15923 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15925 * grub-core/lib/adler32.c: Add missing license specification.
15926 * grub-core/lib/crc64.c: Likewise.
15927 * grub-core/loader/i386/pc/plan9.c: Likewise.
15928 * grub-core/partmap/plan.c: Likewise.
15930 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
15932 Add facility to debug GRUB with gdb under qemu.
15934 * grub-core/gdb_grub.in: New file.
15935 * grub-core/gmodule.pl.in: Likewise.
15936 * grub-core/Makefile.core.def (gmodule.pl): New script.
15937 (gdb_grub): Likewise.
15939 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15941 * util/grub-mount.c (argp_parser): Accept relative pathes.
15942 * util/grub-fstest.c (argp_parser): Likewise.
15944 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15948 * Makefile.util.def (libgrubmods): Add
15949 grub-core/partmap/plan.c.
15950 * docs/grub.texi: Notice Plan9 support.
15951 * grub-core/Makefile.core.def (plan9): New module.
15952 (part_plan): Likewise.
15953 * grub-core/loader/i386/pc/plan9.c: New file.
15954 * grub-core/partmap/plan.c: Likewise.
15955 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
15957 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
15958 * include/grub/mm.h (grub_extend_alloc): New inline function.
15960 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15962 Make Reed-Solomon faster by using power of generator representation of
15965 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
15966 (gf_double_t): Likewise.
15967 (gf_invert): Removed.
15968 (gf_powx): New array.
15969 (gf_powx_inv): Likewise.
15970 (scratch): Move higher.
15971 (gf_reduce): Removed.
15972 (gf_mul): Use powx.
15973 (gf_invert): Likewise.
15974 (init_inverts): Replaced with ...
15975 (init_powx): ...this. All users updated.
15976 (pol_evaluate): Replace multiplications with additions.
15977 (rs_encode): Likewise.
15978 (gauss_eliminate): Call gf_invert.
15979 (grub_reed_solomon_add_redundancy): Call init_powx.
15980 (grub_reed_solomon_recover): Call init_powx unconditionally.
15982 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15984 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
15986 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15988 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
15989 disk->partiton for safety.
15991 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15993 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
15995 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
15997 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15999 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16001 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16003 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16005 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16007 Fix spaces handling in proc/self/mountinfo.
16009 * util/getroot.c (unescape): New function.
16010 (grub_find_root_device_from_mountinfo): Use unescape.
16012 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16014 Support ZFS embedding.
16016 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16017 (grub_zfs_fs): Register grub_zfs_embed.
16019 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16021 Fix MIPS compilation.
16023 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16024 * include/grub/offsets.h: Rename decompressor fields from
16025 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16026 * util/grub-mkimage.c (image_targets): Use new names.
16028 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16030 Defer multiboot device parsing until we're in compressed part.
16032 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16033 bsd_part. setdevice has fallen into disuse.
16034 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16035 (bsd_part): Likewise.
16036 (boot_dev): New variable.
16037 (multiboot_trampoline): Don't parse multiboot device.
16038 Pass multiboot device in %edx.
16039 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16041 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16043 * grub-core/kern/i386/pc/startup.S: Save edx.
16044 (grub_boot_drive): Removed.
16045 (grub_install_dos_part): Likewise.
16046 (grub_install_bsd_part): Likewise.
16047 (grub_boot_device): New variable.
16048 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16049 (grub_install_bsd_part): Likewise.
16050 (grub_boot_drive): Likewise.
16051 (grub_boot_device): New variable.
16052 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16054 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16055 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16056 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16057 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16058 * util/grub-install.in: Remove redundant condition.
16060 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16062 Fix bug introduced by previous commit.
16064 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16066 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16068 Use decompressors framework on i386-pc. It increases core size
16069 by 46 bytes but improves compatibility and maintainability.
16071 * grub-core/Makefile.core.def (lzma_decompress): New image.
16072 (kernel): Add i386_pc_ldflags.
16073 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16074 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16075 to real_to_prot, prot_to_real and device info.
16076 * include/grub/offsets.h: Renamed decompressor offsets.
16077 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16078 (image_target_desc): Remove raw_size and rename decompressor fields.
16079 (compress_kernel): Handle lzma.
16080 (generate_image): Handle decompressors on i386-pc.
16082 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16084 * configure.ac: Add -fno-asynchronous-unwind-tables.
16086 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16088 Move assembly code to C by using intwrap. It increases core size
16089 by 88 bytes but improves compatibility and maintainability.
16091 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16092 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16093 ... here. Translated to C.
16094 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16095 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16096 ... here. Translated to C.
16097 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16098 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16099 ... here. Translated to C.
16100 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16101 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16102 ... here. Translated to C.
16103 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16104 * grub-core/term/i386/pc/console.c (grub_console_cls):
16105 ... here. Translated to C.
16106 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16107 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16108 ... here. Translated to C.
16109 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16110 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16112 * grub-core/term/i386/pc/console.c (int10_9): New function.
16113 (grub_console_putchar): Likewise.
16114 * include/grub/i386/pc/console.h: Removed the not anymore shared
16117 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16119 Move grub_chainloader_real_boot out of the kernel.
16121 * grub-core/Makefile.am: Remove machine/loader.h.
16122 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16124 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16126 (grub_relocator16_keep_a20_enabled): Likewise.
16127 (grub_relocator16_boot): Fill new variables.
16128 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16129 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16131 (grub_chainloader_unload): Likewise.
16132 (grub_chainloader_cmd): Likewise.
16133 * include/grub/i386/pc/loader.h: Removed.
16134 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16135 and esi. All initialisers updated.
16137 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16138 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16140 * Makefile.util.def (grub-mount): New util.
16141 * .bzrignore: Add grub-mount.
16142 * configure.ac: Check for fuse and enable grub-mount if available.
16143 * docs/man/grub-mount.h2m: New file.
16144 * util/grub-mount.c: Likewise.
16146 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16148 * grub-core/commands/efi/fixvideo.c: Gettextize.
16149 * grub-core/commands/hashsum.c: Likewise.
16150 * grub-core/commands/i386/cmostest.c: Likewise.
16151 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16152 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16153 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16154 * grub-core/commands/lsmmap.c: Likewise.
16155 * grub-core/commands/menuentry.c: Likewise.
16156 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16157 * grub-core/commands/setpci.c: Likewise.
16158 * grub-core/loader/i386/bsd.c: Likewise.
16159 * grub-core/loader/i386/linux.c: Likewise.
16160 * util/getroot.c: Likewise.
16161 * util/grub-editenv.c: Likewise.
16162 * util/grub-fstest.c: Likewise.
16163 * util/grub-mkfont.c: Likewise.
16164 * util/grub-mkimage.c: Likewise.
16165 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16166 * util/grub-pe2elf.c: Likewise.
16167 * util/grub-probe.c: Likewise.
16168 * util/grub-setup.c: Likewise.
16169 * util/ieee1275/ofpath.c: Likewise.
16170 * util/misc.c: Likewise.
16171 * util/raid.c: Likewise.
16173 2011-11-11 Robert Millan <rmh@gnu.org>
16175 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16176 __attribute__((unused)) from `os_dev', which *is* being used.
16178 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16180 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16182 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16183 GRUB_IA64_DL_GOT_ALIGN.
16184 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16185 GRUB_IA64_DL_TRAMP_ALIGN.
16187 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16189 Replace grub_fatal with normal errors in i386 linux loader.
16191 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16192 (allocate_pages): Check find_efi_mmap_size return value.
16193 (grub_e820_add_region): Return error.
16194 (grub_linux_boot): Check mmap return value.
16196 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16198 * grub-core/commands/acpihalt.c: Gettextized.
16199 * grub-core/commands/cacheinfo.c: Likewise.
16200 * grub-core/commands/cmp.c: Likewise.
16201 * grub-core/commands/efi/loadbios.c: Likewise.
16202 * grub-core/commands/gptsync.c: Likewise.
16203 * grub-core/commands/ieee1275/suspend.c: Likewise.
16204 * grub-core/commands/legacycfg.c: Likewise.
16205 * grub-core/commands/memrw.c: Likewise.
16206 * grub-core/commands/minicmd.c: Likewise.
16207 * grub-core/commands/parttool.c: Likewise.
16208 * grub-core/commands/time.c: Likewise.
16209 * grub-core/commands/videoinfo.c: Likewise.
16210 * grub-core/disk/geli.c: Likewise.
16211 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16212 * grub-core/disk/luks.c: Likewise.
16213 * grub-core/disk/lvm.c: Likewise.
16214 * grub-core/font/font_cmd.c: Likewise.
16215 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16216 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16217 * grub-core/gfxmenu/view.c: Likewise.
16218 * grub-core/kern/emu/hostdisk.c: Likewise.
16219 * grub-core/kern/emu/main.c: Likewise.
16220 * grub-core/kern/emu/misc.c: Likewise.
16221 * grub-core/kern/emu/mm.c: Likewise.
16222 * grub-core/kern/mips/arc/init.c: Likewise.
16223 * grub-core/kern/mips/loongson/init.c: Likewise.
16224 * grub-core/kern/partition.c: Likewise.
16225 * grub-core/lib/i386/halt.c: Likewise.
16226 * grub-core/lib/mips/arc/reboot.c: Likewise.
16227 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16228 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16229 * grub-core/loader/i386/xnu.c: Likewise.
16230 * grub-core/loader/multiboot.c: Likewise.
16231 * grub-core/net/bootp.c: Likewise.
16232 * grub-core/net/net.c: Likewise.
16233 * grub-core/normal/term.c: Likewise.
16234 * grub-core/partmap/bsdlabel.c: Likewise.
16235 * grub-core/parttool/msdospart.c: Likewise.
16236 * grub-core/term/gfxterm.c: Likewise.
16237 * grub-core/term/terminfo.c: Likewise.
16238 * grub-core/video/i386/pc/vbe.c: Likewise.
16239 * util/grub-menulst2cfg.c: Likewise.
16240 * util/grub-mkdevicemap.c: Likewise.
16241 * util/grub-mklayout.c: Likewise.
16242 * util/grub-mkrelpath.c: Likewise.
16243 * util/grub-script-check.c: Likewise.
16244 * util/ieee1275/grub-ofpathname.c: Likewise.
16245 * util/resolve.c: Likewise.
16247 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16249 Support %1$d syntax.
16251 * tests/printf_unit_test.c: New file.
16252 * Makefile.util.def (printf_test): New test.
16253 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16255 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16257 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16260 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16262 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16264 * grub-core/font/font.c (grub_font_load): Likewise.
16266 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16268 * util/grub-macho2img.c: Add comment concerning gettext.
16269 * grub-core/lib/legacy_parse.c: Likewise.
16271 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16273 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16274 (grub_xvasprintf): Likewise.
16276 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16278 Add const keyword to grub_env_get and gettextize week days.
16280 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16281 (grub_read_hook_datetime): Return const char *.
16282 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16284 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16286 (grub_get_weekday_name): Return const char *. Call gettext.
16287 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16288 char * and len as the argument. All users updated.
16289 (grub_script_argv_split_append): Receive const char *.
16290 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16291 * include/grub/env.h (grub_env_get): Likewise.
16292 (grub_env_read_hook_t): Return const char *.
16293 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16294 (grub_script_argv_split_append): Likewise.
16296 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16298 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16300 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16302 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16303 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16305 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16307 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16310 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16312 Fix mips compilation.
16314 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16316 (hashes): Use in embed decoder as well (for sizes).
16317 (dec_stream_header): Fix embed decompressor logic.
16318 (dec_stream_footer): Likewise.
16320 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16322 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16323 an error and not a fatal on unrecognised relocation types.
16325 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16327 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16328 Issue error rather than printf on unknown arguments.
16330 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16332 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16335 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16337 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16340 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16342 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16343 leftover debug printf.
16345 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16347 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16349 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16351 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16354 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16356 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16358 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16360 Allow all modules to perform serial IO
16362 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16363 * include/grub/serial.h (grub_serial_port_configure): New inline
16365 (grub_serial_port_fetch): Likewise.
16366 (grub_serial_port_put): Likewise.
16367 (grub_serial_port_fini): Likewise.
16368 (grub_serial_find): New proto.
16370 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16372 Put symlink at the end of the node and fix a potential
16375 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16376 Make symlink into an array.
16377 (set_rockridge): Set have_symlink and alloc_dirents.
16378 (grub_iso9660_read_symlink): Use new layout.
16379 (grub_iso9660_iterate_dir): Fix memory corruption.
16381 (grub_iso9660_dir): Set have_symlink.
16382 (grub_iso9660_open): Likewise.
16384 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16386 Remove local keyword.
16388 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16389 (version_test_gt): Likewise.
16390 (version_find_latest): Likewise.
16391 (gettext_printf): Likewise.
16392 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16394 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16396 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16398 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16400 Fix ZFS memory and resource leaks.
16402 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16405 (fill_vdev_info): New parameter inserted. All users updated.
16406 (check_pool_label): Likewise.
16407 (scan_disk): Likewise.
16408 (scan_devices): Close non-inserted disks.
16409 (fzap_iterate): Free l.
16410 (unmount_device): Free children descripto memory.
16412 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16414 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16415 argument (access out of bounds).
16417 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16419 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16422 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16424 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16427 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16429 Fix several memory leaks.
16431 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16432 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16433 (grub_cpio_dir): Likewise.
16434 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16435 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16436 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16437 (grub_romfs_label): Likewise.
16438 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16439 (squash_unmount): New function.
16440 (grub_squash_dir): Fix memory leak.
16441 (grub_squash_open): Likewise.
16442 (grub_squash_read): Likewise.
16443 (grub_squash_mtime): Likewise.
16444 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16445 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16446 * util/grub-fstest.c (fstest): Likewise.
16448 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16450 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16451 avoid accessing beyond the array.
16453 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16455 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16457 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16459 Several AFFS fixes.
16461 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16462 (GRUB_AFFS_FLAG_FFS): Removed.
16463 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16464 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16465 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16466 (grub_fshelp_node): Make block 32-bit.
16467 Add block_cache and last_block_cache.
16468 (grub_affs_read_block): Fill and use block cache.
16469 (grub_affs_read_file): Removed.
16470 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16472 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16474 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16476 (grub_affs_close): Free block cache.
16477 (grub_affs_read): Use grub_fshelp_read_file directly.
16479 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16481 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16484 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16486 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16488 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16491 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16493 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16495 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16496 byteswap when needed.
16498 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16500 Fix FreeBSD compilation.
16502 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16503 to avoid circular dependency.
16504 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16505 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16506 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16508 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16510 Fix ZFS crypto error types.
16512 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16513 (grub_gcm_decrypt): Likewise.
16514 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16517 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16521 * Makefile.util.def (10_illumos): New script.
16522 * configure.ac: Set COND_HOST_ILLUMOS.
16523 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16524 Support Illumos calls.
16525 (find_partition_start) [__sun__]: Likewise.
16526 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16527 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16528 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16529 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16531 * util/grub-probe.c (probe) [__sun__]: Do character check.
16532 * util/grub.d/10_illumos.in: New file.
16534 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16536 Support escaped commas in hostdisk.
16538 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16539 (find_grub_drive): Use unescape_cmp.
16540 (make_device_name): Escape commas.
16542 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16544 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16546 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16548 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16551 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16553 Support trampoline jumps on powerpc.
16555 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16557 (grub_dl_load_segments): Set mod->sz.
16558 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16560 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16562 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16564 (trampoline): New struct.
16565 (trampoline_template): New const.
16566 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16567 * include/grub/dl.h (grub_dl): Add sz element.
16568 [__powerpc__]: Follow __ia64__.
16569 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16570 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16571 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16572 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16574 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16576 ZFS crypto support.
16578 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16579 * grub-core/Makefile.core.def (zfscrypt): New module.
16580 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16581 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16582 it. All users updated.
16583 (grub_zfs_decrypt): New var.
16584 (grub_zfs_load_key): Likewise.
16585 (zio_checksum_functions): Add SHA256+MAC.
16586 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16587 (zio_read): Handle encrypted blocks.
16588 (zap_verify): Remove incorrect check.
16589 (fzap_iterate): Handle non-standard fzap.
16590 (zap_iterate): Likewise.
16591 (zap_iterate_u64): New function.
16592 (dnode_get_fullpath): Load keys.
16593 * grub-core/fs/zfs/zfscrypt.c: New file.
16594 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16595 (grub_crypto_ecb_encrypt): Make input const.
16596 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16597 (grub_crypto_ecb_encrypt): Make input const.
16598 (GRUB_CIPHER_AES): New macro.
16599 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16600 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16601 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16602 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16603 prefix. All users updated.
16604 (grub_zfs_add_key): New proto.
16605 (grub_zfs_decrypt): Likewise.
16606 (grub_zfs_load_key): Likewise.
16607 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16608 * util/grub-fstest.c (options): Add -K option.
16609 (argp_parser): Likewise.
16611 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16613 Support zle compression on ZFS.
16615 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16616 (decomp_table): Add zle.
16617 * include/grub/zfs/zio.h (zio_compress): Add zle.
16619 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16621 Support BtrFS embedding.
16623 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16624 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16625 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16626 * util/grub-setup.c (setup): Use fs embedding if available.
16627 Add additional sanity check.
16629 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16631 * util/grub-install.in: Fix condition for config_opt.
16633 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16635 Support third redundancy strip on raidz3.
16637 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16638 Return error on singularity. All users updated.
16639 (read_device): Don't stop on 3rd failure on raidz3.
16641 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16643 Support case-insensitive ZFS subvolumes.
16645 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16647 (zap_hash): Likewise.
16648 (name_cmp): New function.
16649 (zap_leaf_array_equal): New parameter case_insensitive.
16651 (zap_leaf_lookup): Likewise.
16652 (fzap_lookup): Likewise.
16653 (zap_lookup): Likewise.
16654 (dnode_get_path): New parameter case_insensitive. Retrieve case
16655 sensitiviness of a volume. All users updated.
16656 (dnode_get_fullpath): New parameter case_insensitive.
16658 (grub_zfs_dir): Set info.case_insensitiveness.
16660 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16662 Support second redundancy strip on raidz(2,3).
16664 * grub-core/fs/zfs/zfs.c (powx): New array.
16665 (powx_inv): Likewise.
16667 (xor_out): New function.
16668 (gf_mul): Likewise.
16669 (recovery): Likewise.
16670 (read_device): Use second redundancy strip.
16672 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16674 Use a power of generator representation of GF(256) multiplication group
16675 to save space time and complexity.
16677 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16678 (raid6_table2): Likewise.
16680 (powx_inv): Likewise.
16682 (grub_raid_block_mul): Replace with ...
16683 (grub_raid_block_mulx): ...this.
16684 (grub_raid6_init_table): Rewritten.
16685 (grub_raid6_recover): Use power of generator representation.
16687 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16689 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16690 for the right device.
16692 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16694 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16695 expected by grub-mkimage and it's more clear since there is no implicit
16698 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16700 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16702 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16704 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16706 * util/grub-mkrescue.in: Fix handling xorriso option.
16708 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16710 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16713 2011-11-03 crocket <crockabiscuit@gmail.com>
16715 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16717 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16719 XZ CRC64 and SHA256 support.
16721 * Makefile.util.def (libgrubmods): Add crc64.c.
16722 * grub-core/Makefile.core.def (crc64): New module.
16723 * grub-core/lib/crc64.c: New file.
16724 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16725 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16727 (MAX_HASH_SIZE): New define.
16728 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16729 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16730 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16731 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16732 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16733 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16734 Handle non-crc32 hashes.
16735 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16736 (dec_stream_header): Handle non-crc32 hashes.
16737 (dec_stream_footer): Likewise.
16738 (dec_block_header): Likewise.
16739 (dec_main): Likewise.
16740 (xz_dec_init): Likewise.
16741 (xz_dec_reset): Likewise.
16742 (xz_dec_end): Likewise.
16743 * util/import_gcry.py: Add CRC64 line.
16745 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16747 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16750 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16752 Make reiserfs label retrieval similar to other *_label functions.
16754 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16755 (REISERFS_MAX_LABEL_LENGTH): Removed.
16756 (REISERFS_LABEL_OFFSET): Likewise.
16757 (grub_reiserfs_label): Rewritten.
16759 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16761 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16764 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16766 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16768 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16770 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16771 drive failure on both raidz and raidz2.
16773 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16775 Fix RAIDZ(2) for >= 5 devices.
16777 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16778 asize argument. All users updated.
16780 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16784 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16785 (fill_vdev_info_real): Set ashift.
16786 (read_device): Rewrite RAIDZ part based on reverse engineering.
16788 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16790 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16791 don't report potentially unavialiable fields in debug output.
16792 (find_path): Fix double-free and memory leak.
16794 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16796 Read label on UFS1.
16798 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16799 (grub_ufs_fs): Always set .label.
16801 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16805 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16806 (grub_ufs_data): New field log2_blksz.
16807 (grub_ufs_read_file): Use shifts.
16808 (grub_ufs_mount): Check block size and logarithm it.
16810 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16812 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16815 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16817 Handle symlinks and long names on tar and cpio.
16819 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16820 (ATTR_FILE): Likewise.
16821 (ATTR_DIR): Likewise.
16822 (ATTR_LNK): Likewise.
16823 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16824 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16826 (grub_cpio_mount): Zero-fill data.
16827 (handle_symlink): New function.
16828 (grub_cpio_dir): Handle symlinks.
16829 (grub_cpio_open): Likewise.
16830 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16832 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16834 Fix iso9660 filename limitations and fix memory leaks.
16836 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16837 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16839 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16841 Fix JFS file name length limitations.
16843 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16844 (grub_jfs_diropen): Fix maximum filename length.
16845 (grub_jfs_getent): Fix filename length.
16846 (grub_jfs_lookup_symlink): Fix size checks.
16848 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16850 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16853 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16855 Leverage BFS implementation to read AFS.
16857 * Makefile.util.def (libgrubmods): Add afs.c.
16858 * grub-core/Makefile.core.def (afs): New module
16859 * grub-core/fs/afs.c: New file.
16860 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16862 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16864 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16866 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16868 * grub-core/fs/bfs.c: Run indent.
16870 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16872 BFS implementation based on the specification.
16874 * grub-core/fs/bfs.c: New file.
16875 * Makefile.util.def (libgrubmods): Add bfs.c.
16876 * grub-core/Makefile.core.def (bfs): New module.
16878 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16880 * util/grub-fstest.c (cmd_cp): Clarify error message.
16881 (cmd_cmp): Likewise.
16883 2011-10-30 Yves Blusseau <blusseau@zetam.org>
16885 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16888 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16890 Remove afs and befs because of copyright problem.
16892 * grub-core/fs/afs.c: Removed.
16893 * grub-core/fs/afs_be.c: Removed.
16894 * grub-core/fs/befs.c: Removed.
16895 * grub-core/fs/befs_be.c: Removed.
16896 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16897 * grub-core/Makefile.core.def (afs): Removed.
16898 (afs_be): Likewise.
16900 (befs_be): Likewise.
16902 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16904 Prefer rockridge over Joliet.
16906 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16908 (set_rockridge): ... here.
16909 (grub_iso9660_mount): Check rockridge on the primary label when
16910 discovering. Ignore Joliet if Rockridge is present.
16912 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16914 Use shifts in nilfs2.
16916 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16917 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16918 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16919 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16920 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16921 (grub_nilfs2_entries_per_block): Replaced with ...
16922 (grub_nilfs2_log_entries_per_block_log): ... this.
16923 (grub_nilfs2_blocks_per_group): Replaced with ...
16924 (grub_nilfs2_blocks_per_group_log): ... this.
16925 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
16926 (grub_nilfs2_blocks_per_desc_block_log): ... this.
16927 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
16928 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
16929 (grub_nilfs2_palloc_entry_offset): Replaced ...
16930 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
16931 (grub_nilfs2_dat_translate): Use shifts.
16932 (grub_nilfs2_read_inode): Likewise.
16933 (GRUB_MOD_INIT): Ensure that logs are correct.
16935 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16937 Use shifts in minix filesystem.
16939 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
16940 (GRUB_MINIX_ZONE2SECT): Likewise.
16941 (grub_minix_data): Replace block_size with log_block_size.
16942 (grub_minix_read_file): Use shifts.
16943 (grub_minix_mount): Check block size and take a logarithm.
16945 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16947 Use shifts in squash4.
16949 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
16950 (squash_mount): Check block size and take logarithm.
16951 (direct_read): Use shifts.
16953 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16955 Correct befs block counting logic.
16957 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
16958 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
16959 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
16960 (grub_afs_read_inode): Use block_shift.
16961 (RANGE_SHIFT): New definition.
16962 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
16963 unexpected conditions, use shifts and appropriate types.
16964 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
16966 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16968 * grub-core/disk/raid.c (scan_devices): Check partition.
16969 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16971 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16973 Support BFS (befs) UUID.
16975 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
16976 (grub_afs_small_data_element_header): New struct.
16977 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
16978 (grub_afs_read_attribute) [MODE_BFS]: New function.
16979 (grub_afs_iterate_dir): Allocate for complete inode.
16980 (grub_afs_mount): Likewise.
16981 (grub_afs_uuid) [MODE_BFS]: New function.
16982 (grub_afs_fs) [MODE_BFS]: Add .uuid.
16984 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16986 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
16987 (zfs_unmount): Fix memory leak.
16989 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16991 Support NTFS reparse points.
16993 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
16994 (symlink_descriptor): New struct.
16995 (grub_ntfs_read_symlink): New function.
16996 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
16997 (grub_ntfs_open): Likewise.
16999 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17001 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17003 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17005 fstest xnu_uuid subcommand.
17007 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17008 grub-core/commands/xnu_uuid.c.
17009 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17010 (fstest): Handle xnu_uuid.
17011 (options): Document xnu_uuid.
17012 (argp_parser): Parse xnu_uuid.
17014 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17016 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17017 -l argument. Add newline at the end if printing.
17018 (GRUB_MOD_INIT): Document -l.
17020 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17022 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17024 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17026 ZFS multi-device and version 33 support.
17028 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17029 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17030 (grub_zfs_data): Add multidev-ice-related fields.
17031 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17032 (dva_get_offset): Make dva const.
17033 (zfs_fetch_nvlist): New function.
17034 (fill_vdev_info_real): Likewise.
17035 (fill_vdev_info): Likewise.
17036 (check_pool_label): Likewise.
17037 (scan_disk): Likewise.
17038 (scan_devices): Likewise.
17039 (read_device): Likewise.
17040 (read_dva): Likewise.
17041 (zio_read_gang): Use read_dva.
17042 (zio_read_data): Likewise.
17043 (zap_leaf_lookup): Add missing endian conversion.
17044 (zap_verify): Add missing endian conversion. All users updated.
17045 (fzap_lookup): Likewise.
17046 (fzap_iterate): Likewise.
17047 (dnode_get_path): Handle SA bonus.
17048 (nvlist_find_value): Make input const. All users updated.
17049 (unmount_device): New function.
17050 (zfs_unmount): Use unmount_device.
17051 (zfs_mount): Use scan_disk.
17052 (zfs_mtime): New function.
17053 (grub_zfs_open): Handle system attributes.
17054 (fill_fs_info): Likewise.
17055 (grub_zfs_dir): Likewise.
17056 (grub_zfs_fs): Add mtime.
17057 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17058 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17059 (SA_MTIME_OFFSET): Likewise.
17060 (SA_SYMLINK_OFFSET): Likewise.
17061 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17062 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17063 (fstest): Support zfsinfo.
17064 (argp_parser): Likewise.
17066 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17068 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17071 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17075 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17076 sharing the same block. Iterate over correct number of indices.
17077 (dnode_get_path): Handle symlinks correctly.
17079 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17081 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17083 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17085 Read label on HFS+.
17087 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17088 (grub_hfsplus_btree_search): Fix types.
17089 (grub_hfsplus_label): Implement.
17091 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17093 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17095 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17097 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17099 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17101 Fix symlink handling on iso9660.
17103 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17105 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17106 (grub_iso9660_read_symlink): Moved most of code ...
17107 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17109 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17111 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17112 Use union to avoid breaking strict-aliasing rules.
17114 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17116 Support multi-extent iso files.
17118 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17120 (grub_fshelp_node): Revamp. All users updated.
17121 (FLAG_*): New enum.
17122 (read_node): New function.
17123 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17125 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17126 (get_node_size): New function.
17127 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17129 Fix memory leak on . and ..
17130 (grub_iso9660_read): Use read_node.
17131 (grub_iso9660_close): Free node.
17133 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17135 Fix tar 4G limit and handle paths containing dot.
17137 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17138 (canonicalize): New function.
17139 (grub_cpio_find_file): Use canonicalize. Store offs in
17141 (grub_cpio_dir): Use grub_disk_addr_t.
17142 (grub_cpio_open): Likewise.
17144 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17146 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17148 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17150 (grub_squash_inode): Add long_file and block_size.
17151 (grub_squash_cache_inode): New struct.
17152 (grub_squash_dirent): Make types into enum.
17153 (SQUASH_TYPE_LONG_REGULAR): New type.
17154 (grub_squash_frag_desc): Add field size.
17155 (SQUASH_BLOCK_FLAGS): New enum.
17156 (grub_squash_data): Use grub_squash_cache_inode.
17157 (grub_fshelp_node): Make ino_chunk 64-bit.
17158 (read_chunk): Minor argument change. All users updated.
17159 (squash_mount): Use correct le_to_cpu.
17160 (grub_squash_open): Handle LONG_REGULAR.
17161 (direct_read): New function.
17162 (grub_squash_read_data): Handle blocks correctly.
17164 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17166 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17168 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17170 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17172 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17174 Fix 2G limit on ZFS.
17176 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17178 (uberblock_verify): Likewise.
17179 (dmu_read): Likewise.
17180 (grub_zfs_read): Likewise. Remove invalid cast.
17182 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17184 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17185 (grub_jfs_blkno): Fix incorrect shift.
17186 (grub_jfs_read_file): Use more appropriate types.
17188 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17190 Support triple indirect on minix2 and minix3.
17192 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17193 Declare triple_indir_zone.
17194 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17197 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17201 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17202 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17203 Rename ctime to mtime. All users updated.
17204 (grub_minix_get_file_block): Fix types and double indirect computations.
17206 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17208 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17209 if no label is found.
17210 (grub_fat_iterate_dir): Fix file size type.
17211 (grub_fat_iterate_dir): Likewise.
17213 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17215 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17217 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17218 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17220 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17222 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17224 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17226 * util/import_gcry.py: Accept space between # and include.
17228 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17230 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17232 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17234 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17236 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17237 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17239 * grub-core/script/yylex.l: Add fine-grained #pragma.
17241 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17243 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17244 New inline function.
17245 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17247 (memset) [GRUB_UTIL]: Likewise.
17248 (memcmp) [GRUB_UTIL]: Likewise.
17250 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17252 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17253 inline function rather than a define.
17255 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17257 * util/grub-setup.c: Add missing include.
17259 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17261 * util/ieee1275/grub-ofpathname.c: Add missing include.
17263 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17265 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17266 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17269 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17271 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17274 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17276 * util/grub-install.in: Add datarootdir as per automake manual
17278 * util/grub-mknetdir.in: Likewise.
17280 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17282 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17284 * util/grub.d/10_kfreebsd.in: Likewise.
17285 * util/grub.d/10_linux.in: Likewise.
17286 * util/grub.d/10_netbsd.in: Likewise.
17287 * util/grub.d/10_windows.in: Likewise.
17288 * util/grub.d/20_linux_xen.in: Likewise.
17290 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17292 Remove redundant grub_kernel_image_size.
17294 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17296 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17297 the small code. It moves it only by few bytes but simplifies the code.
17298 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17300 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17301 (grub_kernel_image_size): Removed.
17302 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17303 (grub_kernel_image_size): Removed.
17304 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17305 compiled with Apple toolchain.
17306 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17307 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17308 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17309 (grub_total_module_size): Likewise.
17310 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17312 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17313 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17314 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17315 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17316 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17317 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17318 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17319 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17321 (grub_total_module_size): Removed.
17322 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17323 (image_targets): Likewise.
17324 Set .compressed_size to no field on sparc.
17325 (generate_image): Remove kernel_image_size handling.
17327 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17329 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17330 NULL pointer dereference.
17332 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17334 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17335 done with a dedicated section.
17337 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17338 Ensure the correct position of boot_path.
17339 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17340 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17342 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17343 * include/grub/boot.h: Removed. All references removed.
17344 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17346 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17348 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17350 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17353 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17355 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17357 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17359 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17360 Don't add the bogus brackets.
17362 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17366 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17367 * grub-core/Makefile.core.def (exfat): New module.
17368 * grub-core/fs/exfat.c: New file.
17369 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17370 (GRUB_FAT_ATTR_*): Make into an enum.
17371 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17372 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17373 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17374 (GRUB_FAT_MAXFILE): Removed.
17375 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17376 (grub_current_fat_bpb_t): New type.
17377 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17378 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17379 (grub_fat_dir_node_t): New type.
17380 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17381 (fat_log2) [MODE_EXFAT]: Removed.
17382 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17383 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17384 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17385 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17386 (grub_fat_label) [MODE_EXFAT]: New function.
17387 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17388 reserved_first_sector to 0.
17390 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17392 Move grub_reboot out of the kernel.
17394 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17395 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17396 * grub-core/lib/efi/reboot.c: ... here.
17397 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17398 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17399 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17400 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17401 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17402 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17403 * grub-core/lib/ieee1275/reboot.c: ... here.
17404 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17405 * grub-core/lib/mips/arc/reboot.c: ... here.
17406 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17407 * grub-core/lib/mips/loongson/reboot.c: ...here.
17408 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17409 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17410 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17411 * include/grub/i386/reboot.h: New file.
17412 * include/grub/mips/loongson/ec.h: Fix includes.
17413 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17414 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17415 * grub-core/lib/i386/reboot.c: New file.
17417 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17419 Make grub_prefix into module to fix the arbitrary limit and save
17422 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17423 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17424 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17425 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17426 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17427 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17428 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17429 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17430 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17431 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17432 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17433 * include/grub/ia64/efi/kernel.h: Removed.
17434 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17435 (grub_prefix): Removed.
17436 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17437 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17438 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17439 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17440 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17441 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17442 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17443 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17444 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17445 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17446 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17447 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17448 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17449 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17450 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17451 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17452 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17453 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17454 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17455 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17456 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17457 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17458 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17459 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17460 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17461 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17462 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17463 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17464 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17466 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17468 (image_targets): Likewise.
17469 (generate_image): Put prefix as a module.
17471 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17473 Replace grub_module_iterate with FOR_MODULES.
17475 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17476 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17477 (grub_efi_modules_addr): ...this.
17478 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17479 (grub_efi_init): Set grub_modbase.
17480 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17481 (grub_modbase): New variable.
17482 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17483 (grub_modbase): New variable.
17484 (grub_machine_init): Set grub_modbase.
17485 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17486 (grub_modbase): New variable.
17487 (grub_machine_init): Set grub_modbase.
17488 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17489 (grub_modbase): New variable.
17490 (grub_machine_init): Set grub_modbase.
17491 * grub-core/kern/main.c (grub_module_iterate): Remove.
17492 (grub_modules_get_end): Use grub_modbase.
17493 (grub_load_modules): Use FOR_MODULES.
17494 (grub_load_config): Likewise.
17495 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17496 (grub_modbase): New variable.
17497 (grub_machine_init): Set grub_modbase.
17498 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17499 (grub_modbase): New variable.
17500 (grub_machine_init): Set grub_modbase.
17501 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17503 (grub_modbase): New variable.
17504 (grub_machine_init): Set grub_modbase.
17505 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17506 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17507 (grub_module_iterate): Likewise.
17508 (grub_modbase): New variable declaration.
17509 (FOR_MODULES): New macro.
17511 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17513 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17514 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17516 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17518 Fix few obvious type discrepancies.
17520 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17521 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17522 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17524 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17525 and connected types.
17526 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17528 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17529 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17530 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17531 and connected types.
17533 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17535 Fix python 3.x incompatibilities.
17537 * gentpl.py: Put brackets around print strings.
17538 * util/import_gcry.py: Open explicitly as utf-8.
17539 Use in instead of has_key.
17541 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17543 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17544 (GRUB_XFS_INO_AGBITS): Make into inline function.
17545 (GRUB_XFS_INO_INOINAG): Likewise.
17546 (GRUB_XFS_INO_AG): Likewise.
17547 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17548 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17549 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17550 (GRUB_XFS_EXTENT_SIZE): Likewise.
17551 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17552 (GRUB_XFS_NEXT_DIRENT): Likewise.
17553 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17554 (grub_xfs_read_file): Fix offset type.
17556 2011-10-15 Robert Millan <rmh@gnu.org>
17558 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17560 2011-10-15 Robert Millan <rmh@gnu.org>
17562 Fix build problem on FreeBSD and GNU/kFreeBSD.
17564 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17566 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17568 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17570 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17572 (grub_hfsplus_btree_recoffset): Likewise.
17573 (grub_hfsplus_btree_recptr): Likewise.
17574 (grub_hfsplus_find_block): Likewise.
17575 (grub_hfsplus_btree_search): Likewise.
17576 (grub_hfsplus_read_block): Likewise.
17577 (grub_hfsplus_read_file): Likewise.
17578 (grub_hfsplus_mount): Likewise.
17579 (grub_hfsplus_btree_iterate_node): Likewise.
17580 (grub_hfsplus_btree_search): Likewise.
17581 (grub_hfsplus_iterate_dir): Likewise.
17582 (grub_hfsplus_read): A small code simplification.
17584 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17586 * grub-core/kern/emu/hostdisk.c
17587 (convert_system_partition_to_system_disk): Don't assume that children
17588 of mapper nodes are mapper nodes.
17590 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17592 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17593 * include/grub/misc.h (grub_isxdigit): New function.
17594 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17595 switched to grub_isxdigit.
17596 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17597 number starting with a letter.
17599 2011-10-09 Robert Millan <rmh@gnu.org>
17601 LVM support for FreeBSD and GNU/kFreeBSD.
17603 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17605 (LVM_DEV_MAPPER_STRING): Move from here ...
17606 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17607 * util/getroot.c: Include `<grub/util/lvm.h>'.
17608 (grub_util_get_dev_abstraction): Enable
17609 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17610 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17611 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17612 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17614 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17616 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17617 when LVM abstraction is required for ${GRUB_DEVICE}.
17619 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17621 Add support for LZO compression in GRUB:
17622 - import of minilzo library,
17623 - LZO decompression for btrfs,
17624 - lzop files decompression.
17626 * grub-core/io/lzopio.c: New file.
17627 * grub-core/lib/adler32.c: Likewise.
17628 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17629 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17630 * grub-core/lib/minilzo/minilzo.c: Likewise.
17631 * grub-core/lib/minilzo/minilzo.h: Likewise.
17632 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17633 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17634 grub-core/lib/minilzo/minilzo.c to common.
17635 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17636 cflags in cppflags.
17637 * grub-core/Makefile.core.def (btrfs): Likewise.
17638 * grub-core/Makefile.core.def (lzopio): New module.
17639 (adler32): Likewise.
17640 * grub-core/fs/btrfs.c: Include minilzo.h.
17641 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17642 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17643 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17644 (grub_btrfs_lzo_decompress): New function.
17645 (grub_btrfs_extent_read): Add support for LZO compression type.
17646 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17647 (GRUB_USHRT_MAX): Likewise.
17648 (GRUB_UINT_MAX): Likewise.
17649 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17650 (UINT_MAX): Likewise.
17651 (CHAR_BIT): Likewise.
17652 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17653 grub-core/lib/posix_wrap/limits.h
17654 (UCHAR_MAX): Likewise.
17655 * include/grub/file.h (grub_file_filter_id): New compression filter
17656 GRUB_FILE_FILTER_LZOPIO.
17657 * include/grub/file.h (grub_file_filter_id): Set
17658 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17659 * include/grub/types.h (grub_get_unaligned16): New function.
17660 (grub_get_unaligned32): Likewise.
17661 (grub_get_unaligned64): Likewise.
17662 * util/import_gcry.py (cryptolist): Add adler32.
17664 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17666 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17667 in perspective decreases the complexity of build system and fixes
17668 compilation right now.
17670 2011-10-01 Ales Nesrsta <starous@volny.cz>
17672 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17673 (fixed problem related to using UHCI with coreboot).
17675 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17677 * gentpl.py: Use Autogen macros so that the output template file
17678 (Makefile.tpl) size is reduced.
17680 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17682 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17685 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17687 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17688 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17690 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17692 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17695 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17697 Remove extra declaration of sleep for mingw32.
17699 * util/misc.c (sleep) [__MINGW32__]: Removed.
17700 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17702 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17704 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17706 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17708 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17709 (grub_netbsd_btinfo_bootwedge): New struct.
17710 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17712 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17714 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17716 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17719 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17721 Fix incorrect identifiers in bash-completion.
17723 * util/bash-completion.d/grub-completion.bash.in
17724 (_grub_mkpasswd-pbkdf2): Rename to ...
17725 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17726 (_grub_script-check): Rename to ...
17727 (_grub_script_check): ... this. All users updated.
17729 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17731 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17732 Return 0 if disk isn't biosdisk.
17734 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17736 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17738 * Makefile.util.def (grub-fstest): Likewise.
17740 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17742 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17743 Get sector size from disk label.
17745 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17747 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17748 */README* as well as README*.
17749 Reported by: Axel Beckert.
17751 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17753 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17754 case of less than 256 MiB of RAM.
17756 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17758 * grub-core/commands/wildcard.c (make_regex): Handle @.
17760 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17762 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17764 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17766 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17767 AC_LANG_CONFTEST macros.
17769 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17771 Add grub-fstest option to uncompress data for commands.
17773 * util/grub-fstest.c (uncompress): New var.
17774 (options): New option -u.
17776 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17778 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17779 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17781 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17783 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17784 file type was not recognized correctly (not gzip or corrupted).
17786 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17788 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17789 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17791 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17793 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17795 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17796 video_radeon_fuloong2e.
17797 * grub-core/video/radeon_fuloong2e.c: New file.
17798 * include/grub/video.h (grub_video_id_t): Add new ID
17799 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17801 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17803 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17805 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17806 that PRID matches the detected subplatform and reset the subplatform
17809 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17811 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17813 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17815 Fix PCI iterating on functions >= 4.
17817 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17818 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17820 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17821 (grub_pci_read): Fix bitmask.
17822 (grub_pci_read_word): Likewise.
17823 (grub_pci_read_byte): Likewise.
17824 (grub_pci_write): Likewise.
17825 (grub_pci_write_word): Likewise.
17826 (grub_pci_write_byte): Likewise.
17828 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17830 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17831 can still be specified in TARGET_CFLAGS)
17833 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17835 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17837 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17838 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17839 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17840 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17841 (FULOONG): Rename to ...
17842 (FULOONG2F): ... this. All users updated.
17843 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17844 (machtype_fuloong2f_str): ... this.
17845 (machtype_fuloong2e_str): New string.
17846 Check for machtype_fuloong2e_str.
17847 * grub-core/loader/mips/linux.c (loongson_machtypes)
17848 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17849 * grub-core/term/serial.c (loongson_defserial)
17850 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17851 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17852 loongson_defserial.
17853 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17855 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17856 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17857 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17858 to IMAGE_FULOONG2F_FLASH. All users updated.
17859 (image_targets): Rename images.
17860 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17862 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17864 Make enable of disk cache statistics code configurable.
17866 * configure.ac: --enable-cache-stats added.
17867 * config.h.in (DISK_CACHE_STATS): New define.
17868 * grub-core/Makefile.core.def (cacheinfo): New command.
17869 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17870 * grub-core/commands/cacheinfo.c: New file.
17871 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17872 moved to cacheinfo.c.
17873 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17875 * include/grub/disk.h: Likewise.
17877 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17879 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17880 * grub-core/Makefile.am: Likewise.
17882 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17884 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17887 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17889 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17891 (grub_jfs_lookup_symlink): Use correct starting inode.
17893 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17895 * util/grub-setup.c (main): Add missing gcry initialisation.
17897 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17899 Don't accept text modes on EFI when booting Linux.
17901 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17902 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17904 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
17905 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17907 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17908 use of "/path/.." as in grub-install for EFI as well as handling
17909 symlinks correctly.
17910 Fixes Debian bug #637768.
17912 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17914 * util/grub-probe.c: Remove duplicate #include.
17916 2011-08-10 Robert Millan <rmh@gnu.org>
17918 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17920 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17922 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17923 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17925 2011-08-03 Robert Millan <rmh@gnu.org>
17927 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
17928 la_array as packed.
17929 Reported by: Zachary Bedell
17931 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17933 * configure.ac: The Loongson port requires grub-mkfont due to its
17934 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
17937 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17939 * util/grub-install.in: Don't source grub-mkconfig_lib until after
17940 processing arguments (otherwise help2man fails when GRUB has not yet
17943 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17945 New script grub-mkstandalone.
17947 * Makefile.util.def (grub-mkstandalone): New script.
17948 * docs/man/grub-mkstandalone.h2m: New file.
17949 * util/grub-mkstandalone.in: Likewise.
17951 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17953 Support ATA disks with 4K sectors.
17955 * include/grub/ata.h (grub_ata): New member log_sector_size.
17956 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
17957 (grub_ata_identify): Read sector size.
17958 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
17960 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17962 * util/grub-install.in: Don't use uhci outside of x86.
17964 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17966 * util/grub-mkrescue.in: Add missing quotes.
17968 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17970 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
17973 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17975 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
17977 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17979 * include/grub/video.h: add missing EXPORT_FUND on
17980 grub_video_edid_checksum and grub_video_edid_preferred_mode.
17982 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17984 * include/grub/mips/kernel.h: Fix define conflict.
17986 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17988 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
17991 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
17993 Preferred resolution detection for VBE.
17995 * grub-core/video/video.c (grub_video_edid_checksum): New function.
17996 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
17997 the Flat Panel extension, in line with the X.org VESA driver.
17998 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18000 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18001 (grub_vbe_bios_read_edid): Likewise.
18002 (grub_vbe_get_preferred_mode): Likewise.
18003 (grub_video_vbe_setup): When the mode is "auto", try to get the
18004 preferred mode from VBE, and use the largest mode that is no larger
18005 than the preferred mode (some BIOSes expose a preferred mode that is
18006 not in their mode list!). If this fails, fall back to 640x480 as a
18007 safe conservative choice.
18008 (grub_video_vbe_get_edid): New function.
18009 (grub_video_vbe_adapter): Add get_edid.
18010 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18011 (struct grub_video_adapter): Add get_edid.
18012 (grub_video_edid_checksum): Add prototype.
18013 (grub_video_edid_preferred_mode): Likewise.
18014 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18017 * grub-core/commands/videoinfo.c (print_edid): New function.
18018 (grub_cmd_videoinfo): Print EDID if available.
18020 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18021 is more appropriate on a wider range of platforms than 640x480.
18022 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18025 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18027 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18029 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18031 * po/POTFILES.in: Regenerate.
18033 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18035 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18036 incorrect memory usage.
18038 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18040 * util/grub-install.in: Source grub-mkconfig_lib.
18042 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18044 Remove getroot.c from core on emu platform.
18046 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18048 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18050 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18051 * util/getroot.c (get_win32_path): ... here.
18052 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18053 * util/getroot.c (fini_libzfs): ... here.
18054 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18055 * util/getroot.c (grub_get_libzfs_handle): ... here.
18056 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18058 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18059 * grub-core/kern/emu/misc.c
18060 (grub_make_system_path_relative_to_its_root): Moved from here...
18061 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18062 * grub-core/kern/emu/getroot.c: Moved from here ...
18063 * util/getroot.c: ... here. All users updated.
18064 * grub-core/kern/emu/raid.c: Moved from here ...
18065 * util/raid.c: ... here. All users updated.
18067 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18069 * po/POTFILES.in: Regenerate.
18071 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18073 Fix compilation on GNU/Linux.
18075 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18077 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18078 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18079 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18081 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18082 2011-07-07 Michael Gorven <michael@gorven.za.net>
18083 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18085 LUKS and GELI support.
18087 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18088 grub-core/disk/luks.c, grub-core/disk/geli.c,
18089 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18090 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18091 grub-core/lib/arg.c.
18092 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18093 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18094 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18095 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18096 (grub-bin2h): Add libgcry.a.
18097 (grub-mkimage): Likewise.
18098 (grub-mkrelpath): Likewise.
18099 (grub-script-check): Likewise.
18100 (grub-editenv): Likewise.
18101 (grub-mkpasswd-pbkdf2): Likewise.
18102 (grub-pe2elf): Likewise.
18103 (grub-fstest): Likewise.
18104 (grub-mkfont): Likewise.
18105 (grub-mkdevicemap): Likewise.
18106 (grub-probe): Likewise.
18107 (grub-ofpath): Likewise.
18108 (grub-mklayout): Likewise.
18109 (example_unit_test): Likewise.
18110 (grub-menulst2cfg): Likewise.
18111 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18112 * grub-core/Makefile.core.def (cryptodisk): New module.
18115 * grub-core/disk/AFSplitter.c: New file.
18116 * grub-core/disk/cryptodisk.c: Likewise.
18117 * grub-core/disk/geli.c: Likewise.
18118 * grub-core/disk/luks.c: Likewise.
18119 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18121 (grub_util_get_dm_abstraction): New function.
18122 (grub_util_follow_gpart_up): Likewise.
18123 (grub_util_get_geom_abstraction): Likewise.
18124 (grub_util_get_dev_abstraction): Use new functions.
18125 (grub_util_pull_device): Pull GELI and LUKS.
18126 (grub_util_get_grub_dev): Handle LUKS and GELI.
18127 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18128 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18129 (follow_geom_up): Removed.
18130 (grub_util_fd_seek): New function.
18131 (open_device): Use grub_util_fd_seek.
18132 (nread): Rename to ..
18133 (grub_util_fd_read): ... this. All users updated.
18134 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18135 (grub_crypto_cbc_decrypt): Likewise.
18136 (grub_crypto_hmac_write): Likewise.
18137 (grub_crypto_hmac_buffer): Likewise.
18138 (grub_password_get): Extend to util.
18139 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18140 New member modname.
18141 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18142 * include/grub/cryptodisk.h: New file.
18143 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18144 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18146 (grub_util_follow_gpart_up): New proto.
18147 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18148 (grub_util_fd_read): Likewise.
18149 (grub_cryptodisk_cheat_mount): Likewise.
18150 (grub_util_cryptodisk_print_uuid): Likewise.
18151 (grub_util_get_fd_sectors): Likewise.
18152 * util/grub-fstest.c (mount_crypt): New var.
18153 (fstest): Mount crypto if requested.
18154 (options): New option -C.
18155 (argp_parser): Parse -C.
18156 (main): Init and fini gcry.
18157 * util/grub-install.in: Support cryptodisk install.
18158 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18159 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18161 (prepare_grub_to_access_device): Likewise.
18162 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18163 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18164 (probe_cryptodisk_uuid): New function.
18165 (probe_abstraction): Likewise.
18166 (probe): Use new functions.
18167 * util/import_gcry.py: Create Makefile.utilgcry.def.
18168 Add modname member.
18170 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18172 Lazy device scanning.
18174 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18175 (grub-setup): Remove util/raid.c.
18176 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18177 * grub-core/disk/lvm.c (scan_depth): New variable.
18178 (grub_lvm_iterate): Rescan if necessary.
18179 (find_lv): New function based on grub_lvm_open.
18180 (grub_lvm_open): Use find_lv. Rescan on error.
18181 (is_node_readable): New function.
18182 (is_lv_readable): Likewise.
18183 (grub_lvm_scan_device): Skip already found disks.
18184 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18185 Stop if searched device is found and readable.
18186 * grub-core/disk/raid.c (inscnt): New variable.
18187 (scan_depth): Likewise.
18188 (scan_devices): New function based on grub_raid_register. Abort if
18189 looked for device is found.
18190 (grub_raid_iterate): Rescan if needed.
18191 (find_array): NEw function based on -grub_raid_open.
18192 (grub_raid_open): Use find_array and rescan.
18193 (insert_array): Set became_readable_at.
18194 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18195 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18197 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18198 (grub_util_pull_device): New function.
18199 (grub_util_get_grub_dev): Call grub_util_pull_device.
18200 * util/raid.c: Moved to ..
18201 * grub-core/kern/emu/raid.c: ... here.
18202 (grub_util_raid_getmembers): New parameter "bootable".
18203 All users updated. Support 1.x.
18204 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18206 * include/grub/disk.h (grub_disk_pull_t): New enum.
18207 (grub_disk_dev): Change iterate prototype.
18209 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18211 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18212 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18213 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18214 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18216 * include/grub/util/raid.h: Removed.
18218 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18220 * po/POTFILES.in: Regenerate.
18222 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18224 Unify sparc init with other ieee1275.
18226 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18227 instead of kern/sparc64/ieee1275/init.c.
18228 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18229 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18230 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18231 grub/machine/kernel.h.
18232 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18233 (grub_claim_heap) [__sparc__]: Use sparc version.
18234 (grub_machine_init): Moved args parsing to
18235 (grub_parse_cmdline): ...this.
18236 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18237 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18239 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18241 Move BOOTP to separate file.
18243 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18244 * grub-core/net/net.c: Move all BOOTP functions to
18245 * grub-core/net/bootp.c: ... here.
18247 Use frame interface on PXE.
18249 * grub-core/Makefile.core.def (pxecmd): Removed.
18250 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18251 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18252 * grub-core/i386/pc/pxe.c: Moved from here ...
18253 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18254 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18255 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18257 EFI network support.
18259 * grub-core/Makefile.core.def (efinet): New module.
18260 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18262 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18264 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18265 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18266 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18267 * grub-core/net/drivers/efi/efinet.c: New file.
18268 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18269 (grub_efi_net_config): New extern var.
18271 Various cleanups and bugfixes.
18273 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18275 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18276 disk declared as partition.
18277 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18279 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18280 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18281 (grub_debug_zalloc): Likewise.
18282 (grub_debug_realloc): Likewise.
18283 (grub_debug_memalign): Likewise.
18284 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18285 Check that target is IPv4.
18286 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18287 local-mac-address as fallback.
18288 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18290 * grub-core/net/ip.c (ipchksum): Rename to ...
18291 (grub_net_ip_chksum): ... this. All users updated.
18292 (grub_net_recv_ip_packets): Special handling for DHCP.
18293 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18295 Unify prefix handling
18297 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18298 (grub_machine_get_bootlocation): ... this.
18299 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18300 (grub_machine_get_bootlocation): ... this.
18301 (grub_prefix): New variable.
18303 (root_dev): New variable.
18305 (main): Use new variables.
18306 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18308 (grub_machine_get_bootlocation): ... this.
18309 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18310 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18311 (grub_machine_get_bootlocation): ... this.
18312 (grub_machine_set_prefix): Removed.
18313 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18314 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18316 (grub_machine_get_bootlocation): ... this.
18317 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18318 (grub_set_prefix_and_root): ... this. All users updated.
18319 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18321 (grub_machine_get_bootlocation): ... this.
18322 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18323 (grub_machine_get_bootlocation): New proto.
18324 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18326 Less intrusive and more reliable seek on network implementation.
18328 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18329 (grub_file_seek): Don't call grub_file_net_seek.
18330 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18331 (grub_net_fs_read_real): .. this.
18332 (grub_net_seek_real): Use net->offset.
18333 (grub_net_fs_read): Seek if necessary.
18335 Unify IEEE1275 netwotk config with the other platforms.
18337 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18339 (grub_machine_get_bootlocation): Support network.
18340 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18341 Support type and device parsing.
18342 (grub_ieee1275_get_device_type): New function.
18343 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18345 (grub_ieee1275_net_config_real): ... this.
18346 (grub_ofnet_probecards): Removed.
18347 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18348 * include/grub/ieee1275/ofnet.h: Removed.
18349 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18351 (grub_ieee1275_get_device_type): New function.
18353 Unify network device closing across platforms and make more robust.
18355 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18357 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18359 * grub-core/net/net.c (grub_net_network_level_interface_register):
18361 (grub_net_card_unregister): Close all interfaces.
18362 (receive_packets): Don't poll if no iterfaces are registered.
18364 (grub_net_fini_hw): New function.
18365 (grub_net_restore_hw): Likewise.
18366 (fini_hnd): New variable.
18367 (GRUB_MOD_INIT): Register preboot hook.
18368 (GRUB_MOD_FINI): Run and unregister preboot hook.
18370 Poll network cards when idle.
18372 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18373 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18374 * grub-core/net/net.c (receive_packets): Save last poll time.
18375 (grub_net_poll_cards_idle_real): New function.
18376 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18377 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18378 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18380 Rename ofnet interfaces.
18382 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18383 (grub_ofnet_findcards): Use ofnet_%s names.
18385 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18387 Cleanup socket opening.
18389 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18390 (grub_net_fs_close): Likewise.
18391 (grub_net_fs_read_real): Use eof member.
18392 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18393 (+grub_net_udp_close): New inline function.
18395 * include/grub/net/tftp.h: Moved to the top of ...
18396 * grub-core/net/tftp.c: ... here.
18397 * include/grub/net/ip.h: Moved mostly to the top of ...
18398 * grub-core/net/ip.c: ... here.
18399 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18400 * grub-core/net/ethernet.c: ... here.
18402 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18404 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18407 * include/grub/net/ip.h (ipv4_ini): Removed.
18408 (ipv4_fini): Likewise.
18410 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18411 (grub_net_send_ip_packets): Likewise.
18413 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18415 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18416 grub_read_cmos prototype.
18418 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18420 VGA text support in qemu-mips
18422 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18423 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18424 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18426 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18427 * grub-core/kern/vga_init.c: ... this.
18428 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18429 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18430 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18432 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18433 GRUB_MACHINE_PCI_IO_BASE.
18435 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18437 MIPS qemu flash support.
18439 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18441 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18442 (grub_machine_init): Probe memory if its size isn't known.
18443 * util/grub-mkimage.c (image_targets): Add flash targets.
18444 (generate_image): Handle flash targets.
18446 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18448 MIPS qemu at_keyboard support.
18450 * gentpl.py (videoinkernel): Add qemu-mips.
18451 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18452 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18453 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18455 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18456 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18457 * grub-core/term/serial.c (grub_serial_register)
18458 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18460 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18462 CMOS support on sparc.
18464 * gentpl.py (cmos): Add powerpc and sparc.
18465 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18467 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18468 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18469 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18470 grub_set_datetime_cmos.
18471 * grub-core/lib/ieee1275/cmos.c: New file.
18472 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18473 (find_rtc): Set no_ieee1275_rtc on error.
18474 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18475 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18476 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18477 fail. Move value to argument. All users updated
18478 (grub_cmos_write): Likewise.
18479 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18480 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18481 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18482 grub_get_datetime_cmos and grub_set_datetime_cmos.
18484 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18486 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18487 sourcing grub-mkconfig_lib.
18488 * util/update-grub_lib.in: Likewise.
18489 * util/grub.d/00_header.in: Likewise.
18490 * util/grub.d/10_hurd.in: Likewise.
18491 * util/grub.d/10_kfreebsd.in: Likewise.
18492 * util/grub.d/10_linux.in: Likewise.
18493 * util/grub.d/10_netbsd.in: Likewise.
18494 * util/grub.d/10_windows.in: Likewise.
18495 * util/grub.d/20_linux_xen.in: Likewise.
18496 * util/grub.d/30_os-prober.in: Likewise.
18498 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18500 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18501 default_bg_color rather than black.
18502 (grub_gfxterm_fullscreen): Likewise.
18503 (grub_gfxterm_background_color_cmd): Save new background color in
18506 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18508 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18510 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18512 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18515 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18517 Chainloading on coreboot support.
18519 * grub-core/Makefile.core.def (chain): Add coreboot.
18520 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18522 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18524 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18527 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18529 Implement time command.
18531 * grub-core/Makefile.core.def (time): New module.
18532 * grub-core/commands/time.c: New file.
18533 * grub-core/script/parser.y: Remove "time" keyword.
18534 * grub-core/script/yylex.l: Likewise.
18536 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18538 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18540 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18542 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18543 when handling leftovers.
18545 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18547 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18548 so that help2man doesn't fail.
18550 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18552 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18553 type in pointers on sparc64.
18554 (get_card_packet): Likewise.
18556 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18558 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18560 (grub_cmd_videoinfo): Fetch current video mode.
18562 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18564 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18565 because of underlying system restrictions.
18567 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18569 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18572 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18574 Coreboot video support.
18576 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18578 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18579 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18581 * grub-core/kern/i386/int.S: ... here.
18582 * grub-core/video/i386/pc/vbe.c: Updated includes.
18583 * grub-core/video/i386/pc/vga.c: Likewise.
18584 * include/grub/i386/coreboot/memory.h
18585 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18586 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18587 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18588 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18589 Disable interrupts.
18590 * include/grub/i386/pc/vga.h: Removed. All users updated.
18592 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18594 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18595 definitions for dprintf.
18596 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18598 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18600 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18602 (get_card_packet): Likewise.
18604 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18606 Display the path of the file when file is not found
18608 * grub-core/fs/fat.c: Display the filename when file is not found.
18609 * grub-core/fs/fshelp.c: Likewise.
18610 * grub-core/fs/hfs.c: Likewise.
18611 * grub-core/fs/jfs.c: Likewise.
18612 * grub-core/fs/minix.c: Likewise.
18613 * grub-core/fs/ufs.c: Likewise.
18614 * grub-core/fs/btrfs.c: Likewise.
18615 * grub-core/commands/i386/pc/play.c: Likewise.
18617 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18619 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18620 pointer checks before calling grub_free().
18621 * grub-core/commands/wildcard.c (match_devices): Likewise.
18622 * grub-core/commands/wildcard.c (match_files): Likewise.
18623 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18624 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18625 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18626 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18627 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18628 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18629 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18630 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18631 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18633 2011-06-25 Patrick <p55@mailinator.com>
18635 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18637 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18639 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18640 (grub_pxe_send): Likewise.
18641 (GRUB_MOD_INIT): Fix types.
18643 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18645 * grub-core/io/xzio.c: Fix code style issues
18647 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18648 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18650 Network infrastructure.
18651 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18653 * include/grub/net/arp.h: New file.
18654 * include/grub/net/device.h: Likewise.
18655 * include/grub/net/ethernet.h: Likewise.
18656 * include/grub/net/ip.h: Likewise.
18657 * include/grub/net/netbuff.h: Likewise.
18658 * include/grub/net/tftp.h: Likewise.
18659 * include/grub/net/udp.h: Likewise.
18660 * include/grub/ieee1275/ofnet.h: Likewise.
18661 * include/grub/emu/export.h: Likewise.
18662 * include/grub/net.h: Likewise.
18663 * grub-core/net/arp.c: Likewise.
18664 * grub-core/net/ethernet.c: Likewise.
18665 * grub-core/net/ip.c: Likewise.
18666 * grub-core/net/udp.c: Likewise.
18667 * grub-core/net/tftp.c: Likewise.
18668 * grub-core/net/netbuff.c: Likewise.
18669 * grub-core/net/net.c: Likewise.
18670 * grub-core/net/drivers/emu/emunet.c: Likewise.
18671 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18672 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18674 * grub-core/Makefile.core.def (net): New module.
18677 (emunet): Likewise.
18678 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18680 * grub-core/kern/device.c (grub_net_open) : New variable.
18681 (grub_device_open): Handle network device.
18682 (grub_device_close): Likewise.
18683 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18684 (grub_grubnet_fini): Likewise.
18685 (grub_file_seek): Seek in network device.
18686 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18687 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18689 (grub_machine_fini): Call grub_grubnet_fini.
18690 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18692 (grub_ieee1275_get_aliasdevname): New function.
18693 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18694 Add unofficial Solaris network info.
18695 (grub_multiboot_make_mbi): Likewise.
18696 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18697 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18698 * include/grub/device.h (grub_fs): Removed.
18699 * include/grub/err.h (grub_err_t): Add network-related values.
18700 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18701 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18702 (grub_ieee1275_get_aliasdevname): New proto.
18703 * include/grub/net.h: Rewritten.
18705 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18707 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18710 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18712 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18713 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18714 it truncates the output.
18715 Reported by: Ximin Luo.
18717 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18719 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18721 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18723 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18724 partmap before abstraction.
18726 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18728 * util/grub-mkconfig_lib.in: Add missing quotes.
18730 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18732 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18733 old method if mountinfo would return /dev/root and /dev/root doesn't
18736 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18740 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18741 (decomp_table): Add zlib entries.
18742 (zio_read): USe 8 bits for compression function rather than 3.
18743 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18745 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18747 * grub-core/disk/ahci.c: Add missing license statements.
18748 * grub-core/fs/romfs.c: Likewise.
18749 * grub-core/lib/ia64/setjmp.S: Likewise.
18750 * grub-core/loader/i386/pc/freedos.c: Likewise.
18751 * grub-core/loader/ia64/efi/linux.c: Likewise.
18752 * grub-core/video/colors.c: Likewise.
18753 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18755 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18759 * grub-core/Makefile.core.def (ata_pthru): Removed.
18760 (ahci): New module.
18762 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18764 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18766 (grub_hdparm_do_check_powermode_cmd): Likewise.
18767 (grub_hdparm_do_smart_cmd): Likewise.
18768 (grub_hdparm_set_val_cmd): Likewise.
18769 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18770 * grub-core/disk/ahci.c: New file.
18771 * grub-core/disk/ata.c: Factor out the low-level part into ...
18772 * grub-core/disk/pata.c: ... here.
18773 * grub-core/disk/ata_pthru.c: Contents moved to ...
18774 * grub-core/disk/pata.c: ... here.
18775 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18776 (grub_scsi_iterate): Use grub_scsi_names.
18777 (grub_scsi_open): Likewise.
18778 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18779 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18780 (grub_ata_regs_t): New struct.
18781 (grub_disk_ata_pass_through_parms): Likewise.
18782 (grub_ata_device): Renamed to ...
18783 (grub_ata): ... this.
18784 (grub_ata_dev): New struct.
18785 Removed all low-level inline functions.
18786 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18787 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18788 iterate hooks and open. All users updated.
18789 * util/grub-install.in: Handle AHCI disk module.
18791 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18793 Add support for DRI and RSTn markers in JPEG files.
18795 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18796 (JPEG_MARKER_RST0): Likewise.
18797 (JPEG_MARKER_RST1): Likewise.
18798 (JPEG_MARKER_RST2): Likewise.
18799 (JPEG_MARKER_RST3): Likewise.
18800 (JPEG_MARKER_RST4): Likewise.
18801 (JPEG_MARKER_RST5): Likewise.
18802 (JPEG_MARKER_RST6): Likewise.
18803 (JPEG_MARKER_RST7): Likewise.
18804 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18805 (grub_jpeg_decode_dri): New function.
18806 (grub_jpeg_decode_sos): Move image data related part into
18807 grub_jpeg_decode_data function.
18808 (grub_jpeg_decode_data): New function.
18809 (grub_jpeg_reset): New function.
18810 (grub_jpeg_decode_jpeg): Handle new markers.
18812 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18814 * util/ieee1275/ofpath.c (check_sas): Close fd.
18815 (main): Free of_path.
18816 Reported by: David Volgyes <dvolgyes>.
18818 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18820 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18821 Reported by: David Volgyes <dvolgyes>.
18823 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18825 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18827 Reported by: David Volgyes <dvolgyes>.
18829 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18831 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18833 Reported by: David Volgyes <dvolgyes>.
18835 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18837 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18838 Prevent memory leak.
18840 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18842 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18843 (main): Close file.
18844 Reported by: David Volgyes <dvolgyes>.
18846 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18848 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18849 to continue if allocation is failed.
18851 Reported by: David Volgyes <dvolgyes>.
18853 2011-06-23 David Volgyes <dvolgyes>
18855 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18858 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18860 Fix spurious warning.
18862 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18863 (acorn_partition_map_find): Use .bin member.
18865 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18867 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18868 /dev/root as a valid device.
18870 2011-06-23 Jim Meyering <meyering@redhat.com>
18872 Avoid NULL deref in grub_device_open.
18874 * grub-core/kern/device.c (grub_device_open): Don't dereference
18875 a NULL pointer upon failed grub_env_get.
18877 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18879 Support non-512B sectors and agglomerate reads.
18881 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18882 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18883 (disk_io_guid): Removed.
18884 (make_devices): Locate solely by BlockIO.
18885 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18886 (grub_efidisk_read): Use read_blocks.
18887 (grub_efidisk_write): Use write_blocks.
18888 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18890 (get_safe_sectors): Handle non-512B sectors.
18891 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18893 (grub_biosdisk_write): Handle non-512B sectors.
18894 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18895 (grub_scsi_read): Remove special non-512B block handling (now handled
18897 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18898 and do sanity checks.
18899 (grub_disk_adjust_range): Handle non-512B sectors.
18900 (transform_sector): New function.
18901 (grub_disk_read_small): Likewise.
18902 (grub_disk_read): Rewritten.
18903 (grub_disk_write): Handle non-512B sectors.
18904 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18906 (open_device): Use log_sector_size.
18907 (grub_util_biosdisk_read): Likewise.
18908 (grub_util_biosdisk_write): Likewise.
18909 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18911 (pc_partition_map_embed): Likewise.
18912 * include/grub/disk.h (grub_disk): New field log_sector_size.
18913 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18914 (GRUB_DISK_CACHE_BITS): Increased to 6.
18915 * util/grub-fstest.c (fstest): New command testload.
18916 (argp_parser): Likewise.
18918 2011-06-16 Robert Millan <rmh@gnu.org>
18920 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18921 `ata' driver on kernel of FreeBSD 9.
18923 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18924 (get_ataraid_disk_name): New functions.
18925 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
18926 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
18927 get_ataraid_disk_name() and get_ada_disk_name().
18929 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
18931 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
18934 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
18936 * docs/grub.texi (Obtaining and Building GRUB): Substitute
18937 `ftp.gnu.org' for `alpha.gnu.org'.
18939 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18941 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
18942 partitions under /dev/disk/by-id/.
18944 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18946 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
18947 after ten consecutive open failures. Scanning all the way up to
18948 10000 is excessive and can cause serious performance problems in
18949 some configurations.
18950 Fixes Ubuntu bug #787461.
18952 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18954 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
18957 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
18958 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18960 Don't stat devices unless we have to.
18962 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
18963 dir == /dev/mapper.
18964 (grub_guess_root_device): Use already known os_dev if possible.
18965 * grub-core/kern/emu/hostdisk.c
18966 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
18967 if device is known to be a dm one.
18969 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
18971 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
18972 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
18973 Reported by: Pawel Tecza.
18975 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
18977 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
18978 (lsefisystab): Likewise.
18980 (lsefimmap): Likewise.
18981 (hdparm): Enable on qemu-mips.
18982 (setjmp): Add ia64 nodist.
18983 (serial): Simplify tags.
18985 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18987 * Makefile.util.def (grub-ofpathname): Install manual page.
18989 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18991 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
18993 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18995 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
18997 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18999 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19002 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19004 Use full 64-bit division.
19006 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19007 (grub_divmod64): ... this.
19008 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19011 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19013 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19016 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19018 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19019 to avoid accidents when debugging with 'sh -x'.
19020 * grub-core/gensyminfo.sh.in: Likewise.
19021 * tests/example_scripted_test.in: Likewise.
19022 * tests/grub_cmd_regexp.in: Likewise.
19023 * tests/grub_script_blanklines.in: Likewise.
19024 * tests/grub_script_dollar.in: Likewise.
19025 * tests/grub_script_expansion.in: Likewise.
19026 * tests/grub_script_final_semicolon.in: Likewise.
19027 * tests/partmap_test.in: Likewise.
19028 * tests/util/grub-shell-tester.in: Likewise.
19029 * tests/util/grub-shell.in: Likewise.
19031 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19033 Move gfxmenu color handling to video, so that gfxterm can use it
19036 * grub-core/gfxmenu/named_colors.c: Move to ...
19037 * grub-core/video/colors.c: ... here. Rename
19038 grub_gui_get_named_color to grub_video_get_named_color.
19039 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19040 * grub-core/video/colors.c (my_isxdigit): ... here.
19041 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19043 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19044 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19046 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19048 * include/grub/gui.h (grub_gui_color_t): Move to ...
19049 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19050 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19051 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19052 * include/grub/gui.h (grub_gui_map_color): Move to ...
19053 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19054 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19056 * include/grub/video.h (grub_video_get_named_color): ... here.
19057 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19058 * include/grub/video.h (grub_video_parse_color): ... here.
19060 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19062 (gfxmenu): Remove gfxmenu/named_colors.c.
19063 (video) [videomodules]: Add video/colors.c.
19065 Add a background_color command.
19067 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19069 (GRUB_MOD_INIT): Register background_color command.
19070 (GRUB_MOD_FINI): Unregister background_color command.
19071 (redraw_screen_rect): Allow blend/replace of text layer to be
19072 controlled independently from whether there is a background bitmap.
19073 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19076 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19078 Patch BPB in ntldr and chainloader --bpb.
19080 * grub-core/fs/fat.c: Include grub/fat.h.
19081 (grub_fat_bpb): Moved to ...
19082 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19083 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19085 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19087 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19089 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19091 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19092 (GRUB_MOD_INIT): Show --bpb.
19093 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19094 * grub-core/normal/main.c (features): New variable.
19095 (GRUB_MOD_INIT): Set feature_* variables.
19096 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19098 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19100 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19102 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19105 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19107 FreeDOS direct loading support.
19109 * docs/grub.texi (Supported OS): Add FreeDOS.
19110 * grub-core/Makefile.core.def (freedos): New module.
19111 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19113 (grub_relocator16_boot): Handle %ebx.
19114 * grub-core/lib/i386/relocator16.S: Likewise.
19115 * grub-core/loader/i386/pc/freedos.c: New file.
19117 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19119 Long Linux command line support.
19121 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19122 (maximal_cmdline_size): New variable.
19123 (allocate_pages): Use maximal_cmdline_size.
19124 (grub_cmd_linux): Set and use maximal_cmdline_size.
19125 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19126 (allocate_pages): Use maximal_cmdline_size.
19127 (grub_cmd_linux): Set and use maximal_cmdline_size.
19128 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19129 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19132 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19133 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19135 Improve devmapper support
19137 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19138 (grub_util_is_lvm): New function.
19139 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19140 than lvm if not dmraid.
19141 Handle mapped md nodes.
19142 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19143 (grub_util_device_is_mapped): ... this. Make always available. All users
19145 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19146 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19148 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19150 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19152 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19154 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19155 * grub-core/modinfo.sh.in: New file.
19156 * grub-core/Makefile.core.def (modinfo.sh): New script.
19157 * util/grub-mknetdir.in: Use modinfo.sh.
19158 * util/grub-mkrescue.in: Likewise.
19160 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19162 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19163 Fix potential usage of Elf32 instead of Elf64 when compiling on
19164 32-bit architecture. Add endianness macros while on it.
19166 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19168 Use mipsel- rather than mips- in directories involving mipsel ports to
19169 allow both endiannesses coexist.
19171 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19172 mips. All conditions adjusted.
19173 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19175 * util/grub-install.in: Adjust conditions to take renaming into account.
19176 * util/grub-mkimage.c (image_targets): Likewise. New target
19177 mips-qemu_mips-elf for bigendian mips.
19179 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19181 Avoid unnecessary copying on MIPS.
19183 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19184 early if src == dest.
19185 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19186 compression is none.
19188 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19190 Reduce memory footprint on SGI by putting modules before the kernel
19191 as opposed to after.
19193 * grub-core/Makefile.core.def (kernel): Increase linking address.
19194 (none_decompress): Likewise.
19195 (xz_decompress): Likewise.
19196 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19198 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19200 (grub_arch_modules_addr): New function.
19201 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19202 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19203 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19205 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19206 (grub_total_modules_size): ... this. Make global.
19207 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19208 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19210 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19211 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19212 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19213 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19214 * util/grub-mkimage.c (image_target_desc): New flag
19215 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19216 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19217 (generate_image): Handle images with modules before kernel.
19219 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19221 Prevent potential loss of memory map by overwrite on qemu-mips.
19223 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19224 Save ram size in $s4.
19225 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19226 All users changed to grub_arch_memsize.
19227 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19229 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19230 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19231 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19234 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19236 * .bzrignore: Remove grub-dumpbios.
19238 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19240 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19241 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19242 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19243 existing options which append).
19244 * docs/grub.texi (Simple configuration): Document new options.
19245 Reported by: Ian Jackson. Fixes Debian bug #617538.
19247 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19249 * util/grub-fstest.c (cmd_cat): New function.
19250 (fstest): Handle CMD_CAT.
19251 (options): Add cat.
19252 (argp_parser): Handle cat.
19254 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19256 * Makefile.util.def (grub-bin2h): Don't install.
19257 * docs/man/grub-bin2h.h2m: Remove.
19259 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19261 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19264 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19266 Reenable qemu-mips port.
19268 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19269 Fix small arc bug while on it.
19270 * gentpl.py: Handle qemu_mips.
19271 * grub-core/Makefile.am: Likewise.
19272 * grub-core/Makefile.core.def: Likewise.
19273 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19274 inappropriate includes.
19275 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19276 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19277 * grub-core/kern/main.c (grub_modules_get_end)
19278 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19279 * grub-core/kern/mips/qemu-mips: Moved to ..
19280 * grub-core/kern/mips/qemu_mips: ... this.
19281 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19282 (grub_machine_init): Call terminfo_init and serial_init.
19283 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19284 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19286 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19288 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19289 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19290 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19291 * include/grub/mips/qemu_mips/cmos.h: New file.
19292 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19293 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19295 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19296 Use correct mips-style address.
19297 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19298 (GRUB_TICKS_PER_SECOND): Removed.
19299 (grub_get_rtc): Likewise.
19300 (grub_cpu_idle): Likewise.
19301 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19303 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19304 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19305 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19306 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19307 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19308 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19309 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19310 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19312 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19316 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19317 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19319 * configure.ac: New target mips-arc.
19320 * gentpl.py: Likewise.
19321 * grub-core/Makefile.am: Likewise.
19322 * grub-core/Makefile.core.def: Likewise.
19323 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19324 (none_decompress): Likewise.
19325 (lsdev): New module.
19326 (datetime): Use lib/arc/datetime.c on ARC.
19327 (part_dvh): New module.
19328 * grub-core/commands/arc/lsdev.c: New file.
19329 * grub-core/disk/arc/arcdisk.c: Likewise.
19330 * grub-core/kern/mips/arc/init.c: Likewise.
19331 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19333 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19335 (grub_arch_dl_relocate_symbols): Likewise.
19336 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19337 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19338 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19340 * grub-core/lib/arc/datetime.c: New file.
19341 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19342 pci.h on non-loongson.
19343 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19344 (grub_linux_boot): Set unused registers to 0.
19345 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19346 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19347 * grub-core/mmap/mips/uppermem.c: ...here.
19348 * grub-core/partmap/dvh.c: New file.
19349 * grub-core/term/arc/console.c: Likewise.
19350 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19351 (grub_terminfo_set_current): Add terminal "arc".
19352 (grub_terminfo_readkey): Support ARC sequences.
19353 * include/grub/arc/arc.h: New file.
19354 * include/grub/arc/console.h: Likewise.
19355 * include/grub/disk.h (grub_disk_dev_id): Add
19356 GRUB_DISK_DEVICE_ARCDISK_ID.
19357 * include/grub/mips/arc/kernel.h: New file.
19358 * include/grub/mips/arc/memory.h: Likewise.
19359 * include/grub/mips/arc/time.h: Likewise.
19360 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19361 * include/grub/mips/kernel.h (grub_halt): ... here.
19362 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19364 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19365 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19366 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19367 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19369 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19371 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19372 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19373 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19374 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19375 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19376 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19377 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19378 (grub_phys_addr_t): Moved from here ...
19379 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19380 (grub_vtop): Moved from here ...
19381 * include/grub/mips/memory.h (grub_vtop): ... here.
19382 (grub_map_memory): Moved from here ...
19383 * include/grub/mips/memory.h (grub_map_memory): ... here.
19384 (grub_unmap_memory): Moved from here ...
19385 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19386 (grub_machine_mmap_iterate): Moved from here ...
19387 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19388 (grub_mmap_get_lower): Moved from here ...
19389 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19390 (grub_mmap_get_upper): Moved from here ...
19391 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19392 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19394 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19395 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19397 * include/grub/mips/time.h (grub_get_rtc): ... here.
19398 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19400 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19401 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19403 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19404 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19406 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19407 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19408 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19409 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19410 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19411 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19412 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19413 (GRUB_MACHINE_LINK_ADDR): Likewise.
19414 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19416 * util/grub-install.in: Run dvhtool on ARC.
19417 * util/grub-mkimage.c (image_targets): Add mips-arc.
19418 (generate_image): Handle ECOFF output for mips-arc.
19420 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19422 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19425 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19427 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19428 after enabling port.
19430 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19432 Skip incorrect USB devices.
19434 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19436 * include/grub/usb.h (grub_usb_err_t): New enum value
19437 GRUB_USB_ERR_BADDEVICE.
19439 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19441 Fuloong video init support.
19443 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19445 (grub_vga_read_arx): New function.
19446 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19448 (framebuffer): New members io, mmioptr and mmiobase.
19449 (read_sis_cmd): New function.
19450 (write_sis_cmd): Likewise.
19451 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19452 rather than 640x400.
19453 * grub-core/video/sis315_init.c: New file.
19455 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19457 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19459 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19460 to grub_dl_register_symbol.
19462 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19464 Fix compilation errors.
19466 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19467 potentially unused.
19468 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19469 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19470 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19471 to loongson machines.
19473 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19475 Several FS mtime support.
19477 * grub-core/fs/affs.c (grub_affs_time): New struct.
19478 (grub_affs_file): New field mtime.
19479 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19480 type. Removed 'size'. New field 'di'. All users updated.
19481 (grub_affs_mount): Simplify checsum checking.
19482 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19483 (grub_affs_dir): Handle mtime.
19484 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19485 (grub_cpio_dir): Likewise.
19486 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19487 (grub_hfs_filerec): New field mtime.
19488 (grub_hfs_dir): Handle mtime.
19489 (grub_hfs_mtime): New function.
19490 (grub_hfs_fs): Register grub_hfs_mtime.
19491 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19492 (grub_iso9660_dir): New field mtime.
19493 (grub_fshelp_node): New field dirent.
19494 (iso9660_to_unixtime): New function.
19495 (iso9660_to_unixtime2): Likewise.
19496 (grub_iso9660_read_symlink): Use node->dirent.
19497 (grub_iso9660_iterate_dir): Likewise.
19498 (grub_iso9660_dir): Set mtime.
19499 (grub_iso9660_mtime): New function.
19500 (grub_iso9660_fs): Register grub_iso9660_mtime.
19501 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19502 (grub_jfs_inode): New fields atime, ctime and mtime.
19503 (grub_jfs_dir): Set mtime.
19504 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19505 * grub-core/fs/ntfs.c (list_file): Set mtime.
19506 (grub_ntfs_dir): Likewise.
19507 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19508 (grub_reiserfs_iterate_dir): Set mtime.
19509 (grub_reiserfs_dir): Likewise.
19510 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19511 (grub_fshelp_node): Likewise.
19512 (grub_sfs_iterate_dir): Set mtime.
19513 (grub_sfs_dir): Likewise.
19514 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19515 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19516 (grub_xfs_inode): New fields atime, mtime, ctime.
19517 (grub_xfs_dir): Set mtime.
19518 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19519 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19520 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19522 Support UDF symlinks.
19524 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19525 (grub_ufs_read_symlink): New function. All users updated.
19527 Check amiga partmap checksum.
19529 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19530 (grub_amiga_partition): Likewise.
19531 (amiga_partition_map_checksum): New function.
19532 (amiga_partition_map_iterate): Check checksum.
19534 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19538 * Makefile.util.def (libgrubmods.a): Add romfs.
19539 * grub-core/Makefile.core.def (romfs): New module.
19540 * grub-core/fs/romfs.c: New file.
19542 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19544 Squashfs v4 support.
19546 * Makefile.util.def (libgrubmods.a): Add squash4.
19547 * grub-core/Makefile.core.def (squash4): New module.
19548 * grub-core/fs/squash4.c: New file.
19549 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19550 disk_input_start, disk_input.
19551 (get_byte): Handle disk_input.
19552 (grub_zlib_disk_read): New function.
19553 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19555 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19556 2011-05-15 Feiran Zheng <famcool@gmail.com>
19558 * Makefile.util.def (libgrubmods.a): Add minix3.
19559 * grub-core/Makefile.core.def (minix3): New module.
19560 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19561 (GRUB_MINIX_BSIZE): Removed.
19562 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19563 (grub_minix_ino_t): New type.
19564 (grub_minix_le_to_cpu_ino): New macro.
19565 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19566 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19567 (grub_minix_data): New field block_size.
19568 (grub_minix_read_file): Handle 64-bit correctly.
19569 * grub-core/fs/minix3.c: New file.
19571 2011-05-15 Tristan Gingold <gingold@free.fr>
19572 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19573 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19577 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19578 * configure.ac: Add ia64-efi target.
19579 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19580 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19581 * gentpl.py: Add ia64_efi platform.
19582 Rename x86_efi to efi and Add ia64-efi. All users updated.
19583 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19584 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19585 Remove kern/generic/rtc_get_time_ms.c on EFI.
19586 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19587 kern/ia64/dl_helper.c on ia64-efi.
19588 Add kern/emu/cache.c on emu.
19589 (linux): Use on loader/ia64/efi/linux.c on ia64.
19590 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19591 whether symbol is a function.
19592 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19593 (grub_symbol): New field 'isfunc'.
19594 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19595 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19596 (grub_dl_load_segments): Place all sections into the same region.
19597 [__ia64__]: Create trampolines and got.
19598 [GRUB_MACHINE_EMU]: Call mprotect.
19599 (grub_dl_resolve_symbols): Resolve symbol type as well.
19600 [__ia64__]: Create function descriptors.
19601 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19602 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19603 (grub_get_rtc): New function.
19604 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19605 * grub-core/kern/emu/cache.S: Renamed to ...
19606 * grub-core/kern/emu/cache_s.S: ... this.
19607 [__ia64__]: Add a nop.
19608 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19609 [__ia64__]: New function.
19610 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19611 * grub-core/kern/ia64/dl.c: New file.
19612 * grub-core/kern/ia64/dl_helper.c: Likewise.
19613 * grub-core/kern/ia64/efi/init.c: New file.
19614 * grub-core/kern/ia64/efi/startup.S: Likewise.
19615 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19616 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19617 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19618 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19619 * grub-core/loader/ia64/efi/linux.c: New file.
19620 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19621 (GRUB_MOD_DEP): Likewise.
19622 (grub_dl) [__ia64__]: New fields got and tramp.
19623 (grub_dl): New field 'base'.
19624 (grub_dl_register_symbol): New argument isfunc. All users updated.
19625 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19626 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19627 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19628 (grub_ia64_dl_get_tramp_got_size): New proto.
19629 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19630 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19631 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19632 * include/grub/efi/api.h: Skip call wrappers on ia64.
19633 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19634 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19635 * include/grub/elf.h (ELF_ST_INFO): New definition.
19636 * include/grub/ia64/efi/kernel.h: New file.
19637 * include/grub/ia64/efi/memory.h: Likewise.
19638 * include/grub/ia64/efi/time.h: Likewise.
19639 * include/grub/ia64/kernel.h: Likewise.
19640 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19641 * include/grub/ia64/time.h: New file.
19642 * include/grub/ia64/types.h: Likewise.
19643 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19644 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19646 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19647 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19648 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19649 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19651 (EFI64_HEADER_SIZE): New definition. All users updated.
19652 (image_targets): Add ia64-efi.
19653 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19654 jumpers_addr. All users updated.
19655 Create function descriptors.
19656 (count_funcs): New function.
19657 (unaligned_uint32): New struct.
19658 (MASK20): New definition.
19659 (MASK19): Likewise.
19660 (MASKF21): Likewise.
19661 (add_value_to_slot_20b): New function.
19662 (add_value_to_slot_21_real): Likewise.
19663 (add_value_to_slot_21): Likewise.
19664 (ia64_kernel_trampoline): New struct.
19665 (nopm): New variable.
19667 (make_trampoline): New function.
19668 (relocate_addresses): Handle ia64.
19669 (make_reloc_section): Likewise.
19670 (load_image): Likewise.
19672 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19674 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19675 warning. Move variables before code while on it.
19677 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19681 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19682 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19683 * grub-core/boot/mips/loongson/fuloong.S: New file.
19684 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19685 Explicitly init CS5536.
19686 [FULOONG]: Don't use serial until CS5536 is available.
19687 Set GPIO based on dumps.
19688 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19689 [FULOONG]: Handle GPIO and memory controller differences.
19690 Parse machine type in $a2.
19691 * grub-core/boot/mips/startup_raw.S: Determine and save the
19693 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19694 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19695 init on architecture type.
19696 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19697 SIS315E. Don't init at_keyboard on fuloong.
19698 (grub_halt): Support Fuloong.
19699 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19700 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19701 (loongson_machtypes): New array.
19702 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19704 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19705 config. All users updated. Handle CS5536 serial.
19706 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19707 default port on machine type. Register serial as inactive.
19708 * grub-core/video/sis315pro.c: New file.
19709 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19711 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19712 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19713 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19714 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19715 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19716 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19718 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19719 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19721 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19722 (grub_arch_machine): New extern var.
19723 * include/grub/mips/loongson/serial.h
19724 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19725 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19726 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19727 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19728 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19729 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19730 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19731 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19732 * include/grub/term.h (grub_term_register_input_inactive): New inline
19734 (grub_term_register_output_inactive): Likewise.
19735 * include/grub/video.h (grub_video_driver_id): New value
19736 GRUB_VIDEO_DRIVER_SIS315PRO.
19737 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19738 New field "names". All users updated.
19739 New field value IMAGE_FULOONG_FLASH.
19740 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19742 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19744 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19745 and add some clarification.
19747 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19749 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19750 platforms if kernel is compressed.
19752 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19754 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19755 unused modules since currently referrence counter isn't reliable and
19756 there isn't much memory to recover there anyway.
19758 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19760 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19761 rather than resetting it to allow modules to reference themselves
19764 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19766 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19767 counter on dependencies since grub_dl_unref already handles this.
19769 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19771 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19772 on error if not already done.
19774 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19776 Fix few potential memory misusage.
19778 * grub-core/font/font.c (load_font_index): Don't free char_index to
19780 (grub_font_load): Zero-fill font at alloc for safety.
19781 Close file on error.
19782 (free_font): Free bmp_idx.
19784 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19786 * docs/grub.texi (Installation): Fix several outdated claims.
19788 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19790 Handle module_license on windows.
19792 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19794 (insert_string): Make argument const char * instead of char *.
19795 (write_section_data): Handle long section names.
19796 Handle module_license.
19798 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19800 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19801 handle class-free menuentries.
19802 (grub_normal_add_menu_entry): Add a check to be sure.
19804 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19806 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19809 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19811 * configure.ac: Bump version to 1.99.
19813 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19815 Give ATA device a bit more time on first try in order to allow disks
19818 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19819 if dev->present is 1. Reset dev->present on failure.
19820 (grub_ata_device_initialize): Set dev->present to 1.
19821 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19822 (grub_ata_device): New member 'present'.
19824 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19826 * util/grub-mkimage.c (generate_image): Update hash.
19828 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19830 Flush caches on DMA memory.
19832 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19833 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19834 (grub_dma_free): Likewise.
19835 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19837 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19839 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19840 to avoid asm treating ld and sd as macros.
19842 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19844 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19847 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19849 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19850 grub_decompress_core since later would fail if grub_decompress_core
19853 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19855 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19856 R_MIPS_JALR since it's used by newer compiler.
19858 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19860 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19862 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19864 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19865 file_path to 0 for surety.
19866 (grub_chainloader_boot): Set exit_data to NULL.
19867 Unset the loader once done.
19868 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19870 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19872 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19873 unknown key into a dprintf.
19875 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19877 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19878 on first non-existant partition.
19880 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19882 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19884 Reported by: Mark Korenberg.
19886 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19888 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19891 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19893 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19894 before closing to ensure that it will be readable by grub-setup.
19896 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19898 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19899 (devpath_1): Use MAKE_PIWG_PATH.
19900 (devpath_2): Likewise.
19901 (devpath_3): Likewise.
19902 (devpath_4): Likewise.
19903 (devpath_5): Likewise.
19904 (devpath_6): Likewise.
19906 The appleldr.mod was checked that to be binary identical to previous
19909 2011-05-05 Zach <mikezackles>
19911 Support 2010 Macbooks.
19913 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19914 (devs): Add devpath_6.
19916 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19918 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19919 /dev/random. /dev/urandom is good enough for our purposes (salting).
19921 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19923 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19925 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19927 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
19930 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19932 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
19933 and not 0 on failure.
19935 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19937 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
19938 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
19939 disk; otherwise grub_fs_probe will not fall back to the next
19941 (grub_pxefs_open): Likewise, for consistency.
19942 Reported and tested by: Ezekiel Grave.
19944 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19946 * tests/partmap_test.in: Don't hardcode path to parted.
19947 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
19949 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
19951 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
19952 of `ls' to find out which devices are available.
19954 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19956 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
19957 than source address for efi mmap buffer.
19959 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19961 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
19962 wrong action on non-detecting the magic.
19964 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19966 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
19967 already supplied by another part of the module (fixes compilation on
19970 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19972 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
19973 match the one used by mdadm.
19975 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19977 * po/README: Add instructions for creating po/LINGUAS.
19979 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19981 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
19984 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
19985 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
19986 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
19987 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
19988 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
19989 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
19990 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
19991 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
19992 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
19993 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
19994 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
19995 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
19996 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
19997 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
19998 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
19999 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20000 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20001 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20002 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20003 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20004 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20005 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20007 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20009 * grub-core/kern/emu/getroot.c
20010 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20011 test that was incorrectly reintroduced in r3214.
20012 Reported by: Ian Dall. Fixes Savannah bug #33133.
20014 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20016 Fix stack pointer handling in 16-bit relocator.
20018 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20019 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20020 Fixes Ubuntu bug #683904.
20022 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20024 * configure.ac: Bump version to 1.99~rc2.
20026 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20028 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20029 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20030 * grub-core/lib/x86_64/setjmp.S: Likewise.
20031 * grub-core/lib/mips/setjmp.S: Likewise.
20032 * grub-core/lib/powerpc/setjmp.S: Likewise.
20033 * grub-core/lib/sparc64/setjmp.S: Likewise.
20035 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20037 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20038 * grub-core/lib/efi/datetime.c: Likewise.
20040 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20042 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20044 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20045 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20046 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20048 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20050 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20052 (grub_gfxterm_term_init): Likewise.
20054 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20056 Take into account the decorations the computing menu entry width.
20058 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20059 (grub_gfxmenu_create_box): Register get_border_width.
20060 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20062 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20065 2011-04-18 Endres Puschner <code@e7p.de>
20067 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20068 Don't skip first class.
20070 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20072 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20074 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20076 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20078 Complete 64-bit division support.
20080 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20081 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20082 * include/grub/misc.h (grub_divmod64): Rename to ...
20083 (grub_divmod64_full): ... this.
20084 (grub_divmod64): New inline function.
20086 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20088 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20090 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20092 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20093 performing the necessary test.
20095 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20097 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20098 (kfreebsd.elf): Likewise.
20099 (pc-chainloader.elf): Likewise.
20100 (ntldr.elf): Likewise.
20102 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20104 Identify RAID by its UUID rather than (guessed) name.
20106 * grub-core/disk/raid.c (ascii2hex): New function.
20107 (grub_raid_open): Accept mduuid/%s specification.
20108 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20109 (get_mdadm_uuid): ... this.
20110 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20112 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20114 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20117 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20119 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20121 * util/grub.d/20_linux_xen.in: Likewise.
20123 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20125 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20126 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20128 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20129 Build a list of relevant visible mounts using the mnt_id and
20130 parent_mnt_id fields, and then scan that list at the end.
20132 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20134 * docs/grub.texi (normal): New section.
20135 (normal_exit): New section.
20136 (Embedded configuration): Add reference to normal.
20137 (GRUB only offers a rescue shell): Likewise.
20138 * docs/grub-dev.texi (Error Handling): Fix typo.
20140 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20142 * NEWS: Drop obsolete entry about probe-only btrfs support.
20144 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20146 * util/import_gcry.py: Fix typo.
20148 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20150 * NEWS: Add btrfs support.
20152 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20153 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20155 BtrFS support. Written by me (Vladimir) with important bugfixes and
20156 even more important testing by Colin.
20158 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20159 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20160 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20161 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20162 mem_input_off and mem_input. All users updated to accept in-RAM input.
20163 (gzio_seek): New function.
20164 (test_zlib_header): Likewise.
20165 (grub_gzio_read): Likewise.
20166 (grub_zlib_decompress): Likewise.
20167 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20168 Accept partial and non-virtual mounts.
20169 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20170 avoid receiving /dev/dm-X as device.
20171 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20172 Handle bind and partial mounts.
20173 * grub-core/lib/crc.c: New file.
20174 * include/grub/deflate.h: Likewise.
20175 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20177 * include/grub/lib/crc.h: New file.
20179 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20181 Implement automatic module license checking according to new GNU
20184 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20185 (grub_dl_load_core): Use grub_dl_check_license.
20186 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20187 (GRUB_MOD_LICENSE): Likewise.
20188 (GRUB_MOD_DUAL_LICENSE): Likewise.
20189 All modules updated.
20191 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20193 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20194 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20196 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20198 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20200 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20202 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20204 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20207 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20209 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20210 parenthesis in the middle of the filename.
20212 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20214 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20215 rather than trying to put initrd way too high.
20216 Reported by: Ryan Lortie <desrt@desrt.ca>
20218 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20220 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20221 improperly removed string.
20223 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20225 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20227 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20228 (open_device) Likewise.
20229 (grub_util_biosdisk_close): Likewise.
20230 Reported by: Mark Korenberg.
20232 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20234 * util/grub-mkconfig_lib.in: Add missing quotes.
20236 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20238 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20241 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20243 Dynamically count the number of lines for the lower banner.
20245 * grub-core/normal/menu_entry.c (per_term_screen): New member
20247 (print_down): Use num_entries.
20248 (update_screen): Likewise.
20249 (grub_menu_entry_run): Set num_entries.
20250 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20252 (grub_print_message_indented): Move real part to ...
20253 (grub_print_message_indented_real): ... here. Additional argument
20255 (draw_border): Additional argument num_entries.
20256 (print_message): Additional argument dry_run.
20257 (print_entries): Receive menu viewer data.
20258 (grub_menu_init_page): New argment num_entries.
20259 (menu_text_set_chosen_entry): Use num_entries.
20260 (grub_menu_try_text): Likewise.
20261 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20263 (grub_ucs4_count_lines): New function.
20264 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20265 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20266 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20267 (grub_term_border_height): Likewise.
20268 (grub_term_num_entries): Likewise.
20270 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20272 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20273 Remove now unused string.
20275 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20277 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20279 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20281 (Comment): Fix typo.
20282 (Getting started): General copy-editing.
20283 (Typical Development Experience): Likewise.
20284 (Error Handling): Likewise.
20285 (Video API): Likewise.
20287 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20289 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20292 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20294 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20297 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20299 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20300 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20303 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20305 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20306 grub_strcpy since the lines aren't necessarily 0-terminated.
20308 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20310 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20313 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20315 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20316 (GRUB_MOD_INIT): DEVICE isn't optional.
20318 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20320 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20321 word on new line if it's too long anyway. Fixes a hang.
20323 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20325 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20327 * util/grub-setup.c (main): Reuse md device name if available.
20328 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20329 not GRUB name as argument.
20330 Based on patch by: Florian Wagner <fwagner>.
20332 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20334 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20335 Place mbi on low memory for better compatibility.
20337 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20339 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20341 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20342 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20344 * autogen.sh: Ensure that collate and ctype locale is C.
20345 * conf/Makefile.common: Likewise.
20347 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20349 * grub-core/normal/menu.c: Add missing include.
20351 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20353 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20355 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20357 * util/grub-mkconfig.in: Ignore emacsen backup.
20359 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20361 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20363 (grub_util_biosdisk_close): Likewise.
20365 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20367 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20368 const attribute and use grub_isdigit.
20370 2011-04-06 Andrey <dev_null@ukr.net>
20372 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20375 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20377 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20378 useful grub_dprintf's.
20380 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20382 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20384 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20386 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20388 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20390 Output errors if theme loading failed.
20392 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20393 grub_gfxterm_fullscreen on error paths to ...
20394 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20395 theme loading error.
20397 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20399 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20400 space for older compilers.
20401 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20403 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20405 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20406 and report them as not RAID members since they are useless for GRUB.
20407 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20409 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20411 Increase LVM implementation robustness in order not to crash on
20412 configurations like pvmove. Previously code assumed that in some places
20413 only lvs or only pvs are used whereas it seems that they are used
20416 * grub-core/disk/lvm.c (read_node): New function.
20417 (read_lv): Use read_node.
20418 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20419 Match volumes only at the end when all lvs are found. Take both
20420 pvs (first) and lvs (second) into account.
20421 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20422 mirror_* into node_*. All users updated.
20423 (grub_lvm_stripe): Merge this ...
20424 (grub_lvm_mirror): ... and this ...
20425 (grub_lvm_node): ... into this. All users updated.
20427 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20429 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20430 of function to allow further scanning for LVMs.
20432 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20434 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20435 on failed seek as it breaks open fd reusage.
20437 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20439 * util/grub-install.in: Add a recommendation to use --recheck before
20442 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20444 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20447 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20449 GRUB developper manual based on existing Internals section and
20450 contributions by the various authors with active copyright assignment.
20452 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20453 * docs/font_char_metrics.png: New file.
20454 * docs/font_char_metrics.txt: Likewise.
20455 * docs/grub-dev.texi: Likewise.
20456 * docs/grub.texi (Internals): Move from here ...
20457 * docs/grub-dev.texi: ... here.
20459 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20461 Store the loopback device as data on loopback grub_disk structures,
20462 rather than the file it points to. This fixes use of freed memory
20463 if an existing loopback device is replaced.
20465 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20466 disk->data, not dev->file.
20467 (grub_loopback_read): Adjust file assignment to match.
20468 Fixes Ubuntu bug #742967.
20470 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20472 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20473 when replacing an existing device.
20475 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20477 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20478 memory corruptions.
20480 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20482 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20483 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20484 (grub_jfs_read_inode): Likewise.
20485 (grub_jfs_opendir): Likewise. Remove now useless casts.
20486 (grub_jfs_getent): Likewise.
20487 Make ino a grub_uint32_t rather than int.
20488 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20489 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20490 division and module with bit operations.
20491 (grub_jfs_find_file): Make ino a grub_uint32_t.
20492 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20494 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20496 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20497 warning. (This was in fact always initialised before use, but GCC
20498 wasn't smart enough to prove that.)
20499 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20501 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20503 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20505 (efi_wrap_1): Likewise.
20506 (efi_wrap_2): Likewise.
20507 (efi_wrap_3): Likewise.
20508 (efi_wrap_4): Likewise.
20509 (efi_wrap_5): Likewise.
20510 (efi_wrap_6): Likewise.
20511 (efi_wrap_10): Likewise.
20512 Based on information by: Red Hat/Peter Jones.
20514 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20516 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20517 set-but-not-used variable.
20519 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20521 * docs/grub.texi (Simple configuration): Be more explicit about
20522 GRUB_DEFAULT, and add an example.
20523 Reported by: Leslie Rhorer.
20525 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20527 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20530 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20532 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20533 * util/grub.d/20_linux_xen.in: Likewise.
20535 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20537 * util/grub.d/10_linux.in: Try alternative config filenames where
20538 we parse config file.
20539 * util/grub.d/20_linux_xen.in: Likewise.
20541 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20543 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20544 * util/grub.d/20_linux_xen.in: Likewise.
20546 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20548 * grub-core/disk/raid.c (insert_array): Add few potentially
20549 useful grub_util_info.
20550 (grub_raid_register): Likewise.
20552 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20554 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20555 Preserve partition number in mdadm code path.
20557 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20559 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20560 few potentially useful grub_util_info.
20562 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20564 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20566 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20568 * docs/grub.texi (default): Use @example rather than nested
20569 itemized lists to avoid breaking gendocs.
20571 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20573 * docs/grub.texi (Future): Update.
20575 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20577 * docs/grub.texi (Environment): New chapter.
20578 (Changes from GRUB Legacy): Link to "Environment block" section for
20579 details of limitations.
20580 (Simple configuration): Likewise. Link to documentation of gfxmode
20581 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20583 (Shell-like scripting): Note that normal variables are stored in the
20585 (gettext): Link to documentation of lang and locale_dir.
20586 (list_env): New section.
20587 (load_env): New section.
20588 (save_env): New section.
20590 (Reporting bugs): Fix typo.
20592 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20594 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20597 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20599 * grub-core/term/at_keyboard.c (set_scancodes)
20600 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20602 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20604 * docs/grub.texi (Menu-specific commands): Remove some semantics
20605 that were true in GRUB Legacy but not in GRUB 2.
20606 (submenu): New section.
20607 (false): New section.
20608 (read): New section.
20609 (true): New section.
20611 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20613 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20615 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20617 * docs/grub.texi (Simple configuration): Explain some of the
20618 current limitations of grub-mkconfig.
20619 Reported by: Leslie Rhorer.
20621 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20623 Old macs search for boot.efi rather than for bootia32.efi.
20625 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20626 * util/grub-mkrescue.in: Likewise.
20627 Suggested by: Peter Jones.
20629 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20631 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20633 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20635 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20636 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20637 (grub_lvm_mirror): New struct.
20638 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20639 (grub_lvm_iterate): Iterate only visible volumes.
20640 (grub_lvm_read): Factor out to ..
20641 (read_lv): ... this. Support mirrors.
20642 (grub_lvm_read): New wrapper function.
20643 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20644 stripped or mirrored.
20646 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20648 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20650 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20652 * docs/grub.texi (loopback): New section.
20654 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20656 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20659 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20661 * docs/grub.texi (BIOS installation): New section, partly based on
20662 previous text in other sections.
20663 (Installing GRUB using grub-install): Replace BIOS discussion with a
20665 (Images): Likewise.
20667 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20669 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20670 [HAVE_DIOCGDINFO]: Add safety checks.
20672 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20674 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20675 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20677 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20679 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20680 real_sb->size is zero (e.g. RAID-0), get the disk size from
20681 real_sb->data_size instead.
20682 Fixes Ubuntu bug #743136.
20684 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20686 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20687 printf clauses for printing size and start.
20689 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20691 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20692 Reported and tested by: Timothy Nikkel.
20694 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20696 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20697 (dirty_region_add_real): ... this.
20698 (dirty_region_add): Don't discard margin refresh when performing
20701 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20703 * grub-core/lib/relocator.c (allocate_regstart)
20704 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20705 terminals are capabple of malloc-free operation.
20706 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20707 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20709 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20711 * util/grub-setup.c: Copy the partition table zone if floppy support
20712 is disabled, even if no partition table is found.
20714 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20715 during POST if an invalid partition table is contained in the PBR
20716 of the active partition when GRUB is installed to a partition.
20718 2011-03-28 Colin Watson <cjwatson@debian.org>
20720 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20723 2011-03-28 Colin Watson <cjwatson@debian.org>
20725 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20726 to be specific about what kind of RAID device we're scanning for.
20728 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20730 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20731 return freed string.
20733 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20735 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20737 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20739 Use libgeom on FreeBSD to detect partitions.
20741 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20742 (grub-mkrelpath): Likewise.
20743 (grub-script-check): Likewise.
20744 (grub-editenv): Likewise.
20745 (grub-mkpasswd-pbkdf2): Likewise.
20746 (grub-fstest): Likewise.
20747 (grub-mkfont): Likewise.
20748 (grub-mkdevicemap): Likewise.
20749 (grub-probe): Likewise.
20750 (grub-setup): Likewise.
20751 (grub-ofpathname): Likewise.
20752 (grub-mklayout): Likewise.
20753 (example_unit_test): Likewise.
20754 (grub-menulst2cfg): Likewise.
20755 * grub-core/Makefile.core.def (grub-emu): Likewise.
20756 (grub-emu-lite): Likewise.
20757 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20758 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20759 define HAVE_DIOCGDINFO.
20760 (follow_geom_up) [FreeBSD]: New function.
20761 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20762 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20763 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20764 unconditionally of HAVE_DIOCGDINFO.
20766 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20768 Fix FreeBSD compilation problem.
20770 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20771 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20773 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20775 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20776 Switch back to page zero before loading a kernel, since some kernel
20777 drivers expect that.
20778 Thanks to: Felix Kuehling.
20780 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20782 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20783 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20784 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20786 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20788 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20789 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20791 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20793 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20794 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20795 malloc is disabled.
20797 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20799 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20800 for modules headers when counting the needed allocation size.
20802 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20804 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20805 if no ASCII character is found to prevent crash.
20807 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20809 * grub-core/video/bitmap.c (match_extension): Ignore case.
20811 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20813 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20815 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20817 * grub-core/script/parser.y: Declare "time" as valid argument.
20819 2011-03-23 Peter Jones <pjones@redhat.com>
20821 Fix incorrect assert failure reporting.
20823 * grub-core/tests/example_functional_test.c (example_test): Add
20825 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20826 (failure_start): ...this. Check that malloc succeeded.
20827 Don't call xvasprintf. Return failure struct.
20828 (failure_append_vtext): New function.
20829 (failure_append_text): Likewise.
20830 (add_failure): Likewise.
20831 (grub_test_assert_helper): Likewise.
20832 * include/grub/test.h (grub_test_assert_helper): New declaration.
20833 (grub_test_assert): Macro rewritten.
20835 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20837 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20839 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20841 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20843 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20845 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20846 into GRUB-style one.
20848 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20850 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20851 error and not grub_errno.
20852 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20854 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20856 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20857 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20859 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20861 * grub-core/efiemu/i386/pc/cfgtables.c
20862 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20863 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20864 (grub_xnu_unlock): Likewise.
20865 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20867 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20869 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20870 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20871 * grub-core/commands/hashsum.c (aliases): Likewise.
20872 * grub-core/commands/setpci.c (pci_registers): Likewise.
20873 * grub-core/disk/usbms.c (attach_hook): Likewise.
20874 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20875 (zio_checksum_table): Likewise.
20876 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20877 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20878 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20879 * grub-core/lib/relocator.c (leftovers): Likewise.
20880 (extra_blocks): Likewise.
20881 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20882 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20883 (modules_last): Likewise.
20884 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20885 (devices): Likewise.
20886 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20887 (modules_last): Likewise.
20888 * grub-core/normal/auth.c (users): Likewise.
20889 * grub-core/normal/context.c (initial_menu): Likewise.
20890 (current_menu): Likewise.
20891 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20892 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20893 (grub_serial_terminfo_input_template): Likewise.
20894 (grub_serial_terminfo_output_template): Likewise.
20895 (grub_serial_terminfo_input): Likewise.
20896 (grub_serial_terminfo_output): Likewise.
20897 (registered): Likewise.
20898 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20900 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20902 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20903 grub_video_mode_type_t.
20904 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20905 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20906 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20908 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20910 * util/grub-install.in: Correct the x86-64 name as x86_64.
20912 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
20914 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20915 initial chunk read from the kernel always includes GRUB's multiboot
20916 header, which is now outside the first sector.
20918 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20920 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20921 cached mmap_size, so that this works correctly when called multiple
20923 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20925 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20927 * docs/grub.texi (Simple configuration): Tidy up formatting.
20929 2011-03-07 Szymon Janc <szymon@janc.net.pl>
20931 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
20932 Set-but-not-used variable removed.
20934 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20936 Workaround yet another IEEE1275 bug.
20938 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
20939 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
20940 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
20941 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
20943 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20944 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
20946 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20948 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
20951 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
20953 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
20954 empty, since in that case we can only generate either nothing or a
20955 syntactically invalid configuration file.
20956 Reported by: Michal Suchanek. Fixes Debian bug #612898.
20958 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20960 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
20961 (Making a GRUB bootable CD-ROM): Likewise.
20962 (Invoking grub-mkrescue): New section.
20963 Reported by: Yann Dirson. Fixes Debian bug #612585.
20965 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20967 * util/grub-install.in: Remove unnecessary brackets from tr
20969 * util/grub.d/10_hurd.in: Likewise.
20970 * util/grub.d/10_kfreebsd.in: Likewise.
20971 * util/grub.d/10_linux.in: Likewise.
20972 * util/grub.d/20_linux_xen.in: Likewise.
20973 Reported by: Jamie Heilman. Fixes Debian bug #612564.
20975 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
20977 * include/grub/file.h (not_easly_seekable): Rename to ...
20978 (not_easily_seekable): ... this. Update all users.
20980 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
20982 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
20985 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
20987 * util/grub-mkimage.c (generate_image): Refuse to create the images
20988 bigger than the actual flash (512K) in Loongson machines. 512K is also
20989 the biggest chip supported by them.
20991 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20993 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
20995 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
20997 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
20998 super_offset field.
21000 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21002 * util/grub-install.in: Ignore install device on platforms
21003 where it doesn't make sense. Always use UUIDs except on pc, efi and
21005 Reported by: Daniel Kahn Gillmor.
21007 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21009 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21011 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21013 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21014 (iterate_real): Don't rely on partition being non-NULL.
21016 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21018 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21019 supported platforms. Put a compile time assert for this rather than
21020 generate a warning with 32-bit shift.
21022 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21024 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21025 logical expression more readable.
21027 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21029 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21030 even if some elements have a name.
21031 Reported by: Alexander GQ Gerasiov.
21033 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21035 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21036 path unreadable if `grub-probe -t abstraction' fails, for example if
21037 memberlist fails on an LVM volume group.
21038 Reported by: Darius Jahandarie.
21040 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21042 * docs/grub.texi (Simple configuration): Document
21043 GRUB_PRELOAD_MODULES.
21045 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21047 * .bzrignore: Remove nonexistent grub-pbkdf2.
21049 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21051 * configure.ac: Bump version to 1.99~rc1.
21053 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21055 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21058 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21060 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21063 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21065 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21067 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21069 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21072 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21074 Fix compilation on cygwin.
21076 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21077 -R .drectve on cygwin.
21078 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21079 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21080 (COND_CYGWIN): New condition.
21081 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21082 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21083 not @TARGET_OBJ2ELF@.
21084 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21085 type to determine whether aux is to be used.
21087 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21089 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21090 realpath'ed device string.
21091 Handle floppy (somewhat).
21092 Issue error in unknown case rather than garbage.
21093 Reported by: Axel Beckert.
21095 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21097 * util/grub.d/00_header.in (load_video): Handle the case when no video
21099 Thanks to: Axel Beckert.
21101 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21103 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21104 variable. Fixes problem on big endian platforms.
21106 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21108 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21109 It doesn't work well there.
21111 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21113 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21115 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21116 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21119 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21121 Use alias->path rather than buggy "canon".
21123 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21124 (ofdisk_hash_add): New argument curcan. All users updated.
21126 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21128 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21130 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21132 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21133 loadmask before doing any calculations. Use correct type for offset.
21134 (grub_linux_load64): Likewise.
21136 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21138 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21140 (console_grub_equivalences_unshift): Likewise.
21141 Reported by: Daniel Dehennin.
21143 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21145 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21146 (set_env_limn_ro): Likewise.
21147 (GRUB_MOD_INIT): Likewise.
21148 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21149 ARRAY_SIZE while on it.
21150 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21151 * grub-core/normal/context.c (grub_env_export): Move from here ...
21152 * grub-core/kern/env.c (grub_env_export): ... here.
21153 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21155 * grub-core/kern/main.c (grub_main): Export root and prefix.
21156 * include/grub/env.h (grub_env_export): Export.
21157 Reported by: Seth Goldberg.
21159 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21161 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21162 Take into account space used by ELF sections and multiboot palette.
21163 Reported by: Grégoire Sutre.
21165 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21169 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21171 Pass more appropriate video id to Linux.
21173 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21174 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21176 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21177 shift params->lfb_size.
21178 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21180 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21182 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21184 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21186 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21187 separator and pass bootpath/devid even if only one of them is available.
21188 Reported by: Seth Goldberg.
21190 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21192 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21193 implementations bug on them.
21195 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21197 (filter_memory_map): Likewise.
21199 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21201 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21202 Reported by: nebuchadnezzar.
21204 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21206 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21207 Reported by: nebuchadnezzar.
21209 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21211 Submenu default support.
21213 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21214 auto_boot. All users updated.
21216 Handle chosen and default with submenus.
21217 (grub_menu_execute_with_fallback): Declared static.
21218 Don't notify failure if autobooted. Upper level does it.
21219 (menuentry_eq): New function.
21220 (get_entry_number): Use menuentry_eq.
21221 (show_menu): New parameter "autobooted". All users updated.
21222 (grub_show_menu): Likewise.
21223 * include/grub/normal.h (grub_show_menu): Likewise.
21224 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21225 (grub_menu_execute_with_fallback): Likewise.
21227 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21229 * util/grub-mklayout.c (usage): Update help text.
21231 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21233 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21235 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21237 * util/grub-menulst2cfg.c (main): Trim the line.
21239 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21241 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21242 (grub_machine_init): Don't check amount of low memory as reportedly
21243 INT 12h can be broken and if low memory is too low we wouldn't have
21244 gotten into grub_machine_init anyway.
21246 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21248 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21249 (grub_machine_mmap_iterate): Take low memory into account
21251 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21253 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21255 Reported by: TiCPU.
21257 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21259 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21262 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21264 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21265 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21267 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21269 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21270 openbsd and netbsd types being in part_bsd module.
21272 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21274 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21275 (_FILE_OFFSET_BITS): Likewise.
21276 Reported by: Seth Goldberg.
21278 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21280 * configure.ac: Check for libdevmapper header.
21282 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21284 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21286 (fzap_lookup): Likewise.
21287 (dnode_get): Likewise.
21288 (make_mdn): Likewise.
21289 (zfs_mount): Likewise.
21290 (fzap_iterate): Use temporary pointer to avoid aliasing.
21291 (grub_zfs_read): Likewise.
21292 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21293 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21294 pointers to avoid aliasing.
21295 (grub_cmd_xnu_kernel64): Likewise.
21296 (grub_xnu_load_driver): Likewise.
21298 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21300 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21302 (grub_cmd_terminal_output): Likewise.
21303 Reported and tested by: Grégoire Sutre.
21305 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21307 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21309 Reported and tested by: Grégoire Sutre.
21311 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21313 * configure.ac: Do CPU substitution even if it's specified explicitly.
21314 Reported and tested by: Alain Greppin.
21316 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21318 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21319 Reported and tested by: Alain Greppin.
21321 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21323 Satisfy some bison versions need for inttypes.h.
21325 * grub-core/lib/posix_wrap/inttypes.h: New file.
21326 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21327 (int16_t): Likewise.
21328 (int32_t): Likewise.
21329 (int64_t): Likewise.
21330 Reported and tested by: Alain Greppin.
21332 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21334 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21335 Silence spurious warning.
21336 Reported and tested by: Alain Greppin.
21338 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21340 * docs/grub.texi (Support automatic decompression): Update with xz
21341 decompression support.
21343 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21345 Improve loaders' kernel command line handling.
21347 * grub-core/lib/cmdline.c: New file.
21348 * include/grub/lib/cmdline.h: Likewise.
21349 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21350 grub_create_loader_cmdline to create kernel command line.
21351 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21352 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21353 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21354 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21355 (linux): Add lib/cmdline.c on common.
21357 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21359 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21360 inopos might be unaligned.
21362 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21364 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21365 endian transformations.
21366 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21367 Based on report by: Doug Nazar.
21369 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21371 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21372 array->members[i].start_sector.
21373 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21375 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21377 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21378 Reported and tested by: Grégoire Sutre.
21380 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21382 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21383 avoid causing test failures by clearing the screen.
21385 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21387 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21388 Fix prefix check to handle the case where dir ends with a slash
21389 (most significantly, "/" itself).
21390 Reported by: Michael Vogt.
21392 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21394 Run terminfo_cls on initing terminfo output to clear the screen and
21395 move the cursor to (0,0).
21397 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21398 Call grub_terminfo_output_init.
21399 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21400 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21401 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21403 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21405 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21408 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21410 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21413 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21415 The E820 type 5 is BADRAM, not EXEC_CODE.
21417 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21418 (GRUB_E820_BADRAM): New define.
21419 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21420 into reserved. Propagate BADRAM.
21421 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21422 (GRUB_E820_BADRAM): New define.
21424 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21426 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21427 Ignore the memory post-4G.
21428 (grub_relocator_firmware_alloc_region): Additional debug statement.
21430 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21432 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21434 Reported by: David Pravec.
21436 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21438 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21441 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21443 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21445 (grub_reed_solomon_recover): Likewise.
21447 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21449 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21451 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21453 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21456 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21458 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21459 descriptions of extract_legacy_entries_source and
21460 extract_legacy_entries_configfile.
21461 Reported by: Seung Soo, Ha.
21463 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21465 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21466 on devices that do not implement function 0.
21468 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21470 * grub-core/fs/hfsplus.c: Make parent unsigned.
21471 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21473 (grub_hfsplus_cmp_extkey): Likewise
21475 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21477 * util/grub-install.in: Correctly use bootloader_id and not
21478 GRUB_DISTRIBUTOR on efibootmgr line.
21480 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21482 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21484 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21486 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21487 Xen and reorder menu item wording to make it clearer that this entry
21488 will launch Xen. Print separate messages when loading Xen and
21491 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21493 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21494 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21495 loop in case of incorrect amiga partmap.
21497 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21499 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21500 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21503 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21505 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21507 Reported by: crocket
21509 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21511 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21513 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21515 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21517 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21519 (grub_cmd_xnu_kextdir): Likewise.
21520 (grub_cmd_xnu_splash): Likewise.
21522 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21524 Avoid using Reed-Solomon with 0 redundancy.
21526 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21527 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21529 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21530 (grub_reed_solomon_recover): Likewise.
21532 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21534 Don't use disk subsystem in freebsd_boot.
21536 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21537 (freebsd_biosdev): Likewise.
21538 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21539 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21541 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21543 Handling of files of unknown size is currently limited. They can't be
21544 used e.g. for initrd or modules. Moreover gzip handling of not
21545 easily seekable files is buggy. Disable unknown file size for now. May
21546 be inefficient but works.
21548 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21549 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21551 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21553 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21556 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21558 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21560 2010-12-25 Shea Levy <shlevy>
21562 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21564 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21566 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21567 Windows Server 2008.
21568 Reported by: Devin Giddings.
21570 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21572 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21573 writing an error message because of async power management.
21574 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21575 (grub_reboot): Likewise.
21577 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21579 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21580 keep unit tests from failing when they shouldn't.
21582 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21584 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21585 previous patch increased the size of the RS code by 20 bytes (at
21586 least with gcc-4.4), so increase this by 20 bytes to match.
21587 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21589 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21591 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21592 scratch area. Make sure to initialise chosen in standalone mode as
21593 well as non-standalone.
21594 Reported by: Robert Hooker and Andy Whitcroft.
21595 Tested by: Andy Whitcroft.
21597 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21599 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21600 constructing a new unescaped string and passing it to grub_xputs in
21601 one go, rather than passing characters to grub_printf one at a time.
21603 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21605 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21606 initialising utf16.
21608 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21610 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21611 comment. Add an extra layer of quotation, requiring the output of
21612 this function to be used in a printf format string.
21613 (gettext_printf): New function.
21614 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21615 Extract translatable strings from here-documents and use a temporary
21616 variable instead, so that xgettext can find them.
21617 * util/grub.d/10_kfreebsd.in: Likewise.
21618 * util/grub.d/10_linux.in: Likewise.
21619 * util/grub.d/20_linux_xen.in: Likewise.
21621 * po/grub.d.sed: New file.
21622 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21623 arguments. Set c-format flags on all strings extracted from
21624 util/grub.d/ (xgettext refuses to include these itself for strings
21625 it extracted from a shell file, but these really are c-format).
21627 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21629 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21630 Avoid next pointing to nowhere.
21632 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21634 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21635 rather than assuming than rootblock is exactly in the middle.
21636 (grub_affs_label): Likewise.
21638 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21640 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21641 reserved_first_sector to 0.
21642 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21643 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21644 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21646 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21648 Fix handling of UTF-16 UDF labels.
21650 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21651 (read_string): .. here.
21652 (grub_udf_label): Use read_string.
21654 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21656 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21657 editor under argument scope.
21658 Reported by: Jordan Uggla
21660 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21662 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21664 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21666 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21667 line, and other keys scroll an entire page (previous handling was
21668 for \r and \n to scroll a page and other keys to scroll two lines).
21670 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21672 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21673 Set ptrdest to correct get_physical_target_address rather than
21674 incorrect get_virtual_current_address.
21676 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21678 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21679 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21681 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21683 * .bzrignore: Ignore grub-core/rs_decoder.S.
21685 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21687 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21688 .mo/.mo.gz opening sequence to ...
21689 (grub_mofile_open_lang): ... here.
21690 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21691 * util/grub.d/00_header.in (grub_lang): Include country part of
21693 Reported by: Mario Limonciello.
21695 2010-12-09 Robert Millan <rmh@gnu.org>
21697 * NEWS: Document addition of ZFS support.
21699 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21701 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21702 rather than `/ 2', as the latter requires -Wa,--divide which would
21703 require bumping our minimum binutils version.
21705 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21707 * util/grub-script-check.c (main): Print script line number on
21710 2010-12-01 Robert Millan <rmh@gnu.org>
21712 * grub-core/fs/zfs/zfs.c: New file.
21713 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21714 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21715 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21716 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21718 * include/grub/zfs/dmu.h: Likewise.
21719 * include/grub/zfs/dmu_objset.h: Likewise.
21720 * include/grub/zfs/dnode.h: Likewise.
21721 * include/grub/zfs/dsl_dataset.h: Likewise.
21722 * include/grub/zfs/dsl_dir.h: Likewise.
21723 * include/grub/zfs/sa_impl.h: Likewise.
21724 * include/grub/zfs/spa.h: Likewise.
21725 * include/grub/zfs/uberblock_impl.h: Likewise.
21726 * include/grub/zfs/vdev_impl.h: Likewise.
21727 * include/grub/zfs/zap_impl.h: Likewise.
21728 * include/grub/zfs/zap_leaf.h: Likewise.
21729 * include/grub/zfs/zfs.h: Likewise.
21730 * include/grub/zfs/zfs_acl.h: Likewise.
21731 * include/grub/zfs/zfs_znode.h: Likewise.
21732 * include/grub/zfs/zil.h: Likewise.
21733 * include/grub/zfs/zio.h: Likewise.
21734 * include/grub/zfs/zio_checksum.h: Likewise.
21736 * Makefile.util.def: Build ZFS into libgrubmods.
21737 * grub-core/Makefile.core.def: Build zfs.mod.
21739 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21741 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21743 * grub-core/commands/wildcard.c (match_files): Likewise.
21745 2010-11-30 Robert Millan <rmh@gnu.org>
21747 * grub-core/loader/i386/bsd.c
21748 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21749 whether kernel is loaded using grub_loader_is_loaded(), rather
21750 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21751 certain error conditions.
21753 2010-11-30 Robert Millan <rmh@gnu.org>
21755 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21756 (grub_cmd_echo): Call grub_refresh() after printing a message.
21758 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21760 Avoid using tricks for initialising endian variables.
21762 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21764 (GRUB_MOD_INIT): Don't byte-swap.
21765 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21766 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21767 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21768 (grub_swap_bytes32_compile_time): Likewise.
21769 (grub_cpu_to_le32_compile_time): Likewise.
21770 (grub_cpu_to_le16_compile_time): Likewise.
21772 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21774 * util/grub-setup.c (setup): Stop recommending --force. People who
21775 understand the dangers of blocklists are able to find this option
21776 anyway and the ones who don't shouldn't use it anyway.
21778 2010-11-26 Robert Millan <rmh@gnu.org>
21780 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21783 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21785 Fix LVM-on-RAID probing.
21787 * util/grub-probe.c (probe): Remember which disk was detected as
21788 RAID (perhaps an LVM physical volume). Use that disk's raidname
21789 rather than that of the top-level disk.
21791 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21793 Fix cmdline argument quotes for setparams command of menuentry
21796 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21797 quotes for arguments.
21798 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21799 grub_strchrsub function instead.
21801 * include/grub/misc.h (grub_strchrsub): New function.
21803 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21805 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21806 effort by skipping "." and ".." entries up-front.
21807 Suggested by: Michael Lazarev.
21809 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21811 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21812 ldflags to ldadd, to fix link line ordering.
21813 (none_decompress): Likewise.
21815 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21817 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21819 (grub-emu-lite): Remove kern/emu/cache.S.
21821 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21823 * util/deviceiter.c (compare_devices): If the by-id link for a
21824 device couldn't be resolved, fall back to sorting by the by-id link
21825 rather than segfaulting.
21826 Reported and tested by: Daniel Mierswa.
21828 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21830 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21831 ldflags, to fix link line ordering.
21833 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21835 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21836 linkers are picky about this.
21838 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21840 * grub-core/Makefile.am (command.lst): Adjust sed expression
21841 ordering so that extended and priority commands aren't treated as
21844 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21846 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21847 Remove byte-swapping function calls, which are not valid in
21848 structure initialisers.
21849 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21851 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21852 grub_gpt_partition_type_bios_boot.
21854 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21856 Fix test program build on GNU/kFreeBSD.
21858 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21859 $(LIBNVPAIR)' library dependencies.
21861 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21863 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21865 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21867 * util/grub-install.in: Remove excessive quoting that broke
21868 installations to RAID devices.
21870 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21872 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21873 bootloader version instead of 0.
21875 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21877 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21880 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21882 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21883 retrieve the metadat sector if size isn't known.
21884 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21886 2010-11-18 Robert Millan <rmh@gnu.org>
21888 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21889 with grub_memcmp().
21891 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21893 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21895 Reported by: Jordan Uggla.
21897 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21899 Make better UTF compliant.
21901 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21902 sequences as incorrect.
21903 (grub_is_valid_utf8): Likewise.
21904 (grub_utf8_to_ucs4): Likewise.
21905 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21906 (grub_ucs4_to_utf8_alloc): Likewise.
21907 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21909 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21911 Make legacy_source behave like source.
21913 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21915 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21917 2010-11-16 Colin Watson <cjwatson@debian.org>
21919 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21920 (-Wunused implies -Wunused-parameter, but not vice versa).
21922 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
21924 * configure.ac: Make error messages less confusing by testing for
21925 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
21926 accepted, but produces a diagnostic if something else is wrong).
21928 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21930 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
21931 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
21933 (grub_keyboard_controller_init)
21934 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
21935 read the initial state since controller isn't inited yet.
21937 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21939 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
21940 allocate_regbeg may need to create new chunk header.
21942 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21944 Fix quoting in legacy parser.
21946 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
21948 (grub_legacy_parse): Likewise.
21949 Reported by: Jordan Uggla.
21950 Tested by: Jordan Uggla.
21952 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21954 Don't add -lgcc on i386 and x86_64.
21956 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
21957 * conf/Makefile.common (LDADD_KERNEL): Likewise.
21958 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
21960 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21962 * configure.ac: Add -Wno-trampolines when supported.
21964 2010-11-14 Modestas Vainius <modax@debian.org>
21966 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
21969 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21971 Add generic logical block size support for UDF.
21973 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
21974 (GRUB_UDF_BLKSZ): Removed.
21975 (struct grub_udf_data): New field "lbshift" to hold the logical block
21976 size of the file system in log2 format. All users updated.
21977 (sblocklist): Change type to unsigned.
21978 (grub_udf_mount): Change type of "sblklist" to unsigned.
21979 Move AVDP search before VRS recognition, because the latter requires
21980 knowledge of the logical block size, which is detected during the
21982 Detect and validate logical block size during AVDP search, adding
21983 support for block sizes 512, 1024 and 4096.
21984 Make VRS recognition independent of block size.
21986 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21988 Properly handle deleted files on UDF.
21990 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
21991 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
21994 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21996 Support reading files larger than 2 GiB.
21998 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
21999 "offset" to grub_off_t.
22000 (grub_udf_read_file): Likewise for parameter "pos".
22002 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22004 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22006 (Simple configuration): Refer to Changes from GRUB Legacy about
22007 save_env availability.
22009 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22011 * util/grub-install.in: Ignore empty partition table detection
22012 instead of trying to include part_ module.
22014 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22016 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22017 LVM on RAID support.
22019 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22021 Properly define WORDS_BIGENDIAN in wrapped environments.
22023 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22025 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22027 Reported by: Manoel Rebelo Abranches.
22028 Tested by: Manoel Rebelo Abranches.
22030 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22032 * util/grub-mkconfig.in: Fix quoting.
22034 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22036 Support big ext2 files.
22038 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22039 (grub_ext2_read_block): Support triple indirect blocks.
22040 (grub_ext2_read_file): Use 64-bit types and read size_high.
22041 (grub_ext2_open): Read size_high.
22042 Reported by: Ximin Luo.
22043 Tested by: Manoel Rebelo Abranches.
22045 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22047 * util/grub-install.in: Handle filenames containing spaces.
22048 Reported by: Jordan Uggla.
22049 Tested by: Jordan Uggla.
22051 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22053 * util/grub-mkconfig.in (grub_script_check): New variable.
22054 Use grub_script_check instead of grub-script-check.
22055 Reported by: Barry Jackson.
22057 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22059 * docs/grub.texi (menu): Correct the order.
22060 Reported by: D. Hugh Redelmeier.
22062 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22064 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22067 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22069 * include/grub/elfload.h (grub_elf32_size): New parameter.
22071 Return maximum segments alignment.
22072 (grub_elf64_size): Likewise.
22073 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22074 Return maximum segments alignment.
22075 (grub_elf64_size): Likewise.
22076 * grub-core/loader/powerpc/ieee1275/linux.c:
22077 (grub_linux_claimmap_iterate): New function. Uses the
22078 "available" property in the "memory" node for memory allocation
22079 for kernel in the PowerPC loader.
22080 (grub_linux_load32): Correctly find linux entry point offset.
22081 (grub_linux_load64): Likewise.
22083 2010-11-07 Robert Millan <rmh@gnu.org>
22085 On mips-yeeloong, build with -march=loongson2f when this flag is
22086 available (GCC >= 4.4).
22087 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22089 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22090 or otherwise add -march=mips3.
22092 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22094 Suppress shell expansion on echo '*' and echo "*" like cases.
22095 Reported by: Jordan Uggla.
22097 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22098 string arguments before shell expansion.
22099 * tests/grub_cmd_echo.in: New testcases.
22101 2010-11-07 Robert Millan <rmh@gnu.org>
22103 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22106 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22108 * grub-core/kern/emu/hostdisk.c
22109 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22111 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22113 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22114 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22115 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22117 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22119 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22121 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22123 * util/grub-install.in: Replace useless recomendation to pass
22124 --modules with a recomendation to report a bug.
22126 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22128 Properly register serial terminfo.
22129 Reported by: Jordan Uggla
22131 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22133 (grub_serial_terminfo_output_template): Likewise.
22134 (grub_cmd_serial): Register "serial" with terminfo.
22135 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22136 grub_serial_terminfo_output.
22138 2010-11-05 Robert Millan <rmh@gnu.org>
22140 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22143 2010-11-05 Robert Millan <rmh@gnu.org>
22145 On Yeeloong, pass machine type information to Linux.
22147 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22148 (LOONGSON_MACHTYPE): New macro, set to
22149 "machtype=lemote-yeeloong-2f-8.9inches".
22150 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22151 additional argument to Linux.
22153 2010-11-04 Robert Millan <rmh@gnu.org>
22155 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22156 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22157 (its SATA disks are detected as slaveless IDE master drives on
22159 Reported by Carsten Aulbert.
22161 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22163 * util/bin2h.c (main): Fix spelling error in generated output.
22165 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22167 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22169 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22171 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22172 vga= option is supplied.
22174 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22176 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22177 * util/grub.d/10_kfreebsd.in: Likewise.
22178 * util/grub.d/10_linux.in: Likewise.
22179 * util/grub.d/20_linux_xen.in: Likewise.
22181 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22183 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22184 argument as an argument to no-argument option.
22186 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22188 * util/grub.d/10_linux.in: Add missing load_video with explicit
22189 GRUB_GFXPAYLOAD_LINUX.
22191 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22193 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22195 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22197 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22198 elements with invlid index.
22199 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22200 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22202 * include/grub/raid.h (grub_raid_member): New struct.
22203 (grub_raid_array): Transform devices and start_sector into usage of
22204 grub_raid_member. All users updated
22205 (allocated_devs): New member.
22207 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22209 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22212 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22214 NetBSD build fix for getline function conflict from gnulib.
22216 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22217 components that depend on gnulib headers.
22218 (libgrubmods.a): Renamed from earlier libgrub.a.
22219 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22221 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22223 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22224 install rather than creating a broken install.
22226 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22228 * util/grub-setup.c (argp): Remove misleading example of installing to
22231 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22233 * util/grub-setup.c (setup): Clarify the error message.
22235 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22237 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22239 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22241 * grub-core/kern/emu/misc.c
22242 (grub_make_system_path_relative_to_its_root)
22243 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22245 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22247 * grub-core/kern/emu/misc.c
22248 (grub_make_system_path_relative_to_its_root): Revert r2882.
22250 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22252 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22253 useless field head. All users updated.
22254 (free_subchunk): Correct handling of IN_REGION subchunk.
22256 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22258 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22259 (Supported kernels): Likewise.
22261 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22263 Make mktemp invocations portable.
22265 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22266 exit if mktemp fails.
22267 * tests/grub_script_blockarg.in: Likewise.
22268 * tests/partmap_test.in: Likewise.
22269 * tests/util/grub-shell-tester.in: Likewise.
22270 * tests/util/grub-shell.in: Likewise.
22271 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22272 * Makefile.am: Likewise, and chain shell commands with `&&'
22274 * util/grub-mkrescue.in: Use the same explicit template as above, and
22275 exit if mktemp fails.
22277 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22279 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22280 Linux kernel, reported by Dennis Schridde.
22282 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22284 * grub-core/normal/auth.c (grub_auth_check_authentication):
22285 Set-but-not-used variable removed.
22287 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22289 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22290 32-bit linux protocol.
22292 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22294 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22295 cursor shape for sanity.
22297 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22299 * docs/grub.texi (Installation): Document buggy BIOS install.
22301 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22303 * docs/grub.texi (Installation): Indent.
22305 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22307 * util/grub-setup.c (setup): New parameter allow_floppy.
22308 (arguments): New member allow_floppy.
22309 (argp_parser): Handle --allow-floppy.
22310 (main): Pass allow_floppy.
22311 * util/grub-install.in: New option --allow-floppy passed though to
22314 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22316 * util/grub-install.in: Handle partitionless disks.
22318 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22320 * util/grub-setup.c (setup): Don't clean blocklists before readability
22323 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22325 * docs/grub.texi (Installation): Document embedding zone. Remove
22326 obsolete grub-install example.
22328 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22330 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22331 Set-but-not-used variable ifdef'ed.
22332 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22333 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22335 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22336 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22337 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22338 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22339 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22340 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22341 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22342 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22343 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22344 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22345 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22348 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22350 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22351 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22354 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22356 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22357 synonym to _S5_. Needed for some DSDTs.
22359 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22361 Userspace ACPI parser debugging.
22363 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22364 headers and add relevant defines. Don't include standard headers.
22365 (main) [GRUB_DSDT_TEST]: New function.
22366 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22367 Don't declare functions.
22369 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22371 Remove dead grub_efi_mm_fini.
22373 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22374 (ALLOCATED_PAGES_SIZE): Likewise.
22375 (MAX_ALLOCATED_PAGES): Likewise.
22376 (allocated_pages): Likewise.
22377 (grub_efi_allocate_pages): Don't record allocated pages.
22378 (grub_efi_free_pages): Likewise.
22379 (grub_efi_mm_init): Likewise.
22380 (grub_efi_mm_fini): Removed.
22382 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22384 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22385 (grub_efi_mm_init): Take into account the memory map size increase.
22387 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22389 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22390 (serial_hw_put): Wait based on real time rather than port reads. Don't
22392 * include/grub/serial.h (grub_serial_port): New field broken.
22394 2010-10-16 Robert Millan <rmh@gnu.org>
22396 * grub-core/kern/emu/misc.c
22397 (grub_make_system_path_relative_to_its_root): Fix premature return
22398 when processing non-root ZFS filesystems.
22399 Reported by Sergio Talens-Oliag.
22401 2010-10-15 Robert Millan <rmh@gnu.org>
22403 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22404 guarantee compressed ones are processed first.
22406 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22408 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22409 grub_efiemu_autocore.
22411 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22413 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22415 (grub_console_getkey): Use correct jae opcode rather than ja.
22417 2010-10-12 Robert Millan <rmh@gnu.org>
22419 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22420 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22421 variable. All references updated.
22423 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22425 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22427 Correctly distinguish mdraid flavours.
22429 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22430 (insert_array): New argument raid.
22431 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22432 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22433 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22435 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22437 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22438 handling of special keys.
22440 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22442 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22443 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22445 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22447 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22448 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22450 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22451 Use right endpoint when querying descriptor.
22453 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22455 Clear out 0x80 color bit on EFI.
22457 Reported by: decoder and meta tech.
22459 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22460 (grub_console_setcolorstate): Clear out 0x80 bit.
22461 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22462 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22463 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22465 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22467 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22470 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22472 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22473 mo_file after freeing.
22475 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22477 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22479 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22481 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22484 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22486 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22489 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22491 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22493 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22494 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22495 and terminfo.h when needed.
22496 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22497 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22498 (terminfo): Enable only on terminfokernel.
22499 (extcmd): Likewise.
22500 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22501 * include/grub/lib/arg.h: Likewise.
22502 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22503 incorrect usage of ->.
22505 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22507 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22508 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22510 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22512 Fix coreboot compilation.
22514 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22515 Take VBE info into account even if only text is supported.
22516 (fill_vbe_info): Take into account the case when only VGA text
22518 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22519 on coreboot, multiboot and qemu.
22521 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22523 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22525 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22527 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22529 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22532 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22534 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22535 if they were BSD-style.
22537 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22539 * grub-core/boot/i386/pc/lnxboot.S: Replace
22540 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22541 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22543 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22545 Write embedding zone using Reed-Solomon.
22547 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22548 * grub-core/Makefile.am (rs_decoder.S): New target.
22549 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22550 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22551 (multiboot): Move to RS part.
22552 (post_reed_solomon): New label.
22553 (grub_boot_drive): Move to non-RS part since it's modified in memory
22555 Include rs_decoder.S.
22556 * grub-core/lib/reed_solomon.c: New file.
22557 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22559 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22560 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22561 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22562 * include/grub/partition.h (grub_partition_map): Change prototype of
22563 embed to allow returning additional sectors.
22564 * include/grub/reed_solomon.h: New file.
22565 * util/grub-setup.c (setup): Handle Reed-Solomon.
22567 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22569 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22570 i386 and x86-64 definedness tests.
22572 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22574 Fix generation of kernel_syms.lst
22576 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22579 2010-09-26 Robert Millan <rmh@gnu.org>
22581 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22583 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22584 the pool is an array of devices, iterate through it and return the
22585 first device that passes a stat() test (instead of blindly returning
22588 2010-09-26 Robert Millan <rmh@gnu.org>
22590 Build fixes for GNU/kFreeBSD.
22592 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22593 to programs that require ZFS conversion.
22594 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22595 kernels that don't have FLOPPY_MAJOR.
22597 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22599 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22601 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22603 Fix grub-emu build.
22605 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22606 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22607 mdraid09 and mdraid1x.
22609 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22611 Re-enable grub-extras.
22613 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22614 avoid confusing Automake. Run autogen only twice, once for the top
22615 level and once for grub-core. Add Makefile.util.def and
22616 Makefile.core.def from extra modules to the appropriate autogen
22617 invocations. If Makefile.common exists in an extra module, include
22618 it in both Makefile.util.am and grub-core/Makefile.core.am;
22619 similarly, include any Makefile.util.common file in Makefile.util.am
22620 and any Makefile.core.common file in grub-core/Makefile.core.am.
22621 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22622 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22623 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22624 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22626 * gentpl.py (gvar_add): Turn GVARS into a set.
22627 (global_variable_initializers): Sort global variables on output.
22628 (vars_init): New function.
22629 (first_time): Likewise.
22630 (library): Ensure that non-global variable initialisations are
22631 emitted before the first time we emit code for a library block.
22632 Append to variables rather than setting them. Only emit
22633 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22634 each conditional path.
22635 (program): installdir() emits an Autogen macro, so must be passed to
22636 var_add rather than gvar_add.
22638 (script): Likewise.
22639 (rules): New function, centralising handling for different target
22640 types. Set up Guile association lists for first_time and vars_init,
22641 and send most output to a diversion so that variable initialisations
22642 can be emitted first.
22643 (module_rules): Use new rules function.
22644 (kernel_rules): Likewise.
22645 (image_rules): Likewise.
22646 (library_rules): Likewise.
22647 (program_rules): Likewise.
22648 (script_rules): Likewise.
22649 (data_rules): Likewise.
22651 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22653 * .bzrignore: Add contrib and grub-core/contrib. Remove
22654 grub-core/Makefile.gcry.am.
22656 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22658 * grub-core/lib/LzFind.c: Add missing include.
22659 * grub-core/lib/LzmaEnc.c: Likewise.
22660 * grub-core/script/lexer.c: Likewise.
22661 * grub-core/script/yylex.l: Likewise.
22662 * util/grub-macho2img.c: Likewise.
22663 * util/grub-menulst2cfg.c: Likewise.
22664 * util/grub-mklayout.c: Likewise.
22665 * util/grub-mkpasswd-pbkdf2.c
22666 * util/grub-mkrelpath.c: Likewise.
22667 * util/resolve.c: Likewise.
22669 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22671 * Makefile.util.def (example_unit_test): Add
22672 grub-core/gnulib/libgnu.a.
22674 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22676 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22678 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22680 Support xz compression on yeeloong.
22682 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22683 * configure.ac: Check for LZMA.
22684 * grub-core/Makefile.core.def (xz_decompress): New target.
22685 (none_decompress): Likewise.
22686 * grub-core/boot/decompressor/minilib.c: New file.
22687 * grub-core/boot/decompressor/none.c: Likewise.
22688 * grub-core/boot/decompressor/xz.c: Likewise.
22689 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22690 * grub-core/kern/mips/cache_flush.S: Likewise.
22691 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22692 * grub-core/kern/mips/startup.S: Move first stage to ...
22693 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22695 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22696 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22697 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22698 Allocate statically.
22699 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22700 Allocate statically or use scratch. Don't check CRC32.
22701 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22702 Allocate statically. Don't check CRC32.
22703 * include/grub/decompressor.h: New file.
22704 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22706 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22707 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22708 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22709 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22710 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22711 * util/grub-mkimage.c (grub_compression_t): New type.
22712 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22713 (image_target_desc): New field default_compression.
22714 (image_targets): Adjust yeeloong targets.
22715 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22716 (compress_kernel): New parameter comp.
22717 (generate_image): Likewise. Handle new compression case.
22718 (options): New option --compression
22720 (main): Handle new option.
22722 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22724 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22726 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22728 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22729 typo in __i386__ conditional.
22731 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22733 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22736 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22738 Implement EFI and ACPI multiboot2 extensions.
22740 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22741 new tags as supported.
22742 (acpiv2_size): New function.
22743 (grub_multiboot_get_mbi_size): Take new tags into account.
22744 (grub_multiboot_make_mbi): Add new tags.
22745 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22747 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22749 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22750 Added missing configuration of USB device.
22752 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22754 * grub-core/normal/menu_entry.c (run): Make sure we always return
22757 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22759 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22760 NumberOfPages is UINT64 according to the UEFI specification, not
22761 UINTN. Fix printf format.
22763 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22765 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22766 `err' to grub_usb_err_t.
22767 Reported and tested by: KESHAV P.R.
22769 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22771 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22772 tpart non-const, so that we can assign to it. (Since this is a
22773 typedef, the constness refers to the pointer rather than what it
22776 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22778 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22779 $(top_srcdir)/grub-core/gnulib as well as
22780 $(top_builddir)/grub-core/gnulib.
22781 Reported by: KESHAV P.R.
22783 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22785 * util/grub-install.in: Fix the bootloader ID option to be
22786 consistently --bootloader-id, not --bootloader_id.
22787 Reported by: KESHAV P.R.
22789 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22791 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22792 check hash checksum." consistently translatable.
22794 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22796 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22799 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22801 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22802 (GRUB_MOD_INIT): Register sha1sum command.
22803 (GRUB_MOD_FINI): Unregister sha1sum command.
22805 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22807 Keep boot and grub directory names in sync with utils scripts
22809 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22810 * config.h.in: Add previous macros.
22811 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22812 * util/grub-install.in: Use $bootdir and $grubdir variables.
22814 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22816 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22817 convert partition names to disk names if the new `convert' parameter
22819 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22820 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22821 disk in its own right. This can happen with Xen disk images.
22823 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22825 * util/grub-editenv.c: Update strings to avoid warnings when generating
22827 * util/grub-setup.c: Likewise.
22829 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22831 * configure.ac: Change version to 1.99~beta0.
22833 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22835 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22837 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22839 * include/multiboot.h: Resynced with specification.
22840 * include/multiboot2.h: Likewise.
22842 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22844 Fix po directory handling.
22846 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22847 * grub-core/gnulib/Makefile.am: Import gettext module.
22848 * m4/gnulib-cache.m4: Likewise.
22849 * m4/gnulib-comp.m4: Likewise.
22850 * m4/gettext.m4: New file, from gnulib.
22851 * m4/glibc2.m4: Likewise.
22852 * m4/iconv.m4: Likewise.
22853 * m4/intdiv0.m4: Likewise.
22854 * m4/intl.m4: Likewise.
22855 * m4/intldir.m4: Likewise.
22856 * m4/intlmacosx.m4: Likewise.
22857 * m4/intmax.m4: Likewise.
22858 * m4/inttypes-pri.m4: Likewise.
22859 * m4/lcmessage.m4: Likewise.
22860 * m4/lib-ld.m4: Likewise.
22861 * m4/lib-link.m4: Likewise.
22862 * m4/lib-prefix.m4: Likewise.
22863 * m4/lock.m4: Likewise.
22864 * m4/nls.m4: Likewise.
22865 * m4/po.m4: Likewise.
22866 * m4/printf-posix.m4: Likewise.
22867 * m4/progtest.m4: Likewise.
22868 * m4/threadlib.m4: Likewise.
22869 * m4/uintmax_t.m4: Likewise.
22870 * m4/visibility.m4: Likewise.
22871 * po/Makefile.am: Remove.
22872 * po/Makefile.in.in: New file, from gettext.
22873 ($(DOMAIN).pot-update): Support POTFILES-shell.
22874 * po/Makevars: New file.
22875 * po/POTFILES-shell: Rename to ...
22876 * po/POTFILES-shell.in: ... this. Update.
22877 * po/POTFILES: Rename to ...
22878 * po/POTFILES.in: ... this. Update.
22879 * po/Rules-quot: New file, from gettext.
22880 * po/boldquot.sed: Likewise.
22881 * po/en@boldquot.header: Likewise.
22882 * po/en@quot.header: Likewise.
22883 * po/insert-header.sin: Likewise.
22884 * po/quot.sed: Likewise.
22885 * po/remove-potcdate.sin: Likewise.
22887 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22889 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22891 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22893 * util/grub.d/20_linux_xen.in: Use submenus.
22895 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22899 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22900 parameter submenu. All users updated.
22901 * grub-core/normal/main.c (free_menu): Rename to ...
22902 (grub_normal_free_menu): ... this. Made global.
22903 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22905 * grub-core/normal/menu_entry.c (screen): New field submenu.
22906 (make_screen): Set submenu.
22907 (run): Open new context if requested.
22908 * include/grub/menu.h (grub_menu_entry): New field submenu.
22909 * include/grub/normal.h (grub_normal_free_menu): New proto.
22911 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22913 Menu entries extractor.
22915 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22917 (GRUB_MOD_INIT): Register new variants.
22918 (GRUB_MOD_FINI): Unregister new variants.
22919 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22920 into grub_cmd_legacy_source.
22921 (grub_cmd_legacy_source): Implement extractor variants.
22922 (GRUB_MOD_INIT): Register new variants.
22923 (GRUB_MOD_FINI): Unregister new variants.
22924 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
22926 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
22927 search as an extractor.
22928 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
22929 test as an extractor.
22930 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
22932 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
22933 (grub_env_new_context): New function.
22934 (grub_env_context_open): Likewise.
22935 (grub_env_extractor_open): Likewise.
22936 (grub_env_extractor_close): Likewise.
22937 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22938 grub_extractor_level.
22939 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
22940 * include/grub/env.h (grub_env_extractor_open): New proto.
22941 (grub_env_extractor_close): Likewise.
22942 * include/grub/normal.h (grub_extractor_level): New external variable.
22944 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22946 Make cutmem accept a region specification.
22947 Suggested by: Samuel Thibault
22949 * grub-core/mmap/mmap.c (parsemem): New function.
22950 (grub_cmd_cutmem): Handle new arguments.
22952 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22954 New command cutmem.
22956 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
22957 (GRUB_MOD_INIT): Register new command.
22958 (GRUB_MOD_FINI): Unregister new command.
22960 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22962 Support some annoying BSD and Minix subpartitions.
22964 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
22965 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
22966 Properly handle concatenation.
22967 * grub-core/kern/device.c (grub_device_iterate): Likewise.
22968 * grub-core/normal/completion.c (iterate_partition): Likewise.
22969 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
22970 contain partition. All users updated.
22971 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
22973 (grub_openbsdlabel_partition_map): Likewise.
22974 (bsdlabel_partition_map_iterate): Rename to ..
22975 (iterate_real): ... this. New arguments sector, freebsd and pmap.
22976 (bsdlabel_partition_map_iterate): New function.
22977 (netopenbsdlabel_partition_map_iterate): Likewise.
22978 (netbsdlabel_partition_map_iterate): Likewise.
22979 (openbsdlabel_partition_map_iterate): Likewise.
22980 (GRUB_MOD_INIT): Register new partmaps.
22981 (GRUB_MOD_FINI): Unregister new partmaps.
22982 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
22983 (grub_partition_msdos_iterate): ... this. All users updated.
22984 Don't support embedding other than in a minix partition.
22985 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
22987 * include/grub/partition.h (grub_partition): New field msdostype.
22988 * util/grub-install.in: Handle openbsd and netbsd types being in
22991 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22993 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
22995 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
22996 * grub-core/Makefile.core.def (mdraid): Renamed to ...
22997 (mdraid09): ... this.
22998 (mdraid1x): New module.
22999 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23000 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23002 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23004 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23007 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23009 * grub-core/commands/efi/lsefimmap.c: Correct header.
23012 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23014 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23015 as printf format strings; the translations might contain '%' which
23016 could cause a crash.
23018 * util/grub-fstest.c (argp_parser): Likewise.
23019 * util/grub-setup.c (argp_parser): Likewise.
23022 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23024 Use argp in grub-fstest.
23026 * util/grub-fstest.c: Don't include getopt.h.
23028 (root): New variable.
23029 (args_count): Likewise.
23031 (num_disks): Likewise.
23032 (images): Likewise.
23034 (debug_str): Likewise.
23036 (options): Transformed to argp.
23038 (main): Split argument parsing into ...
23039 (argp_parser): ... this. Changed to argp format.
23040 (argp): New variable.
23041 (main): Use argp_parse.
23043 2010-09-20 Tristan Gingold <gingold@free.fr>
23044 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23045 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23047 * grub-core/commands/efi/lsefimmap.c: New file.
23048 * grub-core/Makefile.core.def (lsefimmap): New module.
23049 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23051 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23053 Pause the execution (10s max) if any errors are displayed so the user
23054 has a chance to see them.
23056 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23057 (grub_print_error): Increment grub_err_printed_errors.
23058 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23059 execution if any errors were displayed.
23060 (show_menu): Remove old code for pause.
23061 * grub-core/normal/menu_entry.c (run): Likewise.
23062 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23064 (grub_normal_get_char_counter): Likewise.
23065 * include/grub/err.h (grub_err_printed_errors): New external variable.
23066 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23068 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23070 Support multiboot VBE info.
23072 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23073 Take VBE info into account.
23074 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23075 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23076 Call fill_vbe_info when appropriate.
23077 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23078 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23080 (grub_multiboot_get_mbi_size): Take new tags into account.
23081 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23082 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23083 Call fill_vbe_tag when appropriate.
23084 (grub_multiboot_make_mbi): Properly align tags.
23085 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23087 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23089 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23091 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23093 Suport manual terminal geometry specification.
23095 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23096 Save state in grub_ofconsole_terminfo_output.
23097 (grub_ofconsole_term): Use grub_terminfo_getwh.
23098 (grub_ofconsole_getwh): Removed.
23099 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23100 (grub_serial_term): Use grub_terminfo_getwh.
23101 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23102 (options): New struct.
23103 (OPTION_*): New enum.
23104 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23105 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23107 (grub_terminfo_getwh): New proto.
23108 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23110 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23112 Handle legacy "terminal" command.
23114 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23116 (legacy_commands): Add terminal and title.
23117 (grub_legacy_parse): Handle terminal. Simplify title handling.
23119 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23121 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23122 parameters overflow.
23124 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23126 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23129 * docs/grub.texi (Shell-like scripting): Document `!'.
23130 (Network): Simplify using new i386-pc-pxe format. Mention
23135 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23137 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23138 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23141 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23143 * grub-core/commands/efi/lsefisystab.c: Correct header.
23144 * grub-core/commands/efi/lssal.c: Likewise.
23145 * grub-core/commands/testload.c: Likewise.
23147 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23149 * util/grub-mkrescue.in: Add explicit root argument to --set to
23150 prevent the UUID being interpreted as an argument to --set (matches
23151 previous change to prepare_grub_to_access_device).
23153 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23155 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23156 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23157 the verbosity of later #ifs.
23158 (find_partition_start): Define this function on FreeBSD too.
23159 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23161 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23164 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23166 * util/grub-editenv.c: Use argp instead of getopt.
23168 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23170 * util/grub-setup.c: Use argp instead of getopt.
23172 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23174 Use gnulib-tool to create gnulib source files.
23176 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23177 grub-core/gnulib directories
23178 * .bzignore: Add **/.deps and autogenerated gnulib files
23179 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23180 of gnulib macros, add grub-core/gnulib/Makefile
23181 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23182 include m4 directory to aclocal.
23183 * Makefile.util.def: Remove direct compilation of gnulib source files
23184 and use the new grub-core/gnulib/libgnu.a.
23185 * build-aux/config.rpath: move config.rpath from top directory to
23187 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23189 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23190 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23191 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23193 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23196 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23198 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23199 grub-core/genmod.sh and grub-core/gensyminfo.sh
23201 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23203 Add a test for echo command options.
23205 * tests/grub_cmd_echo.in: New test.
23206 * Makefile.util.def: Rules for new test.
23208 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23210 Remove crc.mod and move crc command to hashsum.mod.
23211 Remove lib/crc.c - users updated to use gcrypt implementation.
23213 * grub-core/commands/crc.c: Removed.
23214 * grub-core/Makefile.core.def (crc): Module removed.
23215 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23216 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23217 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23218 * grub-core/lib/crc.c: Removed.
23219 * include/grub/lib/crc.h: Removed.
23220 * Makefile.util.def (crc): Remove lib/crc.c
23221 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23222 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23223 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23224 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23225 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23226 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23228 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23230 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23232 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23234 Split config.h for util and core.
23236 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23237 (ADDR32): Likewise.
23238 (DATA32): Likewise.
23239 (BSS_START_SYMBOL): Likewise.
23240 (END_SYMBOL): Likewise.
23241 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23242 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23243 * config.h.in: New file.
23244 * configure.ac: Use config-util.h as config define file.
23245 Rename MACHINE into GRUB_MACHINE. All users updated.
23246 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23248 (NESTED_FUNC_ATTR): Likewise.
23249 Substitue new variables.
23250 (COND_HAVE_ASM_USCORE): New conditional.
23251 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23252 (kernel_syms.lst): Use ASM_PREFIX.
23253 * grub-core/kern/emu/console.c: Include config-util.h.
23254 * grub-core/kern/emu/misc.c: Likewise.
23255 * grub-core/kern/emu/mm.c: Likewise.
23256 * include/grub/emu/misc.h: Likewise.
23257 * include/grub/libgcc.h: Likewise.
23259 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23261 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23263 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23264 Fix GRUB_TERM_KEY_* constants usage.
23265 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23267 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23269 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23271 * grub-core/bus/usb/uhci.c: Remove empty define.
23272 (grub_uhci_check_transfer): Add missing cast.
23273 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23275 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23277 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23279 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23281 * grub-core/Makefile.core.def (legacycfg): Add
23282 lib/i386/pc/vesa_modes_table.c on emu.
23284 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23286 Reduce number of temporary files generated by build system.
23288 * grub-core/gencmdlist.sh: Removed.
23289 * grub-core/genfslist.sh: Removed.
23290 * grub-core/genhandlerlist.sh: Removed.
23291 * grub-core/genmodsrc.sh: Removed.
23292 * grub-core/genpartmaplist.sh: Removed.
23293 * grub-core/genparttoollist.sh: Removed.
23294 * grub-core/gentermiinallist.sh: Removed.
23295 * grub-core/genvideolist.sh: Removed.
23297 * grub-core/genmod.sh.in: New file.
23298 * grub-core/gensyminfo.sh.in: New file.
23300 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23301 * conf/Makefile.extra-dist: Update with new files.
23302 * gentpl.py: Remove rules related to unnecessary temporary files.
23303 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23305 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23307 * grub-core/bus/usb/uhci.c: Remove empty #define.
23308 * grub-core/genmoddep.awk: Updated with new syminfo format.
23309 * util/bash-completion.d/Makefile.am: Add config.log to
23312 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23314 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23316 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23318 * util/grub-mkconfig.in: Check the config script for syntax errors
23321 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23322 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23324 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23326 * util/grub-install.in: Add EFI and IEEE1275 support.
23327 * util/i386/efi/grub-install.in: Removed.
23328 * util/ieee1275/grub-install.in: Likewise.
23330 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23332 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23333 (grub_cmd_cmosclean): Likewise.
23334 (GRUB_MOD_INIT): Register command cmosclean.
23335 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23336 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23338 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23339 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23340 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23342 Add keyboard layouts support.
23344 * Makefile.util.def (grub-mklayout): New file.
23345 (grub-kbdcomp): New script.
23346 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23347 Add keyboard_layouts.h.
23348 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23349 commands/boot.c on yeeloong.
23350 (keylayouts): New module.
23351 * grub-core/bus/usb/ohci.c
23352 * grub-core/bus/usb/uhci.c
23353 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23354 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23355 (attach_root_port): Likewise.
23356 (poll_nonroot_hub): Likewise.
23357 (grub_usb_poll_devices): Likewise.
23358 (detach_device): Close transfer.
23359 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23361 (grub_usb_bulk_setup_readwrite): Likewise.
23362 (grub_usb_bulk_finish_readwrite): Likewise.
23363 * grub-core/commands/keylayouts.c: New file.
23364 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23365 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23367 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23368 support scancode 2.
23369 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23370 * include/grub/keyboard_layouts.h: New file.
23371 * util/grub-mklayout.c: New file.
23372 * util/grub-kbdcomp.in: Likewise.
23374 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23376 Unify memory types.
23378 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23379 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23381 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23382 (grub_upper_mem): Likewise.
23383 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23384 * include/grub/memory.h (grub_memory_type_t): New enum.
23387 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23389 * grub-core/Makefile.core.def (lsapm): New module.
23390 * grub-core/commands/i386/pc/lsapm.c: New file.
23391 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23392 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23394 * include/grub/i386/pc/apm.h: New file.
23395 * include/multiboot.h (multiboot_apm_info): New struct.
23397 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23399 GRUB-legacy configuration file support.
23401 * Makefile.util.def (grub-menulst2cfg): New util.
23402 * docs/man/grub-menulst2cfg.h2m: New file.
23403 * grub-core/Makefile.core.def (legacycfg): New module.
23404 * grub-core/commands/legacycfg.c: New file.
23405 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23406 (grub_normal_add_menu_entry): ... this.
23407 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23408 (grub_normal_set_password): ...this.
23409 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23410 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23411 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23412 * grub-core/lib/legacy_parse.c: New file.
23413 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23414 * include/grub/i386/pc/vesa_modes_table.h: New file.
23415 * include/grub/legacy_parse.h: Likewise.
23416 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23417 * util/grub-menulst2cfg.c: New file.
23419 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23421 * grub-core/kern/emu/hostdisk.c
23422 (convert_system_partition_to_system_disk): Initialise node.
23424 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23426 * grub-core/kern/emu/hostdisk.c
23427 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23429 Reported and based on patch by: Modestas Vainius.
23431 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23433 Fix DM-RAID probing with recent versions of device-mapper udev
23436 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23437 canonicalise device paths under /dev/mapper/.
23438 (convert_system_partition_to_system_disk): Compare the
23439 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23440 path, since device nodes under /dev/mapper/ are often symlinks.
23442 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23444 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23446 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23448 * configure.ac: Avoid some annoying error messages if freetype-config
23449 program is not found.
23451 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23453 Support RAID on virtio devices, and others.
23455 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23457 [__MINGW32__] (grub_find_device): ... this.
23458 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23459 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23460 reasonable default if dir is NULL.
23461 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23463 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23464 (grub_guess_root_device): Update callers.
23465 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23467 * util/raid.c (grub_util_getdiskname): Remove.
23468 (grub_util_raid_getmembers): Use grub_find_device rather than
23469 grub_util_getdiskname.
23471 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23473 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23474 needing to be compiled with serial support.
23475 (ls): Indicate that multiple files are accepted.
23476 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23477 indicate that multiple files are accepted.
23479 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23481 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23482 libgrub_a_init.c, and util/bash-completion.d/grub.
23484 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23486 * util/grub-setup.c (setup): Fix incorrect container semantics.
23488 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23490 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23492 Reported by: J. Nick Terry
23494 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23496 Move embedding routines to partmap sources files.
23498 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23499 [GRUB_UTIL]: New variable.
23500 (gpt_partition_map_iterate): Set part.parent.
23501 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23502 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23503 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23505 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23506 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23507 (grub_partition_map) [GRUB_UTIL]: New field embed.
23508 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23509 (setup): Use ->embed.
23511 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23513 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23515 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23516 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23518 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23520 Add function to get completions from usage.
23522 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23523 completions from usage. Use LC_ALL=C to get options properly.
23525 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23527 * grub-core/gnulib/basename-lgpl.c: Imported.
23528 * grub-core/gnulib/basename.c: Likewise.
23529 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23530 * grub-core/gnulib/dirname.c: Likewise.
23531 * grub-core/gnulib/dirname.h: Likewise.
23532 * grub-core/gnulib/stripslash.c: Likewise.
23534 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23536 * grub-core/gnulib/error.c: Resynced.
23537 * grub-core/gnulib/getopt.c: Likewise.
23538 * grub-core/gnulib/getopt_int.h: Likewise.
23539 * grub-core/gnulib/regex.h: Likewise.
23540 * grub-core/gnulib/regex_internal.c: Likewise.
23541 * grub-core/gnulib/regex_internal.h: Likewise.
23543 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23545 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23546 CRC calculations and validity checks.
23547 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23550 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23552 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23554 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23556 Fix incorrect echo options handling.
23557 Reported by: Yves Blusseau.
23559 * include/grub/command.h (grub_command_flags_t): New flags
23560 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23561 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23562 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23564 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23566 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23568 (GRUB_COMMAND_FLAG_MENU): Likewise.
23569 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23570 (GRUB_COMMAND_FLAG_TITLE): Removed.
23571 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23572 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23573 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23574 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23575 (grub_command_flags_t): New enum. All users updated.
23577 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23579 Fix solaris compilation.
23581 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23582 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23583 (grub-emu-list): Likewise.
23585 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23587 Remove deprecated root command.
23589 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23592 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23594 * util/i386/pc/grub-setup.c: Merge this ...
23595 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23596 * util/grub-setup.c: ... into this.
23597 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23600 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23602 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23605 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23607 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23610 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23612 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23613 explicit root argument to set to prevent UUID to be interpreted as
23616 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23618 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23620 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23622 Don't export grub_gate_a20.
23624 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23625 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23627 (grub_gate_a20): ... this. All users updated.
23628 * include/grub/i386/pc/init.h: Removed. All users updated.
23630 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23632 Create euro.pf2 which supports most European languages.
23634 * Makefile.am (grubdata_DATA): Add euro.pf2.
23635 (euro.pf2): New target.
23636 (CLEANFILES): Add euro.pf2.
23638 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23640 * configure.ac: Disable emu-usb by default to prevent inadvertent
23643 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23645 Disable usbserial on grub-emu since our libusb code isn't good enough
23648 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23649 (usbserial_pl2303): Likewise.
23650 (usbserial_ftdi): Likewise.
23652 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23654 * include/grub/disk.h (grub_disk): Remove has_partitions.
23656 * disk/loopback.c (grub_loopback): Remove has_partitions.
23658 (options): Remove partitions. All users updated.
23659 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23660 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23661 actual partition table is found.
23663 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23665 Remove readability checks (too many false negatives).
23667 * util/grub-install.in: Remove readability checks.
23668 * util/grub-mkconfig.in: Likewise.
23669 * util/grub.d/10_hurd.in: Likewise.
23670 * util/grub.d/10_kfreebsd.in: Likewise.
23671 * util/grub.d/10_linux.in: Likewise.
23672 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23675 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23677 Enable acpi shutdown on all ACPI platforms.
23679 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23680 on coreboo, multiboot and EFI.
23681 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23682 (grub_acpi_halt): Likewise.
23683 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23684 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23685 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23686 * grub-core/lib/i386/halt.c (grub_halt)
23687 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23689 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23691 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23694 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23696 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23697 * grub-core/video/efi_uga.c: Likewise.
23699 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23701 Filter devaliases and never open same device twice.
23703 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23704 (last_ihandle): Likewise.
23705 (ofdisk_hash_ent): New member shortest.
23706 (ofdisk_hash_add): Add canonical path too.
23707 (scan): New function.
23708 (grub_ofdisk_iterate): Iterate over hashed entries.
23709 (compute_dev_path): Don't add :0.
23710 (grub_ofdisk_open): Don't really open the disk.
23711 (grub_ofdisk_close): Avoid closing unrelated disk.
23712 (grub_ofdisk_read): Implement reopen logic.
23713 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23715 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23718 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23722 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23723 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23724 right address. Add sparc64_ieee1275_ldflags.
23725 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23726 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23727 to grub_host_to_target_addr
23728 (load_image): Likewise.
23730 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23732 * grub-core/normal/completion.c (complete_file): Handle device
23734 Fix based on patch by Doug Nazar.
23736 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23738 grub-mknetdir script.
23740 * Makefile.util.def (grub-mknetdir): New module.
23741 * tests/util/grub-shell.in: Support boot=net
23742 * util/grub-mknetdir.in: New file.
23744 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23746 videoinfo on non-vbe.
23748 * grub-core/Makefile.core.def (vbeinfo): Removed.
23749 (vbetest): Removed.
23750 (videoinfo): New module.
23751 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23752 * grub-core/commands/i386/pc/vbetest.c: Removed.
23753 * grub-core/commands/videoinfo.c: New file.
23754 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23756 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23758 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23759 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23760 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23761 mode_number. New parameter mode. All users updated.
23762 (grub_video_gop_iterate): New function.
23763 (grub_video_efi_gop): New member iterate.
23764 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23765 (grub_vbe_set_video_mode): Remove setting useless fields.
23766 (vbe2videoinfo): New function.
23767 (grub_video_vbe_iterate): Likewise.
23768 (grub_video_vbe_setup): Use vbe2videoinfo.
23769 (grub_video_vbe_print_adapter_specific_info): New function.
23770 (grub_video_vbe_adapter): New fields iterate and
23771 print_adapter_specific_info.
23772 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23774 (grub_video_mode_info): New field mode_number.
23775 (grub_video_adapter): New fields iterate and
23776 print_adapter_specific_info.
23778 2010-09-13 Tristan Gingold <gingold@free.fr>
23779 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23780 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23782 * grub-core/commands/efi/lsefisystab.c: New file.
23783 * grub-core/commands/efi/lssal.c: Likewise.
23784 * grub-core/Makefile.core.def (lsacpi): New module.
23785 (lsefisystab): Likewise.
23786 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23787 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23788 (grub_efi_sal_system_table): New struct.
23789 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23790 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23791 (grub_efi_sal_system_table_platform_features): Likewise.
23792 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23793 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23794 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23795 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23797 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23799 Support explicit user claim that a device is BIOS-visible.
23801 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23802 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23803 * grub-core/kern/emu/hostdisk.c
23804 (convert_system_partition_to_system_disk): Support mdX.
23805 (find_system_device): New parameter add. All users updated.
23806 (grub_util_biosdisk_is_present): New function.
23807 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23810 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23812 Search hints support.
23814 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23817 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23819 Bash completion script for util commands
23821 * Makefile.am: Add util/bash-completion.d directory
23822 * configure.ac: Likewise.
23823 * util/bash-completion.d/Makefile.am: New file.
23824 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23826 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23828 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23829 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23830 Reported by: Yves Blusseau.
23832 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23834 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23835 partition size and offset.
23837 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23839 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23841 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23843 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23845 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23847 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23848 (grub_xvasprintf): Likewise.
23850 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23852 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23854 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23856 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23857 args ending with NULL.
23859 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23861 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23864 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23866 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23868 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23870 Shutdown using ACPI.
23872 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23873 * grub-core/commands/acpihalt.c: New file.
23874 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23875 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23876 (grub_acpi_halt): New proto.
23877 (GRUB_ACPI_SLP_EN): New const.
23878 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23879 (GRUB_ACPI_OPCODE_*): New enum.
23880 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23882 2010-09-11 Tristan Gingold <gingold@free.fr>
23883 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
23884 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23886 * commands/lsacpi.c: New file.
23887 * grub-core/Makefile.core.def (lsacpi): New module.
23888 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23889 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23890 (grub_acpi_madt_entry_header): New struct.
23891 (grub_acpi_madt): Likewise.
23892 (grub_acpi_madt_entry_interrupt_override): Likewise.
23893 (grub_acpi_madt_entry_sapic): Likewise.
23894 (grub_acpi_madt_entry_lsapic): Likewise.
23895 (grub_acpi_madt_entry_platform_int_source): Likewise.
23896 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23897 (PRIuGRUB_UINT32_T): Likewise.
23898 (PRIxGRUB_UINT64_T): Likewise.
23900 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23902 Implement loading palette on ieee1275_fb.
23904 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23905 (have_setcolors): Likewise.
23906 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23907 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23908 (grub_video_ieee1275_set_palette): Implement.
23910 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23911 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
23913 * util/grub-install.in (grub_partition): New variable.
23914 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23915 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23916 Fixes a bug reported by Yves Blusseau.
23918 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23922 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23923 =grub_cpu_flush_cache on all mips and not only yeeloong.
23924 * configure.ac (COND_mips): New conditional.
23925 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
23927 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
23928 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
23929 [GRUB_LINKER_HAVE_INIT]: New function.
23930 (grub_emu_post_init): Likewise.
23931 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
23932 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
23933 * include/grub/cache.h (_mips): Include mips/cache.h.
23934 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
23935 LVM and RAID prototypes.
23936 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
23937 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
23940 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23942 * util/grub-install.in: Don't try to verify core.img until after
23943 running grub-mkimage to create it.
23945 2010-09-10 Robert Millan <rmh@gnu.org>
23947 * util/grub.d/10_hurd.in: Add misc readability checks.
23948 * util/grub.d/10_kfreebsd.in: Likewise.
23949 * util/grub.d/10_linux.in: Likewise.
23951 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23953 * util/grub-install.in: ${imgext} won't be defined here until the
23954 install branch is merged. For the meantime, only verify core.img on
23955 i386-pc and sparc64-ieee1275 platforms.
23957 2010-09-10 Robert Millan <rmh@gnu.org>
23959 Solaris support in grub_find_zpool_from_dir(). Thanks
23960 Seth Goldberg for referring to getextmntent() facility.
23962 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
23964 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
23966 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
23967 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
23968 method for finding zpool name.
23970 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23972 grub-fstest needs the host and hostfs modules while other utilities
23973 actively require those modules to be absent, so grub-fstest needs
23974 its own initialisation and finalisation code.
23976 * Makefile.am (grub_fstest.pp): New target.
23977 (grub_fstest_init.lst): Likewise.
23978 (grub_fstest_init.c): Likewise.
23979 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
23981 2010-09-10 Robert Millan <rmh@gnu.org>
23983 * configure.ac: Check for `struct statfs.f_fstypename' and
23984 `struct statfs.f_mntfromname'.
23986 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
23987 kFreeBSD-specific code.
23989 2010-09-10 Robert Millan <rmh@gnu.org>
23991 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
23992 on ZFS. Now non-main filesystems are supported as / too.
23994 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
23996 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
23997 and grub-core/disk/host.c to ...
23998 (grub-fstest): ... here. Having the host disk implementation
23999 present confuses grub-probe and other utility programs.
24001 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24002 when writing to a file, not when writing to stdout.
24004 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24006 * tests/partmap_test.in: New test for partitions.
24007 * Makefile.util.def: Rules for new test.
24009 2010-09-09 Robert Millan <rmh@gnu.org>
24011 * util/grub-probe.c (probe): Fix a pair of unhandled error
24014 2010-09-09 Robert Millan <rmh@gnu.org>
24016 Basic Btrfs support (detection and UUID).
24018 * grub-core/fs/btrfs.c: New file.
24019 * Makefile.util.def (library): Register btrfs.c.
24020 * grub-core/Makefile.core.def: Likewise.
24022 2010-09-08 Robert Millan <rmh@gnu.org>
24024 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24025 with (optional) parameters to specify device and relative path.
24026 * util/grub-install.in: Use is_path_readable_by_grub() to
24027 verify readability of a few critical files.
24028 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24029 verify readability of grub.cfg.new.
24031 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24033 Split minix.mod into minix.mod and minix2.mod.
24035 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24036 * grub-core/Makefile.core.def (minix2): New module.
24037 * grub-core/fs/minix.c: Use definitions instead of runtime version
24039 * grub-core/fs/minix2.c: New file.
24041 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24043 Add new --boot-directory option to replace --root-directory
24045 * util/grub-install.in: Add new --boot-directory option
24046 * util/grub-reboot.in: Likewise.
24047 * util/grub-set-default.in: Likewise.
24049 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24051 * util/grub-mkconfig.in: Use new variable.
24053 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24055 * configure.ac: Define some useful variables.
24057 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24059 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24060 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24061 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24062 Use terminfo and don't use cursor-on/cursor-off unless it's known
24064 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24065 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24067 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24069 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24070 starts with "(,", fill the drive containing the loaded image in
24071 between those two characters, but expect that a full partition
24072 specification including partition map names will follow.
24074 2010-09-08 Robert Millan <rmh@gnu.org>
24076 * configure.ac: Remove `--enable-grub-fstest' option.
24077 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24079 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24080 `grub-fstest' instead of `grub-probe' for readability verification.
24081 * util/grub-probe.c (probe): Remove readability verification kludge.
24083 2010-09-08 Robert Millan <rmh@gnu.org>
24085 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24086 initializing `GRUB_FS'.
24088 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24090 Not command (!) support to GRUB script.
24092 * tests/grub_script_not.in: New test.
24093 * Makefile.util.def: Rules for new test.
24095 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24096 ! command as a special case.
24097 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24099 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24101 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24104 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24106 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24108 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24110 * docs/grub.texi (Shell-like scripting): Documentation for break,
24111 continue, shift and return commands.
24113 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24115 Rename CD-ROM to cd on BIOS.
24117 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24119 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24121 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24123 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24124 * util/grub-probe.c (main): Likewise.
24125 * util/i386/pc/grub-setup.c (main): Likewise.
24126 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24127 Reported and debugged by: alexxy
24129 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24131 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24134 2010-09-05 Jo Shields <directhex@apebox.org>
24136 * util/grub.d/30_os-prober.in: Add missing classes.
24138 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24140 * docs/grub.texi (Theme file format): Document new position format.
24142 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24144 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24145 a table. Use @code instead of @verbatim.
24147 2010-09-05 Colin D Bennett <colin@gibibit.com>
24149 Gfxmenu documentation.
24151 * docs/grub.texi (Theme file format): New chapter.
24153 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24155 * grub-core/Makefile.core.def (xzio): New module.
24156 * grub-core/io/xzio.c: New file.
24157 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24158 * grub-core/lib/xzembed/xz_config.h: Likewise.
24159 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24160 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24161 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24162 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24163 * grub-core/lib/xzembed/xz_private.h: Likewise.
24164 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24165 * include/grub/file.h (grub_file_filter_id): New compression filter
24166 GRUB_FILE_FILTER_XZIO.
24168 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24170 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24171 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24174 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24176 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24177 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24179 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24181 Uncompressed checksum support.
24183 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24184 (check_list): New parameter uncompress.
24185 (grub_cmd_hashsum): Handle --uncompress.
24187 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24189 Reintroduce testload.
24191 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24193 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24194 (GRUB_MOD_INIT): New function.
24195 (GRUB_MOD_FINI): Likewise.
24196 * grub-core/Makefile.core.def (testload): New module.
24198 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24200 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24201 (uint8_t): New type.
24202 (uint16_t): Likewise.
24203 (uint32_t): Likewise.
24204 (uint64_t): Likewise.
24206 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24208 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24210 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24212 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24214 (grub_gzfile_open): Removed. All users updated.
24215 (GRUB_MOD_INIT): New function.
24216 (GRUB_MOD_FINI): Likewise.
24217 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24218 (grub_file_filters_enabled): Likewise.
24219 (grub_file_open): Handle filters.
24220 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24221 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24222 * include/grub/file.h (grub_file_filter_id_t): New type.
24223 (grub_file_filter_t): Likewise.
24224 (grub_file_filters_all): New extern variable.
24225 (grub_file_filters_enabled): Likewise.
24226 (grub_file_filter_register): New inline function.
24227 (grub_file_filter_unregister): Likewise.
24228 (grub_file_filter_disable): Likewise.
24229 (grub_file_filter_disable_compression): Likewise.
24230 * include/grub/gzio.h: Removed.
24232 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24234 Filename expansion support for wildcards in GRUB script.
24236 * tests/grub_script_expansion.in: New test.
24237 * Makefile.util.def: Rule for new test.
24239 * grub-core/commands/wildcard.c: New file, implements filename
24240 expansion support for GRUB script.
24241 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24242 * grub-core/script/argv.c: Cosmetic changes.
24243 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24244 Refactored to perform wildcard expansion on arguments.
24245 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24248 * tests/util/grub-shell.in: Fix quoting for read input.
24250 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24252 Support for updating environment variables with matched substrings
24255 * tests/grub_cmd_regexp.in: New test.
24256 * Makefile.util.def: Rule for new test.
24258 * grub-core/commands/regexp.c: New option -s to update environment
24259 variables with regexp matches.
24261 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24263 * include/grub/file.h (grub_file): New member not_easly_seekable.
24264 (grub_file_seekable): New inline function.
24265 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24267 (grub_gzio_open): Set not_easly_seekable.
24268 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24269 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24271 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24273 Support for options to appear multiple times on cmdline.
24275 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24276 * grub-core/commands/extcmd.c: Support for repeatable option.
24277 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24278 repeatable option support.
24280 Refactor menuentry into a regular command.
24282 * grub-core/commands/menuentry.c: New file, menuentry command
24284 * grub-core/Makefile.core.def: Rule update for normal.mod.
24285 * grub-core/normal/main.c: Moved menuentry creation to
24286 grub-core/commands/menuentry.c.
24287 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24288 (grub_menu_execute_entry_real): Removed.
24289 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24291 (grub_script_execute_menuentry): Removed.
24292 * grub-core/script/parser.y (menuentry): Removed.
24293 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24294 * grub-core/script/yylex.l (menuentry): Removed.
24295 * include/grub/menu.h (grub_menu_init): New prototype.
24296 (grub_menu_fini): New prototype.
24297 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24298 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24299 (grub_script_execute_sourcecode): New prototype.
24301 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24303 "return" command for GRUB script functions.
24305 * tests/grub_script_return.in: New test.
24306 * Makefile.util.def: Rules for new test.
24308 * grub-core/script/execute.c (grub_script_return): New function.
24309 * grub-core/script/main.c: Register/unregister return commaond.
24310 * include/grub/script_sh.h (grub_script_return): New prototype.
24312 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24314 "setparams" command to update positional parameters.
24316 * tests/grub_script_setparams.in: New test.
24317 * Makefile.util.def: Rules for new test.
24319 * grub-core/script/argv.c (grub_script_argv_make): New function.
24320 * grub-core/script/execute.c (replace_scope): New function.
24321 (grub_script_setparams): New function.
24322 * grub-core/script/lexer.c: Remove unused variables.
24323 * grub-core/script/main.c: Register/unregister setparams command.
24324 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24325 (grub_script_setparams): New prototype.
24327 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24329 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24332 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24334 Support for passing block of commands as an argument to extcmds.
24336 * Makefile.util.def: Rules for new test.
24337 * tests/grub_script_blockarg.in: New test.
24338 * grub-core/tests/test_blockarg.c: New file, block argument
24339 command used in the test.
24341 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24342 (grub_register_extcmd_prio): New function prototype.
24343 (grub_extcmd_dispatcher): New function prototype.
24344 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24346 * include/grub/script_sh.h (struct grub_script): New members
24347 `children', `next_siblings' and `refcnt' for block arguments and
24348 reference counting.
24349 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24350 (grub_script_arg): New member `script' for block argument.
24351 (grub_script_argv): New member `script' for block argument.
24352 (grub_parser_param): New member `scripts' for block argument.
24353 (grub_script_mem_free): New extern function prototype.
24354 (grub_script_ref): New function prototype.
24355 (grub_script_unref): New function prototype.
24357 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24358 extcmd form to support block arguments.
24359 * grub-core/script/argv.c: Block arguments support.
24360 * grub-core/script/execute.c: Likewise.
24361 * grub-core/script/lexer.c: Likewise.
24362 * grub-core/script/main.c: Likewise.
24363 * grub-core/script/script.c: Likewise.
24364 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24367 * grub-core/commands/acpi.c: Update extcmd implementations with
24368 grub_extcmd_context_t.
24369 * grub-core/commands/cat.c: Likewise.
24370 * grub-core/commands/echo.c: Likewise.
24371 * grub-core/commands/extcmd.c: Likewise.
24372 * grub-core/commands/hashsum.c: Likewise.
24373 * grub-core/commands/hdparm.c: Likewise.
24374 * grub-core/commands/help.c: Likewise.
24375 * grub-core/commands/hexdump.c: Likewise.
24376 * grub-core/commands/i386/cpuid.c: Likewise.
24377 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24378 * grub-core/commands/i386/pc/halt.c: Likewise.
24379 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24380 * grub-core/commands/iorw.c: Likewise.
24381 * grub-core/commands/keystatus.c: Likewise.
24382 * grub-core/commands/loadenv.c: Likewise.
24383 * grub-core/commands/ls.c: Likewise.
24384 * grub-core/commands/lspci.c: Likewise.
24385 * grub-core/commands/memrw.c: Likewise.
24386 * grub-core/commands/probe.c: Likewise.
24387 * grub-core/commands/search_wrap.c: Likewise.
24388 * grub-core/commands/setpci.c: Likewise.
24389 * grub-core/commands/sleep.c: Likewise.
24390 * grub-core/disk/loopback.c: Likewise.
24391 * grub-core/hello/hello.c: Likewise.
24392 * grub-core/loader/i386/bsd.c: Likewise.
24393 * grub-core/loader/xnu.c: Likewise.
24394 * grub-core/term/gfxterm.c: Likewise.
24395 * grub-core/term/serial.c: Likewise.
24396 * grub-core/tests/lib/functional_test.c: Likewise.
24398 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24400 Multi-line quoted strings support.
24402 * grub-core/script/lexer.c (append_newline): Removed.
24403 (grub_script_lexer_yywrap): Refactored.
24404 (grub_script_lexer_init): Refactored.
24405 * grub-core/script/yylex.l (yywrap): New function.
24406 (grub_lexer_resplit): New function.
24407 (grub_lexer_unput): New function.
24408 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24410 * tests/grub_script_echo1.in: Added few more testcases.
24412 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24414 * grub-core/kern/misc.c: Don't add abort alias in utils.
24415 Reported by: echoline.
24417 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24419 Add missing files into "make dist" tarball for other platforms.
24421 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24422 * conf/Makefile.common (dist_noinst_DATA): New variable.
24423 * conf/Makefile.extra-dist: Added missing make dist files.
24424 * grub-core/Makefile.core.def: Likewise.
24426 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24428 Compress grub_prefix.
24430 * grub-core/boot/i386/pc/lnxboot.S: Use
24431 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24432 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24433 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24434 GRUB_MACHINE_PREFIX_END. All users updated.
24435 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24436 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24438 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24439 * util/grub-mkimage.c (image_target_desc): Change data_end to
24440 prefix_end. All users updated.
24442 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24444 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24446 (grub_openbsd_boot): Likewise.
24447 (grub_netbsd_boot): Likewise.
24448 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24449 (grub_xnu_boot): Likewise.
24451 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24453 * configure.ac: Clean LIBS variable after tests.
24455 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24457 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24459 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24461 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24462 echo if libdevmapper will be used.
24464 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24466 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24467 constant for the same file.
24469 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24471 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24473 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24475 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24478 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24480 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24481 required by the boot protocol.
24483 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24484 ebp and edi members.
24485 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24486 state.ebp and state.edi.
24487 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24488 %ebp and %edi according to grub_relocator32_ebp and
24489 grub_relocator32_edi respectively.
24490 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24493 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24495 Add i386-pc-pxe image target.
24497 * util/grub-mkimage.c (image_target_desc): New enum value
24499 (image_targets): New target i386-pc-pxe.
24500 (generate_image): Handle i386-pc-pxe image.
24502 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24506 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24507 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24509 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24510 (grub_pxe_pxenv): Correct type.
24512 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24514 * NEWS: Document most of the important changes since 1.98.
24516 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24518 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24519 generated manual page) a little.
24521 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24523 * docs/grub.texi: Add myself as an author.
24525 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24527 * Makefile.util.def (libgrub.a): Add missing sunpc.
24528 Reported by: Seth Goldberg.
24530 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24532 Interrupt wrapping and code simplifications.
24534 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24535 x86_noieee1275 which are functionaly equivalent in this case.
24536 (grub-install): Make source on each platform explicit. Enable on
24538 * gentpl.py (x86_efi_pc): Removed group.
24539 (x86_noefi): Likewise.
24540 (i386_noefi): Likewise.
24541 (x86_noieee1275): Likewise.
24542 (i386_noieee1275): Likewise.
24543 (i386_noefi_noieee1275): Likewise.
24544 (i386_pc_qemu_coreboot): Likewise.
24545 (i386_coreboot_multiboot): Likewise.
24546 (i386_pc_coreboot_multiboot_qemu): Likewise.
24547 (x86_noefi_mips): Likewise.
24548 (noieee1275): Likewise.
24549 (ieee1275_mips): Likewise.
24550 (noemu_noieee1275): Likewise.
24553 (videoinkernel): Likewise.
24554 (videomodules): Likewise.
24555 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24556 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24557 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24558 include/grub/loader.h, include/grub/msdos_partition.h,
24559 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24560 include/grub/machine/console.h, include/grub/machine/vga.h,
24561 include/grub/machine/vbe.h, include/grub/machine/init.h,
24562 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24563 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24564 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24565 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24566 * grub-core/Makefile.core.def (kernel): Explicit the source for
24567 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24568 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24569 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24570 Use videoinkernel tag.
24571 (usb): Enable on all usb.
24572 (usbserial_common): Likewise.
24573 (usbserial_pl2303): Likewise.
24574 (usbserial_ftdi): Likewise.
24575 (uhci): Enable on all x86.
24576 (ohci): Enable on all pci.
24577 (cmostest): Enable on all CMOS.
24578 (acpi): Include commands/acpi.c on all platforms.
24579 (halt): Add relevant lib/*/halt.c.
24580 (hdparm): Enable on all pci.
24582 (usbtest): Enable on all usb.
24583 (ata): Enable on all pci.
24584 (ata_pthru): Likewise.
24585 (usbms): Enable on all usb.
24586 (usb_keyboard): Likewise.
24587 (font): Use tag videomodules.
24589 (datetime): Use tag cmos. Enable on all noemu.
24590 (mmap): Use tags common and x86.
24591 (gfxterm): Use tag videomodules.
24592 (bitmap): Likewise.
24593 (bitmap_scale): Likewise.
24594 (video_fb): Likewise.
24596 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24597 adjust padding accordingly. All users updated.
24598 (grub_ohci_transaction): Fix bad format specification.
24599 (GRUB_MOD_INIT): Add asserts for struct size.
24600 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24601 (grub_alloc_td): Likewise.
24602 (grub_free_queue): Likewise.
24603 (grub_uhci_transfer): Likewise.
24604 (grub_uhci_transaction): Fix bad format specification.
24605 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24606 (grub_usb_bulk_readwrite): Likewise.
24607 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24608 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24610 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24612 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24613 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24614 Transformed into C.
24615 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24616 Moved from here ...
24617 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24618 ... here. Transformed into C. Made static.
24619 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24620 Moved from here ...
24621 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24622 ... here. Transformed into C. Made static.
24623 * grub-core/kern/i386/pc/startup.S
24624 (grub_biosdisk_check_int13_extensions): Moved from here ...
24625 * grub-core/disk/i386/pc/biosdisk.c
24626 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24628 * grub-core/kern/i386/pc/startup.S
24629 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24630 * grub-core/disk/i386/pc/biosdisk.c
24631 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24632 Transformed into C. Made static.
24633 * grub-core/kern/i386/pc/startup.S
24634 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24635 * grub-core/disk/i386/pc/biosdisk.c
24636 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24637 Transformed into C. Made static.
24638 * grub-core/kern/i386/pc/startup.S
24639 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24640 * grub-core/disk/i386/pc/biosdisk.c
24641 (grub_biosdisk_get_diskinfo_standard): ... here.
24642 Transformed into C. Made static.
24643 * grub-core/kern/i386/pc/startup.S
24644 (grub_biosdisk_get_num_floppies): Moved from here ...
24645 * grub-core/disk/i386/pc/biosdisk.c
24646 (grub_biosdisk_get_num_floppies): ... here.
24647 Transformed into C. Made static.
24648 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24650 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24651 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24652 Transformed into C. Made static.
24653 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24654 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24655 Transformed into C. Made static.
24656 * grub-core/kern/i386/ieee1275/init.c: Removed.
24657 * grub-core/kern/i386/misc.S: Likewise.
24658 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24659 Splitted from here ...
24660 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24661 Transformed into C. Made static. All users updated.
24662 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24663 Transformed into C. Made static. All users updated.
24664 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24666 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24667 Transformed into C. Made static. All users updated.
24668 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24670 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24671 Transformed into C. Made static. All users updated.
24672 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24673 Removed (replaced by C version).
24674 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24676 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24677 Transformed into C. Made static.
24678 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24680 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24681 ... here. Transformed into C.
24682 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24684 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24685 ... here. Transformed into C.
24686 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24688 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24689 ... here. Transformed into C. Made static.
24690 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24692 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24693 ... here. Transformed into C.
24694 * grub-core/kern/i386/pc/startup.S
24695 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24696 * grub-core/video/i386/pc/vbe.c
24697 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24698 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24700 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24701 ... here. Transformed into C.
24702 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24704 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24705 ... here. Transformed into C.
24706 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24708 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24709 ... here. Transformed into C.
24710 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24712 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24713 ... here. Transformed into C.
24714 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24716 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24717 ... here. Transformed into C. Made static.
24718 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24720 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24721 ... here. Transformed into C. Made static.
24722 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24724 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24725 ... here. Transformed into C. Made static.
24726 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24727 pxe_rm_entry as third argument.
24728 (grub_bios_interrupt): New function.
24729 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24730 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24731 of calling grub_stop.
24732 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24733 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24734 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24735 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24736 * grub-core/lib/i386/halt.c: Moved from here ...
24737 * grub-core/lib/i386/halt.c: ... here.
24738 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24739 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24740 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24742 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24743 * include/grub/i386/coreboot/init.h: Removed.
24744 * include/grub/i386/multiboot/init.h: Likewise.
24745 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24746 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24747 * include/grub/i386/pc/int.h: New file.
24748 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24749 (grub_pxe_scan): Removed.
24750 (grub_pxe_call): Update prototype.
24751 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24753 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24754 * include/grub/i386/qemu/init.h: Removed.
24755 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24757 (grub_halt): Likewise.
24758 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24759 (grub_reboot): Likewise.
24760 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24761 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24762 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24764 2010-08-30 Robert Millan <rmh@gnu.org>
24766 * NEWS: Document addition of ZFS support in `grub-install' and
24769 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24771 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24774 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24776 Remove leftover embedding of font objects.
24778 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24779 * util/grub-install.in (font): Removed.
24780 * util/grub-mkimage.c (generate_image): Remove font support. All users
24783 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24785 Remove leftover embedding of font objects.
24787 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24788 * util/grub-install.in (font): Removed.
24789 * util/grub-mkimage.c (generate_image): Remove font support. All users
24792 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24794 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24795 Reported by: Ian Turner
24797 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24799 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24800 timeout to avoid indefinite boot stalling.
24802 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24804 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24805 (grub_env_write_color_highlight): Likewise.
24807 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24809 * grub-core/normal/term.c (print_more): Return to normal and not
24810 to standard state after printing "---MORE---".
24812 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24814 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24815 Mask out the bit 0x80 since it has other meaning that specifiing color.
24817 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24819 New relocator. Allows for more kernel support and more straightforward
24822 * Makefile.am (BOOTTARGET): New variable.
24823 (QEMU32): Likewise.
24824 (linux.init.x86_64): New target.
24825 (linux.init.i386): Likewise.
24826 (multiboot.elf): Likewise.
24827 (kfreebsd.elf): Likewise.
24828 (kfreebsd.aout): Likewise.
24829 (pc-chainloader.elf): Likewise.
24830 (pc-chainloader.bin): Likewise.
24831 (ntldr.elf): Likewise.
24832 (ntldr.bin): Likewise.
24833 (multiboot2.elf): Likewise.
24834 (kfreebsd.init.x86_64): Likewise.
24835 (kfreebsd.init.i386): Likewise.
24836 (knetbsd.init.i386): Likewise.
24837 (kopenbsd.init.i386): Likewise.
24838 (knetbsd.init.x86_64): Likewise.
24839 (kopenbsd.init.x86_64): Likewise.
24840 (linux-initramfs.i386): Likewise.
24841 (linux-initramfs.x86_64): Likewise.
24842 (kfreebsd-mfsroot.i386.img): Likewise.
24843 (knetbsd.image.i386): Likewise.
24844 (kopenbsd.image.i386): Likewise.
24845 (kopenbsd.image.x86_64): Likewise.
24846 (knetbsd.miniroot-image.i386.img): Likewise.
24847 (kfreebsd-mfsroot.x86_64.img): Likewise.
24848 (knetbsd.image.x86_64): Likewise.
24849 (knetbsd.miniroot-image.x86_64.img): Likewise.
24850 (kfreebsd-mfsroot.i386.gz): Likewise.
24851 (bootcheck-kfreebsd-i386): Likewise.
24852 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24853 (bootcheck-kfreebsd-x86_64): Likewise.
24854 (knetbsd.miniroot-image.i386.gz): Likewise.
24855 (bootcheck-knetbsd-i386): Likewise.
24856 (bootcheck-kopenbsd-i386): Likewise.
24857 (bootcheck-kopenbsd-x86_64): Likewise.
24858 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24859 (bootcheck-knetbsd-x86_64): Likewise.
24860 (bootcheck-linux-i386): Likewise.
24861 (bootcheck-linux-x86_64): Likewise.
24862 (bootcheck-linux16-i386): Likewise.
24863 (bootcheck-linux16-x86_64): Likewise.
24864 (bootcheck-multiboot): Likewise.
24865 (bootcheck-multiboot2): Likewise.
24866 (bootcheck-kfreebsd-aout): Likewise.
24867 (bootcheck-pc-chainloader): Likewise.
24868 (bootcheck-ntldr): Likewise.
24869 (CLEANFILES): Add new targets.
24870 (BOOTCHECKS): New variable.
24871 (.PHONY): Add bootchecks.
24872 (SUCCESSFUL_BOOT_STRING): New variable.
24873 (BOOTCHECK_TIMEOUT): Likewise.
24874 (bootcheck): New target
24875 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24876 * configure.ac: Correct efiemu excuse.
24877 * docs/grub.texi (Supported kernels): New chapter.
24878 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24879 include/grub/mm_private.h. Simplify inclusion of
24880 include/grub/boot.h, include/grub/loader.h
24881 and include/grub/msdos_partition.h
24882 (KERNEL_HEADER_FILES) [i386_coreboot]:
24883 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24884 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24885 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24886 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24887 include/grub/machine/loader.h.
24888 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24889 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24891 (pci.mod): Enable on i386-multiboot.
24892 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24893 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24895 (relocator.mod): Rewritten.
24896 (aout.mod): Enable on all x86.
24897 (bsd.mod): Likewise.
24898 (ntldr.mod): New module.
24899 (linux.mod): Use loader/i386/linux.c on all x86.
24900 (xnu.mod): Enable on all x86.
24901 (vga_text.mod): disable on EFI and QEMU.
24902 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24903 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24904 * grub-core/efiemu/loadcore.c: Likewise.
24905 * grub-core/efiemu/main.c: Likewise.
24906 (grub_efiemu_exit_boot_services): Removed.
24907 (grub_efiemu_finish_boot_services): Likewise.
24908 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24910 * grub-core/efiemu/i386/nocfgtables.c: New file.
24911 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24912 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24913 (grub_efi_finish_boot_services): Moved from here ...
24914 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24915 Fille finish memory map and related data.
24916 (finish_mmap_buf): New variable.
24917 (grub_efi_uintn_t finish_mmap_size): Likewise.
24918 (grub_efi_uintn_t finish_key): Likewise.
24919 (grub_efi_uintn_t finish_desc_size): Likewise.
24920 (grub_efi_uint32_t finish_desc_version): Likewise.
24921 (grub_efi_is_finished): Likewise.
24922 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24924 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
24925 (grub_elf64_phdr_iterate): Likewise.
24926 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
24927 (grub_os_area_size): Likewise.
24928 (grub_machine_init): Don't reserve os area.
24929 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
24930 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
24931 * grub-core/kern/i386/loader.S: Removed.
24932 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
24933 (grub_os_area_size): Likewise.
24934 (grub_machine_init): Don't reserve os area.
24935 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
24936 Don't call grub_dl_unload_all.
24937 Don't include loader.S.
24938 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
24939 Declare the memory after _end as available.
24940 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
24941 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
24942 (GRUB_MM_ALLOC_MAGIC): Moved from here...
24943 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
24944 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
24945 * include/grub/mm_private.h (grub_mm_header): ... here.
24946 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
24947 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
24948 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
24949 (grub_mm_region): ..here. Removed addr. Added pre_size.
24951 * grub-core/kern/mm.c (base): Renamed to ...
24952 (grub_mm_base): ... this. Made global.
24953 (grub_real_malloc): Alloc from end of region.
24954 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
24955 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
24956 * grub-core/kern/powerpc/cache_flush.S: ... here.
24957 * grub-core/lib/efi/relocator.c: New file.
24958 * grub-core/lib/i386/relocator.c: Rewritten.
24959 * grub-core/lib/i386/relocator16.S: New file.
24960 * grub-core/lib/i386/relocator32.S: Likewise.
24961 * grub-core/lib/i386/relocator64.S: Likewise.
24962 * grub-core/lib/i386/relocator_asm.S: Rewritten.
24963 * grub-core/lib/i386/relocator_common.S: New file.
24964 * grub-core/lib/ieee1275/relocator.c: Likewise.
24965 * grub-core/lib/mips/relocator.c: Rewritten.
24966 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
24967 stylistic adjustments.
24968 * grub-core/lib/powerpc/relocator.c: New file.
24969 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
24970 * grub-core/lib/relocator.c: Rewritten.
24971 * grub-core/lib/x86_64/relocator_asm.S: New file.
24972 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
24973 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
24974 (bsd_tag): New struct.
24975 (tags): New variable.
24976 (tags_last): Likewise.
24977 (netbsd_module): New struct.
24978 (netbsd_mods): New variable.
24979 (netbsd_mods_last): Likewise.
24980 (openbsd_opts): New parameter "serial".
24981 (OPENBSD_SERIAL_ARG): New definition.
24982 (netbsd_opts): New parameter "serial".
24983 (NETBSD_SERIAL_ARG): New definition.
24984 (grub_freebsd_add_meta): Reorganised into ...
24985 (grub_bsd_add_meta): ...this. All users updated.
24986 (grub_freebsd_add_mmap): Reorganised into ...
24987 (generate_e820_mmap): ...this...
24988 (grub_bsd_add_mmap): ...and this. All users updated.
24989 (grub_freebsd_list_modules): Use tags.
24990 (grub_netbsd_add_meta_module): New function.
24991 (grub_netbsd_list_modules): Likewise.
24992 (grub_freebsd_boot): Use relocator and finish EFI.
24993 (grub_openbsd_boot): Likewise.
24994 (grub_netbsd_setup_video): New function.
24995 (grub_netbsd_add_modules): Likewise.
24996 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
24998 (grub_bsd_unload): Unload tags.
24999 (grub_bsd_load_aout): Use relocator.
25000 (grub_bsd_elf32_size_hook): New function.
25001 (grub_bsd_elf32_hook): Use relocator.
25002 (grub_bsd_elf64_size_hook): New function.
25003 (grub_bsd_elf64_hook): Use relocator.
25004 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25005 (grub_bsd_load): Zero-out openbsd_ramdisk.
25006 (grub_bsd_load): Use relocator.
25007 (grub_cmd_openbsd): Support serial.
25008 (grub_cmd_netbsd): Support modules.
25009 (grub_cmd_freebsd_module): Use relocator.
25010 (grub_netbsd_module_load): New function.
25011 (grub_cmd_netbsd_module): Likewise.
25012 (grub_cmd_openbsd_ramdisk): Likewise.
25013 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25015 (GRUB_MOD_FINI): Unregister new commands.
25016 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25017 (grub_freebsd_load_elfmodule_obj): Use relocator.
25018 (grub_freebsd_load_elfmodule): Likewise.
25019 (grub_freebsd_load_elf_meta): Likewise.
25020 (grub_netbsd_load_elf_meta): New function.
25021 (grub_openbsd_find_ramdisk): Likewise.
25022 * grub-core/loader/i386/bsd_helper.S: Removed.
25023 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25024 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25025 * grub-core/loader/i386/efi/linux.c: Likewise.
25026 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25027 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25028 (DEFAULT_VIDEO_MODE): Likewise.
25029 (real_mode_target): New variable.
25030 (prot_mode_target): Likewise.
25031 (initrd_mem_target): Likewise.
25032 (relocator): Likewise.
25033 (efi_mmap_buf): Likewise.
25034 (efi_mmap_size): Likewise.
25035 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25036 (free_pages): Use relocator.
25037 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25038 (grub_linux_setup_video): Return error.
25039 (grub_linux_trampoline_start): Removed.
25040 (grub_linux_trampoline_end): Likewise.
25041 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25042 andd video parameters depending on firmware.
25043 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25044 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25045 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25046 (grub_cmd_initrd): Use relocator.
25047 * grub-core/loader/i386/linux_trampoline.S: Removed.
25048 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25049 (elf_sec_entsize): Likewise.
25050 (elf_sec_shstrndx): Likewise.
25051 (elf_sections): Likewise.
25052 (grub_multiboot_load): Use relocator.
25053 (grub_multiboot_get_mbi_size): Account for sections.
25054 (grub_multiboot_make_mbi): Use relocator and support sections.
25055 (grub_multiboot_add_elfsyms): New function.
25056 (grub_multiboot_free_mbi): Free sections.
25057 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25058 (grub_linux_real_target): Likewise.
25059 (grub_linux_real_chunk): Likewise.
25060 (grub_linux16_prot_size): Likewise.
25061 (grub_linux16_boot): Use relocator.
25062 (grub_linux_unload): Unload relocator.
25063 (grub_cmd_linux): Use relocator.
25064 (grub_cmd_initrd): Likewise.
25065 * grub-core/loader/i386/pc/ntldr.c: New file.
25066 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25067 Don't try to guess CPU frequency.
25068 (grub_xnu_set_video): Stretch bitmap.
25069 (grub_xnu_boot): Use relocator.
25070 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25071 (grub_linux_unload): Free relocator.
25072 (grub_linux_load32): Use relocator.
25073 (grub_linux_load64): Likewise.
25074 (grub_cmd_initrd): Likewise.
25075 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25076 (grub_multiboot_unload): Unload relocator.
25077 (grub_cmd_multiboot): Use relocator.
25078 (grub_cmd_module): Likewise.
25079 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25080 Use relocator and support sections.
25081 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25082 (elf_sec_entsize): Likewise.
25083 (elf_sec_shstrndx): Likewise.
25084 (elf_sections): Likewise.
25085 (grub_multiboot_load): Use relocator.
25086 (grub_multiboot_get_mbi_size): Account for sections.
25087 (grub_multiboot_make_mbi): Use relocator and support sections.
25088 (grub_multiboot_add_elfsyms): New function.
25089 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25090 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25091 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25092 Prototype changed. All users updated.
25093 (grub_xnu_align_heap): Simplified.
25094 (grub_xnu_writetree_toheap): Likewise.
25095 (grub_xnu_unload): Unload relocator.
25096 (grub_cmd_xnu_kernel): Use relocator.
25097 (grub_cmd_xnu_kernel64): Likewise.
25098 (grub_xnu_register_memory): Simplified.
25099 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25100 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25102 (grub_console_checkkey): Likewise.
25103 (grub_console_getkey): Likewise.
25104 (grub_console_getwh): Likewise.
25105 (grub_console_getxy): Likewise.
25106 (grub_console_gotoxy): Likewise.
25107 (grub_console_cls): Likewise.
25108 (grub_console_setcolorstate): Likewise.
25109 (grub_console_setcursor): Likewise.
25110 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25111 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25112 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25113 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25114 * grub-core/tests/boot/kernel-8086.S: Likewise.
25115 * grub-core/tests/boot/kernel-i386.S: Likewise.
25116 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25117 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25118 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25119 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25120 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25121 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25122 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25123 * grub-core/tests/boot/linux.cfg: Likewise.
25124 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25125 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25126 * grub-core/tests/boot/linux16.cfg: Likewise.
25127 * grub-core/tests/boot/multiboot.cfg: Likewise.
25128 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25129 * grub-core/tests/boot/ntldr.cfg: Likewise.
25130 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25131 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25132 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25134 * include/grub/dl.h (grub_dl_unload_all): Removed.
25135 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25136 (grub_efi_finish_boot_services): Change prototype.
25137 (grub_efi_is_finished): New variable.
25138 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25140 (grub_efiemu_finish_boot_services): Removed.
25141 (grub_machine_efiemu_init_tables): New prototype.
25142 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25143 (grub_elf64_phdr_iterate): Likewise.
25144 * include/grub/i386/bsd.h: Include relocator.h.
25145 (freebsd_tag_header): New struct.
25146 (grub_openbsd_bios_mmap): Removed.
25147 (grub_unix_real_boot): Removed.
25148 (grub_freebsd_load_elfmodule32): Changed prototype.
25149 (grub_freebsd_load_elfmodule_obj64): Likewise.
25150 (grub_freebsd_load_elf_meta32): Likewise.
25151 (grub_freebsd_load_elf_meta64): Likewise.
25152 (grub_freebsd_add_meta): Removed.
25153 (grub_netbsd_load_elf_meta32): New prototype.
25154 (grub_netbsd_load_elf_meta64): Likewise.
25155 (grub_bsd_add_meta): Likewise.
25156 (grub_openbsd_ramdisk_descriptor): New struct.
25157 (grub_openbsd_find_ramdisk32): New prototype.
25158 (grub_openbsd_find_ramdisk64): Likewise.
25159 * include/grub/i386/coreboot/loader.h: Removed.
25160 * include/grub/i386/efi/loader.h: Likewise.
25161 * include/grub/i386/ieee1275/loader.h: Likewise.
25162 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25164 * include/grub/i386/loader.h: Removed.
25165 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25167 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25168 (grub_phys_addr_t): New type.
25169 (grub_vtop): New inline function.
25170 (grub_map_memory): Likewise.
25171 (grub_unmap_memory): Likewise.
25172 * include/grub/i386/multiboot/loader.h: Removed.
25173 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25174 (NETBSD_BTINFO_CONSOLE): New definition.
25175 (NETBSD_BTINFO_SYMTAB): Likewise.
25176 (NETBSD_BTINFO_MODULES): Likewise.
25177 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25178 (grub_netbsd_bootinfo): New struct.
25179 (grub_netbsd_btinfo_common): Use explicit bitsize.
25180 (grub_netbsd_btinfo_mmap_entry): Removed.
25181 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25182 (grub_netbsd_btinfo_bootdisk): New struct.
25183 (grub_netbsd_btinfo_symtab): Likewise.
25184 (grub_netbsd_btinfo_serial): Likewise.
25185 (grub_netbsd_btinfo_modules): Likewise.
25186 (grub_netbsd_btinfo_framebuf): Likewise.
25187 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25188 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25190 (grub_openbsd_bootargs): Use explicit bitsize.
25191 (grub_openbsd_bootarg_console): New struct.
25192 (GRUB_OPENBSD_COM_MAJOR): New definition.
25193 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25194 * include/grub/i386/pc/efiemu.h: Removed.
25195 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25196 * include/grub/i386/qemu/loader.h: Removed.
25197 * include/grub/i386/relocator.h: Rewritten.
25198 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25199 * include/grub/mips/memory.h: New file.
25200 * include/grub/mips/multiboot.h: Rewritten.
25201 * include/grub/mips/relocator.h: Rewritten.
25202 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25203 (grub_vtop): New function.
25204 (grub_map_memory): Likewise.
25205 (grub_unmap_memory): Likewise.
25206 * include/grub/misc.h (ALIGN_DOWN): New definition.
25207 * include/grub/mm.h (grub_mm_check_real): New proto.
25208 (GRUB_MM_CHECK): New definition.
25209 * include/grub/mm_private.h: New file.
25210 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25211 (grub_multiboot_get_mbi_size): Removed.
25212 (grub_multiboot_make_mbi): Change prottype.
25213 (grub_multiboot_set_accepts_video): New proto.
25214 (grub_multiboot_add_elfsyms): Likewise.
25215 (grub_multiboot_payload_eip): New variable.
25216 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25218 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25220 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25221 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25222 * include/grub/powerpc/ieee1275/loader.h: Removed.
25223 * include/grub/powerpc/memory.h: New file.
25224 * include/grub/powerpc/relocator.h: Likewise.
25225 * include/grub/relocator.h: Likewise.
25226 * include/grub/relocator_private.h: Likewise.
25227 * include/grub/sparc64/ieee1275/loader.h: Removed.
25228 * include/grub/x86_64/memory.h: New file.
25229 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25230 (grub_xnu_heap_malloc): Likewise.
25231 (grub_xnu_heap_real_start): Removed.
25232 (grub_xnu_heap_start): Likewise.
25233 (grub_xnu_relocator): New variable.
25234 (grub_xnu_heap_target_start): Likewise.
25235 * tests/util/grub-shell.in: Support non-pc.
25236 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25238 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25240 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25242 (grub_bidi_logical_to_visual): Check that malloc succeded.
25243 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25245 (grub_xputs_normal): Likewise.
25247 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25249 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25252 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25254 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25256 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25258 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25260 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25262 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25265 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25267 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25269 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25271 * grub-core/normal/term.c (print_more): Fix a memory leak.
25272 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25273 (grub_xputs_normal): Likewise.
25275 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25277 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25278 the begining of the string
25280 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25282 * grub-core/script/script.c (grub_script_parse): Free parsed on
25285 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25287 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25290 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25292 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25295 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25297 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25298 (scroll_up): Fix a memory leak.
25300 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25302 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25305 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25307 Handle USB pendrives exposed as floppies.
25309 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25311 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25312 Check for partitions on all devices.
25314 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25316 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25317 (readkey): Likewise.
25319 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25321 Multiple variable names support to "export" command.
25323 * normal/context.c (grub_cmd_export): "export" command supports
25324 multiple variable names.
25326 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25328 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25329 --target=drive output to Mach device name.
25331 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25333 New Automake based build system for GRUB.
25335 * ABOUT-NLS: New file.
25336 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25337 in Makefile.util.def file.
25338 * Makefile.util.def: New file. Autogen build definitions file for
25340 * conf/Makefile.common: New file. Common variables for GRUB host
25341 utils and target modules.
25342 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25343 * docs/Makefile.am: New file. Automake file for docs.
25344 * gentpl.py: New file. Python script to generate Autogen
25346 * grub-core/Makefile.am: New file. GRUB target modules' rules
25347 that doesn't fit in Makefile.core.def file.
25348 * grub-core/Makefile.core.def: New file. Autogen build
25349 definitions file for GRUB target modules.
25350 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25351 specific setjmp.S file.
25352 * po/Makefile.am: New file.
25354 * .bzrignore: New ignores.
25355 * INSTALL: New requirements, without Ruby.
25356 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25357 * autogen.sh: Updated to invoke autogen as necessary.
25358 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25359 and defines for Automake conditionals.
25360 * geninit.sh: Refactoring.
25362 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25364 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25367 * include/grub/test.h: Fix functional test modules' naming.
25368 * grub-core/tests/example_functional_test.c: Fix test module name.
25370 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25371 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25372 * util/grub-editenv.c: Likewise.
25373 * util/grub-fstest.c: Likewise.
25374 * util/grub-mkdevicemap.c: Likewise.
25375 * util/grub-mkfont.c: Likewise.
25376 * util/grub-mkimage.c: Likewise.
25377 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25378 * util/grub-probe.c: Likewise.
25379 * util/grub-script-check.c: Likewise.
25380 * util/i386/pc/grub-setup.c: Likewise.
25381 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25383 * tests/util/grub-shell.in: Fix override directory path.
25384 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25385 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25387 * util/lvm.c: Update #includes.
25388 * util/raid.c: Likewise.
25389 * util/resolve.c: Likewise.
25390 * grub-core/bus/emu/pci.c: Likewise.
25391 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25392 * grub-core/lib/posix_wrap/string.h: Likewise.
25393 * grub-core/kern/emu/main.c: Likewise.
25395 * grub-core/gensymlist.sh: New file. Script for generating kernel
25397 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25399 * grub-core/gentrigtables.c: Fix unused variable warnings.
25401 * Makefile.in: Removed.
25402 * conf/any-emu.rmk: Removed.
25403 * conf/common.rmk: Removed.
25404 * conf/i386-coreboot.rmk: Removed.
25405 * conf/i386-efi.rmk: Removed.
25406 * conf/i386-ieee1275.rmk: Removed.
25407 * conf/i386-multiboot.rmk: Removed.
25408 * conf/i386-pc.rmk: Removed.
25409 * conf/i386-qemu.rmk: Removed.
25410 * conf/i386.rmk: Removed.
25411 * conf/mips-yeeloong.rmk: Removed.
25412 * conf/mips.rmk: Removed.
25413 * conf/powerpc-ieee1275.rmk: Removed.
25414 * conf/sparc64-ieee1275.rmk: Removed.
25415 * conf/tests.rmk: Removed.
25416 * conf/x86-efi.rmk: Removed.
25417 * conf/x86_64-efi.rmk: Removed.
25418 * gendistlist.sh: Removed.
25419 * geninitheader.sh: Removed.
25420 * genkernsyms.sh.in: Removed.
25421 * genmk.rb: Removed.
25422 * gensymlist.sh.in: Removed.
25423 * mkinstalldirs: Removed.
25425 * grub-core/boot: ... to here.
25427 * grub-core/bus: ... to here.
25428 * commands: Moved ...
25429 * grub-core/commands: ... to here.
25431 * grub-core/disk: ... to here.
25432 * efiemu: Moved ...
25433 * grub-core/efiemu: ... to here.
25435 * grub-core/font: ... to here.
25437 * grub-core/fs: ... to here.
25438 * gencmdlist.sh: Moved ...
25439 * grub-core/gencmdlist.sh: ... to here.
25440 * genemuinit.sh: Moved ...
25441 * grub-core/genemuinit.sh: ... to here.
25442 * genemuinitheader.sh: Moved ...
25443 * grub-core/genemuinitheader.sh: ... to here.
25444 * genfslist.sh: Moved ...
25445 * grub-core/genfslist.sh: ... to here.
25446 * genhandlerlist.sh: Moved ...
25447 * grub-core/genhandlerlist.sh: ... to here.
25448 * genmoddep.awk: Moved ...
25449 * grub-core/genmoddep.awk: ... to here.
25450 * genmodsrc.sh: Moved ...
25451 * grub-core/genmodsrc.sh: ... to here.
25452 * genpartmaplist.sh: Moved ...
25453 * grub-core/genpartmaplist.sh: ... to here.
25454 * genparttoollist.sh: Moved ...
25455 * grub-core/genparttoollist.sh: ... to here.
25456 * genterminallist.sh: Moved ...
25457 * grub-core/genterminallist.sh: ... to here.
25458 * gentrigtables.c: Moved ...
25459 * grub-core/gentrigtables.c: ... to here.
25460 * genvideolist.sh: Moved ...
25461 * grub-core/genvideolist.sh: ... to here.
25462 * gettext: Moved ...
25463 * grub-core/gettext: ... to here.
25464 * gfxmenu: Moved ...
25465 * grub-core/gfxmenu: ... to here.
25466 * gnulib: Moved ...
25467 * grub-core/gnulib: ... to here.
25469 * grub-core/hello: ... to here.
25471 * grub-core/hook: ... to here.
25473 * grub-core/io: ... to here.
25475 * grub-core/kern: ... to here.
25477 * grub-core/lib: ... to here.
25478 * loader: Moved ...
25479 * grub-core/loader: ... to here.
25481 * grub-core/mmap: ... to here.
25482 * normal: Moved ...
25483 * grub-core/normal: ... to here.
25484 * partmap: Moved ...
25485 * grub-core/partmap: ... to here.
25486 * parttool: Moved ...
25487 * grub-core/parttool: ... to here.
25488 * script: Moved ...
25489 * grub-core/script: ... to here.
25491 * grub-core/term: ... to here
25492 * tests/example_functional_test.c: Moved ...
25493 * grub-core/tests/example_functional_test.c: ... to here.
25494 * tests/lib/functional_test.c: Moved ...
25495 * grub-core/tests/lib/functional_test.c: ... to here.
25496 * tests/lib/test.c: Moved ...
25497 * grub-core/tests/lib/test.c: ... to here.
25499 * grub-core/video: ... to here.
25501 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25503 Replace --enable-grub-emu-modules with grub-emu-lite.
25505 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25508 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25509 * kern/emu/full.c: New file. For grub-emu specific initialization.
25510 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25511 * kern/emu/main.c: Call initialization function grub_emu_init.
25513 * Makefile.in: Include grub-emu-lite in install.
25514 * commands/parttool.c: Use grub_no_autoload to differentiate
25515 between grub-emu and grub-emu-lite.
25516 * include/grub/misc.h: New variable grub_no_autoload.
25518 * conf/any-emu.rmk: New rules for grub-emu-lite.
25519 * configure.ac: Remove --enable-grub-emu-modules.
25520 * genmk.rb: Cleanup unnecessary rules.
25521 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25523 * normal/main.c: Don't load list files on grub-emu-lite.
25524 * util/misc.c (grub_arch_sync_caches): Removed.
25526 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25528 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25529 grub-mkimage rather than grub-mkelfimage.
25530 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25532 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25534 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25535 a key after CapsLock or NumLock. It's just a qemu bug.
25537 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25539 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25540 needed by libusb wrapper.
25542 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25544 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25546 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25548 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25549 --nounzip is passed.
25551 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25553 USB hotunplugging and USB serial support.
25555 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25556 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25557 (grub_uhci_transfer): Respect timeout and set *actual.
25558 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25559 non-standard length.
25560 (grub_usb_device_attach): Autoload modules.
25561 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25562 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25563 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25565 (grub_usb_add_hub): Fill nports and children.
25566 (attach_root_port): Receive hub instead of controller.
25567 All users updated. Fill hub->devices.
25568 (grub_usb_root_hub): Allocate hub->devices.
25569 (detach_device): New function.
25570 (poll_nonroot_hub): Fill children and detach devices.
25571 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25572 actual arguments. All users updated.
25573 (grub_usb_bulk_read_extended): New function.
25574 * bus/usb/serial/common.c: New file.
25575 * bus/usb/serial/ftdi.c: Likewise.
25576 * bus/usb/serial/pl2303.c: Likewise.
25577 * commands/terminal.c (handle_command): Support wildcard.
25578 * commands/usbtest.c: Output "Unknown" instead of empty string.
25579 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25580 (usbserial_common_mod_SOURCES): New variable.
25581 (usbserial_common_mod_CFLAGS): Likewise.
25582 (usbserial_common_mod_LDFLAGS): Likewise.
25583 (pkglib_MODULES): Add usbserial_pl2303.mod.
25584 (usbserial_pl2303_mod_SOURCES): New variable.
25585 (usbserial_pl2303_mod_CFLAGS): Likewise.
25586 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25587 (pkglib_MODULES): Add usbserial_ftdi.mod.
25588 (usbserial_ftdi_mod_SOURCES): New variable.
25589 (usbserial_ftdi_mod_CFLAGS): Likewise.
25590 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25591 (pkglib_MODULES): Add serial.mod.
25592 (serial_mod_SOURCES): New variable.
25593 (serial_mod_CFLAGS): Likewise.
25594 (serial_mod_LDFLAGS): Likewise.
25595 * conf/i386-pc.rmk: Likewise.
25596 * conf/mips-yeeloong.rmk: Likewise.
25597 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25598 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25599 * disk/usbms.c (first_available_slot): New variable.
25600 (grub_usbms_attach): Don't reuse free slots due to potential cache
25602 * include/grub/serial.h: Moved to ..
25603 * include/grub/ns8250.h: ...this.
25604 * include/grub/serial.h: New file.
25605 * include/grub/term.h (grub_term_poll_usb): New variable.
25606 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25607 readkey. All users updated.
25608 (grub_terminfo_output_state): Pass term to put.
25609 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25610 (grub_usb_controller_dev): Add timeout and actual arguments to
25611 transfer. All users updated.
25612 (grub_usb_interface): New field detach_data.
25613 (grub_usb_device): New fields children and nports.
25614 (grub_usb_ep_type_t): New type.
25615 (grub_usb_get_ep_type): New function.
25616 (grub_usb_bulk_read_extended): Likewise.
25617 * include/grub/usbdesc.h (grub_usb_desc): New type.
25618 * include/grub/usbserial.h: New file.
25619 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25620 * kern/term.c (grub_term_poll_usb): New variable.
25621 (grub_getkey): Call grub_term_poll_usb if set.
25622 (grub_checkkey): Likewise.
25623 (grub_getkeystatus): Likewise.
25624 * term/serial.c: Moved controller-specific parts to ...
25625 * term/ns8250.c: ... here.
25626 * term/serial.c: Mostly rewritten.
25627 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25630 2010-08-20 Robert Millan <rmh@gnu.org>
25632 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25633 a separate module and maybe other interesting combinations.
25635 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25636 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25637 (kfreebsd_entry): Add generic filesystem module load routine.
25638 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25640 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25642 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25643 "numcenter" (I misunderstood the purpose of this entry).
25644 * docs/grub.texi (sendkey): Likewise.
25646 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25648 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25649 status flag options; simply omitting the option is equivalent and
25650 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25651 (keysym_table): Rename "num5numlock" to "numlock".
25652 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25653 can uniformly say that only the last of multiple `sendkey'
25654 invocations has any effect.
25655 * docs/grub.texi (sendkey): New section.
25657 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25659 * commands/i386/pc/sendkey.c (options): Fix three typos.
25661 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25663 Implement sendkey support.
25665 * commands/i386/pc/sendkey.c: New file.
25666 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25667 (sendkey_mod_SOURCES): New variable.
25668 (sendkey_mod_CFLAGS): Likewise.
25669 (sendkey_mod_LDFLAGS): Likewise.
25671 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25673 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25674 fix warnings from Autoconf.
25676 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25678 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25679 to avoid false positives with some assemblers that output things
25680 like "someprefix_func" as part of their output.
25682 2010-08-15 Robert Millan <rmh@gnu.org>
25684 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25686 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25687 grub_get_libzfs_handle() errors.
25689 2010-08-14 Robert Millan <rmh@gnu.org>
25691 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25692 filesystem is not ZFS.
25694 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25696 Fix for misspelled color names defaulting to black/black (bug
25697 reported by Doug Nazar)
25699 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25700 status to prototype.
25701 * normal/color.c (grub_parse_color_name_pair): Return failure
25703 (grub_env_write_color_normal): Ignore bad color names.
25704 (grub_env_write_color_highlight): Likewise.
25705 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25707 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25709 "shift" command support to GRUB script.
25711 * include/grub/script_sh.h (grub_script_shift): New prototype.
25712 * script/execute.c (grub_script_shift): New function.
25713 * script/main.c (grub_script_init): Register shift command.
25714 (grub_script_fini): Unregister shift command.
25715 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25717 * tests/grub_script_shift.in: New testcase.
25718 * conf/tests.rmk: Rules for new testcase.
25720 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25722 "continue" command support to GRUB script.
25724 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25725 (grub_script_break): Continue support.
25726 * script/main.c (grub_script_init): Register continue command.
25727 (grub_script_fini): Unregister continue command.
25729 * tests/grub_script_continue.in: New testcase.
25730 * conf/tests.rmk: Rules for new testcase.
25732 2010-08-12 BVK Chaitanya <bvk@dbook>
25734 "break" command support to GRUB script.
25736 * conf/common.rmk: Rule updates to grub-script-check.
25737 * include/grub/misc.h (grub_min): New function.
25738 * include/grub/script_sh.h (grub_script_init): New prototype.
25739 (grub_script_fini): New prototype.
25740 (grub_script_break): New prototype.
25741 * script/main.c (grub_script_init): New function.
25742 (grub_script_fini): New function.
25743 * script/execute.c (grub_script_break): New function.
25744 * normal/main.c: Calls to grub_script_{init,fini}.
25745 * util/grub-script-check.c (grub_script_break): New function.
25747 * tests/grub_script_break.in: New testcase.
25748 * conf/tests.rmk: Rules for new test case.
25750 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25752 Function parameters support to GRUB script.
25754 * script/yylex.l (VARIABLE): Regular expression update.
25755 * script/function.c (grub_script_function_call): Moved ...
25756 * script/execute.c (grub_script_function_call): ... to here.
25757 (grub_script_execute_arglist_to_argv): Removed.
25758 (grub_script_arglist_to_argv): New function.
25759 * script/argv.c: New file.
25760 (grub_script_argv_free): New function.
25761 (grub_script_argv_next): Likewise.
25762 (grub_script_argv_append): Likewise.
25763 (grub_script_argv_split_append): Likewise.
25764 * include/grub/script_sh.h (grub_script_argv): New struct.
25765 (grub_script_argv_free): New function.
25766 (grub_script_argv_next): Likewise.
25767 (grub_script_argv_append): Likewise.
25768 (grub_script_argv_split_append): Likewise.
25770 * conf/common.rmk (normal.mod): New source script/argv.c.
25772 * tests/grub_script_echo1.in: More tests.
25773 * tests/grub_script_vars1.in: Likewise.
25774 * tests/grub_script_functions.in: New test case.
25775 * conf/tests.rmk: Rules for new testcase.
25777 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25779 Remove grub_script_cmdblock struct.
25781 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25782 * script/parser.y: Likewise.
25783 * script/execute.c: Rename cmdblock suffix to cmdlist.
25784 * script/script.c: Likewise.
25785 * util/grub-script-check.c: Likewise.
25787 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25789 * .bzrignore: add grub-macho2img
25791 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25793 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25795 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25797 Remove the dump of sm712 initialisation sequence.
25799 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25800 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25801 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25802 (GRUB_VGA_CR_*): Added many registers.
25803 (GRUB_VGA_SR_*): Likewise.
25804 (GRUB_VGA_GR_*): Likewise.
25805 (grub_vga_write_arx): New function.
25806 (grub_video_hw_config): New struct.
25807 (grub_vga_set_geometry): New function.
25808 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25809 GRUB_PCI_CLASS_SUBCLASS_VGA.
25810 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25811 * video/sm712.c (grub_sm712_write_reg): New function
25812 (grub_sm712_read_reg): Likewise.
25813 (grub_sm712_sr_write): Likewise.
25814 (grub_sm712_gr_write): Likewise.
25815 (grub_sm712_cr_write): Likewise.
25816 (grub_sm712_write_arx): Likewise.
25817 (grub_sm712_cr_shadow_write): Likewise.
25818 (grub_sm712_write_dda_lookup): Likewise.
25819 (grub_video_sm712_setup): Initialise the video rather then
25820 blindly replay the dump.
25821 (main) [TEST]: Add a routine to be able to compile as standalone for
25823 * video/sm712_init.c (sm712_init): Removed.
25824 (sm712_sr_seq1): New array.
25825 (sm712_sr_seq2): Likewise.
25827 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25829 * include/grub/vga.h: Add missing grub/pci.h include.
25831 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25833 * util/grub-macho2img.c (main): fix typo
25835 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25837 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25838 (grub_vga_gr_read): Likewise.
25839 (grub_vga_cr_write): Likewise.
25840 (grub_vga_cr_read): Likewise.
25841 (grub_vga_sr_write): Likewise.
25842 (grub_vga_sr_read): Likewise.
25843 (grub_vga_palette_read): Likewise.
25844 (grub_vga_palette_write): Likewise.
25845 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25846 (grub_sm712_sr_read): New function.
25847 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25848 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25850 2010-08-09 Robert Millan <rmh@gnu.org>
25852 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25853 out unused variables on non-ZFS build.
25855 2010-08-08 Robert Millan <rmh@gnu.org>
25857 Fix path generation for sub-filesystems in ZFS.
25859 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25862 2010-08-08 Robert Millan <rmh@gnu.org>
25864 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25866 2010-08-08 Robert Millan <rmh@gnu.org>
25868 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25869 exist, issue a proper error message (rely on `ls' for translated
25872 2010-08-08 Robert Millan <rmh@gnu.org>
25874 Fix grub-probe invocation.
25876 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25878 2010-08-04 Robert Millan <rmh@gnu.org>
25880 * configure.ac: Remove checks for getfsstat() and getmntany().
25881 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25882 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25883 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25884 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25885 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25887 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25888 via find_mount_point_from_dir() and getfsstat() / getmntany().
25890 2010-08-04 Robert Millan <rmh@gnu.org>
25892 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25893 (grub_find_zpool_from_mount_point): Merge into ...
25894 (grub_find_zpool_from_dir): ... this.
25895 * kern/emu/misc.c: Likewise.
25898 (grub_make_system_path_relative_to_its_root): Replace
25899 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25900 with grub_find_zpool_from_dir().
25901 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25903 2010-08-04 Robert Millan <rmh@gnu.org>
25905 Support OpenSolaris in ZFS device resolution.
25907 * configure.ac: Check for getmntany().
25908 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25909 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25912 2010-08-03 Robert Millan <rmh@gnu.org>
25914 Fix grub-emu build.
25916 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25917 * include/grub/emu/misc.h: ... here.
25919 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25920 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25922 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25923 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25924 (grub_get_libzfs_handle): Move to ...
25925 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
25926 (grub_get_libzfs_handle): ... here.
25928 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
25930 * script/execute.c (grub_script_execute_cmdline): Check for NULL
25931 as command name case.
25933 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
25935 * disk/raid.c (insert_array): Select unique numbers for named arrays
25936 as well, for use as keys in the disk cache.
25938 2010-08-01 Robert Millan <rmh@gnu.org>
25940 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
25941 kFreeBSD device name, except on ZFS where the filesystem label is
25943 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
25944 `/boot/zfs/zpool.cache'.
25945 Set mountfrom kernel variable using ${kfreebsd_device}.
25947 2010-08-01 Robert Millan <rmh@gnu.org>
25949 Make it even harder to use uninitialized `libzfs_handle' (and
25950 make the interface a bit simpler).
25952 * include/grub/util/misc.h (grub_util_init_libzfs)
25953 (libzfs_handle): Remove.
25954 (grub_get_libzfs_handle): New prototype.
25956 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
25958 (grub_util_init_libzfs): Remove.
25959 (grub_get_libzfs_handle): New function.
25961 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
25962 grub_get_libzfs_handle() to obtain a libzfs handle instead of
25963 accessing `libzfs_handle' directly.
25965 2010-08-01 Robert Millan <rmh@gnu.org>
25967 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25968 (grub_find_zpool_from_mount_point): New function prototypes.
25970 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
25971 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
25973 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
25974 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
25975 `static' attribute.
25977 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
25978 finding zpool from mount point into ...
25979 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
25981 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
25982 requested path is part of a ZFS pool, use
25983 grub_find_zpool_from_mount_point() to detect its filesystem name,
25984 and generate a path with `/fsname@path' syntax.
25986 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25988 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
25989 (void) rather than () so that this is a proper prototype.
25991 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25993 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
25995 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25997 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
25998 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26000 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26002 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26004 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26006 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26008 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26010 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26011 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26012 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26013 disable gfxpayload.
26014 (Shell-like scripting): Add real content.
26015 (Serial terminal): Suggest `terminal_input serial; terminal_output
26016 serial' rather than putting the two commands on separate lines,
26017 since console input will be inoperative after the first command.
26018 (menuentry): Document --class, --users, and --hotkey options.
26019 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26020 Vladimir Serbinenko).
26022 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26023 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26025 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26027 2010-08-01 Robert Millan <rmh@gnu.org>
26029 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26030 (grub_find_zpool_from_mount_point): New function prototypes.
26032 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26033 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26035 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26036 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26037 `static' attribute.
26039 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26040 finding zpool from mount point into ...
26041 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26043 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26044 requested path is part of a ZFS pool, use
26045 grub_find_zpool_from_mount_point() to detect its filesystem name,
26046 and generate a path with `/fsname@path' syntax.
26048 2010-08-01 Robert Millan <rmh@gnu.org>
26050 Prevent accidental use of uninitialized libzfs_handle.
26052 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26053 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26054 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26056 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26058 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26059 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26061 2010-08-01 Robert Millan <rmh@gnu.org>
26063 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26065 2010-07-31 Robert Millan <rmh@gnu.org>
26067 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26069 2010-07-31 Robert Millan <rmh@gnu.org>
26071 * kern/emu/misc.c: Add missing license header.
26073 2010-07-31 Robert Millan <rmh@gnu.org>
26075 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26077 * include/grub/util/libnvpair.h: Include `<config.h>'.
26078 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26079 declaring libnvpair prototypes ourselves.
26080 * include/grub/util/libzfs.h: Include `<config.h>'.
26081 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26082 declaring libzfs prototypes ourselves.
26084 (libzfs_handle): Moved to ...
26085 * include/grub/util/misc.h (libzfs_handle): ... here.
26086 Include `<grub/util/libzfs.h>'.
26088 2010-07-30 Robert Millan <rmh@gnu.org>
26090 * include/grub/emu/misc.h: Add missing license header.
26092 2010-07-30 Robert Millan <rmh@gnu.org>
26094 Enable `grub-probe -t device' resolution on ZFS.
26096 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26097 * include/grub/util/libnvpair.h: New file.
26098 * include/grub/util/libzfs.h: New file.
26100 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26101 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26102 `<grub/util/libnvpair.h>'.
26103 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26105 (find_mount_point_from_dir): New static function.
26106 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26108 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26109 find_root_device_from_libzfs() before ressorting to find_root_device().
26111 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26113 * util/misc.c: Include `<grub/util/libzfs.h>'.
26114 (grub_util_init_libzfs): New function.
26115 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26116 [HAVE_LIBZFS] (fini_libzfs): New static function.
26117 (grub_util_init_libzfs): New function.
26118 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26120 2010-07-30 Robert Millan <rmh@gnu.org>
26122 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26123 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26124 `warn_unused_result' attribute.
26125 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26126 (grub_xasprintf, grub_xvasprintf): Likewise.
26127 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26129 2010-07-29 Robert Millan <rmh@gnu.org>
26131 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26132 (probe): Handle `PRINT_FS_LABEL'.
26133 (main): Handle `-t fs_label'.
26135 2010-07-29 Robert Millan <rmh@gnu.org>
26137 * configure.ac: Remove grub-mkisofs checks.
26139 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26141 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26142 Reported by: Lennart Sorensen.
26144 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26146 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26147 prior to terminal_input/terminal_output separation. It's been over 1.5
26148 years and those versions weren't widely deployed.
26150 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26152 * disk/raid.c (insert_array): Don't count named arrays when looking
26153 for unused array numbers.
26154 Reported and tested by: Michael Guntsche.
26156 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26158 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26159 implementation of this so that grub-emu links again, with a note
26160 that this should support hotplugging in the future.
26162 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26164 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26166 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26168 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26170 (grub_loopback_close): Remove empty function.
26171 (grub_loopback_dev): Remove close method.
26173 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26175 Disable EFI cursor when the EFI console becomes inactive.
26177 * term/efi/console.c (grub_efi_console_init): New function.
26178 (grub_efi_console_fini): New function.
26179 (grub_console_term_output): Register init and fini methods.
26181 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26183 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26186 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26188 * disk/loopback.c (grub_loopback): Replace filename with file.
26189 (delete_loopback): Handle new semantics.
26190 (grub_cmd_loopback): Likewise.
26191 (grub_loopback_iterate): Likewise.
26192 (grub_loopback_close): Likewise.
26194 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26196 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26198 Reported by: Tito Keitel.
26200 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26202 * docs/grub.texi (Naming convention): Document new naming convention.
26204 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26205 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26207 Generate device.map in something closer to the old ordering.
26209 * util/deviceiter.c (struct device): New declaration.
26210 (compare_file_names): Rename to ...
26211 (compare_devices): ... this. Sort by kernel name in preference to
26212 the stable by-id name, but keep the latter as a fallback comparison.
26213 Update header comment.
26214 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26215 of `struct device' rather than of plain file names.
26217 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26219 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26222 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26224 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26226 (setv1table): Likewise.
26228 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26230 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26231 removing the homehost if present.
26232 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26233 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26234 removing the homehost if present.
26235 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26237 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26239 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26240 parameter. Set its pointer target to 0.
26241 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26242 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26243 `data_offset' value from the superblock for 1.x metadata.
26244 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26245 data on the device.
26246 (insert_array): Record the start sector of data on the device.
26247 (grub_raid_register): Pass start_sector parameters to
26248 grub_raid_list->detect and insert_array.
26249 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26251 (struct grub_raid): Add start_sector parameter to `detect'.
26253 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26254 __attribute__ ((packed)), leaving a comment.
26255 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26256 (grub_mdraid_detect_09): ... here and ...
26257 (grub_mdraid_detect_1x): ... here.
26259 2010-07-20 Peter Henn <peter.henn@web.de>
26261 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26262 chunk size and disk size, which are already given as sector counts
26263 as distinct from the 0.90 units. Fetch the correct device number
26264 from the role table instead of using the table index.
26266 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26268 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26269 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26270 (WriteMostly1): New macro.
26271 Set array->name to NULL for metadata format 0.90. Add support for
26272 metadata 1.x. Fix some comments.
26273 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26275 * util/getroot.c (grub_util_get_grub_dev): Add support for
26276 /dev/md/name style devices.
26278 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26280 * .bzrignore: Ignore 20_linux_xen.
26282 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26284 * util/import_unicode.py: Remove unnecessary imports.
26286 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26288 Hotplugging and USB hub support.
26290 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26291 (grub_ohci): Likewise.
26292 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26293 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26294 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26295 (GRUB_OHCI_CTRL_EDS): Likewise.
26296 (GRUB_OHCI_BULK_EDS): Likewise.
26297 (GRUB_OHCI_TDS): Likewise.
26298 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26299 (grub_ohci_ed_phys2virt): New function.
26300 (grub_ohci_virt_to_phys): Likewise.
26301 (grub_ohci_td_phys2virt): Likewise.
26302 (grub_ohci_td_virt2phys): Likewise.
26303 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26305 (grub_ohci_find_ed): New function.
26306 (grub_ohci_alloc_td): Likewise.
26307 (grub_ohci_free_td): Likewise.
26308 (grub_ohci_free_tds): Likewise.
26309 (grub_ohci_transfer): Use previously allocated memory.
26310 (grub_ohci_portstatus): Reset status changed bit.
26311 (grub_ohci_detect_dev): Supply status changed.
26312 (grub_ohci_fini_hw): Free memory.
26313 (grub_ohci_restore_hw): Reallocate memory.
26314 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26315 Reset status change.
26316 (grub_uhci_detect_dev): Supply status_change.
26317 * bus/usb/usb.c (attach_hooks): New var.
26318 (grub_usb_device_attach): New function.
26319 (grub_usb_register_attach_hook_class): Likewise.
26320 (grub_usb_unregister_attach_hook_class): Likewise.
26321 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26322 (grub_usb_add_hub): Reset connection changed bit.
26323 (attach_root_port): New function.
26324 (grub_usb_root_hub): Likewise.
26325 (poll_nonroot_hub): Likewise.
26326 (grub_usb_poll_devices): Likewise.
26327 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26328 * disk/usbms.c (grub_usbms_open): Use device hooks.
26329 (grub_usbms_iterate) :Poll devices.
26330 (grub_usbms_finddevs): Split into ...
26331 (grub_usbms_attach): ... this ...
26332 (grub_usbms_attach): ... and this.
26333 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26335 (grub_usb_interface): New fields attached and detach_hook.
26336 (grub_usb_attach_hook_class): New type.
26337 (grub_usb_attach_desc): New struct.
26338 (grub_usb_register_attach_hook_class): New function.
26339 (grub_usb_unregister_attach_hook_class): Likewise.
26340 (grub_usb_poll_devices): Likewise.
26341 (grub_usb_device_attach): Likewise.
26342 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26343 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26345 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26347 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26348 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26349 delta determination style. Works with most NetBSD partitions too.
26351 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26353 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26354 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26356 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26358 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26360 2010-07-14 Anton Blanchard <anton@samba.org>
26362 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26365 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26367 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26369 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26371 * kern/partition.c (grub_partition_check_containment): New function to
26372 check that a partition is physically contained in a parent. Since
26373 offsets are relative (and non-negative), this reduces to checking that
26374 the partition ends before its parent.
26375 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26376 (grub_partition_iterate): Likewise.
26377 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26379 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26380 partitions that start before their parent, and add debug printfs.
26382 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26384 * Makefile.in (.SUFFIX): Spell correctly, as ...
26385 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26386 bare module name without `.mod', e.g. `test') tried to invoke a
26389 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26391 * README: Point to the Info manual.
26393 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26395 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26396 2nd superblock position from partition size.
26398 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26400 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26401 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26402 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26405 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26407 Restructure SCSI .id handling.
26408 Reported and tested by: Aleš Nesrsta.
26410 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26411 (grub_atapi_dev): Changed .name to "ata". New field .id.
26412 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26413 (grub_usbms_dev): New field .id.
26414 * disk/scsi.c (grub_scsi_iterate): Generate name.
26415 (grub_scsi_open): Parse name.
26416 * include/grub/scsi.h (grub_make_scsi_id): New function.
26417 (grub_scsi_dev): Change iterate and open to number instead of naming
26418 busses. All users updated.
26419 (grub_scsi): Remove name. Add .bus.
26421 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26423 * commands/help.c (grub_cmd_help): Fix a typo.
26425 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26427 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26428 Reported and tested by: Colin Watson.
26430 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26432 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26435 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26437 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26439 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26441 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26444 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26446 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26447 and disk/raid6_recover.c.
26448 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26449 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26451 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26453 * term/gfxterm.c (repaint_schedulded): Rename to ...
26454 (repaint_scheduled): ... this. Update all callers.
26455 (repaint_was_schedulded): Rename to ...
26456 (repaint_was_scheduled): ... this. Update all callers.
26458 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26460 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26461 which we expect to be handled by upper layers.
26463 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26465 * bus/usb/usbhub.c: #include time.h header.
26467 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26469 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26470 entry_name also for entries without stat blocks (e.g. ".."); fixes
26471 corruption of the first entry in a directory.
26473 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26475 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26476 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26477 doesn't work otherwise.
26479 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26481 * docs/grub.texi (Features): Update list of supported file systems.
26482 (GNU/Linux): Update for GRUB 2.
26483 (Serial terminal): Remove mention of --disable-serial, which was a
26484 GRUB Legacy configure option. Update instructions to use
26485 `terminal_input' and `terminal_output' rather than `terminal'.
26486 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26487 configuration' and `Installing GRUB using grub-install'.
26488 (Menu entry editor): Update for GRUB 2.
26489 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26490 Document new -a, -u, and -v options.
26491 (initrd): New section.
26492 (initrd16): New section.
26493 (linux): New section.
26494 (linux16): New section.
26495 (search): The `var' argument to `--set' is optional.
26496 (GRUB only offers a rescue shell): Go into a little more detail on
26499 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26501 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26503 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26505 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26506 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26508 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26510 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26511 install_prefix, in line with install_dos_part and install_bsd_part.
26512 Add new prefix variable, which is copied to install_prefix after
26513 comparing core.img in memory with the one read from disk in the
26514 no-embedding case, and use that rather than overwriting
26515 install_prefix immediately when installing to a partition.
26516 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26519 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26521 * configure.ac: Avoid == in test command, it's not portable.
26522 * util/grub.d/30_os-prober.in: Likewise.
26524 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26526 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26528 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26530 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26531 multiple (top-level) partmaps.
26533 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26535 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26536 Reported by: Tino Keitel.
26538 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26540 Bidi and diacritics support.
26542 * Makefile.in (widthspec.bin): New target.
26543 (widthspec.h): Likewise.
26544 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26545 * autogen.sh: Generate unidata.c.
26546 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26547 * commands/ls.c (grub_ls_list_devices): Likewise.
26548 (grub_ls_list_files): Likewise.
26549 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26550 (grub_mini_cmd_lsmod): Likewise.
26551 * commands/read.c: Likewise.
26552 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26553 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26554 * lib/arg.c (grub_arg_show_help): Likewise.
26555 * lib/crypto.c (grub_password_get): Likewise.
26556 * normal/auth.c (grub_username_get): Likewise.
26557 * normal/misc.c (grub_normal_print_device_info): Likewise.
26558 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26559 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26560 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26561 (normal/charset.c_DEPENDENCIES): New variable.
26562 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26563 (pkglib_MODULES): Remove charset.mod.
26564 (charset_mod_SOURCES): Removed.
26565 (charset_mod_CFLAGS): Likewise.
26566 (charset_mod_LDFLAGS): Likewise.
26567 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26568 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26570 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26571 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26572 (kernel_img_HEADERS): Add terminfo.h.
26573 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26574 Fill ->font. Reverse ascii bitmaps.
26575 (grub_font_get_xheight): New function.
26576 * font/font.c (grub_font_get_string_width): Moved from here ...
26577 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26578 * font/font.c (grub_font_draw_string): Moved from here ...
26579 * gfxmenu/font.c (grub_font_draw_string): ... here.
26580 * font/font.c (grub_font_dup_glyph): New function.
26581 (grub_font_blit_glyph): Likewise.
26582 (grub_font_blit_glyph_mirror): Likewise.
26583 (blit_comb): Likewise.
26584 (grub_font_construct_dry_run): Likewise.
26585 (grub_font_get_constructed_device_width): Likewise.
26586 (grub_font_construct_glyph): Likewise.
26587 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26588 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26589 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26590 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26591 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26592 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26593 (grub_font_get_xheight): New proto.
26594 (grub_font_get_constructed_device_width): Likewise.
26595 (grub_font_construct_glyph): Likewise.
26596 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26597 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26598 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26599 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26600 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26601 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26602 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26603 (grub_console_getcharwidth): Likewise.
26604 * include/grub/misc.h (grub_xputs): New proto.
26605 (grub_puts): Inlined.
26606 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26607 (grub_normal_get_line_counter): Removed.
26608 (grub_install_newline_hook): Likewise.
26609 (grub_normal_get_char_counter): New proto.
26610 (grub_normal_reset_more): Likewise.
26611 (grub_xputs_normal): Likewise.
26612 * include/grub/powerpc/ieee1275/console.h: Removed.
26613 * include/grub/sparc64/ieee1275/console.h: Likewise.
26614 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26615 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26616 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26617 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26618 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26619 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26620 (grub_term_input): Pass reference to self. All users updated.
26621 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26622 Pass reference to self. New fields normal_color, highlight_color and
26623 data. All users updated.
26624 (grub_putchar): Removed.
26625 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26626 (grub_unicode_estimate_width): New function.
26627 (grub_term_getcharwidth): Add defaults.
26628 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26629 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26630 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26631 (grub_cls): Remove EXPORT_FUNC.
26632 (grub_setcolorstate): Inline.
26633 (grub_newline_hook): Removed.
26634 * include/grub/terminfo.h: Rewritten. All users updated.
26635 * include/grub/unicode.h: New file.
26636 * include/grub/video.h (grub_video_signed_rect): New type.
26637 * kern/emu/console.c (grub_console_highlight_color): Removed.
26638 (grub_console_normal_color): Likewise.
26639 (grub_console_standard_color): Made static.
26640 (grub_ncurses_putchar): Remove mapping.
26641 (grub_ncurses_getcharwidth): Removed.
26642 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26643 (grub_ncurses_setcolor): Removed.
26644 (grub_ncurses_getcolor): Likewise.
26645 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26646 (grub_console_putchar): ... this.
26647 (grub_console_putchar): Handle argument difference.
26648 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26649 console_init_early and console_init_lately.
26650 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26651 * kern/misc.c (grub_puts): Removed.
26652 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26653 (grub_vsnprintf_real): Remove str = NULL support.
26654 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26655 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26656 * kern/term.c (grub_putcode): Renamed to ...
26657 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26658 (grub_putchar): Removed.
26659 (grub_xputs_dumb): New function.
26660 (grub_xputs): New variable.
26661 * lib/charset.c: Move from here ...
26662 * normal/charset.c: ... to here.
26663 (grub_ucs4_to_utf8): New function.
26664 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26665 (join_types): New variable.
26666 (unpack_join): New function.
26667 (bidi_types): New variable.
26668 (unpack_bidi): New function.
26669 (get_bidi_type): Likewise.
26670 (get_join_type): Likewise.
26671 (is_mirrored): Likewise.
26672 (grub_unicode_get_comb_type): Likewise.
26673 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26674 (is_type_after): Likewise.
26675 (grub_unicode_aglomerate_comb): Likewise.
26676 (bidi_line_wrap): Likewise.
26677 (grub_bidi_line_logical_to_visual): Likewise.
26678 (grub_bidi_logical_to_visual): Likewise.
26679 (grub_unicode_mirror_code): Likewise.
26680 (grub_unicode_shape_code): Likewise.
26681 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26682 Don't use grub_putchar.
26683 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26684 (grub_normal_reader_init): Likewise.
26685 (grub_xputs_saved): New variable.
26686 (GRUB_MOD_INIT): Set grub_xputs.
26687 (GRUB_MOD_FINI): Restore grub_xputs.
26688 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26689 (menu_init): Avoid printing gfxmenu error.
26690 (show_menu): Use grub_normal_get_char_counter.
26691 * normal/menu_entry.c (update_screen): Fix out-of-array.
26692 (complete): Avoid NULL dereferencing.
26693 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26694 * normal/menu_text.c (print_spaces): Removed.
26695 (grub_print_ucs4): Likewise.
26696 (grub_print_message_indented): Use grub_print_ucs4.
26697 (print_message): Use grub_putcode.
26698 (print_entry): Hanlde diacritics.
26699 * normal/term.c (term_state): New type.
26700 (grub_more_lines): Removed.
26701 (term_states): New variable.
26702 (grub_normal_line_counter): Renamed to ..
26703 (grub_normal_char_counter): ...this. All users updated.
26704 (grub_normal_get_line_counter): Renamed to ...
26705 (grub_normal_get_char_counter): ... this.
26706 (grub_normal_reset_more): New function.
26707 (process_newline): Removed.
26708 (print_more): New function.
26709 (grub_install_newline_hook): Removed.
26710 (map_code): New function.
26711 (grub_puts_terminal): Use grub_print_ucs4.
26712 (putglyph): New function.
26713 (putcode_real): Likewise.
26714 (grub_putcode): Use putcode_real.
26715 (get_maxwidth): New function.
26716 (get_startwidth): Likewise.
26717 (print_ucs4_terminal): Likewise.
26718 (find_term_state): Likewise.
26719 (put_glyphs_terminal): Likewise.
26720 (print_backlog): Likewise.
26721 (print_ucs4_real): Likewise.
26722 (grub_print_ucs4): Likewise.
26723 (grub_xputs_normal): Likewise.
26724 * term/efi/console.c (grub_console_putchar): Output diacritics.
26725 (grub_console_getcharwidth): Removed.
26726 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26727 * term/gfxterm.c (clear_char): Free chars.
26728 (scroll_up): Avoid leaking memory.
26729 (grub_gfxterm_putchar): Support diacritics.
26730 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26731 * term/i386/pc/console.c (grub_console_term_output): Declare as
26732 GRUB_TERM_CODE_TYPE_VGA.
26733 * term/i386/pc/vga.c (grub_vga_term): Declare as
26734 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26735 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26736 GRUB_TERM_CODE_TYPE_VGA.
26737 * term/i386/vga_common.c (map_char): Removed.
26738 (grub_console_putchar): Likewise.
26739 (grub_console_getcharwidth): Likewise.
26740 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26741 (colors): Reordered to match terminfo.
26742 (grub_ofconsole_normal_color): Removed.
26743 (grub_ofconsole_writeesc): Likewise.
26744 (grub_ofconsole_highlight_color): Likewise.
26745 (grub_ofconsole_getcharwidth): Likewise.
26746 (grub_ofconsole_setcolorstate): Likewise.
26747 (grub_ofconsole_setcolor): Likewise.
26748 (grub_ofconsole_getcolor): Likewise.
26749 (grub_ofconsole_readkey): Renamed to ...
26750 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26752 (grub_ofconsole_checkkey): Removed.
26753 (grub_ofconsole_getkey): Likewise.
26754 (grub_ofconsole_getxy): Likewise.
26755 (grub_ofconsole_gotoxy): Likewise.
26756 (grub_ofconsole_cls): Likewise.
26757 (grub_ofconsole_refresh): Likewise.
26758 (grub_ofconsole_terminfo_input): New struct.
26759 (grub_ofconsole_terminfo_output): Likewise.
26760 (grub_ofconsole_term_input): Use terminfo.
26761 (grub_ofconsole_term_output): Likewise.
26762 (grub_console_init): Split into ...
26763 (grub_console_init_early): ...this and ...
26764 (grub_console_init_lately): ...this. Use terminfo.
26765 (grub_ofconsole_putchar): Renamed to ...
26766 (put): ... this. Remove mapping.
26767 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26768 * term/serial.c: Simplify using terminfo.
26771 (keep_track): Likewise.
26772 (registered): Likewise.
26773 (input_buf): Likewise.
26774 (npending): Likewise.
26775 (serial_translate_key_sequence): Likewise.
26776 (fill_input_buf): Likewise.
26777 (grub_serial_checkkey): Likewise.
26778 (grub_serial_getkey): Likewise.
26779 (grub_serial_getxy): Likewise.
26780 (grub_serial_gotoxy): Likewise.
26781 (grub_serial_putchar): Likewise.
26782 (grub_serial_cls): Likewise.
26783 (grub_serial_setcolorstate): Likewise.
26784 (grub_serial_setcursor): Likewise.
26785 (serial_hw_init): Use serial_hw_fetch.
26786 (grub_serial_terminfo_input): New variable.
26787 (grub_serial_terminfo_output): Likewise.
26788 (grub_serial_term_input): Use terminfo.
26789 (grub_serial_term_output): Likewise.
26790 * term/terminfo.c (putstr): Use put.
26791 (grub_terminfo_all_free): New function
26792 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26793 (grub_terminfo_output_register): New function.
26794 (grub_terminfo_output_unregister): Likewise.
26795 (grub_terminfo_getxy): Likewise.
26796 (grub_terminfo_readkey): Likewise.
26797 (grub_terminfo_checkkey): Likewise.
26798 (grub_terminfo_getkey): Likewise.
26799 (grub_terminfo_input_init): Likewise.
26800 (print_terminfo): Likewise.
26801 (grub_cmd_terminfo): Handle encoding.
26802 (grub_terminfo_gotoxy): Track position.
26803 (grub_terminfo_cls): Likewise.
26804 (grub_terminfo_putchar): Likewise.
26805 (grub_terminfo_setcolorstate): Handle colors
26806 (grub_terminfo_cursor_on): This ...
26807 (grub_terminfo_cursor_off): ... and this merged into ...
26808 (grub_terminfo_setcursor): ... this.
26809 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26810 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26811 * unicode/BidiMirroring.txt: Likewise.
26812 * unicode/UnicodeData.txt: Likewise.
26813 * unicode/COPYING: Likewise.
26814 * util/grub-editenv.c (grub_putchar): Removed.
26815 (grub_xputs_real): New function.
26816 (grub_xputs): New variable.
26817 * util/grub-fstest.c (grub_putchar): Removed.
26818 (grub_xputs_real): New function.
26819 (grub_xputs): New variable.
26820 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26821 (grub_xputs_real): New function.
26822 (grub_xputs): New variable.
26823 * util/grub-probe.c (grub_putchar): Removed.
26824 (grub_xputs_real): New function.
26825 (grub_xputs): New variable.
26826 * util/grub-script-check.c (grub_putchar): Removed.
26827 (grub_xputs_real): New function.
26828 (grub_xputs): New variable.
26829 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26830 (grub_xputs_real): New function.
26831 (grub_xputs): New variable.
26832 * util/import_unicode.py: New file.
26833 * util/grub-mkfont.c (ft_errmsgs): New array.
26834 (grub_glyph_info): Make bitmap a pointer.
26835 (file_formats): New type WIDTH_SPEC.
26836 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26837 (options): Add width-spec.
26839 (add_char): Renamed to ...
26840 (add_glyph): ... this.
26841 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26842 (glyph_replace): New type.
26843 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26844 (add_char): New function.
26845 (add_subst): Likewise.
26846 (process_cursive): Likewise.
26847 (add_font): Handle GSUB.
26848 (write_font_width_spec): New function.
26849 (main): Sort glyphs.
26850 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26851 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26852 * kern/term.c (grub_cls): Moved from here...
26853 * normal/term.c (grub_cls): ... here.
26855 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26857 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26858 suitable for using within the format argument of printf when
26859 converting grub_size_t.
26860 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26861 "x" to convert grub_size_t arguments.
26863 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26865 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26867 (list_get_minimal_size): Take selection box into account.
26869 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26871 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26874 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26876 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26877 devices when iterating over /dev/disk/by-id; they will be handled
26878 later if appropriate, which they aren't always (e.g. LVM).
26880 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26882 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26883 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26885 (grub_halt): Likewise.
26886 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26888 (grub_halt): Don't return, even if all of shut-down, power-off, and
26891 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26893 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26894 arguments, not three.
26896 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26898 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26899 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26900 LVM-on-RAID is handled correctly.
26902 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26904 * docs/grub.texi (Changes from GRUB Legacy): New section.
26905 (Future): Fix typo.
26907 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26909 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26910 grub.d/README accidentally ends up executable for one reason or
26911 another. Ignore it.
26913 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26915 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26916 (gpt_partition_map_iterate): Support non-512B sectors.
26918 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26920 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26921 Tested by: Seth Goldberg.
26923 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26925 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
26926 Properly align mbi.
26927 Reported by: Seth Goldberg.
26929 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26931 * util/grub-mkrescue.in: Avoid module duplication.
26933 2010-07-01 Sean Finney <seanius@seanius.net>
26935 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
26937 2010-07-01 Sean Finney <seanius@seanius.net>
26939 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
26941 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26943 * disk/lvm.c (grub_lvm_checkvalue): New function.
26944 (grub_lvm_check_flag): Likewise.
26946 2010-07-01 Robert Millan <rmh@gnu.org>
26948 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
26949 Support 'p' as partition separator on kernel of FreeBSD (used
26951 (grub_util_biosdisk_get_grub_dev): Likewise.
26953 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26955 Yeeloong firmware port.
26957 * boot/mips/yeeloong/fwstart.S: New file.
26958 * bus/cs5536.c (gpiodump): New const.
26959 (set_io_space): New function.
26960 (set_iod): Likewise.
26961 (set_p2d): Likewise.
26962 (grub_cs5536_init_geode): Likewise.
26963 * commands/mips/yeeloong/lsspd.c: New file.
26964 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
26965 (serial_mod_SOURCES): New variable.
26966 (serial_mod_CFLAGS): Likewise.
26967 (serial_mod_LDFLAGS): Likewise.
26968 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
26969 term/terminfo.c and term/tparm.c.
26970 (pkglib_IMAGES): Add fwstart.img.
26971 (fwstart_img_SOURCES): New variable.
26972 (fwstart_img_CFLAGS): Likewise.
26973 (fwstart_img_ASFLAGS): Likewise.
26974 (fwstart_img_LDFLAGS): Likewise.
26975 (fwstart_img_FORMAT): Likewise.
26976 (pkglib_MODULES): Add lsspd.mod.
26977 (lsspd_mod_SOURCES): New variable.
26978 (lsspd_mod_CFLAGS): Likewise.
26979 (lsspd_mod_LDFLAGS): Likewise.
26980 (pkglib_MODULES): Add halt.mod.
26981 (halt_mod_SOURCES): New variable.
26982 (halt_mod_CFLAGS): Likewise.
26983 (halt_mod_LDFLAGS): Likewise.
26984 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
26985 (serial_mod_SOURCES): Removed.
26986 (serial_mod_CFLAGS): Likewise.
26987 (serial_mod_LDFLAGS): Likewise.
26988 * disk/ata.c (check_device): New function.
26989 (grub_ata_device_initialize): Use check_device.
26990 (grub_ata_iterate): Recheck devices.
26991 (grub_ata_open): Likewise.
26992 (grub_atapi_iterate): Likewise.
26993 (grub_atapi_open): Likewise.
26994 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
26995 (GRUB_ATA_CH1_PORT1): Likewise.
26996 (GRUB_ATA_CH0_PORT2): Likewise.
26997 (GRUB_ATA_CH1_PORT2): Likewise.
26998 * include/grub/mips/loongson.h: New file.
26999 * include/grub/mips/yeeloong/ec.h: Likewise.
27000 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27001 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27002 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27003 * include/grub/misc.h (grub_halt): Declare as noreturn.
27004 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27005 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27006 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27007 (UART_ENABLE_DTRRTS): Likewise.
27008 (UART_ENABLE_MODEM): Removed.
27009 (UART_ENABLE_OUT2): New const.
27010 * include/grub/term.h (grub_term_register_input_active): New function.
27011 (grub_term_register_output_active): Likewise.
27012 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27014 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27015 (init_pci): New function.
27016 (grub_machine_init): Execute platform init when firmware. Init serial.
27017 (grub_halt): Implement.
27018 (grub_exit): Likewise.
27019 (grub_reboot): Likewise.
27020 * term/serial.c (serial_hw_init): Update macros.
27021 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27022 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27023 (image_targets): New target mipsel-yeeloong-flash.
27024 (generate_image): Support IMAGE_YEELOONG_FLASH.
27025 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27026 (grub_video_sm712_setup): Init card.
27027 (grub_video_sm712_set_palette): Removed.
27028 * video/sm712_init.c: New file.
27030 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27032 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27033 PATH when running help2man and then run it on the unadorned
27034 executable names, rather than passing $(builddir)/* paths to
27035 help2man. This avoids the build directory ending up in generated
27038 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27040 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27041 to avoid accidents when debugging with 'sh -x'.
27042 * util/grub-mkrescue.in: Likewise.
27043 * util/grub.d/00_header.in: Likewise.
27044 * util/grub.d/10_hurd.in: Likewise.
27045 * util/grub.d/10_kfreebsd.in: Likewise.
27046 * util/grub.d/10_linux.in: Likewise.
27047 * util/grub.d/10_netbsd.in: Likewise.
27048 * util/grub.d/10_windows.in: Likewise.
27049 * util/grub.d/20_linux_xen.in: Likewise.
27050 * util/grub.d/30_os-prober.in: Likewise.
27051 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27053 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27055 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27056 last character in the buffer.
27057 Reported by: Vladimir Serbinenko.
27059 2010-06-29 Robert Millan <rmh@gnu.org>
27061 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27062 (Command-line and menu entry commands): Document `badram' command.
27064 2010-06-28 Robert Millan <rmh@gnu.org>
27066 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27067 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27068 command using ${GRUB_BADRAM} as parameter.
27070 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27072 * docs/grub.texi (Device map): New section.
27073 (Themes): New section (stub).
27074 * Makefile.in (docs/grub.info): The info documentation now builds
27075 without errors. Make sure it stays that way.
27077 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27079 Use normal parser for menu entries.
27080 Reported by: Thomas Frauendorfer
27082 * include/grub/parser.h (grub_parser_execute): Don't export.
27083 * normal/menu.c (grub_menu_execute_entry_real): New function.
27084 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27086 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27088 * docs/grub.texi (Embedded configuration): New section (replacing
27089 old "Preset Menu" stub).
27090 (Images): New section.
27091 (configfile): Note that any menu entries defined in `file' are shown
27094 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27096 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27098 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27100 * util/grub-install.in: Add --debug-image= option.
27102 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27104 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27107 * util/deviceiter.c (check_device): Rename to ...
27108 (check_device_readable_unique): ... this. Update all callers.
27109 Maintain and check a list of which devices (by canonicalized name)
27110 have already been seen.
27111 (clear_seen_devices): New function.
27112 (compare_file_names) [__linux__]: New function.
27113 (grub_util_iterate_devices): Clear the list of seen devices on exit
27114 and (just in case) on entry.
27115 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27116 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27117 seen-devices list, superseded by general code in check_device.
27119 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27121 * commands/cat.c (options): New variable.
27122 (grub_cmd_cat): Parse options. If the --dos option is given, print
27123 DOS-style "\r\n" line endings as simple newlines (Debian bug
27125 (GRUB_MOD_INIT): Use extcmd.
27126 (GRUB_MOD_FINI): Likewise.
27127 * docs/grub.texi (cat): Document --dos.
27129 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27131 XEN with Linux grub-mkconfig support.
27133 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27134 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27135 GRUB_CMDLINE_XEN_DEFAULT.
27136 * util/grub.d/20_linux_xen.in: New file.
27138 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27140 Initialise VGA video on qemu ourselves.
27142 * boot/i386/qemu/boot.S: Don't call 0xc000.
27143 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27144 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27145 (kernel_img_HEADERS): Add pci.h.
27146 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27147 * configure.ac: Force unifont on qemu and yeeloong.
27148 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27149 (grub_vga_palette_write): Use correct register.
27150 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27151 Call grub_qemu_init_cirrus.
27152 * kern/i386/qemu/init.c: New file.
27153 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27155 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27157 2010-06-26 Pavel Roskin <proski@gnu.org>
27159 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27162 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27164 * docs/grub.texi (Simple configuration): Explain that
27165 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27166 set to `true' to disable their respective recovery entries, not
27169 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27171 Make the `source' command slightly faster.
27173 * normal/main.c (grub_normal_execute): Don't re-read list files when
27176 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27178 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27179 field position and mask size to red fields from mode_info, not
27181 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27182 Remove redundant tag->common.framebuffer_type assignment.
27183 Reported by: Seth Goldberg.
27185 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27187 Sync up other versions of the Linux loader with Robert Millan's
27188 change of 2010-01-09, "Make loader output a bit more user-friendly".
27190 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27192 (grub_cmd_linux): Likewise.
27193 (grub_cmd_initrd): Likewise.
27194 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27195 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27197 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27199 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27200 larger than MEMORY_MAP_SIZE.
27202 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27204 Fix parallel build.
27206 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27208 * script/parser.y: #include grub_script.tab.h header.
27210 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27212 Support >3GiB and <16MiB RAM in i386-qemu.
27214 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27215 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27216 (grub_lower_mem): Removed.
27217 (grub_upper_mem): Likewise.
27218 (mem_size): Made static.
27219 (above_4g): New variable.
27220 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27221 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27224 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27226 Cirrus 5446 and Bochs video cards support.
27228 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27230 (video_cirrus_mod_SOURCES): New variable.
27231 (video_cirrus_mod_CFLAGS): Likewise.
27232 (video_cirrus_mod_LDFLAGS): Likewise.
27233 (video_bochs_mod_SOURCES): Likewise.
27234 (video_bochs_mod_CFLAGS): Likewise.
27235 (video_bochs_mod_LDFLAGS): Likewise.
27236 * include/grub/vga.h: New file.
27237 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27238 (grub_video_fb_set_page_t): New type.
27239 (grub_video_fb_setup): New prototype.
27240 (grub_video_fb_swap_buffers): Likewise.
27241 (grub_video_fb_get_info_and_fini): Likewise.
27242 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27243 (CRTC_DATA_PORT): Likewise.
27244 (CRTC_CURSOR): Likewise.
27245 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27246 (CRTC_CURSOR_ADDR_LOW): Likewise.
27247 (CRTC_CURSOR_DISABLE): Likewise.
27248 (update_cursor): Use grub_vga_cr_write.
27249 (grub_vga_text_setcursor): Likewise.
27250 * video/bochs.c: New file.
27251 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27252 (palette): Likewise.
27253 (palette_size): Likewise.
27254 (framebuffer): New variable.
27255 (grub_video_fb_init): Use 'framebuffer'.
27256 (grub_video_fb_fini): Likewise.
27257 (grub_video_fb_get_info): Likewise.
27258 (grub_video_fb_get_palette): Likewise.
27259 (grub_video_fb_set_palette): Likewise.
27260 (grub_video_fb_set_viewport): Likewise.
27261 (grub_video_fb_get_viewport): Likewise.
27262 (grub_video_fb_map_color): Likewise.
27263 (grub_video_fb_map_rgb): Likewise.
27264 (grub_video_fb_map_rgba): Likewise.
27265 (grub_video_fb_unmap_color): Likewise.
27266 (grub_video_fb_unmap_color_int): Likewise.
27267 (grub_video_fb_fill_rect): Likewise.
27268 (grub_video_fb_blit_bitmap): Likewise.
27269 (grub_video_fb_blit_render_target): Likewise.
27270 (grub_video_fb_scroll): Likewise.
27271 (grub_video_fb_create_render_target): Likewise.
27272 (grub_video_fb_doublebuf_blit_init): Likewise.
27273 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27274 (doublebuf_pageflipping_update_screen): New function.
27275 (doublebuf_pageflipping_init): Likewise.
27276 (grub_video_fb_setup): Likewise.
27277 (grub_video_fb_swap_buffers): Likewise.
27278 (grub_video_fb_get_info_and_fini): Likewise.
27279 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27281 (doublebuf_pageflipping_commit): Restructured into ...
27282 (doublebuf_pageflipping_set_page): ... this.
27283 (doublebuf_pageflipping_update_screen): Removed.
27284 (doublebuf_pageflipping_init): Likewise.
27285 (double_buffering_init): Likewise.
27286 (grub_video_vbe_setup): Use grub_video_fb_setup.
27287 (grub_video_vbe_swap_buffers): Removed.
27288 (grub_video_vbe_set_active_render_target): Likewise.
27289 (grub_video_vbe_get_active_render_target): Likewise.
27290 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27291 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27292 grub_video_fb_set_active_render_target and
27293 grub_video_fb_get_active_render_target.
27294 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27295 (SEQUENCER_DATA_PORT): Likewise.
27296 (MAP_MASK_REGISTER): Likewise.
27297 (CRTC_ADDR_PORT): Likewise.
27298 (CRTC_DATA_PORT): Likewise.
27299 (START_ADDR_HIGH_REGISTER): Likewise.
27300 (START_ADDR_LOW_REGISTER): Likewise.
27301 (GRAPHICS_ADDR_PORT): Likewise.
27302 (GRAPHICS_DATA_PORT): Likewise.
27303 (READ_MAP_REGISTER): Likewise.
27304 (INPUT_STATUS1_REGISTER): Likewise.
27305 (INPUT_STATUS1_VERTR_BIT): Likewise.
27306 (get_map_mask): Use grub_vga_sr_read.
27307 (set_map_mask): Use grub_vga_sr_write.
27308 (set_read_map): Use grub_vga_gr_write.
27309 (set_start_address): Use grub_vga_cr_write.
27310 * video/sm712.c (framebuffer): Remove leftover fields.
27312 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27314 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27315 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27316 instead. Replace the gfxterm backend check with a check that
27317 ${GRUB_PREFIX}/video.lst is non-empty.
27318 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27320 (load_video): New generated function. Call it before loading
27321 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27322 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27323 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27324 * docs/grub.texi (Simple configuration): Document
27325 GRUB_VIDEO_BACKEND.
27327 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27329 Use video functions in linux and xnu loaders.
27331 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27332 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27333 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27334 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27335 loader/i386/pc/linux.c.
27336 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27337 (find_line_len): Removed.
27338 (find_framebuf): Likewise.
27339 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27340 * loader/i386/efi/xnu.c: Removed.
27341 * loader/i386/pc/xnu.c: Moved from here...
27342 * loader/i386/xnu.c: ...here.
27344 Enable priorities in video drivers.
27346 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27347 (grub_video_adapter): New field prio.
27348 (grub_video_register): Respect prio when inserting.
27349 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27350 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27351 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27352 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27353 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27354 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27355 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27359 * include/grub/video.h (grub_video_driver_id_t): New value
27360 GRUB_VIDEO_DRIVER_SDL.
27361 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27363 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27365 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27366 argument to printf.
27367 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27369 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27371 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27372 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27374 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27376 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27377 directly, and recommend grub-install instead.
27378 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27380 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27382 Fix i386-pc prefix handling with nested partitions (Debian bug
27383 #585068). Note that the case where the core image is booted using
27384 multiboot and relocated from its original location still requires
27387 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27388 with "(,", fill the boot drive in between those two characters, but
27389 expect that a full partition specification including partition map
27391 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27392 specified, write a prefix without the drive name but including a
27393 full partition specification.
27395 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27397 * util/grub-mkconfig.in: Ignore non-option arguments, for
27398 compatibility with older versions (before 2010-06-12) which did the
27399 same. In particular, this makes it easier to ship an update-grub
27400 wrapper which is compatible with that used with GRUB Legacy (Debian
27403 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27405 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27406 for manual page generation.
27408 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27410 * po/POTFILES: Remove leftover commands/handler.c.
27412 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27414 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27415 left this script non-functional.
27417 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27419 * docs/man/grub-emu.h2m: New file.
27421 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27423 * docs/grub.texi (Commands): Document reduced command set in rescue
27425 (cpuid): New section.
27427 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27429 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27430 new partition naming style.
27431 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27433 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27435 Add "-o grub.iso" like cmdline options support.
27437 * util/grub-install.in: Improve cmdline option parsing.
27438 * util/grub-mkconfig.in: Likewise.
27439 * util/grub-mkrescue.in: Likewise.
27440 * util/grub-reboot.in: Likewise.
27441 * util/grub-set-default.in: Likewise.
27442 * util/i386/efi/grub-install.in: Likewise.
27443 * util/ieee1275/grub-install.in: Likewise.
27444 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27446 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27448 * .bzrignore: Ignore 41_custom.
27450 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27452 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27454 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27456 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27457 prototype declarations.
27459 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27460 generating fs, partmap, and video lists.
27461 * include/grub/fs.h (grub_fs_register): Omit prototype if
27462 GRUB_LST_GENERATOR is defined.
27463 * include/grub/partition.h (grub_partition_map_register): Likewise.
27464 * include/grub/video.h (grub_video_register): Likewise.
27466 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27468 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27470 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27472 * util/grub-mkrescue.in: Support --xorriso argument.
27474 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27476 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27477 Suggested by: Thomas Schmitt.
27479 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27481 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27482 Suggested by: Thomas Schmitt.
27484 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27486 custom.cfg support.
27488 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27489 * util/grub.d/41_custom.in: New file.
27491 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27493 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27494 been merged back into normal.
27496 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27498 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27499 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27501 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27503 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27504 when generating manual pages.
27505 * docs/man/grub-bin2h.h2m: New file.
27506 * docs/man/grub-editenv.h2m: New file.
27507 * docs/man/grub-fstest.h2m: New file.
27508 * docs/man/grub-install.h2m: New file.
27509 * docs/man/grub-macho2img.h2m: New file.
27510 * docs/man/grub-mkconfig.h2m: New file.
27511 * docs/man/grub-mkdevicemap.h2m: New file.
27512 * docs/man/grub-mkfont.h2m: New file.
27513 * docs/man/grub-mkimage.h2m: New file.
27514 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27515 * docs/man/grub-mkrelpath.h2m: New file.
27516 * docs/man/grub-mkrescue.h2m: New file.
27517 * docs/man/grub-ofpathname.h2m: New file.
27518 * docs/man/grub-pe2elf.h2m: New file.
27519 * docs/man/grub-probe.h2m: New file.
27520 * docs/man/grub-reboot.h2m: New file.
27521 * docs/man/grub-script-check.h2m: New file.
27522 * docs/man/grub-set-default.h2m: New file.
27523 * docs/man/grub-setup.h2m: New file.
27525 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27527 Use FOR_* macros instead of *_iterate whenever possible.
27529 * commands/handler.c: Removed.
27530 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27531 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27532 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27533 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27534 (grub_probe_SOURCES): Remove kern/parser.c.
27535 (util/grub-script-check.c_DEPENDENCIES): Removed.
27536 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27537 and grub_script_check_init.c.
27538 (grub_script_check_init.lst): Removed.
27539 (grub_script_check_init.h): Likewise.
27540 (grub_script_check_init.c): Likewise.
27541 (pkglib_MODULES): Remove handler.mod and sh.mod.
27542 (handler_mod_SOURCES): Removed.
27543 (handler_mod_CFLAGS): Likewise.
27544 (handler_mod_LDFLAGS): Likewise.
27545 (normal_mod_SOURCES): Remove normal/handler.c.
27546 Add script/main.c, script/script.c, script/execute.c,
27547 script/function.c, script/lexer.c, grub_script.tab.c
27548 and grub_script.yy.c.
27549 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27550 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27551 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27552 (grub_setup_SOURCES): Remove kern/parser.c.
27553 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27554 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27555 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27556 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27557 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27558 (grub_setup_SOURCES): Remove kern/parser.c.
27559 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27560 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27561 * include/grub/command.h (grub_command_iterate): Removed.
27562 (FOR_COMMANDS): New macro.
27563 * include/grub/dl.h (grub_dl): New member next.
27564 (grub_dl_iterate): Removed.
27565 (grub_dl_head): New variable declaration.
27566 (FOR_DL_MODULES): New macro.
27567 * include/grub/fs.h: Include list.h.
27568 (grub_fs): Make next first element.
27569 (grub_fs_list): New variable declaration.
27570 (grub_fs_register): Make inline.
27571 (grub_fs_unregister): Likewise.
27572 (grub_fs_iterate): Removed.
27573 (FOR_FILESYSTEMS): New macro.
27574 * include/grub/handler.h: Removed.
27575 * include/grub/list.h (grub_list_hook_t): Removed.
27576 (grub_list_test_t): Likewise.
27577 (grub_list_pop): Likewise.
27578 (grub_list_iterate): Likewise.
27579 (grub_list_insert): Likewise.
27580 (FOR_LIST_ELEMENTS): New macro.
27581 * include/grub/parser.h (grub_parser_class): Removed.
27582 (grub_parser_register): Likewise.
27583 (grub_parser_unregister): Likewise.
27584 (grub_parser_get_current): Likewise.
27585 (grub_parser_set_current): Likewise.
27586 (grub_register_rescue_parser): Likewise.
27587 (grub_rescue_parse_line): New function.
27588 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27589 * include/grub/script_sh.h (grub_script_function_list): New variable
27591 (FOR_SCRIPT_FUNCTIONS): New macro.
27592 (grub_script_function_iterate): Removed.
27593 (grub_normal_parse_line): New prototype.
27594 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27595 (FOR_DISABLED_TERM_INPUTS): Likewise.
27596 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27597 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27598 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27600 (grub_video_register): Inline.
27601 (grub_video_unregister): Likewise.
27602 (grub_video_adapter_list): New variable declaration.
27603 (grub_video_iterate): Removed.
27604 (FOR_VIDEO_ADAPTERS): New macro.
27605 * kern/dl.c (grub_dl_list): Removed. All users updated.
27606 (grub_dl_iterate): Removed.
27607 * kern/fs.c (grub_fs_list): Make global.
27608 (grub_fs_register): Removed.
27609 (grub_fs_unregister): Likewise.
27610 (grub_fs_iterate): Likewise.
27611 * kern/handler.c: Removed.
27612 * kern/list.c (grub_list_pop): Removed.
27613 (grub_list_iterate): Likewise.
27614 (grub_list_insert): Likewise.
27615 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27616 (grub_prio_list_insert): Don't use grub_list_insert.
27617 * kern/main.c (grub_register_rescue_parser): Don't call
27618 grub_register_rescue_parser.
27619 * kern/parser.c (grub_parser_class): Removed.
27620 (grub_parser_execute): Use grub_rescue_parse_line.
27621 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27622 (grub_rescue_parser): Removed.
27623 (grub_register_rescue_parser): Likewise.
27624 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27625 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27626 (grub_auth_check_authentication): Likewise.
27627 * normal/completion.c (iterate_command): Removed.
27628 (grub_normal_do_completion): Use FOR_COMMANDS.
27629 * normal/handler.c: Removed.
27630 * normal/main.c (read_config_file): Remove parser changing.
27631 (grub_normal_execute): Don't call read_handler_list.
27632 (grub_normal_read_line_real): Statically allocate prompt.
27633 (grub_cmdline_run): Use grub_normal_parse_line.
27634 (GRUB_MOD_FINI): Don't call free_handler_list.
27635 * normal/menu_entry.c (run): Likewise.
27636 * script/function.c (grub_script_function_list): Make global.
27637 (grub_script_function_iterate): Removed.
27638 * script/main.c (grub_normal_parse_line): Make global.
27639 (grub_sh_parser): Removed.
27640 (GRUB_MOD_INIT): Likewise.
27641 (GRUB_MOD_FINI): Likewise.
27642 * tests/lib/functional_test.c (grub_functional_test): Use
27644 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27645 (grub_test_run): Use FOR_LIST_ELEMENTS.
27646 * tests/lib/unit_test.c (main): Likewise.
27647 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27649 * util/grub-fstest.c (grub_term_input_class): Removed.
27650 (grub_term_output_class): Likewise.
27651 * util/grub-probe.c: Likewise.
27652 * util/i386/pc/grub-setup.c: Likewise.
27653 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27654 * util/grub-script-check.c (main): Don't call grub_init_all and
27656 * video/video.c (grub_video_adapter_list): Make global.
27657 (grub_video_register): Removed.
27658 (grub_video_unregister): Likewise.
27659 (grub_video_iterate): Likewise.
27661 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27663 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27664 reported by Henrique Ferreiro.
27666 2010-06-09 Robert Millan <rmh@gnu.org>
27668 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27669 ones, when both are available.
27671 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27673 Make --version uniform and avoid hard-coded program name.
27675 * util/grub-mkimage.c (main): Use `program_name' instead of
27677 * util/i386/pc/grub-setup.c (main): Likewise.
27678 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27679 * util/grub-install.in: Save the basename of $0 in $self, and use the
27680 latter in informational messages. Use the same format for --version
27681 as the binary programs.
27682 * util/grub-mkconfig.in: Likewise.
27683 * util/grub-mkrescue.in: Likewise.
27684 * util/grub-reboot.in: Likewise.
27685 * util/grub-set-default.in: Likewise.
27686 * util/i386/efi/grub-install.in: Likewise.
27687 * util/ieee1275/grub-install.in: Likewise.
27688 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27690 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27692 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27693 embedding area. Use <= instead of == when checking for non-emptiness.
27695 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27697 * configure.ac: Add `.' to the directories searched for unifont.
27699 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27701 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27704 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27706 * docs/grub.texi (History): Expand to cover GRUB 2.
27707 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27708 commands, not `terminal'.
27709 (serial): Likewise.
27710 (terminal_input): New section.
27711 (terminal_output): New section.
27712 (uppermem): New section (stub).
27713 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27715 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27717 * docs/grub.texi (Security): Menu entries are unrestricted by
27718 default, not restricted to superusers as I had previously thought.
27719 Reword to account for this.
27721 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27723 * kern/emu/misc.c (device_mapper_null_log): New function.
27724 (grub_device_mapper_supported): New function.
27725 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27727 * kern/emu/hostdisk.c (find_partition_start): Check whether
27728 device-mapper is supported before trying to use it.
27729 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27731 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27733 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27734 (File name syntax): Likewise.
27735 (help): --all is no longer supported in GRUB 2. Be more precise
27736 about pattern matching.
27738 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27740 * normal/completion.c (grub_normal_do_completion): When completing
27741 arguments to "set" and the current word contains an equals sign,
27742 skip to after the equals sign before starting completion.
27744 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27746 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27748 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27750 * docs/grub.texi (Network): New section.
27751 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27752 `(nd)' as in GRUB Legacy.
27753 (pxe_unload): New section.
27755 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27757 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27758 in the rescue shell, so recommend using `set' instead. Thanks,
27761 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27763 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27764 (password): New section.
27765 (password_pbkdf2): New section.
27766 (search): New section.
27767 (Security): New section.
27768 (Troubleshooting): New section, currently very incomplete.
27769 (Invoking grub-mkpasswd-pbkdf2): New section.
27770 (Internals): New section, currently very incomplete.
27772 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27774 * util/grub.d/00_header.in: Add some more quoting (of
27775 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27777 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27779 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27781 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27782 to `count', fixing variable shadowing that broke the -c option.
27784 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27786 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27787 in case they contain spaces.
27789 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27791 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27792 "part_" to partmap module names, in line with grub-install.
27793 Reported by: Jindřich Makovička (Debian bug #584426).
27795 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27797 * util/grub-mkimage.c: Make target-related error messages slightly
27798 more helpful; -O talks about "format". Explicitly point to the use
27799 of -O if no target is specified.
27800 Reported by: Didier Raboud (Debian bug #584415).
27802 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27804 * INSTALL: Document several build requirements for optional features
27805 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27807 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27809 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27810 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27811 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27813 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27815 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27816 Thanks to Jordan Uggla for spotting this.
27818 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27820 Finally make USB usable.
27822 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27823 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27824 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27825 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27826 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27827 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27828 (GRUB_OHCI_FSMPS): Likewise.
27829 (GRUB_OHCI_PERIODIC_START): Likewise.
27830 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27831 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27832 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27833 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27834 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27835 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27836 (grub_ohci_transaction): Likewise.
27837 (grub_ohci_transfer): Improve condition detection algorithms.
27838 Handle toggle property. Program the transactions correctly.
27839 Improve error handling. Various important fixups.
27840 (grub_ohci_portstatus): Put register writes in right order.
27841 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27842 (grub_uhci_transfer): Don't show "failed" message on success.
27843 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27845 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27846 determine its size.
27847 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27848 before initialization is completed. Use IN direction for empty
27849 transfers. Use last_trans and compute toggle.
27850 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27851 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27852 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27853 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27854 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27855 (grub_usb_device): Increase toggle to 256.
27856 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27857 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27858 GRUB_USBMS_SUBCLASS_SFF8070.
27859 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27860 (grub_scsi_inquiry): New member page and alloc_length.
27861 (grub_scsi_request_sense): New structure.
27862 (grub_scsi_request_sense_data): Likewise.
27863 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27865 * disk/scsi.c (grub_scsi_request_sense): New function.
27866 (grub_scsi_test_unit_ready): Likewise.
27867 (grub_scsi_inquiry): Fill new fields.
27868 (grub_scsi_read_capacity): Likewise.
27869 (grub_scsi_read10): Add request sense at the end.
27870 (grub_scsi_read12): Likewise.
27871 (grub_scsi_write10): Likewise.
27872 (grub_scsi_write12): Likewise.
27873 (grub_scsi_open): Add Test Unit Ready.
27874 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27875 Support additional subclasses. Con't clear halt yet. Activate the
27876 proper config. Calculate LUNs correctly.
27877 (grub_usbms_transfer): Various important fixups.
27879 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27881 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27882 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27883 (grub_ohci_fini_hw): New function.
27884 (grub_ohci_restore_hw): Likewise.
27885 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27886 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27887 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27889 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27891 Dedicated DMA allocations.
27893 * bus/pci.c (grub_memalign_dma32): New function
27894 (grub_dma_free): Likewise.
27895 (grub_dma_get_virt): Likewise.
27896 (grub_dma_get_phys): Likewise.
27897 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27898 (grub_ohci_pci_iter): Use dma32_alloc.
27899 (grub_ohci_transfer): Likewise.
27900 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27901 (grub_usb_bulk_readwrite): Likewise.
27902 * include/grub/pci.h: Add declarations.
27904 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27908 * bus/cs5536.c: New file.
27909 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27910 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27911 (cs5536_mod_SOURCES): New variable.
27912 (cs5536_mod_CFLAGS): Likewise.
27913 (cs5536_mod_LDFLAGS): Likewise.
27914 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27916 (kernel_img_SOURCES): Add bus/cs5536.c.
27917 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27919 (usb_mod_SOURCES): New variable.
27920 (usb_mod_CFLAGS): New variable.
27921 (usb_mod_LDFLAGS): New variable.
27922 (usbtest_mod_SOURCES): New variable.
27923 (usbtest_mod_CFLAGS): New variable.
27924 (usbtest_mod_LDFLAGS): New variable.
27925 (ohci_mod_SOURCES): New variable.
27926 (ohci_mod_CFLAGS): New variable.
27927 (ohci_mod_LDFLAGS): New variable.
27928 (usbms_mod_SOURCES): New variable.
27929 (usbms_mod_CFLAGS): New variable.
27930 (usbms_mod_LDFLAGS): New variable.
27931 (usb_keyboard_mod_SOURCES): New variable.
27932 (usb_keyboard_mod_CFLAGS): New variable.
27933 (usb_keyboard_mod_LDFLAGS): New variable.
27934 * include/grub/smbus.h: New file.
27935 * include/grub/cs5536.h: New file.
27937 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27939 * util/grub.d/00_header.in: Add safety check to make sure that
27940 ${locale_dir} exists before trying to probe it.
27942 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27944 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
27945 per the GNU Coding Standards; this is now too obscure to be worth
27948 (chainloader): Remove cross-reference to `SCO UnixWare'.
27950 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27952 * docs/grub.texi (Chain-loading): New section.
27953 (DOS/Windows): New section, borrowed from GRUB Legacy with details
27954 adjusted for GRUB 2.
27955 (SCO UnixWare): Likewise.
27957 (chainloader): Add reference to `Block list syntax'.
27958 (drivemap): New section.
27959 (parttool): New section.
27961 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27963 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
27965 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
27966 (Installing GRUB using grub-install): Remove reference to the grub
27967 shell; mention `grub-mkimage' and `grub-setup' instead.
27968 (Invoking grub-install): Likewise.
27969 (Interface): Add reference to `Menu entry editor'.
27970 (serial): Remove `--device' option.
27972 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27974 * docs/grub.texi (Configuration): New section, documenting
27975 configuration file generation using grub-mkconfig. I've left a slot
27976 for documenting the full shell scripting format but have not yet
27977 started on writing that up.
27978 (Invoking grub-mkconfig): New section.
27980 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27982 * docs/grub.texi (direntry): Remove grub-terminfo reference.
27983 (GNU GRUB manual): Likewise.
27984 (General commands): Update description of `terminfo' for GRUB 2.
27986 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27988 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
27989 (GRUB_MOD_INIT): Fix capitalisation.
27990 * docs/grub.texi (Command-line and menu entry commands): Document
27991 gettext and gptsync commands.
27993 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27995 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
27996 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
27998 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28000 Add btrfs probing support, currently only in the single-device case.
28002 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28004 (grub_guess_root_device): Call find_root_device_from_mountinfo
28005 before looking in /dev.
28007 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28009 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28010 GRUB_DISK_SIZE_UNKNOWN.
28011 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28013 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28015 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28016 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28017 corrupted or not synced properly.
28019 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28021 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28022 Reported by: Seth Goldberg.
28024 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28026 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28028 Reported by: Seth Goldberg.
28030 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28032 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28033 Reported by: Seth Goldberg.
28035 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28037 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28038 64-bit address as signed on MIPS.
28040 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28042 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28043 to the empty string.
28045 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28047 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28049 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28050 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28051 * kern/misc.c (__enable_execute_stack): Disable on
28054 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28056 Make grub-probe work with symbolic links under /dev/mapper as well
28057 as with real block devices. The Linux world seems to be (at best)
28058 in transition here, and GRUB shouldn't get caught in the middle.
28060 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28063 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28065 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28066 input files (in which case exit zero).
28068 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28070 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28071 return NULL for various reasons even if it has a maximum-length
28072 buffer: for example, there might be a symlink loop, or the path
28073 might exceed PATH_MAX. If this happens, return NULL.
28075 2010-05-27 Robert Millan <rmh@gnu.org>
28077 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28078 partmap module to handle cross-partmap setups.
28079 Reported by Orestes Mas. Gràcies!
28081 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28083 * util/grub-mkrescue.in: Initialise override_dir rather than
28084 assuming that it's unset or empty in the environment.
28086 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28088 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28089 variable index into p_index to suppress a warning with -Wshadow.
28091 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28093 * INSTALL: Added flex >= 2.5.35 requirement.
28095 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28097 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28099 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28103 * commands/i386/cmostest.c: New file.
28104 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28105 (cmostest_mod_SOURCES): New variable.
28106 (cmostest_mod_CFLAGS): Likewise.
28107 (cmostest_mod_LDFLAGS): Likewise.
28108 * conf/i386-pc.rmk: Likewise.
28109 * docs/grub.texi (Vendor power-on keys): New section.
28110 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28111 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28112 and GRUB_BUTTON_CMOS_ADDRESS.
28113 * util/grub.d/00_header.in: Handle powering-on by separate button.
28115 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28117 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28118 Removed drawing_scrollbar argument. All users updated
28120 Reported by Jo Shields
28122 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28124 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28125 buffer since gfxterm handles double repaint.
28127 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28129 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28130 * term/gfxterm.c (real_scroll): Likewise.
28132 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28134 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28135 before calling BIOS.
28137 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28139 * include/grub/i18n.h: Always enable grub_gettext.
28141 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28143 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28144 partition naming style.
28146 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28148 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28149 not the first option.
28151 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28153 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28155 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28157 * util/misc.c: Move inclusion of <limits.h> to ...
28158 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28160 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28162 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28163 Fix merge error in NetBSD code.
28164 (find_partition_start) [__NetBSD__]: Likewise.
28166 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28168 Fix grub-mkrescue usage unit testing.
28170 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28172 2010-05-18 Christian Franke <franke@computer.org>
28174 * util/grub.d/10_windows.in: Use path names instead of
28175 drive letters to prevent warning from Cygwin 1.7.
28176 Add drivemap command to menuentry if needed.
28178 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28180 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28181 gnumach and gnumach.gz.
28183 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28185 * include/grub/i18n.h (gettext): Inline instead of using #define.
28186 (grub_gettext): Likewise.
28189 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28191 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28192 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28193 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28194 (main): Add a slash after pkglibdirroot.
28196 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28198 * util/grub-install.in: Add missing "in" keyword.
28200 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28202 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28203 Reported by: Seth Goldberg.
28205 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28207 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28209 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28211 * configure.ac: Check for Linux device-mapper support.
28213 * util/hostdisk.c (device_is_mapped): New function.
28214 (find_partition_start): New function, partly broken out from
28215 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28216 device-mapper support added.
28217 (linux_find_partition): Use find_partition_start.
28218 (convert_system_partition_to_system_disk): Add `st' argument.
28219 Support Linux /dev/mapper/* devices if device-mapper support is
28220 available; only DM-RAID devices are understood at present.
28221 (find_system_device): Add `st' argument. Pass it to
28222 convert_system_partition_to_system_disk.
28223 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28224 find_system_device and convert_system_partition_to_system_disk. Use
28225 find_partition_start.
28227 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28228 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28229 * util/deviceiter.c [__linux__]: Define MINOR.
28230 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28231 * util/mkdevicemap.c (grub_putchar): New function.
28232 (grub_getkey): New function.
28233 (grub_refresh): New function.
28234 (main): Set debug=all if -v -v is used.
28236 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28238 Fix build with non-GNU libcs.
28240 * util/misc.c (canonicalize_file_name): Move to ...
28241 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28242 grub_make_system_path_relative_to_its_root.
28244 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28246 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28247 we handle finding grub-mkimage. Default to finding grub-mkimage in
28248 ${bindir} with program_transform_name applied, and provide a
28249 --grub-mkimage option to override this.
28251 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28253 Remove grub-mkisofs.
28255 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28256 (grub_mkisofs_SOURCES): Removed.
28257 (grub_mkisofs_CFLAGS): Removed.
28258 * util/mkisofs/defaults.h: Removed.
28259 * util/mkisofs/eltorito.c: Likewise.
28260 * util/mkisofs/exclude.h: Likewise.
28261 * util/mkisofs/hash.c: Likewise.
28262 * util/mkisofs/include/: Likewise.
28263 * util/mkisofs/include/fctldefs.h: Likewise.
28264 * util/mkisofs/include/mconfig.h: Likewise.
28265 * util/mkisofs/include/prototyp.h: Likewise.
28266 * util/mkisofs/include/statdefs.h: Likewise.
28267 * util/mkisofs/iso9660.h: Likewise.
28268 * util/mkisofs/joliet.c: Likewise.
28269 * util/mkisofs/match.c: Likewise.
28270 * util/mkisofs/match.h: Likewise.
28271 * util/mkisofs/mkisofs.c: Likewise.
28272 * util/mkisofs/mkisofs.h: Likewise.
28273 * util/mkisofs/msdos_partition.h: Likewise.
28274 * util/mkisofs/multi.c: Likewise.
28275 * util/mkisofs/name.c: Likewise.
28276 * util/mkisofs/rock.c: Likewise.
28277 * util/mkisofs/tree.c: Likewise.
28278 * util/mkisofs/write.c: Likewise.
28280 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28282 Unify grub-mkimage accross platforms.
28284 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28285 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28286 (grub_mkelfimage_SOURCES): Removed.
28287 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28288 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28289 (bin_UTILITIES): Add grub-mkimage.
28290 (grub_mkimage_SOURCES): New variable.
28291 (kernel_img_HEADERS): Remove machine/kernel.h.
28292 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28293 (pkglib_PROGRAMS): Add kernel.img.
28294 (kernel_img_HEADERS): Add machine/kernel.h.
28295 (kernel_img_FORMAT): Removed.
28296 (bin_UTILITIES): Remove grub-mkimage.
28297 (grub_mkimage_SOURCES): Removed.
28298 (grub_mkimage_CFLAGS): Likewise.
28299 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28300 * conf/i386-qemu.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/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28307 (pkglib_PROGRAMS): Add kernel.img.
28308 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28309 (pkglib_PROGRAMS): Add kernel.img.
28310 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28311 (grub_mkimage_SOURCES): Removed.
28312 (grub_mkimage_CFLAGS): Likewise.
28313 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28314 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28315 (pkglib_PROGRAMS): Add kernel.img.
28316 (bin_UTILITIES): Remove grub-mkimage.
28317 (grub_mkimage_SOURCES): Removed.
28318 (grub_mkimage_CFLAGS): Likewise.
28319 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28320 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28321 (grub_mkimage_SOURCES): Removed.
28322 (grub_mkimage_CFLAGS): Likewise.
28323 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28324 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28325 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28326 (grub_pe32_optional_header): ... this.
28327 (grub_pe64_optional_header): ... and this. All users updated.
28328 (GRUB_PE32_PE32_MAGIC): Split into ..
28329 (GRUB_PE32_PE32_MAGIC): .. this.
28330 (GRUB_PE32_PE64_MAGIC): .. and this.
28331 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28332 * include/grub/elf.h (PT_GNU_STACK): New definition.
28333 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28334 * include/grub/i386/efi/kernel.h: Likewise.
28335 * include/grub/i386/kernel.h: Likewise.
28336 * include/grub/i386/pc/kernel.h: Likewise.
28337 * include/grub/i386/qemu/boot.h: Likewise.
28338 * include/grub/mips/kernel.h: Likewise.
28339 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28340 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28341 * include/grub/powerpc/kernel.h: Likewise.
28342 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28343 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28344 * include/grub/sparc64/kernel.h: Likewise.
28345 * include/grub/x86_64/efi/kernel.h: Likewise.
28346 * include/grub/x86_64/kernel.h: Likewise.
28347 * include/grub/offsets.h: New file.
28348 * include/grub/kernel.h (grub_module_info): Split into ...
28349 (grub_module_info32): ... this.
28350 (grub_module_info64): ... and this.
28351 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28352 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28353 (grub_boot_blocklist): Moved from here ...
28354 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28355 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28356 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28357 * include/grub/types.h (grub_target_to_host16): Removed.
28358 (grub_target_to_host32): Likewise.
28359 (grub_target_to_host64): Likewise.
28360 (grub_host_to_target16): Likewise.
28361 (grub_host_to_target32): Likewise.
28362 (grub_host_to_target64): Likewise.
28363 (grub_host_to_target_addr): Likewise.
28365 Support grub-mkrescue for efi, coreboot and qemu.
28367 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28368 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28369 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28370 * util/grub-mkrawimage.c: Moved from here ...
28371 * util/grub-mkimage.c: ... here. All users updated.
28372 (ALIGN_ADDR): Use image_target.
28373 (TARGET_NO_FIELD): New const.
28374 (image_target_desc): New type.
28375 (image_targets): New array.
28376 (grub_target_to_host64): Use image_target.
28377 (grub_target_to_host32): Likewise.
28378 (grub_target_to_host16): Likewise.
28379 (grub_host_to_target64): Likewise.
28380 (grub_host_to_target32): Likewise.
28381 (grub_host_to_target16): Likewise.
28382 (grub_host_to_target_addr): Likewise.
28383 (generate_image): Handle multiimage.
28384 (main): Require -O parameter. All users updated.
28385 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28386 util/efi/grub-mkimage.c
28387 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28388 New option --rom-directory.
28390 * util/i386/efi/grub-mkimage.c: Removed.
28391 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28392 (grub_target_to_host32): Likewise.
28393 (grub_target_to_host64): Likewise.
28394 (grub_host_to_target16): Likewise.
28395 (grub_host_to_target32): Likewise.
28396 (grub_host_to_target64): Likewise.
28397 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28398 (grub_target_to_host32): Likewise.
28399 (grub_target_to_host64): Likewise.
28400 (grub_host_to_target16): Likewise.
28401 (grub_host_to_target32): Likewise.
28402 (grub_host_to_target64): Likewise.
28404 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28406 Source tree is reorganized for emu build.
28408 * include/grub/util/console.h: Move from here...
28409 * include/grub/emu/console.h: ...to here.
28410 * include/grub/util/getroot.h: Move from here...
28411 * include/grub/emu/getroot.h: ...to here.
28412 * include/grub/util/hostdisk.h: Move from here...
28413 * include/grub/emu/hostdisk.h: ...to here.
28414 * util/console.c: Move from here...
28415 * kern/emu/console.c: ...to here.
28416 * util/getroot.c: Move from here...
28417 * kern/emu/getroot.c: ...to here.
28418 * util/grub-emu.c: Move from here...
28419 * kern/emu/main.c: ...to here.
28420 * util/hostdisk.c: Move from here...
28421 * kern/emu/hostdisk.c: ...to here.
28422 * util/hostfs.c: Move from here...
28423 * kern/emu/hostfs.c: ...to here.
28424 * util/mm.c: Move from here...
28425 * kern/emu/mm.c: ...to here.
28426 * util/pci.c: Move from here...
28427 * bus/emu/pci.c: ...to here.
28428 * util/sdl.c: Move from here...
28429 * video/emu/sdl.c: ...to here.
28430 * util/time.c: Move from here...
28431 * kern/emu/time.c: ...to here.
28432 * util/usb.c: Move from here...
28433 * bus/usb/emu/usb.c: ...to here.
28435 * include/grub/emu/misc.h: New header for grub-emu functions.
28436 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28438 * conf/any-emu.rmk: Rule updates for above renames.
28439 * conf/common.rmk: Likewise.
28440 * conf/i386-pc.rmk: Likewise.
28441 * conf/i386-qemu.rmk: Likewise.
28442 * conf/mips.rmk: Likewise.
28443 * conf/sparc64-ieee1275.rmk: Likewise.
28444 * conf/x86-efi.rmk: Likewise.
28446 * disk/lvm.h: #include updates for above renames.
28447 * util/grub-mkrelpath.c: Likewise.
28448 * util/grub-probe.c: Likewise.
28449 * util/i386/pc/grub-setup.c: Likewise.
28450 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28451 * kern/emu/console.c: Likewise.
28452 * kern/emu/getroot.c: Likewise.
28453 * kern/emu/hostdisk.c: Likewise.
28454 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28456 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28457 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28458 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28459 * util/misc.c: Remove grub-emu functions.
28461 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28464 Reported by: Thorsten Grützmacher.
28466 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28468 (circprog_set_property): Register and unregister timeout hook.
28469 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28470 (label_destroy): Free template. and unregister hook.
28471 (label_set_state): New function.
28472 (label_set_property): Handle templates and hooks.
28473 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28475 (progress_bar_set_property): Register and unregister timeout hook.
28476 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28477 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28478 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28479 (update_timeout_visit): Removed.
28480 (update_timeouts): New function.
28481 (redraw_timeouts): Likewise.
28482 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28483 (grub_gfxmenu_clear_timeout): Likewise.
28484 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28485 (grub_gfxmenu_timeout_notify): Likewise.
28486 (grub_gfxmenu_timeout_notifications): New external variable.
28487 (grub_gfxmenu_timeout_register): New function.
28488 (grub_gfxmenu_timeout_unregister): Likewise.
28490 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28492 Transform (broken) vga terminal into (working) vga video driver.
28494 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28495 video/i386/pc/vga.c.
28496 * include/grub/video.h (grub_video_driver_id):
28497 Add GRUB_VIDEO_DRIVER_VGA.
28498 * term/i386/pc/vga.c: Renamed to ...
28499 * video/i386/pc/vga.c: ...this
28500 (DEBUG_VGA): Removed.
28501 (CHAR_WIDTH): Likewise.
28502 (CHAR_HEIGHT): Likewise.
28503 (TEXT_WIDTH): Likewise.
28504 (TEXT_HEIGHT): Likewise.
28505 (DEFAULT_FG_COLOR): Likewise.
28506 (DEFAULT_BG_COLOR): Likewise.
28507 (colored_char): Likewise.
28510 (cursor_state): Likewise.
28511 (fg_color): Likewise.
28512 (bg_color): Likewise.
28513 (text_buf): Likewise.
28516 (framebuffer): New variable.
28517 (set_read_map): Disabled.
28518 (setup): New variable.
28519 (is_target): Likewise.
28520 (grub_vga_mod_init): Likewise.
28521 (grub_vga_mod_fini): Likewise.
28522 (check_vga_mem): Likewise.
28523 (write_char): Likewise.
28524 (write_cursor): Likewise.
28525 (scroll_up): Likewise.
28526 (grub_vga_putchar): Likewise.
28527 (grub_vga_getcharwidth): Likewise.
28528 (grub_vga_getwh): Likewise.
28529 (grub_vga_getxy): Likewise.
28530 (grub_vga_gotoxy): Likewise.
28531 (grub_vga_cls): Likewise.
28532 (grub_vga_setcolorstate): Likewise.
28533 (grub_vga_setcursor): Likewise.
28534 (grub_video_vga_init): New function.
28535 (grub_video_vga_setup): Likewise.
28536 (grub_video_vga_fini): Likewise.
28537 (update_target): Likewise.
28538 (grub_video_vga_blit_bitmap): Likewise.
28539 (grub_video_vga_blit_render_target): Likewise.
28540 (grub_video_vga_set_active_render_target): Likewise.
28541 (grub_video_vga_get_active_render_target): Likewise.
28542 (grub_video_vga_swap_buffers): Likewise.
28543 (grub_video_vga_set_palette): Likewise.
28544 (grub_video_vga_get_info_and_fini): Likewise.
28545 (grub_vga_term): Removed.
28546 (grub_video_vga_adapter): New variable.
28547 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28548 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28550 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28552 * video/readers/jpeg.c: Indented.
28554 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28556 Various jpeg cleanups.
28558 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28559 (grub_jpeg_decode_quan_table): Use sizeof.
28560 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28562 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28564 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28565 tables. Ignore non-last ac bit.
28566 (grub_jpeg_decode_quan_table): Likewise.
28568 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28570 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28571 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28572 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28573 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28574 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28575 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28577 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28579 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28582 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28584 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28586 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28588 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28591 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28593 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28596 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28598 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28601 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28603 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28605 2010-05-01 Christian Franke <franke@computer.org>
28607 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28608 Remove broken Cygwin path conversion.
28609 * util/misc.c: [__CYGWIN__] Add include and define.
28610 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28612 (make_system_path_relative_to_its_root): Simplify loop, replace early
28614 [__CYGWIN__] Add conversion to win32 path.
28615 Include "/" case in trailing slash removal.
28617 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28619 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28620 Reported by: Seth Goldberg
28622 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28624 * commands/help.c (grub_cmd_help): Fix a typo.
28625 Reported by: Seth Goldberg
28627 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28629 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28631 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28632 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28633 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28634 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28635 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28636 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28637 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28638 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28639 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28640 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28641 * normal/context.c (GRUB_MOD_INIT): Likewise.
28642 * normal/main.c (GRUB_MOD_INIT): Likewise.
28643 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28644 * term/serial.c (GRUB_MOD_INIT): Likewise.
28645 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28647 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28649 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28652 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28654 * commands/iorw.c: New file.
28655 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28656 (iorw_mod_SOURCES): New variable.
28657 (iorw_mod_CFLAGS): Likewise.
28658 (iorw_mod_LDFLAGS): Likewise.
28660 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28664 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28665 * normal/main.c (hotkey_aliases): New variable.
28666 (grub_normal_add_menu_entry): Parse "--hotkey".
28667 * normal/menu_text.c (run_menu): Handle hotkeys.
28669 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28671 * kern/i386/coreboot/init.c (grub_machine_init): Call
28672 grub_machine_mmap_init on qemu.
28674 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28676 * boot/i386/qemu/boot.S: Add a missing .code16.
28678 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28680 Use LBIO on coreboot.
28682 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28683 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28684 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28686 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28687 grub_machine_mmap_init on coreboot.
28688 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28689 GRUB_LINUXBIOS_MEMBER_LINK.
28690 (grub_machine_mmap_iterate): Fix declaration.
28691 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28693 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28695 Split coreboot and multiboot ports.
28697 * conf/i386-multiboot.rmk: New file.
28698 * configure.ac: Add multiboot port.
28699 * include/grub/i386/multiboot/boot.h: New file.
28700 * include/grub/i386/multiboot/console.h: Likewise.
28701 * include/grub/i386/multiboot/init.h: Likewise.
28702 * include/grub/i386/multiboot/kernel.h: Likewise.
28703 * include/grub/i386/multiboot/loader.h: Likewise.
28704 * include/grub/i386/multiboot/memory.h: Likewise.
28705 * include/grub/i386/multiboot/serial.h: Likewise.
28706 * include/grub/i386/multiboot/time.h: Likewise.
28707 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28708 * loader/multiboot.c: Likewise.
28709 * loader/multiboot_mbi2.c: Likewise.
28710 * util/grub-mkrescue.in: Generate multiboot rescue.
28712 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28714 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28716 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28718 Merge handling of input and output terminals. Fix a hang.
28720 * commands/terminal.c (abstract_terminal): New struct.
28721 (handle_command): New function. Based on grub_cmd_terminal_input.
28722 (grub_cmd_terminal_input): Use handle_command.
28723 (grub_cmd_terminal_output): Use handle_command.
28725 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28727 Fix comment handling.
28729 * tests/grub_script_comments.in: New testcase.
28730 * conf/tests.rmk: Rules for new testcase.
28731 * script/yylex.l: Updated flex rules.
28733 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28735 * docs/grub.texi (play): Document that zero pitches produce rests.
28736 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28739 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28741 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28744 2010-04-26 Christian Franke <franke@computer.org>
28746 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28747 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28748 (grub_get_prefix): Remove function.
28749 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28750 make_system_path_relative_to_its_root ().
28751 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28753 2010-04-24 Christian Franke <franke@computer.org>
28755 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28756 (kernel_img_LDFLAGS): Remove -static-libgcc.
28758 2010-04-24 Christian Franke <franke@computer.org>
28760 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28761 and CHECK_END_SYMBOL if grub-emu is built.
28762 Unset TARGET_OBJ2ELF if grub-emu is built
28763 without module support.
28765 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28769 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28770 (grub_fstest_SOURCES): Likewise.
28771 (pkglib_MODULES): Add nilfs2.mod.
28772 (nilfs2_mod_SOURCES): New variable.
28773 (nilfs2_mod_CFLAGS): Likewise.
28774 (nilfs2_mod_LDFLAGS): Likewise.
28775 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28776 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28777 * fs/nilfs2.c: New file.
28779 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28781 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28784 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28786 Add grub-mkconfig support for NetBSD.
28788 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28789 * util/grub-mkconfig.in: export new NetBSD specific variables.
28790 * po/POTFILES-shell: added 10_netbsd.in.
28791 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28793 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28795 Fix emu build with grub-emu-pci and grub-emu-modules.
28797 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28799 * include/grub/libpciaccess.h: New file.
28800 * conf/any-emu.rmk: Update kernel headers for emu build.
28802 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28804 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28806 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28808 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28810 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28812 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28813 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28814 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28815 util/ieee1275/ofpath.c.
28816 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28817 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28818 * include/grub/sparc64/ieee1275/boot.h
28819 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28820 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28821 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28822 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28824 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28825 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28826 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28829 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28831 * util/grub-mkconfig.in: Corrected two == equality tests.
28832 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28833 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28834 expect a number appended to it.
28835 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28836 expects a number appended to it.
28838 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28840 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28842 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28844 * util/hostdisk.c (make_device_name): Change to new partition naming.
28846 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28848 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28850 2010-04-17 Christian Franke <franke@computer.org>
28852 * Makefile.in: Add missing localedir setting.
28854 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28856 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28857 mistake in r2156. Noticed by Anthony Fok.
28859 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28861 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28863 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28865 Fix a spurious, uninitialized variable warning.
28867 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28868 Initialize variable, shdr.
28869 (grub_freebsd_load_elfmodule): Likewise.
28870 (grub_freebsd_load_elf_meta): Likewise.
28872 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28874 Fix for escaped dollar in double quoted strings.
28876 * script/yylex.l: Updated flex rules.
28877 * conf/tests.rmk: Rule for new testcase.
28878 * tests/grub_script_dollar.in: New testcase.
28880 2010-04-13 Carles Pina i Estany <carles@pina.cat>
28881 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
28883 Enclose all translated strings in grub.cfg in single quotes, and
28884 escape them appropriately (Ubuntu bug #552921).
28886 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28887 * util/grub.d/10_hurd.in: Use it.
28888 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28889 * util/grub.d/10_linux.in (linux_entry): Likewise.
28891 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28893 Fix cygwin compilation.
28895 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28896 * include/grub/misc.h (__register_frame_info)
28897 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28898 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28899 * kern/misc.c (__register_frame_info)
28900 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28901 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28903 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28905 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28907 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28909 Unify libgcc processing.
28911 * Makefile.in (kernel_img_LDFLAGS): New variable.
28912 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28913 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28915 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28916 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28917 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28918 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28919 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28920 overwriting. Remove -lgcc and -static-libgcc
28921 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28922 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28923 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28924 (kernel_img_LDFLAGS): Append instead of overwriting.
28925 Remove -lgcc and -static-libgcc
28926 * conf/sparc64-ieee1275.rmk: Likewise.
28927 * include/grub/powerpc/libgcc.h: Move to ...
28928 * include/grub/libgcc.h: .. this.
28929 * include/grub/libgcc.h: Don't export most of the function on x86.
28930 (__bswapsi2): New export.
28931 (__bswapdi2): Likewise.
28932 * include/grub/mips/libgcc.h: Removed.
28933 * include/grub/sparc64/libgcc.h: Likewise.
28935 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28937 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
28938 disk_info_msg (conflicts with gettexting into languages with cases).
28940 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
28942 Add grub-probe support for NetBSD.
28944 * util/getroot.c (find_root_device): Convert block device to
28945 character device on NetBSD.
28946 * util/probe.c (probe): Require character device on NetBSD.
28947 * util/hostdisk.c: NetBSD specific headers.
28948 (configure_device_driver): new function to tune device driver
28949 parameters (currently only for NetBSD floppy driver).
28950 (grub_util_biosdisk_open): NetBSD specific code (get disk size
28951 via disklabel ioctl).
28952 (open_device): call configure_device_driver on NetBSD.
28953 (convert_system_partition_to_system_disk): NetBSD specific code.
28954 (device_is_wholedisk): Likewise.
28955 (grub_util_biosdisk_get_grub_dev): Likewise.
28956 (make_device_name): Fixed a typo in bsd_part_str.
28957 * configure.ac: check for opendisk() and getrawpartition() on
28958 NetBSD and set LIBUTIL.
28959 * Makefile.in: add LIBUTIL to LIBS.
28961 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28965 * util/grub-script-check.c: Better help message.
28967 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28971 * configure.ac: Flex version check.
28972 * conf/common.rmk: Add -Wno-error to sh.mod.
28973 * script/yylex.l: Remove all #pragma.
28975 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28977 * include/grub/util/misc.h (canonicalise_file_name): Add missing
28979 Reported by: Seth Goldberg.
28981 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28983 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
28984 Rename "module" to "module2".
28985 Reported by: Seth Goldberg.
28987 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28989 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
28991 Reported by: Seth Goldberg.
28993 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28995 * lib/posix_wrap/locale.h: Add missing file.
28996 Reported by: Seth Goldberg.
28998 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29000 grub-emu module load support.
29002 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29003 NO_DYNAMIC_MODULES switched to this.
29004 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29005 (CFLAGS): Likewise.
29006 * conf/any-emu.rmk: Generate symlist.
29007 (kernel_img_HEADERS): Add util/datetime.h.
29008 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29009 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29010 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29011 kern/$(target_cpu)/cache.S.
29012 * configure.ac (grub-emu-modules): New option.
29013 * genmk.rb: Handle multiple source lists.
29014 * include/grub/sdl.h: New file.
29015 * include/grub/libusb.h: Likewise.
29016 * util/grub-emu.c (main): Hanle (host) root.
29017 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29018 GRUB_ERR_UNKNOWN_DEVICE.
29019 * util/misc.c: Move mm functions to ...
29020 * util/mm.c: ... here. All users updated.
29022 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29024 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29025 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29027 (maintainer-clean): Remove libgcrypt-grub.
29029 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29031 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29033 2010-04-09 EFI Coder <eficoder@hotmail.com>
29035 * normal/menu_text.c (print_message): Clean up the message and show
29036 the Fn information when on EFI
29037 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29039 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29041 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29043 * normal/crypto.c (read_crypto_list): Likewise.
29044 * normal/dyncmd.c (read_command_list): Likewise.
29045 * normal/term.c (read_terminal_list): Likewise.
29046 * normal/main.c (read_lists): Use explicit prefix.
29047 (read_lists_hook): Use read_lists.
29048 (grub_normal_execute): Likewise.
29050 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29052 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29053 Reported by: Thomas Schmitt.
29054 Add -no-emul-boot to grub-mkisofs parameters.
29056 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29058 * font/font.c: Indented.
29060 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29062 Elif support to GRUB script (by Deepak Vankadaru).
29064 * tests/grub_script_if.in: New testcase.
29065 * conf/tests.rmk: Rule for new testcase.
29066 * script/parser.y: Grammar rules for elif.
29068 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29070 While and until loops support to GRUB script.
29072 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29073 (grub_script_create_cmdwhile): New function prototype.
29074 (grub_script_execute_cmdwhile): New function prototype.
29075 * script/execute.c (grub_script_execute_cmdwhile): New function.
29076 * script/parser.y (command): New commands.
29077 (whilecmd): New grammar rule.
29078 (untilcmd): New grammar rule.
29079 * script/script.c (grub_script_create_cmdwhile): New function.
29080 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29083 * tests/grub_script_while1.in: New testcase.
29084 * conf/tests.rmk: Rule for new testcase.
29086 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29088 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29091 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29093 GRUB_BACKGROUND support.
29095 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29096 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29098 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29100 Load fonts and modules for gfxmenu in grub-mkconfig.
29101 Idea by: Mario Vazquez
29103 * util/grub.d/00_header.in: Load pf2 and image modules.
29105 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29107 grub-mkconfig multiple terminal support.
29109 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29110 * util/grub.d/00_header.in: Likewise.
29112 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29114 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29115 we use cd $(srcdir).
29117 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29119 * util/grub.d/10_linux.in: Only use the first word of
29120 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29121 spaces in GRUB_DISTRIBUTOR.
29122 * util/grub.d/10_kfreebsd.in: Likewise.
29123 * util/grub.d/10_hurd.in: Likewise.
29125 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29127 Fix unit testing framework for Qemu 0.12.
29129 * tests/util/grub-shell.in: Remove -serial stdio option.
29131 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29133 POSIX header file wrappers.
29135 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29137 * lib/posix_wrap/ctype.h: Likewise.
29138 * lib/posix_wrap/errno.h: Likewise.
29139 * lib/posix_wrap/langinfo.h: Likewise.
29140 * lib/posix_wrap/limits.h: Likewise.
29141 * lib/posix_wrap/localcharset.h: Likewise.
29142 * lib/posix_wrap/stdint.h: Likewise.
29143 * lib/posix_wrap/stdio.h: Likewise.
29144 * lib/posix_wrap/stdlib.h: Likewise.
29145 * lib/posix_wrap/string.h: Likewise.
29146 * lib/posix_wrap/sys/types.h: Likewise.
29147 * lib/posix_wrap/unistd.h: Likewise.
29148 * lib/posix_wrap/wchar.h: Likewise.
29149 * lib/posix_wrap/wctype.h: Likewise.
29150 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29151 (grub_script.yy.h): Likewise.
29152 * script/yylex.l: Remove POSIX emulation #defines.
29153 * Makefile.in (POSIX_CFLAGS): New variable.
29154 (GNULIB_UTIL_CFLAGS): Likewise.
29158 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29159 (regexp_mod_SOURCES): New variable.
29160 (regexp_mod_CFLAGS): Likewise.
29161 (regexp_mod_LDFLAGS): Likewise.
29162 * commands/regexp.c: New file.
29163 * gnulib/regcomp.c: New file. Imported from gnulib.
29164 * gnulib/regex.c: Likewise.
29165 * gnulib/regex_internal.c: Likewise.
29166 * gnulib/regex_internal.h: Likewise.
29167 * gnulib/regexec.c: Likewise.
29168 * gnulib/regex.h: Likewise.
29170 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29172 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29173 unsupported video mode types.
29175 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29177 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29179 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29181 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29182 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29184 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29186 Remove unused grub_vga_get_font.
29188 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29189 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29191 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29193 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29194 * include/grub/misc.h: Likewise.
29196 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29198 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29199 for which failure is fatal.
29201 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29203 * util/grub-install.in: Use mkdir -p to create grub directory.
29204 * util/i386/efi/grub-install.in: Likewise.
29205 * util/ieee1275/grub-install.in: Likewise.
29207 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29209 * Makefile.in (LEX): new variable.
29211 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29213 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29214 `=' and added double quotes on operands of this equality test.
29216 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29218 * Makefile.in (uninstall): Remove a leftover debug echo.
29219 Reported by: Grégoire Sutre
29221 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29223 MIPS multiboot2 support.
29225 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29226 (multiboot2_mod_SOURCES): New variable.
29227 (multiboot2_mod_CFLAGS): Likewise.
29228 (multiboot2_mod_LDFLAGS): Likewise.
29229 (multiboot2_mod_ASFLAGS): Likewise.
29230 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29232 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29233 (MULTIBOOT_MBI_REGISTER): Likewise.
29234 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29235 (MULTIBOOT_ELF32_MACHINE): Likewise.
29236 (MULTIBOOT_ELF64_MACHINE): Likewise.
29237 * include/grub/mips/multiboot.h: New file.
29238 * include/grub/video.h (grub_video_driver_id): New type
29239 GRUB_VIDEO_DRIVER_SM712.
29240 (grub_video_get_info_and_fini): Export.
29241 (grub_video_get_palette): Likewise.
29242 (grub_video_get_driver_id): Likewise.
29243 * include/multiboot2.h: Resynced with spec.
29244 * loader/i386/multiboot.c: Moved from here ...
29245 * loader/multiboot.c: ... here. All users updated.
29246 (grub_multiboot_boot): Use platform-specific macros.
29247 * loader/i386/multiboot_elfxx.c: Moved from here ...
29248 * loader/multiboot_elfxx.c: ... here. All users updated.
29249 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29250 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29251 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29253 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29255 Import gnulib argp module.
29257 * gnulib/argp-ba.c: New file.
29258 * gnulib/argp-eexst.c: Likewise.
29259 * gnulib/argp-fmtstream.c: Likewise.
29260 * gnulib/argp-fmtstream.h: Likewise.
29261 * gnulib/argp-fs-xinl.c: Likewise.
29262 * gnulib/argp-help.c: Likewise.
29263 * gnulib/argp-namefrob.h: Likewise.
29264 * gnulib/argp-parse.c: Likewise.
29265 * gnulib/argp-pin.c: Likewise.
29266 * gnulib/argp-pv.c: Likewise.
29267 * gnulib/argp-pvh.c: Likewise.
29268 * gnulib/argp-version-etc.c: Likewise.
29269 * gnulib/argp-version-etc.h: Likewise.
29270 * gnulib/argp-xinl.c: Likewise.
29271 * gnulib/argp.h: Likewise.
29273 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29275 * kern/device.c (grub_device_iterate): Clear errors after failed
29278 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29280 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29281 returned by firmware.
29283 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29285 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29286 compilation on coreboot and qemu
29288 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29290 * include/multiboot2.h: Resync with spec.
29292 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29294 Multiboot2 tag support
29296 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29297 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29298 Remove loader/multiboot_loader.c.
29299 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29300 (grub_multiboot2_real_boot): Likewise.
29301 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29302 (grub_get_multiboot_mmap_count): New proto.
29303 (grub_fill_multiboot_mmap): Likewise.
29304 (grub_multiboot_set_video_mode): Likewise.
29305 (grub_multiboot_set_console): Likewise.
29306 (grub_multiboot_load): Likewise.
29307 (grub_multiboot_load_elf): Likewise.
29308 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29309 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29310 * include/multiboot.h: Resynced with specification.
29311 * include/multiboot2.h: Resynced with specification.
29312 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29313 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29314 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29315 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29317 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29318 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29319 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29321 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29323 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29324 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29326 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29327 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29328 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29330 * loader/i386/multiboot_mbi2.c: New file.
29332 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29334 Resync with gnulib.
29336 * Makefile.in (GNULIB_CFLAGS): New variable.
29337 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29338 (grub_script_check_CFLAGS): New variable.
29339 * gnulib/alloca.h: Resync with gnulib.
29340 * gnulib/error.c: Likewise.
29341 * gnulib/error.h: Likewise.
29342 * gnulib/fnmatch.c: Likewise.
29343 * gnulib/fnmatch_loop.c: Likewise.
29344 * gnulib/getdelim.c: Likewise.
29345 * gnulib/getline.c: Likewise.
29346 * gnulib/getopt.c: Likewise.
29347 * gnulib/getopt1.c: Likewise.
29348 * gnulib/getopt_int.h: Likewise.
29349 * gnulib/gettext.h: Likewise.
29350 * gnulib/progname.c: Likewise.
29351 * gnulib/progname.h: Likewise.
29353 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29355 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29356 which is the case with --disabled-nls.
29358 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29359 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29360 * util/misc.c: Likewise.
29361 * util/mkisofs/mkisofs.c: Likewise.
29362 * util/mkisofs/mkisofs.h: Likewise.
29364 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29366 Simplify Apple CC support.
29368 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29369 Add 0 byte at the end not to have a symbol with empty target.
29370 * mmap/i386/pc/mmap_helper.S: Likewise.
29371 * genmk.rb: Ignore errors 2030 and 2050.
29372 * kern/i386/pc/startup.S: Use LOCAL when possible.
29374 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29376 Testcase and the fix for final semicolon on cmdline.
29378 * tests/grub_script_final_semicolon.in: New testcase.
29379 * conf/tests.rmk: Rules for the new testcase.
29380 * script/parser.y: Grammar fix.
29382 2010-03-26 BVK Chaitanya <bvk@localhost>
29384 Blank lines testcase for GRUB script.
29386 * tests/grub_script_blanklines.in: New testcase.
29387 * conf/tests.rmk: Rules for the new testcase.
29389 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29391 Don't use __FILE__.
29393 * genmk.rb: Add -DGRUB_FILE to all C targets.
29394 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29395 * include/grub/list.h: Likewise.
29396 * include/grub/misc.h: Likewise.
29397 * include/grub/mm.h: Likewise.
29398 * include/grub/test.h: Likewise.
29399 * kern/mm.c: Likewise.
29400 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29402 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29404 Sunpc partitions support.
29406 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29407 (grub_fstest_SOURCES): Likewise.
29408 (pkglib_MODULES): Add part_sunpc.mod.
29409 (part_sunpc_mod_SOURCES): New variable.
29410 (part_sunpc_mod_CFLAGS): Likewise.
29411 (part_sunpc_mod_LDFLAGS): Likewise.
29412 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29413 * partmap/sunpc.c: New file.
29415 2010-03-26 BVK Chaitanya <bvk@localhost>
29417 For loop support to GRUB script.
29419 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29420 (grub_script_create_cmdfor): New function prototype.
29421 (grub_script_execute_cmdfor): New function prototype.
29422 * script/execute.c (grub_script_execute_cmdfor): New function.
29423 * script/parser.y (command): New for command.
29424 (forcmd): New grammar rule.
29425 * script/script.c (grub_script_create_cmdfor): New function.
29426 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29428 * tests/grub_script_for1.in: New testcase.
29429 * conf/tests.rmk: Rules for new testcase.
29431 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29435 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29436 'partition' is NULL, grub_partition_get_start already does that.
29437 * commands/loadenv.c (check_blocklists): Likewise.
29438 (write_blocklists): Likewise.
29439 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29440 (grub_fstest_SOURCES): Likewise.
29441 (pkglib_MODULES): Add part_bsd.mod.
29442 (part_bsd_mod_SOURCES): New variable.
29443 (part_bsd_mod_CFLAGS): Likewise.
29444 (part_bsd_mod_LDFLAGS): Likewise.
29445 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29446 (grub_emu_SOURCES): Likewise.
29447 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29448 * include/grub/bsdlabel.h: New file.
29449 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29451 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29452 (grub_partition_map_list): New variable.
29453 (grub_partition_map_register): Inline.
29454 (grub_partition_map_unregister): Likewise.
29455 (FOR_PARTITION_MAPS): New macro.
29456 (grub_partition_map_iterate): Removed.
29457 (grub_partition_get_start): Handle nested partitions.
29458 * include/grub/msdos_partition.h: Remove bsd-related entries.
29459 (grub_pc_partition): Remove.
29460 * kern/disk.c (grub_disk_close): Free partition data.
29461 (grub_disk_adjust_range): Handle nested partitions.
29462 * kern/partition.c (grub_partition_map_probe): New function.
29463 (grub_partition_probe): Parse name to number, handle subpartitions.
29464 (get_partmap): New function.
29465 (grub_partition_iterate): Handle subpartitions.
29466 (grub_partition_get_name): Likewise.
29467 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29468 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29469 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29470 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29472 (acorn_partition_map_probe): Remove.
29473 (acorn_partition_map_get_name): Likewise.
29474 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29476 Set 'index' to 0 since there can be only one partition entry per sector.
29477 (amiga_partition_map_probe): Remove.
29478 (amiga_partition_map_get_name): Likewise.
29479 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29481 Set 'offset' and 'index' to real positions of partitions.
29482 (apple_partition_map_probe): Remove.
29483 (apple_partition_map_get_name): Likewise.
29484 * partmap/bsdlabel.c: New file.
29485 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29487 Allocate 'data' so it can be correctly freed.
29488 Set 'index' to offset inside sector.
29489 (gpt_partition_map_probe): Remove.
29490 (gpt_partition_map_get_name): Likewise.
29491 * partmap/msdos.c (grub_partition_parse): Remove.
29492 (pc_partition_map_iterate): Don't force raw access.
29494 Make 'ext_offset' a local variable.
29495 (pc_partition_map_probe): Remove.
29496 (pc_partition_map_get_name): Remove.
29497 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29499 (sun_partition_map_probe): Remove.
29500 (sun_partition_map_get_name): Likewise.
29501 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29502 (grub_pcpart_type): Likewise.
29503 * util/hostdisk.c (open_device): Handle new numbering scheme.
29504 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29505 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29506 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29507 * util/grub-install.in: Insert all subpartition modules.
29508 * util/ieee1275/grub-install.in: Likewise.
29510 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29512 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29515 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29517 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29519 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29521 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29522 match where 'make install' puts them.
29523 * util/i386/efi/grub-install.in: Likewise.
29525 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29527 * .bzrignore: Add gentrigtables, grub-script-check,
29528 grub_script_check_init.c, grub_script_check_init.h, and
29531 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29533 * kern/parser.c: Indented.
29535 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29537 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29539 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29541 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29542 alpha_mask_size == 0 case.
29544 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29546 GRUB shell lexer and parser improvements.
29548 * conf/any-emu.rmk: Build rule updates.
29549 * conf/common.rmk: Likewise.
29550 * conf/i386-coreboot.rmk: Likewise.
29551 * conf/i386-efi.rmk: Likewise.
29552 * conf/i386-ieee1275.rmk: Likewise.
29553 * conf/i386-pc.rmk: Likewise.
29554 * conf/powerpc-ieee1275.rmk: Likewise.
29555 * conf/x86_64-efi.rmk: Likewise.
29557 * configure.ac: Configure check for flex.
29559 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29561 (grub_lexer_param): Struct member updates.
29562 (grub_parser_param): Likewise.
29563 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29564 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29565 (grub_script_lexer_init): Prototype update.
29566 (grub_script_lexer_record_start): Likewise.
29567 (grub_script_lexer_record_stop): Likewise.
29568 (grub_script_lexer_yywrap): New function prototype.
29569 (grub_script_lexer_fini): Likewise.
29570 (grub_script_execute_argument_to_string): Removed by...
29571 (grub_script_execute_argument_to_argv): ...better version.
29573 * script/execute.c (ROUND_UPTO): New macro.
29574 (grub_script_execute_cmdline): Out of memory fixes.
29575 (grub_script_execute_menuentry): Likewise.
29576 (grub_script_execute_argument_to_string): Removed. Update all
29578 (grub_script_execute_argument_to_argv): ...better version.
29579 * script/function.c (grub_script_function_create): Use
29580 grub_script_execute_argument_to_argv instead of
29581 grub_script_execute_argument_to_string.
29583 * script/lexer.c (check_varstate): Removed.
29584 (check_textstate): Removed.
29585 (grub_script_lexer_record_start): Likewise.
29586 (grub_script_lexer_record_stop): Likewise.
29587 (recordchar): Replaced with...
29588 (grub_script_lexer_record): ...new function.
29589 (nextchar): Removed.
29590 (grub_script_lexer_init): Rewritten.
29591 (grub_script_yylex): Rewritten.
29592 (append_newline): New function.
29593 (grub_script_lexer_yywrap): New function.
29594 (grub_script_lexer_fini): New function.
29595 (grub_script_yyerror): Sets error flag.
29597 * script/yylex.l: New file.
29598 (grub_lexer_yyfree): Wrapper for flex yyffre.
29599 (grub_lexer_yyalloc): Likewise.
29600 (grub_lexer_yyrealloc): Likewise.
29601 * script/parser.y: Refactored.
29603 * script/script.c (grub_script_arg_add): Out of memory fixes.
29604 (grub_script_add_arglist): Likewise.
29605 (grub_script_create_cmdline): Likewise.
29606 (grub_script_create_cmdmenu): Likewise.
29607 (grub_script_add_cmd): Likewise.
29608 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29609 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29612 * tests/grub_script_echo1.in: New testcase.
29613 * tests/grub_script_vars1.in: New testcase.
29614 * tests/grub_script_echo_keywords.in: New testcase.
29616 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29618 Remove some redundancy in build system.
29620 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29621 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29622 (TARGET_LDFLAGS): Add -nostdlib.
29623 (TARGET_IMG_LDFLAGS): Likewise.
29624 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29625 anything since mmap isn't available.
29626 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29628 (pkglib_MODULES): Remove reboot.mod.
29629 (reboot_mod_SOURCES): Removed.
29630 (reboot_mod_CFLAGS): Likewise.
29631 (reboot_mod_LDFLAGS): Likewise.
29632 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29633 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29634 (DEFSYMFILES): Add kernel_syms.lst.
29635 (kernel_img_HEADERS): Add common headers.
29636 (symlist.c): New target.
29637 (kernel_syms.lst): Likewise.
29638 (pkglib_MODULES): Add memdisk.mod.
29639 (memdisk_mod_SOURCES): New variable.
29640 (memdisk_mod_CFLAGS): Likewise.
29641 (memdisk_mod_LDFLAGS): Likewise.
29642 (pkglib_MODULES): Add reboot.mod.
29643 (reboot_mod_SOURCES): New variable.
29644 (reboot_mod_CFLAGS): Likewise.
29645 (reboot_mod_LDFLAGS): Likewise.
29646 (pkglib_MODULES): Add date.mod.
29647 (date_mod_SOURCES): New variable.
29648 (date_mod_CFLAGS): Likewise.
29649 (date_mod_LDFLAGS): Likewise.
29650 (pkglib_MODULES): Add datehook.mod.
29651 (datehook_mod_SOURCES): New variable.
29652 (datehook_mod_CFLAGS): Likewise.
29653 (datehook_mod_LDFLAGS): Likewise.
29654 (pkglib_MODULES): Add lsmmap.mod.
29655 (lsmmap_mod_SOURCES): New variable.
29656 (lsmmap_mod_CFLAGS): Likewise.
29657 (lsmmap_mod_LDFLAGS): Likewise.
29658 (pkglib_MODULES): Add boot.mod.
29659 (boot_mod_SOURCES): New variable.
29660 (boot_mod_CFLAGS): Likewise.
29661 (boot_mod_LDFLAGS): Likewise.
29662 * conf/i386-coreboot.rmk: Removed redundant parts.
29663 * conf/i386-ieee1275.rmk: Likewise.
29664 * conf/i386-pc.rmk: Likewise.
29665 * conf/mips-yeeloong.rmk: Likewise.
29666 * conf/mips.rmk: Likewise.
29667 * conf/powerpc-ieee1275.rmk: Likewise.
29668 * conf/sparc64-ieee1275.rmk: Likewise.
29669 * conf/x86_64-efi.rmk: Likewise.
29670 * conf/i386-coreboot.rmk: Moved qemu parts ..
29671 * conf/i386-qemu.rmk: ... here
29672 * conf/i386-efi.rmk: Moved common parts to...
29673 * conf/x86-efi.rmk: ... here.
29674 * conf/i386.rmk: Added modules common to all x86 variants.
29675 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29676 * disk/memdisk.c: Remove grub/machine/kernel.h.
29677 * gensymlist.sh.in: Include symbol.h.
29678 * hook/datehook.c: Correct module name.
29679 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29680 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29681 * include/grub/i386/efi/serial.h: New file.
29682 * include/grub/x86_64/efi/serial.h: Likewise.
29683 * util/time.c: Likewise.
29684 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29686 2010-03-14 Colin King <colin.king@ubuntu.com>
29687 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29689 Shrink the pre-partition-table part of boot.img by eight bytes.
29691 * boot/i386/pc/boot.S (ERR): New macro.
29692 (chs_mode): Use ERR.
29693 (geometry_error): Likewise.
29694 (hd_probe_error): Remove. This is only used once, so we wrwite
29696 (read_error): Instead of printing read_error_string, just set up
29697 %si and fall through to ...
29698 (error_message): ... this new function, also used by ERR.
29700 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29702 Speed up consecutive hostdisk operations on the same device.
29704 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29705 (grub_util_biosdisk_open): Initialise disk->data.
29706 (struct linux_partition_cache): New structure.
29707 (linux_find_partition): Cache partition start positions; these are
29708 expensive to compute on every read and write.
29709 (open_device): Cache open file descriptor in disk->data, so that we
29710 don't have to reopen it and flush the buffer cache for consecutive
29711 operations on the same device.
29712 (grub_util_biosdisk_close): New function.
29713 (grub_util_biosdisk_dev): Set `close' member.
29715 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29716 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29717 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29718 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29719 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29721 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29723 Compile parts of grub-emu as modules.
29725 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29726 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29727 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29728 (all-local): Add $(GRUB_EMU).
29729 (install-local): Install $(GRUB_EMU).
29730 (uninstall): Uninstall $(GRUB_EMU).
29731 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29732 * kern/dl.c: Likewise.
29733 * commands/sleep.c: Not include machine/time.h.
29734 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29735 (COMMON_CFLAGS): Likewise.
29736 (sbin_UTILITIES): Remove grub-emu.
29737 (grub_emu_SOURCES): Removed.
29738 (kernel_img_RELOCATABLE): New variable.
29739 (pkglib_PROGRAMS): Add kernel.img.
29740 (kernel_img_SOURCES): New variable
29741 (kernel_img_CFLAGS): Likewise.
29742 (kernel_img_LDFLAGS): Likewise.
29743 (TARGET_NO_STRIP): Likewise.
29744 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29745 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29746 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29747 (grub-emu): New target.
29748 (GRUB_EMU): New variable.
29749 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29750 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29751 * loader/xnu.c: Likewise.
29752 * include/grub/pci.h: Likewise.
29753 * genemuinit.sh: New file.
29754 * genemuinitheader.sh: Likewise.
29755 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29756 Support TARGET_NO_DYNAMIC_MODULES.
29757 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29758 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29759 * disk/loopback.c: Likewise.
29760 * font/font_cmd.c: Likewise.
29761 * partmap/acorn.c: Likewise.
29762 * partmap/amiga.c: Likewise.
29763 * partmap/apple.c: Likewise.
29764 * partmap/gpt.c: Likewise.
29765 * partmap/msdos.c: Likewise.
29766 * partmap/sun.c: Likewise.
29767 * parttool/msdospart.c: Likewise.
29768 * term/gfxterm.c: Likewise.
29769 * video/bitmap.c: Likewise.
29770 * video/readers/jpeg.c: Likewise.
29771 * video/readers/png.c: Likewise.
29772 * video/readers/tga.c: Likewise.
29773 * video/video.c: Likewise.
29774 * util/grub-emu.c (read_command_list): Removed.
29775 (main): Don't call util_init_nls.
29776 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29777 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29779 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29781 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29782 date.mod, datehook.mod.
29783 (datetime_mod_SOURCES): New variable.
29784 (datetime_mod_CFLAGS): Likewise.
29785 (datetime_mod_LDFLAGS): Likewise.
29786 (date_mod_SOURCES): Likewise.
29787 (date_mod_CFLAGS): Likewise.
29788 (date_mod_LDFLAGS): Likewise.
29789 (datehook_mod_SOURCES): Likewise.
29790 (datehook_mod_CFLAGS): Likewise.
29791 (datehook_mod_LDFLAGS): Likewise.
29792 * conf/sparc64-ieee1275.rmk: Likewise.
29793 * lib/ieee1275/datetime.c: New file.
29795 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29797 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29798 (ieee1275_fb_mod_SOURCES): New variable.
29799 (ieee1275_fb_mod_CFLAGS): Likewise.
29800 (ieee1275_fb_mod_LDFLAGS): Likewise.
29801 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29803 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29804 (HEAP_MAX_ADDR): Likewise.
29805 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29807 Correct stop condition.
29808 (grub_ieee1275_devices_iterate): New function.
29809 * video/ieee1275.c: New file.
29811 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29813 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29815 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29817 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29818 SCRATCH_PAD_DISKBOOT as scratch.
29819 (bootit): Pass Openfirmware pointer in %o4.
29820 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29822 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29823 with util/grub-mkrawimage.c.
29824 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29825 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29826 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29827 (grub_aout_load) [GRUB_UTIL]: Likewise.
29828 * include/grub/kernel.h (grub_modules_get_end): New proto.
29829 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29830 (SCRATCH_PAD_BOOT): New definition.
29831 (SCRATCH_PAD_DISKBOOT): Likewise.
29832 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29833 * include/grub/sparc64/ieee1275/ieee1275.h
29834 (grub_ieee1275_original_stack): New variable
29835 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29837 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29838 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29839 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29840 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29841 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29842 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29843 (grub_platform_image_format_t): New type.
29844 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29845 * kern/main.c (grub_modules_get_end)
29846 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29847 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29848 (codestart): Switch stacks.
29849 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29851 (grub_heap_init): Use grub_modules_get_end.
29852 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29854 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29856 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29858 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29860 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29862 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29864 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29867 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29869 * genmoddep.awk: Output all missing symbols and not only first.
29871 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29873 * NEWS: Put the date of 1.98 release.
29875 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29877 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29880 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29882 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29883 completition in the middle of string.
29885 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29887 * util/grub-mkrescue.in: Use mktemp with explicit template.
29889 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29891 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29893 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29895 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29898 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29900 Fix FreeBSD compilation.
29902 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29903 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29905 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29907 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29909 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29911 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29913 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29915 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29917 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29919 Support relative image path in theme file.
29921 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29922 (image_set_property): Handle theme_dir and relative path.
29924 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29926 * configure.ac: Alias amd64 to x86_64.
29928 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29930 * NEWS: mention multiboot on EFI.
29932 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29934 * kern/main.c (grub_load_modules): Handle errors from init functions of
29937 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29939 * normal/autofs.c (autoload_fs_module): Handle errors.
29941 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29943 Disable linux.mod on qemu-mips since it's not functional and leads
29944 to compilation failure.
29946 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
29947 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
29948 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
29949 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
29950 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
29951 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
29952 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
29953 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
29954 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
29955 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
29956 Reported by: BVK Chaitanya
29958 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
29960 * INSTALL: Add gettext as a dependency and add qemu to a new section
29961 "Prerequisites for make-check".
29963 2010-03-04 Christian Franke <franke@computer.org>
29965 * util/grub-pe2elf.c: Add missing include "progname.h".
29967 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29969 * normal/crypto.c (read_crypto_list): Fix a typo.
29970 Reported by: Seth Goldberg.
29972 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29974 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
29975 Reported by: Seth Goldberg.
29977 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29979 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
29982 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29984 * genmk.rb: Remove terminal*.lst in make clean.
29985 Reported by: Seth Goldberg.
29987 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29989 * util/i386/efi/grub-install.in: Copy gettext files.
29991 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29993 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
29995 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29997 Wait for user entry basing on presence of output rather than on errors.
29999 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30000 (grub_install_newline_hook): Likewise.
30001 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30002 * normal/menu.c (show_menu): Check line_counter to determine presence
30004 * normal/term.c (grub_normal_line_counter): New variable.
30005 (grub_normal_get_line_counter): New function.
30006 (grub_install_newline_hook): Likewise.
30008 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30010 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30012 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30014 * configure.ac: Update version to 1.98.
30016 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30018 * util/grub.d/10_linux.in (linux_entry): Don't default to
30019 gfxpayload=keep if Linux doesn't support video handover.
30021 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30023 Don't compile video modules on yeeloong since video subsystem is part
30026 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30027 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30028 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30029 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30030 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30031 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30032 * include/grub/bitmap_scale.h: Likewise.
30033 * include/grub/bufio.h: Likewise.
30034 * include/grub/font.h: Likewise.
30035 * include/grub/gfxterm.h: Likewise.
30036 * include/grub/video.h: Likewise.
30037 * include/grub/vbe.h: Don't include video_fb.h.
30038 * video/i386/pc/vbe.c: Include video_fb.h.
30039 * commands/i386/pc/vbetest.c: Include video.h.
30041 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30043 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30044 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30045 default entry if GRUB_SAVEDEFAULT=true. This allows using
30046 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30047 saving a new default on every boot.
30049 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30051 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30052 * normal/term.c (read_terminal_list): Likewise.
30053 * normal/main.c (grub_normal_init_page): Likewise.
30054 (grub_normal_read_line_real): Likewise.
30056 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30058 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30060 Reported by: Seth Goldberg.
30062 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30064 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30065 duplicate declaration of `start'.
30067 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30069 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30071 Reported by: Georgy Buranov
30073 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30075 * util/grub-mkrawimage.c (usage): Change string formatting to
30078 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30080 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30083 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30085 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30086 Reported by: Michael Suchanek.
30088 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30090 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30091 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30093 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30095 Remove any reference to non-free fonts.
30097 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30098 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30099 uses non-free components.
30100 * font/font.c (grub_font_get_name): Remove example name.
30101 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30102 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30103 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30104 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30106 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30108 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30110 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30112 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30114 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30116 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30118 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30120 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30122 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30124 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30125 * docs/grub.texi (Command-line and menu entry commands): Document play
30128 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30130 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30131 parse arguments as inline tempo and notes. Move code for playing notes
30133 (play): ... new function.
30135 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30137 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30138 grub_uint16_t instead of short.
30139 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30140 disk from little endian to cpu endianness.
30142 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30144 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30145 GRUB_TICKS_PER_SECOND instead of 120.
30147 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30149 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30150 escape sequence after \e.
30152 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30154 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30155 non-ASCII characters.
30157 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30159 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30160 set root in single quotes to prevent \, from being unescaped.
30162 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30164 Prevent unknown commands from stopping menuentry execution.
30166 * script/execute.c (grub_script_execute_cmdline): Print error after
30169 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30171 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30172 Reported by: Pavel Pisa.
30174 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30176 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30178 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30180 Merge grub_ieee1275_map_physical into grub_map and rename to
30183 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30184 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30186 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30187 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30189 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30191 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30193 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30194 opening and not after.
30196 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30198 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30201 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30203 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30204 (alloc_phys): Use ALIGN_UP instead of align_addr.
30206 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30208 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30210 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30212 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30214 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30216 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30219 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30221 Fix over-4GiB seek on sparc64.
30223 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30224 Replace pos_i and pos_lo with pos. All users updated.
30225 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30227 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30229 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30232 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30234 * util/grub-mkrawimage.c (main): Call set_program_name.
30236 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30238 Properly align 64-bit targets.
30240 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30241 (generate_image): Use ALIGN_ADDR.
30243 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30245 Properly create cross-endian images.
30247 * include/grub/types.h (grub_host_to_target_addr): New macro
30248 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30250 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30252 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30254 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30256 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30258 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30259 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30260 (grub_linux_boot): Divide by 64K when on VESA.
30262 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30264 Support GRUB_GFXPAYLOAD_LINUX.
30266 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30267 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30269 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30271 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30272 to show messages instead of discarding them.
30273 Process errors after executing command and not before. Keep old method
30276 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30278 * configure.ac: Check for ft2build.h.
30280 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30282 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30284 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30286 * genkernsyms.sh.in: Use TARGET_CC.
30288 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30292 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30294 * include/grub/multiboot2.h: Remove leftover file.
30295 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30296 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30298 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30300 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30302 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30304 Fix warnings in grub-emu when compiling with maximum warning options.
30306 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30307 (grub_arch_modules_addr): Return 0 and not NULL.
30308 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30309 (xstrdup): Use newstr instead of dup.
30310 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30311 of disk to dsk to avoid shadowing.
30312 (find_free_slot): Fix prototype.
30313 * util/getroot.c (grub_util_is_dmraid): Make static.
30314 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30315 Add missing prototype.
30316 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30318 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30320 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30323 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30325 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30328 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30330 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30331 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30332 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30333 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30334 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30335 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30337 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30339 * include/grub/err.h (grub_err_printf): Don't export.
30341 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30343 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30345 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30347 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30348 * kern/misc.c (grub_gettext_dummy): Make static.
30350 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30352 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30354 * kern/term.c (grub_putchar): Likewise.
30356 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30358 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30359 buggy hook call and memory leak.
30361 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30363 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30365 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30367 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30369 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30371 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30373 Return grub_errno on allocation error.
30375 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30377 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30379 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30381 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30382 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30384 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30386 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30388 (grub_pxefs_open): Likewise.
30390 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30392 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30393 * util/grub.d/10_kfreebsd.in: Likewise.
30394 * util/grub.d/10_linux.in: Likewise.
30396 2010-02-06 Colin D Bennett <colin@gibibit.com>
30398 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30399 (gfxmenu_mod_SOURCES): New variable.
30400 (gfxmenu_mod_CFLAGS): Likewise.
30401 (gfxmenu_mod_LDFLAGS): Likewise.
30402 * include/grub/term.h (grub_term_set_current_output): Declare
30404 * docs/gfxmenu-theme-example.txt: New file.
30405 * gfxmenu/gfxmenu.c: Likewise.
30406 * gfxmenu/gui_box.c: Likewise.
30407 * gfxmenu/gui_canvas.c: Likewise.
30408 * gfxmenu/gui_circular_progress.c: Likewise.
30409 * gfxmenu/gui_image.c: Likewise.
30410 * gfxmenu/gui_label.c: Likewise.
30411 * gfxmenu/gui_list.c: Likewise.
30412 * gfxmenu/gui_progress_bar.c: Likewise.
30413 * gfxmenu/gui_string_util.c: Likewise.
30414 * gfxmenu/gui_util.c: Likewise.
30415 * gfxmenu/icon_manager.c: Likewise.
30416 * gfxmenu/model.c: Likewise.
30417 * gfxmenu/named_colors.c: Likewise.
30418 * gfxmenu/theme_loader.c: Likewise.
30419 * gfxmenu/view.c: Likewise.
30420 * gfxmenu/widget-box.c: Likewise.
30421 * include/grub/gfxmenu_model.h: Likewise.
30422 * include/grub/gfxmenu_view.h: Likewise.
30423 * include/grub/gfxwidgets.h: Likewise.
30424 * include/grub/gui.h: Likewise.
30425 * include/grub/gui_string_util.h: Likewise.
30426 * include/grub/icon_manager.h: Likewise.
30428 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30430 Agglomerate scrolling in gfxterm.
30432 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30433 (grub_virtual_screen_setup): Initialise 'total_screen'.
30434 (write_char): Split to ...
30435 (paint_char): ... this ...
30436 (write_char): ... and this.
30437 (paint_char): Handle delayed scrolling.
30438 (draw_cursor): Likewise.
30439 (scroll_up): Split to ...
30440 (real_scroll): ... this ...
30441 (scroll_up): ... and this.
30442 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30444 (grub_gfxterm_refresh): Call real_scroll.
30446 2010-02-06 Colin D Bennett <colin@gibibit.com>
30448 * include/grub/misc.h (grub_iscntrl): New inline function.
30449 (grub_isalnum): Likewise.
30450 (grub_strtol): Likewise.
30452 2010-02-06 Colin D Bennett <colin@gibibit.com>
30454 * normal/menu_text.c (get_entry_number): Move from here ...
30455 * normal/menu.c (get_entry_number): ... moved here.
30456 * include/grub/menu.h (grub_menu_get_default_entry_index):
30458 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30459 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30460 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30461 (grub_menu_viewer_should_return): Likewise.
30462 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30463 * normal/menu_text.c (run_menu): Enable menu switching.
30464 * normal/menu_viewer.c (should_return): New variable.
30465 (menu_viewer_changed): Likewise.
30466 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30467 (grub_menu_viewer_should_return): New function.
30468 (menuviewer_write_hook): Likewise.
30469 (grub_menu_viewer_init): Likewise.
30471 2010-02-06 Colin D Bennet <colin@gibibit.com>
30472 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30474 Support for gfxterm in a window.
30476 * include/grub/gfxterm.h: New file.
30477 * include/grub/video.h (struct grub_video_rect): New declaration.
30478 (grub_video_rect_t): Likewise.
30479 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30480 (refcount): New variable.
30481 (render_target): Likewise.
30482 (window): Likewise.
30483 (repaint_callback): Likewise.
30484 (grub_virtual_screen_setup): Use 'render_target'.
30485 (init_window): New function.
30486 (grub_gfxterm_init_window): Likewise.
30487 (grub_gfxterm_init): Check reference counter.
30489 (destroy_window): New function.
30490 (grub_gfxterm_destroy_window): Likewise.
30491 (grub_gfxterm_fini): Check reference counter.
30492 Use destroy_window.
30493 (redraw_screen_rect): Restore viewport.
30494 Use 'render_target' and 'window'.
30495 Call 'repaint_callback'.
30496 (write_char): Use 'render_target'.
30497 (draw_cursor): Likewise.
30498 (scroll_up): Restore viewport.
30499 Use 'render_target' and 'window'.
30500 Call 'repaint_callback'.
30501 (grub_gfxterm_cls): Likewise.
30502 (grub_gfxterm_refresh): Use 'window'.
30503 (grub_gfxterm_set_repaint_callback): New function.
30504 (grub_gfxterm_background_image_cmd): Use 'window'.
30505 (grub_gfxterm_get_term): New function.
30506 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30508 2010-02-06 Colin D Bennett <colin@gibibit.com>
30510 Bitmap scaling support.
30512 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30513 (bitmap_scale_mod_SOURCES): New variable.
30514 (bitmap_scale_mod_CFLAGS): Likewise.
30515 (bitmap_scale_mod_LDFLAGS): Likewise.
30516 * include/grub/bitmap_scale.h: New file.
30517 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30518 (background_image_cmd_options): New variable.
30519 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30520 (cmd): Rename and change type to ...
30521 (background_image_cmd_handle): ... this. All users updated.
30522 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30523 * video/bitmap_scale.c: New file.
30525 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30529 * Makefile.in (LIBSDL): New variable.
30530 (enable_grub_emu_sdl): Likewise.
30531 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30532 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30533 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30534 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30535 * util/sdl.c: New file.
30537 2010-02-06 Colin D Bennett <colin@gibibit.com>
30538 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30540 Double buffering support.
30542 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30543 * include/grub/video.h: Update comment.
30544 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30546 (grub_video_fb_doublebuf_blit_init): New prototype.
30547 * term/gfxterm.c (scroll_up): Support double buffering.
30548 (grub_gfxterm_refresh): Likewise.
30549 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30550 (grub_video_fb_doublebuf_blit_init): Likewise.
30551 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30552 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30553 'displayed_page', 'render_page' and 'update_screen'.
30554 (grub_video_vbe_fini): Free offscreen buffer.
30555 (doublebuf_pageflipping_commit): New function.
30556 (doublebuf_pageflipping_update_screen): Likewise.
30557 (doublebuf_pageflipping_init): Likewise.
30558 (double_buffering_init): Likewise.
30559 (grub_video_vbe_setup): Enable doublebuffering.
30560 (grub_video_vbe_swap_buffers): Implement.
30561 (grub_video_vbe_set_active_render_target): Handle double buffering.
30562 (grub_video_vbe_get_active_render_target): Likewise.
30563 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30564 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30565 (grub_video_vbe_enable_double_buffering): Likewise.
30566 (grub_video_vbe_swap_buffers): Use update_screen.
30567 (grub_video_set_mode): Use double buffering.
30569 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30571 * maintainance/gentrigtables.py: Remove.
30572 * lib/trig.c: Likewise.
30574 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30576 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30578 (trigtables.c): New rule.
30579 (gentrigtables): Likewise.
30580 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30582 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30584 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30587 2010-02-06 Colin D Bennet <colin@gibibit.com>
30589 Trigonometry support.
30591 * include/grub/trig.h: New file.
30592 * lib/trig.c: Likewise.
30593 * maintainance/gentrigtables.py: Likewise.
30594 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30595 (trig_mod_SOURCES): New variable.
30596 (trig_mod_CFLAGS): Likewise.
30597 (trig_mod_LDFLAGS): Likewise.
30599 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30601 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30604 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30606 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30609 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30611 * util/hostdisk.c (open_device): Don't use partition device when reading
30612 before the partition.
30613 (grub_util_biosdisk_read): Don't read from partition and before the
30614 partition in single operation.
30615 (grub_util_biosdisk_write): Don't write to partition and before the
30616 partition in single operation.
30618 2010-02-03 Torsten Landschoff <torsten@debian.org>
30620 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30623 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30625 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30627 (grub_biosdisk_write): Refuse to write to CDROM.
30629 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30631 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30633 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30635 * font/font.c (find_glyph): Check that bmp_idx is available before
30637 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30638 with (font == NULL).
30640 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30642 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30644 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30646 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30647 * util/grub-script-check.c (getline): Fix empty lines case.
30649 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30651 * Makefile.in (check): Exit with fail status when one of the tests
30653 * tests/example_functional_test.c (example_test): Fix reversed assert.
30654 * tests/example_unit_test.c (example_test): Likewise.
30656 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30658 * util/grub.d/10_linux.in: This script does not use any of the
30659 contents of gettext.sh, only the external command `gettext', so stop
30660 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30661 the same prefix as GRUB.)
30662 * util/grub.d/10_kfreebsd.in: Likewise.
30664 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30666 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30669 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30671 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30674 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30676 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30677 having a 4KiB and not 32KiB buffer size.
30679 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30681 * util/hostfs.c: Include `<errno.h>'.
30682 (grub_hostfs_read): Handle errors from fseeko() and fread().
30684 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30686 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30687 loop when using read hooks on files whose size isn't sector-aligned.
30689 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30691 Remove unused parameter.
30693 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30694 (grub_iso9660_open): Remove initialization of `data->length'.
30696 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30698 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30699 memleak conditions.
30701 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30703 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30704 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30706 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30708 * util/bin2h.c (usage): Fix warning (space after backslash).
30710 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30712 * font/font.c: Include `grub/fontformat.h.
30713 Remove font file format constants.
30714 (grub_font_load): Use the new macros.
30715 * include/grub/fontformat.h: New file.
30716 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30717 (write_font_pf2): Use the new macros.
30719 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30721 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30724 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30726 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30728 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30729 (_start): Macroify `0x7F'.
30731 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30732 (make_install_device): Use "(pxe)" as fallback prefix when booting
30735 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30737 * configure.ac: Reset LIBS after check for libgcc symbols.
30739 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30741 * util/hostdisk.c (open_device): Add trailing newline to debug
30744 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30746 * configure.ac: Check for `limits.h'.
30747 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30749 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30751 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30752 capitalize error strings.
30754 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30756 * util/grub.d/10_hurd.in: Add a recovery mode.
30758 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30760 * configure.ac: Check for libgcc symbols with -nostdlib.
30762 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30764 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30766 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30768 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30769 stack since heap may be unavailable at that point.
30770 (grub_ofconsole_gotoxy): Likewise.
30772 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30774 * configure.ac: Check for _restgpr_14_x.
30775 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30776 and _savegpr_* prototypes.
30778 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30780 Use generic grub_reboot() for i386-efi.
30782 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30783 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30784 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30786 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30788 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30789 presence of "prefix" variable as it breaks when normal.mod is
30792 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30794 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30795 stack since heap is unavailable at that point.
30797 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30799 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30800 (grub_freebsd_bootinfo): Rewritten.
30801 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30803 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30805 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30807 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30809 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30812 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30814 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30815 around for handling "/" to the correct fix. Fix a memory leak. Use
30816 xstrdup instead of strdup.
30818 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30820 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30822 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30824 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30826 * font/font.c (struct grub_font): New member 'bmp_idx'.
30827 (font_init): Initialise 'bmp_idx'.
30828 (load_font_index): Fill 'bmp_idx'.
30829 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30831 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30833 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30836 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30838 Move context handling out of the kernel.
30840 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30841 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30842 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30843 * conf/i386-efi.rmk: Likewise.
30844 * conf/i386-ieee1275.rmk: Likewise.
30845 * conf/i386-pc.rmk: Likewise.
30846 * conf/powerpc-ieee1275.rmk: Likewise.
30847 * conf/sparc64-ieee1275.rmk: Likewise.
30848 * conf/x86_64-efi.rmk: Likewise.
30849 * include/grub/env.h: Include grub/menu.h.
30850 (grub_env_var_type): Removed.
30851 (grub_env_var): Replaced field 'type' with 'global'.
30852 (grub_env_find): New prototype.
30853 (grub_env_context_open): Remove EXPORT_FUNC.
30854 (grub_env_context_close): Likewise.
30855 (grub_env_export): Likewise.
30856 (grub_env_set_data_slot): Removed.
30857 (grub_env_get_data_slot): Likewise.
30858 (grub_env_unset_data_slot): Likewise.
30859 (grub_env_unset_menu): New prototype.
30860 (grub_env_set_menu): Likewise.
30861 (grub_env_get_menu): Likewise.
30862 * include/grub/env_private.h: New file.
30863 * include/grub/normal.h (grub_context_init): New prototype.
30864 (grub_context_fini): Likewise.
30865 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30866 * normal/context.c (grub_cmd_export): ... to here.
30867 * kern/env.c: Include env_private.h.
30868 (HASHSZ): Moved to include/grub/env_private.h.
30869 (grub_env_context): Likewise.
30870 (grub_env_sorted_var): Likewise.
30871 (current_context): Renamed from this ...
30872 (grub_current_context): ...to this. 'static' removed. All users updated.
30873 (grub_env_find): Removed 'static'.
30874 (grub_env_context_open): Moved to normal/context.c.
30875 (grub_env_context_close): Likewise.
30876 (grub_env_export): Likewise.
30877 (mangle_data_slot_name): Removed.
30878 (grub_env_set_data_slot): Likewise.
30879 (grub_env_get_data_slot): Likewise.
30880 (grub_env_unset_data_slot): Likewise.
30881 * kern/main.c (grub_set_root_dev): Don't export root.
30882 It will be done later.
30883 (grub_main): Don't export prefix.
30884 It will be done later.
30885 * normal/context.c: New file.
30886 * normal/main.c (free_menu): Use grub_env_unset_menu.
30887 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30888 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30889 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30890 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30892 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30896 * commands/setpci.c: New file.
30897 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30898 (setpci_mod_SOURCES): New variable.
30899 (setpci_mod_CFLAGS): Likewise.
30900 (setpci_mod_LDFLAGS): Likewise.
30902 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30904 Byte-addressable PCI configuration space.
30906 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30908 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30909 GRUB_PCI_REG_CACHELINE.
30910 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30911 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30912 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30913 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30914 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30915 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30916 grub_pci_make_address.
30917 (lock_rom_area): Likewise.
30918 * commands/lspci.c (grub_lspci_iter): Use macroses
30919 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30920 of grub_pci_make_address.
30921 * disk/ata.c (grub_ata_pciinit): Likewise.
30922 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30923 (GRUB_PCI_REG_VENDOR): Likewise.
30924 (GRUB_PCI_REG_DEVICE): Likewise.
30925 (GRUB_PCI_REG_COMMAND): Likewise.
30926 (GRUB_PCI_REG_STATUS): Likewise.
30927 (GRUB_PCI_REG_REVISION): Likewise.
30928 (GRUB_PCI_REG_CLASS): Likewise.
30929 (GRUB_PCI_REG_CACHELINE): Likewise.
30930 (GRUB_PCI_REG_LAT_TIMER): Likewise.
30931 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
30932 (GRUB_PCI_REG_BIST): Likewise.
30933 (GRUB_PCI_REG_ADDRESSES): Likewise.
30934 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30935 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30936 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30937 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30938 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30939 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30940 (GRUB_PCI_REG_CIS_POINTER): Likewise.
30941 (GRUB_PCI_REG_SUBVENDOR): Likewise.
30942 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
30943 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
30944 (GRUB_PCI_REG_CAP_POINTER): Likewise.
30945 (GRUB_PCI_REG_IRQ_LINE): Likewise.
30946 (GRUB_PCI_REG_IRQ_PIN): Likewise.
30947 (GRUB_PCI_REG_MIN_GNT): Likewise.
30948 (GRUB_PCI_REG_MAX_LAT): Likewise.
30949 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
30950 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
30951 * video/efi_uga.c (find_framebuf): Likewise.
30952 * video/sm712.c (grub_video_sm712_setup): Likewise.
30953 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
30956 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30958 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
30959 can be reliably determined to be supported.
30961 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30963 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
30964 that VESA is supported.
30965 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
30968 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30970 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
30972 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30974 * util/misc.c (make_system_path_relative_to_its_root): Work around
30975 special-casing of "/", as previous incarnation of this routine did.
30977 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30979 Fix any-emu compilation.
30981 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
30982 * grub_bin2h_SOURCES: New variable.
30984 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30986 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
30988 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30990 * util/grub.d/00_header.in: Fix handling of locale_dir.
30992 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30994 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
30995 as possible unifont location (Gentoo).
30996 Reported by: Alexander Brüning
30998 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31000 Don't try to generate lists for kernel.img.
31002 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31003 (pkglib_MODULES): Remove kernel.img.
31004 (kernel_img_EXPORTS): Removed.
31005 (kernel_img_RELOCATABLE): New variable.
31006 * conf/x86_64-efi.rmk: Likewise.
31007 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31009 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31011 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31012 grub_xasprintf or grub_snprintf.
31013 (grub_vsprintf): Likewise.
31014 (grub_snprintf): New proto.
31015 (grub_vsnprintf): Likewise.
31016 (grub_xasprintf): Likewise.
31017 (grub_xvasprintf): Likewise.
31018 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31019 (grub_sprintf): Removed.
31020 (grub_vsnprintf): New function.
31021 (grub_snprintf): Likewise.
31022 (grub_xvasprintf): Likewise.
31023 (grub_xasprintf): Likewise.
31024 (grub_vsprintf): Renamed to ...
31025 (grub_vsnprintf_real): ...this. New argument max_len.
31027 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31029 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31030 fix grub-script-check warning.
31032 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31034 * include/grub/font.h (grub_font_load): Fix prototype.
31036 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31038 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31040 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31042 * include/grub/x86_64/at_keyboard.h: New file.
31044 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31046 * loader/mips/linux.c: Include missing grub/i18n.h.
31048 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31050 * normal/menu.c (notify_execution_failure): Clarify error message.
31052 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31054 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31055 return value (and revert all return statements). Update users.
31057 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31059 * kern/device.c (grub_device_iterate): Allocate new part_ent
31060 structure based on sizeof (*p) rather than sizeof (p->next), to
31061 account for structure padding.
31063 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31064 disk is NULL, which might happen for LVM physical volumes with no
31067 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31069 * loader/mips/linux.c (grub_cmd_initrd)
31070 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31072 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31074 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31075 (grub_video_video_init, grub_video_bitmap_init)
31076 (grub_font_manager_init, grub_term_gfxterm_init)
31077 (grub_at_keyboard_init): New extern declarations.
31078 (grub_machine_init): Initialize gfxterm and at_keyboard.
31080 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31082 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31083 `gfxterm.mod' into core image.
31085 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31086 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31087 (kernel_img_FORMAT): Copy to ...
31089 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31090 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31091 (kernel_img_FORMAT): ... here, and ...
31093 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31094 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31095 (kernel_img_FORMAT): ... here.
31097 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31098 and input (at_keyboard) terminals in kernel.
31099 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31101 (pkglib_MODULES): Remove `pci.mod'.
31102 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31103 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31104 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31105 (at_keyboard_mod_LDFLAGS): Remove variables.
31107 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31109 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31111 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31113 * include/grub/mips/libgcc.h: Only export symbols for functions
31114 that libgcc provides.
31116 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31120 * bus/bonito.c: New file.
31121 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31122 GRUB_PCI_NUM_DEVICES.
31123 * term/i386/pc/serial.c: Move to ...
31124 * term/serial.c: ... here. All users updated.
31125 * util/i386/pc/grub-mkimage.c: Move to ...
31126 * util/grub-mkrawimage.c: ... here. All users updated.
31127 * term/i386/pc/at_keyboard.c: Move to ...
31128 * term/at_keyboard.c: ... here. All users updated.
31129 * conf/mips-qemu-mips.rmk: New file.
31130 * conf/mips-yeeloong.rmk: Likewise.
31131 * conf/mips.rmk: Likewise.
31132 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31134 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31136 (grub_ata_pciinit): Support CS5536.
31137 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31138 * font/font_cmd.c (loadfont_command): Open file before passing it to
31140 (pseudo_file_read): New function.
31141 (pseudo_file_close): Likewise.
31142 (pseudo_fs): New structure.
31143 (load_font_module): New function.
31144 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31145 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31146 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31147 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31148 * include/grub/i386/at_keyboard.h: Split into ...
31149 * include/grub/at_keyboard.h: ... this ...
31150 * include/grub/i386/at_keyboard.h: ... and this.
31151 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31153 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31155 (grub_elf64_size): Likewise.
31156 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31158 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31159 * include/grub/i386/coreboot/serial.h: Rewritten.
31160 * include/grub/i386/ieee1275/serial.h: Include
31161 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31162 * include/grub/i386/pc/serial.h: Moved from here ...
31163 * include/grub/serial.h: ... to here. All users updated.
31164 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31165 (GRUB_PCI_NUM_BUS): Likewise.
31166 (GRUB_PCI_NUM_DEVICES): Likewise.
31167 (grub_pci_device_map_range): Add missing volatile keyword.
31168 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31169 * include/grub/mips/at_keyboard.h: New file.
31170 * include/grub/mips/cache.h: Likewise.
31171 * include/grub/mips/io.h: Likewise.
31172 * include/grub/mips/kernel.h: Likewise.
31173 * include/grub/mips/libgcc.h: Likewise.
31174 * include/grub/mips/pci.h: Likewise.
31175 * include/grub/mips/qemu-mips/boot.h: Likewise.
31176 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31177 * include/grub/mips/qemu-mips/loader.h: Likewise.
31178 * include/grub/mips/qemu-mips/memory.h: Likewise.
31179 * include/grub/mips/qemu-mips/serial.h: Likewise.
31180 * include/grub/mips/qemu-mips/time.h: Likewise.
31181 * include/grub/mips/relocator.h: Likewise.
31182 * include/grub/mips/time.h: Likewise.
31183 * include/grub/mips/types.h: Likewise.
31184 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31185 * include/grub/mips/yeeloong/boot.h: Likewise.
31186 * include/grub/mips/yeeloong/kernel.h: Likewise.
31187 * include/grub/mips/yeeloong/loader.h: Likewise.
31188 * include/grub/mips/yeeloong/memory.h: Likewise.
31189 * include/grub/mips/yeeloong/pci.h: Likewise.
31190 * include/grub/mips/yeeloong/serial.h: Likewise.
31191 * include/grub/mips/yeeloong/time.h: Likewise.
31192 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31193 * kern/elf.c (grub_elf32_size): New parameter. All users
31195 (grub_elf64_size): Likewise.
31196 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31197 Load modules before saying "Welcome to GRUB!".
31198 Call grub_refresh after saying "Welcome to GRUB!".
31199 * kern/mips/cache.S: New file.
31200 * kern/mips/cache_flush.S: Likewise.
31201 * kern/mips/dl.c: Likewise.
31202 * kern/mips/init.c: Likewise.
31203 * kern/mips/qemu-mips/init.c: Likewise.
31204 * kern/mips/startup.S: Likewise.
31205 * kern/mips/yeeloong/init.c: Likewise.
31206 * kern/term.c (grub_putcode): Handle NULL terminal.
31207 (grub_getcharwidth): Likewise.
31208 (grub_getkey): Likewise.
31209 (grub_checkkey): Likewise.
31210 (grub_getkeystatus): Likewise.
31211 (grub_getxy): Likewise.
31212 (grub_getwh): Likewise.
31213 (grub_gotoxy): Likewise.
31214 (grub_cls): Likewise.
31215 (grub_setcolorstate): Likewise.
31216 (grub_setcolor): Likewise.
31217 (grub_getcolor): Likewise.
31218 (grub_refresh): Likewise.
31219 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31220 (write_jump): Add hatch nop.
31221 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31222 * lib/mips/setjmp.S: New file.
31223 * loader/mips/linux.c: Likewise.
31224 * term/i386/pc/at_keyboard.c: Move from here ...
31225 * term/at_keyboard.c: ... to here.
31226 * term/i386/pc/serial.c: Moved from here ...
31227 * term/serial.c: ... to here. All users updated.
31228 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31229 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31230 (serial_translate_key_sequence): Avoid deadlock.
31231 (grub_serial_getkey): Handle backspace.
31232 (grub_serial_putchar): Fix newline handling.
31233 * util/i386/pc/grub-mkimage.c: Move from here ...
31234 * util/grub-mkrawimage.c: ... to here. All users updated.
31235 (generate_image): New parameters 'font_path' and 'format'.
31236 Support embedding font.
31237 Use grub_host_to_target* instead of grub_cpu_to_le*.
31238 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31239 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31240 (options): New option "--font".
31242 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31243 (main): Handle "--font".
31244 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31245 (grub_virtual_screen_setup): Set bg_color_display.
31246 (redraw_screen_rect): Use bg_color_display instead of incorrect
31248 (grub_gfxterm_cls): Likewise.
31249 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31250 Support embedding config file.
31251 (add_segments): Likewise.
31252 (options): New option "--config".
31253 (main): Handle "--config".
31254 * video/sm712.c: New file.
31256 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31258 Fix parallel builds.
31260 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31261 font.c depend on ascii.h).
31263 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31265 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31267 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31269 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31270 By default: disabled.
31271 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31274 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31276 * font/font.c: Update copyright years.
31277 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31279 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31281 * font/font.c: Include `ascii.h'.
31282 (ASCII_BITMAP_SIZE): New macro.
31283 (ascii_font_glyph): Define.
31284 (ascii_glyph_lookup): New function.
31285 (grub_font_get_string_width): Change comment. If glyph not found, use
31286 ascii_glyph_lookup.
31287 (grub_font_get_glyph_with_fallback): If glyph not available returns
31288 ascii_glyph_lookup.
31289 * util/grub-mkfont.c (file_formats): New enum.
31290 (options): Add `ascii-bitmaps' new option.
31291 (usage): Add `asii-bitmaps' new option.
31292 (write_font_ascii_bitmap): New function.
31293 (write_font): Rename to ...
31294 (write_font_p2): ... this. Remove print_glyphs call.
31295 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31296 used. Call print_glyphs.
31297 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31299 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31301 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31302 (grub_bin2h_SOURCES): New variable.
31303 * util/bin2h.c: New file.
31305 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31307 * include/multiboot.h: Resynced with spec.
31308 * include/multiboot2.h: Likewise.
31309 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31310 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31312 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31314 * include/grub/term.h (grub_term_register_input,
31315 grub_term_register_output): Check return of terminal init()
31316 routines, and abort if errors are raised.
31318 * commands/terminal.c: Update copyright year.
31320 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31322 * commands/terminal.c (grub_cmd_terminal_input)
31323 (grub_cmd_terminal_output): Check return of terminal init()
31324 routines, and abort if errors are raised.
31326 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31328 * include/grub/i386/bsd.h: Fix include pathes.
31330 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31332 Add missing *BSD copyright headers.
31334 * include/grub/aout.h: Add BSD licence.
31335 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31336 * include/grub/i386/freebsd_linker.h: ... here,
31337 * include/grub/i386/freebsd_reboot.h: ... here,
31338 * include/grub/i386/netbsd_bootinfo.h: ... here,
31339 * include/grub/i386/netbsd_reboot.h: ... here,
31340 * include/grub/i386/openbsd_bootarg.h: ... here,
31341 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31342 licence to each file.
31344 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31346 * acinclude.m4: Remove `nop' assembly instruction; it's not
31347 implemented by all architectures.
31349 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31351 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31352 ELILO. This is no longer necessary.
31354 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31356 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31358 * util/grub-script-check.c: grub-script-check tool.
31359 * conf/common.rmk: Make rules for grub-script-check.
31361 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31363 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31364 spotting it back in 2008. Shame on me for forgetting he did.
31366 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31368 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31370 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31371 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31372 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31373 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31374 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31375 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31377 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31379 * include/grub/test.h: Add license header.
31380 * tests/example_functional_test.c: Likewise.
31381 * tests/example_unit_test.c: Likewise.
31382 * tests/lib/functional_test.c: Likewise.
31383 * tests/lib/test.c: Likewise.
31384 * tests/lib/unit_test.c: Likewise.
31386 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31388 Use flag-based instead of hook-based video mode selection and "auto"
31391 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31392 (grub_video_set_mode): Changed prototype. All users updated.
31393 (grub_video_check_mode_flag): New inline function.
31394 * video/video.c (parse_modespec): New function.
31395 (grub_video_set_mode): Parse flags and keywords.
31397 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31399 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31402 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31404 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31406 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31408 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31410 * util/grub-emu.c (usage): Likewise.
31411 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31412 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31413 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31414 * util/i386/pc/grub-setup.c (usage): Likewise.
31416 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31418 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31420 (grub_util_info): Likewise.
31421 (grub_util_error): Likewise.
31422 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31423 and/or new lines in `grub_util_warna', `grub_util_info',
31424 `grub_util_error' calls.
31425 * util/getroot.c: Likewise.
31426 * util/grub-editenv.c: Likewise.
31427 * util/grub-emu.c: Likewise.
31428 * util/grub-fstest.c: Likewise.
31429 * util/grub-mkdevicemap.c: Likewise.
31430 * util/grub-mkfont.c: Likewise.
31431 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31432 * util/grub-mkrelpath.c: Likewise.
31433 * util/grub-pe2elf.c: Likewise.
31434 * util/grub-probe.c: Likewise.
31435 * util/hostdisk.c: Likewise.
31436 * util/i386/efi/grub-mkimage.c: Likewise.
31437 * util/i386/pc/grub-mkimage.c: Likewise.
31438 * util/i386/pc/grub-setup.c: Likewise.
31439 * util/ieee1275/ofpath.c: Likewise.
31440 * util/mkisofs/eltorito.c: Likewise.
31441 * util/mkisofs/rock.c: Likewise.
31442 * util/mkisofs/write.c: Likewise.
31443 * util/raid.c: Likewise.
31444 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31445 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31447 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31449 Enable multiboot on non-pc.
31451 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31452 multiboot.mod and multiboot2.mod to ...
31453 * conf/i386.rmk (pkglib_MODULES): ... here.
31454 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31456 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31457 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31459 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31460 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31462 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31463 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31465 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31466 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31468 (ata_mod_SOURCES): Removed.
31469 (ata_mod_CFLAGS): Likewise.
31470 (ata_mod_LDFLAGS): Likewise.
31471 (relocator_mod_SOURCES): Removed.
31472 (relocator_mod_CFLAGS): Likewise.
31473 (relocator_mod_ASFLAGS): Likewise.
31474 (relocator_mod_LDFLAGS): Likewise.
31476 * include/grub/x86_64/multiboot.h: New file.
31477 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31480 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31482 Video multiboot support.
31484 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31486 * include/multiboot.h: Resynced with multiboot specification.
31487 * include/multiboot2.h: Likewise.
31488 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31489 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31490 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31491 (HAS_VGA_TEXT): Likewise.
31492 (accepts_video): New variable.
31493 (grub_multiboot_set_accepts_video): New function.
31494 (grub_multiboot_get_mbi_size): Account for video structures.
31495 (set_video_mode): New function.
31496 (retrieve_video_parameters): Likewise.
31497 (grub_multiboot_make_mbi): Fill video fields.
31499 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31503 * include/grub/video.h (grub_video_driver_id): New type.
31504 (grub_video_adapter): New member 'id'. All users updated.
31505 (grub_video_get_driver_id): New proto.
31506 * video/video.c (grub_video_get_driver_id): New function.
31508 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31510 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31513 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31515 * normal/cmdline.c (print_completion): Gettextizze.
31517 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31519 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31521 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31523 * gettext/gettext.c (grub_gettext_translate): Push and pop
31525 (grub_gettext_delete_list): Change comment style.
31526 * kern/err.c (grub_error): Gettextizze.
31527 (grub_fatal): Gettextizze.
31529 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31531 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31532 (grub_linux16_real_boot): ... this.
31533 * kern/i386/loader.S: Likewise.
31534 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31535 (grub_linux16_boot): New function. Switches to text mode and calls
31536 grub_linux16_real_boot().
31538 * loader/i386/bsd.c: Include `<grub/video.h>'.
31539 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31540 text mode before calling grub_unix_real_boot().
31542 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31543 (grub_multiboot_boot): Switch to text mode before calling
31544 grub_relocator32_boot().
31546 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31547 (grub_chainloader_boot): Switch to text mode before calling
31548 grub_chainloader_real_boot().
31550 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31551 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31553 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31556 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31557 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31559 * util/grub.d/00_header.in: Define a "savedefault" function for use
31561 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31563 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31564 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31566 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31567 saved_entry if boot_once is unset.
31568 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31569 previous saved entry (i.e. grub-reboot).
31571 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31573 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31575 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31577 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31579 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31581 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31583 * util/grub-reboot.in: Fix --version output.
31584 * util/grub-set-default.in: Likewise.
31586 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31588 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31591 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31593 * util/grub.d/00_header.in: Quote the value assigned to `default',
31594 in case it contains spaces.
31596 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31598 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31599 `save_default_entry' call from the macosx case to the linux case.
31601 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31602 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31604 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31605 in `chosen' environment variable.
31606 * normal/menu_text.c (get_entry_number): Check if the variable
31607 matches the title of a menu entry.
31608 (run_menu): Pass menu to get_entry_number.
31610 * util/grub-reboot.in: New file.
31611 * util/grub-set-default.in: New file.
31612 * conf/common.rmk (grub-reboot): New utility.
31613 (grub-set-default): New utility.
31615 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31616 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31617 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31618 move it to `saved_entry' for the next boot. Load environment on
31620 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31621 * util/grub.d/10_hurd.in: Likewise.
31622 * util/grub.d/10_linux.in (linux_entry): Likewise.
31623 * util/grub.d/10_windows.in: Likewise.
31624 * util/grub.d/30_os-prober.in: Likewise.
31626 * util/grub-install.in: Create environment block.
31627 * util/i386/efi/grub-install.in: Likewise.
31628 * util/ieee1275/grub-install.in: Likewise.
31629 * util/sparc64/ieee1275/grub-install.in: Likewise.
31631 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31633 Unit testing framework for GRUB.
31635 * Makefile.in: Test framework build rules for 'make check'.
31636 * conf/tests.rmk: Build rules for individual tests and framework.
31638 * include/grub/test.h: Header file for whitebox tests.
31639 * tests/lib/functional_test.c: Framework support for whitebox
31641 * tests/lib/test.c: Common whitebox testing code for unit and
31643 * tests/lib/unit_test.c: Framework support for whitebox unit
31646 * tests/util/grub-shell-tester.in: Support utility for grub-script
31648 * tests/util/grub-shell.in: Utility to execute grub-script
31649 commands in a Qemu instance.
31651 * tests/example_functional_test.c: Example whitebox functional
31653 * tests/example_grub_script_test.in: Example grub-script test.
31654 * tests/example_scripted_test.in: Example scripted test.
31655 * tests/example_unit_test.c: Example whitebox unit test.
31657 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31659 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31660 Add loader/i386/multiboot_mbi.c.
31661 (multiboot2_mod_SOURCES): Likewise.
31662 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31663 (multiboot2_mod_SOURCES): Likewise.
31664 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31665 (grub_multiboot_make_mbi): Likewise.
31666 (grub_multiboot_free_mbi): Likewise.
31667 (grub_multiboot_init_mbi): Likewise.
31668 (grub_multiboot_add_module): Likewise.
31669 (grub_multiboot_set_bootdev): Likewise.
31670 * loader/i386/multiboot.c (mbi): Removed.
31671 (mbi_dest): Likewise.
31672 (alloc_mbi): New variable.
31673 (grub_multiboot_payload_size): Removed. All users updated.
31674 (grub_multiboot_pure_size): New variable.
31675 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31676 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31677 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31678 (grub_fill_multiboot_mmap): Likewise.
31679 (grub_multiboot_get_bootdev): Likewise.
31680 (grub_multiboot): Use multiboot_mbi functions.
31681 * loader/i386/multiboot_mbi.c: New file.
31683 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31685 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31686 it would result in module crash.
31688 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31690 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31691 (grub_ofconsole_getwh): Split to ...
31692 (grub_ofconsole_getwh): ... this.
31693 (grub_ofconsole_dimensions): ...and this.
31694 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31696 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31698 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31700 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31702 * loader/i386/pc/multiboot2.c: Removed stalled file.
31704 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31706 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31707 Reported by: Grégoire Sutre
31709 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31711 * util/misc.c (canonicalize_file_name): New function.
31712 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31713 instead of realpath().
31715 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31717 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31718 and make it clearer that it's optional. Based on confusion
31721 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31723 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31724 in premature implicit newline.
31726 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31728 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31729 which resulted in garbled command line at the end of screen.
31731 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31733 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31734 initialization with similar approach as with other Linux loaders.
31736 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31738 Fix i386-ieee1275 build.
31740 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31741 and grub_term_height() for video_{width,height} initialization.
31743 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31745 Fix grub-emu build.
31747 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31749 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31750 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31752 Support for multiple terminals.
31754 * Makefile.in (pkglib_DATA): terminal.lst.
31755 (terminal.lst): New target.
31756 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31757 (GRUB_MOD_INIT(handler)): Likewise.
31758 (GRUB_MOD_FINI(handler)): Likewise.
31759 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31760 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31761 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31762 (grub_cmd_sleep): Use grub_term_save_pos.
31763 * commands/terminal.c: New file.
31764 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31765 commands/terminal.c and lib/charset.c.
31766 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31767 (pkglib_MODULES): Add terminal.mod.
31768 (terminal_mod_SOURCES): New variable.
31769 (terminal_mod_CFLAGS): Likewise.
31770 (terminal_mod_LDFLAGS): Likewise.
31771 * genhandlerlist.sh: Don't handle terminals.
31772 * genmk.rb: Generate terminal-*.lst.
31773 * genterminallist.sh: New file.
31774 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31775 (grub_is_valid_utf8): Likewise.
31776 (grub_utf8_to_ucs4_alloc): Likewise.
31777 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31778 (grub_menu_register_viewer): Changed argument.
31779 (grub_menu_try_text): New proto.
31780 (grub_gfxmenu_try_hook): New declaration.
31781 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31782 (grub_menu_init_page): Additional argument term.
31783 (grub_normal_init_page): Likewise.
31784 (grub_cmdline_get): Arguments simplified.
31785 (grub_utf8_to_ucs4_alloc): Removed.
31786 (grub_print_ucs4): Additional argument term.
31787 (grub_getstringwidth): Likewise.
31788 (grub_print_message_indented): Likewise.
31789 (grub_menu_text_register_instances): New proto.
31790 (grub_show_menu): Likewise.
31791 (read_terminal_list): Likewise.
31792 (grub_set_more): Likewise.
31793 * include/grub/parser.h: Include handler.h.
31794 * include/grub/reader.h: Rewritten.
31795 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31796 (GRUB_TERM_WIDTH): Changed to function.
31797 (GRUB_TERM_HEIGHT): Likewise.
31798 (GRUB_TERM_BORDER_WIDTH): Likewise.
31799 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31800 (GRUB_TERM_NUM_ENTRIES): Likewise.
31801 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31802 (GRUB_TERM_CURSOR_X): Likewise.
31803 (grub_term_input_class): Likewise.
31804 (grub_term_output_class): Likewise.
31805 (grub_term_outputs_disabled): New declaration.
31806 (grub_term_inputs_disabled): Likewise.
31807 (grub_term_outputs): Likewise.
31808 (grub_term_inputs): Likewise.
31809 (grub_term_register_input): Rewritten.
31810 (grub_term_register_output): Likewise.
31811 (grub_term_unregister_input): Likewise.
31812 (grub_term_unregister_output): Likewise.
31813 (FOR_ACTIVE_TERM_INPUTS): New macro.
31814 (FOR_DISABLED_TERM_INPUTS): Likewise.
31815 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31816 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31817 * include/grub/terminfo.h: Add oterm argument to all protypes.
31818 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31819 Use grub_rescue_run.
31820 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31822 * kern/reader.c: Removed. All users updated.
31823 * kern/rescue_reader.c (grub_rescue_init): Removed.
31824 (grub_rescue_reader): Likewise.
31825 (grub_register_rescue_reader): Likewise.
31826 (grub_rescue_run): New function based on kern/reader.c.
31827 * kern/term.c: Adapted for multiterm.
31828 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31829 (grub_is_valid_utf8): Likewise.
31830 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31831 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31833 * loader/i386/linux.c (grub_linux_boot): Likewise.
31834 * normal/auth.c (grub_username_get): New function.
31835 (grub_auth_check_authentication): Use grub_username_get.
31836 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31837 * normal/color.c: Adapt for multiterm.
31838 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31839 (grub_normal_init_page): Additional argument term.
31840 (read_lists): Call read_terminal_lists.
31841 (grub_enter_normal_mode): Call grub_cmdline_run.
31842 Handle grub_normal_exit_level.
31843 (grub_cmd_normal): Make reentrant.
31844 (grub_cmd_normal_exit): New function.
31845 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31846 * normal/menu.c: Adapt for multiterm.
31847 * normal/menu_entry.c: Likewise.
31848 * normal/menu_text.c: Likewise.
31849 * normal/menu_viewer.c: Removed. All users updated.
31850 * normal/term.c: New file.
31851 * util/console.c: Change order of includes to workaround a bug in
31853 * term/terminfo.c: New argument oterm on all exported functions.
31855 * util/grub-editenv.c (grub_term_input_class): Removed.
31856 (grub_term_output_class): Likewise.
31858 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31860 Make loader output a bit more user-friendly.
31862 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31863 is being loaded. Likewise for the Hurd.
31865 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31866 that kernel of FreeBSD ${version} is being loaded.
31868 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31870 (grub_cmd_initrd): Likewise.
31871 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31872 that Linux ${version} is being loaded. Likewise for initrd.
31874 2010-01-09 Carles Pina i Estany <carles@pina.cat>
31876 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31878 2010-01-08 Carles Pina i Estany <carles@pina.cat>
31880 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31881 (GRUB_MOD_INIT): Gettextizze.
31882 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31883 (GRUB_MOD_INIT): Gettextizze.
31884 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31885 (grub_cmd_linux): Capitalise Linux.
31886 (GRUB_MOD_INIT): Gettextizze.
31887 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31888 (grub_cmd_linux): Capitalise Linux.
31889 (GRUB_MOD_INIT): Gettextizze.
31890 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31891 (grub_cmd_linux): Capitalise Linux.
31892 (GRUB_MOD_INIT): Gettextizze.
31893 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31894 (GRUB_MOD_INIT): Gettextizze.
31895 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31896 (grub_cmd_linux): Capitalise Linux.
31897 (GRUB_MOD_INIT): Gettextizze.
31898 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31899 (grub_cpu_xnu_init): Gettextizze.
31900 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31901 (GRUB_MOD_INIT): Gettextizze.
31902 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31903 (GRUB_MOD_INIT): Gettextizze.
31904 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31905 (grub_linux_load64): Capitalise Linux.
31906 (GRUB_MOD_INIT): Gettextizze.
31907 * loader/xnu.c: Include `<grub/i18n.h>'.
31908 (GRUB_MOD_INIT): Gettextizze.
31909 * po/POTFILES: Add `loader/efi/appleloader.c',
31910 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31911 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31912 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31913 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31914 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31915 and `loader/xnu.c'.
31917 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31919 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31921 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31923 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31924 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
31925 * util/mkisofs/mkisofs.c (main): Readjust --version output.
31927 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31929 Reset Multiboot 2 support. New loader implements the draft in
31930 /branches/multiboot2 and shares as much code as possible with the
31931 production Multiboot 1 implementation.
31933 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
31934 * loader/multiboot2.c: Likewise.
31935 * loader/i386/multiboot_helper.S: Likewise.
31936 * include/multiboot2.h: Replace with latest version from the draft
31937 in /branches/multiboot2.
31939 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
31940 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
31941 and `loader/multiboot2.c'.
31942 (pkglib_MODULES): Add `multiboot2.mod'.
31943 (multiboot2_mod_SOURCES): New variable.
31944 (multiboot2_mod_LDFLAGS): Likewise.
31945 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
31947 * conf/i386-pc.rmk: Likewise.
31949 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31950 (multiboot_mod_SOURCES): Remove variable.
31951 (multiboot_mod_LDFLAGS): Likewise.
31952 (multiboot_mod_CFLAGS): Likewise.
31954 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
31955 `<multiboot2.h>' instead of `<multiboot.h>'.
31956 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
31957 (MULTIBOOT_HEADER_MAGIC): New macros.
31959 * loader/multiboot_loader.c (module_version_status): Remove variable.
31960 (find_multi_boot2_header): Remove function.
31961 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
31962 logic. Always check for the Multiboot version we're compiling for.
31963 (grub_cmd_module_loader): Likewise.
31964 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
31965 command instead of `multiboot'.
31967 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31969 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
31970 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
31973 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31974 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31976 Fix breakage introduced with previous commit.
31978 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
31980 * normal/handler.c (read_handler_list): Revert part of previous commit
31981 affecting this file.
31982 * normal/main.c (read_lists): Move read_handler_list() call back to ...
31983 (grub_normal_execute): ... here.
31985 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31987 Merge prefix-redefinition-fix branch.
31989 * normal/autofs.c (read_fs_list): Make function capable of being
31990 run multiple times, gracefuly replacing the previous data
31992 * normal/dyncmd.c (read_command_list): Likewise.
31993 * normal/handler.c (read_handler_list): Likewise.
31994 * normal/main.c (read_lists): New function. Calls all the
31995 list reading functions.
31996 (grub_normal_execute): Use read_lists() instead of calling all
31997 list reading functions explicitly. Register read_lists() as a
31998 variable hook attached to ${prefix}.
32000 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32002 Merge crypto branch.
32004 * Makefile.in (pkglib_DATA): Add crypto.lst.
32005 (crypto.lst): New target.
32006 * commands/hashsum.c: New file.
32007 * commands/password.c (check_password): Use grub_crypto_memcmp.
32008 * commands/password_pbkdf2.c: New file.
32009 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32010 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32011 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32012 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32013 -I$(srcdir)/lib/libgcrypt_wrap.
32014 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32015 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32016 password_pbkdf2.mod.
32017 (crypto_mod_SOURCES): New variable.
32018 (crypto_mod_CFLAGS): Likewise.
32019 (crypto_mod_LDFLAGS): Likewise.
32020 (hashsum_mod_SOURCES): New variable.
32021 (hashsum_mod_CFLAGS): Likewise.
32022 (hashsum_mod_LDFLAGS): Likewise.
32023 (pbkdf2_mod_SOURCES): New variable.
32024 (pbkdf2_mod_CFLAGS): Likewise.
32025 (pbkdf2_mod_LDFLAGS): Likewise.
32026 (password_pbkdf2_mod_SOURCES): New variable.
32027 (password_pbkdf2_mod_CFLAGS): Likewise.
32028 (password_pbkdf2_mod_LDFLAGS): Likewise.
32029 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32030 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32031 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32032 Include conf/gcry.rmk.
32033 * include/grub/auth.h: Rewritten.
32034 * include/grub/crypto.h: New file.
32035 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32036 * include/grub/normal.h (read_crypto_list): New prototype.
32037 * lib/crypto.c: New file.
32038 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32039 * lib/pbkdf2.c: Likewise.
32040 * normal/auth.c (grub_auth_strcmp): Removed.
32041 (grub_iswordseparator): Likewise.
32042 (grub_auth_strword): Likewise.
32043 (is_authenticated): Use grub_strword.
32044 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32045 and grub_strword. Pass entered password to authentication callback.
32046 * normal/crypto.c: New file.
32047 * normal/main.c: Call read_crypto_list.
32048 * util/grub-mkpasswd-pbkdf2.c: New file.
32049 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32051 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32053 Fix descent and ascent calculation.
32055 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32056 (options): New option "asce".
32058 (add_char): Ignore invalid glyphs for descent calculation.
32059 Calculate ascent from actual content.
32060 (print_glyphs): Use 'asce'.
32061 (write_font): Likewise. Allow ascent override.
32062 (main): Handle "asce" option.
32064 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32066 * kern/err.c: Include `<grub/i18n.h>'.
32067 (grub_print_error): Add full stop. Gettextizze.
32068 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32069 (grub_bsd_load_elf): Capitalise ELF.
32070 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32071 (grub_cmd_freebsd_module): Likewise.
32072 (grub_cmd_freebsd_module_elf): Likewise.
32073 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32075 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32077 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32078 * commands/search_file.c (HELP_MESSAGE): New macro.
32079 * commands/search_label.c (HELP_MESSAGE): Likewise.
32080 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32081 * po/POTFILES: Add `commands/search_file.c',
32082 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32083 `commands/search.c'.
32085 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32087 * config.rpath: Update from Gnulib.
32089 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32091 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32093 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32095 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32097 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32099 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32100 arguments to fread so that we get a return value in bytes, rather
32101 than something that will normally be rounded down to 0.
32102 Adjust error handling to avoid producing garbage when size_t is not
32103 the same size as long long.
32105 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32107 * util/mkisofs/write.c (padblock_write): Check return value of
32110 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32112 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32115 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32117 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32119 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32120 instead of manual alignment.
32121 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32122 verbose). Avoid attempts to read past end of the device
32123 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32124 but GRUB_DISK_CACHE_SIZE may exceed that).
32126 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32128 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32129 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32132 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32134 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32136 (grub_efi_piwg_device_path): New structure
32137 (grub_efi_piwg_device_path_t): New type.
32138 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32139 (devpath_1): Transform to a structure. All users updated.
32140 (devpath_2): Likewise.
32141 (devpath_3): Likewise.
32142 (devpath_4): Likewise.
32143 (devpath_5): Likewise.
32145 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32147 * loader/efi/appleloader.c: Restored. Update all users.
32149 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32151 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32153 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32154 (struct boot_blocklist): Move from here ...
32155 * include/grub/i386/pc/boot.h [ASM_FILE]
32156 (struct grub_boot_blocklist): ... to here. Update all users.
32157 (setup): Only initialize `start' member of `first_block'
32158 structure. Add assert() calls to verify the other members.
32160 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32161 (generate_image): Fix broken blocklist length initialization.
32162 Add assert() call to verify blocklist `segment' field.
32164 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32166 * loader/efi/appleloader.c: Remove. Update all users.
32168 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32170 * boot/i386/pc/boot.S: Update copyright year.
32171 * boot/i386/pc/cdboot.S: Likewise.
32172 * boot/i386/pc/diskboot.S: Likewise.
32173 * boot/i386/pc/lnxboot.S: Likewise.
32174 * boot/i386/pc/pxeboot.S: Likewise.
32175 * bus/pci.c: Likewise.
32176 * commands/cmp.c: Likewise.
32177 * commands/help.c: Likewise.
32178 * commands/hexdump.c: Likewise.
32179 * commands/i386/pc/halt.c: Likewise.
32180 * commands/i386/pc/play.c: Likewise.
32181 * commands/i386/pc/vbeinfo.c: Likewise.
32182 * commands/ls.c: Likewise.
32183 * commands/test.c: Likewise.
32184 * disk/dmraid_nvidia.c: Likewise.
32185 * disk/i386/pc/biosdisk.c: Likewise.
32186 * disk/ieee1275/nand.c: Likewise.
32187 * disk/ieee1275/ofdisk.c: Likewise.
32188 * disk/lvm.c: Likewise.
32189 * disk/raid.c: Likewise.
32190 * disk/raid6_recover.c: Likewise.
32191 * disk/scsi.c: Likewise.
32192 * fs/affs.c: Likewise.
32193 * fs/cpio.c: Likewise.
32194 * fs/ext2.c: Likewise.
32195 * fs/hfs.c: Likewise.
32196 * fs/iso9660.c: Likewise.
32197 * fs/ntfs.c: Likewise.
32198 * fs/sfs.c: Likewise.
32199 * fs/udf.c: Likewise.
32200 * fs/ufs.c: Likewise.
32201 * fs/xfs.c: Likewise.
32202 * gencmdlist.sh: Likewise.
32203 * genmk.rb: Likewise.
32204 * include/grub/disk.h: Likewise.
32205 * include/grub/efi/api.h: Likewise.
32206 * include/grub/efi/efi.h: Likewise.
32207 * include/grub/efi/pe32.h: Likewise.
32208 * include/grub/elf.h: Likewise.
32209 * include/grub/fs.h: Likewise.
32210 * include/grub/i386/at_keyboard.h: Likewise.
32211 * include/grub/i386/pc/memory.h: Likewise.
32212 * include/grub/i386/pc/vbe.h: Likewise.
32213 * include/grub/i386/pci.h: Likewise.
32214 * include/grub/i386/tsc.h: Likewise.
32215 * include/grub/ieee1275/ieee1275.h: Likewise.
32216 * include/grub/ntfs.h: Likewise.
32217 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32218 * include/grub/sparc64/libgcc.h: Likewise.
32219 * include/grub/symbol.h: Likewise.
32220 * include/grub/types.h: Likewise.
32221 * include/multiboot2.h: Likewise.
32222 * io/gzio.c: Likewise.
32223 * kern/device.c: Likewise.
32224 * kern/disk.c: Likewise.
32225 * kern/efi/efi.c: Likewise.
32226 * kern/efi/mm.c: Likewise.
32227 * kern/elf.c: Likewise.
32228 * kern/file.c: Likewise.
32229 * kern/i386/dl.c: Likewise.
32230 * kern/i386/pc/init.c: Likewise.
32231 * kern/i386/pc/startup.S: Likewise.
32232 * kern/ieee1275/ieee1275.c: Likewise.
32233 * kern/ieee1275/init.c: Likewise.
32234 * kern/main.c: Likewise.
32235 * kern/mm.c: Likewise.
32236 * kern/powerpc/dl.c: Likewise.
32237 * kern/sparc64/dl.c: Likewise.
32238 * kern/x86_64/dl.c: Likewise.
32239 * lib/hexdump.c: Likewise.
32240 * loader/efi/appleloader.c: Likewise.
32241 * loader/i386/ieee1275/linux.c: Likewise.
32242 * loader/i386/pc/chainloader.c: Likewise.
32243 * loader/i386/pc/linux.c: Likewise.
32244 * loader/i386/pc/multiboot2.c: Likewise.
32245 * loader/ieee1275/multiboot2.c: Likewise.
32246 * loader/multiboot2.c: Likewise.
32247 * loader/multiboot_loader.c: Likewise.
32248 * loader/powerpc/ieee1275/linux.c: Likewise.
32249 * normal/completion.c: Likewise.
32250 * normal/menu_entry.c: Likewise.
32251 * partmap/apple.c: Likewise.
32252 * util/grub.d/10_hurd.in: Likewise.
32253 * util/hostfs.c: Likewise.
32254 * video/readers/png.c: Likewise.
32256 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32258 * include/grub/misc.h (GNUC_PREREQ): New macro.
32259 (ATTRIBUTE_ERROR): New macro.
32260 * include/grub/list.h (grub_bad_type_cast_real): Use
32263 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32265 * normal/menu_text.c (print_message): Change messages.
32267 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32269 * normal/menu_entry.c (store_completion): Gettextizze.
32271 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32273 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32275 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32277 * po/POTFILES: Sort correctly.
32279 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32281 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32282 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32283 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32285 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32286 summary. Gettextizze the strings.
32287 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32288 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32289 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32291 (GRUB_MOD_INIT): Remove command name from summary.
32292 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32294 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32295 * term/i386/pc/serial.c (options): Add full stops.
32296 (GRUB_MOD_INIT): Remove command name from the summary.
32298 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32300 * commands/acpi.c: Gettextizze help strings and/or options. Include
32301 `grub/i18n.h' if needed.
32302 * commands/blocklist.c: Likewise.
32303 * commands/boot.c: Likewise.
32304 * commands/cat.c: Likewise.
32305 * commands/cmp.c: Likewise.
32306 * commands/configfile.c: Likewise.
32307 * commands/crc.c: Likewise.
32308 * commands/date.c: Likewise.
32309 * commands/echo.c: Likewise.
32310 * commands/efi/fixvideo.c: Likewise.
32311 * commands/efi/loadbios.c: Likewise.
32312 * commands/gptsync.c: Likewise.
32313 * commands/halt.c: Likewise.
32314 * commands/handler.c: Likewise.
32315 * commands/hdparm.c: Likewise.
32316 * commands/hexdump.c: Likewise.
32317 * commands/i386/cpuid.c: Likewise.
32318 * commands/i386/pc/drivemap.c: Likewise.
32319 * commands/i386/pc/halt.c: Likewise.
32320 * commands/i386/pc/pxecmd.c: Likewise.
32321 * commands/i386/pc/vbeinfo.c: Likewise.
32322 * commands/i386/pc/vbetest.c: Likewise.
32323 * commands/ieee1275/suspend.c: Likewise.
32324 * commands/keystatus.c: Likewise.
32325 * commands/loadenv.c: Likewise.
32326 * commands/ls.c: Likewise.
32327 * commands/lsmmap.c: Likewise.
32328 * commands/lspci.c: Likewise.
32329 * commands/memrw.c: Likewise.
32330 * commands/minicmd.c: Likewise.
32331 * commands/parttool.c: Likewise.
32332 * commands/password.c: Likewise.
32333 * commands/probe.c: Likewise.
32334 * commands/read.c: Likewise.
32335 * commands/reboot.c: Likewise.
32336 * commands/search.c: Likewise.
32337 * commands/sleep.c: Likewise.
32338 * commands/test.c: Likewise.
32339 * commands/true.c: Likewise.
32340 * commands/usbtest.c: Likewise.
32341 * commands/videotest.c: Likewise.
32342 * commands/xnu_uuid.c: Likewise.
32343 * disk/loopback.c: Likewise.
32344 * hello/hello.c: Likewise.
32345 * loader/i386/bsd.c: Likewise.
32346 * term/i386/pc/serial.c: Likewise.
32347 * po/POTFILES: Add new files.
32349 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32351 * term/i386/pc/at_keyboard.c
32352 (keyboard_controller_wait_untill_ready): Rename to ...
32353 (keyboard_controller_wait_until_ready): ... this. Update all users.
32355 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32357 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32358 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32359 string using string width.
32360 * normal/menu_text.c (grub_print_message_indented): Use
32361 grub_print_spaces and not print_spaces.
32362 (print_timeout): Likewise.
32363 (print_spaces): Move to...
32364 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32366 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32368 Import from Gnulib.
32370 * gnulib/getdelim.c: New file.
32371 * gnulib/getline.c: Likewise.
32373 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32375 * include/grub/list.h (grub_assert_fail): Removed.
32376 (grub_bad_type_cast_real): New function.
32377 (grub_bad_type_cast): New macro.
32378 (GRUB_AS_LIST): Use grub_bad_type_cast.
32379 (GRUB_AS_LIST_P): Likewise.
32380 (GRUB_AS_NAMED_LIST): Likewise.
32381 (GRUB_AS_NAMED_LIST_P): Likewise.
32382 (GRUB_AS_PRIO_LIST): Likewise.
32383 (GRUB_AS_PRIO_LIST_P): Likewise.
32384 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32386 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32388 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32391 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32393 * configure.ac: Check for TARGET_CFLAGS initialization before we
32394 initialize it ourselves (sigh).
32395 Move a few modifications to TARGET_CFLAGS to be unconditional
32396 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32399 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32400 * term/i386/pc/at_keyboard.c
32401 (keyboard_controller_wait_untill_ready): Likewise.
32402 (keyboard_controller_led): Rename `led_status' paramter to avoid
32405 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32407 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32410 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32412 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32414 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32416 * normal/menu_text.c (grub_print_message_indented): Prevent
32417 past-the-end-of-array dereference.
32419 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32421 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32422 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32424 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32426 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32427 * normal/main.c (grub_normal_read_line): Remove a space from the
32430 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32432 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32433 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32434 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32435 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32436 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32437 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32438 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32440 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32442 * video/readers/jpeg.c (cmd): Declare.
32443 (grub_cmd_jpegtest): Use `grub_command_t' type.
32444 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32446 (GRUB_MOD_FINI): Use `cmd' to unregister.
32447 * video/readers/png.c (cmd): Declare.
32448 (grub_cmd_pngtest): Use `grub_command_t' type.
32449 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32451 (GRUB_MOD_FINI): Use `cmd' to unregister.
32452 * video/readers/tga.c (cmd): Declare.
32453 (grub_cmd_tgatest): Use `grub_command_t' type.
32454 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32456 (GRUB_MOD_FINI): Use `cmd' to unregister.
32458 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32460 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32462 * kern/corecmd.c (grub_register_core_commands): Likewise.
32463 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32464 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32465 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32466 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32467 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32468 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32469 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32470 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32471 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32472 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32473 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32474 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32475 * normal/handler.c (insert_handler): Likewise.
32476 * normal/main.c (GRUB_MOD_INIT): Likewise.
32477 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32479 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32481 * commands/help.c (grub_cmd_help): Print the command name before the
32483 (GRUB_MOD_INIT): Remove command name from the summary.
32484 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32486 * lib/arg.c (find_long): Print the command name before the summary.
32487 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32489 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32490 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32491 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32492 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32493 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32494 * commands/date.c (GRUB_MOD_INIT): Likewise.
32495 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32496 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32497 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32498 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32499 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32500 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32501 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32502 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32503 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32504 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32505 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32506 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32507 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32508 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32509 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32510 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32511 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32512 * commands/password.c (GRUB_MOD_INIT): Likewise.
32513 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32514 * commands/read.c (GRUB_MOD_INIT): Likewise.
32515 * commands/search.c (GRUB_MOD_INIT): Likewise.
32516 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32517 * commands/test.c (GRUB_MOD_INIT): Likewise.
32518 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32519 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32520 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32521 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32522 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32523 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32524 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32525 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32526 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32527 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32528 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32529 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32530 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32531 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32533 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32535 Use search command for preliminar UUID search.
32537 * commands/search.c: Split into ...
32538 * commands/search_wrap.c: ...this
32539 * commands/search.c: ...and this.
32540 * commands/search_file.c: New file.
32541 * commands/search_label.c: New file.
32542 * commands/search_uuid.c: New file.
32543 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32544 Add commands/search_wrap.c, commands/search_file.c,
32545 commands/search_label.c and commands/search_uuid.c.
32546 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32547 (search_mod_SOURCES): Set to commands/search_wrap.c.
32548 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32550 (search_fs_file_mod_SOURCES): New variable.
32551 (search_fs_file_mod_CFLAGS): Likewise.
32552 (search_fs_file_mod_LDFLAGS): Likewise.
32553 (search_label_mod_SOURCES): Likewise.
32554 (search_label_mod_CFLAGS): Likewise.
32555 (search_label_mod_LDFLAGS): Likewise.
32556 (search_fs_uuid_mod_SOURCES): New variable.
32557 (search_fs_uuid_mod_CFLAGS): Likewise.
32558 (search_fs_uuid_mod_LDFLAGS): Likewise.
32559 (fs_file_mod_SOURCES): Removed.
32560 (fs_file_mod_CFLAGS): Likewise.
32561 (fs_file_mod_LDFLAGS): Likewise.
32562 (fs_uuid_mod_SOURCES): Removed.
32563 (fs_uuid_mod_CFLAGS): Likewise.
32564 (fs_uuid_mod_LDFLAGS): Likewise.
32565 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32566 Set to util/grub-install.in.
32567 * disk/fs_file.c: Removed.
32568 * disk/fs_uuid.c: Likewise.
32569 * include/grub/search.h: New file.
32570 * util/grub-install.in: Handle sparc64.
32571 Create and use load.cfg.
32572 * util/sparc64/ieee1275/grub-install.in: Removed.
32574 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32576 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32577 Ignore return status if CF is cleared.
32578 (grub_biosdisk_get_diskinfo_standard): Likewise.
32580 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32582 * term/i386/pc/at_keyboard.c
32583 (keyboard_controller_wait_untill_ready): New function.
32584 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32585 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32586 for keyboard polling, rather than duplicate the same loop. This
32587 saves a few bytes in code size.
32589 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32591 Support for (pxe[:server[:gateway]]) syntax and
32592 use environment variable for PXE.
32594 * commands/i386/pc/pxecmd.c (options): Removed.
32595 (print_ip): Removed.
32596 (grub_cmd_pxe): Removed
32597 (grub_cmd_pxe_unload): New function.
32598 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32599 (grub_pxe_your_ip): Made static.
32600 (grub_pxe_default_server_ip): Likewise.
32601 (grub_pxe_default_gateway_ip): Likewise.
32602 (grub_pxe_blksize): Likewise.
32603 (parse_ip): New function.
32604 (grub_pxe_open): Support server and gateway specification.
32605 (grub_pxe_close): Free disk->data.
32606 (grub_pxefs_open): Use disk->data.
32607 (grub_pxefs_read): Likewise.
32608 (grub_env_write_readonly): New function.
32609 (set_mac_env): Likewise.
32610 (set_env_limn_ro): Likewise.
32611 (parse_dhcp_vendor): Likewise.
32612 (grub_pxe_detect): Set the environment variables.
32613 (set_ip_env): New function.
32614 (write_ip_env): Likewise.
32615 (grub_env_write_pxe_default_server): Likewise.
32616 (grub_env_write_pxe_default_gateway): Likewise.
32617 (grub_env_write_pxe_blocksize): Likewise.
32618 (GRUB_MOD_INIT(pxe)): Set environment variables.
32619 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32620 (grub_pxe_mac_addr_t): ... this. All users updated.
32621 (grub_pxe_your_ip): Removed.
32622 (grub_pxe_server_ip): Likewise.
32623 (grub_pxe_gateway_ip): Likewise.
32624 (grub_pxe_blksize): Likewise.
32626 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32628 * commands/help.c: Include `<grub/i18n.h>'.
32629 (grub_cmd_help): Gettextizze.
32630 (GRUB_MOD_INIT): Likewise.
32631 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32632 (GRUB_MOD_INIT): Gettextizze.
32633 * commands/search.c: Include `<grub/i18n.h>'.
32634 (options): Gettextizze.
32635 (GRUB_MOD_INIT): Gettextizze.
32636 * lib/arg.c: Include `<grub/i18n.h>'.
32637 (help_options): Gettextizze.
32638 (find_long): Likewise.
32639 (grub_arg_show_help): Likewise.
32640 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32641 (read_command_list): Gettextizze.
32642 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32643 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32645 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32647 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32648 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32649 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32650 (led_status): New variable.
32651 (keyboard_controller_led): New function.
32652 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32653 update led status for caps lock, num lock and scroll lock.
32655 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32657 * util/hostdisk.c (open_device): Fix a comment.
32659 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32661 * util/grub-install.in (host_os): New variable.
32662 * util/i386/efi/grub-install.in (host_os): Likewise.
32664 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32666 * util/mkisofs/write.c (padblock_write): Abort when given an
32667 excedingly large embed image, instead of silently truncating it.
32669 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32671 * include/multiboot.h: Indentation fixes.
32673 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32675 * include/multiboot.h (struct multiboot_aout_symbol_table)
32676 (struct multiboot_elf_section_header_table): New structure
32677 declarations (stolen from GRUB Legacy).
32678 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32681 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32682 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32685 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32687 * include/multiboot.h: Make comments src2texi-friendly.
32689 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32691 For consistency with [multiboot]/docs/boot.S.
32693 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32694 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32695 (MULTIBOOT_MAGIC2): Rename from this ...
32696 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32698 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32700 * include/multiboot.h: Remove `<grub/types.h>'.
32701 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32702 types. Update all users.
32704 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32706 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32707 `couldn't' and `can not' by `cannot'.
32708 * commands/i386/pc/drivemap.c: Likewise.
32709 * disk/ata.c: Likewise.
32710 * disk/ieee1275/nand.c: Likewise.
32711 * fs/affs.c: Likewise.
32712 * fs/fat.c: Likewise.
32713 * fs/hfs.c: Likewise.
32714 * fs/hfsplus.c: Likewise.
32715 * fs/iso9660.c: Likewise.
32716 * fs/jfs.c: Likewise.
32717 * fs/minix.c: Likewise.
32718 * fs/reiserfs.c: Likewise.
32719 * fs/sfs.c: Likewise.
32720 * fs/udf.c: Likewise.
32721 * fs/ufs.c: Likewise.
32722 * fs/xfs.c: Likewise.
32723 * loader/powerpc/ieee1275/linux.c: Likewise.
32724 * loader/sparc64/ieee1275/linux.c: Likewise.
32725 * util/grub-probe.c: Likewise.
32726 * util/misc.c: Likewise.
32728 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32730 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32732 * commands/acpi.c: Likewise.
32733 * commands/blocklist.c: Likewise.
32734 * commands/efi/loadbios.c: Likewise.
32735 * commands/i386/pc/drivemap.c: Likewise.
32736 * commands/loadenv.c: Likewise.
32737 * commands/memrw.c: Likewise.
32738 * commands/password.c: Likewise.
32739 * commands/videotest.c: Likewise.
32740 * disk/ata.c: Likewise.
32741 * disk/ata_pthru.c: Likewise.
32742 * disk/dmraid_nvidia.c: Likewise.
32743 * disk/ieee1275/nand.c: Likewise.
32744 * disk/ieee1275/ofdisk.c: Likewise.
32745 * disk/loopback.c: Likewise.
32746 * disk/lvm.c: Likewise.
32747 * disk/mdraid_linux.c: Likewise.
32748 * disk/raid.c: Likewise.
32749 * disk/raid6_recover.c: Likewise.
32750 * disk/scsi.c: Likewise.
32751 * efiemu/main.c: Likewise.
32752 * efiemu/mm.c: Likewise.
32753 * efiemu/pnvram.c: Likewise.
32754 * efiemu/symbols.c: Likewise.
32755 * font/font.c: Likewise.
32756 * fs/cpio.c: Likewise.
32757 * fs/hfsplus.c: Likewise.
32758 * fs/iso9660.c: Likewise.
32759 * fs/jfs.c: Likewise.
32760 * fs/minix.c: Likewise.
32761 * fs/ntfs.c: Likewise.
32762 * fs/ntfscomp.c: Likewise.
32763 * fs/reiserfs.c: Likewise.
32764 * fs/ufs.c: Likewise.
32765 * fs/xfs.c: Likewise.
32766 * gettext/gettext.c: Likewise.
32767 * include/grub/auth.h: Likewise.
32768 * kern/elf.c: Likewise.
32769 * kern/file.c: Likewise.
32770 * kern/ieee1275/init.c: Likewise.
32771 * kern/ieee1275/mmap.c: Likewise.
32772 * kern/ieee1275/openfw.c: Likewise.
32773 * kern/powerpc/dl.c: Likewise.
32774 * kern/sparc64/dl.c: Likewise.
32775 * lib/arg.c: Likewise.
32776 * loader/i386/bsd.c: Likewise.
32777 * loader/i386/bsdXX.c: Likewise.
32778 * loader/i386/efi/linux.c: Likewise.
32779 * loader/i386/efi/xnu.c: Likewise.
32780 * loader/i386/ieee1275/linux.c: Likewise.
32781 * loader/i386/linux.c: Likewise.
32782 * loader/i386/multiboot.c: Likewise.
32783 * loader/i386/pc/linux.c: Likewise.
32784 * loader/i386/pc/multiboot2.c: Likewise.
32785 * loader/i386/xnu.c: Likewise.
32786 * loader/ieee1275/multiboot2.c: Likewise.
32787 * loader/macho.c: Likewise.
32788 * loader/machoXX.c: Likewise.
32789 * loader/multiboot2.c: Likewise.
32790 * loader/multiboot_loader.c: Likewise.
32791 * loader/powerpc/ieee1275/linux.c: Likewise.
32792 * loader/sparc64/ieee1275/linux.c: Likewise.
32793 * loader/xnu.c: Likewise.
32794 * loader/xnu_resume.c: Likewise.
32795 * mmap/i386/pc/mmap.c: Likewise.
32796 * normal/menu_viewer.c: Likewise.
32797 * partmap/acorn.c: Likewise.
32798 * partmap/amiga.c: Likewise.
32799 * partmap/apple.c: Likewise.
32800 * script/lexer.c: Likewise.
32801 * term/gfxterm.c: Likewise.
32802 * term/i386/pc/serial.c: Likewise.
32803 * term/i386/pc/vga.c: Likewise.
32804 * term/ieee1275/ofconsole.c: Likewise.
32805 * term/terminfo.c: Likewise.
32806 * video/bitmap.c: Likewise.
32807 * video/efi_gop.c: Likewise.
32808 * video/efi_uga.c: Likewise.
32809 * video/fb/video_fb.c: Likewise.
32810 * video/i386/pc/vbe.c: Likewise.
32811 * video/readers/tga.c: Likewise.
32812 * video/video.c: Likewise.
32814 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32816 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32817 * commands/lspci.c: Likewise.
32818 * commands/probe.c: Likewise.
32819 * commands/xnu_uuid.c: Likewise.
32820 * conf/i386-coreboot.rmk: Likewise.
32821 * conf/i386-efi.rmk: Likewise.
32822 * conf/i386-ieee1275.rmk: Likewise.
32823 * conf/i386-pc.rmk: Likewise.
32824 * conf/powerpc-ieee1275.rmk: Likewise.
32825 * conf/sparc64-ieee1275.rmk: Likewise.
32826 * conf/x86_64-efi.rmk: Likewise.
32827 * fs/i386/pc/pxe.c: Likewise.
32828 * gettext/gettext.c: Likewise.
32829 * include/grub/efi/graphics_output.h: Likewise.
32830 * include/grub/i386/pc/memory.h: Likewise.
32831 * kern/env.c: Likewise.
32832 * kern/i386/qemu/startup.S: Likewise.
32833 * lib/i386/pc/biosnum.c: Likewise.
32834 * lib/i386/relocator.c: Likewise.
32835 * lib/i386/relocator_asm.S: Likewise.
32836 * lib/relocator.c: Likewise.
32837 * loader/i386/bsd.c: Likewise.
32838 * loader/i386/multiboot.c: Likewise.
32839 * loader/i386/pc/chainloader.c: Likewise.
32840 * loader/i386/xnu.c: Likewise.
32841 * loader/xnu.c: Likewise.
32842 * normal/main.c: Likewise.
32843 * normal/menu_text.c: Likewise.
32844 * util/getroot.c: Likewise.
32845 * util/grub-mkconfig_lib.in: Likewise.
32846 * util/grub.d/00_header.in: Likewise.
32847 * util/i386/pc/grub-mkimage.c: Likewise.
32848 * util/mkisofs/eltorito.c: Likewise.
32849 * util/mkisofs/exclude.h: Likewise.
32850 * util/mkisofs/hash.c: Likewise.
32851 * util/mkisofs/iso9660.h: Likewise.
32852 * util/mkisofs/joliet.c: Likewise.
32853 * util/mkisofs/mkisofs.c: Likewise.
32854 * util/mkisofs/mkisofs.h: Likewise.
32855 * util/mkisofs/multi.c: Likewise.
32856 * util/mkisofs/name.c: Likewise.
32857 * util/mkisofs/rock.c: Likewise.
32858 * util/mkisofs/tree.c: Likewise.
32859 * util/mkisofs/write.c: Likewise.
32860 * video/efi_gop.c: Likewise.
32862 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32864 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32867 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32869 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32870 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32872 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32874 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32875 (GRUB_MOD_INIT(memrw)): Update help line.
32877 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32879 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32880 Use grub_extcmd_t. All users updated.
32881 (options): New variable.
32882 (grub_cmd_read): Restructure for readability. Support "-v" option.
32883 (grub_cmd_write): Restructure for readability.
32885 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32887 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32889 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32891 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32892 with the actual contents of the correspondending make variable.
32893 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32894 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32895 specifying `*.lst' and `efiemu??.o'
32897 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32899 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32900 after function name.
32901 Noticed by Rene Engelhard <rene@debian.org>.
32903 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32905 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32906 (options): New variable.
32907 (iospace): Likewise.
32908 (grub_lspci_iter): List IO spaces if "-i" was given.
32909 (grub_cmd_lspci): Parse options.
32910 (GRUB_MOD_INIT(lspci)): Use extcmd.
32911 (GRUB_MOD_FINI(lspci)): Likewise.
32913 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32915 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32916 `function' keyword.
32917 Patch by Tony Mancill <tmancill@debian.org>.
32919 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32921 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32922 (grub_uhci_portstatus): Likewise.
32923 (grub_uhci_portstatus): Add necessary delay.
32924 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
32926 2009-12-21 Carles Pina i Estany <carles@pina.cat>
32928 * commands/acpi.c (options): Fix capitalizations and/or full stops.
32929 (GRUB_MOD_INIT): Likewise.
32930 * commands/boot.c (GRUB_MOD_INIT): Likewise.
32931 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
32932 * commands/echo.c (options): Fix capitalizations and/or full stops.
32933 * commands/efi/loadbios.c (enable_rom_area): Likewise.
32934 (enable_rom_area): Likewise.
32935 (GRUB_MOD_INIT): Likewise.
32936 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32937 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
32938 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32939 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
32940 * commands/hexdump.c (options): Likewise.
32941 * commands/i386/cpuid.c (options): Likewise.
32942 (GRUB_MOD_INIT): Likewise.
32943 * commands/i386/pc/drivemap.c (options): Likewise.
32944 (GRUB_MOD_INIT): Likewise.
32945 * commands/i386/pc/halt (options): Likewise.
32946 (GRUB_MOD_INIT): Likewise.
32947 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32948 * commands/i386/pc/pxecmd.c (options): Likewise.
32949 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
32950 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
32951 * commands/keystatus.c (options): Likewise.
32952 (GRUB_MOD_INIT): Likewise.
32953 * commands/loadenv.c (options): Likewise.
32954 * commands/ls.c (options): Likewise.
32955 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32956 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32957 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32958 * commands/parttool.c (helpmsg): Likewise.
32959 * commands/probe.c (options): Likewise.
32960 * commands/read.c (GRUB_MOD_INIT): Likewise.
32961 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
32962 * commands/search.c (options): Likewise.
32963 * commands/sleep.c (options): Likewise.
32964 * commands/test.c (GRUB_MOD_INIT): Likewise.
32965 * commands/true.c (GRUB_MOD_INIT): Likewise.
32966 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
32967 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
32968 * lib/arg.c (help_options): Likewise.
32969 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
32971 * po/POTFILES: Add `commands/loadenv.c'.
32973 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
32975 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
32976 instead of specifying them explicit.
32978 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32980 * NEWS: Add grub-probe support for GNU/Hurd.
32982 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32984 * NEWS: gettext was added after 1.97.
32986 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32988 * util/mkisofs/msdos_partition.h: New file (based on
32989 include/grub/msdos_partition.h).
32990 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
32991 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
32992 (ld_options, main): Recognize --protective-msdos-label.
32993 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
32994 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
32995 (padblock_write): If `use_protective_msdos_label' is set, patch a
32996 protective DOS-style label in the output image.
32998 * util/grub-mkrescue.in: Use --protective-msdos-label.
33000 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33002 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33005 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33007 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33009 (ld_options, main): Recognize `--embedded-boot'.
33010 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33012 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33013 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33014 (padblock_write): Likewise. Rewrite to support embedded boot image.
33016 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33017 for BIOS-based disk boot instead of only ElTorito.
33019 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33021 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33022 build (not needed for bootstrap).
33024 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33026 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33027 from i386-pc build (not needed for bootstrap).
33028 Rewrite a pair of strings.
33030 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33032 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33034 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33036 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33038 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33040 * kern/env.c (grub_env_context_open): Mark exported variable for
33043 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33045 * kern/env.c (grub_env_export): Create nonexistent variables before
33048 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33050 * include/grub/auth.h: Include `<grub/i18n.h>'.
33051 (GRUB_GET_PASSWORD): Gettextizze string.
33052 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33054 (grub_utf8_to_ucs4_alloc): Fix indentation.
33055 (grub_print_ucs4): Likewise.
33056 (grub_getstringwidth): Likewise.
33057 (print_message_indented): New declaration.
33058 * normal/auth.c: Include `<grub/i18n.h>'.
33059 (grub_auth_check_authentication): Gettexttize string.
33060 * normal/cmdline.c: Include `<grub/i18n.h>'.
33061 (grub_cmdline_get): Gettextizze.
33062 * normal/color.c: Include `<grub/i18n.h>'.
33063 (grub_parse_color_name_pair): Gettexttize strings.
33064 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33065 string (use `print_message_indented').
33066 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33067 `include/grub/normal.h'.
33068 (print_message_indented): Renamed to ...
33069 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33070 used in normal/main.c).
33071 (print_message): Use `grub_print_message_indented' instead of
33072 `print_message_indented'.
33073 (print_timeout): Likewise.
33074 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33075 (grub_normal_print_device_info): Gettexttize strings.
33076 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33078 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33080 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33081 of arguments. Return number of tokens and not arguments. All users
33084 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33086 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33087 non-MSDOS paritions.
33089 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33091 * include/grub/types.h (UNUSED): Removed since it conflicts with
33092 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33093 Reported by Grégoire Sutre.
33095 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33097 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33098 (grub_print_ucs4_alloc): Likewise.
33099 (grub_getstringwidth): Likewise.
33100 * normal/main.c (grub_normal_init_page): Gettextize version string.
33101 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33102 (getstringwidth): Renamed to ...
33103 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33104 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33105 (grub_print_ucs4): Remove `static' qualifer (now used in
33107 * po/POTFILES: Add normal/main.c.
33109 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33111 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33112 (print_message_indented): Add `margin_left' and `margin_right'
33114 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33116 (print_timeout): Use `print_message_indented' to print the message.
33117 Deletes `second_stage' parameter.
33118 (run_menu): Update `print_timeout' calls.
33120 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33122 Fix console palette on OpenFirmware.
33124 * term/ieee1275/ofconsole.c (MAX): Removed.
33125 (colors): Redone based on VGA palette.
33126 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33127 colors are supported.
33128 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33130 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33132 Fix potential EfiEmu double prepare.
33134 * efiemu/main.c (prepared): New variable
33135 (grub_efiemu_unload): Set prepare to '0'.
33136 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33138 set_virtual_address_map support.
33140 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33142 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33144 (grub_efiemu_crc32): Likewise.
33145 (grub_efiemu_crc64): Likewise.
33146 (grub_efiemu_set_virtual_address_map): Likewise.
33147 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33149 (grub_autoefi_set_virtual_address_map): Likewise.
33150 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33151 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33152 Restructure flow to accomodate it.
33153 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33154 (grub_efiemu_crc): Recompute CRC32.
33155 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33156 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33157 * efiemu/symbols.c (relocated_handle): New variable.
33158 (grub_efiemu_free_syms): Free relocated_handle.
33159 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33160 (grub_efiemu_write_sym_markers): New function.
33161 (grub_efiemu_set_virtual_address_map): Likewise.
33163 Newer XNU parameters.
33165 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33166 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33167 (grub_xnu_fill_devicetree): New prototype.
33168 (grub_xnu_heap_real_start): New variable.
33169 * loader/xnu.c (get_name_ptr): New function.
33170 (grub_xnu_load_driver): Fill namelen and name.
33172 64-bit xnu support.
33174 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33175 and 'loader/macho64.c'.
33176 * conf/i386-pc.rmk: Likewise.
33177 * conf/x86_64-efi.rmk: Likewise.
33178 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33179 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33180 * include/grub/macho.h (grub_macho_segment64): New structure.
33181 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33182 (grub_macho_size32): ... to this.
33183 (grub_macho32_get_entry_point): Renamed from ...
33184 (grub_macho_get_entry_point32): ... to this.
33185 (grub_macho_contains_macho64): New prototype.
33186 (grub_macho_size64): Likewise.
33187 (grub_macho_get_entry_point64): Likewise.
33188 (grub_macho32_load): Renamed from ...
33189 (grub_macho_load32): ... to this.
33190 (grub_macho32_filesize): Renamed from ...
33191 (grub_macho_filesize32): ... to this.
33192 (grub_macho32_readfile): Renamed from ...
33193 (grub_macho_readfile32): ... to this.
33194 (grub_macho_filesize64): New prototype.
33195 (grub_macho_readfile64): Likewise.
33196 (grub_macho_parse32): Likewise.
33197 (grub_macho_parse64): Likewise.
33198 * loader/macho.c: Split into ...
33199 * loader/machoXX.c: ... and this. Replace 32 with XX.
33200 * loader/macho32.c: New file.
33201 * loader/macho64.c: Likewise.
33202 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33203 (grub_cmd_xnu_kernel): Make 32-bit only.
33204 (grub_cmd_xnu_kernel64): New function.
33205 (grub_xnu_load_driver): Support Mach-O 64.
33206 (grub_cmd_xnu_mkext): Likewise.
33207 * util/grub.d/30_os-prober.in (osx_entry): New function.
33208 Generate entries for 64-bit boot too.
33210 Eliminate ad-hoc tree format in XNU and EfiEmu.
33212 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33213 * efiemu/pnvram.c: Rewritten to use environment variables.
33216 Inline utf16_to_utf8.
33218 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33219 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33221 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33223 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33224 * commands/usbtest.c (grub_usb_get_string): ... move here.
33225 (usb_print_str): Fix error handling.
33226 * include/grub/usb.h (grub_usb_get_string): Remove.
33228 UTF-8 to UTF-16 transformation.
33230 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33231 (charset_mod_SOURCES): New variable.
33232 (charset_mod_CFLAGS): Likewise.
33233 (charset_mod_LDFLAGS): Likewise.
33234 * include/grub/utf.h: New file.
33235 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33237 Support for device properties.
33239 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33240 (grub_xnu_devprop_device_header): Likewise.
33241 (grub_xnu_devprop_device_descriptor): Likewise.
33242 (grub_xnu_devprop_add_device): New prototype.
33243 (grub_xnu_devprop_remove_device): Likewise.
33244 (grub_xnu_devprop_remove_property): Likewise.
33245 (grub_xnu_devprop_add_property_utf8): Likewise.
33246 (grub_xnu_devprop_add_property_utf16): Likewise.
33247 (grub_cpu_xnu_init): Likewise.
33248 (grub_cpu_xnu_fini): Likewise.
33249 (grub_cpu_xnu_unload): Likewise.
33250 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33251 (property_descriptor): Likewise.
33252 (devices): New variable.
33253 (grub_xnu_devprop_remove_property): New function.
33254 (grub_xnu_devprop_add_device): Likewise.
33255 (grub_xnu_devprop_remove_device): Likewise.
33256 (grub_xnu_devprop_add_property): Likewise.
33257 (grub_xnu_devprop_add_property_utf8): Likewise.
33258 (grub_xnu_devprop_add_property_utf16): Likewise.
33259 (hextoval): Likewise.
33260 (grub_cpu_xnu_fill_devprop): Likewise.
33261 (grub_cmd_devprop_load): Likewise.
33262 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33263 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33264 (cmd_devprop_load): New variable.
33265 (grub_cpu_xnu_init): New function.
33266 (grub_cpu_xnu_fini): Likewise.
33267 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33268 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33269 (grub_cmd_xnu_devtree): Likewise.
33270 (hextoval): New function.
33271 (unescape): Likewise.
33272 (grub_xnu_fill_devicetree): Likewise.
33274 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33275 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33277 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33279 Workaround for broken ATI VBE.
33281 * video/i386/pc/vbe.c (last_set_mode): New variable.
33282 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33283 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33284 (grub_video_vbe_setup): Don't check for reserved flag.
33286 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33288 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33289 the `find' command.
33291 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33293 UUID support for HFS.
33295 * fs/hfs.c (grub_hfs_uuid): New function.
33296 (grub_hfs_fs): New value .uuid.
33297 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33299 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33301 Fix a segfault with parsing unknown long options.
33303 * util/grub-mkrelpath.c (options): Zero terminate it.
33305 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33307 * include/grub/misc.h (grub_puts): New declaration.
33308 (grub_puts_): Likewise.
33309 * kern/misc.c (grub_puts): New definition.
33310 (grub_puts_): Likewise.
33312 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33314 * util/grub-probe.c (probe): Improve error message.
33316 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33318 * loader/i386/multiboot_elfxx.c
33319 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33322 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33324 Relocator framework
33326 * loader/i386/xnu_helper.S: Removed. All users updated.
33327 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33328 (relocator_mod_SOURCES): New variable.
33329 (relocator_mod_CFLAGS): Likewise.
33330 (relocator_mod_LDFLAGS): Likewise.
33331 (relocator_mod_ASFLAGS): Likewise.
33332 * conf/x86_64.rmk: Likewise.
33333 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33334 (grub_multiboot_payload_entry_offset): Likewise.
33335 (grub_multiboot_forward_relocator): Likewise.
33336 (grub_multiboot_forward_relocator_end): Likewise.
33337 (grub_multiboot_backward_relocator): Likewise.
33338 (grub_multiboot_backward_relocator_end): Likewise.
33339 (grub_multiboot_payload_eip): New variable.
33340 (grub_multiboot_payload_orig): Likewise.
33341 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33342 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33343 * include/grub/i386/memory.h
33344 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33345 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33346 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33347 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33348 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33349 * include/grub/i386/relocator.h: New file.
33350 * include/grub/x86_64/relocator.h: Likewise.
33351 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33352 (XNU_RELOCATOR): New macro.
33353 (grub_xnu_launcher_start): Remove.
33354 (grub_xnu_launcher_end): Likewise.
33355 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33356 (grub_xnu_heap_real_start): Remove.
33357 (grub_xnu_heap_start): Change to void *. All users updated.
33358 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33359 * lib/i386/relocator.c: New file.
33360 * lib/i386/relocator_asm.S: Likewise.
33361 * lib/i386/relocator_backward.S: Likewise.
33362 * lib/mips/relocator.c: Likewise.
33363 * lib/mips/relocator_asm.S: Likewise.
33364 * lib/relocator.c: Likewise.
33365 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33367 (playground): Likewise.
33368 (grub_multiboot_payload_orig): New variable.
33369 (grub_multiboot_payload_dest): Likewise.
33370 (grub_multiboot_payload_size): Likewise.
33371 (grub_multiboot_payload_eip): Likewise.
33372 (grub_multiboot_payload_esp): Likewise.
33373 (grub_multiboot_boot): Use grub_relocator32_boot.
33374 (grub_multiboot_unload): Free relocators.
33375 (grub_multiboot): Setup stack. Use relocators.
33376 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33377 (grub_multiboot_load_elfXX): Use relocators.
33378 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33379 (grub_multiboot_payload_size): Likewise.
33380 (grub_multiboot_payload_dest): Likewise.
33381 (grub_multiboot_payload_entry_offset): Likewise.
33382 (grub_multiboot_forward_relocator): Likewise.
33383 (grub_multiboot_backward_relocator): Likewise.
33384 (grub_multiboot_real_boot): Likewise.
33385 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33386 (grub_xnu_entry_point): Likewise.
33387 (grub_xnu_arg1): Likewise.
33388 (grub_xnu_stack): Likewise.
33389 (grub_xnu_launch): Removed.
33390 (grub_xnu_boot_resume): New function.
33391 (grub_xnu_boot): Use relocators.
33392 * loader/i386/xnu_helper.S: Removed.
33393 * loader/xnu.c (grub_xnu_heap_start): New variable.
33394 (grub_xnu_heap_size): Likewise.
33395 (grub_xnu_heap_malloc): Use relocators.
33396 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33398 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33400 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33403 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33405 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33406 GRUB_ERR_NONE before calling grub_env_set.
33408 2009-12-12 Robert Millan <rmh@aybabtu.com>
33410 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33411 * genmk.rb (video): New variable.
33412 (CLEANFILES, VIDEOFILES): Add #{video}.
33413 (#{video}): New target rule.
33414 * genvideolist.sh: New file.
33415 * Makefile.in (pkglib_DATA): Add video.lst.
33416 (video.lst): New target rule.
33417 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33419 * util/grub.d/30_os-prober.in: Replace `vbe' with
33420 ${GRUB_VIDEO_BACKEND}.
33422 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33424 * THANKS: Add David Miller.
33426 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33428 libpciaccess support.
33430 * Makefile.in (LIBPCIACCESS): New variable.
33431 (enable_grub_emu_pci): Likewise.
33432 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33433 util/pci.c and commands/lspci.c.
33434 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33435 * configure.ac (grub-emu-pci): New option.
33436 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33437 (grub_pci_device_unmap_range): Likewise.
33438 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33439 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33440 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33441 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33442 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33443 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33444 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33445 * include/grub/pciutils.h: New file.
33446 * util/pci.c: Likewise.
33448 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33450 * util/misc.c: Don't include <errno.h> twice.
33452 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33454 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33455 name in an error message.
33456 (grub_biosdisk_rw): Likewise.
33458 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33460 Eliminate NTFS 4Gib barrier.
33462 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33463 (read_run_data): Likewise.
33464 (grub_ntfs_read_run_list): Likewise.
33465 (grub_ntfs_read_block): Likewise.
33466 (grub_ntfs_iterate_dir): Likewise.
33467 (read_mft): Likewise.
33468 (read_data): Likewise.
33470 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33471 to avoid 64-bit division
33472 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33473 (grub_ntfs_rlst): Use grub_disk_addr_t.
33475 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33477 Eliminate grub-fstest 4Gib barrier.
33479 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33480 (read_file): Fix error reporting.
33482 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33484 Eliminate hexdump 4Gib barrier.
33486 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33487 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33489 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33491 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33494 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33496 Remove miscellaneous files in distclean target.
33498 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33500 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33502 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33503 if they're already set. This resolves the conflict between my
33504 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33505 fixing the --grub-probe option again.
33506 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33507 change on 2009-10-06, so that we now once again source
33508 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33510 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33512 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33513 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33514 `util/devicemap.c'.
33516 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33518 * include/grub/misc.h (grub_printf_): New declaration.
33519 * kern/misc.c (grub_printf_): New definition.
33520 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33521 instead of `grub_printf' and `_'.
33522 * normal/menu_entry.c (store_completion): Likewise.
33524 (grub_menu_entry_run): Likewise.
33525 * normal/menu_text.c (grub_wait_after_message): Likewise.
33526 (notify_booting): Likewise.
33527 (notify_fallback): Likewise.
33528 (notify_execution_failure): Likewise.
33530 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33532 * configure.ac: Check for vasprintf.
33533 * util/misc.c (asprintf): Move allocation from here ...
33534 (vasprintf): ... to here. New function.
33535 (xasprintf): New function.
33536 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33538 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33539 * util/grub-mkfont.c (write_font): Likewise.
33540 * util/grub-probe.c (probe): Likewise.
33541 * util/hostdisk.c (make_device_name): Likewise.
33543 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33545 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33546 anything even prefixed with 'cdrom' as a cdrom.
33548 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33550 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33553 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33555 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33556 grub_gettext_msg_list.
33557 (grub_gettext_gettranslation_from_position): Return const char *
33559 (grub_gettext_translate): Add the translated strings into a list,
33560 returns from the list if existing there.
33561 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33562 (grub_gettext_delete_list): Delete the list.
33563 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33564 lang environment variable is changed.
33565 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33567 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33569 Rename kernel.mod to kernel.img.
33571 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33572 (kernel_mod_EXPORTS): Rename to ...
33573 (kernel_img_EXPORTS): ... this.
33574 (kernel_mod_SOURCES): Rename to ...
33575 (kernel_img_SOURCES): ... this.
33576 (kernel_mod_HEADERS): Rename to ...
33577 (kernel_img_HEADERS): ... this. All users updated.
33578 (kernel_mod_CFLAGS): Rename to ...
33579 (kernel_img_CFLAGS): ... this.
33580 (kernel_mod_ASFLAGS): Rename to ...
33581 (kernel_img_ASFLAGS): ... this.
33582 (kernel_mod_LDFLAGS): Rename to ...
33583 (kernel_img_LDFLAGS): ... this.
33584 * conf/x86_64-efi.rmk: Likewise.
33585 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33586 (read_kernel_image): ... this. All users updated.
33587 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33589 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33591 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33592 (print_spaces): New function.
33593 (grub_print_ucs4): New function.
33594 (getstringwidth): New function.
33595 (print_message_indented): New function.
33596 (print_message): Gettexttize strings using print_message_indented.
33597 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33599 (get_entry_number): Gettextize and uses dynamic terminal width.
33600 (notify_booting, notify_fallback, notify_execution_failure):
33602 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33605 (grub_menu_entry_run): Likewise.
33606 * PO/POTFILES: Add normal/menu_entry.c.
33608 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33610 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33612 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33614 * util/grub-install.in: Install gettext .mo files.
33615 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33617 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33619 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33622 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33624 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33625 non-firmware-dependant one in realmode.S takes precedence.
33627 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33629 * commands/halt.c: Replace misc arch-specific headers with
33631 * commands/reboot.c: Likewise.
33632 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33634 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33635 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33636 (kernel_img_SOURCES): ... to here.
33638 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33639 * include/grub/i386/pc/init.h: Likewise.
33640 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33641 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33643 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33645 * include/grub/i386/halt.h: Remove.
33646 * include/grub/i386/reboot.h: Likewise.
33648 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33650 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33652 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33653 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33654 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33656 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33657 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33658 (usage): Add missing comma in printf.
33660 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33662 Use the same reboot approach on i386 coreboot and qemu as we do on
33665 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33666 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33667 * kern/i386/reboot.c: Remove.
33668 * include/grub/i386/reboot.h (grub_reboot): Export function.
33669 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33670 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33671 0xf000:0xfff0 instead of 0xffff:0x0000.
33672 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33673 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33675 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33677 Fix $srcdir != $objdir build.
33679 * Makefile.in (po/%.po): Rewrite as ...
33680 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33682 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33684 Fix GNU/Hurd grub-install crash.
33685 * util/grub-probe.c (probe): Try to access `path' only when it is not
33688 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33690 Correct module naming.
33692 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33693 (GRUB_MOD_INIT(efi_uga)): ... to this
33694 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33695 (GRUB_MOD_FINI(efi_uga)): ... to this
33696 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33697 (GRUB_MOD_INIT(efi_gop)): ... to this
33698 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33699 (GRUB_MOD_FINI(efi_gop)): ... to this
33701 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33703 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33705 (usage): Translate `arg' strings using gettext().
33706 Thanks to Jordi Mallach for the suggestion.
33708 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33710 GOP support. Based on patch from Bean
33711 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33713 * video/efi_gop.c: New file.
33714 * include/grub/efi/graphics_output.h: Likewise.
33715 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33716 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33718 * conf/x86_64-efi.rmk: Likewise.
33720 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33722 Rename efi_fb to efi_uga.
33724 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33726 (efi_fb_mod_SOURCES): Rename this ...
33727 (efi_uga_mod_SOURCES): ... to this.
33728 (efi_fb_mod_CFLAGS): Rename this ...
33729 (efi_uga_mod_CFLAGS): ... to this.
33730 (efi_fb_mod_LDFLAGS): Rename this ...
33731 (efi_uga_mod_LDFLAGS): ... to this.
33732 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33734 (efi_fb_mod_SOURCES): Rename this ...
33735 (efi_uga_mod_SOURCES): ... to this.
33736 (efi_fb_mod_CFLAGS): Rename this ...
33737 (efi_uga_mod_CFLAGS): ... to this.
33738 (efi_fb_mod_LDFLAGS): Rename this ...
33739 (efi_uga_mod_LDFLAGS): ... to this.
33740 * video/efi_fb.c: Move this ...
33741 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33743 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33745 * po/README: New file. Explain our PO file workflow.
33747 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33749 * po/ChangeLog: Remove. Move relevant entries back to ...
33750 * ChangeLog: ... here.
33751 * po/ca.po: Remove (now handled by TLP).
33752 * po/id.po: Likewise.
33753 * po/zh_CN.po: Likewise.
33754 * Makefile.in (LINGUAS): Initialize in a way that supports
33757 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33759 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33760 reliing on po/LINGUAS.
33761 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33762 (po/%.po): ... this.
33764 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33766 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33767 (main): Use `program_name' instead of nonexistent `progname'.
33769 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33771 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33772 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33774 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33776 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33778 * conf/i386-efi.rmk: Likewise.
33779 * conf/i386-ieee1275.rmk: Likewise.
33780 * conf/powerpc-ieee1275.rmk: Likewise.
33781 * conf/sparc64-ieee1275.rmk: Likewise.
33782 * conf/x86_64-efi.rmk: Likewise.
33784 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33786 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33788 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33790 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33792 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33794 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33795 (grub_mkdevicemap_SOURCES): New variable.
33796 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33797 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33798 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33799 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33800 (grub_mkdevicemap_SOURCES): Remove.
33801 * conf/i386-efi.rmk: Likewise.
33802 * conf/i386-ieee1275.rmk: Likewise.
33803 * conf/i386-pc.rmk: Likewise.
33804 * conf/powerpc-ieee1275.rmk: Likewise.
33805 * conf/sparc64-ieee1275.rmk: Likewise.
33806 * conf/x86_64-efi.rmk: Likewise.
33807 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33808 (usage): Fix strings to use `program_name'.
33809 (main): Initialize gettext.
33810 * util/grub-editenv.c: Likewise.
33811 * util/grub-emu.c: Likewise.
33812 * util/grub-fstest.c: Likewise.
33813 * util/grub-mkdevicemap.c: Likewise.
33814 * util/grub-mkfont.c: Likewise.
33815 * util/grub-mkrelpath.c: Likewise.
33816 * util/grub-pe2elf.c: Likewise.
33817 * util/grub-probe.c: Likewise.
33818 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33819 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33820 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33822 * util/misc.c: Include `"progname.h"'.
33823 (progname): Remove variable.
33824 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33826 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33828 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33829 printf and print a newline after the menuentry header line.
33830 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33832 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33834 autoconf >= 2.60 support $(localedir).
33836 * INSTALL: Note that autoconf 2.60 is required.
33837 * configure.ac (AC_PREREQ): Bump to 2.60.
33838 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33839 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33841 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33843 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33846 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33848 * normal/main.c (grub_normal_read_line): Fix off-by-one
33851 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33853 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33854 "parser.grub" in grub_command_execute() call.
33856 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33858 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33859 * conf/i386-efi.rmk: Likewise.
33860 * conf/i386-ieee1275.rmk: Likewise.
33861 * conf/i386-pc.rmk: Likewise.
33862 * conf/powerpc-ieee1275.rmk: Likewise.
33863 * conf/sparc64-ieee1275.rmk: Likewise.
33864 * conf/x86_64-efi.rmk: Likewise.
33865 * gettext/gettex.c: Include <grub/i18n.h>.
33866 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33868 * include/grub/i18n.h: ... to here
33869 * include/grub/i18n.h: ... to here.
33870 * kern/misc.c: Include <grub/i18n.h>
33871 (grub_gettext_dummy): Move above user.
33873 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33875 * util/Makefile.in (install-local): Convert a `for' into a normal
33878 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33880 * autogen.sh: Add automake call.
33881 * config.guess: Remove.
33882 * config.sub: Likewise.
33883 * install-sh: Likewise.
33885 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33887 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33889 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33891 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33892 function to a normal shell `for'.
33894 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33896 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33898 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33900 * util/grub-mkrelpath.c: New file.
33901 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33902 (grub_mkrelpath_SOURCES): New variable.
33903 * include/grub/util/misc.h: New function prototype.
33904 * util/misc.c (make_system_path_relative_to_its_root): New function.
33906 * util/grub-mkconfig_lib.in (bindir): New variable.
33907 (grub_mkrelpath): Likewise.
33908 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33910 * util/probe.c (probe): Make the file path relative to its root.
33911 Change a info message to use the GRUB path. Enable again the
33912 check if we can read the file with GRUB facilities.
33914 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33917 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33919 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33922 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33924 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
33927 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33929 * util/getroot.c (grub_util_is_dmraid): New function.
33930 (grub_util_get_dev_abstraction): Treat dmraid and multipath
33931 devices as normal ones, not as LVM.
33933 2009-11-23 Carles Pina i Estany <carles@pina.cat>
33935 * conf/common.rmk: Add grub-gettext_lib target and updates
33936 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
33938 * gettext/gettext.c: New file. (Reads mo files).
33939 * include/grub/file.h (grub_file_pread): New prototype.
33940 * include/grub/i18n.h (_): New prototype.
33941 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
33943 * kern/misc.c (grub_gettext_dummy): New function.
33944 * normal/menu_text.c: Include <grub/i18n.h>.
33945 * normal/menu_text.c (print_timeout): Gettexttize string.
33946 * normal/menu_text.c (print_message): Gettexttize string.
33947 * po/POTFILES: Add `normal/menu_text.c'.
33948 * po/ca.po: Add new translations.
33949 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
33950 gettext module and defines locale_dir and lang in grub.cfg.
33951 * NEWS: Add gettext support.
33953 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33955 * util/hostdisk.c: Include `<grub/i18n.h>'.
33956 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
33957 (make_device_name): Rewrite using asprintf.
33958 (convert_system_partition_to_system_disk): Replace 0 with NULL.
33959 (find_system_device): If a device is not found, generate one just
33960 by reusing the OS path name.
33961 (read_device_map): Make it permissible for device.map not to exist.
33963 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33965 * script/sh/execute.c: Move from here ...
33966 * script/execute.c: ... to here. Update all users.
33967 * script/sh/function.c: Move from here ...
33968 * script/function.c: ... to here. Update all users.
33969 * script/sh/lexer.c: Move from here ...
33970 * script/lexer.c: ... to here. Update all users.
33971 * script/sh/main.c: Move from here ...
33972 * script/main.c: ... to here. Update all users.
33973 * script/sh/parser.y: Move from here ...
33974 * script/parser.y: ... to here. Update all users.
33975 * script/sh/script.c: Move from here ...
33976 * script/script.c: ... to here. Update all users.
33978 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33980 * configure.ac: Detect all `emu' platforms. Define
33981 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
33982 --enable-grub-emu logic. Disable include/grub/machine
33983 symlink on `emu' platforms.
33985 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
33986 * gensymlist.sh.in: Likewise.
33988 * include/grub/i386/coreboot/machine.h: Remove file.
33989 * include/grub/i386/efi/machine.h: Likewise.
33990 * include/grub/i386/ieee1275/machine.h: Likewise.
33991 * include/grub/i386/pc/machine.h: Likewise.
33992 * include/grub/i386/qemu/machine.h: Likewise.
33993 * include/grub/powerpc/ieee1275/machine.h: Likewise.
33994 * include/grub/sparc64/ieee1275/machine.h: Likewise.
33995 * include/grub/x86_64/efi/machine.h: Likewise.
33997 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
33998 * commands/halt.c: Likewise.
33999 * commands/reboot.c: Likewise.
34000 * include/grub/autoefi.h: Likewise.
34001 * include/grub/i386/at_keyboard.h: Likewise.
34002 * include/grub/i386/kernel.h: Likewise.
34003 * include/grub/i386/loader.h: Likewise.
34004 * include/grub/i386/pc/memory.h: Likewise.
34005 * kern/dl.c: Likewise.
34006 * kern/i386/coreboot/init.c: Likewise.
34007 * loader/i386/bsd.c: Likewise.
34008 * loader/i386/linux.c: Likewise.
34009 * loader/multiboot_loader.c: Likewise.
34010 * term/i386/pc/serial.c: Likewise.
34011 * term/usb_keyboard.c: Likewise.
34013 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34014 `<grub/machine/machine.h>'
34015 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34016 * util/misc.c: Remove `<grub/machine/machine.h>' and
34017 `<grub/machine/time.h>'.
34019 * Makefile.in (enable_grub_emu): Remove variable.
34020 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34022 * conf/any-emu.rmk: New file.
34023 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34024 (grub_emu_init.c): Move from here ...
34025 * conf/any-emu.rmk: ... to here.
34027 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34028 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34029 * conf/any-emu.rmk: ... to here.
34031 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34033 * include/grub/parser.h (grub_parser_register): Document need
34034 of `name' parameter.
34035 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34036 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34039 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34041 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34043 * include/grub/i18n.h (N_): New macro.
34044 * util/mkisofs/mkisofs.h: Likewise.
34045 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34047 (usage): Use gettext() to translate help strings when printing them.
34049 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34051 Based on patch from Bean
34052 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34054 * video/efi_fb.c: New file.
34055 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34056 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34058 * conf/x86_64-efi.rmk: Likewise.
34060 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34062 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34063 * util/i386/pc/grub-setup.c: Likewise.
34065 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34067 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34069 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34070 file_get_storage_info to implement grub_guess_root_device.
34072 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34074 * Makefile.in (target): Use make's builtin $(shell) function
34075 instead of calling directly $(SHELL) to create the locale directories,
34076 inside the $(foreach) function.
34078 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34080 * util/grub-mkrescue.in: Print an error and usage if output option
34081 has not been given.
34083 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34085 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34086 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34087 root and /boot are on different devices.
34089 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34091 Fix build for srcdir != objdir.
34093 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34094 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34096 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34097 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34098 reference for input.
34100 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34102 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34103 or hardlinking it). Remove -J option, Joliet is not compatible with
34104 multiple source directories.
34106 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34107 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34109 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34110 (process_input_dir): New function. Process an arbitrary input
34112 Misc adjustments to support both "override mode" and system-wide mode.
34114 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34116 * configure.ac (UNIFONT_BDF): Rename to ...
34117 (FONT_SOURCE): ... this. Update all users.
34119 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34121 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34122 to the list of unifont files to look for.
34124 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34126 Patch from Joe Auricchio <jauricchio@gmail.com>
34127 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34128 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34129 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34131 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34133 * Makefile.in (install-local): Add a missing backslash.
34135 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34137 * include/grub/x86_64/io.h: New file.
34139 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34141 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34142 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34143 Include `"progname.h"'.
34144 (main): Initialize gettext.
34145 * util/i386/pc/grub-setup.c: Gettexttize.
34146 * util/i386/pc/grub-mkimage.c: Likewise.
34148 * Makefile.in (po/*.po): Redefine as ...
34149 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34151 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34153 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34155 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34156 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34157 (program_name): Remove.
34158 (main): Initialize gettext support.
34159 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34160 Include `<libintl.h>'.
34163 * util/mkisofs/eltorito.c: Gettexttize.
34164 * util/mkisofs/joliet.c: Likewise.
34165 * util/mkisofs/mkisofs.c: Likewise.
34166 * util/mkisofs/multi.c: Likewise.
34167 * util/mkisofs/rock.c: Likewise.
34168 * util/mkisofs/tree.c: Likewise.
34169 * util/mkisofs/write.c: Likewise.
34171 * po/POTFILES: Update with new files.
34173 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34175 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34176 * util/mkisofs/iso9660.h: Likewise.
34177 * util/mkisofs/joliet.c: Likewise.
34178 * util/mkisofs/mkisofs.c: Likewise.
34179 * util/mkisofs/mkisofs.h: Likewise.
34180 * util/mkisofs/rock.c: Likewise.
34181 * util/mkisofs/tree.c: Likewise.
34182 * util/mkisofs/write.c: Likewise.
34184 * util/mkisofs/eltorito.c (rcsid): Remove.
34185 * util/mkisofs/hash.c: Likewise.
34186 * util/mkisofs/joliet.c: Likewise.
34187 * util/mkisofs/name.c: Likewise.
34188 * util/mkisofs/rock.c: Likewise.
34189 * util/mkisofs/tree.c: Likewise.
34190 * util/mkisofs/write.c: Likewise.
34192 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34194 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34195 instead of static allocation.
34196 * util/mkisofs/match.h: Likewise.
34198 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34200 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34201 and `util/grub.d/10_linux.in'.
34202 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34203 translatable Shell files.
34205 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34207 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34209 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34211 * INSTALL: Document Automake is needed for bootstrap.
34212 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34213 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34214 Add gettext initialization.
34215 (kfreebsd_entry): Make menuentry output translatable.
34217 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34219 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34220 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34221 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34222 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34223 (LINGUAS): Auto-generate using `po/LINGUAS'.
34224 * po/LINGUAS: New file.
34226 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34228 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34230 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34231 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34232 bindtextdomain() calls for gettext initialization.
34234 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34236 * gnulib/progname.c: New file (imported from Gnulib).
34237 * gnulib/progname.h: Likewise.
34238 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34239 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34240 (usage): Replace `progname' with `program_name'.
34241 (main): Use set_program_name() for program name initialization.
34243 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34245 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34247 * Makefile.in (CPPFLAGS): ... to here.
34249 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34251 * aclocal.m4: Move from here ...
34252 * acinclude.m4: ... to here.
34253 * autogen.sh: Add call to `aclocal'.
34254 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34256 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34258 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34259 (LINGUAS): New variable.
34260 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34261 (install-local): Install MO files.
34262 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34263 * include/grub/i18n.h: New file.
34264 * po/POTFILES: New file.
34265 * po/ca.po: New file.
34266 * util/grub.d/10_linux.in (bindir): New variable.
34267 Add gettext initialization.
34268 (linux_entry): Make menuentry output translatable.
34269 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34270 (usage): Make --help output translatable.
34271 (main): Initialize gettext.
34273 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34275 * import_gcry.py: New file (written by Vladimir with minor
34277 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34279 * INSTALL: Document that Python is required for bootstrap.
34281 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34283 Import ciphers from libgcrypt 1.4.4.
34285 * lib/libgcrypt/cipher/ChangeLog
34286 * lib/libgcrypt/cipher/ac.c
34287 * lib/libgcrypt/cipher/arcfour.c
34288 * lib/libgcrypt/cipher/bithelp.h
34289 * lib/libgcrypt/cipher/blowfish.c
34290 * lib/libgcrypt/cipher/camellia-glue.c
34291 * lib/libgcrypt/cipher/camellia.c
34292 * lib/libgcrypt/cipher/camellia.h
34293 * lib/libgcrypt/cipher/cast5.c
34294 * lib/libgcrypt/cipher/cipher.c
34295 * lib/libgcrypt/cipher/crc.c
34296 * lib/libgcrypt/cipher/des.c
34297 * lib/libgcrypt/cipher/dsa.c
34298 * lib/libgcrypt/cipher/ecc.c
34299 * lib/libgcrypt/cipher/elgamal.c
34300 * lib/libgcrypt/cipher/hash-common.c
34301 * lib/libgcrypt/cipher/hash-common.h
34302 * lib/libgcrypt/cipher/hmac-tests.c
34303 * lib/libgcrypt/cipher/md.c
34304 * lib/libgcrypt/cipher/md4.c
34305 * lib/libgcrypt/cipher/md5.c
34306 * lib/libgcrypt/cipher/primegen.c
34307 * lib/libgcrypt/cipher/pubkey.c
34308 * lib/libgcrypt/cipher/rfc2268.c
34309 * lib/libgcrypt/cipher/rijndael-tables.h
34310 * lib/libgcrypt/cipher/rijndael.c
34311 * lib/libgcrypt/cipher/rmd.h
34312 * lib/libgcrypt/cipher/rmd160.c
34313 * lib/libgcrypt/cipher/rsa.c
34314 * lib/libgcrypt/cipher/seed.c
34315 * lib/libgcrypt/cipher/serpent.c
34316 * lib/libgcrypt/cipher/sha1.c
34317 * lib/libgcrypt/cipher/sha256.c
34318 * lib/libgcrypt/cipher/sha512.c
34319 * lib/libgcrypt/cipher/tiger.c
34320 * lib/libgcrypt/cipher/twofish.c
34321 * lib/libgcrypt/cipher/whirlpool.c
34323 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34325 Fix build for systems without error().
34327 * gnulib/error.c: New file (imported from Gnulib).
34328 * gnulib/error.h: Likewise.
34329 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34330 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34331 (this variable is now used by error()).
34333 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34335 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34336 instead of relying that char is signed.
34338 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34340 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34341 blocksize different from specified.
34342 (grub_pxefs_read): Likewise.
34344 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34346 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34348 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34349 (grub_ata_readwrite): Likewise. Update 2 format strings.
34350 (grub_atapi_read): Likewise.
34352 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34353 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34354 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34355 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34356 (ata_mod_LDFLAGS): Move from here ...
34357 * conf/i386.rmk: ... to here ...
34358 * conf/x86_64-efi.rmk: ... and here.
34359 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34360 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34362 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34364 Relicense multiboot.h, with RMS' blessing.
34366 * include/multiboot.h: Change to X11 license.
34368 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34370 Support --version in grub-mkisofs.
34372 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34373 (OPTION_VERSION): New macro.
34374 (ld_options): Recognize --version.
34375 (usage): Move `program_name' from here ...
34376 (program_name): ... to here. Add `static' qualifier.
34377 (main): Recognize `OPTION_VERSION'.
34379 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34381 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34382 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34384 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34386 Fix help2man generation for mkisofs.
34388 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34389 (usage): Send output to stdout (rather than stderr).
34391 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34393 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34394 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34395 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34396 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34397 (bin_SCRIPTS): Add `grub-mkfloppy'.
34398 (grub_mkfloppy_SOURCES): New variable.
34400 * util/grub-mkrescue.in: New file.
34401 * util/i386/pc/grub-mkfloppy.in: New file.
34403 * util/i386/coreboot/grub-mkrescue.in: Remove.
34404 * util/i386/pc/grub-mkrescue.in: Remove.
34406 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34408 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34410 * include/multiboot.h (struct multiboot_header): ... to here. Update
34412 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34414 * include/multiboot.h (struct multiboot_info): ... to here. Update
34416 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34418 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34420 * include/grub/multiboot.h (struct grub_mod_list): Move
34422 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34425 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34427 * include/multiboot2.h (multiboot_word): Rename from this ...
34428 (multiboot2_word): ... to this. Update all users.
34429 (multiboot_header): Rename from this ...
34430 (multiboot2_header): ... to this. Update all users.
34431 (multiboot_tag_header): Rename from this ...
34432 (multiboot2_tag_header): ... to this. Update all users.
34433 (multiboot_tag_start): Rename from this ...
34434 (multiboot2_tag_start): ... to this. Update all users.
34435 (multiboot_tag_name): Rename from this ...
34436 (multiboot2_tag_name): ... to this. Update all users.
34437 (multiboot_tag_module): Rename from this ...
34438 (multiboot2_tag_module): ... to this. Update all users.
34439 (multiboot_tag_memory): Rename from this ...
34440 (multiboot2_tag_memory): ... to this. Update all users.
34441 (multiboot_tag_unused): Rename from this ...
34442 (multiboot2_tag_unused): ... to this. Update all users.
34443 (multiboot_tag_end): Rename from this ...
34444 (multiboot2_tag_end): ... to this. Update all users.
34446 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34448 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34449 this platform we should support Multiboot1 first.
34451 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34452 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34453 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34455 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34457 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34458 of write calls (converting them to fwrite() if they aren't already).
34459 (get_torito_desc): Likewise.
34460 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34462 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34464 * util/i386/pc/grub-install.in: Move from here ...
34465 * util/grub-install.in: ... to here. Update all users.
34467 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34469 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34471 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34473 Support for El Torito without floppy emulation.
34475 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34476 (init_boot_catalog): Improve error handling.
34477 (get_torito_desc): Don't use floppy emulation unless requested by
34478 user. Patch boot information table when requested via
34479 `-boot-info-table'.
34480 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34481 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34482 (use_boot_info_table): New variables.
34483 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34484 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34485 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34486 `--eltorito-emul-floppy'.
34487 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34488 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34489 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34490 (use_boot_info_table, get_731): New prototypes.
34491 * util/mkisofs/write.c (get_731): New function.
34493 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34495 Fix the generation of the man page.
34497 * util/pc/i386/grub-install.in: Source
34498 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34500 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34502 Large file support for grub-mkisofs.
34504 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34505 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34506 (session_start): Upgrade type to `uint64_t'. Update all users.
34507 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34508 (struct directory_entry): Upgrade type of `starting_block' and
34509 `size' to `uint64_t'. Update all users.
34510 (struct deferred): Remove unused structure.
34511 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34513 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34514 file is larger than `UINT32_MAX'.
34515 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34516 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34518 (struct deferred_write): Upgrade type of `extent' and `size' to
34519 `uint64_t'. Update all users.
34520 (last_extent_written): Upgrade type to `uint64_t'. Update all
34522 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34523 Update all users. Upgrade type of `remain' to `int64_t' and
34524 `use' to `size_t'. Use error() to handle fread() errors.
34525 (write_files): Rely on write_one_file() rather than calling
34526 xfwrite() directly.
34528 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34530 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34532 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34534 * util/mkisofs/fnmatch.c: Remove.
34535 * util/mkisofs/getopt1.c: Likewise.
34536 * util/mkisofs/getopt.c: Likewise.
34537 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34538 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34539 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34540 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34541 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34543 * configure.ac: Detect `mingw32msvc' host_os.
34544 Check for lstat(), getuid() and getgid().
34546 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34547 instances of `u_char' with `uint8_t'.
34549 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34550 [!HAVE_GETUID] (getuid): New function (stub).
34551 [!HAVE_GETGID] (getgid): Likewise.
34552 [!HAVE_LSTAT] (lstat): Likewise.
34553 [!S_IROTH] (S_IROTH): New macro (dummy).
34554 [!S_IRGRP] (S_IRGRP): Likewise.
34556 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34558 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34559 conditional expression).
34561 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34563 Import from Gnulib.
34565 * gnulib/fnmatch.c: New file.
34566 * gnulib/fnmatch.h: Likewise.
34567 * gnulib/fnmatch_loop.c: Likewise.
34568 * gnulib/getopt.c: Likewise.
34569 * gnulib/getopt.h: Likewise.
34570 * gnulib/getopt1.c: Likewise.
34571 * gnulib/getopt_int.h: Likewise.
34572 * gnulib/gettext.h: Likewise.
34574 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34576 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34577 * normal/handler.c (read_handler_list): Likewise.
34579 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34583 * kern/command.c (grub_register_command_prio): Use
34584 grub_zalloc() instead of explicitly zeroing data.
34585 * kern/list.c: Include `<grub/mm.h>'.
34586 (grub_named_list_find): Replace `0' with `NULL'.
34587 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34588 (fs_module_list): Change type to `grub_named_list_t'. Update all
34590 * normal/dyncmd.c (read_command_list): Add space between function
34591 call and parenthesis.
34592 * normal/handler.c (read_handler_list): Likewise.
34594 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34596 * normal/auth.c (punishment_delay): Moved from here ...
34597 (grub_auth_strcmp): ... to here (inside function).
34599 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34601 * include/grub/list.h (struct grub_named_list): Remove `const'
34602 qualifier from `name'.
34603 (struct grub_prio_list): Likewise.
34605 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34607 * normal/auth.c: Include `<grub/time.h>'.
34608 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34610 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34612 * normal/auth.c (punishment_delay): New variable.
34613 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34614 (grub_auth_check_authentication): Punish failed login attempts with
34615 an incremental (2^N) delay.
34617 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34619 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34620 path with $(srcdir).
34622 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34624 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34626 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34628 * util/i386/coreboot/grub-mkrescue.in: New file.
34629 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34632 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34633 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34634 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34636 * util/mkisofs/defaults.h: New file.
34637 * util/mkisofs/eltorito.c: Likewise.
34638 * util/mkisofs/exclude.h: Likewise.
34639 * util/mkisofs/fnmatch.c: Likewise.
34640 * util/mkisofs/getopt.c: Likewise.
34641 * util/mkisofs/getopt1.c: Likewise.
34642 * util/mkisofs/hash.c: Likewise.
34643 * util/mkisofs/include/fctldefs.h: Likewise.
34644 * util/mkisofs/include/mconfig.h: Likewise.
34645 * util/mkisofs/include/prototyp.h: Likewise.
34646 * util/mkisofs/include/statdefs.h: Likewise.
34647 * util/mkisofs/iso9660.h: Likewise.
34648 * util/mkisofs/joliet.c: Likewise.
34649 * util/mkisofs/match.c: Likewise.
34650 * util/mkisofs/match.h: Likewise.
34651 * util/mkisofs/mkisofs.c: Likewise.
34652 * util/mkisofs/mkisofs.h: Likewise.
34653 * util/mkisofs/multi.c: Likewise.
34654 * util/mkisofs/name.c: Likewise.
34655 * util/mkisofs/rock.c: Likewise.
34656 * util/mkisofs/tree.c: Likewise.
34657 * util/mkisofs/write.c: Likewise.
34659 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34661 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34664 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34666 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34667 `grub-mkimage' (and use $0 when possible).
34669 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34671 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34672 error message for excessively large memory map.
34674 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34676 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34679 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34681 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34682 message for coreboot users.
34684 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34686 Fix build with GNU gold.
34688 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34689 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34690 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34692 * aclocal.m4: Likewise.
34694 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34696 * configure.ac (AC_PREREQ): Bump to 2.59d.
34697 * INSTALL: Make it more clear when Autoconf and Ruby are
34698 needed and when to run `./autogen.sh'.
34700 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34702 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34705 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34707 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34709 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34711 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34712 giving it to GNU Mach.
34714 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34716 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34717 GNU partition number to get internal GRUB partition number.
34719 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34721 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34722 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34724 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34726 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34727 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34730 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34732 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34734 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34738 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34739 `-isystem=$(srcdir)/include'.
34741 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34743 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34744 checked (grub-install doesn't currently rely on it).
34746 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34750 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34751 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34752 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34753 * conf/i386-ieee1275.rmk: Likewise.
34754 * conf/i386-pc.rmk: Likewise.
34755 * conf/powerpc-ieee1275.rmk: Likewise.
34756 * conf/sparc64-ieee1275.rmk: Likewise.
34757 * conf/x86_64-efi.rmk: Likewise.
34759 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34761 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34763 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34765 * include/grub/misc.h: Stop checking for APPLE_CC.
34767 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34769 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34770 doesn't cause an infinite call loop.
34772 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34774 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34777 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34779 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34781 * Makefile.in: Likewise.
34783 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34785 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34787 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34789 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34791 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34793 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34795 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34797 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34799 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34801 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34803 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34804 in $(MAKEINFO) invocation. This makes it clear in output that
34805 errors are being ignored.
34807 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34809 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34811 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34812 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34813 * conf/i386-ieee1275.rmk: Likewise.
34814 * conf/i386-pc.rmk: Likewise.
34815 * conf/powerpc-ieee1275.rmk: Likewise.
34816 * conf/sparc64-ieee1275.rmk: Likewise.
34817 * conf/x86_64-efi.rmk: Likewise.
34819 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34821 * util/grub-editenv.c (main): If only a command is given, use
34822 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34823 (usage): FILENAME is now optional and has a default.
34825 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34827 Improve grub-mkconfig performance when there are several menu
34828 entries on a single filesystem.
34830 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34831 prepare_grub_to_access_device.
34832 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34833 * util/grub.d/30_os-prober.in: Likewise.
34835 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34837 * util/grub.d/10_freebsd.in: Remove.
34838 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34839 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34841 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34843 * docs/grub.cfg: Fix example usage of *BSD loaders.
34845 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34847 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34848 grub_util_error() call.
34850 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34852 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34853 `reserved_first_sector' member.
34854 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34855 `reserved_first_sector' to 1.
34856 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34857 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34858 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34859 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34860 filesystems which begin at first sector.
34861 (options): New option --skip-fs-probe.
34862 (main): Handle --skip-fs-probe and pass it to setup().
34864 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34866 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34867 (memset): Fix function prototype.
34869 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34870 2009-10-25 Vasily Averin <vvs@parallels.com>
34872 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34873 `dirent.direntlen == 0'.
34875 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34877 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34879 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34881 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34883 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34884 `__trampoline_setup' and `__ucmpdi2'.
34885 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34886 that libgcc provides.
34888 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34890 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34891 * include/grub/sparc64/libgcc.h (memset): Likewise.
34892 * include/grub/misc.h (memset, memcmp): New function prototypes.
34894 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34896 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34898 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34900 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34902 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34903 * docs/grub.cfg: Compensate for recent change in multiboot
34904 loader (since 2009-08-14 it won't pass filename to payload).
34905 * util/grub.d/10_hurd.in: Likewise.
34907 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
34909 * config.guess: Update to latest version from config git
34911 * config.sub: Likewise.
34913 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34915 Fix build on sparc64.
34917 * configure.ac: Perform checks for libgcc symbols before
34918 adding `-nostdlib' to LDFLAGS.
34920 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34922 Let user specify OpenBSD root device.
34924 * loader/i386/bsd.c (openbsd_root): New variable.
34925 (openbsd_opts): New option 'root'.
34926 (OPENBSD_ROOT_ARG): New macro.
34927 (grub_openbsd_boot): Use 'openbsd_root'.
34928 (grub_cmd_openbsd): Fill 'openbsd_root'.
34930 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34932 * NEWS: Misc adjustments.
34934 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34936 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
34938 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34940 * configure.ac: Bump version to 1.97.
34942 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
34944 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
34945 -mno-3dnow on x86 architectures. Some toolchains enable these
34946 features by default, but they rely on registers that aren't enabled
34947 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
34949 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
34951 Make entry text a bit more readable.
34953 * util/grub.d/10_linux.in: Add `with' before `Linux'.
34955 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34957 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
34959 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34961 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
34964 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34966 * configure.ac: Add missing dollar.
34968 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34970 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
34972 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
34973 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
34975 * include/grub/sparc64/libgcc.h: Likewise. Use
34976 preprocessor conditionals.
34978 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
34980 * conf/common.rmk (grub-dumpbios): Remove rule.
34981 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
34982 * util/grub-dumpbios.in: Remove file.
34984 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
34986 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
34987 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
34989 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
34990 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
34993 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
34994 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
34995 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
34996 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
34999 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35001 * term/tparm.c: Switch to GPLv3.
35003 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35005 * include/grub/i386/cpuid.h: Add header protection.
35007 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35009 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35011 * include/grub/i386/cpuid.h: New file.
35012 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35013 (has_longmode): Rename to ...
35014 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35015 `static' attribute.
35016 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35017 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35018 on a CPU that doesn't implement AMD64 instruction set.
35020 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35022 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35023 that version.texi is rebuilt on version number changes.
35025 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35027 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35030 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35032 * util/i386/pc/grub-install.in: Source
35033 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35034 that the --grub-probe option will work.
35035 * util/sparc64/ieee1275/grub-install.in: Likewise.
35037 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35039 * configure.ac: Bump version to 1.97~beta4.
35041 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35043 Resync grub-mkdevicemap in x86_64-efi.
35045 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35046 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35047 `util/devicemap.c'.
35049 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35051 * util/grub-editenv.c (create_envblk_file): Write new block with a
35052 .new suffix and then rename it into place, to ensure atomic
35055 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35057 Do not automatically install headers.
35059 * Makefile.in (include_DATA): Remove. Update all users.
35061 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35063 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35064 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35066 * util/osdetect.lua: Remove.
35067 * script/lua/lauxlib.c: Likewise.
35068 * script/lua/ldebug.c: Likewise.
35069 * script/lua/grub_main.c: Likewise.
35070 * script/lua/lauxlib.h: Likewise.
35071 * script/lua/ldebug.h: Likewise.
35072 * script/lua/ltablib.c: Likewise.
35073 * script/lua/liolib.c: Likewise.
35074 * script/lua/lstrlib.c: Likewise.
35075 * script/lua/lualib.h: Likewise.
35076 * script/lua/ldo.c: Likewise.
35077 * script/lua/ldump.c: Likewise.
35078 * script/lua/ldo.h: Likewise.
35079 * script/lua/loslib.c: Likewise.
35080 * script/lua/lundump.c: Likewise.
35081 * script/lua/grub_lib.c: Likewise.
35082 * script/lua/ldblib.c: Likewise.
35083 * script/lua/lundump.h: Likewise.
35084 * script/lua/lmem.c: Likewise.
35085 * script/lua/grub_lib.h: Likewise.
35086 * script/lua/lmathlib.c: Likewise.
35087 * script/lua/lstate.c: Likewise.
35088 * script/lua/ltm.c: Likewise.
35089 * script/lua/lvm.c: Likewise.
35090 * script/lua/lmem.h: Likewise.
35091 * script/lua/lstate.h: Likewise.
35092 * script/lua/ltm.h: Likewise.
35093 * script/lua/ltable.c: Likewise.
35094 * script/lua/lvm.h: Likewise.
35095 * script/lua/llex.c: Likewise.
35096 * script/lua/lgc.c: Likewise.
35097 * script/lua/grub_lua.h: Likewise.
35098 * script/lua/loadlib.c: Likewise.
35099 * script/lua/lfunc.c: Likewise.
35100 * script/lua/lopcodes.c: Likewise.
35101 * script/lua/lparser.c: Likewise.
35102 * script/lua/ltable.h: Likewise.
35103 * script/lua/llex.h: Likewise.
35104 * script/lua/lgc.h: Likewise.
35105 * script/lua/lfunc.h: Likewise.
35106 * script/lua/lbaselib.c: Likewise.
35107 * script/lua/lopcodes.h: Likewise.
35108 * script/lua/lparser.h: Likewise.
35109 * script/lua/lzio.c: Likewise.
35110 * script/lua/linit.c: Likewise.
35111 * script/lua/lobject.c: Likewise.
35112 * script/lua/llimits.h: Likewise.
35113 * script/lua/lstring.c: Likewise.
35114 * script/lua/lzio.h: Likewise.
35115 * script/lua/lapi.c: Likewise.
35116 * script/lua/lcode.c: Likewise.
35117 * script/lua/lua.h: Likewise.
35118 * script/lua/lobject.h: Likewise.
35119 * script/lua/lstring.h: Likewise.
35120 * script/lua/lapi.h: Likewise.
35121 * script/lua/lcode.h: Likewise.
35122 * script/lua/luaconf.h: Likewise.
35124 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35126 * docs/grub.texi (Command-line and menu entry commands): Document
35127 date and echo commands.
35129 2009-09-24 Pavel Roskin <proski@gnu.org>
35131 * include/grub/kernel.h (struct grub_module_header): Remove
35132 `grub_module_header_types'. Make `type' unsigned. Make `size'
35133 32-bit on all platforms.
35134 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35135 8-bit field. Use grub_host_to_target32() for `size'.
35136 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35137 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35138 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35140 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35142 Fix "lost keypress" bug in at_keyboard.
35144 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35145 Checks for readyness of input buffer (without flushing it).
35146 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35147 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35149 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35151 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35152 size check within GRUB_MACHINE_PCBIOS section.
35154 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35156 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35158 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35159 KEYBOARD_ISREADY check.
35160 (grub_at_keyboard_checkkey): Rename to ...
35161 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35162 Remove gratuitous cast.
35164 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35166 * configure.ac: Call AC_PROG_MKDIR_P.
35167 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35168 version.texi in $(builddir) rather than $(srcdir).
35169 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35170 to makeinfo's @include search path.
35172 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35174 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35176 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35178 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35181 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35183 Build info documentation. Some code borrowed from Automake.
35185 * configure.ac: Check for makeinfo.
35186 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35187 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35189 (MOSTLYCLEANFILES): Add vti.tmp.
35190 (docs/version.texi, docs/stamp-vti): Update automatically.
35191 (docs/grub.info): Build info documentation. Use --force and ignore
35193 (all-local): Add $(INFOS).
35194 (install-local): Install info files.
35195 (uninstall): Uninstall info files.
35196 * docs/version.texi: Remove from revision control. This file is
35197 automatically generated on build now.
35198 * gendistlist.sh: Add `*.info'.
35200 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35202 * kern/term.c: Fix indentation.
35204 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35206 * util/hostdisk.c: Fix a comment.
35208 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35210 Fix regression introduced in r2539.
35212 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35215 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35217 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35218 os-prober. Under normal operation, it does not print anything to
35219 stderr; if it does, we need to debug it, and throwing away stderr
35220 makes that excessively difficult.
35222 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35224 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35226 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35228 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35229 AC_LANG_PROGRAM from autoconf.
35230 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35231 prototypes (fixes warning).
35233 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35234 `--disable-werror' was used.
35236 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35238 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35239 uninitialized `lastaddr'.
35241 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35243 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35245 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35247 * commands/test.c (get_fileinfo): Return immediately if
35248 grub_fs_probe fails.
35250 2009-09-14 José Martínez <xosemp@gmail.com>
35252 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35254 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35256 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35259 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35261 * configure.ac: Remove --enable-grub-pe2elf. Only build
35262 grub-pe2elf when needed by the build system itself.
35263 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35265 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35267 * configure.ac: Bump version to 1.97~beta3.
35268 * docs/version.texi: Likewise.
35270 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35272 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35273 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35275 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35276 (grub_linux_setup_video): ... to here (with some adjustments).
35278 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35280 Fix memory corruption issue (spotted by Colin Watson).
35282 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35283 causing returned size to be stored in an incorrect memory location.
35284 Fix use of uninitialized value when storing the returned size.
35286 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35288 Change clean rules to properly remove files
35290 * genmk.rb: add new clean rules
35291 * Makefile.in (clean): add the new targets
35292 (mostlyclean): likewise
35294 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35296 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35298 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35299 non-resident files.
35301 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35303 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35304 part of bug #27349.
35306 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35308 * util/grub-mkconfig.in: Make the created config mode 400 and
35309 print a warning if it fails.
35311 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35313 * util/grub.d/40_custom.in: Ask user to type custom entries below
35314 comment, rather than below 'exec tail' line.
35316 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35318 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35319 visible in grub.cfg.
35321 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35323 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35326 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35328 * docs/grub.cfg: Add an example menu entry for memtest86+.
35330 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35332 * config.guess: Update to latest version from config git.
35333 * config.sub: Likewise.
35335 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35337 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35338 unknown-command case. Fixes bug #27320.
35340 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35342 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35343 `help' if the command exists.
35345 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35347 * INSTALL: Require GCC 4.1.3 or later.
35349 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35351 * Makefile.in (RMKFILES): add i386-qemu.rmk
35352 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35353 $(srcdir)/stamp-h.in
35355 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35357 * util/grub-probe.c (probe): Comment out buggy codepath, which
35358 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35359 should be re-enabled after 1.97.
35361 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35363 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35366 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35368 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35369 unnecessary calls to grub_error.
35371 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35373 * NEWS: Mention `keystatus' and Unicode fonts.
35375 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35377 * configure.ac: Bump version to 1.97~beta2.
35378 * docs/version.texi: Likewise.
35380 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35382 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35383 containing unwind information in some cases where it previously did
35384 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35385 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35388 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35390 Embedding loadenv module into grub-emu
35392 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35394 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35395 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35396 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35397 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35398 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35399 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35401 2009-09-03 Magnus Granberg <zorry@ume.nu>
35403 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35404 include -fPIE in the default specs.
35405 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35408 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35410 * INSTALL: Note that GNU Bison 2.3 or later is required.
35412 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35414 * kern/i386/pc/startup.S: Fix typo.
35416 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35418 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35421 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35423 * docs/grub.texi (Naming convention): Describe one-based partition
35425 (Device syntax): Likewise.
35426 (File name syntax): Likewise.
35427 (Block list syntax): Likewise.
35428 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35430 (File name syntax): Likewise.
35431 (Command-line and menu entry commands): Document acpi, blocklist,
35432 crc, export, insmod, keystatus, ls, set, and unset commands.
35434 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35436 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35437 to avoid implying that only one of --shift, --ctrl, or --alt may be
35440 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35442 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35443 rather than comparing against S_IFREG, which will almost never work.
35445 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35447 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35448 (write_blocklists): Likewise.
35450 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35452 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35453 argument to grub_printf.
35455 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35457 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35460 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35462 * kern/file.c (grub_file_read): Spelling fix
35464 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35466 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35467 loading of headers in some cases.
35469 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35471 * configure.ac: Bump version to 1.97~beta1.
35472 * docs/version.texi: Likewise.
35474 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35476 * include/grub/i386/xnu.h: Add license header.
35477 include grub/err.h explicitly.
35479 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35481 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35482 to `ufs' in the vfs.root.mountfrom kernel parameter.
35484 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35486 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35488 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35489 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35491 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35492 `ARRAY_SIZE' macro.
35494 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35496 * kern/file.c (grub_file_read): Check offset.
35497 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35498 * fs/jfs.c (grub_jfs_read_file): Likewise.
35499 * fs/ntfs.c (grub_ntfs_read): Likewise.
35500 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35501 * fs/minix.c (grub_minix_read_file): Correct offset check.
35502 * fs/ufs.c (grub_ufs_read_file): Likewise.
35504 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35506 * term/i386/pc/console.c (bios_data_area): Cast
35507 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35509 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35511 1-bit optimised blitters.
35513 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35515 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35516 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35517 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35518 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35519 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35520 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35521 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35523 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35524 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35525 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35526 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35527 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35528 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35529 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35531 * video/video.c (grub_video_get_blit_format): Return
35532 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35534 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35536 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35537 the first argument to grub_printf.
35539 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35540 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35542 Add `getkeystatus' terminal method. Add a new `keystatus' command
35545 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35546 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35547 modifier key bitmasks.
35548 (struct grub_term_input): Add `getkeystatus' member.
35549 (grub_getkeystatus): Add prototype.
35550 * kern/term.c (grub_getkeystatus): New function.
35552 * include/grub/i386/pc/memory.h
35553 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35554 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35556 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35557 (grub_console_term_input): Set `getkeystatus' member.
35558 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35560 (grub_usb_keyboard_getreport): Likewise.
35561 (grub_usb_keyboard_checkkey): Likewise.
35562 (grub_usb_keyboard_getkeystatus): New function.
35563 (grub_usb_keyboard_term): Set `getkeystatus' member.
35565 * commands/keystatus.c: New file.
35566 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35567 (keystatus_mod_SOURCES): New variable.
35568 (keystatus_mod_CFLAGS): Likewise.
35569 (keystatus_mod_LDFLAGS): Likewise.
35570 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35571 commands/keystatus.c.
35572 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35573 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35574 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35575 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35576 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35577 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35579 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35581 Split befs.mod and afs.mod into *_be.mod and *.mod
35583 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35584 (grub_fstest_SOURCES): Likewise.
35585 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35586 (afs_be_mod_SOURCES): New variable.
35587 (afs_be_mod_CFLAGS): Likewise.
35588 (afs_be_mod_LDFLAGS): Likewise.
35589 (befs_be_mod_SOURCES): Likewise.
35590 (befs_be_mod_CFLAGS): Likewise.
35591 (befs_be_mod_LDFLAGS): Likewise.
35592 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35593 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35594 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35595 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35596 (grub_emu_SOURCES): Likewise.
35597 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35598 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35599 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35600 * fs/afs_be.c: New file.
35601 * fs/befs_be.c: New file.
35602 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35603 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35604 (U16): Replaced with ...
35605 (grub_afs_to_cpu16): ...this. All users updated.
35606 (U32): Replaced with ...
35607 (grub_afs_to_cpu32): ...this. All users updated.
35608 (U64): Replaced with ...
35609 (grub_afs_to_cpu64): ...this. All users updated.
35610 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35611 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35612 (grub_afs_validate_sblock): Check only one endianness.
35613 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35614 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35615 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35616 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35617 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35618 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35619 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35620 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35622 2009-08-26 Bean <bean123ch@gmail.com>
35624 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35626 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35627 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35628 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35630 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35632 NetBSD memory map support.
35634 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35635 (grub_netbsd_btinfo_mmap_header): New structure.
35636 (grub_netbsd_btinfo_mmap_entry): Likewise.
35637 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35639 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35641 Enable bsd.mod on coreboot.
35643 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35644 (bsd_mod_SOURCES): New variable.
35645 (bsd_mod_CFLAGS): Likewise.
35646 (bsd_mod_LDFLAGS): Likewise.
35647 (bsd_mod_ASFLAGS): Likewise.
35648 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35649 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35651 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35653 Cleanup NetBSD root support.
35655 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35656 grub_bsd_get_device.
35659 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35661 * util/grub.d/00_header.in: Move check for the video backend of
35662 gfxterm from here ...
35663 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35664 a suitable video backend.
35666 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35668 Fix breakage in grub-setup.
35670 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35671 "msdos_partition_map".
35673 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35675 Fix breakage in normal/auth.c.
35677 * normal/auth.c (grub_iswordseparator): New function.
35679 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35681 Authentication support.
35683 * commands/password.c: New file.
35684 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35685 (password_mod_SOURCES): New variable.
35686 (password_mod_CFLAGS): Likewise.
35687 (password_mod_LDFLAGS): Likewise.
35688 (normal_mod_SOURCES): Add normal/auth.c.
35689 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35691 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35692 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35693 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35694 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35695 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35696 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35697 * include/grub/auth.h: New file.
35698 * include/grub/err.h (grub_err_t): New enum value
35699 GRUB_ERR_ACCESS_DENIED.
35700 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35702 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35703 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35705 * normal/auth.c: New file.
35706 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35707 (grub_cmdline_run): Don't allow to go to command line without
35709 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35710 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35711 menuentry without superuser rights.
35712 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35713 user isn't a superuser.
35715 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35717 Save space by inlining misc.c functions.
35719 * kern/misc.c (grub_iswordseparator): Made static.
35720 * kern/misc.c (grub_strcat): Moved from here ...
35721 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35722 * kern/misc.c (grub_strncat): Moved from here ...
35723 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35724 * kern/misc.c (grub_strcasecmp): Moved from here ...
35725 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35726 * kern/misc.c (grub_strncasecmp): Moved from here ...
35727 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35728 * kern/misc.c (grub_isalpha): Moved from here ...
35729 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35730 * kern/misc.c (grub_isdigit): Moved from here ...
35731 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35732 * kern/misc.c (grub_isgraph): Moved from here ...
35733 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35734 * kern/misc.c (grub_tolower): Moved from here ...
35735 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35737 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35739 * script/sh/function.c (grub_script_function_find): Cut error message
35740 not to flood terminal.
35741 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35743 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35745 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35747 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35748 `report' grub_uint8_t *.
35749 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35750 Use a 50-millisecond timeout rather than just repeating
35751 grub_usb_keyboard_getreport 50 times.
35752 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35754 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35756 Rename *_partition_map to part_*
35758 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35759 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35760 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35761 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35763 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35765 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35766 * util/grub-probe.c (probe_partmap): Don't transform partition name
35767 to get module name.
35769 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35771 Fix OpenBSD and NetBSD support.
35773 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35774 memory address conflict.
35775 (OPENBSD_MMAP_ACPI): New definition.
35776 (OPENBSD_MMAP_NVS): Likewise.
35777 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35778 and OPENBSD_MMAP_NVS.
35779 Add memory map terminator
35780 Explicit cast when calling grub_unix_real_boot.
35781 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35783 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35785 Let user specify NetBSD root device.
35787 * loader/i386/bsd.c (netbsd_root): New variable.
35788 (netbsd_opts): New option 'root'.
35789 (NETBSD_ROOT_ARG): New macro.
35790 (grub_netbsd_boot): Use 'netbsd_root'.
35791 (grub_bsd_unload): Free 'netbsd_root'.
35792 (grub_cmd_netbsd): Fill 'netbsd_root'.
35794 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35796 Support for 64-bit NetBSD.
35798 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35799 point when booting non-FreeBSD.
35801 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35803 Support --no-smp and --no-acpi for NetBSD.
35805 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35806 (NETBSD_AB_NOACPI): Likewise.
35807 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35808 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35810 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35812 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35814 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35815 errors. Call grub_error when needed.
35817 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35819 * commands/search.c (search_fs): Try searching without autoload first.
35820 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35821 filesystem module explicitly for faster booting.
35823 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35825 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35827 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35829 * util/grub.d/30_os-prober.in: Disable os-prober if
35830 `GRUB_DISABLE_OS_PROBER' was set to true.
35832 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35834 * partmap/pc.c: Rename to ...
35835 * partmap/msdos.c: ... this. Update all users.
35836 (grub_pc_partition_map): Rename to ...
35837 (grub_msdos_partition_map): ... this. Update all users.
35839 * parttool/pcpart.c: Rename to ...
35840 * parttool/msdospart.c: ... this. Update all users.
35842 * include/grub/pc_partition.h: Rename to ...
35843 * include/grub/msdos_partition.h: ... this. Update all users.
35844 (grub_pc_partition_bsd_entry): Rename to ...
35845 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35846 (grub_pc_partition_disk_label): Rename to ...
35847 (grub_msdos_partition_disk_label): ... this. Update all users.
35848 (grub_pc_partition_entry): Rename to ...
35849 (grub_msdos_partition_entry): ... this. Update all users.
35850 (grub_pc_partition_mbr): Rename to ...
35851 (grub_msdos_partition_mbr): ... this. Update all users.
35852 (grub_pc_partition): Rename to ...
35853 (grub_msdos_partition): ... this. Update all users.
35854 (grub_pc_partition_is_empty): Rename to ...
35855 (grub_msdos_partition_is_empty): ... this. Update all users.
35856 (grub_pc_partition_is_extended): Rename to ...
35857 (grub_msdos_partition_is_extended): ... this. Update all users.
35858 (grub_pc_partition_is_bsd): Rename to ...
35859 (grub_msdos_partition_is_bsd): ... this. Update all users.
35861 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35862 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35863 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35864 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35865 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35866 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35867 (gpt_mod_LDFLAGS): Rename to ...
35868 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35869 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35870 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35871 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35872 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35873 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35874 (part_gpt_mod_LDFLAGS): ... this.
35875 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35876 `pcpart.mod' to `msdospart.mod'.
35877 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35879 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35880 (msdospart_mod_LDFLAGS): ... this.
35882 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35884 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35885 (openbsd_opts): Likewise.
35886 (netbsd_opts): Likewise.
35887 (freebsd_flags): Added 0 terminator.
35888 (openbsd_flags): Likewise.
35889 (netbsd_flags): Likewise.
35890 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35891 (grub_cmd_freebsd): Transformed into extended command.
35892 (grub_cmd_openbsd): Likewise.
35893 (grub_cmd_netbsd): Likewise.
35894 (cmd_freebsd): Changed type to grub_extcmd_t.
35895 (cmd_openbsd): Likewise.
35896 (cmd_netbsd): Likewise.
35897 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35898 grub_cmd_openbsd as extended commands.
35899 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35900 cmd_netbsd and cmd_openbsd
35902 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35904 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35906 2009-08-21 Pavel Roskin <proski@gnu.org>
35908 * Makefile.in (install-local): When checking if a file is in the
35909 build directory, use "test -e" to detect symlinks.
35911 * Makefile.in (install-local): Remove all files in
35912 $(DESTDIR)$(pkglibdir) before installing new files there.
35914 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35916 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35919 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35921 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35922 explicitly specified by the user.
35924 2009-08-18 Pavel Roskin <proski@gnu.org>
35926 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
35927 grub_uint8_t pointer for data.
35928 * include/grub/fbutil.h (struct grub_video_fbblit_info):
35930 * video/fb/fbutil.c: Remove unnecessary casts.
35932 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35936 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
35937 (grub_vbe_set_video_mode): Save active mode info
35938 only after setting the mode.
35939 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
35942 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35944 Rename variables for clarity.
35946 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
35947 (active_vbe_mode_info): ... this. All users updated.
35948 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
35950 (initial_mode): Rename to ...
35951 (initial_vbe_mode): ... this. All users updated.
35952 (mode_in_use): Rename to ..
35953 (vbe_mode_in_use): ... this. All users updated.
35954 (mode_list): Rename to ..
35955 (vbe_mode_list): ... this. All users updated.
35956 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
35957 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
35958 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
35959 'mode_list_size' to 'vbe_mode_list_size'.
35960 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
35961 'best_mode_info' to 'best_vbe_mode_info' and
35962 'best_mode' to 'best_vbe_mode'
35964 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35966 Remove duplicate grub_video_fb_get_video_ptr.
35968 * include/grub/fbutil.h (get_data_ptr): Rename to ...
35969 (grub_video_fb_get_video_ptr): ... this.
35970 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
35971 * video/fb/fbutil.c: Add comment about addressing.
35972 (get_data_ptr): Rename to ...
35973 (grub_video_fb_get_video_ptr): ... this. All users updated.
35974 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
35976 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35978 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
35979 grub_dprintf() that was just added.
35981 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35983 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
35984 (DEFAULT_VIDEO_MODE): Remove macros.
35985 (grub_linux_boot): Remove assumption that Linux has FB support,
35986 and use "text" as default video mode.
35988 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
35990 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
35992 * fs/fat.c (grub_fat_read_data): Likewise.
35994 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35996 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
35998 (grub_module): Likewise.
36000 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36002 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36003 mbi->cmdline but free playground.
36005 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36007 Handle group offset on UFS1.
36009 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36010 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36012 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36014 Split ufs.mod into ufs1.mod and ufs2.mod.
36016 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36017 (grub_fstest_SOURCES): Likewise.
36018 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36019 (ufs_mod_SOURCES): Remove.
36020 (ufs_mod_CFLAGS): Likewise.
36021 (ufs_mod_LDFLAGS): Likewise.
36022 (ufs1_mod_SOURCES): New variable.
36023 (ufs1_mod_CFLAGS): Likewise.
36024 (ufs1_mod_LDFLAGS): Likewise.
36025 (ufs2_mod_SOURCES): New variable.
36026 (ufs2_mod_CFLAGS): Likewise.
36027 (ufs2_mod_LDFLAGS): Likewise.
36028 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36029 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36031 (grub_emu_SOURCES): Likewise.
36032 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36033 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36034 (grub_setup_SOURCES): Likewise.
36035 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36036 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36037 (grub_setup_SOURCES): Likewise.
36038 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36040 * fs/ufs2.c: New file.
36041 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36043 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36047 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36048 subsystem at the end.
36049 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36050 (video_fb_mod_SOURCES): New variable.
36051 (video_fb_mod_CFLAGS): Likewise.
36052 (video_fb_mod_LDFLAGS): Likewise.
36053 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36054 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36055 * video/i386/pc/vbeblit.c: Moved from here ...
36056 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36057 * video/i386/pc/vbefill.c: Moved from here ...
36058 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36059 * video/i386/pc/vbeutil.c: Moved from here ...
36060 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36061 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36062 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36063 * include/grub/i386/pc/vbefill.h: Moved from here ...
36064 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36065 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36066 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36067 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36068 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36069 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36070 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36071 (grub_video_adapter): Added 'get_info_and_fini'.
36072 (grub_video_get_info_and_fini): New prototype.
36073 (grub_video_set_mode): make modestring const char *.
36074 * loader/i386/linux.c (grub_linux_setup_video): Use
36075 grub_video_get_info_and_fini.
36076 (grub_linux_boot): Move modesetting just before booting.
36077 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36078 grub_video_get_info_and_fini.
36079 * video/i386/pc/vbe.c: Moved framebuffer part ...
36080 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36081 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36082 grub_video_fbstd_colors and grub_video_fb_set_palette.
36083 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36084 grub_video_fb_init.
36085 (grub_video_vbe_fini): Use grub_video_fb_fini.
36086 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36087 render_target and use grub_video_fb_set_active_render_target and
36088 grub_video_fb_set_palette.
36089 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36090 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36091 (grub_video_vbe_adapter): Use framebuffer.
36092 * video/video.c (grub_video_get_info_and_fini): New function.
36093 (grub_video_set_mode): Make modestring const char *.
36094 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36095 values are already initialised.
36097 2009-08-14 Pavel Roskin <proski@gnu.org>
36099 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36101 * boot/i386/pc/diskboot.S: Likewise.
36102 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36103 sectors allow compilation on MacOSX.
36104 * conf/i386-pc.rmk: Enable unconditional compilation of
36107 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36109 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36110 * util/grub.d/00_header.in: Enter interruptible sleep if
36111 GRUB_HIDDEN_TIMEOUT is set.
36113 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36115 * include/grub/symbol.h: Add the LOCAL macro.
36116 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36117 starting with "L_".
36119 2009-08-13 Pavel Roskin <proski@gnu.org>
36121 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36122 any modern compilers we support.
36124 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36125 Use local labels starting with "L_" so that Apple assembler
36126 knows they are local.
36128 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36130 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36131 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36132 (bsd_kernel_types): ... this enum.
36134 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36135 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36136 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36138 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36139 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36140 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36143 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36145 * util/grub-dumpdevtree: Moved from here ...
36146 * util/i386/efi/grub-dumpdevtree: ... to here.
36147 (hexify): New function. Converts a string to its hex version.
36148 Generate hex versions of "efi" and "device-properties" by calling
36149 hexify() on the ASCII strings rather than by hardcoding numbers.
36151 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36153 * fs/jfs.c: Update copyright year.
36155 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36157 * util/grub.d/00_header.in: Fix a comment.
36158 * util/grub.d/10_linux.in: Likewise.
36159 * util/grub.d/10_windows.in: Likewise.
36160 * util/grub.d/10_hurd.in: Likewise.
36162 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36164 * util/grub-mkconfig.in: Allow the user to specify the used font
36167 2009-08-08 Pavel Roskin <proski@gnu.org>
36169 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36170 available, xfs.mod needs it now.
36172 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36173 the "g" modifier in sed when the intention is to strip something
36174 once. This fixes comparison of kernels with multiple dashes.
36176 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36177 on it. Add missing space before closing bracket. Fix
36178 misleading formatting.
36180 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36182 * docs/grub.texi: Major overhaul. Remove all sections that are
36183 specific to GRUB Legacy, or mostly composed of Legacy-specific
36186 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36188 * docs/version.texi: New file. Provides version information for
36191 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36193 * docs/grub.texi: Update CVS information to SVN.
36194 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36196 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36198 * util/grub-mkconfig.in: Remove a wrong `fi'.
36200 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36202 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36203 (grub_jfs_uuid): New function.
36204 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36206 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36208 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36210 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36211 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36213 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36215 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36216 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36219 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36220 not just "vmlinu[zx]".
36221 Moved from here ...
36222 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36225 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36226 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36229 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36231 * util/grub.d/10_freebsd.in: Use an absolute device path for
36232 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36234 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36236 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36237 handling of multiple abstraction modules.
36239 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36241 Fix a bug resulting in black screen when loading Linux using a
36244 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36247 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36248 (grub_vbe_bios_getset_dac_palette_width): New function.
36249 (grub_vbe_bios_get_dac_palette_width)
36250 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36251 grub_vbe_bios_getset_dac_palette_width()).
36253 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36254 check for return status.
36255 (grub_vbe_get_video_mode_info): When getting information for a packed
36256 mode (<= 8 bpp), obtain DAC palette width using
36257 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36258 {red,green,blue}_mark_size.
36260 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36262 * commands/search.c (options): Fix help output to match actual code.
36264 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36266 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36269 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36271 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36272 on XFS or ReiserFS.
36274 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36276 Support Apple partition map with sector size different from 512 bytes.
36278 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36279 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36280 and 'apart.partmap_size'.
36282 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36283 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36287 * commands/i386/cpuid.c (options): New variable.
36288 (grub_cmd_cpuid): Return real error.
36289 (GRUB_MOD_INIT(cpuid)): Declare options.
36291 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36293 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36296 2009-07-31 Bean <bean123ch@gmail.com>
36298 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36300 (grub_fshelp_node): Move inode field to the end.
36301 (grub_xfs_data): Remove inode field.
36302 (grub_xfs_inode_block): Calculate inode size using sblock.
36303 (grub_xfs_inode_offset): Likewise.
36304 (grub_xfs_read_inode): Calculate inode size using sblock.
36305 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36306 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36307 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36308 to match inode size.
36309 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36310 not accessible when data is null.
36311 (grub_xfs_open): Likewise.
36313 2009-07-31 Bean <bean123ch@gmail.com>
36315 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36316 Don't change pv->disk if it's already set.
36318 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36319 (grub_raid_register): ... here.
36320 (grub_raid_rescan): Removed.
36322 * include/grub/raid.h (grub_raid_rescan): Removed.
36324 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36325 (fstest): Replace grub_raid_rescan with module fini function followed
36328 * util/grub-probe.c: Add include file <grub/raid.h>.
36329 (probe_raid_level): New function.
36330 (probe): Detect abstraction by walking the disk device, support two
36331 level of abstraction (LVM on RAID) when detecting partition map.
36333 2009-07-31 Pavel Roskin <proski@gnu.org>
36335 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36336 to grub_zalloc(), it was erroneous.
36337 Reported by Bean <bean123ch@gmail.com>
36339 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36341 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36342 embedding zone, not only the first one.
36344 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36346 * term/gfxterm.c (clear_char): New function.
36347 (grub_virtual_screen_setup): Use clear_char.
36348 (scroll_up): Likewise.
36349 (grub_virtual_screen_cls): Likewise.
36351 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36353 * util/deviceiter.c (get_acceleraid_disk_name): New static
36355 (grub_util_iterate_devices): Handle Accelraid devices.
36356 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36358 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36360 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36361 separator for the suggested gfxpayload string (';' collides with the
36362 parser and needs escaping).
36364 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36366 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36367 Clear direction flag before jumping to OS.
36368 (grub_multiboot2_real_boot): Likewise.
36370 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36372 * util/i386/pc/grub-install: Fix parsing of --disk-module
36375 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36377 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36380 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36382 * util/grub-mkconfig.in (package_version): New variable.
36383 Use it do display the version.
36385 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36387 * kern/file.c (grub_file_open): Revert to previous check with
36390 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36392 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36393 from help line. It's out of sync with code.
36395 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36397 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36398 entries on failed boot.
36400 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36402 * kern/file.c (grub_file_open): Fix an error check.
36404 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36406 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36407 partition map couldn't be identified.
36409 2009-07-23 Pavel Roskin <proski@gnu.org>
36411 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36412 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36413 case of little endian words becomes just an optimization.
36414 Respect const modifier.
36415 (md5_final): Use code that doesn't depend on endianness.
36417 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36418 to avoid loss of upper bits if align is unsigned and shorter
36421 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36423 UUID support for UFS
36425 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36426 (grub_ufs_uuid): New function.
36427 (grub_ufs_fs): add .uuid
36429 2009-07-21 Pavel Roskin <proski@gnu.org>
36431 * kern/dl.c (grub_dl_check_header): Make static.
36433 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36435 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36436 add drivemap for Vista. It breaks Windows 7.
36438 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36440 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36443 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36447 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36448 (grub_fstest_SOURCES): Likewise.
36449 (pkglib_MODULES): Add befs.mod.
36450 (befs_mod_SOURCES): New variable.
36451 (befs_mod_CFLAGS): Likewise.
36452 (befs_mod_LDFLAGS): Likewise.
36453 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36454 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36455 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36456 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36457 (grub_setup_SOURCES): Likewise.
36458 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36459 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36460 (grub_setup_SOURCES): Likewise.
36461 * fs/befs.c: New file.
36462 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36463 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36464 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36465 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36466 (B_KEY_INDEX_ALIGN): New declaration.
36467 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36468 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36469 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36470 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36471 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36472 (grub_afs_mount) [MODE_BFS]: Likewise.
36473 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36474 (grub_afs_fs): Use GRUB_AFS_FSNAME
36475 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36476 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36477 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36478 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36480 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36482 * util/getroot.c (find_root_device): Add support for MacOSX.
36483 * util/hostdisk.c: Likewise.
36485 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36487 * font/font.c (find_glyph): Check whether a font is present to avoid
36488 segmentation fault.
36490 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36492 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36494 2009-07-20 Pavel Roskin <proski@gnu.org>
36496 * configure.ac: Trim excessively wordy excuses.
36498 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36500 Add symlink, mtime and label support to AtheFS.
36502 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36503 (grub_afs_iterate_dir): Handle symlinks.
36504 (grub_afs_open): Use grub_afs_read_symlink.
36505 (grub_afs_dir): Likewise.
36507 (grub_afs_label): New function.
36508 (grub_afs_fs): Add grub_afs_label.
36509 (grub_afs_read_symlink): New function.
36511 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36513 Fix AtheFS support.
36515 * fs/afs.c: Fix comments style.
36516 (grub_afs_blockrun): Declare as packed.
36517 (grub_afs_datastream): Likewise.
36518 (grub_afs_bnode): Likewise.
36519 (grub_afs_btree): Likewise.
36520 (grub_afs_sblock): Likewise.
36521 Declare `name' as char.
36522 (grub_afs_inode): Declare as packed.
36523 Change void *vnode to grub_uint32_t unused.
36524 (grub_afs_iterate_dir): Check that key_size is positive.
36525 (grub_afs_mount): Don't read superblock twice.
36526 (grub_afs_dir): Don't free node in case of error,
36527 grub_fshelp_find_file already handles this.
36528 (grub_afs_open): Likewise.
36530 2009-07-19 Pavel Roskin <proski@gnu.org>
36532 * Makefile.in: Remove LIBLZO and enable_lzo.
36533 * conf/i386-pc.rmk: Remove lzo support.
36534 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36535 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36537 * kern/i386/pc/lzo1x.S: Remove.
36538 * kern/i386/pc/startup.S: Remove lzo support.
36539 * util/i386/pc/grub-mkimage.c: Likewise.
36541 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36543 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36544 * fs/xfs.c (grub_xfs_dir): Likewise.
36545 * fs/afs.c (grub_afs_dir): Likewise.
36546 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36547 (grub_iso9660_open): Likewise.
36548 * fs/jfs.c (grub_jfs_open): Likewise.
36549 * fs/ext2.c (grub_ext2_dir): Likewise.
36550 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36551 * script/sh/lexer.c (grub_script_yylex): Likewise.
36553 2009-07-16 Pavel Roskin <proski@gnu.org>
36555 * configure.ac: Never add "-c" to CFLAGS.
36557 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36559 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36560 grub_cv_cc_efiemu should be used.
36562 * configure.ac: Typo fixes.
36564 * kern/mm.c (grub_zalloc): New function.
36565 (grub_debug_zalloc): Likewise.
36566 * include/grub/mm.h: Declare grub_zalloc() and
36567 grub_debug_zalloc().
36568 * util/misc.c (grub_zalloc): New function.
36569 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36570 instead of grub_malloc(), remove unneeded initializations.
36571 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36572 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36573 * commands/parttool.c (grub_cmd_parttool): Likewise.
36574 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36575 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36576 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36577 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36578 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36579 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36580 (grub_cmd_efiemu_pnvram): Likewise.
36581 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36582 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36583 (grub_iso9660_iterate_dir): Likewise.
36584 * fs/jfs.c (grub_jfs_opendir): Likewise.
36585 * fs/ntfs.c (list_file): Likewise.
36586 (grub_ntfs_mount): Likewise.
36587 * kern/disk.c (grub_disk_open): Likewise.
36588 * kern/dl.c (grub_dl_load_core): Likewise.
36589 * kern/elf.c (grub_elf_file): Likewise.
36590 * kern/env.c (grub_env_context_open): Likewise.
36591 (grub_env_set): Likewise.
36592 (grub_env_set_data_slot): Likewise.
36593 * kern/file.c (grub_file_open): Likewise.
36594 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36595 * loader/i386/multiboot.c (grub_module): Likewise.
36596 * loader/xnu.c (grub_xnu_create_key): Likewise.
36597 (grub_xnu_create_value): Likewise.
36598 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36599 (read_config_file): Likewise.
36600 * normal/menu_entry.c (make_screen): Likewise.
36601 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36602 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36603 * script/sh/script.c (grub_script_parse): Likewise.
36604 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36605 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36606 * video/readers/png.c (grub_png_output_byte): Likewise.
36607 (grub_video_reader_png): Likewise.
36609 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36611 Enable all targets that can be built by default
36613 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36614 grub-mkfont and grub-fstest if they can be built
36616 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36618 Fix hang and segmentation fault in grub-emu-usb
36620 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36621 * util/usb.c (grub_libusb_devices): likewise
36622 (grub_libusb_init): rename to ...
36623 (GRUB_MOD_INIT (libusb)):...this
36624 (grub_libusb_fini): rename to ..
36625 (GRUB_MOD_FINI (libusb)):...this
36626 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36627 * include/grub/disk.h (grub_raid_init): removed, it's useless
36628 (grub_raid_fini): likewise
36629 (grub_lvm_init): likewise
36630 (grub_lvm_fini): likewise
36631 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36634 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36638 * Makefile.in (LIBUSB): new macro
36639 * genmk.rb (Utility/print_tail): new method
36640 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36641 (top level): call util.print_tail at the end.
36643 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36645 Make FreeBSD accept zpool.cache
36647 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36648 type is /boot/zfs/zpool.cache
36650 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36654 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36655 correct wrong typedef
36656 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36658 2009-07-15 Pavel Roskin <proski@gnu.org>
36660 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36661 * kern/disk.c (struct grub_disk_cache): Likewise.
36663 * commands/probe.c (options): Typo fix.
36665 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36666 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36668 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36670 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36671 the end of "Error" to make the message more readable.
36673 * boot/i386/pc/boot.S (kernel_segment): Remove.
36674 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36677 * boot/i386/pc/boot.S (boot_version): Remove.
36678 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36681 * include/grub/i386/pc/boot.h: Sort all offsets.
36682 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36683 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36684 * boot/i386/pc/boot.S: Assert location of every offset listed in
36685 include/grub/i386/pc/boot.h.
36687 2009-07-13 Pavel Roskin <proski@gnu.org>
36689 * include/grub/i386/coreboot/machine.h: Rename
36690 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36691 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36692 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36694 * kern/dl.c: Force native word size to suppress warnings when
36695 compiling grub-emu.
36697 * kern/device.c (grub_device_iterate): Change struct part_ent to
36698 hold the name, not a pointer to it. Use one grub_malloc() per
36699 partition, not two. Free partition_name if grub_malloc() fails.
36700 Set ents to NULL only before grub_partition_iterate() is called.
36702 2009-07-11 Bean <bean123ch@gmail.com>
36704 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36707 2009-07-10 Bean <bean123ch@gmail.com>
36708 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36710 * kern/ieee1275/openfw.c (grub_children_iterate)
36711 (grub_devalias_iterate): Fix size evaluation for property or path
36712 strings, which was broken since r2132.
36714 2009-07-07 Pavel Roskin <proski@gnu.org>
36716 * commands/search.c (search_file): Merge into ...
36717 (search_fs): ... this. Accept search type as argument.
36718 (grub_cmd_search): Pass search type to search_fs().
36720 * include/grub/util/console.h: New file.
36721 * util/console.c: Use it instead of grub/machine/console.h.
36722 * util/grub-emu.c: Likewise.
36724 * lib/arg.c (find_long_option): Remove.
36725 (find_long): Add `len' argument, make `s' const char *.
36726 (grub_arg_parse): Parse long options in place, not in a
36729 2009-07-06 Pavel Roskin <proski@gnu.org>
36731 * commands/search.c (search_fs): Fix potential NULL pointer
36734 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36737 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36739 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36742 2009-07-05 Pavel Roskin <proski@gnu.org>
36744 * include/grub/i386/linux.h (struct linux_kernel_params):
36745 Restore padding3, it's still needed.
36747 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36749 * util/osdetect.lua: Likewise.
36751 2009-07-05 Bean <bean123ch@gmail.com>
36753 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36755 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36756 (grub_lua_getenv): Likewise.
36757 (grub_lua_setenv): Likewise.
36758 (save_errno): New function.
36759 (push_result): Likewise.
36760 (grub_lua_enum_device): Likewise.
36761 (grub_lua_enum_file): Likewise.
36762 (grub_lua_file_open): Likewise.
36763 (grub_lua_file_close): Likewise.
36764 (grub_lua_file_seek): Likewise.
36765 (grub_lua_file_read): Likewise.
36766 (grub_lua_file_getline): Likewise.
36767 (grub_lua_file_getsize): Likewise.
36768 (grub_lua_file_getpos): Likewise.
36769 (grub_lua_file_eof): Likewise.
36770 (grub_lua_file_exist): Likewise.
36771 (grub_lua_add_menu): Likewise.
36773 * script/lua/grub_lua.h (isupper): New inline function.
36774 (islower): Likewise.
36775 (ispunct): Likewise.
36776 (isxdigit): Likewise.
36777 (strcspn): Change to normal function.
36778 (strpbkr): New function declaration.
36779 (memchr): Likewise.
36781 * script/lua/grub_main.c (scan_str): New function.
36782 (strcspn): Likewise.
36783 (strpbrk): Likewise.
36784 (memchr): Likewise.
36786 * script/lua/linit.c (lualibs): Enable the string library.
36788 * util/osdetect.lua: New file.
36790 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36792 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36793 `capabilities' member.
36795 2009-07-02 Pavel Roskin <proski@gnu.org>
36797 * genparttoollist.sh: Add missing newline at the end.
36799 2009-07-01 Pavel Roskin <proski@gnu.org>
36801 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36803 * util/hostdisk.c (open_device): Remove `const' from
36804 `sysctl_size', as sysctlbyname() can change it (in this case it
36805 doesn't actually happen).
36807 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36808 using signed long int constants.
36810 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36811 constant to avoid a warning on FreeBSD.
36813 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36816 * Makefile.in: Install include/grub/machine symlink.
36818 * Makefile.in: When installing symlinks, use "cp -fR", which
36819 works on FreeBSD and MacOSX.
36820 From Yves Blusseau <cl7m42e02@sneakemail.com>
36822 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36823 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36825 * util/misc.c: Move grub_reboot() and grub_halt() ...
36826 * util/grub-emu.c: ... here. Make main_env static.
36827 * include/grub/util/misc.h: Remove main_env.
36829 * kern/mm.c: Use correct format to print size_t.
36831 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36832 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36833 * kern/powerpc/dl.c: Likewise.
36834 * kern/sparc64/dl.c: Likewise.
36835 * kern/x86_64/dl.c: Likewise.
36837 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36839 Fix grub-emu build on sparc64-ieee1275.
36841 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36842 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36844 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36846 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36847 (grub_reboot, grub_halt): New functions.
36849 * util/i386/pc/misc.c: Delete. Update all users.
36850 * util/sparc64/ieee1275/misc.c: Likewise.
36851 * util/powerpc/ieee1275/misc.c: Likewise.
36853 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36855 * conf/i386.rmk (setjmp_mod_SOURCES)
36856 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36857 * conf/common.rmk (setjmp_mod_SOURCES)
36858 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36859 to use $(target_cpu).
36860 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36861 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36862 * conf/powerpc-ieee1275.rmk: Likewise.
36863 * conf/sparc64-ieee1275.rmk: Likewise.
36865 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36866 $(target_cpu) for kern/$(target_cpu)/dl.c.
36867 * conf/i386-efi.rmk: Likewise.
36868 * conf/i386-ieee1275.rmk: Likewise.
36869 * conf/x86_64-efi.rmk: Likewise.
36870 * conf/i386-coreboot.rmk: Likewise.
36871 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36872 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36873 kern/$(target_cpu)/cache.S.
36874 * conf/sparc64-ieee1275.rmk: Likewise.
36876 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36878 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36879 type to `grub_uint8_t', and adjust `padding9' accordingly.
36881 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36883 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36885 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36886 assembly in final jump, using register constraints.
36888 (grub_linux_boot): For text mode, initialize `have_vga' using
36889 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36891 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36892 right before the final jump.
36894 Set `video_mode' to 0x3.
36896 Document initialization of `video_page', `video_mode' and
36899 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36901 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36902 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
36903 and set GRUB_LINUX_FLAG_QUIET appropriately.
36905 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36907 Fix build on Debian / sparc.
36909 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36911 2009-06-28 Pavel Roskin <proski@gnu.org>
36913 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36916 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36918 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36920 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36923 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36927 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
36928 file can't be opened. grub_file_open() is already supposed to set
36929 grub_errno / grub_errmsg appropriately.
36930 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36932 2009-06-27 Pavel Roskin <proski@gnu.org>
36933 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36935 * include/grub/dl.h: Include grub/elf.h.
36936 (struct grub_dl): Add symtab field.
36937 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
36938 GRUB_MODULES_MACHINE_READONLY.
36939 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
36940 of the header for read-only modules.
36941 (grub_dl_unload): Free mod->symtab for read-only modules.
36942 * kern/i386/dl.c: Use mod->symtab.
36943 * kern/powerpc/dl.c: Likewise.
36944 * kern/sparc64/dl.c: Likewise.
36945 * kern/x86_64/dl.c: Likewise.
36947 * conf/i386-qemu.rmk: New file.
36948 * kern/i386/qemu/startup.S: Likewise.
36949 * kern/i386/qemu/mmap.c: Likewise.
36950 * boot/i386/qemu/boot.S: Likewise.
36951 * include/grub/i386/qemu/time.h: Likewise.
36952 * include/grub/i386/qemu/serial.h: Likewise.
36953 * include/grub/i386/qemu/kernel.h: Likewise.
36954 * include/grub/i386/qemu/console.h: Likewise.
36955 * include/grub/i386/qemu/boot.h: Likewise.
36956 * include/grub/i386/qemu/init.h: Likewise.
36957 * include/grub/i386/qemu/machine.h: Likewise.
36958 * include/grub/i386/qemu/loader.h: Likewise.
36959 * include/grub/i386/qemu/memory.h: Likewise.
36961 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
36962 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
36963 [qemu] (pkglib_IMAGES): Add `boot.img'.
36964 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
36965 [qemu] (boot_img_FORMAT): New variables.
36966 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
36967 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
36968 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
36969 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
36970 [qemu] (kernel_img_FORMAT): New variables.
36972 * configure.ac: Recognise `i386-qemu'.
36974 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
36975 (for no compression).
36976 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
36977 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
36978 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
36979 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
36982 2009-06-27 Pavel Roskin <proski@gnu.org>
36984 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
36986 * efiemu/prepare32.c: Likewise.
36987 * efiemu/prepare64.c: Likewise.
36989 2009-06-26 Pavel Roskin <proski@gnu.org>
36991 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
36992 * include/grub/elf.h: Define symbols without "32" or "64" based
36993 on GRUB_TARGET_WORDSIZE.
36994 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
36995 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
36997 * efiemu/loadcore64.c: Likewise.
36998 * loader/i386/bsd32.c: Likewise.
36999 * loader/i386/bsd64.c: Likewise.
37000 * kern/dl.c: Remove own ELF definitions.
37001 * util/i386/efi/grub-mkimage.c: Likewise.
37003 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37005 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37006 segment 0x0 unconditionally, because the reference generated by
37007 GAS is an absolute address.
37009 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37011 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37012 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37014 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37016 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37017 indexes. Check for -f explicitly.
37018 (search_file): Improve error message.
37019 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37021 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37023 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37024 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37026 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37028 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37029 * conf/i386-ieee1275.rmk: Likewise.
37030 * conf/i386-coreboot.rmk: Likewise.
37032 * kern/i386/pc/startup.S (grub_stop): Remove function.
37033 * kern/i386/ieee1275/startup.S: Likewise.
37034 * kern/i386/coreboot/startup.S: Likewise.
37035 * kern/i386/misc.S (grub_stop): New function.
37037 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37039 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37040 * kern/i386/realmode.S (real_to_prot): ... to here.
37042 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37044 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37046 (kernel_elf_SOURCES): Rename to ...
37047 (kernel_img_SOURCES): ... this.
37048 (kernel_elf_HEADERS): Rename to ...
37049 (kernel_img_HEADERS): ... this. Update all users.
37050 (kernel_elf_ASFLAGS): Rename to ...
37051 (kernel_img_ASFLAGS): ... this.
37052 (kernel_elf_CFLAGS): Rename to ...
37053 (kernel_img_CFLAGS): ... this.
37054 (kernel_elf_LDFLAGS): Rename to ...
37055 (kernel_img_LDFLAGS): ... this.
37056 * conf/i386-coreboot.rmk: Likewise.
37057 * conf/powerpc-ieee1275.rmk: Likewise.
37059 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37062 2009-06-21 Pavel Roskin <proski@gnu.org>
37064 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37065 to match nested functions.
37066 * loader/sparc64/ieee1275/linux.c: Likewise.
37068 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37070 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37072 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37073 all i386 platforms.
37075 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37077 Fix asm file handling on ELF, and remove workarounds.
37079 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37080 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37081 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37082 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37084 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37086 Load BSD ELF modules
37088 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37089 and loader/i386/bsd64.c
37090 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37091 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37092 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37093 (grub_freebsd_load_elfmodule32): New declaration
37094 (grub_freebsd_load_elfmoduleobj64): Likewise
37095 (grub_freebsd_load_elf_meta32): Likewise
37096 (grub_freebsd_load_elf_meta64): Likewise
37097 (grub_freebsd_add_meta): Likewise
37098 (grub_freebsd_add_meta_module): Likewise
37099 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37100 (grub_freebsd_add_meta_module): Likewise and move module-specific
37101 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37102 (grub_cmd_freebsd): Add elf-kernel specific parts
37103 based on grub_freebsd_add_meta_module
37104 (grub_cmd_freebsd_module): Add type parsing moved from
37105 grub_freebsd_add_meta_module
37106 (grub_cmd_freebsd_module_elf): New function
37107 (cmd_freebsd_module_elf): New variable
37108 (GRUB_MOD_INIT): Register freebsd_module_elf
37109 * loader/i386/bsd32.c: New file
37110 * loader/i386/bsd64.c: Likewise
37111 * loader/i386/bsdXX.c: Likewise
37112 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37113 (grub_elf64_load): Likewise
37114 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37116 (grub_elf64_load_hook_t): Likewise
37118 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37120 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37122 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37123 don't write a menu entry for recovery mode.
37125 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37127 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37128 after it's no longer needed.
37130 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37132 * include/grub/i386/loader.h (grub_linux_prot_size)
37133 (grub_linux_tmp_addr, grub_linux_real_addr)
37134 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37135 GRUB_MACHINE_PCBIOS.
37136 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37137 common grub_util_info() call to ...
37138 (generate_image): ... here.
37139 Fix use of uninitialized memory, comparison of signed with
37140 unsigned integers and memory leak.
37141 Remove bogus module address message.
37143 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37145 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37147 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37149 2009-06-19 Pavel Roskin <proski@gnu.org>
37151 * configure.ac: Remove stray AC_MSG_CHECKING.
37153 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37155 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37157 2009-06-18 Pavel Roskin <proski@gnu.org>
37159 * conf/common.rmk: Add fs_file.mod.
37160 * disk/fs_file.c: New file.
37161 * include/grub/disk.h (enum grub_disk_dev_id): Add
37162 GRUB_DISK_DEVICE_FILE_ID.
37164 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37166 Fix build with Apple's toolchain. Part 2
37168 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37171 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37173 Fix build with Apple's toolchain. Part 1
37175 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37177 * configure.ac: remove a leftover AC_MSG_RESULT
37178 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37181 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37185 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37186 (decomp_block): initialize ch
37187 use grub_memcpy instead of memcpy
37189 2009-06-17 Pavel Roskin <proski@gnu.org>
37191 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37192 version, use declarations needed to use vga_text as the startup
37195 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37196 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37198 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37199 and grub_at_keyboard_fini(), it's done on module load and
37202 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37204 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37205 file can't be found.
37206 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37208 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37210 Fix newline handling
37212 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37213 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37214 (grub_script_yylex): don't segfault on unterminated script
37215 newline terminates command and variable
37217 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37219 avoid double grub_adjust_range call. Bug reported by David Simner
37221 * kern/disk.c (grub_disk_write): change to raw disk access before
37224 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37226 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37227 spaces, for the benefit of help2man.
37228 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37230 2009-06-16 Pavel Roskin <proski@gnu.org>
37232 * kern/i386/halt.c: Include grub/machine/init.h.
37233 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37235 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37237 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37238 drivemap menuentry.
37240 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37242 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37245 2009-06-16 Pavel Roskin <proski@gnu.org>
37247 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37248 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37249 save %dx, we only need %dl and we never change it.
37250 * boot/i386/pc/cdboot.S: Don't set the root drive.
37251 * boot/i386/pc/pxeboot.S: Likewise.
37252 * include/grub/i386/pc/boot.h: Remove
37253 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37254 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37255 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37256 * kern/i386/pc/init.c (make_install_device): Remove references
37257 to grub_root_drive.
37258 * kern/i386/pc/startup.S: Likewise.
37259 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37261 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37265 * commands/xnu_uuid.c: new file
37266 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37267 (xnu_uuid_mod_SOURCES): new variable
37268 (xnu_uuid_mod_CFLAGS): likewise
37269 (xnu_uuid_mod_LDFLAGS): likewise
37270 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37271 * conf/i386-ieee1275.rmk: likewise
37272 * conf/i386-pc.rmk: likewise
37273 * conf/powerpc-ieee1275.rmk: likewise
37274 * conf/sparc64-ieee1275.rmk: likewise
37275 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37277 2009-06-16 Pavel Roskin <proski@gnu.org>
37279 * configure.ac: Avoid '==' in test command, it's not portable.
37281 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37285 * commands/probe.c: new file
37286 * conf/common.rmk (pkglib_MODULES): add probe.mod
37287 (probe_mod_SOURCES): new variable
37288 (probe_mod_CFLAGS): likewise
37289 (probe_mod_LDFLAGS): likewise
37290 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37291 * conf/i386-ieee1275.rmk: likewise
37292 * conf/i386-pc.rmk: likewise
37293 * conf/powerpc-ieee1275.rmk: likewise
37294 * conf/sparc64-ieee1275.rmk: likewise
37296 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37298 Fix handling of string like \"hello\" and "a
37301 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37302 (grub_script_yylex): fix parsing of quoting, escaping and newline
37304 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37306 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37309 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37311 * util/grub-mkconfig.in: Fix parsing of --output option.
37313 2009-06-12 Pavel Roskin <proski@gnu.org>
37315 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37316 genmk.rb don't need to be generated or installed.
37318 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37320 * commands/i386/pc/drivemap_int13h.S: add more comments
37322 2009-06-11 Pavel Roskin <proski@gnu.org>
37324 * Makefile.in (uninstall): Uninstall manuals.
37326 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37327 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37328 and update-grub_lib in two places.
37329 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37331 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37332 a compiler warning.
37334 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37335 `entry_lo' to fix variable shadowing.
37337 2009-06-11 Christian Franke <franke@computer.org>
37339 * kern/misc.c (__enable_execute_stack): Add missing return type
37340 to prevent gcc warning.
37342 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37344 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37346 2009-06-11 Pavel Roskin <proski@gnu.org>
37348 * Makefile.in: Don't rely on any scripts being executable.
37349 Always use $(SHELL) to run shell scripts.
37351 * configure.ac: Always define ___main if using -nostdlib. This
37352 fixes tests on Cygwin.
37354 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37358 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37359 is in bytes and not in blocks
37361 2009-06-11 Pavel Roskin <proski@gnu.org>
37363 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37366 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37368 * util/grub.d/30_os-prober.in: Fix a comment. Source
37369 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37370 to set the root device. Place drivemap command in the generated
37373 2009-06-11 Pavel Roskin <proski@gnu.org>
37375 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37376 have long been resolved.
37378 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37380 * util/grub.d/10_linux.in: Capitalise "Linux".
37382 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37384 2009-06-11 Pavel Roskin <proski@gnu.org>
37386 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37387 fix a gcc warning and ensure that the function won't ever exit.
37389 * kern/i386/ieee1275/init.c: Add missing prototype for
37390 grub_stop_floppy().
37392 * loader/ieee1275/multiboot2.c [__i386__]: Include
37393 grub/cpu/multiboot.h.
37395 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37396 casts to short - they are not portable and cause warnings. Fix
37397 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37399 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37403 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37405 (grub_get_root_biosnumber_saved): new variable
37406 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37407 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37408 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37409 %dx after the call if necessary
37410 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37411 (boot_mod_SOURCES): remove
37412 (boot_mod_CFLAGS): remove
37413 (boot_mod_LDFLAGS): remove
37414 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37415 (boot_mod_SOURCES): new variable
37416 (boot_mod_CFLAGS): likewise
37417 (boot_mod_LDFLAGS): likewise
37418 * conf/i386-efi.rmk: likewise
37419 * conf/i386-ieee1275.rmk: likewise
37420 * conf/i386-pc.rmk: likewise
37421 * conf/powerpc-ieee1275.rmk: likewise
37422 * conf/sparc64-ieee1275.rmk: likewise
37423 * conf/x86_64-efi.rmk: likewise
37424 * include/grub/i386/pc/biosnum.h: new file
37425 * lib/i386/pc/biosnum.c: likewise
37426 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37427 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37428 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37430 2009-06-10 Pavel Roskin <proski@gnu.org>
37432 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37433 Use separate variables. Read only the file size at the end, but
37434 not the checksum that we don't use.
37436 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37437 Adjust all callers.
37439 * kern/ieee1275/openfw.c: Remove libc includes.
37440 * kern/ieee1275/cmain.c: Likewise.
37441 * include/grub/ieee1275/ieee1275.h: Likewise.
37443 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37446 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37448 * Makefile.in: Remove all trailing whitespace.
37449 * conf/i386-pc.rmk: Likewise.
37450 * conf/powerpc-ieee1275.rmk: Likewise.
37451 * conf/sparc64-ieee1275.rmk: Likewise.
37452 * docs/grub.texi: Likewise.
37453 * docs/texinfo.tex: Likewise.
37454 * disk/fs_uuid.c: Likewise.
37455 * disk/lvm.c: Likewise.
37456 * disk/scsi.c: Likewise.
37457 * disk/ata.c: Likewise.
37458 * disk/ieee1275/ofdisk.c: Likewise.
37459 * disk/i386/pc/biosdisk.c: Likewise.
37460 * disk/host.c: Likewise.
37461 * disk/raid.c: Likewise.
37462 * disk/efi/efidisk.c: Likewise.
37463 * disk/usbms.c: Likewise.
37464 * disk/memdisk.c: Likewise.
37465 * disk/loopback.c: Likewise.
37466 * kern/powerpc/dl.c: Likewise.
37467 * kern/device.c: Likewise.
37468 * kern/dl.c: Likewise.
37469 * kern/sparc64/dl.c: Likewise.
37470 * kern/ieee1275/ieee1275.c: Likewise.
37471 * kern/term.c: Likewise.
37472 * kern/fs.c: Likewise.
37473 * kern/i386/dl.c: Likewise.
37474 * kern/i386/pc/startup.S: Likewise.
37475 * kern/i386/pc/init.c: Likewise.
37476 * kern/i386/pc/mmap.c: Likewise.
37477 * kern/i386/pc/lzo1x.S: Likewise.
37478 * kern/i386/ieee1275/init.c: Likewise.
37479 * kern/i386/realmode.S: Likewise.
37480 * kern/i386/tsc.c: Likewise.
37481 * kern/partition.c: Likewise.
37482 * kern/corecmd.c: Likewise.
37483 * kern/file.c: Likewise.
37484 * kern/efi/efi.c: Likewise.
37485 * kern/efi/init.c: Likewise.
37486 * kern/efi/mm.c: Likewise.
37487 * kern/main.c: Likewise.
37488 * kern/err.c: Likewise.
37489 * kern/env.c: Likewise.
37490 * kern/disk.c: Likewise.
37491 * kern/generic/millisleep.c: Likewise.
37492 * kern/generic/rtc_get_time_ms.c: Likewise.
37493 * kern/misc.c: Likewise.
37494 * kern/parser.c: Likewise.
37495 * genmk.rb: Likewise.
37496 * configure.ac: Likewise.
37497 * boot/i386/pc/diskboot.S: Likewise.
37498 * boot/i386/pc/pxeboot.S: Likewise.
37499 * boot/i386/pc/boot.S: Likewise.
37500 * boot/i386/pc/lnxboot.S: Likewise.
37501 * boot/i386/pc/cdboot.S: Likewise.
37502 * parttool/pcpart.c: Likewise.
37503 * video/readers/tga.c: Likewise.
37504 * video/video.c: Likewise.
37505 * video/bitmap.c: Likewise.
37506 * lib/envblk.c: Likewise.
37507 * lib/i386/setjmp.S: Likewise.
37508 * fs/xfs.c: Likewise.
37509 * fs/afs.c: Likewise.
37510 * fs/fat.c: Likewise.
37511 * fs/ntfs.c: Likewise.
37512 * fs/udf.c: Likewise.
37513 * fs/affs.c: Likewise.
37514 * fs/iso9660.c: Likewise.
37515 * fs/hfs.c: Likewise.
37516 * fs/fshelp.c: Likewise.
37517 * fs/ext2.c: Likewise.
37518 * fs/jfs.c: Likewise.
37519 * fs/reiserfs.c: Likewise.
37520 * fs/hfsplus.c: Likewise.
37521 * fs/minix.c: Likewise.
37522 * fs/cpio.c: Likewise.
37523 * fs/sfs.c: Likewise.
37524 * fs/ufs.c: Likewise.
37525 * efiemu/prepare.c: Likewise.
37526 * efiemu/loadcore_common.c: Likewise.
37527 * efiemu/runtime/efiemu.sh: Likewise.
37528 * efiemu/runtime/efiemu.S: Likewise.
37529 * efiemu/runtime/efiemu.c: Likewise.
37530 * efiemu/pnvram.c: Likewise.
37531 * efiemu/main.c: Likewise.
37532 * efiemu/i386/pc/cfgtables.c: Likewise.
37533 * efiemu/i386/loadcore64.c: Likewise.
37534 * efiemu/i386/loadcore32.c: Likewise.
37535 * efiemu/loadcore.c: Likewise.
37536 * efiemu/symbols.c: Likewise.
37537 * efiemu/mm.c: Likewise.
37538 * include/grub/autoefi.h: Likewise.
37539 * include/grub/datetime.h: Likewise.
37540 * include/grub/term.h: Likewise.
37541 * include/grub/hfs.h: Likewise.
37542 * include/grub/lvm.h: Likewise.
37543 * include/grub/i386/tsc.h: Likewise.
37544 * include/grub/i386/linux.h: Likewise.
37545 * include/grub/i386/xnu.h: Likewise.
37546 * include/grub/i386/efiemu.h: Likewise.
37547 * include/grub/i386/pc/biosdisk.h: Likewise.
37548 * include/grub/i386/pc/memory.h: Likewise.
37549 * include/grub/i386/pc/vbe.h: Likewise.
37550 * include/grub/parttool.h: Likewise.
37551 * include/grub/video.h: Likewise.
37552 * include/grub/memory.h: Likewise.
37553 * include/grub/fs.h: Likewise.
37554 * include/grub/partition.h: Likewise.
37555 * include/grub/xnu.h: Likewise.
37556 * include/grub/efi/api.h: Likewise.
37557 * include/grub/efi/pe32.h: Likewise.
37558 * include/grub/efi/memory.h: Likewise.
37559 * include/grub/multiboot.h: Likewise.
37560 * include/grub/usbdesc.h: Likewise.
37561 * include/grub/multiboot2.h: Likewise.
37562 * include/grub/acpi.h: Likewise.
37563 * include/grub/efiemu/efiemu.h: Likewise.
37564 * include/grub/disk.h: Likewise.
37565 * include/grub/ieee1275/ieee1275.h: Likewise.
37566 * include/grub/net.h: Likewise.
37567 * include/grub/machoload.h: Likewise.
37568 * include/grub/macho.h: Likewise.
37569 * include/multiboot.h: Likewise.
37570 * genmoddep.awk: Likewise.
37571 * normal/main.c: Likewise.
37572 * normal/menu_entry.c: Likewise.
37573 * normal/menu_viewer.c: Likewise.
37574 * normal/completion.c: Likewise.
37575 * normal/cmdline.c: Likewise.
37576 * normal/misc.c: Likewise.
37577 * normal/datetime.c: Likewise.
37578 * bus/usb/usbtrans.c: Likewise.
37579 * bus/usb/ohci.c: Likewise.
37580 * bus/usb/uhci.c: Likewise.
37581 * bus/usb/usb.c: Likewise.
37582 * mmap/efi/mmap.c: Likewise.
37583 * mmap/i386/pc/mmap_helper.S: Likewise.
37584 * mmap/i386/pc/mmap.c: Likewise.
37585 * mmap/i386/mmap.c: Likewise.
37586 * mmap/i386/uppermem.c: Likewise.
37587 * mmap/mmap.c: Likewise.
37588 * commands/acpi.c: Likewise.
37589 * commands/echo.c: Likewise.
37590 * commands/blocklist.c: Likewise.
37591 * commands/loadenv.c: Likewise.
37592 * commands/usbtest.c: Likewise.
37593 * commands/boot.c: Likewise.
37594 * commands/parttool.c: Likewise.
37595 * commands/search.c: Likewise.
37596 * commands/cat.c: Likewise.
37597 * commands/i386/pc/play.c: Likewise.
37598 * commands/i386/pc/drivemap.c: Likewise.
37599 * commands/i386/pc/vbeinfo.c: Likewise.
37600 * commands/i386/pc/acpi.c: Likewise.
37601 * commands/i386/pc/vbetest.c: Likewise.
37602 * commands/ls.c: Likewise.
37603 * commands/cmp.c: Likewise.
37604 * commands/test.c: Likewise.
37605 * commands/efi/acpi.c: Likewise.
37606 * commands/gptsync.c: Likewise.
37607 * commands/help.c: Likewise.
37608 * partmap/amiga.c: Likewise.
37609 * partmap/apple.c: Likewise.
37610 * partmap/acorn.c: Likewise.
37611 * partmap/pc.c: Likewise.
37612 * partmap/sun.c: Likewise.
37613 * partmap/gpt.c: Likewise.
37614 * script/sh/lexer.c: Likewise.
37615 * script/sh/function.c: Likewise.
37616 * font/font.c: Likewise.
37617 * font/font_cmd.c: Likewise.
37618 * loader/powerpc/ieee1275/linux.c: Likewise.
37619 * loader/efi/chainloader.c: Likewise.
37620 * loader/multiboot_loader.c: Likewise.
37621 * loader/macho.c: Likewise.
37622 * loader/i386/multiboot.c: Likewise.
37623 * loader/i386/linux.c: Likewise.
37624 * loader/i386/pc/linux.c: Likewise.
37625 * loader/i386/pc/multiboot2.c: Likewise.
37626 * loader/i386/pc/chainloader.c: Likewise.
37627 * loader/i386/pc/xnu.c: Likewise.
37628 * loader/i386/bsd_trampoline.S: Likewise.
37629 * loader/i386/efi/linux.c: Likewise.
37630 * loader/i386/multiboot_elfxx.c: Likewise.
37631 * loader/i386/bsd_helper.S: Likewise.
37632 * loader/i386/bsd.c: Likewise.
37633 * loader/i386/linux_trampoline.S: Likewise.
37634 * loader/i386/xnu_helper.S: Likewise.
37635 * loader/i386/xnu.c: Likewise.
37636 * loader/i386/bsd_pagetable.c: Likewise.
37637 * loader/i386/multiboot_helper.S: Likewise.
37638 * loader/xnu.c: Likewise.
37639 * loader/xnu_resume.c: Likewise.
37640 * io/gzio.c: Likewise.
37641 * term/efi/console.c: Likewise.
37642 * term/terminfo.c: Likewise.
37643 * term/ieee1275/ofconsole.c: Likewise.
37644 * term/i386/pc/serial.c: Likewise.
37645 * term/i386/pc/vesafb.c: Likewise.
37646 * term/i386/pc/vga.c: Likewise.
37647 * term/usb_keyboard.c: Likewise.
37648 * term/gfxterm.c: Likewise.
37649 * aclocal.m4: Likewise.
37650 * util/lvm.c: Likewise.
37651 * util/grub.d/30_os-prober.in: Likewise.
37652 * util/grub.d/10_hurd.in: Likewise.
37653 * util/console.c: Likewise.
37654 * util/grub-macho2img.c: Likewise.
37655 * util/grub-probe.c: Likewise.
37656 * util/hostfs.c: Likewise.
37657 * util/i386/pc/grub-mkimage.c: Likewise.
37658 * util/i386/pc/grub-setup.c: Likewise.
37659 * util/i386/efi/grub-mkimage.c: Likewise.
37660 * util/grub-mkconfig.in: Likewise.
37661 * util/raid.c: Likewise.
37662 * util/resolve.c: Likewise.
37663 * util/grub-mkdevicemap.c: Likewise.
37664 * util/grub-emu.c: Likewise.
37665 * util/getroot.c: Likewise.
37666 * util/hostdisk.c: Likewise.
37667 * util/usb.c: Likewise.
37668 * util/grub-editenv.c: Likewise.
37669 * util/misc.c: Likewise.
37671 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37673 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37674 `genparttoollist.sh'.
37675 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37676 Add `*.sh' to the list find searches for and change `mdate.sh'
37679 2009-06-10 Pavel Roskin <proski@gnu.org>
37681 * include/grub/multiboot2.h: Provide compatibility defines for
37683 * include/multiboot2.h: Include stdint.h only if needed, using
37685 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37687 * loader/ieee1275/multiboot2.c: Likewise.
37688 * loader/multiboot2.c: Likewise.
37689 * loader/multiboot_loader.c: Likewise.
37691 * configure.ac: Use -nostdlib when probing for the target. It
37692 should not be required to have libc for the target.
37694 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37695 they fail without libc headers for the target.
37696 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37698 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37699 preprocessor conditionals.
37701 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37702 build system doesn't need to be aware of the tar.c internals.
37704 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37706 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37708 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37710 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37711 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37713 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37715 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37716 aren't available if ata.mod gets used.
37718 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37720 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37721 initialising controller.
37722 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37724 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37726 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37727 to choose between ata and biosdisk module on i386-pc.
37729 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37731 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37732 Subclass and Programming Interface fields in terms of the 3 byte
37733 Class Code register.
37734 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37736 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37737 interface is OHCI. Add grub_dprintf for symmetry with
37739 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37740 interface is UHCI. Add interf variable for programming
37741 interface. Print interface with class/subclass.
37743 * bus/usb/ohci.c: Set interf with correct field.
37745 * bus/usb/uhci.c: Remove unneeded doubled lines.
37746 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37747 Remove whitespace inside comment.
37749 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37751 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37752 as fallback an equivalent option without depth.
37754 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37756 Not fail if unable to retrieve C/H/S on LBA disks
37758 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37759 if unable to retrieve C/H/S on LBA disks
37761 2009-06-08 Pavel Roskin <proski@gnu.org>
37763 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37766 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37768 * Makefile.in (uninstall): Remove all $lib_DATA files.
37770 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37772 Bugfix: install on partitionless device
37774 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37777 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37779 * Makefile.in (uninstall): Remove all $include_DATA files.
37781 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37783 * commands/true.c: New file. Implement the true and false commands.
37784 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37785 (true_mod_SOURCES): New variable.
37786 (true_mod_CFLAGS): Likewise.
37787 (true_mod_LDFLAGS): Likewise.
37789 2009-06-05 Colin D Bennett <colin@gibibit.com>
37791 Optimized font character lookup using binary search instead of linear
37792 search. Fonts now are required to have the character index ordered by
37795 * font/font.c (load_font_index): Verify that fonts have ordered
37797 (find_glyph): Use binary search instead of linear search to find a
37798 character in a font.
37800 2009-06-05 Michael Scherer <misc@mandriva.org>
37802 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37803 uses case sensitive btree.
37804 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37805 only for case insensitive filesystems.
37807 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37809 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37810 * conf/common.rmk (search_mod_CFLAGS): likewise
37812 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37814 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37815 compensate a compiler bug
37817 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37819 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37822 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37824 Definitions for creating asm symbols with Apple's CC
37826 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37827 [APPLE_CC] (VARIABLE): likewise
37829 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37831 Disable lnxboot.img when compiled
37834 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37835 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37836 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37837 [! APPLE_CC] (CODE_LENG): skip
37838 [! APPLE_CC] (setup_sects): likewise
37839 [! APPLE_CC]: skip filling
37841 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37843 Address in trampolines based on 32-bit registers when compiled
37846 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37848 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37850 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37852 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37854 * kern/misc.c [APPLE_CC] (memcpy): new function
37855 [APPLE_CC] (memmove): likewise
37856 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37857 (memcpy): define alias conditionally on !APPLE_CC
37860 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37861 APPLE_CC are defined
37862 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37863 (grub_assert_fail): make prototype conditional
37865 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37867 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37869 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37871 (CLEANFILES): add grub-macho2img
37872 (grub_macho2img_SOURCES): new variable
37873 * kern/i386/pc/startup.S (bss_start): new variable
37874 (bss_end): likewise
37875 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37876 * util/grub-macho2img.c: new file
37878 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37880 Use objconv when compiling with Apple's CC
37882 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37883 (efiemu64.o): likewise
37884 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37885 when compiling with Apple's CC
37886 (efiemu64_s.o): likewise
37887 * configure.ac: check for objconv when compiling with Apple's CC
37888 * genmk.rb: use objconv for modules when compiled with Apple's CC
37890 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37892 Define segment as well as section when compiling with
37895 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37896 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37897 (efiemu_convert_pointer): likewise
37898 (efiemu_set_virtual_address_map): likewise
37899 (efiemu_convert_pointer): likewise
37900 (efiemu_getcrc32): likewise
37901 (init_crc32_table): likewise
37902 (reflect): likewise
37903 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37904 (GRUB_MOD_DEP): likewise
37906 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37908 Allow a compilation without -mcmodel=large
37910 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37911 when compiled without -mcmodel=large
37912 (filter_memory_map): remove memory post 4 GiB when compiled
37913 without -mcmodel=large
37914 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
37915 TARGET_CFLAGS when -mcmodel=large isn't supported
37917 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37919 Remove nested functions in efiemu core
37921 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
37923 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37925 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
37927 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
37929 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
37931 (grub_cpu_is_tsc_supported): likewise
37932 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
37934 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37936 Absolute addressing through constant with Apple's cc
37938 * kern/i386/pc/startup.S: Define necessary constants
37939 and address through it when using ABS with Apple's CC
37940 * boot/i386/pc/diskboot.S: likewise
37941 * boot/i386/pc/boot.S: likewise
37942 * boot/i386/pc/lnxboot.S: likewise
37943 * boot/i386/pc/cdboot.S: likewise
37944 * mmap/i386/pc/mmap_helper.S: likewise
37945 * commands/i386/pc/drivemap_int13h.S: likewise
37947 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37949 Check if compiler is apple cc
37951 * Makefile.in (ASFLAGS): new variable
37952 (TARGET_ASFLAGS): likewise
37953 (TARGET_MODULE_FORMAT): likewise
37954 (TARGET_APPLE_CC): likewise
37955 (OBJCONV): likewise
37956 (TARGET_IMG_CFLAGS): likewise
37957 (TARGET_CPPFLAGS): add includedir
37958 * configure.ac: call grub_apple_cc and grub_apple_target_cc
37959 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
37960 Check for linker script only if compiler isn't Apple's CC
37961 (TARGET_MODULE_FORMAT): set
37962 (TARGET_APPLE_CC): likewise
37963 (TARGET_ASFLAGS): likewise
37964 (ASFLAGS): likewise
37965 Check for objcopy only if compiler isn't Apple's CC
37966 Check for BSS symbol only if compiler isn't Apple's CC
37967 * genmk.rb: adapt nm options if we use Apple's utils
37968 * aclocal.m4 (grub_apple_cc): new test
37969 (grub_apple_target_cc): likewise
37971 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37973 Simplify sed expressions and improve awk
37975 * Makefile.in (install-local): simplify sed expression
37976 * gencmdlist.sh: likewise
37977 * genmoddep.awk: avoid adding module as a dependency of itself
37979 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37981 Add missing start symbols
37983 * boot/i386/pc/boot.S: add start
37984 * boot/i386/pc/pxeboot.S: likewise
37986 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37988 Fix wrong assumptions with grub-mkimage on EFI
37990 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
37991 (relocate_addresses): consider both r_addend and value at offset
37992 (make_mods_section): zerofill modinfo and header
37993 (convert_elf): write prefix here
37995 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37997 Use .asciz instead of .string
37999 * i386/pc/diskboot.S: use .asciz instead of .string
38000 * i386/pc/boot.S: likewise
38001 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38002 (GRUB_MOD_NAME): likewise
38004 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38008 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38009 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38010 (grub_video_setup): remove
38011 (grub_video_set_mode): new prototype
38012 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38014 (linux_vesafb_res): compile only on PCBIOS
38015 (grub_linux_boot): support gfxpayload
38016 * loader/i386/pc/xnu.c (video_hook): new function
38017 (grub_xnu_set_video): support gfxpayload
38018 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38019 (DEFAULT_VIDEO_HEIGHT): likewise
38020 (DEFAULT_VIDEO_FLAGS): likewise
38021 (DEFAULT_VIDEO_MODE): new definition
38022 (video_hook): new function
38023 (grub_gfxterm_init): use grub_video_set_mode
38024 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38026 * video/video.c (grub_video_setup): removed
38027 (grub_video_set_mode): new function based on grub_gfxterm_init and
38030 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38032 Avoid calling biosdisk in drivemap
38034 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38035 (revparse_biosdisk): likewise
38036 (list_mappings): derive name from id directly
38037 (grub_cmd_drivemap): use tryparse_diskstring
38039 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38043 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38044 (grub_lexer_param): add tokenonhold
38045 (grub_script_create_cmdline): remove cmdline. All callers updated
38046 (grub_script_function_create): make functionname
38047 grub_script_arg. All callers updated
38048 (grub_script_execute_argument_to_string): new prototype
38049 * kern/parser.c (state_transitions): reorder
38050 (grub_parser_cmdline_state): fix a bug and make more compact
38051 * script/sh/execute.c (grub_script_execute_argument_to_string):
38053 (grub_script_execute_cmdline): use new format
38054 * script/sh/function.c (grub_script_function_create): make functionname
38055 grub_script_arg. All callers updated
38056 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38057 (grub_script_yylex): remove
38058 (grub_script_yylex2): renamed to ...
38059 (grub_script_yylex): ...renamed
38060 parse the expressions like a${b}c
38061 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38062 (GRUB_PARSER_TOKEN_VAR): remove
38063 (GRUB_PARSER_TOKEN_NAME): likewise
38064 ("if"): declare as typeless
38065 ("while"): likewise
38066 ("function"): likewise
38071 (argument): likewise
38072 (script): accept empty scripts and make exit on error
38073 (arguments): use GRUB_PARSER_TOKEN_ARG
38074 (function): likewise
38075 (command): move error handling to script
38076 (menuentry): move grub_script_lexer_ref before
38077 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38078 argument. All callers updated
38080 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38082 Prevent GRUB from probing floppies during boot.
38084 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38085 * commands/search.c (options): Add --no-floppy.
38086 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38087 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38088 --no-floppy when searching for UUIDs.
38090 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38092 Simplify the code duplication in commands/search.c.
38094 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38095 (search_fs): ... this. Update all users.
38097 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38099 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38101 2009-05-28 Pavel Roskin <proski@gnu.org>
38103 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38104 Remove the original symlink explicitly.
38106 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38107 just one slash. That's how grub_fshelp_find_file() does it.
38109 2009-05-26 Pavel Roskin <proski@gnu.org>
38111 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38114 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38117 2009-05-25 Christian Franke <franke@computer.org>
38119 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38121 (grub_atapi_identify): Add wait after drive select.
38122 (grub_ata_identify): Do more strict status register check before
38123 calling grub_atapi_identify (). Suppress error message if status
38124 register is 0x00 after command failure. Add status register
38125 check after PIO read to avoid bogus identify due to stuck DRQ.
38126 Thanks to Pavel Roskin for testing.
38127 (grub_device_initialize): Remove unsafe status register check.
38128 Thanks to 'phcoder' for problem report and patch.
38129 Prevent sign extension in debug message.
38131 2009-05-23 Colin D Bennett <colin@gibibit.com>
38133 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38134 definition file, and functions defined in `normal/menu.c' have had
38135 their prototypes moved to `include/grub/menu.h' for consistency.
38137 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38139 (grub_menu_get_entry): Likewise.
38140 (grub_menu_get_timeout): Likewise.
38141 (grub_menu_set_timeout): Likewise.
38142 (grub_menu_execute_entry): Likewise.
38143 (grub_menu_execute_with_fallback): Likewise.
38144 (grub_menu_entry_run): Likewise.
38146 * include/grub/normal.h: Re-ordered and grouped function
38147 prototypes by file that the function is defined in.
38148 (grub_menu_execute_callback): Removed; moved to menu.h.
38149 (grub_menu_get_entry): Likewise.
38150 (grub_menu_get_timeout): Likewise.
38151 (grub_menu_set_timeout): Likewise.
38152 (grub_menu_execute_entry): Likewise.
38153 (grub_menu_execute_with_fallback): Likewise.
38154 (grub_menu_entry_run): Likewise.
38155 (grub_menu_addentry): Renamed from this ...
38156 (grub_normal_add_menu_entry): ... to this.
38158 * normal/main.c (grub_menu_addentry): Renamed from this ...
38159 (grub_normal_add_menu_entry): ... to this.
38161 * script/sh/execute.c (grub_script_execute_menuentry): Update
38162 reference to renamed grub_menu_addentry function.
38164 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38166 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38168 2009-05-22 Pavel Roskin <proski@gnu.org>
38170 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38171 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38172 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38173 compiling for the i386 targets, but not for the utilities.
38175 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38177 (grub_root_drive): Likewise.
38178 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38180 (grub_root_drive): Change size to byte.
38181 (grub_start_addr): Remove.
38182 (grub_end_addr): Likewise.
38183 (grub_apm_bios_info): Likewise.
38185 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38187 * normal/i386: Remove.
38188 * normal/powerpc: Likewise.
38189 * normal/sparc64: Likewise.
38190 * normal/x86_64: Likewise.
38192 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38194 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38195 * loader/i386/linux_trampoline.S: Fix indentation
38196 * loader/i386/xnu_helper.S: Likewise
38198 2009-05-18 Colin D Bennett <colin@gibibit.com>
38200 Display error messages when parsing a Lua statement fails.
38201 Previously, executing a syntactically invalid statement like
38202 ")foo" or "bar;" would silently fail.
38204 * script/lua/grub_main.c (handle_lua_error): New function.
38205 (grub_lua_parse_line): Improved reporting of Lua parser and
38208 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38210 Remove -Werror which causes build to fail on some systems
38212 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38213 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38214 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38216 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38218 trampoline for linux on 64-bit platform
38220 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38221 loader/i386/efi/linux_trampoline.S
38222 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38224 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38226 * loader/i386/linux_trampoline.S: moved here
38227 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38229 (jumpvector): removed
38230 (grub_linux_trampoline_start): new declaration
38231 (grub_linux_trampoline_end): likewise
38232 (grub_linux_boot): use trampoline when on 64-bit platform
38233 * loader/i386/linux.c: likewise
38235 2009-05-16 Pavel Roskin <proski@gnu.org>
38237 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38238 const to avoid a warning.
38239 (grub_lua_setenv): Likewise.
38240 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38241 lmsg to fix a warning.
38243 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38245 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38246 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38247 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38248 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38249 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38250 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38251 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38252 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38254 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38256 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38258 2009-05-16 Bean <bean123ch@gmail.com>
38260 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38261 (lua_mod_SOURCES): New variable.
38262 (lua_mod_CFLAGS): Likewise.
38263 (lua_mod_LDFLAGS): Likewise.
38265 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38266 (setjmp_mod_SOURCES): New variable.
38267 (setjmp_mod_CFLAGS): Likewise.
38268 (setjmp_LDFLAGS): Likewise.
38270 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38271 (setjmp_mod_SOURCES): New variable.
38272 (setjmp_mod_CFLAGS): Likewise.
38273 (setjmp_LDFLAGS): Likewise.
38275 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38276 (setjmp_mod_SOURCES): New variable.
38277 (setjmp_mod_CFLAGS): Likewise.
38278 (setjmp_LDFLAGS): Likewise.
38280 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38281 (setjmp_mod_SOURCES): New variable.
38282 (setjmp_mod_CFLAGS): Likewise.
38283 (setjmp_LDFLAGS): Likewise.
38285 * normal/i386/setjmp.S: Moved from here ...
38286 * lib/i386/setjmp.S: ... Moved here
38287 * normal/x86_64/setjmp.S: Moved from here ...
38288 * lib/x86_64/setjmp.S: ... Moved here
38289 * normal/powerpc/setjmp.S: Moved from here ...
38290 * lib/powerpc/setjmp.S: ... Moved here
38291 * normal/sparc64/setjmp.S: Moved from here ...
38292 * lib/sparc64/setjmp.S: ... Moved here
38294 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38295 returns_twice in mingw.
38297 * script/lua/grub_lib.c: New file.
38298 * script/lua/grub_lib.h: Likewise.
38299 * script/lua/grub_lua.h: Likewise.
38300 * script/lua/grub_main.c: Likewise.
38301 * script/lua/lapi.c: Likewise.
38302 * script/lua/lapi.h: Likewise.
38303 * script/lua/lauxlib.c: Likewise.
38304 * script/lua/lauxlib.h: Likewise.
38305 * script/lua/lbaselib.c: Likewise.
38306 * script/lua/lcode.c: Likewise.
38307 * script/lua/lcode.h: Likewise.
38308 * script/lua/ldblib.c: Likewise.
38309 * script/lua/ldebug.c: Likewise.
38310 * script/lua/ldebug.h: Likewise.
38311 * script/lua/ldo.c: Likewise.
38312 * script/lua/ldo.h: Likewise.
38313 * script/lua/ldump.c: Likewise.
38314 * script/lua/lfunc.c: Likewise.
38315 * script/lua/lfunc.h: Likewise.
38316 * script/lua/lgc.c: Likewise.
38317 * script/lua/lgc.h: Likewise.
38318 * script/lua/linit.c: Likewise.
38319 * script/lua/liolib.c: Likewise.
38320 * script/lua/llex.c: Likewise.
38321 * script/lua/llex.h: Likewise.
38322 * script/lua/llimits.h: Likewise.
38323 * script/lua/lmathlib.c: Likewise.
38324 * script/lua/lmem.c: Likewise.
38325 * script/lua/lmem.h: Likewise.
38326 * script/lua/loadlib.c: Likewise.
38327 * script/lua/lobject.c: Likewise.
38328 * script/lua/lobject.h: Likewise.
38329 * script/lua/lopcodes.c: Likewise.
38330 * script/lua/lopcodes.h: Likewise.
38331 * script/lua/loslib.c: Likewise.
38332 * script/lua/lparser.c: Likewise.
38333 * script/lua/lparser.h: Likewise.
38334 * script/lua/lstate.c: Likewise.
38335 * script/lua/lstate.h: Likewise.
38336 * script/lua/lstring.c: Likewise.
38337 * script/lua/lstring.h: Likewise.
38338 * script/lua/lstrlib.c: Likewise.
38339 * script/lua/ltable.c: Likewise.
38340 * script/lua/ltable.h: Likewise.
38341 * script/lua/ltablib.c: Likewise.
38342 * script/lua/ltm.c: Likewise.
38343 * script/lua/ltm.h: Likewise.
38344 * script/lua/lua.h: Likewise.
38345 * script/lua/luaconf.h: Likewise.
38346 * script/lua/lualib.h: Likewise.
38347 * script/lua/lundump.c: Likewise.
38348 * script/lua/lundump.h: Likewise.
38349 * script/lua/lvm.c: Likewise.
38350 * script/lua/lvm.h: Likewise.
38351 * script/lua/lzio.c: Likewise.
38352 * script/lua/lzio.h: Likewise.
38354 2009-05-16 Bean <bean123ch@gmail.com>
38356 * include/grub/kernel.h (grub_module_header_types): Add type
38359 * kern/main.c (grub_load_config): New function.
38360 (grub_main): Call grub_load_config to read boot config.
38362 * grub-mkimage (generate_image): New parameter config_path.
38363 (options): New option --config.
38364 (main): Parse --config option, and pass it to generate_image.
38366 2009-05-14 Christian Franke <franke@computer.org>
38368 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38369 This fixes build on Cygwin.
38371 2009-05-14 Pavel Roskin <proski@gnu.org>
38373 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38374 jump. This saves two bytes, so the typical case of 2 swapped
38375 drives would fit 32 bytes.
38377 2009-05-13 Pavel Roskin <proski@gnu.org>
38379 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38380 grub_uint32_t to avoid a warning.
38382 * loader/i386/linux.c (allocate_pages): When assigning
38383 real_mode_mem, cast through grub_size_t to fix a warning. The
38384 code already makes sure that the value would fit a pointer.
38385 (grub_linux_setup_video): Cast render_target->data to
38386 grub_size_t to fix a warning.
38388 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38390 * commands/i386/pc/drivemap.c: New file - implement drivemap
38392 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38393 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38395 2009-05-13 Pavel Roskin <proski@gnu.org>
38397 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38398 embedding_area_exists.
38400 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38402 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38403 it easier to understand / work with.
38404 Improve warning messages for cases where there's no embedding area,
38405 or when it is too small (or core.img too large).
38407 2009-05-13 Pavel Roskin <proski@gnu.org>
38409 * loader/i386/pc/multiboot2.c: Add necessary includes for
38410 grub_multiboot2_real_boot().
38412 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38413 PX record is always little-endian. We only need the lower 2
38416 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38417 facilitate code reuse.
38418 (grub_cpio_mount): Use "struct head", not a char buffer. This
38419 fixes a warning reported by gcc 4.4.
38421 * kernel/disk.c (grub_disk_read): Use void pointer for the
38423 (grub_disk_write): Use const void pointer for the buffer.
38424 Adjust all callers. Remove unnecessary casts.
38426 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38428 * util/i386/pc/grub-install.in: Update copyright year.
38430 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38434 * commands/gptsync.c: new file
38435 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38436 (gptsync_mod_SOURCES): new variable
38437 (gptsync_mod_CFLAGS): likewise
38438 (gptsync_mod_LDFLAGS): likewise
38439 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38441 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38442 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38443 * conf/i386-ieee1275.rmk: likewise
38444 * conf/i386-pc.rmk: likewise
38445 * conf/powerpc-ieee1275.rmk: likewise
38447 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38451 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38452 (grub_dl_ref): likewise
38454 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38456 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38457 split in two functions (one for msdos and one for gpt).
38459 2009-05-08 Pavel Roskin <proski@gnu.org>
38461 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38464 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38465 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38466 Initialize them with -1. Add sanity check for bad1. Eliminate
38469 2009-05-08 David S. Miller <davem@davemloft.net>
38471 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38473 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38475 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38478 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38480 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38481 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38483 2009-05-05 David S. Miller <davem@davemloft.net>
38485 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38487 2009-05-05 Pavel Roskin <proski@gnu.org>
38489 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38490 of grub_dl_ref() and grub_dl_unref().
38491 * commands/parttool.c: Remove preprocessor conditionals around
38492 grub_dl_ref() and grub_dl_unref().
38493 * fs/affs.c: Likewise.
38494 * fs/afs.c: Likewise.
38495 * fs/cpio.c: Likewise.
38496 * fs/ext2.c: Likewise.
38497 * fs/fat.c: Likewise.
38498 * fs/hfs.c: Likewise.
38499 * fs/hfsplus.c: Likewise.
38500 * fs/iso9660.c: Likewise.
38501 * fs/jfs.c: Likewise.
38502 * fs/minix.c: Likewise.
38503 * fs/ntfs.c: Likewise.
38504 * fs/reiserfs.c: Likewise.
38505 * fs/sfs.c: Likewise.
38506 * fs/udf.c: Likewise.
38507 * fs/ufs.c: Likewise.
38508 * fs/xfs.c: Likewise.
38509 * include/grub/dl.h: Likewise.
38510 * loader/xnu.c: Likewise.
38512 2009-05-04 Pavel Roskin <proski@gnu.org>
38514 * commands/acpi.c: Remove unused variable my_mod.
38515 * partmap/amiga.c: Likewise.
38516 * partmap/apple.c: Likewise.
38517 * partmap/gpt.c: Likewise.
38518 * partmap/pc.c: Likewise.
38519 * partmap/sun.c: Likewise.
38520 * term/gfxterm.c: Likewise.
38521 * term/i386/pc/vesafb.c: Likewise.
38522 * term/i386/pc/vga.c: Likewise.
38524 2009-05-04 David S. Miller <davem@davemloft.net>
38526 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38527 pointer args to grub_ieee1275_get_property().
38529 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38531 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38532 devices, and do not traverse down under controller nodes.
38534 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38535 (grub_ofdisk_open): Use it to un-escape "," characters.
38536 * kern/disk.c (find_part_sep): New.
38537 (grub_disk_open): Use it to find the first non-escaped ','
38538 character in the disk name.
38539 * util/ieee1275/devicemap.c (escape_of_path): New.
38540 (grub_util_emit_devicemap_entry): Use it.
38541 * util/sparc64/ieee1275/grub-install.in: Update script to
38542 strip partition specifiers properly by not triggering on
38543 '\' escaped ',' characters.
38545 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38547 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38549 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38551 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38552 on documentation from Wikipedia).
38554 2009-05-04 Pavel Roskin <proski@gnu.org>
38556 * disk/ata.c: Spelling fixes.
38557 * disk/raid.c: Likewise.
38558 * disk/usbms.c: Likewise.
38559 * disk/dmraid_nvidia.c: Likewise.
38560 * kern/ieee1275/openfw.c: Likewise.
38561 * kern/ieee1275/init.c: Likewise.
38562 * kern/ieee1275/cmain.c: Likewise.
38563 * boot/i386/pc/cdboot.S: Likewise.
38564 * video/readers/png.c: Likewise.
38565 * video/i386/pc/vbe.c: Likewise.
38566 * fs/udf.c: Likewise.
38567 * fs/hfs.c: Likewise.
38568 * fs/reiserfs.c: Likewise.
38569 * efiemu/runtime/efiemu.c: Likewise.
38570 * efiemu/main.c: Likewise.
38571 * efiemu/mm.c: Likewise.
38572 * include/grub/elf.h: Likewise.
38573 * include/grub/xnu.h: Likewise.
38574 * include/grub/usbdesc.h: Likewise.
38575 * include/grub/usb.h: Likewise.
38576 * include/grub/script_sh.h: Likewise.
38577 * include/grub/lib/LzmaEnc.h: Likewise.
38578 * include/grub/efiemu/efiemu.h: Likewise.
38579 * include/grub/command.h: Likewise.
38580 * normal/menu.c: Likewise.
38581 * normal/main.c: Likewise.
38582 * normal/datetime.c: Likewise.
38583 * bus/usb/uhci.c: Likewise.
38584 * mmap/i386/uppermem.c: Likewise.
38585 * mmap/mmap.c: Likewise.
38586 * commands/acpi.c: Likewise.
38587 * commands/test.c: Likewise.
38588 * partmap/apple.c: Likewise.
38589 * font/font.c: Likewise.
38590 * loader/sparc64/ieee1275/linux.c: Likewise.
38591 * loader/macho.c: Likewise.
38592 * loader/i386/bsd_trampoline.S: Likewise.
38593 * loader/i386/bsd.c: Likewise.
38594 * loader/xnu.c: Likewise.
38595 * term/i386/pc/vesafb.c: Likewise.
38596 * term/usb_keyboard.c: Likewise.
38597 * util/resolve.c: Likewise.
38598 * util/getroot.c: Likewise.
38600 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38602 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38604 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38606 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38609 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38611 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38612 parameter only available on BIOS.
38614 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38616 Removed wrong semicolon in declaration
38618 * grub/misc.h (grub_dprintf): remove semicolon
38620 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38622 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38623 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38624 is done by grub_cmd_linux() now).
38625 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38626 restore video to text mode.
38627 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38628 indicates lack of "vga=" parameter. "vga=0" is mapped to
38629 `GRUB_LINUX_VID_MODE_NORMAL'.
38631 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38633 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38634 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38635 and `normal/script.c'. Add `kern/rescue_reader.c',
38636 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38637 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38638 `grub_script.tab.c'.
38640 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38641 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38642 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38643 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38644 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38646 * Makefile.in: Remove duplicated 2008 in Copyright line.
38648 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38650 * util/misc.c (grub_util_warn): New function. Emits a warning
38652 * include/grub/util/misc.h (grub_util_warn): New declaration.
38654 * util/i386/pc/grub-install.in: Understand --force and pass it down
38657 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38659 (setup): Improve error messages and add warnings when requested to
38660 install in odd layouts. Refuse to install using blocklists unless
38663 2009-05-04 martin f. krafft <madduck@madduck.net>
38665 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38667 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38669 Updated copyright year
38671 * fs/hfsplus.c: updated copyright year
38673 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38677 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38678 in the space previously used by unused3
38679 (grub_hfsplus_uuid): new function
38680 (grub_hfsplus_fs): added uuid field
38682 2009-05-03 Pavel Roskin <proski@gnu.org>
38684 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38685 suppress warnings. It's no longer needed.
38686 * disk/host.c: Likewise.
38687 * disk/ata_pthru.c: Likewise.
38688 * disk/loopback.c: Likewise.
38689 * hook/datehook.c: Likewise.
38690 * parttool/pcpart.c: Likewise.
38691 * fs/i386/pc/pxe.c: Likewise.
38692 * fs/ntfscomp.c: Likewise.
38693 * efiemu/main.c: Likewise.
38694 * mmap/mmap.c: Likewise.
38695 * commands/crc.c: Likewise.
38696 * commands/hexdump.c: Likewise.
38697 * commands/hdparm.c: Likewise.
38698 * commands/acpi.c: Likewise.
38699 * commands/echo.c: Likewise.
38700 * commands/minicmd.c: Likewise.
38701 * commands/blocklist.c: Likewise.
38702 * commands/memrw.c: Likewise.
38703 * commands/loadenv.c: Likewise.
38704 * commands/usbtest.c: Likewise.
38705 * commands/lsmmap.c: Likewise.
38706 * commands/boot.c: Likewise.
38707 * commands/parttool.c: Likewise.
38708 * commands/configfile.c: Likewise.
38709 * commands/search.c: Likewise.
38710 * commands/ieee1275/suspend.c: Likewise.
38711 * commands/cat.c: Likewise.
38712 * commands/i386/pc/pxecmd.c: Likewise.
38713 * commands/i386/pc/play.c: Likewise.
38714 * commands/i386/pc/halt.c: Likewise.
38715 * commands/i386/pc/vbeinfo.c: Likewise.
38716 * commands/i386/pc/vbetest.c: Likewise.
38717 * commands/lspci.c: Likewise.
38718 * commands/date.c: Likewise.
38719 * commands/handler.c: Likewise.
38720 * commands/ls.c: Likewise.
38721 * commands/test.c: Likewise.
38722 * commands/cmp.c: Likewise.
38723 * commands/efi/loadbios.c: Likewise.
38724 * commands/efi/fixvideo.c: Likewise.
38725 * commands/halt.c: Likewise.
38726 * commands/help.c: Likewise.
38727 * commands/reboot.c: Likewise.
38728 * hello/hello.c: Likewise.
38729 * script/sh/main.c: Likewise.
38730 * loader/xnu.c: Likewise.
38731 * term/terminfo.c: Likewise.
38732 * term/i386/pc/serial.c: Likewise.
38733 * term/usb_keyboard.c: Likewise.
38735 2009-05-03 David S. Miller <davem@davemloft.net>
38737 * normal/menu.c: Include grub/parser.h
38739 2009-05-03 Pavel Roskin <proski@gnu.org>
38741 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38743 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38744 Suggested by Javier Martín <lordhabbit@gmail.com>
38746 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38747 efiemu??.o doesn't exist.
38748 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38751 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38753 FreeBSD 64-bit support
38755 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38756 and loader/i386/bsd_trampoline.S
38757 (bsd_mod_ASFLAGS): new variable
38758 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38759 (FREEBSD_MODTYPE_KERNEL64): likewise
38760 (grub_bsd64_trampoline_start): likewise
38761 (grub_bsd64_trampoline_end): likewise
38762 (grub_bsd64_trampoline_selfjump): likewise
38763 (grub_bsd64_trampoline_gdt): likewise
38764 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38765 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38766 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38767 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38768 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38770 * loader/i386/bsd_pagetable.c: new file
38771 * loader/i386/bsd_trampoline.S: likewise
38772 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38773 (ALIGN_VAR): likewise
38774 (entry_hi): new variable
38775 (kern_end_mdofs): likewise
38776 (is_64bit): likewise
38777 (grub_freebsd_add_meta): use ALIGN_VAR
38778 (grub_e820_mmap): new declaration
38779 (grub_freebsd_add_mmap): new function
38780 (grub_freebsd_add_meta_module): support 64 bit kernels
38781 (grub_freebsd_list_modules): use ALIGN_VAR
38782 (gdt_descriptor): new declaration
38783 (grub_freebsd_boot): support 64 bit kernels
38784 (grub_bsd_elf64_hook): new function
38785 (grub_bsd_load_elf): support elf64
38787 2009-05-03 Bean <bean123ch@gmail.com>
38789 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38790 after we get the result of if statement.
38792 2009-05-03 Bean <bean123ch@gmail.com>
38794 * Makefile.in (enable_efiemu): New variable.
38796 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38798 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38800 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38801 path, add -mno-red-zone option.
38802 (efiemu64_s.o): Likewise.
38803 (efiemu64.o): Use macro $^ for source file.
38805 * configure.ac (--enable-efiemu): New option.
38807 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38811 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38812 (pkglib_MODULES): add xnu.mod
38813 (xnu_mod_SOURCES): new variable
38814 (xnu_mod_CFLAGS): likewise
38815 (xnu_mod_LDFLAGS): likewise
38816 (xnu_mod_ASFLAGS): likewise
38817 * conf/i386-pc.rmk: likewise
38818 * conf/x86_64-efi.rmk: likewise
38819 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38821 * include/grub/i386/macho.h: new file
38822 * include/grub/i386/xnu.h: likewise
38823 * include/grub/macho.h: likewise
38824 * include/grub/machoload.h: likewise
38825 * include/grub/x86_64/macho.h: likewise
38826 * include/grub/x86_64/xnu.h: likewise
38827 * include/grub/xnu.h: likewise
38828 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38829 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38830 * loader/i386/efi/xnu.c: new file
38831 * loader/i386/pc/xnu.c: likewise
38832 * loader/i386/xnu.c: likewise
38833 * loader/i386/xnu_helper.S: likewise
38834 * loader/macho.c: likewise
38835 * loader/xnu.c: likewise
38836 * loader/xnu_resume.c: likewise
38837 * util/grub-dumpdevtree: likewise
38838 * include/grub/i386/pit.h: include grub/err.h
38839 (grub_pit_wait): export
38840 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38842 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38846 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38847 _linux_efi, linux_efi.
38848 new files in grub-emu
38849 new targets efiemu32.o and efiemu64.o
38850 * loader/linux_normal_efiemu.c: likewise
38851 * loader/i386/efi/linux.c: added preliminary efiemu support
38852 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38854 * include/grub/autoefi.h: new file
38855 * include/grub/i386/efiemu.h: likewise
38856 * include/grub/i386/pc/efiemu.h: likewise
38857 * include/grub/efi/api.h: add LL suffix when necessary
38858 new definitions relating to tables
38859 * include/grub/efiemu/efiemu.h: new file
38860 * include/grub/efiemu/runtime.h: likewise
38861 * efiemu/prepare.c: likewise
38862 * efiemu/loadcore_common.c: likewise
38863 * efiemu/loadcore64.c: likewise
38864 * efiemu/runtime/efiemu.sh: likewise
38865 * efiemu/runtime/efiemu.S: likewise
38866 * efiemu/runtime/efiemu.c: likewise
38867 * efiemu/runtime/config.h: likewise
38868 * efiemu/prepare32.c: likewise
38869 * efiemu/main.c: likewise
38870 * efiemu/modules/pnvram.c: likewise
38871 * efiemu/modules/i386: likewise
38872 * efiemu/modules/i386/pc: likewise
38873 * efiemu/modules/acpi.c: likewise
38874 * efiemu/i386/pc/cfgtables.c: likewise
38875 * efiemu/i386/loadcore64.c: likewise
38876 * efiemu/i386/loadcore32.c: likewise
38877 * efiemu/prepare64.c: likewise
38878 * efiemu/loadcore.c: likewise
38879 * efiemu/symbols.c: likewise
38880 * efiemu/mm.c: likewise
38881 * efiemu/loadcore32.c: likewise
38883 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38887 * commands/acpi.c: new file
38888 * commands/i386/pc/acpi.c: likewise
38889 * commands/efi/acpi.c: likewise
38890 * include/grub/acpi.h: likewise
38891 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38892 (acpi_mod_SOURCES): new variable
38893 (acpi_mod_CFLAGS): likewise
38894 (acpi_mod_LDFLAGS): likewise
38895 * conf/i386-efi.rmk: likewise
38896 * conf/x86_64-efi.rmk: likewise
38898 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38900 Missing part from mmap patch
38902 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38903 (grub_mmap_unregister)
38904 (grub_mmap_free_and_unregister): use grub_mmap_register
38906 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38910 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38911 * loader/i386/linux.c (find_mmap_size): likewise
38912 (allocate_pages): likewise
38913 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38914 (grub_fill_multiboot_mmap): likewise
38915 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38916 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38917 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38918 (OPENBSD_MMAP_RESERVED): likewise
38919 * include/grub/i386/pc/memory.h: include grub/memory.h
38920 (grub_lower_mem): removed
38921 (grub_upper_mem): likewise
38922 (GRUB_MACHINE_MEMORY_ACPI): new definition
38923 (GRUB_MACHINE_MEMORY_NVS): likewise
38924 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
38925 (GRUB_MACHINE_MEMORY_HOLE): likewise
38926 (grub_machine_mmap_register): likewise
38927 (grub_machine_mmap_unregister): likewise
38928 (grub_machine_get_upper): likewise
38929 (grub_machine_get_lower): likewise
38930 (grub_machine_get_post64): likewise
38931 * include/grub/i386/efi/memory.h: new file
38932 * include/grub/x86_64/efi/memory.h: likewise
38933 * include/grub/efi/memory.h: likewise
38934 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
38935 (mmap_mod_SOURCES): new variable
38936 (mmap_mod_LDFLAGS): likewise
38937 (mmap_mod_ASFLAGS): likewise
38938 * conf/i386-coreboot.rmk: likewise
38939 * conf/i386-ieee1275.rmk: likewise
38940 * conf/i386-efi.rmk: likewise
38941 * conf/x86_64-efi.rmk: likewise
38942 * include/grub/types.h (UINT_TO_PTR): new macro
38943 (PTR_TO_UINT32): likewise
38944 (PTR_TO_UINT64): likewise
38945 * include/grub/memory.h: new file
38946 * mmap/i386/pc/mmap.c: likewise
38947 * mmap/i386/pc/mmap_helper.S: likewise
38948 * mmap/i386/uppermem.c: likewise
38949 * mmap/mmap.c: likewise
38950 * mmap/efi/mmap.c: likewise
38951 * kern/i386/coreboot/init.c (grub_machine_init): don't use
38953 * kern/i386/pc/init.c (grub_lower_mem): removed variable
38954 (grub_upper_mem): likewise
38955 (grub_machine_init): don't use grub_upper_mem,
38956 make grub_lower_mem local
38957 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
38958 grub_mmap_iterate and grub_mmap_get_upper
38959 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
38961 2009-05-02 Bean <bean123ch@gmail.com>
38963 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
38964 script/sh/parser.y.
38965 (pkglib_MODULES): Add normal.mod and sh.mod.
38966 (normal_SOURCES): New variable.
38967 (normal_mod_CFLAGS): Likewise.
38968 (normal_mod_LDFLAGS): Likewise.
38969 (sh_mod_SOURCES): Likewise.
38970 (sh_mod_CFLAGS): Likewise.
38971 (sh_mod_LDFLAGS): Likewise.
38973 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
38974 script/sh/lexer.c_DEPENDENCIES.
38975 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
38976 kern/rescue_reader.c and kern/rescue_parser.c.
38977 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
38978 (grub_emu_SOURCES): Change source files.
38979 (pkglib_MODULES): Remove normal.mod.
38980 (normal_SOURCES): Removed.
38981 (normal_mod_CFLAGS): Likewise.
38982 (normal_mod_LDFLAGS): Likewise.
38983 * conf/i386-coreboot.rmk: Likewise.
38984 * conf/i386-efi.rmk: Likewise.
38985 * conf/i386-ieee1276.rmk: Likewise.
38986 * conf/powerpc-ieee1275.rmk: Likewise.
38987 * conf/sparc64-ieee1275.rmk: Likewise.
38988 * conf/x86_64-efi.rmk: Likewise.
38990 * include/grub/command.h (grub_command_execute): New inline function.
38992 * include/grub/menu.h (grub_menu_entry): Removed commands field.
38994 * include/grub/normal.h: Remove <grub/setjmp.h>.
38995 (grub_fs_module_list): Moved to normal/autofs.c.
38996 (grub_exit_env): Removed.
38997 (grub_command_execute): Likewise.
38998 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39000 (read_command_list): New function declaration.
39001 (read_fs_list): Likewise.
39003 * include/parser.h: Include <grub/reader.h>.
39004 (grub_parser_split_cmdline): Change type of getline parameter.
39005 (grub_parser): New structure.
39006 (grub_parser_class): New variable.
39007 (grub_parser_execute): New function declaration.
39008 (grub_register_rescue_parser): Likewise.
39009 (grub_parser_register): New inline function.
39010 (grub_parser_unregister): Likewise.
39011 (grub_parser_get_current): Likewise.
39012 (grub_parser_set_current): Likewise.
39014 * include/grub/reader.h: New file.
39015 * kern/reader.c: Likewise.
39016 * kern/rescue_parser.c: Likewise.
39017 * kern/rescue_reader.c: Likewise.
39018 * normal/autofs.c: Likewise.
39019 * normal/dyncmd.c: Likewise.
39021 * include/grub/rescue.h: Removed.
39022 * normal/command.h: Likewise.
39024 * include/grub/script.h: Moved to ...
39025 * include/grub/script_sh.h: ... Moved here.
39026 * normal/execute.c: Moved to ...
39027 * script/sh/execute.c: ... Moved here.
39028 * normal/function.c: Moved to ...
39029 * script/sh/function.c: ... Moved here.
39030 * normal/lexer.c: Moved to ...
39031 * script/sh/lexer.c: ... Moved here.
39032 * normal/parser.y: Moved to ...
39033 * script/sh/parser.y: ... Moved here.
39034 * normal/script.c: Moved to ...
39035 * script/sh/script.c: ... Moved here.
39037 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39039 (grub_exit_env): Removed.
39040 (fs_module_list): Moved to normal/autofs.c.
39041 (grub_file_getline): Don't handle comment here.
39042 (free_menu): Skip removed field entry->commands.
39043 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39045 (read_config_file): Removed nested parameter, change getline function.
39046 (grub_enter_normal_mode): Removed.
39047 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39048 (read_command_list): Likewise.
39049 (autoload_fs_module): Moved to normal/autofs.c.
39050 (read_fs_list): Likewise.
39051 (reader_nested): New variable.
39052 (grub_normal_execute): Run parser.sh to switch to sh parser.
39053 (grub_cmd_rescue): Removed.
39054 (cmd_normal): Removed.
39055 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39057 (grub_cmdline_run): New function.
39058 (grub_normal_reader_init): Likewise.
39059 (grub_normal_read_line): Likewise.
39060 (grub_env_write_pager): Likewise.
39061 (cmdline): New variable.
39062 (grub_normal_reader): Likewise.
39063 (GRUB_MOD_INIT): Register normal reader and set as current, register
39064 pager hook, register normal command with grub_register_command_prio,
39065 so that it won't show up in command.lst.
39066 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39067 grub_fs_autoload_hook.
39069 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39070 (grub_menu_execute_entry): Replace grub_script_execute with
39071 grub_parser_execute, change parameter to grub_command_execute.
39073 * normal/menu_text.c: Remove <grub/script.h>.
39075 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39076 and <grub/parser.h>.
39077 (run): Change editor_getline to use new parser interface. Change
39078 parameter to grub_command_execute.
39080 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39081 <grub/reader.h> and <grub/parser.h>.
39082 (grub_load_normal_mode): Execute normal command.
39083 (grub_main): Call grub_register_core_commands,
39084 grub_register_rescue_parser and grub_register_rescue_reader, use
39085 grub_reader_loop to enter input loop.
39087 * kern/parser.c (grub_parser_split_cmdline): Change type of
39089 (grub_parser_class): New variable.
39090 (grub_parser_execute): New function.
39092 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39093 * loader/multiboot2.c: Likewise.
39094 * loader/sparc64/ieee1275/linux.c: Likewise.
39096 * util/grub-emu.c (read_command_list): New dummy function.
39098 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39100 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39101 count to 16 for CCISS and IDA.
39103 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39105 * normal/menu_text.c (grub_wait_after_message): Print a newline
39106 after waiting for user input.
39108 * loader/i386/linux.c: Include `<grub/normal.h>'.
39109 (grub_cmd_linux): Improve the error message about `ask' mode, by
39110 waiting for user input so it's not missed (we can do this, since
39111 user requested interaction).
39113 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39115 Added missing lst to grub-mkrescue
39117 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39118 and ${input_dir}/parttool.lst
39120 2009-04-30 David S. Miller <davem@davemloft.net>
39122 * util/hostdisk.c (device_is_wholedisk): New function.
39123 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39124 zero only if device_is_wholedisk() returns true.
39126 * util/hostdisk.c (convert_system_partition_to_system_disk):
39127 Handle virtual disk devices named /dev/vdiskX as found on sparc
39130 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39131 lettered partition specifier is found, convert to numbered.
39133 2009-04-29 David S. Miller <davem@davemloft.net>
39135 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39136 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39138 * normal/command.c: Add missing newline at end of file.
39140 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39142 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39143 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39144 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39145 ihandles have a 32-bit type but need to be stored in a "void *".
39147 2009-04-28 Pavel Roskin <proski@gnu.org>
39149 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39150 not disk. Adjust all dependencies.
39151 (grub_fs_uuid_close): Use grub_device_close(), not
39154 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39155 parent's partition, don't copy it by reference, as it gets freed
39158 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39160 Preboot hooks support
39162 * commands/boot.c (struct grub_preboot_t): new declaration
39163 (preboots_head): new variable
39164 (preboots_tail): likewise
39165 (grub_loader_register_preboot_hook): new function
39166 (grub_loader_unregister_preboot_hook): likewise
39167 (grub_loader_set): launch preboot hooks
39168 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39169 (grub_loader_register_preboot_hook): new declaration
39170 (grub_loader_unregister_preboot_hook): likewise
39172 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39176 * disk/scsi.c (grub_scsi_open): added missing cast when
39177 calling grub_dprintf
39179 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39181 Bug and warning fixes
39183 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39185 * commands/test.c (test_parse): fixed bug with file tests and corrected
39186 declaration of find_file
39188 2009-04-26 Pavel Roskin <proski@gnu.org>
39190 * Makefile.in: Don't install empty manual pages if help2man is
39191 missing. Use help2man option for output, not shell redirection.
39193 2009-04-26 David S. Miller <davem@davemloft.net>
39195 * util/grub-mkdevicemap.c (make_device_map): Add missing
39196 NESTED_FUNC_ATTR to process_device().
39198 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39202 * commands/test.c: rewritten to use bash-like test
39204 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39206 Parttool autoloading and improvements
39208 * Makefile.in (pkglib_DATA): add parttool.lst
39209 (parttool.lst): new target
39210 * genmk.rb: generate parttool-*
39211 (CLEANFILES): add #{parttool}
39212 (PARTTOOLFILES): new variable
39213 * genparttoollist.sh: new file
39214 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39215 (grub_pcpart_type): likewise
39216 * commands/parttool.c (helpmsg): new variable
39217 (grub_cmd_parttool): output help if not enough arguments are supplied
39219 (GRUB_MOD_INIT(parttool)): use helpmsg
39221 2009-04-24 David S. Miller <davem@davemloft.net>
39223 Avoiding opening same device multiple times in device iterator.
39225 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39226 and use it to build a list of partitions in iterate_disk() and
39227 iterate_partition().
39229 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39232 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39233 grub_devalias_iterate() result instead of unconditional 0.
39234 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39235 Also, capture hook return value, either directly or via
39236 grub_children_iterate(), and propagate to caller.
39237 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39238 grub_children_iterate): Return value is now 'int' instead of
39240 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39241 like a proper iterator, stopping when hooks return non-zero.
39242 (grub_devalias_iterate): Likewise.
39244 2009-04-23 David S. Miller <davem@davemloft.net>
39246 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39248 2009-04-22 David S. Miller <davem@davemloft.net>
39250 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39251 is larger than address_cells, use that value for address_cells too.
39253 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39254 IEEE1275_MAX_PATH_LEN): Define.
39255 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39256 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39257 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39258 'devtype'. Explicitly NULL terminate devalias expansion.
39260 * util/sparc64/ieee1275/misc.c: New file.
39261 * util/sparc64/ieee1275/grub-setup.c: New file.
39262 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39263 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39264 * util/sparc64/ieee1275/grub-install.in: New file.
39265 * util/ieee1275/ofpath.c: New file.
39266 * util/ieee1275/devicemap.c: New file.
39267 * util/devicemap.c: New file.
39268 * util/deviceiter.c: New file.
39269 * kern/sparc64/ieee1275/init.c: New file.
39270 * include/grub/util/ofpath.h: New file.
39271 * include/grub/util/deviceiter.h: New file.
39272 * util/grub-mkdevicemap.c: Include deviceiter.h.
39273 Implement using grub_util_emit_devicemap_entry and
39274 grub_util_iterate_devices.
39275 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39276 util/devicemap.c into grub-mkdevicemap
39277 * conf/i386-efi.rmk: Likewise.
39278 * conf/i386-ieee1275.rmk: Likewise.
39279 * conf/i386-pc.rmk: Likewise.
39280 * conf/powerpc-ieee1275.rmk: Likewise.
39281 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39282 images and installation utilities. Build kernel as image
39283 instead of as elf binary. Use common rules as much as possible.
39285 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39287 Correct GPT definition
39289 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39292 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39294 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39296 2009-04-19 David S. Miller <davem@davemloft.net>
39298 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39299 (grub_rescue_cmd_linux): Rename to...
39300 (grub_cmd_linux): and fix prototype.
39301 (grub_rescue_cmd_initrd): Rename to...
39302 (grub_cmd_initrd): and fix prototype.
39303 (cmd_linux, cmd_initrd): New.
39304 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39305 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39307 2009-04-17 Pavel Roskin <proski@gnu.org>
39309 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39311 (grub_ohci_transfer): Likewise.
39313 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39315 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39316 return without a value. Fix inconsistent indentation.
39318 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39319 match struct grub_fs.
39321 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39322 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39323 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39324 * commands/lspci.c (grub_lspci_iter): Likewise.
39326 2009-04-16 Bean <bean123ch@gmail.com>
39328 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39331 2009-04-15 Pavel Roskin <proski@gnu.org>
39333 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39334 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39335 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39338 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39340 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39341 that no multiple data or metadata areas are supported and `Unknown
39344 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39346 Move loader out of the kernel
39348 * kern/loader.c: moved to ...
39349 * commands/boot.c: ... moved here
39350 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39351 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39352 * include/grub/kernel.h (grub_machine_fini): export
39353 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39354 (grub_loader_set): likewise
39355 (grub_loader_unset): likewise
39356 (grub_loader_boot): likewise
39357 * conf/common.rmk: new module boot.mod
39358 (pkglib_MODULES): add boot.mod
39359 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39360 (grub_emu_SOURCES): likewise
39361 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39362 (grub_emu_SOURCES): likewise
39363 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39364 (grub_emu_SOURCES): likewise
39365 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39366 (grub_emu_SOURCES): likewise
39367 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39368 (grub_emu_SOURCES): likewise
39369 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39370 (grub_emu_SOURCES): likewise
39371 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39372 (grub_emu_SOURCES): likewise
39374 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39376 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39378 * kern/misc.c (grub_itoa): Removed function
39379 (grub_ltoa): likewise
39380 (grub_vsprintf): use grub_lltoa
39382 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39386 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39387 * conf/i386-coreboot.rmk: likewise
39388 * conf/i386-ieee1275.rmk: likewise
39389 * conf/powerpc-ieee1275.rmk: likewise
39391 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39393 * INSTALL: Add that `./autogen.sh' needs to be run before
39396 2009-04-14 Bean <bean123ch@gmail.com>
39398 * Makefile.in (pkglib_DATA): Add handler.lst.
39399 (handler.lst): New rule.
39401 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39402 * conf/i386-coreboot.rmk: Likewise.
39403 * conf/i386-ieee1275.rmk: Likewise.
39404 * conf/i386-efi.rmk: Likewise.
39405 * conf/x86_64-efi.rmk: Likewise.
39406 * conf/powerpc-ieee1275.rmk: Likewise.
39407 * conf/sparc64-ieee1275.rmk: Likewise.
39409 * genhandlerlist.sh: New file.
39411 * genmk.rb: Add rules to generate handler.lst.
39413 * include/grub/normal.h (grub_file_getline): New function definition.
39414 (read_handler_list): Likewise.
39415 (free_handler_list): Likewise.
39417 * include/grub/term.h (grub_term_register_input): Add name parameter
39418 for auto generation of handler.lst.
39419 (grub_term_register_output): Likewise.
39421 * normal/handler.c: New file.
39423 * normal/main.c (get_line): Renamed to grub_file_getline.
39424 (read_config_file): Use the newly renamed grub_file_getline.
39425 (read_command_list): Likewise.
39426 (read_fs_list): Likewise.
39427 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39428 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39430 * term/efi/console.c (grub_console_init): Add name parameter for auto
39431 generation of handler.lst.
39432 * term/gfxterm.c: Likewise.
39433 * term/i386/pc/at_keyboard.c: Likewise.
39434 * term/i386/pc/console.c: Likewise.
39435 * term/i386/pc/serial.c: Likewise.
39436 * term/i386/pc/vesafb.c: Likewise.
39437 * term/i386/pc/vga.c: Likewise.
39438 * term/i386/pc/vga_text.c: Likewise.
39439 * term/ieee1275/ofconsole.c: Likewise.
39440 * term/usb_keyboard.c: Likewise.
39442 2009-04-14 Bean <bean123ch@gmail.com>
39444 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39445 properly with null character.
39447 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39449 * configure: Remove.
39450 * config.h.in: Likewise.
39451 * stamp-h.in: Likewise.
39452 * DISTLIST: Likewise.
39453 * conf/common.mk: Likewise.
39454 * conf/i386-coreboot.mk: Likewise.
39455 * conf/i386-efi.mk: Likewise.
39456 * conf/i386-ieee1275.mk: Likewise.
39457 * conf/i386.mk: Likewise.
39458 * conf/i386-pc.mk: Likewise.
39459 * conf/powerpc-ieee1275.mk: Likewise.
39460 * conf/sparc64-ieee1275.mk: Likewise.
39461 * conf/x86_64-efi.mk: Likewise.
39463 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39466 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39467 David S. Miller <davem@davemloft.net>
39469 * util/hostdisk.c (make_device_name): Fix buffer length
39472 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39474 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39475 <sys/param.h> and <sys/sysctl.h>.
39476 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39477 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39478 opening the device and reset them afterwards.
39480 2009-04-13 Pavel Roskin <proski@gnu.org>
39482 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39483 Reported by John Stanley <jpsinthemix@verizon.net>
39485 2009-04-13 Robert Millan <rmh@aybabtu.com>
39487 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39488 that name for menuentries when appropriate.
39490 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39492 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39494 2009-04-13 Robert Millan <rmh@aybabtu.com>
39496 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39497 to Linux, simply abort telling the user it's no longer supported.
39499 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39501 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39502 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39503 `freebsd_loadenv' only when devices.hints exist.
39505 2009-04-13 Pavel Roskin <proski@gnu.org>
39507 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39509 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39511 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39513 (grub_drive): Likewise.
39515 2009-04-13 David S. Miller <davem@davemloft.net>
39517 * kern/sparc64/ieee1275/ieee1275.c: New file.
39518 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39519 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39520 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39521 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39522 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39523 grub_ieee1275_alloc_physmem): Declare new exported functions.
39525 * include/grub/sparc64/ieee1275/loader.h: New file.
39526 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39527 * include/grub/sparc64/kernel.h: Likewise.
39528 * loader/sparc64/ieee1275/linux.c: Likewise.
39530 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39531 (grub_fstest_SOURCES): Likewise.
39533 * util/hostdisk.c (make_device_name): Do not make any assumptions
39534 about the length of drive names.
39536 * kern/dl.c (grub_dl_load_file): Close file immediately when
39537 we are done using it.
39539 2009-04-12 David S. Miller <davem@davemloft.net>
39541 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39542 values. Noticed by Pavel Roskin.
39544 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39547 * genmk.rb: Add more flexible image type specification, also
39548 pass --strip-unneeded to objcopy.
39549 * conf/i386-pc.rmk: Use *_FORMAT.
39550 * conf/i386-pc.mk: Rebuilt.
39552 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39553 (OFDISK_HASH_SZ): Define.
39554 (ofdisk_hash): New hash table.
39555 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39556 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39557 instead of device phandle which is not unique.
39559 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39560 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39561 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39562 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39563 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39564 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39565 GRUB_KERNEL_MACHINE_DATA_END): Define.
39566 (grub_kernel_image_size, grub_total_module_size): Declare.
39568 2009-04-12 Pavel Roskin <proski@gnu.org>
39570 * configure.ac: Change the logic when we check for target tools.
39571 Do it when the target is specified and it's different from the
39572 specified value of the host.
39574 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39576 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39577 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39578 GNU/kFreeBSD. Check if a device is a character device. Use
39579 DIOCGMEDIASIZE to get the size.
39580 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39581 support for GNU/kFreeBSD.
39582 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39583 is a character device instead of a block device. Add support for
39584 FreeBSD device names.
39586 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39587 is a character device instead of a block device.
39589 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39590 is a character device instead of a block device.
39592 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39594 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39595 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39596 FreeBSD. Check if a device is a character device. Use
39597 DIOCGMEDIASIZE to get the size.
39598 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39599 support for FreeBSD.
39600 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39601 is a character device instead of a block device. Add support for
39602 FreeBSD device names.
39604 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39605 a character device instead of a block device.
39606 (grub_util_check_char_device): New function.
39608 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39609 a character device instead of a block device.
39611 * include/grub/util/getroot.h (grub_util_check_char_device): New
39614 2009-04-11 David S. Miller <davem@davemloft.net>
39616 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39618 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39619 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39620 function, if present.
39621 (__bswapdi2): Likewise.
39623 * include/grub/sparc64/ieee1275/boot.h: New file.
39624 * boot/sparc64/ieee1275/boot.S: Likewise.
39625 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39627 * kern/misc.c (grub_ltoa): New function.
39628 (grub_vsprintf): Use it to format 'long' integers.
39630 2009-04-10 David S. Miller <davem@davemloft.net>
39632 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39633 slots are of type grub_ieee1275_cell_t.
39634 (grub_nand_read): Likewise.
39635 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39636 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39637 macros are used to compare values in arg/ret block of the call.
39638 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39639 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39640 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39641 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39642 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39643 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39644 grub_ieee1275_close, grub_ieee1275_set_property,
39645 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39646 grub_ieee1275_cell_t.
39647 * kern/ieee1275/openfw.c (grub_map): Likewise.
39648 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39649 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39651 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39652 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39653 (grub_devalias_iterate): Likewise.
39655 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39659 * fs/ufs.c (INODE_NBLOCKS): new definition
39660 (struct grub_ufs_dirent): added fields for non-BSD dirents
39661 (grub_ufs_get_file_block): fixed double indirect handling
39662 (grub_ufs_lookup_symlink): use more robust way to determine whether
39664 (grub_ufs_find_file): support for non-BSD dirents
39665 (grub_ufs_dir): support for non-BSD dirents
39667 2009-04-10 Bean <bean123ch@gnail.com>
39669 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39670 attribute, otherwise the size would be wrong for i386 platform.
39672 * include/grub/pci.h (grub_pci_read_word): New inline function.
39673 (grub_pci_read_byte): Likewise.
39674 (grub_pci_write): Likewise.
39675 (grub_pci_write_word): Likewise.
39676 (grub_pci_write_byte): Likewise.
39678 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39680 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39681 (find_framebuf): Scan pci to locate the frame buffer address.
39683 * commands/efi/fixvideo.c: New file.
39685 * commands/efi/loadbios.c: Likewise.
39687 * commands/memrw.c: Likewise.
39689 * util/grub-dumpbios.in: Likewise.
39691 * conf/common.rmk (grub-dumpbios): New utility.
39692 (pkglib_MODULES): New module memrw.mod.
39693 (memrw_mod_SOURCE): New macro.
39694 (memrw_mod_CFLAGS): Likewise.
39695 (memrw_mod_LDFLAGS): Likewise.
39697 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39699 (loadbios_mod_SOURCE): New macro.
39700 (loadbios_mod_CFLAGS): Likewise.
39701 (loadbios_mod_LDFLAGS): Likewise.
39702 (fixvideo_mod_SOURCE): Likewise.
39703 (fixvideo_mod_CFLAGS): Likewise.
39704 (fixvideo_mod_LDFLAGS): Likewise.
39706 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39708 (loadbios_mod_SOURCE): New macro.
39709 (loadbios_mod_CFLAGS): Likewise.
39710 (loadbios_mod_LDFLAGS): Likewise.
39711 (fixvideo_mod_SOURCE): Likewise.
39712 (fixvideo_mod_CFLAGS): Likewise.
39713 (fixvideo_mod_LDFLAGS): Likewise.
39715 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39717 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39719 2009-04-07 David S. Miller <davem@davemloft.net>
39721 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39722 support for R_SPARC_OLO10 relocations. Fix compile warning for
39723 R_SPARC_WDISP30 case.
39724 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39726 2009-04-06 Pavel Roskin <proski@gnu.org>
39728 * include/grub/misc.h (ARRAY_SIZE): New macro.
39729 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39731 * loader/i386/linux.c (allocate_pages): Use free_pages().
39732 (grub_linux_unload): Don't use free_pages().
39733 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39734 wrong index. Treat all other modes as text modes.
39735 (grub_cmd_linux): Initialize vid_mode unconditionally to
39736 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39738 * commands/help.c (print_command_help): Use cmd->prio, not
39739 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39741 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39745 * parttool/pcpart.c: new file
39746 * commands/parttool.c: likewise
39747 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39748 (parttool_mod_SOURCES): new variable
39749 (parttool_mod_CFLAGS): likewise
39750 (parttool_mod_LDFLAGS): likewise
39751 (pcpart_mod_SOURCES): likewise
39752 (pcpart_mod_CFLAGS): likewise
39753 (pcpart_mod_LDFLAGS): likewise
39754 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39755 and parttool/pcpart.c
39756 * conf/i386-efi.rmk: likewise
39757 * conf/i386-ieee1275.rmk: likewise
39758 * conf/i386-pc.rmk: likewise
39759 * conf/powerpc-ieee1275.rmk: likewise
39760 * conf/sparc64-ieee1275.rmk: likewise
39761 * conf/x86_64-ieee1275.rmk: likewise
39763 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39765 Support for mtime and further expandability of dir command
39767 * include/grub/lib/datetime.h: moved to ...
39768 * include/grub/datetime.h: ... moved here and added
39769 declaration of grub_unixtime2datetime. All users updated
39770 * include/grub/fs.h: new syntax for dir and mtime functions in
39772 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39773 and GRUB_FSHELP_FLAGS_MASK
39774 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39775 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39776 (grub_ext2_mtime): new function
39777 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39778 (grub_hfsplus_mtime): new function
39779 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39780 (GRUB_UFS_ATTR_FILE): likewise
39781 (GRUB_UFS_ATTR_LNK): likewise
39782 (struct grub_ufs_sblock): new fields mtime
39783 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39785 (grub_ufs_dir): mtime support
39786 (grub_ufs_mtime): new function
39787 * fs/affs.c (grub_affs_dir): use new dir syntax
39788 * fs/afs.c (grub_afs_dir): likewise
39789 * fs/cpio.c (grub_cpio_dir): likewise
39790 * fs/fat.c (grub_fat_find_dir): likewise
39791 * fs/hfs.c (grub_hfs_dir): likewise
39792 * fs/iso9660.c (grub_iso9660_dir): likewise
39793 * fs/jfs.c (grub_jfs_dir): likewise
39794 * fs/minix.c (grub_minix_dir): likewise
39795 * fs/ntfs.c (grub_ntfs_dir): likewise
39796 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39797 * fs/sfs.c (grub_sfs_dir): likewise
39798 * fs/xfs.c (grub_xfs_dir): likewise
39799 * util/hostfs.c (grub_hostfs_dir): likewise
39800 * lib/datetime.c: moved to ...
39801 * normal/datetime.c: ... moved here
39802 (grub_unixtime2datetime): new function
39803 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39804 * normal/completion.c (iterate_dir): use new dir syntax
39805 * normal/misc.c (grub_normal_print_device_info): tell the
39806 last modification time of a volume
39807 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39808 * conf/common.rmk: added lib/datetime.c to ls.mod
39809 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39810 (normal_mod_SOURCES): likewise
39811 (datetime_mod_SOURCES): Removed lib/datetime.c
39812 * conf/i386-efi.rmk: likewise
39813 * conf/i386-ieee1275.rmk: likewise
39814 * conf/i386-pc.rmk: likewise
39815 * conf/powerpc-ieee1275.rmk: likewise
39816 * conf/sparc64-ieee1275.rmk: likewise
39817 * conf/x86_64-efi.rmk: likewise
39819 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39821 Trim trailing spaces in FAT label and support mtools-like labels
39823 * fs/fat.c (grub_fat_iterate_dir): New function based
39824 on grub_fat_find_dir
39825 (grub_fat_find_dir): use grub_fat_iterate_dir
39826 (grub_fat_label): likewise
39828 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39830 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39832 remove extraneous kernel_elf_HEADERS
39834 2009-04-04 Bean <bean123ch@gnail.com>
39836 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39838 * util/misc.c: Likewise.
39840 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39842 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39843 instead of grub_printf.
39845 2009-04-03 Robert Millan <rmh@aybabtu.com>
39847 * loader/i386/linux.c (grub_linux_setup_video): Fill
39848 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39849 values from `mode info' structure instead of hardcoded
39852 2009-04-01 Pavel Roskin <proski@gnu.org>
39854 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39856 * genmk.rb: Likewise.
39857 * configure.ac: Likewise.
39859 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39861 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39862 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39864 2009-04-01 David S. Miller <davem@davemloft.net>
39866 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39867 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39868 (grub_setjmp): Mark with 'returns_twice' attribute.
39869 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39870 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39871 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39873 2009-04-01 Robert Millan <rmh@aybabtu.com>
39875 Reapply fix from 2008-07-28 which was accidentally reverted; also
39876 perform the same fix to a similar check in same function.
39878 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39879 with the same number are found, just use issue a warning with
39880 grub_dprintf(), as this error has been reported to be non-fatal.
39882 2009-03-31 Pavel Roskin <proski@gnu.org>
39884 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39885 for cross-compilation.
39887 2009-03-30 Robert Millan <rmh@aybabtu.com>
39889 Fix i386-ieee1275 build.
39891 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39892 Remove declaration.
39894 2009-03-30 Pavel Roskin <proski@gnu.org>
39896 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39897 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39898 zero-terminated, rely only on the strlen value. Fix comparison
39899 of strings differing in length.
39901 2009-03-30 Robert Millan <rmh@aybabtu.com>
39903 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39904 checking for abi version. Improve error messages on BIOS to notify
39905 user about `linux16' command.
39907 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39911 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39912 in case of collision
39913 * disk/scsi.c (grub_scsi_open): free scsi in case of error
39915 2009-03-29 Robert Millan <rmh@aybabtu.com>
39917 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39918 set `vid_mode' accordingly.
39919 (grub_linux_boot): Process `vid_mode' and set video mode.
39921 2009-03-29 Robert Millan <rmh@aybabtu.com>
39923 * util/grub.d/10_linux.in (linux_entry): New function.
39924 Factorize generation of Linux boot entries.
39926 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
39928 Make the format of Environment Block plain text. The boot loader
39929 part is not tested well yet.
39931 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
39933 (envblk): Likewise.
39934 (usage): Remove "info" and "clear". Add "unset". Update the
39935 description of "set", as this does not delete variables any
39937 (create_envblk_file): Complete rewrite.
39938 (open_envblk_file): Likewise.
39939 (cmd_info): Removed.
39940 (cmd_list): Likewise.
39941 (cmd_set): Likewise.
39942 (cmd_clear): Likewise.
39943 (list_variables): New function.
39944 (write_envblk): Likewise.
39945 (set_variables): Likewise.
39946 (unset_variables): Likewise.
39947 (main): Complete rewrite.
39949 * commands/loadenv.c (buffer): Removed.
39950 (envblk): Likewise.
39951 (open_envblk_file): New function.
39952 (read_envblk_file): Complete rewrite.
39953 (grub_cmd_load_env): Likewise.
39954 (grub_cmd_list_env): Likewise.
39955 (struct blocklist): New struct.
39956 (free_blocklists): New function.
39957 (check_blocklists): Likewise.
39958 (write_blocklists): Likewise.
39959 (grub_cmd_save_env): Complete rewrite.
39961 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
39962 a plain text signature.
39963 (GRUB_ENVBLK_MAXLEN): Removed.
39964 (struct grub_envblk): Complete rewrite.
39965 (grub_envblk_find): Removed.
39966 (grub_envblk_insert): Likewise.
39967 (grub_envblk_open): New prototype.
39968 (grub_envblk_set): Likewise.
39969 (grub_envblk_delete): Put const to VALUE.
39970 (grub_envblk_iterate): Put const to NAME and VALUE.
39971 (grub_envblk_close): New prototype.
39972 (grub_envblk_buffer): New inline function.
39973 (grub_envblk_size): Likewise.
39975 * lib/envblk.c: Include grub/mm.h.
39976 (grub_env_find): Removed.
39977 (grub_envblk_open): New function.
39978 (grub_envblk_close): Likewise.
39979 (escaped_value_len): Likewise.
39980 (find_next_line): Likewise.
39981 (grub_envblk_insert): Removed.
39982 (grub_envblk_set): New function.
39983 (grub_envblk_delete): Complete rewrite.
39984 (grub_envblk_iterate): Likewise.
39986 2009-03-28 Robert Millan <rmh@aybabtu.com>
39988 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
39989 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
39990 variables. Use 16-bit loader.
39991 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
39993 * kern/i386/loader.S (grub_linux_boot): Rename to ...
39994 (grub_linux16_boot): ... this. Update all users.
39995 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
39996 (grub_linux_boot): ... this. Update all users.
39998 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
39999 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40000 commands to `linux16' and `initrd16'.
40001 (GRUB_MOD_FINI(linux)): Rename to ...
40002 (GRUB_MOD_FINI(linux16)): ... this.
40004 2009-03-24 Pavel Roskin <proski@gnu.org>
40006 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40007 not just for compilation.
40009 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40011 Move multiboot helper out of kernel
40013 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40014 `loader/i386/multiboot_helper.S'.
40015 * conf/i386-coreboot.rmk: Likewise
40016 * conf/i386-ieee1275.rmk: Likewise
40018 * kern/i386/loader.S: Move multiboot helpers from here...
40019 * loader/i386/multiboot_helper.S: ...moved here
40020 * include/grub/i386/loader.h: Move declarations of multiboot
40021 helpers from here...
40022 * include/grub/i386/multiboot.h: ...moved here
40023 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40025 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40027 * kern/env.c (grub_env_context_open): Added an argument to specify
40028 whether a new context inherits exported variables from current
40029 one. This is useful when making a sandbox to interpret a config
40031 All callers updated.
40033 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40035 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40037 * kern/env.c (grub_env_context_close): Fix memory leaks.
40039 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40041 * normal/main.c (grub_normal_execute): Added an argument
40042 BATCH to specify if an interactive interface should be provided
40043 after reading a config file.
40044 All callers updated.
40045 (read_command_list): Prevent being executed twice.
40046 (read_fs_list): Likewise.
40048 * include/grub/normal.h (grub_normal_execute): Updated the
40051 2009-03-22 Pavel Roskin <proski@gno.org>
40053 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40055 * kern/i386/pc/startup.S: Likewise.
40056 * kern/i386/efi/startup.S: Likewise.
40057 * kern/i386/ieee1275/startup.S: Likewise.
40058 * kern/i386/coreboot/startup.S: Likewise.
40059 * kern/x86_64/efi/startup.S: Likewise.
40061 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40062 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40063 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40065 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40067 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40069 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40071 Use vaddr of correct segment for entry_point.
40073 2009-03-21 Bean <bean123ch@gmail.com>
40075 * commands/blocklist.c: Add include file <grub/command.h>, remove
40076 <grub/normal.h> and <grub/arg.h>.
40077 (grub_cmd_blocklist): Use the new command interface.
40078 (GRUB_MOD_INIT): Likewise.
40079 (GRUB_MOD_FINI): Likewise.
40080 * commands/boot.c: Likewise.
40081 * commands/cat.c: Likewise.
40082 * commands/cmp.c: Likewise.
40083 * commands/configfile.c: Likewise.
40084 * commands/crc.c: Likewise.
40085 * commands/echo.c: Likewise.
40086 * commands/halt.c: Likewise.
40087 * commands/handler.c: Likewise.
40088 * commands/hdparm.c: Likewise.
40089 * commands/help.c: Likewise.
40090 * commands/hexdump.c: Likewise.
40091 * commands/loadenv.c: Likewise.
40092 * commands/ls.c: Likewise.
40093 * commands/lsmmap.c: Likewise.
40094 * commands/lspci.c: Likewise.
40095 * commands/loadenv.c: Likewise.
40096 * commands/read.c: Likewise.
40097 * commands/reboot.c: Likewise.
40098 * commands/search.c: Likewise.
40099 * commands/sleep.c: Likewise.
40100 * commands/test.c: Likewise.
40101 * commands/usbtest.c: Likewise.
40102 * commands/videotest.c: Likewise.
40103 * commands/i386/cpuid.c: Likewise.
40104 * commands/i386/pc/halt.c: Likewise.
40105 * commands/i386/pc/play.c: Likewise.
40106 * commands/i386/pc/pxecmd.c: Likewise.
40107 * commands/i386/pc/vbeinfo.c: Likewise.
40108 * commands/i386/pc/vbetest.c: Likewise.
40109 * commands/ieee1275/suspend.c: Likewise.
40110 * disk/loopback.c: Likewise.
40111 * font/font_cmd.c: Likewise.
40112 * hello/hello.c: Likewise.
40113 * loader/efi/appleloader.c: Likewise.
40114 * loader/efi/chainloader.c: Likewise.
40115 * loader/i386/bsd.c: Likewise.
40116 * loader/i386/efi/linux.c: Likewise.
40117 * loader/i386/ieee1275/linux.c: Likewise.
40118 * loader/i386/linux.c: Likewise.
40119 * loader/i386/pc/chainloader.c: Likewise.
40120 * loader/i386/pc/linux.c: Likewise.
40121 * loader/powerpc/ieee1275/linux.c: Likewise.
40122 * loader/multiboot_loader.c: Likewise.
40123 * term/gfxterm.c: Likewise.
40124 * term/i386/pc/serial.c: Likewise.
40125 * term/terminfo.c: Likewise.
40127 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40128 * term/i386/pc/vga.c: Likewise.
40129 * video/readers/jpeg.c: Likewise.
40130 * video/readers/png.c: Likewise.
40131 * video/readers/tga.c: Likewise.
40133 * util/grub-fstest (cmd_loopback): Removed.
40134 (cmd_blocklist): Likewise.
40135 (cmd_ls): Likewise.
40136 (grub_register_command): Likewise.
40137 (grub_unregister_command): Likewise.
40138 (execute_command): Use grub_command_find to locate command and execute
40141 * include/grub/efi/chainloader.h: Removed.
40142 * loader/efi/chainloader_normal.c: Likewise.
40143 * loader/i386/bsd_normal.c: Likewise.
40144 * loader/i386/pc/chainloader_normal.c: Likewise.
40145 * loader/i386/pc/multiboot_normal.c: Likewise.
40146 * loader/linux_normal.c: Likewise.
40147 * loader/multiboot_loader_normal.c: Likewise.
40148 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40150 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40151 and grub_register_command_p1.
40153 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40154 kern/command.c, lib/arg.c and commands/extcmd.c.
40155 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40156 (minicmd_mod_SOURCES): New variable.
40157 (minicmd_mod_CFLAGS): Likewise.
40158 (minicmd_mod_LDFLAGS): Likewise.
40159 (extcmd_mod_SOURCES): Likewise.
40160 (extcmd_mod_CFLAGS): Likewise.
40161 (extcmd_mod_LDFLAGS): Likewise.
40162 (boot_mod_SOURCES): Removed.
40163 (boot_mod_CFLAGS): Likewise.
40164 (boot_mod_LDFLAGS): Likewise.
40166 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40168 (kernel_img_HEADERS): Add command.h.
40169 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40170 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40172 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40173 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40174 remove the corresponding normal mode command.
40175 (normal_mod_SOURCES): Remove normal/arg.c.
40176 * conf/i386-coreboot.rmk: Likewise.
40177 * conf/i386-efi.rmk: Likewise.
40178 * conf/i386-ieee1275.rmk: Likewise.
40179 * conf/powerpc-ieee1275.rmk: Likewise.
40180 * conf/x86_64-efi.rmk: Likewise.
40182 * include/grub/arg.h: Move from here ...
40183 * include/grub/lib/arg.h: ... to here.
40185 * normal/arg.c: Move from here ...
40186 * lib/arg.c: ... to here.
40188 * commands/extcmd.c: New file.
40189 * commands/minicmd.c: Likewise.
40190 * include/grub/command.h: Likewise.
40191 * include/grub/extcmd.h: Likewise.
40192 * kern/command.c: Likewise.
40193 * kern/corecmd.c: Likewise.
40195 * kern/list.c (grub_list_iterate): Return int instead of void.
40196 (grub_list_insert): New function.
40197 (grub_prio_list_insert): Likewise.
40199 * kern/rescue.c (grub_rescue_command): Removed.
40200 (grub_rescue_command_list): Likewise.
40201 (grub_rescue_register_command): Likewise.
40202 (grub_rescue_unregister_command): Likewise.
40203 (grub_rescue_cmd_boot): Move to minicmd.c
40204 (grub_rescue_cmd_help): Likewise.
40205 (grub_rescue_cmd_info): Likewise.
40206 (grub_rescue_cmd_boot): Likewise.
40207 (grub_rescue_cmd_testload): Likewise.
40208 (grub_rescue_cmd_dump): Likewise.
40209 (grub_rescue_cmd_rmmod): Likewise.
40210 (grub_rescue_cmd_lsmod): Likewise.
40211 (grub_rescue_cmd_exit): Likewise.
40212 (grub_rescue_print_devices): Moved to corecmd.c.
40213 (grub_rescue_print_files): Likewise.
40214 (grub_rescue_cmd_ls): Likewise.
40215 (grub_rescue_cmd_insmod): Likewise.
40216 (grub_rescue_cmd_set): Likewise.
40217 (grub_rescue_cmd_unset): Likewise.
40218 (attempt_normal_mode): Use grub_command_find to get normal module.
40219 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40220 commands, remove grub_rescue_register_command calls.
40222 * normal/command.c (grub_register_command): Removed.
40223 (grub_unregister_command): Likewise.
40224 (grub_command_find): Likewise.
40225 (grub_iterate_commands): Likewise.
40226 (rescue_command): Likewise.
40227 (export_command): Moved to corecmd.c.
40228 (set_command): Removed.
40229 (unset_command): Likewise.
40230 (insmod_command): Likewise.
40231 (rmmod_command): Likewise.
40232 (lsmod_command): Likewise.
40233 (grub_command_init): Likewise.
40235 * normal/completion.c (iterate_command): Use cmd->prio to check for
40237 (complete_arguments): Use grub_extcmd_t structure to find options.
40238 (grub_normal_do_completion): Change function grub_iterate_commands to
40239 grub_command_iterate.
40241 * normal/execute.c (grub_script_execute_cmd): No need to parse
40244 * normal/main.c (grub_dyncmd_dispatcher): New function.
40245 (read_command_list): Register unload commands as dyncmd.
40246 (grub_cmd_normal): Use new command interface, register rescue,
40247 unregister normal at entry, register normal, unregister rescue at exit.
40249 * include/grub/list.h (grub_list_test_t): New type.
40250 (grub_list_iterate): Return int instead of void.
40251 (grub_list_insert): New function.
40252 (GRUB_AS_NAMED_LIST_P): New macro.
40253 (GRUB_AS_PRIO_LIST): Likewise.
40254 (GRUB_AS_PRIO_LIST_P): Likewise.
40255 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40256 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40257 (grub_prio_list): New structure.
40258 (grub_prio_list_insert): New function.
40259 (grub_prio_list_remove): New inline function.
40261 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40262 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40263 (GRUB_COMMAND_FLAG_MENU): Likewise.
40264 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40265 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40266 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40267 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40268 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40269 (grub_command): Likewise.
40270 (grub_register_command): Likewise.
40271 (grub_command_find): Likewise.
40272 (grub_iterate_commands): Likewise.
40273 (grub_command_init): Likewise.
40274 (grub_arg_parse): Likewise.
40275 (grub_arg_show_help): Likewise.
40277 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40278 (grub_rescue_unregister_command): Likewise.
40280 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40281 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40282 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40284 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40285 grub_rescue_cmd_initrd.
40286 * include/grub/i386/loader.h: Likewise.
40287 * include/grub/x86_64/loader.h: Likewise.
40289 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40291 2009-03-21 Bean <bean123ch@gmail.com>
40293 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40294 instead of stat in mingw environment.
40296 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40298 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40300 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40303 2009-03-21 Bean <bean123ch@gmail.com>
40305 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40306 out of range error.
40308 2009-03-18 Michel Dänzer <michel@daenzer.net>
40310 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40311 checking inode flags for EXT4_EXTENTS_FLAG.
40313 2009-03-18 Robert Millan <rmh@aybabtu.com>
40315 * loader/i386/linux.c: Include `<grub/video.h>' and
40316 `<grub/i386/pc/vbe.h>'..
40317 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40318 (grub_linux32_boot): Attempt to configure video settings with
40319 grub_linux_setup_video().
40320 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40321 to avoid grub_console_fini() which would step out of graphical mode
40324 2009-03-14 Robert Millan <rmh@aybabtu.com>
40326 Fix build on powerpc.
40327 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40329 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40331 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40332 background image command.
40334 2009-03-12 Colin D Bennett <colin@gibibit.com>
40336 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40337 (grub_gfxterm_putchar): Extract pairs of identical calls to
40338 draw_cursor out of conditional blocks.
40340 2009-03-11 Pavel Roskin <proski@gnu.org>
40342 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40343 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40345 2009-03-11 Robert Millan <rmh@aybabtu.com>
40347 * loader/i386/multiboot_elfxx.c
40348 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40350 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40352 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40355 2009-03-11 Robert Millan <rmh@aybabtu.com>
40357 * loader/i386/multiboot.c (code_size): New variable.
40358 (grub_multiboot): Define offsets by adding to `code_size' rather
40359 than subtracting from `grub_multiboot_payload_size'. Provide
40360 4-byte alignment to MBI and others by increasing
40361 `boot_loader_name_length' appropriately.
40363 * loader/i386/multiboot_elfxx.c
40364 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40366 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40368 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40371 2009-03-08 Robert Millan <rmh@aybabtu.com>
40373 Make loader/i386/linux.c usable on i386-pc again.
40375 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40377 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40380 2009-03-07 Bean <bean123ch@gmail.com>
40382 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40385 2009-03-06 Robert Millan <rmh@aybabtu.com>
40387 Fix display issue on terminals with screen size other than 80x25
40388 (e.g. gfxterm with resolution higher than 640x480).
40390 * normal/main.c (grub_normal_init_page): Display title text in a
40391 position relative to the center of the terminal instead of relying
40392 on a hardcoded offset.
40394 2009-03-04 Robert Millan <rmh@aybabtu.com>
40396 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40399 * Makefile.in (host_kernel): New variable.
40400 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40401 scripts instead of just the windows one.
40402 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40404 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40406 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40408 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40409 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40410 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40411 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40412 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40413 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40415 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40417 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40418 or if there's no space for the disk label and print the partition number on a
40421 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40423 * util/misc.c: Include <time.h>.
40424 (grub_millisleep): New function.
40426 2009-03-04 Bean <bean123ch@gmail.com>
40428 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40429 another option -mno-red-zone.
40431 * commands/handler.c: Change module description.
40433 * kern/handler.c: Add missing space at the end of description line.
40435 * kern/list.c: Likewise.
40437 2009-03-03 Robert Millan <rmh@aybabtu.com>
40439 Move more components to the relocation area, and fix mbi pointer
40440 handling to use the destination rather than the origin (thanks to
40441 Vladimir Serbinenko for spotting).
40443 * loader/i386/multiboot.c (mbi_dest): New variable.
40444 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40445 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40448 2009-03-01 Bean <bean123ch@gmail.com>
40450 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40451 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40452 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40453 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40455 * loader/i386/efi/linux.c (acpi_guid): New variable.
40456 (acpi_guid): Likewise.
40457 (EBDA_SEG_ADDR): New constant.
40458 (LOW_MEM_ADDR): Likewise.
40459 (FAKE_EBDA_SEG): Likewise.
40460 (fake_bios_data): New function.
40461 (grub_linux_boot): Call fake_bios_data.
40463 2009-03-01 Bean <bean123ch@gmail.com>
40465 * commands/terminal.c: Removed.
40467 * commands/handler.c: New file.
40469 * include/grub/list.h: Likewise.
40471 * include/grub/handler.h: Likewise.
40473 * kern/list.c: Likewise.
40475 * kern/handler.c: Likewise.
40477 * kern/term.h: Include header file <grub/handler.h>.
40478 (grub_term_input): Move next field to the beginning.
40479 (grub_term_output): Likewise.
40480 (grub_term_input_class): New variable.
40481 (grub_term_output_class): Likewise.
40482 (grub_term_register_input): Changed to inline function.
40483 (grub_term_register_output): Likewise.
40484 (grub_term_unregister_input): Likewise.
40485 (grub_term_unregister_output): Likewise.
40486 (grub_term_set_current_input): Likewise.
40487 (grub_term_set_current_output): Likewise.
40488 (grub_term_get_current_input): Likewise.
40489 (grub_term_get_current_output): Likewise.
40490 (grub_term_iterate_input): Removed.
40491 (grub_term_iterate_output): Likewise.
40493 * kern/term.c (grub_term_list_input): Removed.
40494 (grub_term_list_output): Likewise.
40495 (grub_term_input_class): New variable.
40496 (grub_term_output_class): Likewise.
40497 (grub_cur_term_input): Change variable as macro.
40498 (grub_cur_term_output): Likewise.
40499 (grub_term_register_input): Removed.
40500 (grub_term_register_output): Likewise.
40501 (grub_term_unregister_input): Likewise.
40502 (grub_term_unregister_output): Likewise.
40503 (grub_term_set_current_input): Likewise.
40504 (grub_term_set_current_output): Likewise.
40505 (grub_term_iterate_input): Likewise.
40506 (grub_term_iterate_output): Likewise.
40507 (grub_term_get_current_input): Likewise.
40508 (grub_term_get_current_output): Likewise.
40510 * util/grub-editenv.c: Include header file <grub/handler.h>.
40511 (grub_term_get_current_input): Removed.
40512 (grub_term_get_current_output): Likewise.
40513 (grub_term_input_class): New variable.
40514 (grub_term_output_class): Likewise.
40516 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40517 (grub_term_get_current_output): Likewise.
40518 (grub_term_input_class): New variable.
40519 (grub_term_output_class): Likewise.
40521 * util/grub-probe.c (grub_term_get_current_input): Removed.
40522 (grub_term_get_current_output): Likewise.
40523 (grub_term_input_class): New variable.
40524 (grub_term_output_class): Likewise.
40526 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40527 (grub_term_get_current_output): Likewise.
40528 (grub_term_input_class): New variable.
40529 (grub_term_output_class): Likewise.
40531 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40532 (terminal_mod_SOURCES): Likewise.
40533 (terminal_mod_CFLAGS): Likewise.
40534 (terminal_mod_LDFLAGS): Likewise.
40536 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40538 (kernel_img_SOURCES): Add list.c and handler.c.
40539 (kernel_img_HEADERS): Add list.h and handler.h.
40541 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40543 (kernel_mod_SOURCES): Add list.c and handler.c.
40544 (kernel_mod_HEADERS): Add list.h and handler.h.
40546 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40548 (kernel_elf_SOURCES): Add list.c and handler.c.
40549 (kernel_elf_HEADERS): Add list.h and handler.h.
40551 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40553 (kernel_elf_SOURCES): Add list.c and handler.c.
40554 (kernel_elf_HEADERS): Add list.h and handler.h.
40556 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40558 (kernel_mod_SOURCES): Add list.c and handler.c.
40559 (kernel_mod_HEADERS): Add list.h and handler.h.
40561 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40563 (kernel_elf_SOURCES): Add list.c and handler.c.
40564 (kernel_elf_HEADERS): Add list.h and handler.h.
40566 2009-02-27 Robert Millan <rmh@aybabtu.com>
40568 Factorize elf32 / elf64 code in Multiboot loader. This will
40569 prevent it from getting out of sync again.
40571 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40572 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40573 grub_multiboot_load_elf64): Move from here ...
40574 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40575 grub_multiboot_load_elf): ... to here (new file).
40577 2009-02-27 Robert Millan <rmh@aybabtu.com>
40579 * util/grub.d/10_linux.in: Rename "single-user mode" to
40582 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40584 Don't leak in SCSI code.
40585 * disk/scsi.c (grub_scsi_close): free `scsi'.
40587 2009-02-27 Robert Millan <rmh@aybabtu.com>
40589 * loader/i386/pc/multiboot.c: Move from here ...
40590 * loader/i386/multiboot.c: ... to here. Update all users.
40592 2009-02-27 Robert Millan <rmh@aybabtu.com>
40594 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40595 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40597 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40599 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40602 2009-02-27 Robert Millan <rmh@aybabtu.com>
40604 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40605 `0x' qualifier as 0 when base is specified as parameter).
40607 2009-02-24 Bean <bean123ch@gmail.com>
40609 * configure.ac: Check for -mcmodel=large in x86_64 target.
40611 * include/grub/efi/api.h (efi_call_10): New macro.
40612 (efi_wrap_10): New function.
40614 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40615 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40616 (GRUB_PE32_REL_BASED_LOW): Likewise.
40617 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40618 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40619 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40620 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40621 (GRUB_PE32_REL_BASED_REL): Likewise.
40622 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40623 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40624 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40626 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40629 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40630 (efi_wrap_10): New function.
40632 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40634 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40635 MB/MBP model (NV chipset).
40636 (devdata_devs): Add devpath_5 to the list.
40638 * load/i386/efi/linux.c (video_base): Remove variable.
40639 (RGB_MASK): New macro.
40640 (RGB_MAGIC): Likewise.
40641 (LINE_MIN): Likewise.
40642 (LINE_MAX): Likewise.
40643 (FBTEST_STEP): Likewise.
40644 (FBTEST_COUNT): Likewise.
40645 (fb_list): New variable.
40646 (grub_find_video_card): Remove function.
40647 (find_framebuf): New function.
40648 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40651 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40652 problem for x86_64.
40654 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40656 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40658 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40661 2009-02-22 Robert Millan <rmh@aybabtu.com>
40663 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40664 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40665 in our relocation, instead of using it directly from heap. Also
40666 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40668 2009-02-21 Robert Millan <rmh@aybabtu.com>
40670 Implement USB keyboard support (based on patch by Marco Gerards)
40672 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40673 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40674 (usb_keyboard_mod_LDFLAGS): New variables.
40676 * term/usb_keyboard.c: New file.
40678 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40680 Corrected wrong declaration
40682 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40684 2009-02-14 Christian Franke <franke@computer.org>
40686 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40687 (grub_lspci_iter): Print class code and programming interface byte.
40689 2009-02-14 Christian Franke <franke@computer.org>
40691 * gendistlist.sh: Ignore `.svn' directories.
40693 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40695 * fs/fat.c: Add 2009 to Copyright line.
40697 2009-02-14 Christian Franke <franke@computer.org>
40699 * commands/hdparm.c: New file. Provides `hdparm' command
40700 which sends ATA commands via grub_disk_ata_pass_through ().
40702 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40704 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40705 and <grub/cpu/io.h> to include/grub/ata.h.
40706 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40707 (GRUB_CDROM_SECTOR_SIZE): Remove.
40708 (GRUB_ATA_*): Move to include/grub/ata.h.
40709 (GRUB_ATAPI_*): Likewise.
40710 (enum grub_ata_commands): Likewise.
40711 (enum grub_ata_timeout_milliseconds): Likewise.
40712 (struct grub_ata_device): Likewise.
40713 (grub_ata_regset): Likewise.
40714 (grub_ata_regget): Likewise.
40715 (grub_ata_regset2): Likewise.
40716 (grub_ata_regget2): Likewise.
40717 (grub_ata_check_ready): Likewise.
40718 (grub_ata_wait_not_busy): Remove static, exported in
40719 include/grub/ata.h.
40720 (grub_ata_wait_drq): Likewise.
40721 (grub_ata_pio_read): Likewise.
40723 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40724 function for hdparm.mod.
40726 * include/grub/ata.h: New file, contains declarations from
40728 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40730 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40731 (grub_disk_ata_pass_through): New exported variable.
40733 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40735 2009-02-13 Colin D Bennett <colin@gibibit.com>
40737 Support multiple fallback entries, and provide an API to support
40738 executing default+fallback menu entries. Renamed the `terminal' menu
40741 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40742 variable declaration.
40743 (grub_menu_execute_callback): New structure declaration.
40744 (grub_menu_execute_callback_t): New typedef.
40745 (grub_menu_execute_with_fallback): New function declaration.
40746 (grub_menu_get_entry): Likewise.
40747 (grub_menu_get_timeout): Likewise.
40748 (grub_menu_set_timeout): Likewise.
40750 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40752 * normal/menu.c (grub_wait_after_message): Moved to
40753 `normal/menu_text.c'.
40754 (draw_border): Likewise.
40755 (print_message): Likewise.
40756 (print_entry): Likewise.
40757 (print_entries): Likewise.
40758 (grub_menu_init_page): Likewise.
40759 (get_entry_number): Likewise.
40760 (print_timeout): Likewise.
40761 (run_menu): Likewise.
40762 (grub_menu_execute_entry): Likewise.
40763 (show_text_menu): Likewise.
40764 (get_and_remove_first_entry_number): New function.
40765 (grub_menu_execute_with_fallback): Likewise.
40766 (get_entry): Renamed to ...
40767 (grub_menu_get_entry): .. this and made it global.
40768 (get_timeout): Renamed to ...
40769 (grub_menu_get_timeout): ... this and made it global.
40770 (set_timeout): Renamed to ...
40771 (grub_menu_set_timeout): ... this and made it global.
40772 (grub_normal_terminal_menu_viewer): Renamed to ...
40773 (grub_normal_text_menu_viewer): ... this.
40775 * normal/menu_text.c: New file. Extracted text-menu-specific code
40776 from normal/menu.c.
40778 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40779 (normal_mod_SOURCES): Likewise.
40781 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40782 (normal_mod_SOURCES): Likewise.
40784 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40785 (normal_mod_SOURCES): Likewise.
40787 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40788 (normal_mod_SOURCES): Likewise.
40790 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40791 (normal_mod_SOURCES): Likewise.
40793 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40794 (normal_mod_SOURCES): Likewise.
40796 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40797 (normal_mod_SOURCES): Likewise.
40799 2009-02-11 Robert Millan <rmh@aybabtu.com>
40801 * util/grub.d/00_header.in: Update old reference to `font' command.
40803 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40805 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40807 Based on patch from Javier Martín.
40809 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40811 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40812 to avoid false positives with FAT.
40813 (grub_fstest_SOURCES): Likewise.
40814 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40815 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40816 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40817 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40818 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40819 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40821 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40823 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40824 bpb.version_specific.fat12_or_fat16.fstype and
40825 bpb.version_specific.fat32.fstype.
40827 2009-02-08 Robert Millan <rmh@aybabtu.com>
40829 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40831 2009-02-08 Robert Millan <rmh@aybabtu.com>
40833 * Makefile.in (host_os, host_cpu): New variables.
40834 (target_os): Remove. Update all users.
40836 2009-02-08 Marco Gerards <marco@gnu.org>
40838 * Makefile.in (enable_grub_emu_usb): New variable.
40839 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40840 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40841 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40842 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40843 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40844 `usbtest.mod' and `usbms.mod'.
40845 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40846 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40847 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40848 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40849 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40852 * disk/usbms.c: New file.
40854 * include/grub/usb.h: Likewise.
40856 * include/grub/usbtrans.h: Likewise.
40858 * include/grub/usbdesc.h: Likewise.
40860 * bus/usb/usbtrans.c: Likewise.
40862 * bus/usb/ohci.c: Likewise.
40864 * bus/usb/uhci.c: Likewise.
40866 * bus/usb/usbhub.c: Likewise.
40868 * bus/usb/usb.c: Likewise.
40870 * commands/usbtest.c: Likewise.
40872 * util/usb.c: Likewise.
40874 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40876 * configure.ac: Test for libusb presence.
40878 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40880 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40882 * kern/mm.c: Add more comments.
40884 2009-02-08 Robert Millan <rmh@aybabtu.com>
40886 Patch from Javier Martín.
40887 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40888 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40890 2009-02-08 Robert Millan <rmh@aybabtu.com>
40892 * fs/cpio.c: Split tar functionality to ...
40893 * fs/tar.c: ... here (new file). Update all users.
40895 2009-02-07 Robert Millan <rmh@aybabtu.com>
40897 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40898 backward-incompatible features.
40900 Based on patch from Javier Martín, with some adjustments.
40902 2009-02-07 Michael Scherer <misc@mandriva.org>
40904 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40906 2009-02-07 Robert Millan <rmh@aybabtu.com>
40908 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40909 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40910 after the RAID stuff.
40912 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40914 Fixes problem when running vbetest command as reported by
40915 Vladimir Serbinenko <phcoder@gmail.com>.
40917 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40919 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
40921 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40922 /dev/md/NpN style mdraid devices.
40924 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40926 * util/unifont2pff.rb: Remove.
40928 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40930 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
40933 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40935 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
40936 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40937 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40938 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40939 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40940 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40941 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40943 2009-02-02 Christian Franke <franke@computer.org>
40945 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
40947 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
40949 * INSTALL: Note that we now require at least autoconf 2.59 and
40950 that LZO is optional.
40952 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40954 Base on patch on bug #24154 created by Tomas Tintera
40955 <trosos@seznam.cz>.
40957 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
40959 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40961 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
40962 <bero@arklinux.org>.
40964 * normal/parser.y (script_init): Add missing semicolon.
40966 2009-01-31 Colin D Bennett <colin@gibibit.com>
40968 * normal/main.c: Add include to grub/menu_viewer.h.
40969 (free_menu_entry_classes): Added.
40970 (grub_normal_menu_addentry): Added class property handling.
40971 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
40972 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
40974 * normal/menu_viewer.c: New file.
40976 * normal/menu.c (run_menu_entry): Renamed to ...
40977 (grub_menu_execute_entry): ... this and made it as global.
40978 (grub_menu_run): Renamed to ...
40979 (show_text_menu): ... this and made it local.
40980 (show_text_menu): Adapt to new function names.
40981 (grub_normal_terminal_menu_viewer): New global variable.
40983 * include/grub/menu.h: New file.
40985 * include/grub/menu_viewer.h: New file.
40987 * include/grub/normal.h: Added include to grub/menu.h.
40988 (grub_menu_entry): Moved to include/grub/menu.h.
40989 (grub_menu_entry_t): Likewise.
40990 (grub_menu): Likewise.
40991 (grub_menu_t): Likewise.
40992 (grub_normal_terminal_menu_viewer): Added.
40993 (grub_menu_execute_entry): Likewise.
40994 (grub_menu_run): Removed.
40996 * DISTLIST: Added include/grub/menu.h.
40997 Added include/grub/menu_viewer.h.
40998 Added normal/menu_viewer.c.
41000 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41002 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41003 arglist for menutitle arguments.
41005 * normal/main.c (grub_normal_menu_addentry): Likewise.
41007 * normal/parser.y (menuentry): Likewise.
41009 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41011 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41012 (grub_script_create_cmdmenu): Likewise.
41014 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41016 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41019 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41021 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41023 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41025 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41027 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41029 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41031 2009-01-30 Christian Franke <franke@computer.org>
41033 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41034 in option help text.
41036 2009-01-27 Pavel Roskin <proski@gnu.org>
41038 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41040 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41042 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41044 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41046 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41047 unregister function.
41049 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41051 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41053 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41055 * util/grub-mkfont.c (usage): Fix typo.
41057 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41059 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41061 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41063 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41065 * kern/misc.c (grub_strcasecmp): New function.
41066 (grub_strcasecmp): Use grub_size_t instead of int for length.
41068 * include/grub/misc.h: Update function prototypes.
41070 2009-01-26 Robert Millan <rmh@aybabtu.com>
41072 * configure.ac: Fix cross-compilation check.
41074 2009-01-22 Christian Franke <franke@computer.org>
41076 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41077 (precision) digit string. Allow `.format2' without `format1' (width).
41078 Limit input chars for `%s' output to `format2' if specified. This is
41079 compatible with standard printf ().
41081 2009-01-22 Christian Franke <franke@computer.org>
41083 * disk/ata.c (grub_ata_wait_status): Replace by ...
41084 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41085 other status bits may be invalid while BSY is asserted.
41086 (grub_ata_check_ready): New function.
41087 (grub_ata_cmd): Removed.
41088 (grub_ata_wait_drq): New function.
41089 (grub_ata_strncpy): Remove inline.
41090 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41091 and error check now done by grub_ata_wait_drq ().
41092 (grub_ata_pio_write): Likewise.
41093 (grub_atapi_identify): Set DEV before check for !BSY. Use
41094 grub_ata_wait_drq () to wait for data.
41095 (grub_ata_device_initialize): Add status register check to
41096 detect missing SATA slave devices. Add debug messages.
41097 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41098 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41099 transfer loop by grub_ata_pio_write ().
41100 (grub_ata_identify): Set DEV before check for !BSY. Use
41101 grub_ata_wait_drq () to wait for data.
41102 (grub_ata_setaddress): Set DEV before check for !BSY.
41103 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41104 read/write in one loop. Fix invalid command on write. Fix incomplete
41105 command on (size % batch) == 0. Add missing error check after write of
41106 last block. Add debug messages.
41107 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41109 2009-01-19 Christian Franke <franke@computer.org>
41111 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41112 (GRUB_ATAPI_IREASON_*): Likewise.
41113 (grub_ata_pio_write): Fix timeout error return.
41114 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41115 (grub_atapi_wait_drq): New function.
41116 (grub_atapi_packet): New parameter `size'.
41117 Use grub_atapi_wait_drq () and direct write instead of
41118 grub_ata_pio_write ().
41119 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41120 reads the number of bytes requested by the device for each DRQ
41122 (grub_atapi_write): Remove old implementation, return not
41123 implemented instead.
41125 2009-01-19 Christian Franke <franke@computer.org>
41127 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41128 of 512 to calculate data size.
41129 (grub_scsi_read12): Likewise.
41130 (grub_scsi_write10): Likewise.
41131 (grub_scsi_write12): Likewise.
41132 (grub_scsi_read): Adjust size according to blocksize.
41133 Add checks for invalid blocksize and unaligned transfer.
41135 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41137 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41139 * term/gfxterm.c (write_char): Fix background rendering for wide
41142 2009-01-19 Robert Millan <rmh@aybabtu.com>
41144 * config.guess: Update to latest version from config git.
41145 * config.sub: Likewise.
41147 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41149 * Makefile.in: Change font compilation to use new grub-mkfont instead
41152 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41153 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41154 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41155 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41156 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41157 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41158 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41159 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41160 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41162 2009-01-16 Christian Franke <franke@computer.org>
41164 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41165 (enum grub_ata_timeout_milliseconds): New enum.
41166 (grub_ata_wait_status): Add parameter milliseconds.
41167 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41168 recovery from timed-out commands.
41169 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41170 return grub_errno instead of REG_ERROR.
41171 (grub_ata_pio_write): Add parameter milliseconds.
41172 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41173 Pass milliseconds to grub_ata_wait_status () and
41174 grub_ata_pio_read ().
41175 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41176 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41177 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41178 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41179 It is not suitable for device detection, because DEV bit is ignored,
41180 the command may run too long, and not all devices set the signature
41182 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41183 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41184 Fix device selection, DEV bit must be set first to address the registers
41185 of the correct device.
41186 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41187 grub_ata_pio_read/write ().
41188 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41189 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41191 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41193 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41195 2009-01-13 Bean <bean123ch@gmail.com>
41197 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41199 2009-01-13 Bean <bean123ch@gmail.com>
41201 * Makefile.in: (enable_grub_mkfont): New variable.
41202 (freetype_cflags): Likewise.
41203 (freetype_libs): Likewise.
41205 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41206 (grub_mkfont_SOURCES): New variable.
41207 (grub_mkfont_CFLAGS): Likewise.
41208 (grub_mkfont_LDFLAGS): Likewise.
41210 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41211 library if `--enable-grub-mkfont' is requested.
41212 (enable_grub_mkfont): New variable.
41213 (freetype_cflags): Likewise.
41214 (freetype_libs): Likewise.
41216 * util/grub-mkfont.c: New file.
41218 2009-01-12 Christian Franke <franke@computer.org>
41220 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41221 mode check. Fix setting of compat_use[].
41223 2009-01-10 Robert Millan <rmh@aybabtu.com>
41225 Update a few copyright years which we forgot to do in 2008 (only for
41226 files whose changes made in 2008 were copyright-significant)
41228 * Makefile.in: Add 2008 to Copyright line.
41229 * disk/ieee1275/ofdisk.c: Likewise.
41230 * disk/efi/efidisk.c: Likewise.
41231 * kern/dl.c: Likewise.
41232 * kern/sparc64/ieee1275/init.c: Likewise.
41233 * kern/mm.c: Likewise.
41234 * kern/efi/mm.c: Likewise.
41235 * boot/i386/pc/boot.S: Likewise.
41236 * genfslist.sh: Likewise.
41237 * fs/iso9660.c: Likewise.
41238 * fs/hfs.c: Likewise.
41239 * fs/jfs.c: Likewise.
41240 * fs/minix.c: Likewise.
41241 * fs/ufs.c: Likewise.
41242 * gensymlist.sh.in: Likewise.
41243 * genkernsyms.sh.in: Likewise.
41244 * include/grub/misc.h: Likewise.
41245 * include/grub/types.h: Likewise.
41246 * include/grub/symbol.h: Likewise.
41247 * include/grub/elf.h: Likewise.
41248 * include/grub/kernel.h: Likewise.
41249 * include/grub/disk.h: Likewise.
41250 * include/grub/dl.h: Likewise.
41251 * include/grub/i386/linux.h: Likewise.
41252 * include/grub/i386/pc/biosdisk.h: Likewise.
41253 * include/grub/efi/api.h: Likewise.
41254 * include/grub/efi/pe32.h: Likewise.
41255 * include/grub/util/misc.h: Likewise.
41256 * normal/execute.c: Likewise.
41257 * normal/arg.c: Likewise.
41258 * normal/completion.c: Likewise.
41259 * normal/lexer.c: Likewise.
41260 * normal/parser.y: Likewise.
41261 * normal/misc.c: Likewise.
41262 * commands/i386/pc/vbeinfo.c: Likewise.
41263 * commands/hexdump.c: Likewise.
41264 * commands/terminal.c: Likewise.
41265 * commands/ls.c: Likewise.
41266 * commands/help.c: Likewise.
41267 * partmap/pc.c: Likewise.
41268 * loader/efi/chainloader.c: Likewise.
41269 * loader/multiboot_loader.c: Likewise.
41270 * loader/i386/pc/multiboot2.c: Likewise.
41271 * term/efi/console.c: Likewise.
41272 * term/i386/pc/serial.c: Likewise.
41273 * util/lvm.c: Likewise.
41274 * util/console.c: Likewise.
41275 * util/i386/efi/grub-mkimage.c: Likewise.
41276 * util/raid.c: Likewise.
41278 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41280 * commands/videotest.c: Removed include to grub/machine/memory.h.
41282 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41283 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41284 (video_mod_SOURCES): Removed.
41285 (video_mod_CFLAGS): Likewise.
41286 (video_mod_LDFLAGS): Likewise.
41287 (gfxterm_mod_SOURCES): Likewise.
41288 (gfxterm_mod_CFLAGS): Likewise.
41289 (gfxterm_mod_LDFLAGS): Likewise.
41290 (videotest_mod_SOURCES): Likewise.
41291 (videotest_mod_CFLAGS): Likewise.
41292 (videotest_mod_LDFLAGS): Likewise.
41293 (bitmap_mod_SOURCES): Likewise.
41294 (bitmap_mod_CFLAGS): Likewise.
41295 (bitmap_mod_LDFLAGS): Likewise.
41296 (tga_mod_SOURCES): Likewise.
41297 (tga_mod_CFLAGS): Likewise.
41298 (tga_mod_LDFLAGS): Likewise.
41299 (jpeg_mod_SOURCES): Likewise.
41300 (jpeg_mod_CFLAGS): Likewise.
41301 (jpeg_mod_LDFLAGS): Likewise.
41302 (png_mod_SOURCES): Likewise.
41303 (png_mod_CFLAGS): Likewise.
41304 (png_mod_LDFLAGS): Likewise.
41306 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41307 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41308 (video_mod_SOURCES): Added.
41309 (video_mod_CFLAGS): Likewise.
41310 (video_mod_LDFLAGS): Likewise.
41311 (videotest_mod_SOURCES): Likewise.
41312 (videotest_mod_CFLAGS): Likewise.
41313 (videotest_mod_LDFLAGS): Likewise.
41314 (bitmap_mod_SOURCES): Likewise.
41315 (bitmap_mod_CFLAGS): Likewise.
41316 (bitmap_mod_LDFLAGS): Likewise.
41317 (tga_mod_SOURCES): Likewise.
41318 (tga_mod_CFLAGS): Likewise.
41319 (tga_mod_LDFLAGS): Likewise.
41320 (jpeg_mod_SOURCES): Likewise.
41321 (jpeg_mod_CFLAGS): Likewise.
41322 (jpeg_mod_LDFLAGS): Likewise.
41323 (png_mod_SOURCES): Likewise.
41324 (png_mod_CFLAGS): Likewise.
41325 (png_mod_LDFLAGS): Likewise.
41326 (gfxterm_mod_SOURCES): Likewise.
41327 (gfxterm_mod_CFLAGS): Likewise.
41328 (gfxterm_mod_LDFLAGS): Likewise.
41330 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41331 grub/machine/console.h.
41333 2009-01-04 Jerone Young <jerone@gmail.com>
41335 Make on screen instructions clearer
41337 Based on patch created by Jidanni <jidanni@jidanni.org>
41339 * normal/menu.c: print clearer instructions on the screen
41341 2009-01-02 Colin D Bennett <colin@gibibit.com>
41345 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41346 build system and fixed gfxterm.c to work with different sized fonts.
41348 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41350 * configure: Re-generated.
41352 * DISTLIST: Removed font/manager.c.
41354 Added font/font_cmd.c.
41356 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41359 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41361 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41363 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41365 * normal/menu.c: Likewise.
41367 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41368 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41370 * include/grub/font.h: Replaced with new file.
41372 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41373 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41374 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41375 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41376 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41377 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41378 fg_red, fg_green, fg_blue, fg_alpha.
41379 (grub_video_adapter): Removed blit_glyph.
41380 (grub_video_blit_glyph): Removed.
41382 * font/manager.c: Removed file.
41384 * font/font.c: New file.
41386 * font/font_cmd.c: Likewise.
41388 * video/video.c (grub_video_blit_glyph): Removed.
41390 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41391 (grub_video_vbe_map_rgba): Likewise.
41392 (grub_video_vbe_unmap_color_int): Likewise.
41393 (grub_video_vbe_blit_glyph): Removed.
41394 (grub_video_vbe_adapter): Removed blit_glyph.
41396 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41397 (get_pixel): Likewise.
41398 (set_pixel): Likewise.
41400 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41402 * term/gfxterm.c: Adapted to new font engine.
41404 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41406 * term/i386/pc/vga.c: Likewise.
41408 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41410 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41412 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41414 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41416 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41418 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41420 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41422 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41424 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41426 * util/grub.d/00_header.in: Changed to use new loadfont command.
41428 * util/grub-mkconfig_lib.in: Changed font extension.
41430 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41432 * util/getroot.c (grub_util_get_grub_dev): Add support for
41433 /dev/md/dNNpNN style partitionable mdraid devices.
41435 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41437 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41438 at a time limit of the PXE TFTP API correctly.
41439 (grub_pxefs_close): Likewise.
41441 2008-11-29 Robert Millan <rmh@aybabtu.com>
41443 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41444 grub_ata_device_initialize() calls.
41446 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41448 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41450 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41452 2008-11-28 Robert Millan <rmh@aybabtu.com>
41454 Fix build on powerpc-ieee1275. Based on patch created by
41455 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41456 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41457 `kern/ieee1275/mmap.c'.
41458 * include/grub/powerpc/ieee1275/memory.h: New file.
41460 Provide grub-install on coreboot.
41461 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41462 (grub_install_SOURCES): New variable.
41463 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41464 usable on coreboot.
41466 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41468 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41469 to `grub_term_input_t'.
41470 (grub_term_get_current_output): Change return type to
41471 `grub_term_output_t'.
41473 2008-11-22 Robert Millan <rmh@aybabtu.com>
41475 Fix breakage on coreboot due to declaration mismatch.
41476 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41477 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41478 grub_vga_text_cls().
41480 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41481 comments. Avoid copying one more byte than necessary (just in case).
41483 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41484 to 0x200000 (avoids trouble with some OFW implementations, and matches
41485 with the one in Yaboot).
41486 Reported by Manoel Abranches
41488 2008-11-20 Robert Millan <rmh@aybabtu.com>
41490 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41491 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41493 * util/grub-mkconfig_lib.in (grub_warn): New function.
41494 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41495 warnings, to obtain consistent formatting.
41496 * util/grub.d/00_header.in: Likewise.
41497 * util/update-grub_lib.in: Likewise.
41499 * loader/i386/linux.c (allocate_pages): Fix a warning.
41500 Move comment text to `#error' stanza.
41502 Harmonize ieee1275's grub_available_iterate() with the generic
41503 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41504 build problem on i386-ieee1275):
41505 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41506 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41507 parameter `type'. Update all users of this function.
41508 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41509 `kern/ieee1275/mmap.c'.
41510 * kern/ieee1275/init.c
41511 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41513 (grub_machine_mmap_iterate): ... this.
41514 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41515 return type to `grub_err_t'. Update all implementations of this
41516 function prototype.
41517 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41520 Add `lsmmap' command (lists firmware-provided memory map):
41521 * commands/lsmmap.c: New file.
41522 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41523 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41525 * conf/powerpc-ieee1275.rmk: Likewise.
41526 * conf/i386-coreboot.rmk: Likewise.
41527 * conf/i386-ieee1275.rmk: Likewise.
41529 2008-11-19 Robert Millan <rmh@aybabtu.com>
41531 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41532 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41533 constraints to initrd allocation (based on code from
41534 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41535 for Linux to find it.
41537 2008-11-14 Robert Millan <rmh@aybabtu.com>
41539 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41540 order to cope with duplicate slashes.
41542 2008-11-14 Robert Millan <rmh@aybabtu.com>
41544 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41545 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41546 don't want to mess with lower memory, because it is used in the Linux
41549 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41550 an appropriate place in lower memory, between 0x10000 and 0x90000,
41551 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41552 is in our heap (probably as a result of it being corrupted during
41553 decompression). Add #error instance with comment to explain why this
41554 loader isn't currently usable on PC/BIOS.
41556 2008-11-14 Robert Millan <rmh@aybabtu.com>
41558 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41559 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41561 2008-11-12 Robert Millan <rmh@aybabtu.com>
41563 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41565 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41566 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41568 * include/grub/i386/pc/memory.h: ... to here.
41570 2008-11-12 Robert Millan <rmh@aybabtu.com>
41572 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41575 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41576 (grub_console_cur_color, grub_console_real_putchar)
41577 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41578 (grub_console_setcolorstate, grub_console_setcolor)
41579 (grub_console_getcolor): Move from here ...
41580 * include/grub/i386/vga_common.h: ... to here (new file).
41582 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41583 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41584 `<grub/i386/io.h>'.
41585 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41586 `<grub/i386/vga_common.h>'.
41588 2008-11-12 Robert Millan <rmh@aybabtu.com>
41590 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41591 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41592 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41594 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41595 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41597 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41598 grub_console_init() with call to grub_vga_text_init().
41599 (grub_machine_fini): Replace call to
41600 grub_console_fini() with call to grub_vga_text_fini() and
41601 grub_at_keyboard_fini().
41603 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41604 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41605 (grub_console_setcolorstate, grub_console_setcolor)
41606 (grub_console_getcolor): New function prototypes.
41608 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41609 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41610 (grub_vga_text_setcursor): Static-ize.
41611 (grub_vga_text_term): New structure.
41612 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41614 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41615 (grub_console_cur_color, grub_console_standard_color)
41616 (grub_console_normal_color, grub_console_highlight_color)
41617 (map_char, grub_console_putchar, grub_console_getcharwidth)
41618 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41619 (grub_console_getcolor): Move from here ...
41620 * term/i386/vga_common.c: ... to here (same function names).
41622 2008-11-12 Robert Millan <rmh@aybabtu.com>
41624 Use newly-added Multiboot support in coreboot.
41626 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41627 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41629 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41630 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41631 (codestart): Store the MBI in `startup_multiboot_info' when we're
41632 being loaded using Multiboot.
41634 * kern/i386/coreboot/init.c (grub_machine_init): Move
41635 grub_at_keyboard_init() call to beginning of function (useful for
41636 debugging). Call grub_machine_mmap_init() before attempting to use
41637 grub_machine_mmap_iterate().
41638 (grub_lower_mem, grub_upper_mem): Move from here ...
41639 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41642 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41643 function prototype.
41645 2008-11-12 Robert Millan <rmh@aybabtu.com>
41647 Fix a regression introduced by the at_keyboard.mod split. Because
41648 some terminals are default on some platforms and non-default on
41649 others, the first terminal being registered determines which is
41650 going to be default.
41652 * kern/term.c (grub_term_register_input): If this is the first
41653 terminal being registered, set it as the current one.
41654 (grub_term_register_output): Likewise.
41656 * term/efi/console.c (grub_console_init): Do not call
41657 grub_term_set_current_output() or grub_term_set_current_input().
41658 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41659 * term/i386/pc/console.c (grub_console_init): Likewise.
41660 (grub_console_fini): Do not call grub_term_set_current_input()
41661 (but leave grub_term_set_current_output() to restore text mode).
41663 2008-11-10 Robert Millan <rmh@aybabtu.com>
41665 * util/grub.d/00_header.in: Add backward compatibility check for
41666 versions of terminal.mod that don't understand `terminal_input' or
41669 2008-11-09 Robert Millan <rmh@aybabtu.com>
41671 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41672 `terminal_input' / `terminal_output', not `terminal'.
41674 2008-11-08 Robert Millan <rmh@aybabtu.com>
41676 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41677 (DISTCLEANFILES): Add `build_env.mk'.
41679 2008-11-08 Robert Millan <rmh@aybabtu.com>
41681 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41682 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41683 members. Update all users.
41684 * util/console.c (grub_ncurses_term): Split in ...
41685 (grub_ncurses_term_input): ... this, and ...
41686 (grub_ncurses_term_output): ... this. Update all users.
41687 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41689 2008-11-08 Robert Millan <rmh@aybabtu.com>
41691 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41692 (PKGDATA): Add $(pkgdata_SRCDIR).
41693 (pkglib_BUILDDIR): New variable.
41694 (pkgdata_SRCDIR): New variable.
41695 (build_env.mk): New target.
41696 (include_DATA): New variable.
41697 (install-local): Install $(include_DATA) files in $(includedir).
41699 2008-11-07 Pavel Roskin <proski@gnu.org>
41701 * gendistlist.sh: Use C locale for sorting to ensure consistent
41702 output on all systems.
41704 * util/grub.d/00_header.in: Remove incorrect space before
41707 2008-11-07 Robert Millan <rmh@aybabtu.com>
41709 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41711 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41712 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41713 (based on find_multi_boot1_header).
41714 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41715 using find_multi_boot2_header(), and abort if neither Multiboot or
41716 Multiboot headers were found.
41718 2008-11-07 Robert Millan <rmh@aybabtu.com>
41720 Modularize at_keyboard.mod:
41722 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41723 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41724 (at_keyboard_mod_LDFLAGS): New variables.
41726 Actual terminal split:
41728 * include/grub/term.h (struct grub_term): Split in ...
41729 (struct grub_term_input): ... this, and ...
41730 (struct grub_term_output): ... this. Update all users.
41731 (grub_term_set_current): Split in ...
41732 (grub_term_set_current_input): ... this, and ...
41733 (grub_term_set_current_output): ... this.
41734 (grub_term_get_current): Split in ...
41735 (grub_term_get_current_input): ... this, and ...
41736 (grub_term_get_current_output): ... this.
41737 (grub_term_register): Split in ...
41738 (grub_term_register_input): ... this, and ...
41739 (grub_term_register_output): ... this.
41740 (grub_term_unregister): Split in ...
41741 (grub_term_unregister_input): ... this, and ...
41742 (grub_term_unregister_output): ... this.
41743 (grub_term_iterate): Split in ...
41744 (grub_term_iterate_input): ... this, and ...
41745 (grub_term_iterate_output): ... this.
41747 * kern/term.c (grub_term_list): Split in ...
41748 (grub_term_list_input): ... this, and ...
41749 (grub_term_list_output): ... this. Update all users.
41750 (grub_cur_term): Split in ...
41751 (grub_cur_term_input): ... this, and ...
41752 (grub_cur_term_output): ... this. Update all users.
41753 (grub_term_set_current): Split in ...
41754 (grub_term_set_current_input): ... this, and ...
41755 (grub_term_set_current_output): ... this.
41756 (grub_term_get_current): Split in ...
41757 (grub_term_get_current_input): ... this, and ...
41758 (grub_term_get_current_output): ... this.
41759 (grub_term_register): Split in ...
41760 (grub_term_register_input): ... this, and ...
41761 (grub_term_register_output): ... this.
41762 (grub_term_unregister): Split in ...
41763 (grub_term_unregister_input): ... this, and ...
41764 (grub_term_unregister_output): ... this.
41765 (grub_term_iterate): Split in ...
41766 (grub_term_iterate_input): ... this, and ...
41767 (grub_term_iterate_output): ... this.
41769 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41770 a check for input and one for output (and only attempt to get keys
41771 from user when input works).
41773 * util/grub-probe.c (grub_term_get_current): Split in ...
41774 (grub_term_get_current_input): ... this, and ...
41775 (grub_term_get_current_output): ... this.
41776 * util/grub-fstest.c: Likewise.
41777 * util/i386/pc/grub-setup.c: Likewise.
41778 * util/grub-editenv.c: Likewise.
41780 Portability adjustments:
41782 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41783 `term/i386/pc/at_keyboard.c'.
41784 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41785 grub_keyboard_controller_init() (now handled by terminal .init).
41786 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41787 grub_at_keyboard_init().
41788 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41789 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41790 at_keyboard.mod via input terminal interface).
41791 * include/grub/i386/coreboot/console.h: Convert into a stub for
41792 `<grub/i386/pc/console.h>'.
41794 Migrate full terminals to new API:
41796 * term/efi/console.c (grub_console_term): Split into ...
41797 (grub_console_term_input): ... this, and ...
41798 (grub_console_term_output): ... this. Update all users.
41799 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41800 (grub_ofconsole_init): Split into ...
41801 (grub_ofconsole_init_input): ... this, and ...
41802 (grub_ofconsole_init_output): ... this.
41803 (grub_ofconsole_term): Split into ...
41804 (grub_ofconsole_term_input): ... this, and ...
41805 (grub_ofconsole_term_output): ... this. Update all users.
41806 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41807 (grub_serial_term_input): ... this, and ...
41808 (grub_serial_term_output): ... this. Update all users.
41809 * term/i386/pc/console.c (grub_console_term): Split into ...
41810 (grub_console_term_input): ... this, and ...
41811 (grub_console_term_output): ... this. Update all users.
41812 (grub_console_term_input): Only enable it on PC/BIOS platform.
41813 (grub_console_init): Remove grub_keyboard_controller_init() call.
41815 Migrate input terminals to new API:
41817 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41818 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41819 i386-specific anyway).
41820 (grub_console_checkkey): Rename to ...
41821 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41823 (grub_keyboard_controller_orig): New variable.
41824 (grub_console_getkey): Rename to ...
41825 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41827 (grub_keyboard_controller_init): Static-ize. Save original
41828 controller value so that it can be restored ...
41829 (grub_keyboard_controller_fini): ... here (new function).
41830 (grub_at_keyboard_term): New structure.
41831 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41834 Migrate output terminals to new API:
41836 * term/i386/pc/vga.c (grub_vga_term): Change type to
41837 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41838 members. Update all users.
41839 * term/gfxterm.c (grub_video_term): Change type to
41840 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41841 members. Update all users.
41842 * include/grub/i386/pc/console.h (grub_console_checkkey)
41843 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41846 Migrate `terminal' command and userland tools to new API:
41848 * commands/terminal.c (grub_cmd_terminal): Split into ...
41849 (grub_cmd_terminal_input): ... this, and ...
41850 (grub_cmd_terminal_output): ... this.
41851 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41852 `terminal_input' and `terminal_output'.
41853 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41854 `terminal_input' / `terminal_output' API.
41855 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41856 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41857 provided ${GRUB_TERMINAL}, convert it).
41859 2008-11-04 Robert Millan <rmh@aybabtu.com>
41861 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41863 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41865 2008-11-03 Bean <bean123ch@gmail.com>
41867 * kern/elf.c (grub_elf32_load): Revert to previous code.
41868 (grub_elf64_load): Likewise.
41870 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41872 2008-11-01 Robert Millan <rmh@aybabtu.com>
41874 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41875 (TARGET_CPPFLAGS): Likewise.
41876 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41878 2008-11-01 Carles Pina i Estany <carles@pina.cat>
41880 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41882 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41884 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41885 addition of objects until the code is not going to be able to fail.
41887 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41889 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41890 (add a missing NULL check, and correct them by moving the pointer
41891 operations after the actual check).
41893 2008-10-29 Robert Millan <rmh@aybabtu.com>
41895 * util/i386/pc/grub-install.in: Handle empty string as output from
41896 make_system_path_relative_to_its_root().
41898 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41900 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41901 circular metadata worst case scenario. If the metadata is circular
41902 then copy the wrap in place.
41903 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41904 project lib/format_text/layout.h
41905 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41907 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41909 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
41911 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41913 * util/update-grub_lib.in: Mention filename in warning message.
41915 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41917 * NEWS: Update for rename of update-grub to grub-mkconfig.
41919 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41921 * util/update-grub_lib.in: Copy to ...
41922 * util/grub-mkconfig_lib.in: ... this. Update all users.
41923 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
41924 * util/update-grub.in: Rename to ...
41925 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
41926 option. Add `--output' option to allow users to specify the generated
41927 configuration file. Default to stdout.
41928 (update_grub_dir): Rename to ...
41929 (grub_mkconfig_dir): ... this.
41930 (grub_cfg): Default to an empty string.
41931 * conf/common.rmk (update-grub): Rename to ...
41932 (grub-mkconfig): ... this.
41933 (update-grub_lib): Copy to ...
41934 (grub-mkconfig_lib): ... this.
41935 (update-grub_SCRIPTS): Copy to ...
41936 (grub-mkconfig_SCRIPTS): ... this. Update all users.
41937 (update-grub_DATA): Rename to ...
41938 (grub-mkconfig_DATA): ... this.
41940 2008-09-28 Robert Millan <rmh@aybabtu.com>
41942 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
41943 to `modified'. Add the real `created' field.
41944 (grub_iso9660_uuid): Use `modified' rather than `created' for
41945 constructing the UUID.
41947 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
41949 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
41950 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
41952 2008-09-28 Bean <bean123ch@gmail.com>
41954 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
41955 Thanks to Christian Franke for finding this bug.
41957 2008-09-25 Robert Millan <rmh@aybabtu.com>
41959 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
41960 instances of grub_util_get_disk_name() (see previous commit).
41962 2008-09-25 Robert Millan <rmh@aybabtu.com>
41964 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
41965 `util/i386/get_disk_name.c'.
41966 * conf/i386-efi.rmk: Likewise.
41967 * conf/x86_64-efi.rmk: Likewise.
41968 * conf/i386-coreboot.rmk: Likewise.
41969 * conf/i386-ieee1275.rmk: Likewise.
41970 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
41971 `util/ieee1275/get_disk_name.c'.
41972 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
41973 * util/ieee1275/get_disk_name.c: Remove file.
41974 * util/i386/get_disk_name.c: Remove file.
41975 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
41976 "hd%d" for device.map entries, rather than using
41977 grub_util_get_disk_name().
41979 2008-09-24 Carles Pina i Estany <carles@pina.cat>
41981 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
41983 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
41985 2008-09-24 Carles Pina i Estany <carles@pina.cat>
41987 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
41989 (GRUB_TERM_PPAGE): Changed to 0x4900.
41991 2008-09-24 Robert Millan <rmh@aybabtu.com>
41993 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
41994 macros (they were i386-pc specific).
41995 * include/grub/sparc64/ieee1275/console.h: Likewise.
41996 * include/grub/efi/console.h: Likewise.
41998 2008-09-22 Bean <bean123ch@gmail.com>
42000 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42001 resident and in attribute list.
42003 * include/grub/ntfs.h (BMP_LEN): Removed.
42005 2008-09-22 Bean <bean123ch@gmail.com>
42007 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42008 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42010 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42011 error occurs, as grub_disk_open will call grub_disk_close, which will
42012 call p->close (scsi).
42014 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42016 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42017 (AC_PREREQ): Bumped to 2.59.
42018 (AC_TRY_COMPILE): Replace obsolete macro with ...
42019 (AC_COMPILE_IFELSE): ... this.
42020 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42021 (AC_LINK_IFELSE): ... this.
42023 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42025 * autogen.sh: Add a call to `gendistlist.sh'.
42027 2008-09-19 Christian Franke <franke@computer.org>
42029 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42030 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42031 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42032 Export __enable_execute_stack() to modules.
42033 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42036 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42038 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42041 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42043 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42044 #include <grub/util/hostdisk.h>.
42046 2008-09-08 Robert Millan <rmh@aybabtu.com>
42048 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42049 segments when their filesz is zero (grub_file_read() interprets
42050 zero-size as "read until EOF", which results in memory corruption).
42051 Use `lowest_segment' rather than 0 for calculating the current
42052 segment load address.
42054 2008-09-08 Robert Millan <rmh@aybabtu.com>
42056 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42057 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42058 clobbered useful information.
42060 2008-09-08 Robert Millan <rmh@aybabtu.com>
42062 * include/grub/util/biosdisk.h: Move to ...
42063 * include/grub/util/hostdisk.h: ... here. Update all users.
42064 * util/biosdisk.c: Move to ...
42065 * util/hostdisk.c: ... here. Update all users.
42067 2008-09-07 Robert Millan <rmh@aybabtu.com>
42069 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42071 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42072 and length can be stored directly in the `mbi->mmap_addr' and
42073 `mbi->mmap_length' struct fields.
42075 2008-09-07 Robert Millan <rmh@aybabtu.com>
42077 * conf/i386.rmk: New file. Provides declaration for building
42079 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42080 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42082 Include `conf/i386.mk'.
42083 * conf/i386-efi.rmk: Likewise.
42084 * conf/x86_64-efi.rmk: Likewise.
42085 * conf/i386-coreboot.rmk: Likewise.
42086 * conf/i386-ieee1275.rmk: Likewise.
42088 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42090 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42091 Adds optimization support for BGR based modes.
42093 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42094 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42095 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42096 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42097 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42098 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42099 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42100 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42101 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42102 (grub_video_i386_vbeblit_index_index): Likewise.
42103 (grub_video_i386_vbeblit_replace_directN): Added.
42104 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42105 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42106 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42107 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42108 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42109 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42110 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42111 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42112 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42113 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42114 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42115 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42116 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42118 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42119 (grub_video_i386_vbefill_R8G8B8): Likewise.
42120 (grub_video_i386_vbefill_index): Likewise.
42121 (grub_video_i386_vbefill_direct32): Added.
42122 (grub_video_i386_vbefill_direct24): Likewise.
42123 (grub_video_i386_vbefill_direct16): Likewise.
42124 (grub_video_i386_vbefill_direct8): Likewise.
42126 * include/grub/video.h (grub_video_blit_format): Removed
42127 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42128 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42129 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42130 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42131 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42133 * video/video.c (grub_video_get_blit_format): Updated to use new
42134 blit formats. Added handling for 16 bit color modes.
42136 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42138 (common_blitter): Updated to use new blitters.
42140 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42142 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42143 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42144 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42145 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42146 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42147 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42148 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42149 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42150 (grub_video_i386_vbeblit_index_index): Likewise.
42151 (grub_video_i386_vbeblit_replace_directN): Added.
42152 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42153 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42154 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42155 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42156 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42157 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42158 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42159 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42160 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42161 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42162 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42163 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42164 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42166 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42167 (grub_video_i386_vbefill_R8G8B8): Likewise.
42168 (grub_video_i386_vbefill_index): Likewise.
42169 (grub_video_i386_vbefill_direct32): Added.
42170 (grub_video_i386_vbefill_direct24): Likewise.
42171 (grub_video_i386_vbefill_direct16): Likewise.
42172 (grub_video_i386_vbefill_direct8): Likewise.
42174 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42177 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42180 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42183 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42186 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42188 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42191 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42193 * fs/iso9660.c (grub_iso9660_date): New structure.
42194 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42195 (grub_iso9660_uuid): New function.
42197 2008-09-05 Bean <bean123ch@gmail.com>
42199 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42201 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42202 insensitive bit for names in Win32 and Win32 & DOS namespace.
42204 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42206 * include/grub/types.h (LONG_MAX): Likewise.
42208 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42210 * util/getroot.c: Include <config.h>.
42211 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42212 add support for /dev/md/N devices and handle LVM double dash escaping.
42214 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42216 * config.guess: Update to latest version from config git.
42217 * config.sub: Likewise.
42219 2008-09-03 Robert Millan <rmh@aybabtu.com>
42221 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42222 `disk->total_sectors'.
42224 2008-09-01 Colin D Bennett <colin@gibibit.com>
42226 * include/grub/normal.h: Fixed incorrect comment for
42227 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42229 2008-09-01 Colin D Bennett <colin@gibibit.com>
42231 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42232 values with defines.
42234 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42235 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42236 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42237 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42238 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42239 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42240 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42241 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42242 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42243 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42244 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42245 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42246 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42247 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42248 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42249 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42250 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42251 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42252 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42254 2008-08-31 Robert Millan <rmh@aybabtu.com>
42256 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42258 (grub_multiboot): Fix a few warnings.
42260 2008-08-31 Robert Millan <rmh@aybabtu.com>
42262 * loader/i386/pc/multiboot.c: Update comment not to say that
42263 boot_device support is unimplemented.
42265 2008-08-31 Robert Millan <rmh@aybabtu.com>
42267 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42268 or memory map support are unimplemented.
42270 2008-08-31 Colin D Bennett <colin@gibibit.com>
42272 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42274 2008-08-31 Colin D Bennett <colin@gibibit.com>
42276 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42277 total video memory in 'vbeinfo' output; show color format details for
42280 2008-08-30 Pavel Roskin <proski@gnu.org>
42282 * util/genmoddep.c: Remove for real this time.
42283 * DISTLIST: Remove util/genmoddep.c.
42285 2008-08-30 Robert Millan <rmh@aybabtu.com>
42287 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42288 as required by Multiboot spec (it was already 4-byte aligned, but
42291 2008-08-29 Pavel Roskin <proski@gnu.org>
42293 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42294 * kern/powerpc/ieee1275/startup.S: ... this.
42295 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42296 * DISTLIST: Likewise.
42298 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42299 grub/cpu/kernel.h. Add start label for consistency with other
42300 platforms. Add grub_prefix immediately after start. Add jump
42301 to the code after grub_prefix.
42302 * include/grub/powerpc/kernel.h: Provide valid values for
42303 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42305 2008-08-29 Bean <bean123ch@gmail.com>
42307 * configure.ac: Change host_os to cygwin for mingw.
42308 (asprintf): New check for function.
42310 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42311 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42313 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42314 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42315 sync, sleep and grub_util_get_disk_size for mingw.
42317 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42318 to get size in mingw.
42319 (open_device): Use flag O_BINARY if it's defined.
42320 (find_root_device): Add dummy code for mingw.
42322 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42323 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42324 (get_scsi_disk_name): Return 0 for mingw.
42326 * util/hostfs.c: #include <grub/util/misc.h>.
42327 (grub_hostfs_open): Use "rb" flag to open file, use
42328 grub_util_get_disk_size to get disk size for mingw.
42330 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42331 (asprintf): New function if HAVE_ASPRINTF is not set.
42332 (sync): New function for mingw.
42334 (grub_util_get_disk_size): Likewise.
42336 2008-08-28 Pavel Roskin <proski@gnu.org>
42338 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42341 2008-08-28 Robert Millan <rmh@aybabtu.com>
42343 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42345 2008-08-28 Robert Millan <rmh@aybabtu.com>
42347 Change find_grub_drive() syntax so it doesn't prevent it from
42348 detecting NULL names as errors.
42350 * util/biosdisk.c (find_grub_drive): Move free slot search code
42352 (find_free_slot): ... to here.
42353 (read_device_map): Use find_free_slot() to search for free slots.
42355 2008-08-27 Marco Gerards <marco@gnu.org>
42357 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42358 (scsi_mod_SOURCES): New variable.
42359 (scsi_mod_CFLAGS): Likewise
42360 (scsi_mod_LDFLAGS): Likewise.
42362 * disk/scsi.c: New file.
42364 * include/grub/scsi.h: Likewise.
42366 * include/grub/scsicmd.h: Likewise.
42368 * disk/ata.c: Include <grub/scsi.h>.
42369 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42371 (grub_ata_iterate): Skip ATAPI devices.
42372 (grub_ata_open): Only handle ATAPI devices.
42373 (struct grub_atapi_read): Removed.
42374 (grub_atapi_readsector): Likewise.
42375 (grub_ata_read): No longer handle ATAPI devices.
42376 (grub_ata_write): Likewise.
42377 (grub_atapi_iterate): New function.
42378 (grub_atapi_read): Likewise.
42379 (grub_atapi_write): Likewise.
42380 (grub_atapi_open): Likewise.
42381 (grub_atapi_close): Likewise.
42382 (grub_atapi_dev): New variable.
42383 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42384 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42386 * include/grub/disk.h (enum grub_disk_dev_id): Add
42387 `GRUB_DISK_DEVICE_SCSI_ID'.
42389 2008-08-26 Robert Millan <rmh@aybabtu.com>
42391 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42392 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42395 2008-08-23 Bean <bean123ch@gmail.com>
42397 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42398 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42399 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42400 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42402 (raid5rec_mod_SOURCES): New macro.
42403 (raid5rec_mod_CFLAGS): Likewise.
42404 (raid5rec_mod_LDFLAGS): Likewise.
42405 (raid6rec_mod_SOURCES): Likewise.
42406 (raid6rec_mod_CFLAGS): Likewise.
42407 (raid6rec_mod_LDFLAGS): Likewise.
42408 (mdraid_mod_SOURCES): Likewise.
42409 (mdraid_mod_CFLAGS): Likewise.
42410 (mdraid_mod_LDFLAGS): Likewise.
42411 (dm_nv_mod_SOURCES): Likewise.
42412 (dm_nv_mod_CFLAGS): Likewise.
42413 (dm_nv_mod_LDFLAGS): Likewise.
42415 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42416 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42417 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42419 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42420 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42422 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42424 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42426 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42428 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42430 * disk/raid5_recover.c: New file.
42432 * disk/raid6_recover.c: Likewise.
42434 * disk/mdraid_linux.c: Likewise.
42436 * disk/dmraid_nvidia.c: Likewise.
42438 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42441 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42442 calculate the size of raid device.
42443 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42444 different layout of raid5.
42445 (grub_raid_scan_device): Remove code specific to mdraid.
42446 (grub_raid_list): New variable.
42447 (free_array): New function.
42448 (grub_raid_register): Likewise.
42449 (grub_raid_unregister): Likewise.
42450 (grub_raid_rescan): Likewise.
42451 (GRUB_MOD_INIT): Don't iterate device here.
42452 (GRUB_MOD_FINI): Use free_array to release resource.
42454 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42455 (grub_raid5_recover_func_t): New function variable type.
42456 (grub_raid6_recover_func_t): Likewise.
42457 (grub_raid5_recover_func): New variable.
42458 (grub_raid6_recover_func): Likewise.
42459 (grub_raid_register): New function.
42460 (grub_raid_unregister): Likewise.
42461 (grub_raid_rescan): Likewise.
42462 (grub_raid_block_xor): Likewise.
42464 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42465 (CMD_CRC): New macro.
42467 (read_file): Handle device as well as file.
42468 (cmd_crc): New function.
42469 (fstest): Handle multiple disks.
42470 (options): Remove part, raw and long, add root and diskcount.
42471 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42472 (main): Find the first non option entry and ignore subsequent options,
42473 add handling for the new options, support multiple disks.
42475 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42477 2008-08-23 Bean <bean123ch@gmail.com>
42479 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42481 * genfslist.sh: Ignore kernel.mod.
42483 * genpartmaplist.sh: Likewise.
42485 2008-08-23 Robert Millan <rmh@aybabtu.com>
42487 * util/getroot.c (find_root_device): Skip anything that starts with
42488 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42490 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42492 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42493 * util/grub.d/00_header.in: Allow the administrator to change default
42494 gfxmode via ${GRUB_GFXMODE}.
42496 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42498 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42500 2008-08-21 Robert Millan <rmh@aybabtu.com>
42502 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42504 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42505 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42507 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42509 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42510 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42512 2008-08-19 Robert Millan <rmh@aybabtu.com>
42514 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42515 (struct grub_virtual_screen): Remove `cursor_color'.
42516 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42518 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42520 2008-08-18 Robert Millan <rmh@aybabtu.com>
42522 Unify (identical) linux_normal.c files.
42523 * loader/i386/efi/linux_normal.c: Move from here ...
42524 * loader/linux_normal.c: ... to here. Update all users.
42525 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42526 * loader/i386/ieee1275/linux_normal.c: Likewise.
42528 2008-08-18 Robert Millan <rmh@aybabtu.com>
42530 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42531 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42532 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42533 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42534 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42536 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42537 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42538 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42539 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42540 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42541 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42542 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42543 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42544 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42545 portably using grub_getxy().
42546 Replace `-EFI' with `-bzImage' in boot message.
42548 2008-08-17 Robert Millan <rmh@aybabtu.com>
42550 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42552 2008-08-17 Robert Millan <rmh@aybabtu.com>
42554 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42556 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42557 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42558 (grub_machine_mmap_iterate): New function declaration.
42559 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42561 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42564 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42565 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42566 Move e820 parsing from here ...
42567 * kern/i386/pc/mmap.c: New file.
42568 (grub_machine_mmap_iterate): ... to here.
42570 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42571 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42572 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42573 (grub_available_iterate): Redeclare to return `void', and redeclare
42574 its hook to use grub_uint64_t as addr and size parameters, and rename
42576 (grub_machine_mmap_iterate): ... this. Update all users.
42578 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42579 to make it more readable. Rename to ...
42580 (grub_machine_mmap_iterate): ... this.
42582 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42583 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42584 (grub_multiboot): Allocate an extra region after the payload, and fill
42585 it with a Multiboot memory map. Adjust a.out loader to calculate size
42586 with the extra space.
42587 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42588 with the extra space.
42590 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42592 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42594 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42596 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42597 mdate-sh to the list `find' searches for.
42598 * DISTLIST: Regenerated.
42600 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42602 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42603 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42604 genmoddep.awk, gensymlist.sh.in.
42605 (DISTDIRS): Add bus, docs, hook, lib.
42606 * DISTLIST: Regenerated.
42607 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42609 2008-08-16 Robert Millan <rmh@aybabtu.com>
42611 * disk/raid.c (grub_raid_init): Handle/report errors set by
42612 grub_device_iterate().
42613 * disk/lvm.c (grub_lvm_init): Likewise.
42615 2008-08-15 Bean <bean123ch@gmail.com>
42617 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42619 (datetime_mod_SOURCES): New macro.
42620 (datetime_mod_CFLAGS): Likewise.
42621 (datetime_mod_LDFLAGS): Likewise.
42622 (date_mod_SOURCES): Likewise.
42623 (date_mod_CFLAGS): Likewise.
42624 (date_mod_LDFLAGS): Likewise.
42625 (datehook_mod_SOURCES): Likewise.
42626 (datehook_mod_CFLAGS): Likewise.
42627 (datehook_mod_LDFLAGS): Likewise.
42629 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42631 (datetime_mod_SOURCES): New macro.
42632 (datetime_mod_CFLAGS): Likewise.
42633 (datetime_mod_LDFLAGS): Likewise.
42634 (date_mod_SOURCES): Likewise.
42635 (date_mod_CFLAGS): Likewise.
42636 (date_mod_LDFLAGS): Likewise.
42637 (datehook_mod_SOURCES): Likewise.
42638 (datehook_mod_CFLAGS): Likewise.
42639 (datehook_mod_LDFLAGS): Likewise.
42641 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42643 (datetime_mod_SOURCES): New macro.
42644 (datetime_mod_CFLAGS): Likewise.
42645 (datetime_mod_LDFLAGS): Likewise.
42646 (date_mod_SOURCES): Likewise.
42647 (date_mod_CFLAGS): Likewise.
42648 (date_mod_LDFLAGS): Likewise.
42649 (datehook_mod_SOURCES): Likewise.
42650 (datehook_mod_CFLAGS): Likewise.
42651 (datehook_mod_LDFLAGS): Likewise.
42653 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42655 (datetime_mod_SOURCES): New macro.
42656 (datetime_mod_CFLAGS): Likewise.
42657 (datetime_mod_LDFLAGS): Likewise.
42658 (date_mod_SOURCES): Likewise.
42659 (date_mod_CFLAGS): Likewise.
42660 (date_mod_LDFLAGS): Likewise.
42661 (datehook_mod_SOURCES): Likewise.
42662 (datehook_mod_CFLAGS): Likewise.
42663 (datehook_mod_LDFLAGS): Likewise.
42665 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42667 (datetime_mod_SOURCES): New macro.
42668 (datetime_mod_CFLAGS): Likewise.
42669 (datetime_mod_LDFLAGS): Likewise.
42670 (date_mod_SOURCES): Likewise.
42671 (date_mod_CFLAGS): Likewise.
42672 (date_mod_LDFLAGS): Likewise.
42673 (datehook_mod_SOURCES): Likewise.
42674 (datehook_mod_CFLAGS): Likewise.
42675 (datehook_mod_LDFLAGS): Likewise.
42677 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42679 * commands/date.c: New file.
42681 * hook/datehook.c: Likewise.
42683 * include/grub/lib/datetime.h: Likewise.
42685 * include/grub/i386/cmos.h: Likewise.
42687 * lib/datetime.c: Likewise.
42689 * lib/i386/datetime.c: Likewise.
42691 * lib/efi/datetime.c: Likewise.
42693 2008-08-14 Robert Millan <rmh@aybabtu.com>
42695 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42696 (grub_mkelfimage_SOURCES): New variable.
42697 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42699 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42700 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42701 * conf/powerpc-ieee1275.rmk: Likewise.
42702 * conf/i386-ieee1275.rmk: Likewise.
42704 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42705 * kern/i386/coreboot/init.c: Likewise.
42707 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42708 with `<grub/cpu/kernel.h>'.
42709 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42711 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42712 * kern/i386/coreboot/startup.S: Likewise.
42714 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42715 (GRUB_MOD_GAP): Remove.
42716 * include/grub/powerpc/kernel.h: New file.
42717 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42718 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42719 * include/grub/i386/kernel.h: New file.
42720 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42721 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42722 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42724 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42726 Use --directory when invoking grub_mkimage.
42728 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42729 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42730 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42731 and GRUB_KERNEL_CPU_PREFIX.
42733 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42735 * include/grub/err.h (grub_err_printf): New function prototype.
42736 * util/misc.c (grub_err_printf): New function.
42737 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42739 * kern/err.c (grub_print_error): Use grub_err_printf.
42741 2008-08-13 Robert Millan <rmh@aybabtu.com>
42743 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42745 2008-08-13 Robert Millan <rmh@aybabtu.com>
42747 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42750 2008-08-12 Robert Millan <rmh@aybabtu.com>
42752 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42753 of the relocation code from here ...
42754 (grub_multiboot): ... to here.
42755 (forward_relocator, backward_relocator): Move from here ...
42756 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42757 (grub_multiboot_backward_relocator): ... to here.
42758 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42759 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42760 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42761 (grub_multiboot_forward_relocator_end)
42762 (grub_multiboot_backward_relocator)
42763 (grub_multiboot_backward_relocator_end): New variables.
42765 2008-08-12 Bean <bean123ch@gmail.com>
42767 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42769 2008-08-11 Robert Millan <rmh@aybabtu.com>
42771 * kern/i386/linuxbios/startup.S: Move from here ...
42772 * kern/i386/coreboot/startup.S: ... to here.
42774 * kern/i386/linuxbios/init.c: Move from here ...
42775 * kern/i386/coreboot/init.c: ... to here.
42777 * kern/i386/linuxbios/table.c: Move from here ...
42778 * kern/i386/coreboot/mmap.c: ... to here.
42780 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42782 2008-08-11 Robert Millan <rmh@aybabtu.com>
42784 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42785 errors. Leave it to the upper layer to handle them.
42787 2008-08-09 Christian Franke <franke@computer.org>
42789 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42790 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42791 Install `grub.d/10_windows' only on Cygwin.
42792 * configure.ac: Add subst of `target_os'.
42793 Check `target_os' also before setting TARGET_OBJ2ELF.
42794 Add `--enable-grub-pe2elf'.
42796 2008-08-08 Robert Millan <rmh@aybabtu.com>
42798 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42799 (grub_last_time): Change type to grub_uint64_t.
42800 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42801 (grub_disk_close): Likewise.
42803 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42804 (run_menu): Migrate code from to using grub_get_time_ms().
42806 * util/misc.c (grub_get_time_ms): New function.
42808 2008-08-08 Marco Gerards <marco@gnu.org>
42810 * disk/ata.c (grub_ata_regget): Change return type to
42812 (grub_ata_regget2): Likewise.
42813 (grub_ata_wait_status): New function.
42814 (grub_ata_wait_busy): Removed function, updated all users to use
42815 `grub_ata_wait_status'.
42816 (grub_ata_wait_drq): Likewise.
42817 (grub_ata_cmd): New function.
42818 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42820 (grub_ata_pio_write): Add error handling.
42821 (grub_atapi_identify): Likewise.
42822 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42824 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42825 handling. Actually use the detected registers. Reorder the
42826 detection logic such that it is easier to read.
42827 (grub_ata_pciinit): Do not assign the same ID to each controller.
42828 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42830 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42832 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42834 2008-08-08 Marco Gerards <marco@gnu.org>
42838 2008-08-07 Bean <bean123ch@gmail.com>
42840 * include/grub/x86_64/pci.h: New file.
42842 2008-08-07 Christian Franke <franke@computer.org>
42844 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42845 (TIMER2_GATE): Likewise.
42846 (grub_pit_wait): Add enable/disable of the timer2 gate
42847 bit of port 0x61. This fixes a possible infinite loop.
42849 2008-08-07 Bean <bean123ch@gmail.com>
42851 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42852 kern/i386/tsc.c and kern/i386/pit.c.
42854 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42857 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42860 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42862 2008-08-07 Bean <bean123ch@gmail.com>
42864 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42866 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42868 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42869 multiple inclusion. Add #include <grub/types.h>.
42871 2008-08-06 Christian Franke <franke@computer.org>
42873 * conf/common.rmk: Build and install `10_windows'.
42874 * util/grub.d/10_windows.in: New script.
42876 2008-08-06 Pavel Roskin <proski@gnu.org>
42878 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42880 2008-08-06 Robert Millan <rmh@aybabtu.com>
42882 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42883 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42885 2008-08-06 Bean <bean123ch@gmail.com>
42887 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42888 (grub_pxefs_fs_int): Remove dummy definition.
42889 (grub_pxefs_open): Use data->block_size to store the current block
42891 (grub_pxefs_read): Use block size stored in data->block_size. As the
42892 value of grub_pxe_blksize can be changed after the file is opened.
42894 2008-08-06 Bean <bean123ch@gmail.com>
42896 * fs/i386/pc/pxe.c (curr_file): new variable.
42897 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42898 require the dummy internal file system anymore.
42899 (grub_pxefs_read): Removed.
42900 (grub_pxefs_close): Likewise.
42901 (grub_pxefs_fs_int): Likewise.
42902 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42903 connection when we switch file.
42904 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42906 2008-08-06 Robert Millan <rmh@aybabtu.com>
42908 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42910 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42911 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42913 * kern/i386/halt.c: New file.
42914 * kern/i386/reboot.c: Likewise.
42915 * include/grub/i386/reboot.h: Likewise.
42916 * include/grub/i386/halt.h: Likewise.
42918 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42919 Include `<grub/cpu/halt.h>'.
42920 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42921 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42923 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42924 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
42925 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
42926 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
42927 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
42928 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
42930 * include/grub/i386/at_keyboard.h: ... to here.
42932 2008-08-05 Robert Millan <rmh@aybabtu.com>
42934 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
42935 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
42936 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
42937 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42938 `kern/generic/millisleep.c'.
42940 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
42941 instead of grub_get_rtc().
42942 (grub_tsc_init): Initialize `tsc_boot_time'.
42944 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
42945 (grub_machine_init): Use grub_tsc_init() rather than
42946 installing an RTC-based handler via grub_install_get_time_ms().
42948 * kern/i386/pit.c: New file.
42949 * include/grub/i386/pit.h: Likewise.
42951 2008-08-05 Bean <bean123ch@gmail.com>
42953 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
42955 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
42956 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
42957 (pxe_mod_SOURCES): New macro.
42958 (pxe_mod_CFLAGS): Likewise.
42959 (pxe_mod_LDFLAGS): Likewise.
42960 (pxecmd_mod_SOURCES): Likewise.
42961 (pxecmd_mod_CFLAGS): Likewise.
42962 (pxecmd_mod_LDFLAGS): Likewise.
42964 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
42965 (grub_pxe_call): Likewise.
42967 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
42969 * commands/i386/pc/pxecmd.c: New file.
42971 * fs/i386/pc/pxe.c: Likewise.
42973 * include/grub/i386/pc/pxe.h: Likewise.
42975 2008-08-05 Bean <bean123ch@gmail.com>
42977 * util/console.c (grub_console_cur_color): New variable.
42978 (grub_console_standard_color): Likewise.
42979 (grub_console_normal_color): Likewise.
42980 (grub_console_highlight_color): Likewise.
42981 (color_map): Likewise.
42982 (use_color): Likewise.
42983 (NUM_COLORS): New macro.
42984 (grub_ncurses_setcolorstate): Handle color properly.
42985 (grub_ncurses_setcolor): Don't change color here, just remember the
42986 settings, color will be set in grub_ncurses_setcolorstate.
42987 (grub_ncurses_getcolor): New function.
42988 (grub_ncurses_init): Initialize color pairs.
42989 (grub_ncurses_term): New member grub_ncurses_getcolor.
42991 2008-08-05 Colin D Bennett <colin@gibibit.com>
42993 High resolution timer support. Implemented for x86 CPUs using TSC.
42994 Extracted generic grub_millisleep() so it's linked in only as needed.
42995 This requires a Pentium compatible CPU; if the RDTSC instruction is
42996 not supported, then it falls back on the generic grub_get_time_ms()
42997 implementation that uses the machine's RTC.
42999 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43000 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43001 `kern/generic/millisleep.c'.
43003 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43004 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43006 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43007 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43009 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43011 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43012 `kern/generic/millisleep.c'.
43014 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43016 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43018 * kern/generic/rtc_get_time_ms.c: New file.
43020 * kern/generic/millisleep.c: New file.
43022 * kern/misc.c: Don't include
43023 <kern/time.h> anymore.
43024 (grub_millisleep_generic): Removed.
43026 * commands/sleep.c (grub_interruptible_millisleep): Uses
43027 grub_get_time_ms() instead of grub_get_rtc().
43029 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43031 (grub_cpu_is_cpuid_supported): New inline function.
43032 (grub_cpu_is_tsc_supported): New inline function.
43033 (grub_tsc_init): New function prototype.
43034 (grub_tsc_get_time_ms): New function prototype.
43036 * kern/i386/tsc.c (grub_get_time_ms): New file.
43038 * include/grub/time.h: Include <grub/types.h.
43039 (grub_millisleep_generic): Removed.
43040 (grub_get_time_ms): New prototype.
43041 (grub_install_get_time_ms): New prototype.
43042 (grub_rtc_get_time_ms): New prototype.
43044 * kern/time.c (grub_get_time_ms): New function.
43045 (grub_install_get_time_ms): New function.
43047 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43048 <grub/time.h> anymore.
43049 (grub_millisleep): Removed.
43050 (grub_machine_init): Call grub_tsc_init.
43052 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43053 get_time_ms() implementation.
43055 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43056 (ieee1275_get_time_ms): New function.
43057 (grub_machine_init): Install get_time_ms() implementation.
43059 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43060 (grub_machine_init): Call grub_tsc_init().
43061 (grub_millisleep): Removed.
43063 * kern/ieee1275/init.c (grub_millisleep): Removed.
43064 (grub_machine_init): Install ieee1275_get_time_ms()
43066 (ieee1275_get_time_ms): New function.
43067 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43070 2008-08-05 Marco Gerards <marco@gnu.org>
43072 * disk/ata.c: Include <grub/pci.h>.
43073 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43074 (grub_ata_initialize): Rewritten.
43075 (grub_ata_device_initialize): New function.
43077 2008-08-04 Pavel Roskin <proski@gnu.org>
43079 * kern/main.c: Include grub/mm.h.
43081 2008-08-04 Robert Millan <rmh@aybabtu.com>
43083 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43084 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43085 corruption problem).
43087 2008-08-04 Robert Millan <rmh@aybabtu.com>
43089 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43090 warnings introduced in my last commit.
43092 2008-08-03 Robert Millan <rmh@aybabtu.com>
43094 Make PCI available on all i386 architectures.
43096 * include/grub/i386/pc/pci.h: Move from here ...
43097 * include/grub/i386/pci.h: ... to here.
43099 * include/grub/i386/pc/pci.h: Remove.
43100 * include/grub/i386/efi/pci.h: Remove.
43101 * include/grub/x86_64/efi/pci.h: Remove.
43103 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43104 `<grub/cpu/pci.h>'.
43106 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43107 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43108 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43110 * conf/i386-ieee1275.rmk: Likewise.
43112 2008-08-03 Robert Millan <rmh@aybabtu.com>
43114 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43115 (grub_console_setcursor): Make it possible to set cursor off.
43117 2008-08-03 Robert Millan <rmh@aybabtu.com>
43119 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43120 of modules instead of assuming which platform provides what.
43121 * util/update-grub.in: Likewise.
43123 2008-08-03 Robert Millan <rmh@aybabtu.com>
43125 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43126 instead of `grub_install_dos_part' to determine whether a drive needs
43127 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43128 because it can be overridden when loading GRUB via Multiboot).
43130 2008-08-02 Robert Millan <rmh@aybabtu.com>
43132 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43134 2008-08-02 Robert Millan <rmh@aybabtu.com>
43136 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43137 of informational grub_dprintf() calls.
43139 2008-08-02 Robert Millan <rmh@aybabtu.com>
43141 * disk/memdisk.c (memdisk_size): Don't initialize.
43142 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43144 * include/grub/i386/pc/kernel.h
43145 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43146 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43147 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43148 (grub_arch_memdisk_size): Remove.
43150 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43151 field (was only used to transfer a constant). Add `type' field to
43152 support multiple module types.
43153 (grub_module_iterate): New function.
43155 * kern/device.c (grub_device_open): Do not hide error messages
43156 when grub_disk_open() fails. Use grub_print_error() instead.
43158 * kern/i386/pc/init.c (grub_arch_modules_addr)
43159 (grub_arch_memdisk_size): Remove functions.
43160 (grub_arch_modules_addr): Return the module address in high memory
43161 (now that it isn't copied anymore).
43163 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43164 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43165 decompression routine (grub_total_module_size already includes that
43166 now). Don't copy modules back to low memory.
43168 * kern/main.c: Include `<grub/mm.h>'.
43169 (grub_load_modules): Split out (and use) ...
43170 (grub_module_iterate): ... this function, which iterates through
43171 module objects and runs a hook.
43172 Comment out grub_mm_init_region() call, as it would cause non-ELF
43173 modules to be overwritten.
43175 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43176 the memdisk image in its own region, make it part of the module list.
43177 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43178 (main): Parse --memdisk|-m option, and pass user-provided path as
43179 parameter to generate_image().
43180 (add_segments): Pass `memdisk_path' down to load_modules().
43181 (load_modules): Embed memdisk image in module section when requested.
43182 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43183 `header.type' instead of `header.offset'.
43185 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43186 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43187 (memdisk_mod_LDFLAGS): New variables.
43188 * conf/i386-coreboot.rmk: Likewise.
43189 * conf/i386-ieee1275.rmk: Likewise.
43191 2008-08-02 Robert Millan <rmh@aybabtu.com>
43193 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43194 (backward_relocator): New variables. Used to allocate and relocate
43195 the payload, respectively.
43196 (grub_multiboot_load_elf32): Load into heap instead of requested
43197 address, install the appropriate relocator code in each bound of
43198 the payload, and set the entry point such that
43199 grub_multiboot_real_boot() will jump to one of them.
43201 * kern/i386/loader.S (grub_multiboot_payload_size)
43202 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43203 (grub_multiboot_payload_entry_offset): New variables.
43204 (grub_multiboot_real_boot): Set cpu context to what the relocator
43205 expects, and jump to the relocator instead of the payload.
43207 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43208 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43209 (grub_multiboot_payload_entry_offset): Export.
43211 2008-08-01 Bean <bean123ch@gmail.com>
43213 * normal/menu_entry.c (editor_getline): Don't return the original
43214 string as result, as it will be released by lexer once it has done
43217 2008-08-01 Robert Millan <rmh@aybabtu.com>
43219 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43220 within menuentries, not before them.
43221 util/grub.d/10_hurd.in: Likewise.
43223 2008-08-01 Bean <bean123ch@gmail.com>
43225 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43226 (bufio_mod_SOURCES): New macro.
43227 (bufio_mod_CFLAGS): Likewise.
43228 (bufio_mod_LDFLAGS): Likewise.
43230 * include/grub/bufio.h: New file.
43232 * io/bufio.c: Likewise.
43234 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43235 (grub_video_reader_png): Use grub_buffile_open to open file.
43237 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43238 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43240 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43241 (grub_video_reader_tga): Use grub_buffile_open to open file.
43243 * font/manager.c: Include <grub/bufio.h>.
43244 (add_font): Use grub_buffile_open to open file.
43246 2008-07-31 Robert Millan <rmh@aybabtu.com>
43248 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43249 ELF segments, use a macro for arbitrarily accessing any of them instead
43250 of preparing a pointer that allows access to one at a time.
43251 (grub_multiboot_load_elf64): Likewise.
43253 2008-07-31 Bean <bean123ch@gmail.com>
43255 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43256 GRUB_KERNEL_MACHINE_DATA_END.
43258 2008-07-30 Robert Millan <rmh@aybabtu.com>
43260 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43261 Increase from 0x50 to 0x60.
43262 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43263 use UUIDs to identify the root drive for them. If that's not
43265 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43266 check, for cross-disk installs.
43268 2008-07-30 Robert Millan <rmh@aybabtu.com>
43270 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43271 is non-empty, use it to set the `prefix' environment variable instead
43272 of the usual approach.
43273 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43274 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43275 environment variable instead of dummy make_install_device().
43277 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43278 (start): Insert a data section, with `grub_prefix' variable.
43279 * kern/i386/linuxbios/startup.S: Likewise.
43281 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43282 New variable reference.
43283 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43284 New macro. Defines offset of `grub_prefix' within startup.S (relative
43286 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43287 section within startup.S (relative to `start').
43288 * include/grub/i386/coreboot/kernel.h: Likewise.
43290 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43291 Overwrite grub_prefix with its contents, at the beginning of the
43293 (main): Understand -p|--prefix.
43295 2008-07-30 Robert Millan <rmh@aybabtu.com>
43297 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43299 2008-07-30 Robert Millan <rmh@aybabtu.com>
43301 * term/i386/pc/vga_text.c (grub_console_cls): Use
43302 grub_console_gotoxy() to go back to beginning of the screen.
43303 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43305 2008-07-29 Christian Franke <franke@computer.org>
43307 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43308 Add conversion of emulated mount points on Cygwin.
43310 2008-07-29 Christian Franke <franke@computer.org>
43312 * util/update-grub.in: Add a check for admin
43314 Remove old `grub.cfg.new' before creation.
43315 Add `-f' to `mv' to handle the different filesystem
43316 semantics of Windows.
43318 2008-07-29 Bean <bean123ch@gmail.com>
43320 * normal/main.c (get_line): Fix buffer overflow bug.
43322 2008-07-28 Robert Millan <rmh@aybabtu.com>
43324 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43325 (struct grub_apple_header): New struct. Describes the layout of
43326 the partmap header.
43327 (apple_partition_map_iterate): Check the header magic as well as the
43328 partition magic (which was already being checked).
43330 2008-07-28 Pavel Roskin <proski@gnu.org>
43332 * genmk.rb: Add a warning to the beginning of the output that
43333 it's a generated file and should not be edited.
43335 2008-07-28 Robert Millan <rmh@aybabtu.com>
43337 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43338 with the same number are found, just use issue a warning with
43339 grub_dprintf(), as this error has been reported to be non-fatal.
43341 2008-07-27 Robert Millan <rmh@aybabtu.com>
43343 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43346 2008-07-27 Bean <bean123ch@gmail.com>
43348 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43349 (grub_fat_find_dir): Ignore case when comparing filename.
43351 2008-07-27 Bean <bean123ch@gmail.com>
43353 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43354 smallino, as it's more descriptive, and i8count can be confused with
43355 the other field count.
43356 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43359 2008-07-27 Bean <bean123ch@gmail.com>
43361 * commands/crc.c: New file.
43363 * lib/crc.c: Likewise.
43365 * include/grub/lib/crc.h: Likewise.
43367 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43369 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43370 (hexdump): Move this function to ...
43372 * lib/hexdump.c: ... here.
43374 * include/grub/hexdump.h: Renamed to ...
43376 * include/grub/lib/hexdump.h: ... this.
43378 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43380 * util/grub-editenv.c: Likewise.
43382 * include/envblk.h: Renamed to ...
43384 * include/lib/envblk.h: ... this.
43386 * util/envblk.c: Renamed to ...
43388 * lib/envblk.c: ... this.
43390 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43392 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43393 (pkglib_MODULES): Add crc.mod.
43394 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43395 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43396 (crc_mod_SOURCES): New macro.
43397 (crc_mod_CFLAGS): Likewise.
43398 (crc_mod_LDFLAGS): Likewise.
43400 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43402 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43404 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43406 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43408 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43410 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43412 * commands/help.c: Include <grub/term.h>.
43413 (TERM_WIDTH): Removed. Updated all users.
43415 2008-07-27 Pavel Roskin <proski@gnu.org>
43417 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43418 spurious warnings about a comment within a comment.
43420 2008-07-25 Robert Millan <rmh@aybabtu.com>
43422 * util/getroot.c (find_root_device): Skip devices that match
43423 /dev/dm-[0-9]. This lets the real device be found for any type of
43424 abstraction (LVM, EVMS, RAID..).
43425 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43426 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43427 device is found first, find_root_device() will now skip it.
43429 2008-07-24 Pavel Roskin <proski@gnu.org>
43431 * include/grub/types.h: Use __builtin_bswap32() and
43432 __builtin_bswap64() with gcc 4.3 and newer.
43434 2008-07-24 Christian Franke <franke@computer.org>
43436 * util/i386/pc/grub-install.in: If `--debug' is specified,
43437 pass `--verbose' to grub-setup.
43438 Abort script if make_system_path_relative_to_its_root() fails.
43440 2008-07-24 Bean <bean123ch@gmail.com>
43442 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43443 variable `target_platform' should be `platform'.
43445 2008-07-24 Bean <bean123ch@gmail.com>
43447 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43448 (grub_png_init_fixed_block): New function.
43449 (grub_png_decode_image_data): Handle fixed huffman code compression.
43451 2008-07-24 Bean <bean123ch@gmail.com>
43453 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43454 (grub_pe2elf_SOURCES): New macro.
43455 (CLEANFILES): Add grub-pe2elf.
43457 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43458 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43459 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43460 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43461 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43462 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43463 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43464 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43465 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43466 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43467 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43468 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43469 (GRUB_PE32_DT_FUNCTION): Likewise.
43470 (GRUB_PE32_REL_I386_DIR32): Likewise.
43471 (GRUB_PE32_REL_I386_REL32): Likewise.
43472 (grub_pe32_symbol): New structure.
43473 (grub_pe32_reloc): Likewise.
43475 * util/grub-pe2elf.c: New file.
43477 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43478 start symbol in non pc platform.
43480 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43482 The following patches are from Christian Franke.
43484 * include/grub/dl.h: Remove .previous, gas supports this only
43487 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43488 Remove .type, gas supports this only for ELF format.
43490 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43491 nullbytes in symbol table. This fixes an infinite loop if table is
43494 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43495 TARGET_IMG_LDFLAGS and EXEEXT.
43497 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43498 TARGET_IMG_LDFLAGS_AC.
43499 (grub_CHECK_STACK_ARG_PROBE): New function.
43501 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43503 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43505 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43506 to set TARGET_IMG_LD* accordingly.
43507 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43508 Add call to grub_CHECK_STACK_ARG_PROBE.
43509 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43511 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43513 * genmk.rb: Add EXEEXT to CLEANFILES.
43515 2008-07-23 Robert Millan <rmh@aybabtu.com>
43517 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43518 define the codes for arrows and lines used for the menu).
43519 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43522 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43523 fonts, because the latter are too slow.
43525 2008-07-21 Bean <bean123ch@gmail.com>
43527 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43528 a20. Run keyboard test last, as it will cause macbook to halt.
43530 2008-07-18 Pavel Roskin <proski@gnu.org>
43532 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43533 load foreign architecture modules correctly anyway. Keep
43534 support for loading host architecture modules, whether we
43535 compile them or not.
43537 2008-07-17 Pavel Roskin <proski@gnu.org>
43539 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43540 change target_cpu. The compiler default can mismatch target_cpu
43543 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43544 * kern/efi/efi.c: Likewise.
43546 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43547 target compiler is functional.
43548 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43551 * configure.ac: Default to efi platform for x86_64-apple. Allow
43552 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43553 adjustments from the rest, only do them if target is not
43554 explicitly given. Merge other adjustments with the final sanity
43555 check. Remove an extraneous check for supported CPU. Be
43556 specific which CPU and which platform is not supported.
43558 * configure.ac: Default to pc platform for x86_64.
43560 2008-07-17 Robert Millan <rmh@aybabtu.com>
43562 Partial LinuxBIOS -> Coreboot rename.
43564 * conf/i386-linuxbios.rmk: Renamed to ...
43565 * conf/i386-coreboot.rmk: ... this.
43566 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43567 * configure.ac: Accept "coreboot" as input platform (but maintain
43568 compatibility with "linuxbios").
43569 * include/grub/i386/linuxbios: Renamed to ...
43570 * include/grub/i386/coreboot: ... this.
43572 2008-07-17 Bean <bean123ch@gmail.com>
43574 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43575 (appleldr_mod_SOURCE): New variable.
43576 (appleldr_mod_CFLAGS): Likewise.
43577 (appleldr_mod_LDFLAGS): Likewise.
43578 (pci_mod_SOURCES): Likewise.
43579 (pci_mod_CFLAGS): Likewise.
43580 (pci_mod_LDFLAGS): Likewise.
43581 (lspci_mod_SOURCES): Likewise.
43582 (lspci_mod_CFLAGS): Likewise.
43583 (lspci_mod_LDFLAGS): Likewise.
43585 * conf/x86_64-efi.rmk: New file.
43587 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43589 (grub_efidisk_write): Likewise.
43591 * include/efi/api.h (efi_call_0): New macro.
43592 (efi_call_1): Likewise.
43593 (efi_call_2): Likewise.
43594 (efi_call_3): Likewise.
43595 (efi_call_4): Likewise.
43596 (efi_call_5): Likewise.
43597 (efi_call_6): Likewise.
43599 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43600 grub_rescue_cmd_chainloader.
43602 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43603 (grub_pe32_optional_header): Change some fields based on i386 or
43605 (GRUB_PE32_PE32_MAGIC): Likewise.
43607 * include/grub/efi/uga_draw.h: New file.
43609 * include/grub/elf.h (STN_ABS): New constant.
43610 (R_X86_64_NONE): Relocation constant for x86_64.
43611 (R_X86_64_64): Likewise.
43612 (R_X86_64_PC32): Likewise.
43613 (R_X86_64_GOT32): Likewise.
43614 (R_X86_64_PLT32): Likewise.
43615 (R_X86_64_COPY): Likewise.
43616 (R_X86_64_GLOB_DAT): Likewise.
43617 (R_X86_64_JUMP_SLOT): Likewise.
43618 (R_X86_64_RELATIVE): Likewise.
43619 (R_X86_64_GOTPCREL): Likewise.
43620 (R_X86_64_32): Likewise.
43621 (R_X86_64_32S): Likewise.
43622 (R_X86_64_16): Likewise.
43623 (R_X86_64_PC16): Likewise.
43624 (R_X86_64_8): Likewise.
43625 (R_X86_64_PC8): Likewise.
43627 * include/grub/i386/efi/pci.h: New file.
43629 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43630 Change it value based on platform.
43631 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43632 (GRUB_E820_RAM): Likewise.
43633 (GRUB_E820_RESERVED): Likewise.
43634 (GRUB_E820_ACPI): Likewise.
43635 (GRUB_E820_NVS): Likewise.
43636 (GRUB_E820_EXEC_CODE): Likewise.
43637 (GRUB_E820_MAX_ENTRY): Likewise.
43638 (grub_e820_mmap): New structure.
43639 (linux_kernel_header): Change the efi field according to different
43640 kernel version, also field from linux_kernel_header.
43642 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43644 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43645 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43646 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43647 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43648 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43649 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43650 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43651 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43652 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43653 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43655 * include/grub/x86_64/efi/kernel.h: New file.
43657 * include/grub/x86_64/efi/loader.h: Likewise.
43659 * include/grub/x86_64/efi/machine.h: Likewise.
43661 * include/grub/x86_64/efi/pci.h: Likewise.
43663 * include/grub/x86_64/efi/time.h: Likewise.
43665 * include/grub/x86_64/linux.h: Likewise.
43667 * include/grub/x86_64/setjmp.h: Likewise.
43669 * include/grub/x86_64/time.h: Likewise.
43671 * include/grub/x86_64/types.h: Likewise.
43673 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43674 GRUB_TARGET_SIZEOF_VOID_P.
43676 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43677 (grub_efi_locate_handle): Likewise.
43678 (grub_efi_open_protocol): Likewise.
43679 (grub_efi_set_text_mode): Likewise.
43680 (grub_efi_stall): Likewise.
43681 (grub_exit): Likewise.
43682 (grub_reboot): Likewise.
43683 (grub_halt): Likewise.
43684 (grub_efi_exit_boot_services): Likewise.
43685 (grub_get_rtc): Likewise.
43687 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43688 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43689 (grub_efi_allocate_pages): Wrap efi calls.
43690 (grub_efi_free_pages): Wrap efi calls.
43691 (grub_efi_get_memory_map): Wrap efi calls.
43693 * kern/x86_64/dl.c: New file.
43695 * kern/x86_64/efi/callwrap.S: Likewise.
43697 * kern/x86_64/efi/startup.S: Likewise.
43699 * loader/efi/appleloader.c: Likewise.
43701 * loader/efi/chainloader.c (cmdline): New variable.
43702 (grub_chainloader_unload): Wrap efi calls.
43703 (grub_chainloader_boot): Likewise.
43704 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43707 * loader/efi/chainloader_normal.c (chainloader_command):
43708 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43711 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43713 (grub_e820_add_region): New function.
43714 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43716 (grub_find_video_card): New function.
43717 (grub_linux_setup_video): New function.
43718 (grub_rescue_cmd_linux): Probe for video information.
43720 * normal/x86_64/setjmp.S: New file.
43722 * term/efi/console.c (map_char): New function.
43723 (grub_console_putchar): Map unicode char.
43724 (grub_console_checkkey): Wrap efi calls.
43725 (grub_console_getkey): Likewise.
43726 (grub_console_getwh): Likewise.
43727 (grub_console_gotoxy): Likewise.
43728 (grub_console_cls): Likewise.
43729 (grub_console_setcolorstate): Likewise.
43730 (grub_console_setcursor): Likewise.
43732 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43734 2008-07-16 Pavel Roskin <proski@gnu.org>
43736 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43739 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43740 pointer, not an integer. This fixes a warning and prevents
43741 precision loss on 64-bit systems.
43742 (relocate_addresses): Remove unneeded cast.
43744 2008-07-15 Pavel Roskin <proski@gnu.org>
43746 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43748 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43750 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43751 Fix comparison between signed and unsigned.
43753 * include/grub/i386/ieee1275/console.h: Declare
43754 grub_console_init() and grub_console_fini().
43756 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43757 It's empty and unused.
43759 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43760 beginning to avoid warnings with some compilers.
43762 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43763 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43765 2008-07-14 Pavel Roskin <proski@gnu.org>
43767 * kern/env.c (grub_register_variable_hook): Don't copy empty
43768 string, it leaks memory. Pass "" to grub_env_set(), it should
43769 handle constant strings.
43771 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43772 * commands/cmp.c (grub_cmd_cmp): Likewise.
43773 * kern/dl.c (grub_dl_flush_cache): Likewise.
43774 (grub_dl_load_core): Likewise.
43775 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43776 (grub_elf64_load_phdrs): Likewise.
43778 2008-07-13 Pavel Roskin <proski@gnu.org>
43780 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43781 between signed and unsigned.
43782 (LzmaEnc_Finish): Fix warning about an unused parameter.
43784 2008-07-13 Bean <bean123ch@gmail.com>
43786 * Makefile.in (enable_lzo): New rule.
43788 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43790 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43792 * boot/i386/pc/lnxboot.S: #include <config.h>.
43794 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43795 its value according to the compression algorithm used, lzo or lzma.
43797 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43798 compression algorithm according to configure macro.
43800 * kern/i386/pc/startup.S (codestart): Likewise.
43802 * kern/i386/pc/lzma_decode.S: New file.
43804 * include/grub/lib/LzFind.h: Likewise.
43806 * include/grub/lib/LzHash.h: Likewise.
43808 * include/grub/lib/LzmaDec.h: Likewise.
43810 * include/grub/lib/LzmaEnc.h: Likewise.
43812 * include/grub/lib/LzmaTypes.h: Likewise.
43814 * lib/LzFind.c: Likewise.
43816 * lib/LzmaDec.c: Likewise.
43818 * lib/LzmaEnc.c: Likewise.
43820 2008-07-13 Bean <bean123ch@gmail.com>
43822 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43823 (grub_ext4_extent_header): New structure.
43824 (grub_ext4_extent): Likewise.
43825 (grub_ext4_extent_idx): Likewise.
43826 (grub_ext4_find_leaf): New function.
43827 (grub_ext2_read_block): Handle extents.
43829 2008-07-12 Robert Millan <rmh@aybabtu.com>
43831 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43833 2008-07-11 Robert Millan <rmh@aybabtu.com>
43835 * util/grub.d/40_custom.in: New file. Example on how to add custom
43836 entries to /etc/grub.d.
43837 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43838 40_custom (implicitly, by merging all the grub.d rules).
43840 2008-07-11 Pavel Roskin <proski@gnu.org>
43842 * commands/read.c (grub_getline): Fix invalid memory access.
43843 Don't add newline to the variable value.
43845 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43846 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43847 (serial_hw_get_port): Check validity of the port number.
43848 (grub_cmd_serial): Check return value of serial_hw_get_port().
43850 2008-07-07 Pavel Roskin <proski@gnu.org>
43852 * boot/i386/pc/diskboot.S (notification_string): Replace
43853 "Loading kernel" with just "loading". This is shorter, less
43854 confusing and saves a few bytes for possible future changes.
43856 2008-07-05 Pavel Roskin <proski@gnu.org>
43858 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43859 size for ATAPI devices, they are undefined. Output sector
43860 number in decimal form.
43862 * disk/ata.c: Use named constants for status bits.
43864 2008-07-04 Pavel Roskin <proski@gnu.org>
43866 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43867 grub_addr_t before casting it to the void pointer to fix a
43868 warning. Non-addressable regions are discarded earlier.
43869 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43870 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43871 (check_signature): Don't shadow table_header.
43872 (grub_linuxbios_table_iterate): Cast numeric constants to
43873 grub_linuxbios_table_header_t.
43874 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43877 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43880 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43881 pointer, which can cause warnings. Support 64-bit addresses.
43883 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43884 of sizeof(long). This fixes PowerPC image generation on x86_64.
43886 2008-07-04 Robert Millan <rmh@aybabtu.com>
43888 This fixes a performance issue when pc & gpt partmap iterators
43889 didn't abort iteration even after our hook found what it was
43890 looking for (often causing expensive probes of non-existent drives).
43892 Some callers relied on previous buggy behaviour, since they would
43893 raise an error when their own hooks caused early abortion of its
43896 * kern/device.c (grub_device_open): Improve error message.
43897 * disk/lvm.c (grub_lvm_open): Likewise.
43898 * disk/raid.c (grub_raid_open): Likewise.
43900 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43901 when hook requests it, independently of grub_errno.
43902 (pc_partition_map_probe): Do not fail when find_func() caused
43903 early abortion of pc_partition_map_iterate().
43905 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43906 when hook requests it, independently of grub_errno.
43907 (gpt_partition_map_probe): Do not fail when find_func() caused
43908 early abortion of gpt_partition_map_iterate().
43910 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43911 when hook requests it, independently of grub_errno. Do not fail when
43912 part_map_iterate_hook() caused early abortion of p->iterate().
43914 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43915 when grub_partition_iterate() returned with non-zero.
43917 2008-07-03 Pavel Roskin <proski@gnu.org>
43919 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43920 like we do in grub_ata_pio_read().
43921 (grub_ata_readwrite): Always write individual sectors. Fix the
43922 sector count for the remainder.
43923 (grub_ata_write): Enable writing to ATA devices. Correctly
43924 report error for ATAPI devices.
43926 2008-07-02 Pavel Roskin <proski@gnu.org>
43928 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
43931 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
43932 for every read sector, we already increment it for the whole
43933 batch. This fixes reading more than 256 sectors at once.
43935 * util/grub-editenv.c (cmd_info): Cast argument to long
43936 explicitly. ptrdiff_t reduces to int on i386.
43938 * util/grub-editenv.c (main): Be specific which parameter is
43941 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
43942 (memdisk): Make memdisk_orig_addr a pointer.
43944 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
43945 for file offsets, use grub_off_t instead. Fix printf format
43948 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
43949 there. Real unexpected warnings should not drown in the noise
43950 about known problems.
43952 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
43953 grub_disk_addr_t for memory addresses.
43955 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
43956 explicitly to fix a warning.
43958 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
43960 * Makefile.in (MODULE_LDFLAGS): New variable.
43961 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
43962 the linker accepts --build-id=none.
43963 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
43965 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
43967 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
43968 those in Linux XFS code. Provide a way to access 64-bit parent
43970 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
43971 the end of struct grub_xfs_dir_header.
43973 2008-07-02 Bean <bean123ch@gmail.com>
43975 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
43976 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43977 and GRUB_IEEE1275_FLAG_NO_ANSI.
43979 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
43980 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43981 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
43983 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
43984 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
43986 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
43987 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
43989 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
43990 esc sequence on non ANSI terminal.
43991 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
43993 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
43996 2008-07-02 Bean <bean123ch@gmail.com>
43998 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
43999 (grub_editenv_SOURCES): New variable.
44000 (pkglib_MODULES): Add loadenv.mod.
44001 (loadenv_mod_SOURCES): New variable.
44002 (loadenv_mod_CFLAGS): Likewise.
44003 (loadenv_mod_LDFLAGS): Likewise.
44005 * include/grub/envblk.h: New file.
44007 * util/envblk.c: New file.
44009 * util/grub-editenv.c: New file.
44011 * commands/loadenv.c: New file.
44013 2008-07-01 Pavel Roskin <proski@gnu.org>
44015 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44016 not unsigned char. This fixes warnings and is consistent with
44019 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44021 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44023 * term/tparm.c (analyze): Always set *popcount.
44025 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44026 cast to fix a warning.
44028 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44029 cast to suppress a warning.
44031 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44032 grub_fshelp_read_file() expects.
44034 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44035 write uuid as a 32-bit value in CPU byte order, so declare and
44038 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44039 long if the format specifier expects it.
44040 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44041 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44042 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44043 long to fix a warning.
44044 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44045 grub_dprintf() arguments to fix warnings.
44047 2008-06-30 Pavel Roskin <proski@gnu.org>
44049 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44050 install_bsd_part immediately before core.img is embedded or
44051 modified on disk. This fixes core.img verification if core.img
44052 cannot be embedded.
44054 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44055 core_path to calculate the blocklist.
44056 Patch from Javier Martín <lordhabbit@gmail.com>
44058 2008-06-29 Robert Millan <rmh@aybabtu.com>
44060 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44061 block to disk block.
44062 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44063 Patch from Niels Böhm <bitbucket@arcor.de>
44065 2008-06-29 Robert Millan <rmh@aybabtu.com>
44067 * util/update-grub_lib.in (font_path): Search for fonts in
44068 /boot/grub first, which is more likely to be readable (we aren't
44069 deciding where fonts live, just looking for them).
44071 2008-06-26 Pavel Roskin <proski@gnu.org>
44073 * util/biosdisk.c (read_device_map): Don't leave dead map
44074 entries for devices failing stat() check.
44076 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44077 core_path_dev for the core.img path on the target device.
44079 2008-06-26 Robert Millan <rmh@aybabtu.com>
44081 * disk/fs_uuid.c: New file.
44082 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44083 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44084 (fs_uuid_mod_LDFLAGS): New variables.
44085 * include/grub/disk.h (grub_disk_dev_id): Add
44086 `GRUB_DISK_DEVICE_UUID_ID'.
44087 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44088 implement iterate().
44090 2008-06-26 Robert Millan <rmh@aybabtu.com>
44092 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44093 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44094 Linux image includes no initrd.
44096 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44098 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44099 call to resolve the core image location that effectively appended the
44102 2008-06-21 Robert Millan <rmh@aybabtu.com>
44104 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44107 * util/grub.d/10_hurd.in: ... to here ...
44108 * util/grub.d/10_linux.in: ... and here.
44110 2008-06-19 Robert Millan <rmh@aybabtu.com>
44112 * kern/main.c (grub_main): Export `prefix' variable immediately
44113 after it has been set by grub_machine_set_prefix().
44115 2008-06-19 Robert Millan <rmh@aybabtu.com>
44117 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44118 search result when not saving to variable, not the other way around.
44119 When saving to variable, abort iteration as soon as a match is found.
44121 2008-06-19 Robert Millan <rmh@aybabtu.com>
44123 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44124 check for partition that provides /boot/grub. Its logic is flawed,
44125 as it prevents prepare_grub_to_access_device() from being called
44128 2008-06-19 Robert Millan <rmh@aybabtu.com>
44130 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44131 "insmod" command directly when abstraction modules are needed,
44132 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44133 since it had already been processed).
44135 2008-06-19 Pavel Roskin <proski@gnu.org>
44137 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44138 changed. This is needed in case GRUB_LIBDIR changes.
44139 * conf/i386-ieee1275.rmk: Likewise.
44140 * conf/i386-linuxbios.rmk: Likewise.
44141 * conf/i386-pc.rmk: Likewise.
44142 * conf/powerpc-ieee1275.rmk: Likewise.
44144 2008-06-18 Pavel Roskin <proski@gnu.org>
44146 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44147 kernel_elf_symlist.c to symlist.c for consistency with other
44148 architectures. Update all users.
44149 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44151 2008-06-18 Robert Millan <rmh@aybabtu.com>
44153 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44156 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44157 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44158 a RAID device, run setup() for all members independently on whether
44159 LVM abstraction is being used.
44160 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44161 If grub-mkimage has set `*install_dos_part == -2', don't override this
44163 Perform *install_dos_part adjustments independently on whether
44164 we're embedding or not.
44165 Clarify error message when image is too big for embedding.
44166 Remove duplicate *install_dos_part stanza.
44168 2008-06-17 Robert Millan <rmh@aybabtu.com>
44170 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44171 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44173 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44174 values in grub_ofconsole_normal_color and
44175 grub_ofconsole_highlight_color (they're not directly related to
44176 background and foreground).
44177 (grub_ofconsole_setcolorstate): Extract background and foreground
44178 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44180 2008-06-17 Robert Millan <rmh@aybabtu.com>
44182 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44183 /boot/grub for the check in last commit, not /boot (they could be
44184 different partitions).
44186 2008-06-16 Robert Millan <rmh@aybabtu.com>
44188 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44189 asked to setup access for the same partition that provides /boot,
44190 don't bother using UUIDs since our root already has the value we
44193 2008-06-16 Robert Millan <rmh@aybabtu.com>
44195 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44197 Patch from Sven Mueller <sven@debian.org>.
44199 2008-06-16 Robert Millan <rmh@aybabtu.com>
44201 * util/update-grub.in: Check for $EUID instead of $UID.
44202 Reported by Vincent Zweije.
44204 2008-06-16 Bean <bean123ch@gmail.com>
44206 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44207 (grub_ext2_read_block): Likewise.
44208 (grub_ext2_read_inode): Likewise.
44209 (grub_ext2_mount): Likewise.
44210 (grub_ext2_close): Likewise.
44211 (grub_ext3_get_journal): Removed.
44213 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44214 (grub_reiserfs_read_symlink): Likewise.
44215 (grub_reiserfs_mount): Likewise.
44216 (grub_reiserfs_open): Likewise.
44217 (grub_reiserfs_read): Likewise.
44218 (grub_reiserfs_close): Likewise.
44219 (grub_reiserfs_get_journal): Removed.
44221 * fs/fshelp.c (grub_fshelp_read): Removed.
44222 (grub_fshelp_map_block): Likewise.
44224 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44225 (grub_fshelp_journal): Likewise.
44226 (grub_fshelp_read): Likewise.
44227 (grub_fshelp_map_block): Likewise.
44229 2008-06-16 Pavel Roskin <proski@gnu.org>
44231 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44232 floating point anymore.
44233 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44235 2008-06-15 Pavel Roskin <proski@gnu.org>
44237 * commands/ls.c (grub_ls_list_files): Use integer calculations
44238 for human readable format, avoid floating point use.
44239 * kern/misc.c (grub_ftoa): Remove.
44240 (grub_vsprintf): Remove floating point support.
44242 2008-06-15 Robert Millan <rmh@aybabtu.com>
44244 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44246 Reported by Max Vozeler.
44248 2008-06-15 Robert Millan <rmh@aybabtu.com>
44250 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44251 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44253 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44254 the beginning of the prefix.
44256 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44257 It is assumed that if we have a memdisk, grub-mkimage has set
44258 grub_prefix to include the "(memdisk)" drive in it.
44260 2008-06-15 Robert Millan <rmh@aybabtu.com>
44262 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44263 Initialize keyboard controller after registering the terminal, so that
44264 grub_printf() can be called from grub_keyboard_controller_init().
44266 2008-06-15 Robert Millan <rmh@aybabtu.com>
44268 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44269 extent-btree which is written as big endian on disk.
44270 Reported by Alain Greppin <al@chilibi.org>.
44272 2008-06-14 Robert Millan <rmh@aybabtu.com>
44274 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44275 * util/i386/pc/grub-install.in (modules): Likewise.
44277 2008-06-13 Pavel Roskin <proski@gnu.org>
44279 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44281 2008-06-13 Bean <bean123ch@gmail.com>
44283 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44285 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44287 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44288 to indicate sparse block.
44290 2008-06-12 Pavel Roskin <proski@gnu.org>
44292 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44293 number, grub_fshelp_read() does it for us.
44295 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44296 linear disk read with journal translation.
44297 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44298 * include/grub/fshelp.h: Declare grub_fshelp_read().
44300 2008-06-09 Pavel Roskin <proski@gnu.org>
44302 * fs/minix.c (grub_minix_mount): Handle error reading
44305 2008-06-08 Robert Millan <rmh@aybabtu.com>
44307 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44308 don't append the RAID prefix afterwards.
44309 Reported by Clint Adams.
44311 2008-06-08 Robert Millan <rmh@aybabtu.com>
44313 Based on description from Pavel:
44314 * kern/disk.c (grub_disk_check_range): Rename to ...
44315 (grub_disk_adjust_range): ... this. Add a comment explaining the
44316 tasks performed by this function.
44318 2008-06-08 Robert Millan <rmh@aybabtu.com>
44320 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44321 `num_serial' (for consistency with other variables).
44322 (struct grub_ntfs_data): Add `uuid' member.
44323 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44324 (grub_ntfs_uuid): New function.
44325 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44327 2008-06-07 Pavel Roskin <proski@gnu.org>
44329 * util/biosdisk.c (open_device): Revert last change to the
44330 function, it broke installation. The sector needs to be
44331 different dependent on which device is opened.
44333 2008-06-06 Robert Millan <rmh@aybabtu.com>
44335 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44336 rest of GRUB, and breakage doesn't happen if its value were modified.
44338 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44339 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44340 a constant (same value).
44341 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44342 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44344 2008-06-06 Robert Millan <rmh@aybabtu.com>
44346 * util/biosdisk.c (open_device): Do not modify sector offset when
44347 accessing a partition. kern/disk.c already handles this for us.
44349 2008-06-06 Robert Millan <rmh@aybabtu.com>
44351 * util/grub-emu.c (grub_machine_init): Move code in this function from
44353 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44354 segfault in case grub_printf() is called).
44356 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44357 grub_probe. Update all users not to explicitly add it again.
44358 (grub_device): New variable; contains corresponding device for grubdir.
44359 (fs_module, partmap_module, devabstraction_module): Pass
44360 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44363 2008-06-05 Robert Millan <rmh@aybabtu.com>
44365 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44366 is found, print it (same layout as with labels).
44368 2008-06-04 Robert Millan <rmh@aybabtu.com>
44370 * util/biosdisk.c (get_drive): Rename to ...
44371 (find_grub_drive): ... this. Update all users.
44373 (get_os_disk): Rename to ...
44374 (convert_system_partition_to_system_disk): ... this. Update all users.
44376 (find_drive): Rename to ...
44377 (find_system_device): ... this. Update all users.
44379 2008-06-04 Robert Millan <rmh@aybabtu.com>
44381 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44382 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44383 (make_device_map): Likewise.
44385 2008-06-01 Robert Millan <rmh@aybabtu.com>
44387 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44388 before dereferencing it.
44390 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44391 union with fat12/fat16-specific ones. Add some new fields, including
44392 `num_serial' for both versions.
44393 (struct grub_fat_data): Add `uuid' member.
44394 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44395 names. Initialize `data->uuid' using `num_serial'.
44396 (grub_fat_uuid): New function.
44397 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44399 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44400 (grub_reiserfs_uuid): New function.
44401 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44404 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44405 (grub_xfs_uuid): New function.
44406 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44408 2008-06-01 Robert Millan <rmh@aybabtu.com>
44410 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44411 code that is backward compatible with pre-uuid search command.
44413 2008-05-31 Robert Millan <rmh@aybabtu.com>
44415 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44416 floppies after everything else, to ensure floppy drive isn't accessed
44417 unnecessarily (patch from Bean).
44419 2008-05-31 Robert Millan <rmh@aybabtu.com>
44421 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44422 not print device names when we were asked to set a variable.
44424 2008-05-31 Robert Millan <rmh@aybabtu.com>
44426 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44427 using "cursor-on" and "cursor-off" commands (understood at least by
44428 the Open Firmware flavour on OLPC).
44430 2008-05-31 Michael Gorven <michael@gorven.za.net>
44432 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44433 on and off sequences.
44435 2008-05-31 Robert Millan <rmh@aybabtu.com>
44437 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44438 * util/update-grub.in: Likewise.
44440 2008-05-30 Pavel Roskin <proski@gnu.org>
44442 * util/biosdisk.c (linux_find_partition): Simplify logic and
44443 make the code more universal. Keep special processing for
44444 devfs, but use a simple rule for all other devices. If the
44445 device ends with a number, append 'p' and the partition number.
44446 Otherwise, append only the partition number.
44448 2008-05-30 Robert Millan <rmh@aybabtu.com>
44450 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44451 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44452 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44453 the `root' parameter to Linux.
44455 2008-05-30 Robert Millan <rmh@aybabtu.com>
44457 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44458 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44459 --fs_uuid with --fs-uuid.
44460 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44461 all filesystems support them).
44463 2008-05-30 Robert Millan <rmh@aybabtu.com>
44465 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44466 grub_printf() flags, since we're printing in units of 2 bytes.
44468 2008-05-30 Robert Millan <rmh@aybabtu.com>
44470 * util/grub.d/00_header.in: Remove obsolete comment referencing
44471 convert_system_path_to_grub_path().
44472 * util/update-grub.in: Likewise.
44473 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44474 (convert_system_path_to_grub_path): Add a warning message explaining
44475 that this function is deprecated. Rely on is_path_readable_by_grub()
44476 for the readability checks.
44477 (font_path): Use is_path_readable_by_grub() for the readability
44478 check rather than convert_system_path_to_grub_path().
44480 2008-05-30 Robert Millan <rmh@aybabtu.com>
44482 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44483 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44484 converting it first.
44485 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44486 grub.cfg for access to font file, and afterwards call it again to set
44489 2008-05-30 Robert Millan <rmh@aybabtu.com>
44491 * commands/search.c (options): Add --fs_uuid option.
44492 (search_fs_uuid): New function.
44493 (grub_cmd_search): Fix --set argument passing.
44494 Use search_fs_uuid() when requested via --fs_uuid.
44495 (grub_search_init): Update help message.
44496 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44497 and redeclare it as an array of 16-bit words.
44498 (grub_ext2_uuid): New function.
44499 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44500 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44501 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44502 (GRUB_DEVICE_BOOT_UUID): New variables.
44503 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44504 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44506 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44507 just assume `root' variable has the right value.
44508 * util/grub.d/10_linux.in: Likewise.
44509 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44511 (main): Recognise `-t fs_uuid' argument.
44513 2008-05-30 Robert Millan <rmh@aybabtu.com>
44515 * util/biosdisk.c (map): Redefine structure to hold information
44516 about GRUB drive name.
44517 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44519 (call_hook): Remove.
44520 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44521 member. Assume drive has partitions.
44522 (grub_util_biosdisk_open): Access device names via `.device' struct
44524 (open_device): Likewise.
44525 (find_drive): Likewise.
44526 (read_device_map): Adjust map[] usage to match the new struct
44527 definition. Don't check for duplicates (still possible, but not cheap
44529 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44530 (make_device_name): Remove assumption of BIOS-like drive names.
44532 2008-05-30 Pavel Roskin <proski@gnu.org>
44534 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44535 compiling execute.c doesn't need grub_script.tab.h anymore.
44536 (normal/command.c_DEPENDENCIES): Likewise.
44537 (normal/function.c_DEPENDENCIES): Likewise.
44538 * conf/i386-ieee1275.rmk: Likewise.
44539 * conf/i386-linuxbios.rmk: Likewise.
44540 * conf/i386-pc.rmk: Likewise.
44541 * conf/powerpc-ieee1275.rmk: Likewise.
44542 * conf/sparc64-ieee1275.rmk: Likewise.
44544 2008-05-29 Pavel Roskin <proski@gnu.org>
44546 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44547 when scanning metadata for volume group name.
44549 * include/grub/script.h: Don't include grub_script.tab.h. It's
44550 a generated file, which may only be included from the files with
44551 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44552 use union YYSTYPE, as the later allows forward declaration.
44553 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44555 2008-05-29 Robert Millan <rmh@aybabtu.com>
44557 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44558 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44559 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44560 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44563 2008-05-29 Robert Millan <rmh@aybabtu.com>
44565 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44566 control key combinations.
44568 2008-05-29 Robert Millan <rmh@aybabtu.com>
44570 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44571 * util/ieee1275/grub-install.in: ... to here.
44572 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44573 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44574 (grub_install_SOURCES): Likewise.
44576 2008-05-29 Robert Millan <rmh@aybabtu.com>
44578 * fs/affs.c: Update copyright year.
44579 * fs/ext2.c: Likewise.
44580 * fs/fshelp.c: Likewise.
44581 * fs/hfsplus.c: Likewise.
44582 * fs/ntfs.c: Likewise.
44583 * fs/xfs.c: Likewise.
44584 * include/grub/fshelp.h: Likewise.
44585 * util/grub-mkdevicemap.c: Likewise.
44587 2008-05-28 Robert Millan <rmh@aybabtu.com>
44589 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44590 might need to be fatfs to support some firmware implementations
44593 2008-05-28 Robert Millan <rmh@aybabtu.com>
44595 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44597 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44598 (make_device_map): Likewise.
44600 2008-05-20 Bean <bean123ch@gmail.com>
44602 * fs/fshelp.c (grub_fshelp_map_block): New function.
44603 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44604 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44606 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44607 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44608 (grub_fshelp_journal): New structure.
44609 (grub_fshelp_map_block): New function prototype.
44610 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44611 (grub_fshelp_map_block): Likewise.
44613 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44614 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44615 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44616 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44617 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44618 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44619 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44620 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44621 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44622 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44623 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44624 (grub_ext2_sblock): New members for journal support.
44625 (grub_ext3_journal_header): New structure.
44626 (grub_ext3_journal_revoke_header): Likewise.
44627 (grub_ext3_journal_block_tag): Likewise.
44628 (grub_ext3_journal_sblock): Likewise.
44629 (grub_fshelp_node): New members logfile and journal.
44630 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44631 grub_fshelp_map_block to get real block number.
44632 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44634 (grub_ext2_read_inode): Likewise.
44635 (grub_ext3_get_journal): New function.
44636 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44637 (grub_ext2_close): Release memory used by journal.
44639 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44640 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44641 (grub_reiserfs_transaction_header): Renamed to
44642 grub_reiserfs_description_block, replace field data with real_blocks.
44643 (grub_reiserfs_commit_block): New structure.
44644 (grub_reiserfs_data): New member journal.
44645 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44647 (grub_reiserfs_read_symlink): Likewise.
44648 (grub_reiserfs_iterate_dir): Likewise.
44649 (grub_reiserfs_open): Likewise.
44650 (grub_reiserfs_read): Likewise.
44651 (grub_reiserfs_get_journal): New function.
44652 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44653 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44654 using grub_reiserfs_get_journal.
44655 (grub_reiserfs_close): Release memory used by journal.
44657 * fs/affs.c (grub_affs_read_block): Change block type to
44658 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44660 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44662 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44664 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44666 * fs/udf.c (grub_udf_read_block): Change block type to
44667 grub_disk_addr_t. Use type cast to avoid warning.
44669 * fs/xfs.c (grub_xfs_read_block): Likewise.
44671 2008-05-16 Christian Franke <franke@computer.org>
44673 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44674 to ensure that break with ESC will always work.
44675 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44676 Remove ESC from keyboard queue.
44678 2008-05-16 Christian Franke <franke@computer.org>
44680 * util/biosdisk.c: [__CYGWIN__] Add includes.
44681 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44682 (get_os_disk): Move variable declarations to OS specific
44683 parts to avoid warning.
44684 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44685 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44686 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44688 * util/getroot.c: [__CYGWIN__] Add includes.
44689 (strip_extra_slashes): Fix "/" case.
44690 [__CYGWIN__] (get_win32_path): New function.
44691 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44692 [__CYGWIN__] (find_root_device): Disable.
44693 [__CYGWIN__] (get_bootsec_serial): New function.
44694 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44695 [__linux__] (grub_guess_root_device): Add early returns to simplify
44697 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44698 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44699 check for Linux only.
44701 2008-05-15 Bean <bean123ch@gmail.com>
44703 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44704 keyboard hang problem in apple's intel mac.
44706 2008-05-09 Robert Millan <rmh@aybabtu.com>
44708 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44710 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44711 (make_device_map): Likewise.
44712 Reported by Aurelien Jarno <aurel32@debian.org>
44714 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44716 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44717 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44718 (make_device_map): Output entries for xvd type disks.
44720 2008-05-07 Robert Millan <rmh@aybabtu.com>
44722 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44724 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44725 (make_device_map): Likewise.
44726 Reported by Roland Dreier <rdreier@cisco.com>
44728 2008-05-07 Robert Millan <rmh@aybabtu.com>
44730 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44731 grub_strstr() call. Correct a few mistakes in failure path handling.
44733 2008-05-06 Robert Millan <rmh@aybabtu.com>
44735 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44736 Do not print a trailing slash (therefore, the root directory is an
44738 (convert_system_path_to_grub_path): Do not remove trailing slash
44739 from make_system_path_relative_to_its_root() output.
44741 * util/i386/pc/grub-install.in: Add trailing slash to output from
44742 make_system_path_relative_to_its_root().
44744 2008-05-06 Robert Millan <rmh@aybabtu.com>
44746 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44747 ensures that output lines aren't intermangled with those sent to
44748 stderr (via grub_util_info()).
44749 * util/grub-probe.c (grub_refresh): Likewise.
44750 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44752 2008-05-05 Christian Franke <franke@computer.org>
44754 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44755 Add Cygwin device names.
44756 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44757 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44758 (check_device): Return error instead of success on empty name.
44759 (make_device_map): Move label inside linux specific code to
44760 prevent compiler warning.
44762 2008-04-30 Robert Millan <rmh@aybabtu.com>
44764 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44765 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44767 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44769 2008-04-29 Robert Millan <rmh@aybabtu.com>
44771 * docs/grub.cfg: New file (example GRUB configuration).
44773 2008-04-26 Robert Millan <rmh@aybabtu.com>
44775 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44776 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44777 and `disk/ieee1275/nand.c'.
44779 2008-04-25 Bean <bean123ch@gmail.com>
44781 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44784 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44785 change the buffer size to 4096 for cdrom device.
44787 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44789 (_linux_mod_SOURCES): New variable.
44790 (_linux_mod_CFLAGS): Likewise.
44791 (_linux_mod_LDFLAGS): Likewise.
44792 (linux_mod_SOURCES): Likewise.
44793 (linux_mod_CFLAGS): Likewise.
44794 (linux_mod_LDFLAGS): Likewise.
44795 (nand_mod_SOURCES): Likewise.
44796 (nand_mod_CFLAGS): Likewise.
44797 (nand_mod_LDFLAGS): Likewise.
44799 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44800 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44801 type property. (nand device in olpc don't have this property)
44803 * include/grub/disk.h (grub_disk_dev_id): New macro
44804 GRUB_DISK_DEVICE_NAND_ID.
44806 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44807 function prototype.
44808 (grub_rescue_cmd_initrd): Likewise.
44810 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44811 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44812 ofw_cif_handler and ofw_idt, adjust padding number.
44814 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44815 GRUB_MACHINE_IEEE1275 is defined.
44817 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44818 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44820 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44821 on nested function heap_init.
44822 (grub_upper_mem): New variable for i386-ieee1275.
44823 (grub_get_extended_memory): New function for i386-ieee1275.
44824 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44826 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44827 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44830 * loader/i386/ieee1275/linux.c: New file.
44832 * loader/i386/ieee1275/linux_normal.c: New file.
44834 * disk/ieee1275/nand.c: New file.
44836 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44838 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44840 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44842 2008-04-18 Robert Millan <rmh@aybabtu.com>
44844 Restructures early code path on ieee1275 to unify grub_main() as
44845 the first C function that is executed in every platform.
44847 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44848 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44850 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44851 * kern/ieee1275/cmain.c (cmain): Rename to ...
44852 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44853 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44856 2008-04-18 Robert Millan <rmh@aybabtu.com>
44858 * util/update-grub.in: Fix syntax error when setting
44859 `GRUB_PRELOAD_MODULES'.
44860 Reported by Stephane Chazelas <stephane@artesyncp.com>
44862 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44864 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44865 section into account, newer toolchains generate unique build ids
44866 * configure.ac: remove the test for --build-id=none acceptance,
44867 we want build ids to be preserved
44868 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44869 far from other sections don't cause the raw binary images grow
44872 2008-04-15 Robert Millan <rmh@aybabtu.com>
44874 * disk/lvm.c: Update copyright year.
44875 * kern/misc.c: Likewise.
44877 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44879 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
44880 there is no memory left for physical volume name.
44882 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44884 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44885 volume name mapping to support bigger than 9 character names properly.
44887 2008-04-13 Robert Millan <rmh@aybabtu.com>
44889 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44890 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44892 2008-04-13 Christian Franke <franke@computer.org>
44894 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44895 to create a floppy emulation boot CD when non emulation mode
44897 Enable Joliet CD filesystem extension.
44899 2008-04-13 Robert Millan <rmh@aybabtu.com>
44901 * kern/misc.c (grub_strncat): Fix off-by-one error.
44902 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44904 * kern/env.c (grub_env_context_close): Clear current context, not
44906 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44908 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44910 2008-04-13 Robert Millan <rmh@aybabtu.com>
44912 Improve robustness when handling LVM.
44914 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
44915 (and leave `*p' unmodified).
44916 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44918 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44919 iterating through it.
44920 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44922 (grub_lvm_scan_device): Check the return value (and fail gracefully
44923 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44924 Don't assume `vg->pvs != NULL' when iterating through it.
44926 2008-04-13 Robert Millan <rmh@aybabtu.com>
44928 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
44929 * genmk.rb (partmap): New variable.
44930 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
44931 (#{partmap}): New target rule.
44932 * genpartmaplist.sh: New file.
44933 * Makefile.in (pkglib_DATA): Add partmap.lst.
44934 (partmap.lst): New target rule.
44935 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
44936 modules (including all partition maps), instead of preloading them.
44938 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
44940 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
44941 `linux-boot-prober' (if installed) to detect other operating
44942 systems which are installed on the computer and add them to
44944 * conf/common.rmk: Build and install 30_os-prober.
44946 2008-04-12 Robert Millan <rmh@aybabtu.com>
44948 * kern/powerpc/ieee1275/init.c: Move from here ...
44949 * kern/ieee1275/init.c: ... to here. Update all users.
44951 * kern/powerpc/ieee1275/cmain.c: Move from here ...
44952 * kern/ieee1275/cmain.c: ... to here. Update all users.
44954 * kern/powerpc/ieee1275/openfw.c: Move from here ...
44955 * kern/ieee1275/openfw.c: ... to here. Update all users.
44957 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
44958 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
44960 2008-04-10 Pavel Roskin <proski@gnu.org>
44962 * configure.ac: Always use "_cv_" in cache variables for
44963 compatibility with Autoconf 2.62.
44965 2008-04-07 Robert Millan <rmh@aybabtu.com>
44967 Revert grub/machine/init.h addition by Pavel (since it breaks on
44968 i386-ieee1275 and others):
44969 * util/i386/pc/misc.c: Remove grub/machine/init.h.
44970 * util/powerpc/ieee1275/misc.c: Likewise.
44972 2008-04-07 Robert Millan <rmh@aybabtu.com>
44974 * util/grub-probe.c (probe): Improve error message.
44976 2008-04-07 Robert Millan <rmh@aybabtu.com>
44978 * util/biosdisk.c (read_device_map): Skip devices that don't exist
44979 (this prevents the presence of a bogus entry from ruining the whole
44982 2008-04-06 Pavel Roskin <proski@gnu.org>
44984 * util/biosdisk.c: Include grub/util/biosdisk.h.
44985 * util/grub-fstest.c (execute_command): Make static.
44986 * util/grub-mkdevicemap.c (check_device): Likewise.
44987 * util/i386/pc/misc.c: Include grub/machine/init.h.
44988 * util/powerpc/ieee1275/misc.c: Likewise.
44989 * util/lvm.c: Include grub/util/lvm.h.
44990 * util/misc.c: Include grub/kernel.h, grub/misc.h and
44992 * util/raid.c: Include grub/util/raid.h.
44993 (grub_util_getdiskname): Make static.
44995 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
44996 grub_hostfs_fini(), as they are called from grub_init_all() and
44997 grub_fini_all() respectively. This fixes an infinite loop in
44998 grub-fstest due to double registration of hostfs.
44999 Reported by Christian Franke <Christian.Franke@t-online.de>
45001 2008-04-05 Pavel Roskin <proski@gnu.org>
45003 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45004 all 8 functions. Otherwise, probe function 0 only.
45006 2008-04-04 Pavel Roskin <proski@gnu.org>
45008 * commands/lspci.c (grub_lspci_iter): Print the bus number
45011 * commands/lspci.c (grub_pci_classes): Fix typos.
45012 (grub_lspci_iter): Don't print func twice. Print vendor ID
45013 before device ID, as it's normally done.
45015 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45016 Fix signedness warnings.
45017 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45019 * util/ieee1275/get_disk_name.c: Include config.h so that
45020 _GNU_SOURCE is defined and getline() is declared. Mark an
45021 unused argument as such. Fix a signedness warning.
45023 2008-04-02 Pavel Roskin <proski@gnu.org>
45025 * genkernsyms.sh.in: Use more robust assignments for CC and
45026 srcdir. Quote srcdir.
45027 * gensymlist.sh.in: Likewise. Assert at the compile time that
45028 the symbol table is not empty.
45030 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45031 * fs/cpio.c (grub_cpio_read): Likewise.
45033 2008-04-01 Pavel Roskin <proski@gnu.org>
45035 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45036 * disk/host.c (grub_host_open): Likewise.
45037 * disk/loopback.c (grub_loopback_open): Likewise.
45038 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45039 disk->id as in disk/host.c, not a multi-character constant.
45041 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45042 later is obsolete, potentially dangerous and sets a bad example.
45043 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45044 * util/misc.c (grub_util_get_image_size): Likewise.
45046 * disk/loopback.c (options): Improve help for "--partitions".
45048 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45049 options to align them with the short options, e.g. "echo -e".
45051 2008-03-31 Bean <bean123ch@gmail.com>
45053 * video/reader/png.c (grub_png_data): New member is_16bit and
45055 (grub_png_decode_image_header): Detect 16 bit png image.
45056 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45057 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45058 (grub_video_reader_png): Release memory occupied by image_data.
45060 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45062 (grub_nfs_mount): Skip the test for sector per cluster.
45064 * include/grub/ntfs.h (MAX_SPC): Removed.
45066 2008-03-31 Bean <bean123ch@gmail.com>
45068 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45069 (grub_probe_SOURCES): Add fs/afs.c.
45070 (grub_fstest_SOURCES): Likewise.
45071 (afs_mod_SOURCES): New variable.
45072 (afs_mod_CFLAGS): Likewise.
45073 (afs_mod_LDFLAGS): Likewise.
45075 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45076 (grub_emu_SOURCES): Likewise.
45078 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45080 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45082 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45084 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45086 * fs/afs.c: New file.
45088 2008-03-30 Pavel Roskin <proski@gnu.org>
45090 * disk/host.c: Include grub/misc.h to fix a warning.
45091 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45092 warnings about implicit declarations.
45094 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45096 * include/grub/i386/loader.h: Change declaration of
45097 grub_linux_boot() to match what grub_loader_set() expects.
45098 * util/getroot.c (grub_guess_root_device): Return const char* to
45100 * util/grub-probe.c (probe): Fix a warning about uninitialized
45101 abstraction_name variable.
45102 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45103 second argument as unused to fix a warning.
45105 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45106 missing grub_error() call.
45108 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45109 2.60 and newer uses it to define datadir.
45111 * commands/sleep.c: Fix warning about implicit declaration.
45112 * disk/memdisk.c: Likewise.
45113 * loader/aout.c: Likewise.
45114 * loader/i386/bsd_normal.c: Likewise.
45115 * util/grub-probe.c: Likewise.
45117 * commands/i386/cpuid.c (has_longmode): Make static.
45118 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45119 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45121 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45122 GDT. This is more robust, as %ds can change.
45123 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45124 calling real_to_prot().
45125 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45127 2008-03-28 Pavel Roskin <proski@gnu.org>
45129 * kern/i386/pc/startup.S: Assert that uncompressed functions
45130 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45131 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45132 code, as they push parts of the code (error handlers) beyond
45133 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45134 code as correctness and size.
45136 2008-03-28 Pavel Roskin <proski@gnu.org>
45138 * kern/i386/pc/startup.S
45139 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45140 data block address to the real mode, keep offset minimal. This
45141 works around a bug in AWARD BIOS on old Athlon systems, which
45142 makes CD detection hang.
45144 2008-03-26 Pavel Roskin <proski@gnu.org>
45146 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45148 * include/grub/normal.h: Add grub_parse_color_name_pair()
45151 2008-03-24 Bean <bean123ch@gmail.com>
45153 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45154 (cd_count): Removed.
45155 (cd_drive): New variable.
45156 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45157 (grub_biosdisk_call_hook): Likewise.
45158 (grub_biosdisk_iterate): Change cdrom detection method.
45159 (grub_biosdisk_open): Replace cd_start with cd_drive.
45160 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45161 detect cdrom device.
45163 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45165 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45166 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45167 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45168 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45169 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45170 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45171 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45172 (grub_biosdisk_cdrp): New structure.
45173 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45175 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45177 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45180 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45183 2008-03-20 Robert Millan <rmh@aybabtu.com>
45185 Remove 2 TiB limit in ata.mod.
45186 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45187 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45188 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45189 grub_uint64_t instead of grub_uint32_t.
45191 2008-03-05 Bean <bean123ch@gmail.com>
45193 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45194 (grub_multiboot): Set boot device.
45196 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45198 2008-03-02 Bean <bean123ch@gmail.com>
45200 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45203 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45205 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45208 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45211 * docs/fdl.texi: New file.
45213 * docs/mdate-sh: New file. Copied from gnulib.
45214 * docs/texinfo.tex: Likewise.
45216 * config.guess: Updated from gnulib.
45217 * install-sh: Likewise.
45219 2008-02-28 Robert Millan <rmh@aybabtu.com>
45221 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45222 (aout_mod_SOURCES): New variable.
45223 (aout_mod_CFLAGS): Likewise.
45224 (aout_mod_LDFLAGS): Likewise.
45226 * conf/i386-ieee1275.rmk: Likewise.
45228 2008-02-28 Robert Millan <rmh@aybabtu.com>
45230 * util/update-grub.in: Reorganise terminal validity check. Accept
45231 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45232 Based on suggestion by Franklin PIAT.
45234 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45236 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45238 * util/getroot.c (grub_util_check_block_device): New function that
45239 returns the given argument if it is a block device and returns NULL else.
45240 * util/grub-probe.c (argument_is_device): New variable.
45241 (probe): Promote device_name from a variable to an argument. Receive
45242 device_name from grub_util_check_block_device() if path is NULL and from
45243 grub_guess_root_device() else. Do not free() device_name anymore.
45244 (options): Introduce new parameter '-d, --device'.
45245 (main): Add description of the new parameter to the help screen.
45246 Rename path variable to argument. Set argument_is_device if the '-d'
45247 option is given. Pass argument to probe() depending on
45248 argument_is_device.
45250 2008-02-24 Bean <bean123ch@gmail.com>
45252 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45253 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45254 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45255 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45256 (GRUB_ISO9660_VOLDESC_END): Likewise.
45257 (grub_iso9660_primary_voldesc): New member escape.
45258 (grub_iso9660_data): New member joliet.
45259 (grub_iso9660_convert_string): New function.
45260 (grub_iso9660_mount): Detect joliet extension.
45261 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45262 (grub_iso9660_iso9660_label): Likewise.
45264 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45265 (grub_setup_SOURCES): Add fs/udf.c.
45266 (grub_fstest_SOURCES): Likewise.
45267 (udf_mod_SOURCES): New variable.
45268 (udf_mod_CFLAGS): Likewise.
45269 (udf_mod_LDFLAGS): Likewise.
45271 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45272 (grub_emu_SOURCES): Likewise.
45274 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45276 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45278 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45282 * fs/udf.c: New file.
45284 2008-02-24 Robert Millan <rmh@aybabtu.com>
45286 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45287 (normal/lexer.c_DEPENDENCIES): New variables.
45288 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45289 (normal/lexer.c_DEPENDENCIES): Likewise.
45290 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45291 (normal/lexer.c_DEPENDENCIES): Likewise.
45292 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45293 (normal/lexer.c_DEPENDENCIES): Likewise.
45294 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45295 (normal/lexer.c_DEPENDENCIES): Likewise.
45296 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45297 (normal/lexer.c_DEPENDENCIES): Likewise.
45299 2008-02-23 Robert Millan <rmh@aybabtu.com>
45301 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45302 since they were intended to be in hex. This didn't break previously
45303 because of a bug in gpt_partition_map_iterate() (see below).
45305 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45306 when checking the validity of GPT header.
45307 Remove `partno', since it always provides the same information as `i'.
45309 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45311 * include/grub/efi/time.h: Fix a wrong comment.
45313 2008-02-19 Pavel Roskin <proski@gnu.org>
45315 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45318 2008-02-19 Bean <bean123ch@gmail.com>
45320 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45321 (aout_mod_SOURCES): New variable.
45322 (aout_mod_CFLAGS): Likewise.
45323 (aout_mod_LDFLAGS): Likewise.
45324 (_bsd_mod_SOURCES): New variable.
45325 (_bsd_mod_CFLAGS): Likewise.
45326 (_bsd_mod_LDFLAGS): Likewise.
45327 (bsd_mod_SOURCES): New variable.
45328 (bsd_mod_CFLAGS): Likewise.
45329 (bsd_mod_LDFLAGS): Likewise.
45331 * include/grub/aout.h: New file.
45333 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45335 * include/grub/i386/bsd.h: New file.
45337 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45340 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45341 function is called, so that it's possible to change it inside the hook.
45342 (grub_elf64_load): Likewise.
45343 (grub_elf_file): Don't close the file if elf header is not found.
45344 (grub_elf_close): Close the file if grub_elf_file fails (The new
45345 grub_elf_file won't close it).
45346 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45347 (grub_elf64_size): Likewise.
45349 * kern/i386/loader.S (grub_unix_real_boot): New function.
45351 * loader/aout.c: New file.
45353 * loader/i386/bsd.c: New file.
45355 * loader/i386/bsd_normal.c: New file.
45357 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45359 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45360 can test other formats.
45362 2008-02-19 Robert Millan <rmh@aybabtu.com>
45364 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45365 (grub_gpt_partition_type_empty): Redefine with macro from
45366 `<grub/gpt_partition.h>'.
45367 (gpt_partition_map_iterate): Adjust partition type comparison.
45369 Export `entry' as partmap-specific `part.data' struct.
45370 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45372 * include/grub/gpt_partition.h (grub_gpt_header)
45373 (grub_gpt_partentry): ... to here (new file).
45375 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45377 (grub_gpt_partition_type_bios_boot): New const variable, defined
45378 with macro from `<grub/gpt_partition.h>'.
45380 (setup): Replace `first_start' with `embed_region', which keeps
45381 track of the embed region (and is partmap-agnostic).
45383 Replace find_first_partition_start() with find_usable_region(),
45384 which finds a usable region for embedding using partmap-specific
45385 knowledge (supports PC/MSDOS and GPT).
45387 Fix all assumptions that the embed region start at sector 1, using
45388 `embed_region.start' from now on. Similarly, use `embed_region.end'
45389 rather than `first_start' to calculate available size.
45391 In grub_util_info() message, replace "into after the MBR" with an
45392 indication of the specific sector our embed region starts at.
45394 2008-02-19 Robert Millan <rmh@aybabtu.com>
45396 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45397 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45398 `commands/reboot.c'.
45399 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45400 (halt_mod_SOURCES): Likewise.
45401 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45402 (halt_mod_SOURCES): Likewise.
45404 2008-02-17 Christian Franke <franke@computer.org>
45406 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45408 2008-02-17 Robert Millan <rmh@aybabtu.com>
45410 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45411 set `first_start' to 0 for non-PC/MSDOS partition maps.
45413 2008-02-16 Robert Millan <rmh@aybabtu.com>
45415 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45416 do not assume partition map is PC/MSDOS before performing checks that
45417 are specific to that layout.
45419 2008-02-13 Robert Millan <rmh@aybabtu.com>
45421 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45422 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45423 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45425 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45427 * configure.ac: Only a cosmetic change on the handling of
45428 -fno-stack-protector.
45430 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45432 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45433 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45435 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45436 (halt_mod_SOURCES): New variable.
45437 (halt_mod_CFLAGS): Likewise.
45438 (halt_mod_LDFLAGS): Likewise.
45439 (reboot_mod_SOURCES): Likewise.
45440 (reboot_mod_CFLAGS): Likewise.
45441 (reboot_mod_LDFLAGS): Likewise.
45443 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45444 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45446 (halt_mod_SOURCES): Likewise.
45447 (reboot_mod_SOURCES): Likewise.
45449 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45450 commands/i386/pc/reboot.c by commands/reboot.c.
45451 (reboot_mod_SOURCES): Likewise.
45453 * commands/i386/pc/reboot.c: merge this file ...
45455 * commands/ieee1275/reboot.c: ... and this file ...
45457 * commands/reboot.c: ... to this file.
45458 Add some precompiler directive to include the correct header for
45461 * commands/ieee1275/halt.c: move this file ...
45463 * commands/halt.c: ... to here.
45464 Add some precompiler directive to include the correct header for
45467 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45468 (grub_halt): Likewise.
45470 * kern/efi/efi.c (grub_reboot): New function.
45471 (grub_halt): Likewise.
45473 2008-02-12 Robert Millan <rmh@aybabtu.com>
45475 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45476 /dev (like it is done for /dev/mapper). This doesn't provide support
45477 for EVMS, but at least it is now easy to identify the problem when it
45480 2008-02-11 Robert Millan <rmh@aybabtu.com>
45482 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45483 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45484 comparing it with -1, not 0.
45486 2008-02-10 Robert Millan <rmh@aybabtu.com>
45488 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45490 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45491 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45493 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45494 `disk/lvm.c' to the end of the list.
45495 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45496 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45498 2008-02-10 Robert Millan <rmh@aybabtu.com>
45500 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45501 grub_print_error() instead. This will let user know why we're entering
45503 Based on suggestions from Sam Morris.
45505 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45507 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45508 on remaining N args, instead of "--" arg N times.
45510 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45512 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45513 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45514 pattern for unknown glyphs.
45516 2008-02-09 Robert Millan <rmh@aybabtu.com>
45518 * configure.ac: Probe for `help2man'.
45519 * Makefile.in (builddir): New variable.
45520 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45521 or otherwise add a few flags/options to it.
45522 (install-local): For every executable utility or script that is
45523 installed, invoke $(HELP2MAN) to install a manpage based on --help
45526 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45527 that it doesn't prevent --help from working in build tree.
45529 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45530 with `bug-grub@gnu.org'.
45531 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45532 * util/update-grub.in (usage): New function.
45533 Implement proper argument check, with support for --help and --version
45534 (as well as existing -y).
45536 2008-02-09 Christian Franke <franke@computer.org>
45538 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45539 avoid overwriting previous output.
45540 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45542 2008-02-09 Robert Millan <rmh@aybabtu.com>
45544 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45547 2008-02-09 Robert Millan <rmh@aybabtu.com>
45549 * commands/sleep.c: New file.
45550 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45551 (sleep_mod_SOURCES): New variable.
45552 (sleep_mod_CFLAGS): Likewise.
45553 (sleep_mod_LDFLAGS): Likewise.
45555 2008-02-09 Robert Millan <rmh@aybabtu.com>
45557 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45558 situations in which we can deduce the RAID size and the superblock
45561 2008-02-09 Robert Millan <rmh@aybabtu.com>
45563 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45564 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45565 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45567 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45568 and return a grub_diskmemberlist_t composed of physical array members.
45569 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45571 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45573 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45574 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45575 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45577 * util/grub-probe.c (probe): Move partmap probing code from here ...
45578 (probe_partmap): ... to here.
45579 (probe): Use probe_partmap() once for the disk we're probing, and
45580 additionally, when such disk contains a memberlist() struct member,
45581 once for each disk that is contained in the structure returned by
45584 2008-02-09 Robert Millan <rmh@aybabtu.com>
45586 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45587 environment variable to 'all' in order to obtain debug output from
45589 * util/i386/pc/grub-setup.c (main): Likewise.
45591 2008-02-08 Robert Millan <rmh@aybabtu.com>
45593 * disk/raid.c (grub_raid_scan_device): Check for
45594 `array->device[sb.this_disk.number]' rather than for
45595 `array->device[sb.this_disk.number]->name', since the latter is not
45596 guaranteed to be accessible.
45598 2008-02-08 Robert Millan <rmh@aybabtu.com>
45600 * disk/raid.c: Update copyright.
45601 * fs/cpio.c: Likewise.
45602 * include/grub/raid.h: Likewise.
45603 * loader/i386/pc/multiboot.c: Likewise.
45604 * util/hostfs.c: Likewise.
45606 2008-02-08 Robert Millan <rmh@aybabtu.com>
45608 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45609 to a grub_disk_t array.
45610 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45612 (grub_raid_scan_device): Replace `device[x].name' accesses with
45613 `device[x]->name'. Simplify initialization of `array->device[x]'.
45615 2008-02-08 Robert Millan <rmh@aybabtu.com>
45617 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45618 grub_dprintf() calls.
45619 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45622 2008-02-07 Christian Franke <franke@computer.org>
45624 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45625 instead of fseek and ftell to support large files.
45626 (grub_hostfs_read): Likewise.
45628 2008-02-07 Robert Millan <rmh@aybabtu.com>
45630 Patch from Jeroen Dekkers.
45631 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45632 failure, since successfully reading all array members might not be
45635 2008-02-06 Robert Millan <rmh@aybabtu.com>
45637 * util/grub-probe.c (probe): Simplify partmap probing (with the
45638 assumption that the first word up to the underscore equals to
45641 2008-02-06 Christian Franke <franke@computer.org>
45643 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45644 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45645 last block of a cpio or tar stream.
45646 Check for "TRAILER!!!" instead of any empty data
45647 block to detect last block of a cpio stream.
45648 (grub_cpio_dir): Fix constness of variable np.
45649 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45650 cpio or tar trailer is detected. This fixes a crash
45651 on open of a non existing file.
45653 2008-02-05 Bean <bean123ch@gmail.com>
45655 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45657 (grub_multiboot_load_elf64): Likewise.
45658 (grub_multiboot): Initialize mbi structure.
45660 * util/grub-fstest.c: Don't include unused header file script.h.
45662 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45664 (grub_fstest_SOURCES): Likewise.
45666 2008-02-05 Robert Millan <rmh@aybabtu.com>
45668 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45669 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45670 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45671 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45673 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45674 (translation_table): Replace hardcoded values with macros
45675 provided by `<grub/term.h>'.
45677 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45678 (keyboard_map): Correct/add a few values, with macros provided
45679 by `<grub/term.h>'.
45680 (keyboard_map_shift): Zero values that don't differ from their
45681 `keyboard_map' equivalents.
45682 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45683 Discard the second scan code that is always sent by Caps lock.
45684 Only use `keyboard_map_shift' when it provides a non-zero value,
45685 otherwise fallback to `keyboard_map'.
45687 2008-02-04 Bean <bean123ch@gmail.com>
45689 * Makefile.in (enable_grub_fstest): New variable.
45691 * conf/common.rmk (grub_fstest_init.lst): New rule.
45692 (grub_fstest_init.h): Likewise.
45693 (grub_fstest_init.c): Likewise.
45694 (util/grub-fstest.c_DEPENDENCIES): New variable.
45695 (grub_fstest_SOURCES): Likewise.
45697 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45699 * util/grub-fstest.c: New file.
45701 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45703 Make grub-setup handle a separate root device.
45705 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45706 so that the root device can be compared with the destination
45708 When embedding the core image, if the root and destination devices
45709 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45711 When not embedding, set ROOT_DRIVE to 0xFF.
45713 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45715 Add support for having a grub directory in a different drive. This
45716 is still only the data handling part.
45718 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45719 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45720 (grub_root_drive): New variable.
45722 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45723 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45724 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45727 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45729 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45731 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45733 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45734 is bogus, because PXE booting does not specify any drive
45737 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45738 am not sure if this is really correct.
45740 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45741 is always identical to the boot drive when booting from a CD.
45743 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45745 (root_drive): New variable.
45746 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45747 (setup_sectors): Push %dx right after popping it, because %dh will
45749 (copy_buffer): Restore %dx.
45751 2008-02-03 Robert Millan <rmh@aybabtu.com>
45753 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45754 use `cdboot.img' for cdrom images.
45756 2008-02-03 Robert Millan <rmh@aybabtu.com>
45758 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45759 only setup gfxterm when `font' command has succeeded.
45761 2008-02-03 Robert Millan <rmh@aybabtu.com>
45763 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45764 (grub_rescue_cmd_multiboot_loader)
45765 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45767 2008-02-03 Pavel Roskin <proski@gnu.org>
45769 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45770 %edx and %esi from stack only after grub_gate_a20() is called.
45771 grub_gate_a20() clobbers %edx.
45773 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45775 * configure.ac (AC_INIT): Bumped to 1.96.
45777 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45778 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45779 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45780 video/readers/png.c.
45782 2008-02-03 Bean <bean123ch@gmail.com>
45784 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45785 (cdboot_img_SOURCES): New variable.
45786 (cdboot_img_ASFLAGS): New variable.
45787 (cdboot_img_LDFLAGS): New variable.
45789 * boot/i386/pc/cdboot.S: New file.
45791 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45792 (cd_count): Likewise.
45793 (grub_biosdisk_get_drive): Add support for cd device.
45794 (grub_biosdisk_call_hook): Likewise.
45795 (grub_biosdisk_iterate): Likewise.
45796 (grub_biosdisk_open): Likewise.
45797 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45798 (grub_biosdisk_rw): Support reading from cd device.
45799 (GRUB_MOD_INIT): Iterate cd devices.
45801 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45802 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45803 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45805 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45807 2008-02-02 Robert Millan <rmh@aybabtu.com>
45809 * commands/read.c: New file.
45810 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45811 (read_mod_SOURCES): New variable.
45812 (read_mod_CFLAGS): Likewise.
45813 (read_mod_LDFLAGS): Likewise.
45815 2008-02-02 Robert Millan <rmh@aybabtu.com>
45817 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45818 determining whether menu has to be displayed.
45820 2008-02-02 Marco Gerards <marco@gnu.org>
45822 * bus/pci.c: New file.
45824 * include/grub/pci.h: Likewise.
45826 * include/grub/i386/pc/pci.h: Likewise.
45828 * commands/lspci.c: Likewise.
45830 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45832 (pci_mod_SOURCES): New variable.
45833 (pci_mod_CFLAGS): Likewise.
45834 (pci_mod_LDFLAGS): Likewise.
45835 (lspci_mod_SOURCES): Likewise.
45836 (lspci_mod_CFLAGS): Likewise.
45837 (lspci_mod_LDFLAGS): Likewise.
45839 2008-02-02 Bean <bean123ch@gmail.com>
45841 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45842 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45844 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45845 (grub_xfs_btree_node): New structure.
45846 (grub_xfs_btree_root): New structure.
45847 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45848 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45849 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45850 (GRUB_XFS_EXTENT_SIZE): Likewise.
45851 (grub_xfs_read_block): Support btree format type.
45852 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45853 Use directory block as basic unit.
45855 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45857 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45858 __attribute__ ((__regparm__ (1))).
45860 2008-02-01 Robert Millan <rmh@aybabtu.com>
45862 Correct a mistake in previous commit.
45864 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45866 (normal/command.c_DEPENDENCIES): New variable.
45868 2008-02-01 Robert Millan <rmh@aybabtu.com>
45870 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45872 (normal/command.c_DEPENDENCIES): New variable.
45873 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45874 * conf/i386-ieee1275.rmk: Likewise.
45875 * conf/i386-linuxbios.rmk: Likewise.
45876 * conf/i386-pc.rmk: Likewise.
45877 * conf/sparc64-ieee1275.rmk: Likewise.
45878 * conf/powerpc-ieee1275.rmk: Likewise.
45879 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45881 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45883 2008-02-01 Robert Millan <rmh@aybabtu.com>
45885 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45886 call at beginning of function.
45888 2008-01-31 Pavel Roskin <proski@gnu.org>
45890 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
45891 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45892 (grub_mkrescue_SOURCES): Likewise.
45893 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45895 2008-01-30 Robert Millan <rmh@aybabtu.com>
45897 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45898 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45899 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45900 (grub_probe_SOURCES): ... to here.
45902 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45903 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45904 * conf/i386-ieee1275.rmk: Likewise.
45905 * conf/i386-linuxbios.rmk: Likewise.
45906 * conf/powerpc-ieee1275.rmk: Likewise.
45908 2008-01-30 Tristan Gingold <gingold@free.fr>
45910 * kern/rescue.c: Silently accept empty lines.
45912 2008-01-29 Bean <bean123ch@gmail.com>
45914 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45915 (real_code_2): Code cleanup and change comment style.
45916 (move_memory): Avoid using 32-bit address mode.
45918 2008-01-29 Bean <bean123ch@gmail.com>
45920 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45921 (png_mod_SOURCES): New variable.
45922 (png_mod_CFLAGS): Likewise.
45923 (png_mod_LDFLAGS): Likewise.
45925 * video/readers/png.c: New file.
45927 2008-01-28 Robert Millan <rmh@aybabtu.com>
45929 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
45930 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
45931 `ifndef GRUB_MOD_GAP' hack.
45932 * util/elf/grub-mkimage.c (add_segments): Likewise.
45934 2008-01-27 Robert Millan <rmh@aybabtu.com>
45936 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
45937 `GRUB_MOD_GAP' for platforms in which it's not defined.
45938 * util/elf/grub-mkimage.c (add_segments): Likewise.
45940 2008-01-27 Robert Millan <rmh@aybabtu.com>
45942 Get grub-emu to build again (including parallel builds).
45944 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
45946 (util/grub-emu.c_DEPENDENCIES): ... this, ...
45947 (normal/execute.c_DEPENDENCIES): ... this, ...
45948 (grub-emu_DEPENDENCIES): ... and this.
45950 * conf/i386-efi.rmk: Likewise.
45951 * conf/i386-linuxbios.rmk: Likewise.
45952 * conf/i386-ieee1275.rmk: Likewise.
45953 * conf/powerpc-ieee1275.rmk: Likewise.
45954 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
45956 2008-01-27 Robert Millan <rmh@aybabtu.com>
45958 * NEWS: Add a few items.
45960 2008-01-27 Robert Millan <rmh@aybabtu.com>
45962 Fix parallel builds with grub-emu. Based on earlier commit for
45963 grub-probe and grub-setup.
45965 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45966 (util/grub-emu.c_DEPENDENCIES): ... this.
45967 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45968 (util/grub-emu.c_DEPENDENCIES): ... this.
45969 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45970 (util/grub-emu.c_DEPENDENCIES): ... this.
45971 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45972 (util/grub-emu.c_DEPENDENCIES): ... this.
45973 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45974 (util/grub-emu.c_DEPENDENCIES): ... this.
45976 2008-01-27 Pavel Roskin <proski@gnu.org>
45978 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
45979 to create a gap between _end and the modules added to the image
45980 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
45981 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
45982 * util/elf/grub-mkimage.c (add_segments): Likewise.
45984 2008-01-26 Pavel Roskin <proski@gnu.org>
45986 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
45987 just return an error.
45989 2008-01-26 Bean <bean123ch@gmail.com>
45991 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
45992 (grub_reiserfs_get_item): Save offset of the next item.
45993 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
45995 2008-01-25 Robert Millan <rmh@aybabtu.com>
45997 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
45998 make all filesystem sources appear together (possibly fixing omissions
46000 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46001 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46002 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46003 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46005 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46007 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46008 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46009 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46010 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46012 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46013 (probe): Add a sanity check to make sure of our ability to read
46014 requested files when probing for filesystem type.
46016 * genmk.rb: Update copyright year (2007).
46018 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46019 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46020 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46021 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46022 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46023 : Remove function prototypes.
46025 2008-01-25 Robert Millan <rmh@aybabtu.com>
46027 Revert my previous commits (based on wrong assumption of how grub_errno
46030 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46031 * kern/file.c (grub_file_open): Likewise.
46033 2008-01-24 Pavel Roskin <proski@gnu.org>
46035 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46036 that hang if GRUB tries to setup colors.
46037 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46038 colors for firmwares that don't support it.
46039 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46040 Recognize Open Hack'Ware, set flags to work around its
46043 2008-01-24 Robert Millan <rmh@aybabtu.com>
46045 * kern/file.c (grub_file_open): Do not account previous failures of
46046 unrelated functions when grub_errno is checked for.
46047 Reported by Oleg Strikov.
46049 2008-01-24 Bean <bean123ch@gmail.com>
46051 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46052 (grub_ufs_sblock): New member volume name.
46053 (grub_ufs_find_file): Fix string copy bug.
46054 (grub_ufs_label): Implement this function properly.
46056 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46057 (grub_hfs_iterate_records): Use the correct file number for extents
46058 and catalog file. Fix problem in next index calculation.
46059 (grub_hfs_find_node): Replace recursive function call with loop.
46060 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46062 2008-01-23 Robert Millan <rmh@aybabtu.com>
46064 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46065 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46066 (grub_multiboot2_real_boot): New function prototype.
46068 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46069 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46071 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46072 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46074 2008-01-23 Robert Millan <rmh@aybabtu.com>
46076 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46077 #ifdef'ed out grub_printf().
46079 2008-01-23 Robert Millan <rmh@aybabtu.com>
46081 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46082 grub_dprintf calls, since they make "debug=all" mode unusable.
46083 (grub_console_checkkey): Likewise.
46085 2008-01-23 Robert Millan <rmh@aybabtu.com>
46087 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46088 `term/i386/pc/at_keyboard.c'.
46089 (pkglib_MODULES): Add `serial.mod'.
46090 (serial_mod_SOURCES): New variable.
46091 (serial_mod_CFLAGS): Likewise.
46092 (serial_mod_LDFLAGS): Likewise.
46094 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46095 `<grub/powerpc/ieee1275/console.h>'.
46096 (grub_keyboard_controller_init): New function prototype.
46097 (grub_console_checkkey): Likewise.
46098 (grub_console_getkey): Likewise.
46100 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46103 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46104 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46106 2008-01-23 Robert Millan <rmh@aybabtu.com>
46108 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46109 present, "(memdisk)/boot/grub" becomes the default prefix.
46111 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46112 a memdisk tarball with all the modules. Add --overlay=DIR option that
46113 allows users to overlay additional files into the image.
46115 2008-01-23 Robert Millan <rmh@aybabtu.com>
46117 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46118 and `machine/memory.h'.
46119 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46120 (_multiboot_mod_SOURCES): New variable.
46121 (_multiboot_mod_CFLAGS): Likewise.
46122 (_multiboot_mod_LDFLAGS): Likewise.
46123 (multiboot_mod_SOURCES): Likewise.
46124 (multiboot_mod_CFLAGS): Likewise.
46125 (multiboot_mod_LDFLAGS): Likewise.
46127 * include/grub/i386/ieee1275/loader.h: New file.
46129 * include/grub/i386/ieee1275/machine.h: Likewise.
46131 * include/grub/i386/ieee1275/memory.h: Likewise.
46133 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46134 variable declaration.
46135 (grub_os_area_size): Likewise.
46137 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46138 (grub_lower_mem, grub_upper_mem): New variables.
46139 (grub_stop_floppy): New function (just to make
46140 grub_multiboot2_real_boot() happy).
46142 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46143 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46144 (grub_stop): New function.
46145 Include `"../realmode.S"' and `"../loader.S"'.
46147 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46148 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46150 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46151 rely on grub_multiboot2_real_boot() for final boot.
46153 2008-01-22 Robert Millan <rmh@aybabtu.com>
46155 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46156 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46157 device that doesn't look like an SD card.
46158 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46159 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46160 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46161 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46164 2008-01-22 Robert Millan <rmh@aybabtu.com>
46166 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46167 avoid claiming over our own code.
46169 2008-01-22 Bean <bean123ch@gmail.com>
46171 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46172 (jpeg_mod_SOURCES): New variable.
46173 (jpeg_mod_CFLAGS): Likewise.
46174 (jpeg_mod_LDFLAGS): Likewise.
46176 * video/readers/jpeg.c : New file.
46178 2008-01-22 Bean <bean123ch@gmail.com>
46180 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46181 there are no more items.
46183 2008-01-21 Robert Millan <rmh@aybabtu.com>
46185 * kern/mm.c (grub_mm_init_region): Improve debug message.
46187 2008-01-21 Robert Millan <rmh@aybabtu.com>
46189 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46190 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46192 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46194 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46195 Indicates start of upper memory.
46196 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46197 (generate_image): Abort when image size is big enough to corrupt
46200 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46201 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46202 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46203 instead of hardcoding 0xA0000.
46204 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46205 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46206 instead of hardcoding 0xA0000.
46208 2008-01-21 Robert Millan <rmh@aybabtu.com>
46210 * disk/memdisk.c (memdisk_size): New variable.
46211 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46213 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46214 image to dynamic memory.
46215 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46216 `memdisk_size'. Free memdisk block.
46218 2008-01-21 Robert Millan <rmh@aybabtu.com>
46220 Fix detection of very small filesystems (like tar).
46222 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46223 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46224 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46225 a problem with this disk).
46227 2008-01-21 Robert Millan <rmh@aybabtu.com>
46229 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46230 on grub_biosdisk_rw_standard() error.
46232 2008-01-21 Robert Millan <rmh@aybabtu.com>
46234 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46236 * kern/elf.c: Likewise.
46237 * kern/ieee1275/ieee1275.c: Likewise.
46238 * kern/powerpc/ieee1275/openfw.c: Likewise.
46239 * term/ieee1275/ofconsole.c: Likewise.
46241 2008-01-21 Robert Millan <rmh@aybabtu.com>
46243 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46245 * include/grub/kernel.h (grub_arch_memdisk_addr)
46246 (grub_arch_memdisk_size): Moved from here ...
46248 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46249 (grub_arch_memdisk_size): ... to here.
46251 2008-01-21 Robert Millan <rmh@aybabtu.com>
46253 Mostly based on bugfix from Bean.
46255 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46256 attribute with hook() parameter.
46257 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46259 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46260 attribute with hook() parameter.
46261 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46264 2008-01-21 Robert Millan <rmh@aybabtu.com>
46266 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46267 (pkglib_MODULES): Add `memdisk.mod'.
46268 (memdisk_mod_SOURCES): New variable.
46269 (memdisk_mod_CFLAGS): Likewise.
46270 (memdisk_mod_LDFLAGS): Likewise.
46272 * disk/memdisk.c: New file.
46274 * include/grub/disk.h (grub_disk_dev_id): Add
46275 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46277 * include/grub/i386/pc/kernel.h
46278 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46279 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46280 (grub_kernel_image_size): New variable declaration.
46281 (grub_total_module_size): Likewise.
46282 (grub_memdisk_image_size): Likewise.
46284 * include/grub/i386/pc/memory.h
46285 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46287 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46288 (grub_arch_memdisk_addr): New variable declaration.
46289 (grub_arch_memdisk_size): Likewise.
46291 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46292 (grub_arch_memdisk_size): Likewise.
46294 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46295 (codestart): Replace hardcoded `0x100000' with
46296 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46298 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46299 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46300 not NULL, append the contents of the file it refers to, at the end of
46301 the compressed kernel image. Initialize `grub_memdisk_image_size'
46302 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46303 (options): Add "memdisk"|'m' option.
46304 (main): Parse --memdisk|-m option, and pass user-provided path as
46305 parameter to generate_image().
46307 2008-01-20 Robert Millan <rmh@aybabtu.com>
46309 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46310 grub_dprintf() calls from here ...
46311 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46313 2008-01-20 Robert Millan <rmh@aybabtu.com>
46315 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46317 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46319 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46320 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46321 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46322 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46324 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46325 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46327 2008-01-19 Robert Millan <rmh@aybabtu.com>
46329 Get rid of confusing function (superseded by
46330 `grub_ieee1275_get_integer_property')
46331 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46333 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46335 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46336 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46337 in native endianness from grub_ieee1275_get_integer_property().
46339 2008-01-19 Robert Millan <rmh@aybabtu.com>
46341 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46342 command after "shut-down", since implementations differ on which
46343 the command for halt is.
46345 2008-01-19 Robert Millan <rmh@aybabtu.com>
46347 * include/grub/i386/linuxbios/console.h: Add header protection.
46348 (grub_keyboard_controller_init): New function prototype.
46349 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46350 (KEYBOARD_COMMAND_READ): Likewise.
46351 (KEYBOARD_COMMAND_WRITE): Likewise.
46352 (KEYBOARD_SCANCODE_SET1): Likewise.
46353 (grub_keyboard_controller_write): New function.
46354 (grub_keyboard_controller_read): Likewise.
46355 (grub_keyboard_controller_init): Likewise.
46357 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46358 (grub_console_init): On coreboot/LinuxBIOS, call
46359 grub_keyboard_controller_init().
46361 2008-01-19 Robert Millan <rmh@aybabtu.com>
46363 PowerPC changes provided by Pavel Roskin.
46365 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46366 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46367 don't rely on cmain() doing it.
46368 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46369 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46371 2008-01-16 Robert Millan <rmh@aybabtu.com>
46373 * include/grub/i386/linuxbios/memory.h
46374 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46375 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46376 receive `table_header' as argument. Instead, probe for it in the
46377 known memory ranges where it can be present.
46378 (grub_available_iterate): Do not pass a fixed `table_header' address
46379 to grub_linuxbios_table_iterate().
46381 2008-01-15 Robert Millan <rmh@aybabtu.com>
46383 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46384 * conf/i386-ieee1275.rmk: New file.
46385 * include/grub/i386/ieee1275/console.h: Likewise.
46386 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46387 * include/grub/i386/ieee1275/kernel.h: Likewise.
46388 * include/grub/i386/ieee1275/time.h: Likewise.
46389 * kern/i386/ieee1275/init.c: Likewise.
46390 * kern/i386/ieee1275/startup.S: Likewise.
46392 2008-01-15 Robert Millan <rmh@aybabtu.com>
46394 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46395 when pointers are 32-bit (but still do set it to one when they are
46398 2008-01-15 Robert Millan <rmh@aybabtu.com>
46400 * include/grub/ieee1275/ieee1275.h
46401 (grub_ieee1275_get_integer_property): New function prototype.
46403 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46404 (grub_ieee1275_get_integer_property): New function. Wraps around
46405 grub_ieee1275_get_property() to handle endianness.
46407 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46408 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46410 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46411 (grub_map): Likewise.
46412 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46414 2008-01-15 Bean <bean123ch@gmail.com>
46416 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46417 (grub_script_execute_cmdline): Reset grub_errno.
46419 * normal/main.c (read_config_file): Reset grub_errno.
46421 * normal/parse.y (script_init): New.
46422 (script): Move function and menuentry here.
46424 (command): Add delimiter at the end of command.
46425 (commands): Adjust to match the new command.
46426 (commandblock): Remove grub_script_lexer_record_start.
46427 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46428 (if): Use the new commands.
46430 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46432 2008-01-15 Robert Millan <rmh@aybabtu.com>
46434 * normal/menu.c (run_menu): Move timeout message from here ...
46435 (print_timeout): ... to here.
46436 (run_menu): Use print_timeout() once during initial draw to print
46437 the whole message, and again in every clock tick to update only
46438 the number of seconds.
46440 2008-01-15 Robert Millan <rmh@aybabtu.com>
46442 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46443 actual size of `available' from grub_ieee1275_get_property(), and
46444 restrict parsing to that bound.
46446 2008-01-15 Christian Franke <franke@computer.org>
46448 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46449 (argp_program_version): Remove variable.
46450 (argp_program_bug_address): Likewise.
46451 (options): Convert from struct argp_option to struct option.
46452 (struct arguments): Remove.
46453 (parse_opt): Remove.
46454 (usage): New function.
46455 (main): Replace struct args members by simple variables.
46456 Replace argp_parse() by getopt_long().
46457 Add switch to evaluate options.
46458 Add missing "(...)" around root_dev in prefix string.
46460 2008-01-14 Robert Millan <rmh@aybabtu.com>
46462 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46463 for grub_ieee1275_exit(), in order to improve portability.
46465 2008-01-14 Robert Millan <rmh@aybabtu.com>
46467 * util/grub.d/10_linux.in (prefix): Define.
46468 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46470 2008-01-13 Pavel Roskin <proski@gnu.org>
46472 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46473 grub_errno if no errors have been detected.
46475 2008-01-12 Robert Millan <rmh@aybabtu.com>
46477 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46478 (grub_util_get_dev_abstraction): New function prototype.
46480 * util/getroot.c: Include `<grub/util/getroot.h>'
46481 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46482 (grub_util_get_dev_abstraction): ... here (new function).
46484 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46485 `PRINT_ABSTRACTION'.
46486 (probe): Probe for abstraction type when requested.
46487 (main): Understand `--target=abstraction'.
46489 * util/i386/efi/grub-install.in: Add abstraction module to core
46490 image when it is found to be necessary.
46491 * util/i386/pc/grub-install.in: Likewise.
46492 * util/powerpc/ieee1275/grub-install.in: Likewise.
46494 * util/update-grub_lib.in (font_path): Return system path without
46495 converting to GRUB path.
46496 * util/update-grub.in: Convert system path returned by font_path()
46497 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46498 abstraction module is needed for loading fonts (if any). Export
46499 that as `GRUB_PRELOAD_MODULES'.
46500 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46503 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46505 Remove some unused code from reiserfs.
46507 * fs/reiserfs.c (struct grub_reiserfs_key)
46508 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46509 (struct grub_reiserfs_node_body): Removed.
46510 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46512 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46514 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46516 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46518 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46520 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46522 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46523 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46524 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46526 2008-01-10 Robert Millan <rmh@aybabtu.com>
46528 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46529 Determines if a file is garbage left by packaging systems, etc.
46530 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46531 for processing /etc/grub.d scripts.
46532 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46533 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46534 as a condition for processing Linux images.
46536 2008-01-10 Pavel Roskin <proski@gnu.org>
46538 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46539 to compile reiserfs.c on PowerPC.
46541 2008-01-10 Robert Millan <rmh@aybabtu.com>
46543 * kern/device.c (grub_device_iterate): Do not abort device iteration
46544 when one of the devices cannot be opened.
46545 * kern/disk.c (grub_disk_open): Do not account previous failures of
46546 unrelated functions when grub_errno is checked for.
46548 2008-01-08 Robert Millan <rmh@aybabtu.com>
46550 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46551 `! grub_linux_is_bzimage', change order of address comparison to make
46552 it more intuitive, and improve "too big zImage" error message.
46554 2008-01-08 Robert Millan <rmh@aybabtu.com>
46556 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46557 `$(update-grub_DATA)'.
46558 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46561 2008-01-07 Robert Millan <rmh@aybabtu.com>
46563 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46564 which instruction is modified by grub-setup during installation
46565 (since it wasn't obvious by only looking at this file).
46567 2008-01-07 Robert Millan <rmh@aybabtu.com>
46569 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46570 listing actual TODO items.
46572 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46574 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46576 (grub_reiserfs_get_key_offset): Likewise.
46577 (grub_reiserfs_set_key_offset): Likewise.
46578 (grub_reiserfs_set_key_type): Likewise.
46579 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46581 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46582 better to remove the bitfield version completely.
46584 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46586 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46587 allocated from the heap, due to the fshelp implementation.
46588 (grub_reiserfs_dir): Free NODE, due to the same reason.
46590 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46592 Mostly from Vincent Pelletier:
46594 * fs/reiserfs.c: New file.
46596 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46597 (reiserfs_mod_SOURCES): New variable.
46598 (reiserfs_mod_CFLAGS): Likewise.
46599 (reiserfs_mod_LDFLAGS): Likewise.
46601 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46602 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46603 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46606 2008-01-06 Robert Millan <rmh@aybabtu.com>
46608 * normal/color.c: Remove `<grub/env.h>'.
46610 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46612 * include/grub/normal.h: Include <grub/env.h>.
46614 2008-01-05 Robert Millan <rmh@aybabtu.com>
46616 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46617 usage example with `(hd0,1)'.
46618 Reported by Samuel Thibault.
46620 2008-01-05 Robert Millan <rmh@aybabtu.com>
46622 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46623 (grub_linux_boot_zimage): Rename to ...
46624 (grub_linux_boot): ... this.
46625 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46626 (grub_linux_boot_zimage): Conditionalize zImage copy.
46628 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46629 (grub_linux_boot_bzimage): Remove prototype.
46630 (grub_linux_boot_zimage): Rename to ...
46631 (grub_linux_boot): ... this.
46633 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46634 (grub_linux_boot): Remove function.
46636 2008-01-05 Robert Millan <rmh@aybabtu.com>
46638 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46639 (grub_env_write_color_highlight): Likewise.
46640 (grub_wait_after_message): Likewise.
46642 * normal/color.c: New file.
46644 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46645 (normal_mod_DEPENDENCIES): Likewise.
46647 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46648 (normal_mod_DEPENDENCIES): Likewise.
46650 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46651 (normal_mod_DEPENDENCIES): Likewise.
46653 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46654 (normal_mod_DEPENDENCIES): Likewise.
46656 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46657 for waiting after a message is printed.
46658 * normal/main.c (read_config_file): Likewise.
46659 (grub_normal_init): Register grub_env_write_color_normal() and
46660 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46661 `color_highlight' variables as global.
46663 * normal/menu.c (grub_wait_after_message): New function.
46664 (grub_color_menu_normal): New variable. Replaces ...
46665 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46666 (grub_color_menu_highlight): New variable. Replaces ...
46667 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46668 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46669 `GRUB_TERM_COLOR_STANDARD'.
46670 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46671 `normal_code' and `highlight_code' to `old_color_normal' and
46672 `old_color_highlight', respectively.
46673 (grub_menu_init_page): Update colors when drawing the menu, based on
46674 `menu_color_normal' and `menu_color_highlight' variables.
46675 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46676 a message is printed.
46678 2008-01-05 Robert Millan <rmh@aybabtu.com>
46680 * kern/env.c (grub_env_context_open): Propagate hooks for global
46681 variables to new context.
46683 * kern/main.c (grub_set_root_dev): Export `root' variable.
46685 2008-01-05 Robert Millan <rmh@aybabtu.com>
46687 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46688 discs unconditionally, since udev and others have options to provide
46691 2008-01-05 Robert Millan <rmh@aybabtu.com>
46693 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46695 2008-01-04 Christian Franke <franke@computer.org>
46697 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46700 2008-01-03 Pavel Roskin <proski@gnu.org>
46702 * kern/i386/linuxbios/init.c: Put "void" to all function
46703 declarations with no arguments.
46704 * kern/powerpc/ieee1275/init.c: Likewise.
46705 * term/i386/pc/at_keyboard.c: Likewise.
46706 * term/i386/pc/vga_text.c: Likewise.
46707 * util/grub-mkdevicemap.c: Likewise.
46709 2008-01-02 Robert Millan <rmh@aybabtu.com>
46711 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46712 message when loaded image is out of bounds.
46713 (grub_multiboot_load_elf64): Likewise.
46715 2008-01-02 Pavel Roskin <proski@gnu.org>
46717 * util/grub.d/10_linux.in: Try version without ".old" when
46718 looking for initrd. It's better to use initrd from the newer
46719 kernel of the same version than no initrd at all.
46721 2008-01-01 Robert Millan <rmh@aybabtu.com>
46723 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46725 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46727 * include/grub/video.h: Added grub_video_unmap_color and
46728 grub_video_get_active_render_target.
46729 (grub_video_adapter): Added unmap_color and get_active_render_target.
46731 * video/video.c: Added grub_video_unmap_color and
46732 grub_video_get_active_render_target.
46733 (grub_video_get_info): Changed method to accept NULL pointer as an
46734 argument to allow detection of active video adapter.
46736 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46737 grub_video_vbe_unmap_color_int.
46738 Added grub_video_vbe_unmap_color and
46739 grub_video_vbe_get_active_render_target.
46740 (grub_video_vbe_adapter): Added unmap_color and
46741 get_active_render_target.
46743 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46744 with grub_video_vbe_unmap_color_int.
46746 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46747 (DEFAULT_NORMAL_COLOR): Likewise.
46748 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46749 (DEFAULT_FG_COLOR): Removed.
46750 (DEFAULT_BG_COLOR): Likewise.
46751 (DEFAULT_CURSOR_COLOR): Changed value.
46752 (grub_virtual_screen): Added standard_color_setting,
46753 normal_color_setting, highlight_color_setting and term_color.
46754 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46755 (bitmap_width): Added.
46756 (bitmap_height): Likewise.
46757 (bitmap): Likewise.
46758 (set_term_color): Likewise.
46759 (grub_virtual_screen_setup): Changed to use new terminal coloring
46761 (grub_gfxterm_init): Added init for bitmap.
46762 (grub_gfxterm_fini): Added destroy for bitmap.
46763 (redraw_screen_rect): Updated to use background bitmap and new
46765 (scroll_up): Added optimization for case when there is no bitmap.
46766 (grub_gfxterm_cls): Fixed to use correct background color.
46767 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46769 (grub_virtual_screen_setcolor): Likewise.
46770 (grub_virtual_screen_getcolor): Added.
46771 (grub_gfxterm_background_image_cmd): Likewise.
46772 (grub_video_term): Added setcolor and getcolor.
46773 (MOD_INIT): Added registration of background_image command.
46774 (MOD_TERM): Added unregistration for background_image command.
46776 2007-12-30 Pavel Roskin <proski@gnu.org>
46778 * loader/multiboot_loader.c: Fix multiboot command
46779 unregistration. Fix all typos in the word "multiboot".
46781 2007-12-29 Pavel Roskin <proski@gnu.org>
46783 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46784 support for initrd names used in Fedora.
46786 2007-12-26 Bean <bean123ch@gmail.com>
46788 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46789 (cpio_mod_SOURCES): New variable.
46790 (cpio_mod_CFLAGS): Likewise.
46791 (cpio_mod_LDFLAGS): Likewise.
46793 * fs/cpio.c: New file.
46795 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46797 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46799 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46801 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46803 2007-12-25 Robert Millan <rmh@aybabtu.com>
46805 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46806 (grub_getcolor): New function.
46808 * kern/term.c (grub_getcolor): New function.
46809 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46810 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46811 (print_entry): Set normal and highlight colors to
46812 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46813 respectively, before printing and restore them to old
46815 (grub_menu_init_page): Likewise. Fill an additional colored space
46816 that would otherwise be left blank.
46818 * term/efi/console.c (grub_console_getcolor): New function.
46819 (struct grub_console_term.getcolor): New variable.
46820 * term/i386/pc/console.c (grub_console_getcolor): New function.
46821 (struct grub_console_term.getcolor): New variable.
46822 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46823 (struct grub_console_term.getcolor): New variable.
46825 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46826 (struct grub_console_term.setcolor): Remove variable.
46827 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46828 (struct grub_console_term.setcolor): Remove variable.
46829 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46830 (struct grub_console_term.setcolor): Remove variable.
46831 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46832 (struct grub_console_term.setcolor): Remove variable.
46834 2007-12-25 Robert Millan <rmh@aybabtu.com>
46836 * configure.ac: Search for possible unifont.hex locations, and
46837 define UNIFONT_HEX if found.
46839 * Makefile.in (UNIFONT_HEX): Define variable.
46840 (DATA): Rename to ...
46841 (PKGLIB): ... this. Update all users.
46842 (PKGDATA): New variable.
46843 (pkgdata_IMAGES): Rename to ...
46844 (pkglib_IMAGES): ... this. Update all users.
46845 (pkgdata_MODULES): Rename to ...
46846 (pkglib_MODULES): ... this. Update all users.
46847 (pkgdata_PROGRAMS): Rename to ...
46848 (pkglib_PROGRAMS): ... this. Update all users.
46849 (pkgdata_DATA): Rename to ...
46850 (pkglib_DATA): ... this. Update all users.
46851 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46852 (unicode.pff, ascii.pff): New rules.
46853 (all-local): Add `$(PKGDATA)' dependency.
46854 (install-local): Process `$(PKGDATA)'.
46856 * util/update-grub_lib.in (font_path): Search for *.pff files in
46857 a few more locations, including `${pkgdata}'.
46859 2007-12-23 Robert Millan <rmh@aybabtu.com>
46861 Patch from Bean <bean123ch@gmail.com>:
46862 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46865 2007-12-21 Bean <bean123ch@gmail.com>
46867 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46868 (ntfscomp_mod_SOURCES): New variable.
46869 (ntfscomp_mod_CFLAGS): Likewise.
46870 (ntfscomp_mod_LDFLAGS): Likewise.
46872 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46873 (grub_probe_SOURCES): Likewise.
46874 (grub_emu_SOURCES): Likewise.
46876 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46877 (grub_emu_SOURCES): Likewise.
46879 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46880 (grub_emu_SOURCES): Likewise.
46882 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46883 (grub_emu_SOURCES): Likewise.
46885 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46886 (read_run_list): Renamed to grub_ntfs_read_run_list.
46887 (decomp_nextvcn): Moved to ntfscomp.c.
46888 (decomp_getch): Likewise.
46889 (decomp_get16): Likewise.
46890 (decomp_block): Likewise.
46891 (read_block): Likewise.
46892 (read_data): Partially moved to ntfscomp.c.
46893 (fixup): Change unsigned to grub_uint16_t.
46894 (read_mft): Change unsigned long to grub_uint32_t.
46895 (read_attr): Likewise.
46896 (read_data): Likewise.
46897 (read_run_data): Likewise.
46898 (read_run_list): Likewise.
46899 (read_mft): Likewise.
46901 * fs/ntfscomp.c: New file.
46903 * include/grub/ntfs.h: New file.
46905 2007-12-16 Robert Millan <rmh@aybabtu.com>
46907 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46908 IDE disk check, since Linux is known to support 20 IDE disks.
46909 Reported by Colin Watson.
46911 2007-12-15 Bean <bean123ch@gmail.com>
46913 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46914 (lnxboot_img_SOURCES): New variable.
46915 (lnxboot_img_ASFLAGS): Likewise.
46916 (lnxboot_img_LDFLAGS): Likewise.
46918 * boot/i386/pc/lnxboot.S: New file.
46920 2007-11-24 Pavel Roskin <proski@gnu.org>
46922 * configure.ac: Test if '--build-id=none' is supported by the
46923 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46924 objcopy to generate incorrect binary files (binutils
46925 2.17.50.0.18-1 as shipped by Fedora 8).
46926 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
46927 linking, so that build ID doesn't break the test.
46929 2007-11-24 Pavel Roskin <proski@gnu.org>
46931 * include/grub/i386/time.h: use "void" in the argument list
46932 of grub_cpu_idle().
46933 * include/grub/powerpc/time.h: Likewise.
46934 * include/grub/sparc64/time.h: Likewise.
46936 2007-11-18 Christian Franke <franke@computer.org>
46938 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
46939 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
46940 This fixes the problem that function keys did not work in grub-emu.
46942 2007-11-18 Christian Franke <franke@computer.org>
46944 * disk/host.c (grub_host_open): Remove attribute unused from
46945 name parameter. Add check for "host". This fixes the problem
46946 that grub-emu does not find partitions.
46948 2007-11-18 Christian Franke <franke@computer.org>
46950 * util/hostfs.c (is_dir): New function.
46951 (grub_hostfs_dir): Handle missing dirent.d_type case.
46952 (grub_hostfs_read): Add missing fseek().
46953 (grub_hostfs_label): Clear label pointer. This fixes a crash
46954 of grub-emu on "ls (host)".
46956 2007-11-18 Christian Franke <franke@computer.org>
46958 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
46959 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
46960 to 64 bit boundary by default.
46962 2007-11-18 Bean <bean123ch@gmail.com>
46964 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
46965 (hexdump_mod_SOURCES): New variable.
46966 (hexdump_mod_CFLAGS): Likewise.
46967 (hexdump_mod_LDFLAGS): Likewise.
46969 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46971 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46973 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46975 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46977 * include/grub/hexdump.h: New file.
46979 * commands/hexdump.c: New file.
46981 2007-11-10 Robert Millan <rmh@aybabtu.com>
46983 * commands/i386/pc/play.c (beep_off): Switch order of arguments
46984 in grub_outb() calls.
46985 (beep_on): Likewise.
46987 2007-11-10 Christian Franke <franke@computer.org>
46989 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
46990 (grub_menu_run): Likewise.
46992 2007-11-10 Robert Millan <rmh@aybabtu.com>
46994 * include/grub/i386/efi/machine.h: New file.
46995 * include/grub/i386/linuxbios/machine.h: Likewise.
46996 * include/grub/i386/pc/machine.h: Likewise.
46997 * include/grub/powerpc/ieee1275/machine.h: Likewise.
46998 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47000 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47001 (serial_hw_io_addr): New variable.
47002 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47003 instead of `(unsigned short *) 0x400'.
47005 2007-11-10 Bean <bean123ch@gmail.com>
47007 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47009 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47011 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47012 (vga_mod_SOURCES): Added.
47013 (vga_mod_CFLAGS): Likewise.
47014 (vga_mod_LDFLAGS): Likewise.
47016 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47018 (set_map_mask): Likewise.
47019 (set_read_map): Likewise.
47020 (set_read_address): Likewise.
47021 (vga_font): Removed variable.
47022 (get_vga_glyph): Removed function.
47023 (invalidate_char): Likewise.
47024 (write_char): Changed to use grub_font_get_glyph() for font
47026 (grub_vga_putchar): Likewise.
47027 (grub_vga_getcharwidth): Likewise.
47029 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47031 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47033 (pxeboot_img_LDFLAGS): Likewise.
47034 (diskboot_img_LDFLAGS): Likewise.
47035 (kernel_img_LDFLAGS): Likewise.
47037 2007-11-06 Robert Millan <rmh@aybabtu.com>
47039 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47040 in grub_outb() calls.
47041 (serial_hw_init): Likewise.
47043 2007-11-05 Robert Millan <rmh@aybabtu.com>
47045 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47046 spaces. Skip non-regular files.
47048 2007-11-05 Robert Millan <rmh@aybabtu.com>
47050 * kern/disk.c (grub_disk_firmware_fini)
47051 (grub_disk_firmware_is_tainted): New variables.
47053 * include/grub/disk.h (grub_disk_firmware_fini)
47054 (grub_disk_firmware_is_tainted): Likewise.
47056 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47057 (grub_disk_biosdisk_fini): ... to here.
47058 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47059 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47060 is set. Register grub_disk_biosdisk_fini() in
47061 `grub_disk_firmware_fini'.
47063 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47064 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47065 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47066 to finish existing firmware disk interface.
47068 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47069 (ata_mod_SOURCES): New variable.
47070 (ata_mod_CFLAGS): Likewise.
47071 (ata_mod_LDFLAGS): Likewise.
47073 2007-11-05 Robert Millan <rmh@aybabtu.com>
47075 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47076 (grub_ata_wait): Reimplement using grub_millisleep().
47078 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47079 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47081 2007-11-03 Marco Gerards <marco@gnu.org>
47083 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47084 (CRTC_ADDR_PORT): New macro.
47085 (CRTC_DATA_PORT): Likewise.
47086 (CRTC_CURSOR): Likewise.
47087 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47088 (CRTC_CURSOR_ADDR_LOW): Likewise.
47089 (update_cursor): New function.
47090 (grub_console_real_putchar): Call `update_cursor'.
47091 (grub_console_gotoxy): Likewise.
47092 (grub_console_cls): Set the default color when clearing the
47094 (grub_console_setcursor): Implemented.
47096 2007-11-03 Marco Gerards <marco@gnu.org>
47098 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47100 (grub_ata_pio_write): Likewise.
47102 (grub_atapi_identify): Wait after issuing an ATA command.
47103 (grub_atapi_packet): Likewise.
47104 (grub_ata_identify): Likewise.
47105 (grub_ata_readwrite): Likewise.
47107 2007-11-03 Marco Gerards <marco@gnu.org>
47109 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47110 (grub_ata_pio_write): Likewise.
47111 (grub_ata_readwrite): Use `grub_error', instead of
47112 returning `grub_errno'.
47114 2007-11-03 Marco Gerards <marco@gnu.org>
47116 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47117 grub_ata_pio_write once for every single sector, instead of for
47120 2007-10-31 Robert Millan <rmh@aybabtu.com>
47122 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47124 * conf/i386-linuxbios.rmk: New file.
47126 * kern/i386/pc/hardware.c: Likewise.
47127 * term/i386/pc/at_keyboard.c: Likewise.
47128 * term/i386/pc/vga_text.c: Likewise.
47130 * include/grub/i386/linuxbios/boot.h: Likewise.
47131 * include/grub/i386/linuxbios/console.h: Likewise.
47132 * include/grub/i386/linuxbios/init.h: Likewise.
47133 * include/grub/i386/linuxbios/kernel.h: Likewise.
47134 * include/grub/i386/linuxbios/loader.h: Likewise.
47135 * include/grub/i386/linuxbios/memory.h: Likewise.
47136 * include/grub/i386/linuxbios/serial.h: Likewise.
47137 * include/grub/i386/linuxbios/time.h: Likewise.
47139 * kern/i386/linuxbios/init.c: Likewise.
47140 * kern/i386/linuxbios/startup.S: Likewise.
47141 * kern/i386/linuxbios/table.c: Likewise.
47143 2007-10-31 Marco Gerards <marco@gnu.org>
47145 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47146 (ata_mod_SOURCES): New variable.
47147 (ata_mod_CFLAGS): Likewise.
47148 (ata_mod_LDFLAGS): Likewise.
47150 * disk/ata.c: New file.
47152 * include/grub/disk.h (grub_disk_dev_id): Add
47153 `GRUB_DISK_DEV_ATA_ID'.
47155 2007-10-31 Robert Millan <rmh@aybabtu.com>
47157 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47158 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47160 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47161 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47163 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47166 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47168 2007-10-27 Robert Millan <rmh@aybabtu.com>
47170 * include/grub/types.h (ULONG_MAX): Define macro.
47172 2007-10-22 Robert Millan <rmh@aybabtu.com>
47174 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47176 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47178 2007-10-22 Robert Millan <rmh@aybabtu.com>
47180 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47181 (pkgdata_MODULES): Add `biosdisk.mod'.
47182 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47185 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47186 (grub_biosdisk_init): Replace with ...
47187 (GRUB_MOD_INIT(biosdisk)): ... this.
47188 (grub_biosdisk_fini): Replace with ...
47189 (GRUB_MOD_FINI(biosdisk)): ... this.
47191 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47192 (grub_machine_init): Remove call to grub_biosdisk_init().
47193 (grub_machine_fini): Remove call to grub_machine_fini().
47195 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47197 2007-10-22 Robert Millan <rmh@aybabtu.com>
47199 * include/grub/time.h: New file.
47200 * include/grub/i386/time.h: Likewise.
47201 * include/grub/powerpc/time.h: Likewise.
47202 * include/grub/sparc64/time.h: Likewise.
47204 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47206 (KERNEL_MACHINE_TIME_HEADER): ... this.
47207 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47209 (KERNEL_MACHINE_TIME_HEADER): ... this.
47210 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47212 (KERNEL_MACHINE_TIME_HEADER): ... this.
47214 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47215 (grub_millisleep): New function.
47216 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47217 (grub_millisleep): New function.
47218 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47219 Remove `grub/machine/time.h' include.
47220 (grub_millisleep): New function.
47221 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47222 Remove `grub/machine/time.h' include.
47223 (grub_millisleep): New function.
47225 * include/grub/misc.h (grub_div_roundup): New function.
47227 * kern/misc.c: Include `<grub/time.h>'.
47228 (grub_millisleep_generic): New function.
47230 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47232 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47234 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47235 `machine/time.h'. Add `time.h'.
47236 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47238 2007-10-21 Robert Millan <rmh@aybabtu.com>
47240 * include/grub/misc.h (grub_max): New function.
47242 2007-10-21 Robert Millan <rmh@aybabtu.com>
47244 * util/misc.c (grub_util_info): Call fflush() before returning.
47246 2007-10-20 Robert Millan <rmh@aybabtu.com>
47248 * genmk.rb (Image): Copy `extra_flags' from here ...
47249 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47251 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47252 to `argc' and `args' arguments.
47254 2007-10-17 Robert Millan <rmh@aybabtu.com>
47256 * kern/i386/loader.S: New file.
47258 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47259 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47260 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47261 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47262 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47263 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47264 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47265 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47266 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47267 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47268 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47269 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47270 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47271 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47273 * kern/i386/realmode.S: New file.
47275 * kern/i386/pc/startup.S (protstack): Moved from here ...
47276 * kern/i386/realmode.S (protstack)... to here.
47277 * kern/i386/pc/startup.S (gdt): Moved from here ...
47278 * kern/i386/realmode.S (gdt)... to here.
47279 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47280 * kern/i386/realmode.S (prot_to_real)... to here.
47282 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47283 `kern/i386/realmode.S'.
47285 2007-10-17 Robert Millan <rmh@aybabtu.com>
47287 * include/grub/i386/loader.h: New file.
47289 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47290 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47291 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47292 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47293 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47294 * include/grub/i386/loader.h (grub_linux_prot_size)
47295 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47296 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47297 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47298 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47300 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47302 2007-10-15 Robert Millan <rmh@aybabtu.com>
47304 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47305 filesystem when dev->disk is unset.
47306 Do probe for filesystem even when dev->disk->has_partitions is set.
47307 In case a filesystem is found, always report it.
47308 In case it isn't, if dev->disk->has_partitions is set, report that
47309 a partition table was found instead of reporting that no filesystem
47310 could be identified.
47312 2007-10-12 Robert Millan <rmh@aybabtu.com>
47314 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47315 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47317 * include/grub/types.h (grub_host_to_target16): New macro.
47318 (grub_host_to_target32): Likewise.
47319 (grub_host_to_target64): Likewise.
47320 (grub_target_to_host16): Likewise.
47321 (grub_target_to_host32): Likewise.
47322 (grub_target_to_host64): Likewise.
47324 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47325 Renamed from to ...
47326 (GRUB_MOD_ALIGN): ...this. Update all users.
47328 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47329 grub_host_to_target32.
47330 Replace grub_be_to_cpu32 with grub_target_to_host32.
47331 (load_modules): Likewise.
47332 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47333 Replace grub_be_to_cpu32 with grub_target_to_host32.
47334 Replace grub_cpu_to_be16 with grub_host_to_target16.
47335 Replace grub_cpu_to_be32 grub_host_to_target32.
47337 2007-10-12 Robert Millan <rmh@aybabtu.com>
47339 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47340 * util/elf/grub-mkimage.c: ... here.
47342 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47343 `util/powerpc/ieee1275/grub-mkimage.c'.
47345 2007-10-07 Robert Millan <rmh@aybabtu.com>
47347 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47348 and make it easier to figure out.
47349 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47350 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47351 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47352 leave us with less than HEAP_MIN_SIZE total heap.
47353 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47355 2007-10-03 Robert Millan <rmh@aybabtu.com>
47357 * include/grub/i386/io.h: New file.
47358 * commands/i386/pc/play.c (inb): Removed.
47360 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47362 * term/i386/pc/serial.c (inb): Removed.
47364 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47366 * term/i386/pc/vga.c (inb): Removed.
47368 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47371 2007-10-02 Robert Millan <rmh@aybabtu.com>
47373 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47374 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47375 Reported by Marcin Kurek.
47377 2007-09-07 Robert Millan <rmh@aybabtu.com>
47379 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47380 SmartFirmware version updates (as released by Sven Luther), and avoid
47381 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47382 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47385 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47387 From Hitoshi Ozeki:
47388 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47389 when merging two regions.
47391 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47393 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47394 * normal/completion.c (grub_normal_do_completion): Likewise.
47395 Reported by Hitoshi Ozeki.
47397 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47399 Do not use devices at boot in chainloading.
47401 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47402 (boot_part_addr): Likewise.
47403 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47404 with BOOT_DRIVE and BOOT_PART_ADDR.
47405 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47406 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47408 2007-08-29 Robert Millan <rmh@aybabtu.com>
47410 Patch from Simon Peter <dn.tlp@gmx.net>:
47411 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47412 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47413 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47414 util/i386/pc/grub-setup.c_DEPENDENCIES.
47415 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47416 util/grub-probe.c_DEPENDENCIES.
47417 * conf/powerpc-ieee1275.rmk: Likewise.
47419 2007-08-28 Robert Millan <rmh@aybabtu.com>
47421 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47422 to tell grub-mkdevicemap how to name devices.
47423 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47426 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47427 util/i386/get_disk_name.c.
47428 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47429 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47430 util/ieee1275/get_disk_name.c.
47432 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47434 * DISTLIST: Add util/i386/get_disk_name.c and
47435 util/ieee1275/get_disk_name.c.
47437 * util/grub-mkdevicemap.c: Replace device naming logic with
47438 grub_util_get_disk_name() calls.
47440 2007-08-20 Robert Millan <rmh@aybabtu.com>
47442 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47443 (so that it works for both plural and singular quantities).
47445 2007-08-05 Robert Millan <rmh@aybabtu.com>
47447 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47448 so that [xz] isn't taken into account when determining order.
47450 2007-08-02 Marco Gerards <marco@gnu.org>
47452 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47453 `include/multiboot2.h', `include/grub/elfload.h',
47454 `include/multiboot.h', `include/grub/multiboot.h',
47455 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47456 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47457 `kern/elf.c', `loader/multiboot_loader.c',
47458 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47459 `loader/i386/pc/multiboot2.c',
47460 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47461 `util/i386/pc/grub-mkrescue.in'. Remove
47462 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47463 `include/grub/i386/pc/util/biosdisk.h' and
47464 `include/grub/powerpc/ieee1275/multiboot.h'.
47466 2007-08-02 Bean <bean123ch@gmail.com>
47468 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47469 (ntfs_mod_SOURCES): New variable.
47470 (ntfs_mod_CFLAGS): Likewise.
47471 (ntfs_mod_LDFLAGS): Likewise.
47473 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47474 (grub_probe_SOURCES): Likewise.
47475 (grub_emu_SOURCES): Likewise.
47477 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47478 (grub_emu_SOURCES): Likewise.
47480 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47481 (grub_emu_SOURCES): Likewise.
47483 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47485 * fs/ntfs.c: New file.
47487 2007-08-02 Bean <bean123ch@gmail.com>
47489 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47491 * file.h (grub_file): Likewise.
47493 * fshelp.h (grub_fshelp_read_file): Likewise.
47495 * util/i386/pc/grub-setup.c (setup): Likewise.
47496 (save_first_sector): Likewise.
47497 (save_blocklists): Likewise.
47499 * fs/affs.c (grub_affs_read_file): Likewise.
47501 * fs/ext2.c (grub_ext2_read_file): Likewise.
47503 * fs/fat.c (grub_fat_read_data): Likewise.
47505 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47507 * fs/hfs.c (grub_hfs_read_file): Likewise.
47509 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47511 * fs/jfs.c (grub_jfs_read_file): Likewise.
47513 * fs/minix.c (grub_minix_read_file): Likewise.
47515 * fs/sfs.c (grub_sfs_read_file): Likewise.
47517 * fs/ufs.c (grub_ufs_read_file): Likewise.
47519 * fs/xfs.c (grub_xfs_read_file): Likewise.
47521 * command/blocklist.c (read_blocklist): Likewise.
47522 (print_blocklist): Likewise.
47524 2007-08-02 Marco Gerards <marco@gnu.org>
47526 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47529 * disk/host.c: New file.
47531 * util/hostfs.c: Likewise.
47533 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47534 return `GRUB_ERR_BAD_FS'.
47535 * fs/sfs.c (grub_sfs_mount): Likewise.
47536 * fs/xfs.c (grub_xfs_mount): Likewise.
47538 * include/grub/disk.h (enum grub_disk_dev_id): Add
47539 `GRUB_DISK_DEVICE_HOST_ID'.
47541 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47543 2007-07-24 Jerone Young <jerone@gmail.com>
47545 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47546 modules for compilation.
47547 * conf/powerpc-ieee1275.rmk: Likewise.
47549 * include/multiboot.h: Move multiboot definitions to one file. Rename
47550 many definitions to not get grub specific.
47551 * include/multiboot2.h: Create header with multiboot 2 definitions.
47552 * include/grub/multiboot.h: Header for grub specific function
47553 prototypes and definitions.
47554 * include/grub/multiboot2.h: Likewise.
47555 * include/grub/multiboot_loader.h: Likewise.
47556 * include/grub/i386/pc/multiboot.h: Removed.
47557 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47559 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47560 and 2 to allow for one multiboot and module commands.
47561 * loader/multiboot2.c: Add multiboot2 functionality.
47562 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47563 and definition names.
47564 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47566 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47567 ieee1275 specific multiboot2 code.
47569 * kern/i386/pc/startup.S: Change headers and definition names for
47570 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47572 2007-07-22 Robert Millan <rmh@aybabtu.com>
47574 * geninitheader.sh: Process file specified in first parameter rather
47575 than hardcoding grub_modules_init.lst.
47576 * geninit.sh: Likewise. Also, construct header name dynamically rather
47577 than hardcoding grub_modules_init.h.
47579 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47580 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47581 grub_probe_init.[ch] and grub_setup_init.[ch].
47583 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47584 grub_modules_init.h with grub_emu_init.h.
47585 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47586 grub_probe_init.[ch] files.
47587 * conf/i386-efi.rmk: Likewise.
47588 * conf/i386-pc.rmk: Likewise.
47589 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47590 grub_setup_init.[ch] files.
47592 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47593 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47594 to initialize modules rather than a list of hardcoded functions.
47595 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47596 grub_init_all() to initialize modules rather than a list of hardcoded
47599 2007-07-22 Robert Millan <rmh@aybabtu.com>
47601 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47602 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47604 2007-07-22 Robert Millan <rmh@aybabtu.com>
47606 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47607 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47608 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47609 flag when running on SmartFirmware.
47610 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47611 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47614 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47615 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47616 rather than decreasing it.
47618 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47619 there's not enough space to do it, fail in the same way as when it
47620 can't be done because there are no partitions.
47622 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47623 when nvsetenv failed.
47625 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47627 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47628 because this rule is automatically generated.
47629 (grub-mkrescue): Removed for the same reason as above.
47631 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47633 Migrate to GNU General Public License Version 3.
47635 * COPYING: Replaced with the plain text version of GPLv3.
47637 * config.guess: Updated from gnulib.
47638 * config.sub: Likewise.
47640 * geninit.sh: Output a GPLv3 copyright notice.
47641 * geninitheader.sh: Likewise.
47642 * genmodsrc.sh: Likewise.
47643 * gensymlist.sh.in: Likewise.
47645 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47646 * boot/i386/pc/diskboot.S: Likewise.
47647 * boot/i386/pc/pxeboot.S: Likewise.
47648 * commands/blocklist.c: Likewise.
47649 * commands/boot.c: Likewise.
47650 * commands/cat.c: Likewise.
47651 * commands/cmp.c: Likewise.
47652 * commands/configfile.c: Likewise.
47653 * commands/echo.c: Likewise.
47654 * commands/help.c: Likewise.
47655 * commands/ls.c: Likewise.
47656 * commands/search.c: Likewise.
47657 * commands/terminal.c: Likewise.
47658 * commands/test.c: Likewise.
47659 * commands/videotest.c: Likewise.
47660 * commands/i386/cpuid.c: Likewise.
47661 * commands/i386/pc/halt.c: Likewise.
47662 * commands/i386/pc/play.c: Likewise.
47663 * commands/i386/pc/reboot.c: Likewise.
47664 * commands/i386/pc/vbeinfo.c: Likewise.
47665 * commands/i386/pc/vbetest.c: Likewise.
47666 * commands/ieee1275/halt.c: Likewise.
47667 * commands/ieee1275/reboot.c: Likewise.
47668 * commands/ieee1275/suspend.c: Likewise.
47669 * disk/loopback.c: Likewise.
47670 * disk/lvm.c: Likewise.
47671 * disk/raid.c: Likewise.
47672 * disk/efi/efidisk.c: Likewise.
47673 * disk/i386/pc/biosdisk.c: Likewise.
47674 * disk/ieee1275/ofdisk.c: Likewise.
47675 * font/manager.c: Likewise.
47676 * fs/affs.c: Likewise.
47677 * fs/ext2.c: Likewise.
47678 * fs/fat.c: Likewise.
47679 * fs/fshelp.c: Likewise.
47680 * fs/hfs.c: Likewise.
47681 * fs/hfsplus.c: Likewise.
47682 * fs/iso9660.c: Likewise.
47683 * fs/jfs.c: Likewise.
47684 * fs/minix.c: Likewise.
47685 * fs/sfs.c: Likewise.
47686 * fs/ufs.c: Likewise.
47687 * fs/xfs.c: Likewise.
47688 * hello/hello.c: Likewise.
47689 * include/grub/acorn_filecore.h: Likewise.
47690 * include/grub/arg.h: Likewise.
47691 * include/grub/bitmap.h: Likewise.
47692 * include/grub/boot.h: Likewise.
47693 * include/grub/cache.h: Likewise.
47694 * include/grub/device.h: Likewise.
47695 * include/grub/disk.h: Likewise.
47696 * include/grub/dl.h: Likewise.
47697 * include/grub/elfload.h: Likewise.
47698 * include/grub/env.h: Likewise.
47699 * include/grub/err.h: Likewise.
47700 * include/grub/file.h: Likewise.
47701 * include/grub/font.h: Likewise.
47702 * include/grub/fs.h: Likewise.
47703 * include/grub/fshelp.h: Likewise.
47704 * include/grub/gzio.h: Likewise.
47705 * include/grub/hfs.h: Likewise.
47706 * include/grub/kernel.h: Likewise.
47707 * include/grub/loader.h: Likewise.
47708 * include/grub/lvm.h: Likewise.
47709 * include/grub/misc.h: Likewise.
47710 * include/grub/mm.h: Likewise.
47711 * include/grub/net.h: Likewise.
47712 * include/grub/normal.h: Likewise.
47713 * include/grub/parser.h: Likewise.
47714 * include/grub/partition.h: Likewise.
47715 * include/grub/pc_partition.h: Likewise.
47716 * include/grub/raid.h: Likewise.
47717 * include/grub/rescue.h: Likewise.
47718 * include/grub/script.h: Likewise.
47719 * include/grub/setjmp.h: Likewise.
47720 * include/grub/symbol.h: Likewise.
47721 * include/grub/term.h: Likewise.
47722 * include/grub/terminfo.h: Likewise.
47723 * include/grub/tparm.h: Likewise.
47724 * include/grub/types.h: Likewise.
47725 * include/grub/video.h: Likewise.
47726 * include/grub/efi/api.h: Likewise.
47727 * include/grub/efi/chainloader.h: Likewise.
47728 * include/grub/efi/console.h: Likewise.
47729 * include/grub/efi/console_control.h: Likewise.
47730 * include/grub/efi/disk.h: Likewise.
47731 * include/grub/efi/efi.h: Likewise.
47732 * include/grub/efi/pe32.h: Likewise.
47733 * include/grub/efi/time.h: Likewise.
47734 * include/grub/i386/linux.h: Likewise.
47735 * include/grub/i386/setjmp.h: Likewise.
47736 * include/grub/i386/types.h: Likewise.
47737 * include/grub/i386/efi/kernel.h: Likewise.
47738 * include/grub/i386/efi/loader.h: Likewise.
47739 * include/grub/i386/efi/time.h: Likewise.
47740 * include/grub/i386/pc/biosdisk.h: Likewise.
47741 * include/grub/i386/pc/boot.h: Likewise.
47742 * include/grub/i386/pc/chainloader.h: Likewise.
47743 * include/grub/i386/pc/console.h: Likewise.
47744 * include/grub/i386/pc/init.h: Likewise.
47745 * include/grub/i386/pc/kernel.h: Likewise.
47746 * include/grub/i386/pc/loader.h: Likewise.
47747 * include/grub/i386/pc/memory.h: Likewise.
47748 * include/grub/i386/pc/multiboot.h: Likewise.
47749 * include/grub/i386/pc/serial.h: Likewise.
47750 * include/grub/i386/pc/time.h: Likewise.
47751 * include/grub/i386/pc/vbe.h: Likewise.
47752 * include/grub/i386/pc/vbeblit.h: Likewise.
47753 * include/grub/i386/pc/vbefill.h: Likewise.
47754 * include/grub/i386/pc/vbeutil.h: Likewise.
47755 * include/grub/i386/pc/vga.h: Likewise.
47756 * include/grub/ieee1275/ieee1275.h: Likewise.
47757 * include/grub/ieee1275/ofdisk.h: Likewise.
47758 * include/grub/powerpc/libgcc.h: Likewise.
47759 * include/grub/powerpc/setjmp.h: Likewise.
47760 * include/grub/powerpc/types.h: Likewise.
47761 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47762 * include/grub/powerpc/ieee1275/console.h: Likewise.
47763 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47764 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47765 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47766 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47767 * include/grub/powerpc/ieee1275/time.h: Likewise.
47768 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47769 * include/grub/sparc64/libgcc.h: Likewise.
47770 * include/grub/sparc64/setjmp.h: Likewise.
47771 * include/grub/sparc64/types.h: Likewise.
47772 * include/grub/sparc64/ieee1275/console.h: Likewise.
47773 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47774 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47775 * include/grub/sparc64/ieee1275/time.h: Likewise.
47776 * include/grub/util/biosdisk.h: Likewise.
47777 * include/grub/util/getroot.h: Likewise.
47778 * include/grub/util/lvm.h: Likewise.
47779 * include/grub/util/misc.h: Likewise.
47780 * include/grub/util/raid.h: Likewise.
47781 * include/grub/util/resolve.h: Likewise.
47782 * io/gzio.c: Likewise.
47783 * kern/device.c: Likewise.
47784 * kern/disk.c: Likewise.
47785 * kern/dl.c: Likewise.
47786 * kern/elf.c: Likewise.
47787 * kern/env.c: Likewise.
47788 * kern/err.c: Likewise.
47789 * kern/file.c: Likewise.
47790 * kern/fs.c: Likewise.
47791 * kern/loader.c: Likewise.
47792 * kern/main.c: Likewise.
47793 * kern/misc.c: Likewise.
47794 * kern/mm.c: Likewise.
47795 * kern/parser.c: Likewise.
47796 * kern/partition.c: Likewise.
47797 * kern/rescue.c: Likewise.
47798 * kern/term.c: Likewise.
47799 * kern/efi/efi.c: Likewise.
47800 * kern/efi/init.c: Likewise.
47801 * kern/efi/mm.c: Likewise.
47802 * kern/i386/dl.c: Likewise.
47803 * kern/i386/efi/init.c: Likewise.
47804 * kern/i386/efi/startup.S: Likewise.
47805 * kern/i386/pc/init.c: Likewise.
47806 * kern/i386/pc/lzo1x.S: Likewise.
47807 * kern/i386/pc/startup.S: Likewise.
47808 * kern/ieee1275/ieee1275.c: Likewise.
47809 * kern/powerpc/cache.S: Likewise.
47810 * kern/powerpc/dl.c: Likewise.
47811 * kern/powerpc/ieee1275/cmain.c: Likewise.
47812 * kern/powerpc/ieee1275/crt0.S: Likewise.
47813 * kern/powerpc/ieee1275/init.c: Likewise.
47814 * kern/powerpc/ieee1275/openfw.c: Likewise.
47815 * kern/sparc64/cache.S: Likewise.
47816 * kern/sparc64/dl.c: Likewise.
47817 * kern/sparc64/ieee1275/init.c: Likewise.
47818 * kern/sparc64/ieee1275/openfw.c: Likewise.
47819 * loader/efi/chainloader.c: Likewise.
47820 * loader/efi/chainloader_normal.c: Likewise.
47821 * loader/i386/efi/linux.c: Likewise.
47822 * loader/i386/efi/linux_normal.c: Likewise.
47823 * loader/i386/pc/chainloader.c: Likewise.
47824 * loader/i386/pc/chainloader_normal.c: Likewise.
47825 * loader/i386/pc/linux.c: Likewise.
47826 * loader/i386/pc/linux_normal.c: Likewise.
47827 * loader/i386/pc/multiboot.c: Likewise.
47828 * loader/i386/pc/multiboot_normal.c: Likewise.
47829 * loader/powerpc/ieee1275/linux.c: Likewise.
47830 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47831 * normal/arg.c: Likewise.
47832 * normal/cmdline.c: Likewise.
47833 * normal/command.c: Likewise.
47834 * normal/completion.c: Likewise.
47835 * normal/execute.c: Likewise.
47836 * normal/function.c: Likewise.
47837 * normal/lexer.c: Likewise.
47838 * normal/main.c: Likewise.
47839 * normal/menu.c: Likewise.
47840 * normal/menu_entry.c: Likewise.
47841 * normal/misc.c: Likewise.
47842 * normal/parser.y: Likewise.
47843 * normal/script.c: Likewise.
47844 * normal/i386/setjmp.S: Likewise.
47845 * normal/powerpc/setjmp.S: Likewise.
47846 * normal/sparc64/setjmp.S: Likewise.
47847 * partmap/acorn.c: Likewise.
47848 * partmap/amiga.c: Likewise.
47849 * partmap/apple.c: Likewise.
47850 * partmap/gpt.c: Likewise.
47851 * partmap/pc.c: Likewise.
47852 * partmap/sun.c: Likewise.
47853 * term/gfxterm.c: Likewise.
47854 * term/terminfo.c: Likewise.
47855 * term/efi/console.c: Likewise.
47856 * term/i386/pc/console.c: Likewise.
47857 * term/i386/pc/serial.c: Likewise.
47858 * term/i386/pc/vesafb.c: Likewise.
47859 * term/i386/pc/vga.c: Likewise.
47860 * term/ieee1275/ofconsole.c: Likewise.
47861 * util/biosdisk.c: Likewise.
47862 * util/console.c: Likewise.
47863 * util/genmoddep.c: Likewise.
47864 * util/getroot.c: Likewise.
47865 * util/grub-emu.c: Likewise.
47866 * util/grub-mkdevicemap.c: Likewise.
47867 * util/grub-probe.c: Likewise.
47868 * util/lvm.c: Likewise.
47869 * util/misc.c: Likewise.
47870 * util/raid.c: Likewise.
47871 * util/resolve.c: Likewise.
47872 * util/update-grub.in: Likewise.
47873 * util/update-grub_lib.in: Likewise.
47874 * util/grub.d/00_header.in: Likewise.
47875 * util/grub.d/10_hurd.in: Likewise.
47876 * util/grub.d/10_linux.in: Likewise.
47877 * util/i386/efi/grub-install.in: Likewise.
47878 * util/i386/efi/grub-mkimage.c: Likewise.
47879 * util/i386/pc/grub-install.in: Likewise.
47880 * util/i386/pc/grub-mkimage.c: Likewise.
47881 * util/i386/pc/grub-mkrescue.in: Likewise.
47882 * util/i386/pc/grub-setup.c: Likewise.
47883 * util/i386/pc/misc.c: Likewise.
47884 * util/powerpc/ieee1275/grub-install.in: Likewise.
47885 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47886 * util/powerpc/ieee1275/misc.c: Likewise.
47887 * video/bitmap.c: Likewise.
47888 * video/video.c: Likewise.
47889 * video/i386/pc/vbe.c: Likewise.
47890 * video/i386/pc/vbeblit.c: Likewise.
47891 * video/i386/pc/vbefill.c: Likewise.
47892 * video/i386/pc/vbeutil.c: Likewise.
47893 * video/readers/tga.c: Likewise.
47895 2007-07-02 Robert Millan <rmh@aybabtu.com>
47897 * conf/i386-efi.rmk: Replace obsolete reference to
47898 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47899 with util/getroot.c.
47900 * conf/powerpc-ieee1275.rmk: Likewise.
47901 * conf/sparc64-ieee1275.rmk: Likewise.
47903 * util/grub-emu.c (main): Fix unchecked pointer handling.
47905 2007-07-02 Robert Millan <rmh@aybabtu.com>
47907 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47908 invocation to fail, in order to support partition-less media.
47910 * util/i386/pc/grub-install.in: Likewise.
47912 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47913 which fs or partmap modules are needed (akin to its sister scripts).
47915 Also use grub-probe to get rid of unportable /proc/mounts check.
47917 Print the same informational message that the other scripts do, before
47920 2007-06-23 Robert Millan <rmh@aybabtu.com>
47922 * util/update-grub_lib.in (font_path): New function. Determine whether
47923 a font file can be found and, if so, echo the GRUB path to it.
47925 * util/update-grub.in: Handle multiple terminals depending on user
47926 input, platform availability and font file presence. Propagate
47927 variables of our findings to /etc/grub.d/ children.
47929 * util/grub.d/00_header.in: Handle multiple terminals, based on
47930 environment setup by update-grub.
47932 2007-06-23 Robert Millan <rmh@aybabtu.com>
47934 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
47936 2007-06-21 Robert Millan <rmh@aybabtu.com>
47938 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
47939 indicate end of data section in kernel image.
47940 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
47941 GRUB_KERNEL_MACHINE_DATA_END.
47943 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
47945 * kern/i386/efi/startup.S: Likewise.
47947 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
47948 during image generation. Implement --prefix option to override this
47950 * util/i386/efi/grub-mkimage.c: Likewise.
47952 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
47953 code to make path relative to its root into a separate function.
47955 * util/i386/pc/grub-install.in: Use newly provided
47956 make_system_path_relative_to_its_root() to convert ${grubdir}, then
47957 pass the result to grub-install --prefix.
47959 2007-06-13 Robert Millan <rmh@aybabtu.com>
47961 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
47962 DEFAULT_DEVICE_MAP.
47963 * util/grub-emu.c: Use above definitions from misc.h instead of
47965 * util/grub-mkdevicemap.c: Likewise.
47966 * util/i386/pc/grub-setup.c: Likewise.
47967 * util/grub-probe.c: Likewise.
47968 (probe): Abort with grub_util_error() when either
47969 grub_guess_root_device or grub_util_get_grub_dev fails.
47971 2007-06-12 Robert Millan <rmh@aybabtu.com>
47973 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
47974 "pager" assignment.
47975 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
47977 * util/grub-probe.c (probe): Likewise for "drive_name".
47979 2007-06-11 Robert Millan <rmh@aybabtu.com>
47981 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
47982 not just the cdrom one.
47984 2007-06-11 Robert Millan <rmh@aybabtu.com>
47986 * util/i386/pc/grub-mkrescue.in: Add "set -e".
47987 Add --pkglibdir=DIR option to override pkglibdir.
47988 Mention --image-type=TYPE in help output.
47989 Fix --grub-mkimage (it was a no-op).
47990 Abort gracefully when no parameter is given.
47992 2007-06-11 Robert Millan <rmh@aybabtu.com>
47994 * util/i386/pc/grub-mkrescue.in: New file.
47995 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
47996 * Makefile.in: Handle bin_SCRIPTS.
47998 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48000 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48001 list of video modes.
48003 2007-06-06 Robert Millan <rmh@aybabtu.com>
48005 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48006 file doesn't exist, or if it is in a filesystem grub can't read.
48008 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48009 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48010 header comment to fit in 80 columns when the variables are resolved.
48012 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48013 could be identified by update-grub. Remove redundant check for
48014 unifont.pff existence (since convert_system_path_to_grub_path now
48017 2007-06-04 Robert Millan <rmh@aybabtu.com>
48019 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48021 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48023 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48025 2007-06-04 Robert Millan <rmh@aybabtu.com>
48027 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48029 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48030 grub_apple_partition_map_fini.
48033 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48034 to access >2 TiB disks).
48036 Print disk->total_sectors with %llu instead of %lu, since this
48037 variable is always 64-bit (prevents wrong disk size from being displayed
48038 on either >2 TiB disk or big-endian CPU).
48040 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48041 into a generic case that supports all (sane) partition maps.
48043 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48046 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48047 and grub_apple_partition_map_fini() after that.
48049 2007-06-01 Robert Millan <rmh@aybabtu.com>
48051 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48053 * util/grub.d/00_header.in: Only enable gfxterm when
48054 convert_system_path_to_grub_path() succeeds.
48056 2007-05-20 Robert Millan <rmh@aybabtu.com>
48058 * util/update-grub_lib.in: New file.
48059 * DISTLIST: Add update-grub_lib.in.
48060 * conf/common.rmk: Generate update-grub_lib and install it in
48062 * Makefile.in: Add install routine for $(lib_DATA).
48064 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48065 function provided by update-grub_lib to support arbitrary paths of
48067 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48068 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48070 2007-05-19 Robert Millan <rmh@aybabtu.com>
48072 * commands/i386/cpuid.c: New module.
48073 * DISTLIST: Add it.
48074 * conf/i386-efi.rmk: Enable cpuid.mod.
48075 * conf/i386-pc.rmk: Likewise.
48077 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48079 * kern/disk.c (grub_disk_read): Check return value of
48082 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48084 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48086 * disk/raid.c (grub_raid_open): Likewise.
48088 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48090 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48091 stack instead of on the heap.
48093 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48094 before doing a read on it.
48096 * configure.ac: Only use -fno-stack-protector for the target
48099 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48101 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48102 __attribute_ ((unused)) to mode_type argument.
48104 * util/getroot.c (grub_guess_root_device): Fix #endif.
48106 * kern/misc.c (memcmp): Fix prototype.
48108 * include/grub/partition.h [GRUB_UTIL]
48109 (grub_gpt_partition_map_init): Add prototype.
48110 (grub_gpt_partition_map_fini): Likewise.
48112 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48113 at the right place.
48115 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48116 (grub_fat_read_data): Likewise.
48117 (grub_fat_find_dir): Likewise.
48119 * font/manager.c (find_glyph): Make table a const.
48120 (grub_font_get_glyph): Remove bitmap from if statement.
48122 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48124 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48125 code, first search for device in /dev/mapper, then in /dev.
48126 (grub_util_get_grub_dev): New function.
48127 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48129 * util/grub-probe.c (probe): Remove check for RAID, call
48130 grub_util_get_grub_dev() instead of
48131 grub_util_biosdisk_get_grub_dev().
48132 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48133 grub_util_biosdisk_get_grub_dev().
48134 * util/i386/pc/grub-setup.c (main): Likewise.
48136 2007-05-16 Robert Millan <rmh@aybabtu.com>
48138 * DISTLIST: Update for the latest changes.
48139 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48140 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48141 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48142 grub/util/biosdisk.h.
48143 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48144 grub/util/biosdisk.h.
48146 2007-05-16 Robert Millan <rmh@aybabtu.com>
48148 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48150 2007-05-16 Robert Millan <rmh@aybabtu.com>
48152 * util/i386/efi/grub-install.in: New.
48153 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48154 newly added grub-install.
48155 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48157 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48158 grub/util/biosdisk.h.
48159 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48160 grub/util/biosdisk.h.
48162 2007-05-16 Robert Millan <rmh@aybabtu.com>
48164 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48165 * include/grub/util/biosdisk.h: ... here.
48166 * util/i386/pc/biosdisk.c: Moved to ...
48167 * util/biosdisk.c: ... here.
48168 * util/i386/pc/getroot.c: Moved to ...
48169 * util/getroot.c: ... here.
48170 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48171 * util/grub-mkdevicemap.c: ... here.
48172 * util/i386/pc/grub-probe.c: Moved to ...
48173 * util/grub-probe.c: ... here.
48175 2007-05-15 Robert Millan <rmh@aybabtu.com>
48177 * util/update-grub.in: Remove duplicated line in grub.cfg header
48180 2007-05-13 Robert Millan <rmh@aybabtu.com>
48182 * util/update-grub.in: Fix a few assumptions about the devices holding
48183 /, /boot and /boot/grub being the same.
48184 * util/grub.d/00_header.in: Likewise.
48185 * util/grub.d/10_hurd.in: Likewise.
48186 * util/grub.d/10_linux.in: Likewise.
48188 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48189 patterns. Use that to define the `.old' suffix as older than `'.
48191 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48193 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48194 the grub.cfg header message.
48196 2007-05-11 Robert Millan <rmh@aybabtu.com>
48198 * util/update-grub.in: Create device.map if it doesn't already exist,
48199 before attempting to run grub-probe.
48200 Check for grub-probe and grub-mkdevicemap with the same code
48201 grub-install is using.
48204 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48206 * Makefile.in: Add the datarootdir autoconf variable.
48208 2007-05-09 Robert Millan <rmh@aybabtu.com>
48210 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48211 fail gracefully if dev->disk->partition == NULL.
48213 2007-05-07 Robert Millan <rmh@aybabtu.com>
48215 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48216 determine partition map module.
48217 * util/i386/pc/grub-install.in: Use this feature to decide which
48218 partition module to load, instead of hardcoding pc and gpt.
48220 2007-05-07 Robert Millan <rmh@aybabtu.com>
48222 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48223 source directory differs from build directory.
48225 2007-05-05 Robert Millan <rmh@aybabtu.com>
48227 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48230 2007-05-05 Robert Millan <rmh@aybabtu.com>
48232 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48234 2007-05-05 Robert Millan <rmh@aybabtu.com>
48236 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48237 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48239 2007-05-05 Robert Millan <rmh@aybabtu.com>
48241 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48242 (grub_probe_SOURCES): Likewise.
48243 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48244 GPT and initialize dos_part and bsd_part accordingly.
48245 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48247 (main): Activate gpt module for use during partition identification,
48248 and deactivate it afterwards.
48249 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48250 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48251 partition identification, and deactivate it afterwards.
48253 2007-05-05 Robert Millan <rmh@aybabtu.com>
48255 * term/i386/pc/console.c (grub_console_fini): Call
48256 grub_term_set_current() before grub_term_unregister().
48258 2007-05-04 Robert Millan <rmh@aybabtu.com>
48260 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48261 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48262 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48263 and update-grub_DATA.
48264 * conf/common.rmk: Build and install update-grub components.
48265 * conf/common.mk: Regenerate.
48266 * util/update-grub.in: New. Core of update-grub.
48267 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48268 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48269 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48270 * util/grub.d/README: New. Document grub.d directory layout.
48272 2007-05-01 Robert Millan <rmh@aybabtu.com>
48274 * util/grub-emu.c: Move initialization functions
48275 grub_util_biosdisk_init() and grub_init_all() before
48276 grub_util_biosdisk_get_grub_dev(), which relies on them.
48278 2007-04-19 Robert Millan <rmh@aybabtu.com>
48280 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48283 2007-04-18 Jerone Young <jerone@gmail.com>
48285 * kernel/elf.c: Add missing parenthesis for conditional statement
48288 2007-04-10 Jerone Young <jerone@gmail.com>
48290 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48291 continue on and look for device node with real device name.
48293 2007-04-10 Jerone Young <jerone@gmail.com>
48295 * configure.ac: Add argument for autoconf to use transformation
48297 * Makefile.in: Add autoconf package transformation code.
48298 * util/i386/pc/grub-install.in: Likewise.
48299 * util/powerpc/ieee1275/grub-install.in: Likewise.
48301 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48303 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48304 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48305 (EXT2_REVISION): Likewise.
48306 (EXT2_INODE_SIZE): Likewise.
48307 (struct grub_ext2_block_group): Added a missing member
48309 (grub_ext2_read_inode): Divide by the inode size in a superblock
48310 instead of 128 to obtain INODES_PER_BLOCK.
48311 Use the macro EXT2_INODE_SIZE instead of directly using
48312 SBLOCK->INODE_SIZE.
48314 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48316 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48317 superblock instead of the structure size to compute an
48318 offset. This fixes the problem that GRUB could not read a
48319 filesystem when inode size is different from 128-byte.
48321 2007-03-05 Marco Gerards <marco@gnu.org>
48323 * normal/main.c (read_config_file): When "menu" is not set, create
48324 an initial context.
48326 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48328 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48329 (HEAP_LIMIT): New macro.
48330 (grub_claim_heap): Claim memory up to `heaplimit'.
48332 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48334 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48335 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48336 (_start): Likewise.
48337 (grub_arch_modules_addr): Return address after `_end'.
48338 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48339 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48340 (add_segments): Calculate `_end' from phdr size and location.
48341 (ALIGN_UP): Moved to ...
48342 * include/grub/misc.h: here.
48343 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48345 (GRUB_IEEE1275_MODULE_BASE): Removed.
48347 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48349 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48352 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48354 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48356 (grub_elf64_load_hook_t): Likewise.
48357 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48360 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48362 * kern/mm.c: Update copyright.
48363 (grub_mm_debug): Correct syntax error.
48364 (grub_mm_dump_free): New function.
48365 (grub_debug_free): Call `grub_free'.
48366 * include/grub/mm.h: Update copyright.
48367 (grub_mm_dump_free): Add declaration.
48369 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48371 * include/grub/ieee1275/ieee1275.h: Update copyright.
48372 * kern/powerpc/ieee1275/init.c: Likewise.
48373 * kern/powerpc/ieee1275/openfw.c: Likewise.
48375 * loader/powerpc/ieee1275/linux.c: Likewise.
48376 * include/grub/elfload.h: Likewise.
48377 * kern/elf.c: Likewise.
48378 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48380 (grub_elf64_load): Likewise.
48381 (grub_elf32_load_segment): Move to a nested function.
48382 (grub_elf64_load_segment): Likewise.
48384 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48386 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48388 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48389 (grub_heap_len): Likewise.
48390 (HEAP_SIZE): New macro.
48391 (grub_claim_heap): New function.
48392 (grub_machine_init): Don't claim heap directly. Call
48394 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48395 (grub_available_iterate): New function.
48397 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48399 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48400 * configure.ac: Use it for testing the HOST and TARGET compilers.
48402 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48404 * Makefile.in (enable_grub_emu): New variable.
48405 * configure.ac (--enable-grub-emu): New option.
48406 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48407 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48408 * conf/i386-pc.rmk: Likewise.
48409 * conf/powerpc-ieee1275.rmk: Likewise.
48410 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48412 2006-12-12 Marco Gerards <marco@gnu.org>
48414 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48416 * kern/env.c (grub_env_unset): Don't free the member `value' when
48417 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48420 * normal/main.c (current_menu): Removed.
48421 (free_menu): Unset the `menu' environment variable.
48422 (grub_normal_menu_addentry): Make use of the environment variable
48423 `menu', instead of using the global `current_menu'. Allocate
48424 memory for the sourcecode of this entry.
48425 (read_config_file): New argument `nested', changed all callers.
48426 Only in the case of a new context, initialize a new menu. Set the
48427 `menu' environment variable.
48428 (grub_normal_execute): Don't set and unset the environment
48429 variable `menu' here anymore. Only free the menu when leaving the
48432 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48435 2006-12-11 Marco Gerards <marco@gnu.org>
48437 * normal/menu_entry.c (run): Fix off by one bug so the last line
48438 is executed. Move the loader check to outside the loop.
48440 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48442 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48444 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48446 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48447 the number of sectors. Reported by Andrey Shuvikov
48448 <mr_hyro@yahoo.com>.
48450 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48452 * kern/disk.c (grub_disk_read): When there is a read error, always
48453 try to read only the necessary data.
48455 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48457 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48459 [GRUB_UTIL] (grub_raid_fini): Likewise.
48460 [GRUB_UTIL] (grub_lvm_init): Likewise.
48461 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48462 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48463 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48464 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48465 and grub_raid_fini().
48467 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48469 * include/grub/types.h (__unused): Rename to UNUSED.
48470 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48471 (grub_elf64_size): Likewise.
48473 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48475 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48476 grub_error_push and grub_error_pop in the error-handling path.
48477 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48480 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48482 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48483 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48484 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48485 (kernel_elf_SOURCES): Likewise.
48486 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48487 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48488 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48489 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48490 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48491 (elf_mod_SOURCES): New variable.
48492 (elf_mod_CFLAGS): Likewise.
48493 (elf_mod_LDFLAGS): Likewise.
48494 * include/grub/types.h (__unused): New macro.
48495 * include/grub/elfload.h: New file.
48496 * kern/elf.c: Likewise.
48497 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48498 (ELF32_LOADMASK): New macro.
48499 (ELF64_LOADMASK): Likewise.
48500 (vmlinux): Removed.
48501 (grub_linux_load32): New function.
48502 (grub_linux_load64): Likewise.
48503 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48504 Use grub_elf_t instead of grub_file_t.
48506 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48508 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48509 `catch_result' to struct set_color_args.
48511 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48513 * normal/menu.c: Include grub/script.h.
48514 * normal/menu_entry.c: Likewise.
48515 * include/grub/normal.h: Do not include grub/script.h.
48517 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48519 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48521 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48523 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48525 (grub_disk_close): Print debug messages when closing a disk.
48526 (grub_disk_read): Print debug messages when disk read fails.
48527 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48529 * kern/partition.c: Include misc.h.
48530 (grub_partition_iterate): Print debug messages when detecting
48533 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48535 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48537 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48539 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48541 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48542 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48544 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48546 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48547 instead of sizeof(lv). Patch by Michael Guntsche.
48549 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48551 * disk/lvm.c: Rename VGS to VG_LIST.
48552 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48553 (grub_lvm_open): Likewise.
48554 Thanks to Michael Guntsche for finding this bug.
48556 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48558 * configure.ac (AC_INIT): Bumped to 1.95.
48560 2006-10-14 Robert Millan <rmh@aybabtu.com>
48562 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48563 with "/dev/.static/dev/md".
48565 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48567 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48568 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48569 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48570 DRIVE_NAME are always freed.
48572 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48573 DOS_PART, as a DOS partition is counted from one instead of zero
48574 now. Reported by Robert Millan.
48576 2006-10-14 Robert Millan <rmh@aybabtu.com>
48578 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48579 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48580 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48581 string returned by grub_guess_root_device.
48582 * util/i386/pc/grub-setup.c: Likewise.
48583 * util/i386/pc/grub-probefs.c: Likewise.
48585 * util/i386/pc/grub-probefs.c: Rename to ...
48586 * util/i386/pc/grub-probe.c: ... this.
48587 * DISTLIST: Remove grub-probefs, add grub-probe.
48588 * conf/i386-efi.rmk: Likewise.
48589 * conf/i386-pc.rmk: Likewise.
48590 * util/i386/pc/grub-install.in: Likewise.
48592 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48593 choose which information we want to print.
48595 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48597 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48598 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48599 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48600 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48601 video/readers/tga.c and video/i386/pc/vbeutil.c.
48603 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48605 Added support for RAID and LVM.
48607 * disk/lvm.c: New file.
48608 * disk/raid.c: Likewise.
48609 * include/grub/lvm.h: Likewise.
48610 * include/grub/raid.h: Likewise.
48611 * include/grub/util/lvm.h: Likewise.
48612 * include/grub/util/raid.h: Likewise.
48613 * util/lvm.c: Likewise.
48614 * util/raid.c: Likewise.
48616 * include/grub/disk.h (grub_disk_dev_id): Add
48617 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48618 (grub_disk_get_size): New prototype.
48619 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48620 returns a partition.
48621 (grub_disk_get_size): New function.
48623 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48624 verbatim if grub_install_dos_part is -2.
48626 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48629 * util/i386/pc/grub-setup.c (setup): New argument
48630 MUST_EMBED. Force embedding of GRUB when the argument is
48631 true. Close FILE before returning.
48632 (main): Add support for RAID and LVM.
48634 * conf/common.rmk: Add RAID and LVM modules.
48635 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48637 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48639 * kern/misc.c (grub_strstr): New function.
48640 * include/grub/misc.h (grub_strstr): New prototype.
48642 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48644 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48646 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48648 * kern/misc.c (grub_strtoull): Guess the base only if not
48651 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48653 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48656 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48658 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48660 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48661 Remove `flags' argument. All callers changed.
48662 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48663 (IEEE1275_IHANDLE_INVALID): New variable.
48664 (IEEE1275_CELL_INVALID): New variable.
48665 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48666 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48667 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48668 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48669 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48670 codes from Open Firmware. All callers updated.
48671 (grub_ieee1275_next_property): Directly return Open Firmware return
48673 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48674 Standardize error checking from `grub_ieee1275_get_property'.
48675 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48676 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48678 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48680 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48681 `instance_to_package_args' to `instance_to_path_args'.
48683 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48684 `grub_ieee1275_chosen'.
48686 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48687 `grub_ieee1275_interpret'.
48689 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48691 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48693 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48695 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48696 (__cmpdi): Likewise.
48698 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48699 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48702 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48704 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48705 to type `grub_ssize_t'.
48706 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48708 2006-09-22 Marco Gerards <marco@gnu.org>
48710 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48713 2006-09-22 Marco Gerards <marco@gnu.org>
48715 * commands/echo.c: New file.
48717 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48719 * conf/common.rmk (echo_mod_SOURCES): New variable.
48720 (echo_mod_CFLAGS): Likewise.
48721 (echo_mod_LDFLAGS): Likewise.
48723 2006-09-22 Marco Gerards <marco@gnu.org>
48725 * normal/main.c (get_line): Malloc memory instead of using
48726 preallocated memory. Removed the arguments `cmdline' and
48727 `max_len'. Updated all callers.
48729 2006-09-22 Marco Gerards <marco@gnu.org>
48731 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48732 (normal_mod_DEPENDENCIES): Likewise.
48734 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48735 (normal_mod_DEPENDENCIES): Likewise.
48737 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48739 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48741 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48743 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48744 (normal_mod_DEPENDENCIES): Likewise.
48745 * conf/i386-pc.mk: Regenerate.
48746 * conf/i386-efi.mk: Likewise
48747 * conf/common.mk: Likewise.
48748 * conf/powerpc-ieee1275.mk: Likewise.
48749 * conf/sparc64-ieee1275.mk: Likewise.
48751 2006-09-22 Robert Millan <rmh@aybabtu.com>
48753 Sync with i386 version.
48754 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48755 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48757 2006-09-21 Robert Millan <rmh@aybabtu.com>
48759 Import from GRUB Legacy (lib/device.c):
48760 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48761 (init_device_map) [__linux__]: Add support for I2O devices.
48763 2006-09-14 Marco Gerards <marco@gnu.org>
48765 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48768 2006-09-14 Robert Millan <rmh@aybabtu.com>
48770 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48773 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48775 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48776 before adding it to device.map.
48778 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48780 * genmk.rb: Let GCC generate dependencies the first time it
48781 compiles a file; using the -MD option.
48782 * conf/common.mk: Regenerate.
48783 * conf/i386-pc.mk: Likewise.
48784 * conf/i386-efi.mk: Likewise.
48785 * conf/powerpc-ieee1275.mk: Likewise.
48786 * conf/sparc64-ieee1275.mk: Likewise.
48788 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48790 Move the prototypes of grub_setjmp and grub_longjmp to
48791 cpu/setjmp.h, so that each architecture may specify different
48794 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48795 (grub_longjmp): Likewise.
48796 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48797 (grub_longjmp): Likewise.
48798 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48799 (grub_longjmp): Likewise.
48801 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48802 [!GRUB_UTIL] (grub_longjmp): Removed.
48804 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48806 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48807 "color!" method does not return any value.
48809 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48811 * include/grub/bitmap.h: New file.
48813 * include/grub/i386/pc/vbeutil.h: Likewise.
48815 * video/bitmap.c: Likewise.
48817 * video/readers/tga.c: Likewise.
48819 * video/i386/pc/vbeutil.c: Likewise.
48821 * commands/videotest.c: Code cleanup and updated to reflect to new
48824 * term/gfxterm.c: Likewise.
48826 * video/video.c: Likewise.
48828 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48829 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48830 (bitmap_mod_SOURCES): New entry.
48831 (bitmap_mod_CFLAGS): Likewise.
48832 (bitmap_mod_LDFLAGS): Likewise.
48833 (tga_mod_SOURCES): Likewise.
48834 (tga_mod_CFLAGS): Likewise.
48835 (tga_mod_LDFLAGS): Likewise.
48837 * include/grub/video.h (grub_video_blit_operators): New enum type.
48838 (grub_video_render_target): Changed as forward declaration and moved
48839 actual definition to be video driver specific.
48840 (grub_video_adapter.blit_bitmap): Added blitting operator.
48841 (grub_video_adapter.blit_render_target): Likewise.
48842 (grub_video_blit_bitmap): Likewise.
48843 (grub_video_blit_render_target): Likewise.
48845 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48846 driver specific render target definition.
48847 (grub_video_vbe_map_rgba): Added driver internal helper.
48848 (grub_video_vbe_unmap_color): Updated to use
48849 grub_video_i386_vbeblit_info.
48850 (grub_video_vbe_get_video_ptr): Likewise.
48852 * include/grub/i386/pc/vbeblit.h
48853 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48854 grub_video_i386_vbeblit_info.
48855 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48856 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48857 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48858 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48859 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48860 (grub_video_i386_vbeblit_index_index): Likewise.
48861 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48862 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48863 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48864 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48866 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48869 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48870 include/grub/i386/pc/vbeblit.h.
48872 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48873 Updated to use grub_video_i386_vbeblit_info.
48874 (grub_video_i386_vbefill_R8G8B8): Likewise.
48875 (grub_video_i386_vbefill_index): Likewise.
48876 (grub_video_i386_vbefill): Added generic filler.
48878 * video/i386/pc/vbefill.c: Updated to reflect changes on
48879 include/grub/i386/pc/vbefill.h.
48881 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48882 grub_video_i386_vbeblit_info.
48883 (grub_video_vbe_unmap_color): Likewise.
48884 (grub_video_vbe_blit_glyph): Likewise.
48885 (grub_video_vbe_scroll): Likewise.
48886 (grub_video_vbe_draw_pixel): Removed function.
48887 (grub_video_vbe_get_pixel): Likewise.
48888 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48889 updated code to use it.
48890 (common_blitter): Added common blitter for render target and bitmap.
48891 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48892 (grub_video_vbe_blit_render_target): Likewise.
48894 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
48896 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48897 is in text mode if there is no console control protocol instance
48900 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48902 * include/grub/video.h: Code cleanup.
48904 * include/grub/i386/pc/vbe.h: Likewise.
48906 * video/i386/pc/vbe.c: Likewise.
48908 * video/i386/pc/vbeblit.c: Likewise.
48910 * video/i386/pc/vbefill.c: Likewise.
48912 * video/video.c: Likewise. Also added more comments.
48914 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48916 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48917 (struct grub_biosdisk_dap): Likewise.
48919 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48920 linkage settings for all functions.
48922 2006-07-12 Marco Gerards <marco@gnu.org>
48924 * configure.ac (--enable-mm-debug): Fix typo.
48926 * genkernsyms.sh.in: Use proper quoting for `CC'.
48928 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
48930 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
48931 (normal_mod_ASFLAGS): Remove "-m32".
48933 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
48935 * util/misc.c: Include config.h.
48936 [!HAVE_MEMALIGN]: Do not include malloc.h.
48937 (grub_memalign): Use posix_memalign, if present. Then, use
48938 memalign, if present. Otherwise, emit an error.
48940 * util/grub-emu.c: Do not include malloc.h.
48942 * include/grub/util/misc.h: Include unistd.h. This is required for
48943 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
48944 D. Eades III <hde@foobar-qux.org>.
48946 * configure.ac (AC_GNU_SOURCE): Added.
48947 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
48950 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
48952 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
48953 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
48955 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
48957 * include/grub/types.h (grub_host_addr_t): Rename to
48958 grub_target_addr_t.
48959 (grub_host_off_t): Rename to grub_target_off_t.
48960 (grub_host_size_t): Rename to grub_target_size_t.
48961 (grub_host_ssize_t): Rename to grub_target_ssize_t.
48962 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
48964 * include/grub/kernel.h (struct grub_module_header): Change type
48965 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
48966 (grub_module_info): Likewise.
48968 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48970 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
48971 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
48972 Velazquez <jesus.velazquez@gmail.com>.
48974 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48976 Count partitions from 1 instead of 0 in the string representation
48977 of partitions. Still use 0-based internally.
48979 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
48980 (sun_partition_map_iterate): Use grub_partition_t instead of
48981 struct grub_partition *. Cast DESC->START_CYLINDER to
48982 grub_uint64_t after converting the endian.
48983 (sun_partition_map_probe): Subtract 1 for PARTNUM.
48984 (sun_partition_map_get_name): Add 1 to P->INDEX.
48986 * partmap/pc.c (grub_partition_parse): Subtract 1 for
48988 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
48990 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
48991 zero instead of one.
48992 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
48993 (gpt_partition_map_get_name): Add 1 into P->INDEX.
48995 * partmap/apple.c (apple_partition_map_iterate): Change the type
48996 of POS to unsigned.
48997 (apple_partition_map_probe): Subtract 1 for PARTNUM.
48998 (apple_partition_map_get_name): Add 1 into P->INDEX.
49000 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49001 of POS to unsigned.
49002 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49003 calculate the offset of a partition.
49004 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49005 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49007 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49008 SECTOR to grub_disk_addr_t.
49009 (acorn_partition_map_iterate): Likewise.
49010 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49011 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49013 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49015 * kern/i386/pc/init.c (make_install_device): Add 1 into
49016 GRUB_INSTALL_DOS_PART.
49018 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49021 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49023 Clean up the code to support 64-bit addressing in disks and
49024 files. This change is not enough for filesystems yet.
49026 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49027 type of "start" to grub_uint64_t.
49028 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49029 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49030 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49033 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49034 to grub_disk_addr_t.
49036 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49039 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49041 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49044 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49046 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49048 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49050 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49051 to grub_off_t, to detect an error from grub_file_seek.
49052 (grub_multiboot_load_elf32): Likewise.
49054 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49055 maximum unsigned long value when an overflow is detected.
49056 (grub_strtoull): New function.
49057 (grub_divmod64): Likewise.
49058 (grub_lltoa): use grub_divmod64.
49060 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49062 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49063 the pointer to next character. Use grub_strtoull instead of
49065 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49066 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49069 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49070 return value is signed.
49071 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49072 test if OFFSET is less than zero, as OFFSET is unsigned now.
49074 * kern/disk.c (struct grub_disk_cache): Change the type of
49075 "sector" to grub_disk_addr_t.
49076 (grub_disk_cache_get_index): Change the type of SECTOR to
49077 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49078 unsigned after shifting.
49079 (grub_disk_cache_invalidate): Change the type of SECTOR to
49081 (grub_disk_cache_unlock): Likewise.
49082 (grub_disk_cache_store): Likewise.
49083 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49084 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49085 grub_disk_addr_t and grub_uint64_t, respectively.
49086 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49087 body, as the value of OFFSET is tweaked by
49088 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49089 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49091 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49092 body, as the value of OFFSET is tweaked by
49093 grub_disk_check_range. Change the types of LEN and N to
49096 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49097 and "saved_offset" to grub_off_t.
49098 (test_header): Cast BUF to char *.
49099 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49101 (grub_gzio_read): Change the types of OFFSET and SIZE to
49102 grub_off_t and grub_size_t, respectively.
49104 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49106 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49107 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49108 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49109 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49110 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49112 * include/grub/types.h (grub_off_t): Unconditionally set to
49114 (grub_disk_addr_t): Changed to grub_uint64_t.
49116 * include/grub/partition.h (struct grub_partition): Change the
49117 types of "start", "len" and "offset" to grub_disk_addr_t,
49118 grub_uint64_t and grub_disk_addr_t, respectively.
49119 (grub_partition_get_start): Return grub_disk_addr_t.
49120 (grub_partition_get_len): Return grub_uint64_t.
49122 * include/grub/misc.h (grub_strtoull): New prototype.
49123 (grub_divmod64): Likewise.
49125 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49126 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49127 grub_off_t, respectively.
49128 All callers and references changed.
49130 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49131 grub_size_t in "read".
49132 All callers and references changed.
49134 * include/grub/file.h (struct grub_file): Change the types of
49135 "offset" and "size" to grub_off_t and grub_off_t,
49136 respectively. Change the type of SECTOR to grub_disk_addr_t in
49138 (grub_file_read): Change the type of LEN to grub_size_t.
49139 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49141 (grub_file_size): Return grub_off_t.
49142 (grub_file_tell): Likewise.
49143 All callers and references changed.
49145 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49146 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49148 (struct grub_disk): Change the type of "total_sectors" to
49149 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49151 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49152 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49153 (grub_disk_write): Likewise.
49154 All callers and references changed.
49156 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49157 char * for grub_strncmp to silence gcc.
49158 (grub_iso9660_mount): Likewise.
49159 (grub_iso9660_mount): Likewise.
49160 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49162 (grub_iso9660_iterate_dir): Likewise.
49163 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49165 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49166 LEN to grub_disk_addr_t and grub_size_t, respectively.
49168 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49170 * fs/jfs.c (grub_jfs_read_file): Likewise.
49172 * fs/minix.c (grub_jfs_read_file): Likewise.
49174 * fs/sfs.c (grub_jfs_read_file): Likewise.
49176 * fs/ufs.c (grub_jfs_read_file): Likewise.
49178 * fs/xfs.c (grub_jfs_read_file): Likewise.
49180 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49181 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49184 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49185 BLKNR to -1 instead of returning GRUB_ERRNO.
49186 (grub_ext2_read_file): Change the types of SECTOR and
49187 LEN to grub_disk_addr_t and grub_size_t, respectively.
49189 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49190 LEN to grub_disk_addr_t and grub_size_t, respectively.
49192 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49195 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49196 string. Do not cast SECTOR explicitly.
49198 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49199 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49200 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49201 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49202 over 2TB and LBA mode is not supported, raise an error.
49203 (get_safe_sectors): New function.
49204 (grub_biosdisk_read): Use get_safe_sectors.
49205 (grub_biosdisk_write): Likewise.
49207 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49208 (grub_efidisk_write): Likewise.
49210 * disk/loopback.c (delete_loopback): Cosmetic changes.
49211 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49213 (grub_loopback_open): Likewise.
49214 (grub_loopback_read): Likewise. Also, change the type of POS to
49215 grub_off_t, and fix the usage of grub_memset.
49217 * commands/i386/pc/play.c: Include grub/machine/time.h.
49219 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49222 * commands/configfile.c: Include grub/env.h.
49224 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49225 GRUB_ERRNO directly instead. Change the type of POS to
49226 grub_off_t. Follow the coding standard.
49228 * commands/blocklist.c: Include grub/partition.h.
49229 (grub_cmd_blocklist): Return an error if the underlying device is
49230 not a disk. Take the starting sector of a partition into account,
49231 if a partition is used.
49233 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49235 (lba_mode): Support 64-bit addresses.
49236 (chs_mode): Likewise.
49237 (copy_buffer): Adapted to the new offsets of a length field and a
49239 (blocklist_default_start): Allocate 64-bit space.
49241 * boot/i386/pc/boot.S (force_lba): Removed.
49242 (boot_drive): Moved to under KERNEL_SECTOR.
49243 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49245 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49247 (lba_mode): Refactored to support a 64-bit address. More size
49249 (setup_sectors): Likewise.
49251 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49253 * DISTLIST: Added include/grub/i386/linux.h. Removed
49254 include/grub/i386/pc/linux.h
49256 * configure.ac (AC_INIT): Bumped to 1.94.
49258 * config.guess: Updated from gnulib.
49259 * config.sub: Likewise.
49260 * install-sh: Likewise.
49261 * mkinstalldirs: Likewise.
49263 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49265 * conf/common.rmk (grub_modules_init.lst): Depended on
49266 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49269 * genmk.rb (PModule::rule): Reverted the previous change.
49271 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49273 * conf/common.rmk (grub_modules_init.lst): Depends on
49274 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49275 that the target does not exist before producing.
49276 (grub_modules_init.h): Remove the target before generating.
49277 (grub_emu_init.c): Likewise.
49279 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49281 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49283 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49284 for the target-specific tests. Make sure that we also have the
49285 up-to-date target variables for those tests.
49287 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49289 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49290 (PModule::rule): Likewise.
49292 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49294 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49295 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49296 target-specific flags should be prefixed.
49297 (PModule::rule): Likewise.
49299 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49301 * configure.ac (CMP): Check if cmp is available explicitly.
49303 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49305 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49306 (target_cpu): New variable.
49307 (pkglibdir): Use target_cpu instead of host_cpu.
49309 * util/i386/pc/grub-install.in (host_cpu): Removed.
49310 (target_cpu): New variable.
49311 (pkglibdir): Use target_cpu instead of host_cpu.
49313 * util/genmoddep.c: Removed.
49315 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49316 instead of GRUB_HOST_SIZEOF_VOID_P.
49317 * kern/dl.c: Likewise.
49319 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
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.
49326 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49328 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49329 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49330 (GRUB_TARGET_SIZEOF_LONG): ... this.
49331 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49332 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49333 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49335 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49336 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49337 (GRUB_TARGET_SIZEOF_LONG): ... this.
49338 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49339 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49341 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49342 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49343 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49344 instead of GRUB_HOST_SIZEOF_LONG.
49345 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49346 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49347 GRUB_CPU_WORDS_BIGENDIAN.
49348 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49349 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49352 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49353 (genmoddep_SOURCES): Likewise.
49354 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49355 (genmoddep_SOURCES): Likewise.
49356 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49357 (genmoddep_SOURCES): Likewise.
49358 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49360 (genmoddep_SOURCES): Likewise.
49362 * genmoddep.awk: New file.
49364 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49365 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49366 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49367 (PModule::rule): Likewise.
49368 (Program::rule): Likewise.
49369 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49370 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49373 * configure.ac: Rewritten intensively to use host and target
49374 instead of build and host, respectively.
49376 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49377 (host_cpu): Removed.
49378 (target_cpu): New variable.
49379 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49380 (BUILD_CC): Removed.
49381 (BUILD_CFLAGS): Likewise.
49382 (BUILD_CPPFLAGS): Likewise.
49383 (TARGET_CC): New variable.
49384 (TARGET_CFLAGS): Likewise.
49385 (TARGET_CPPFLAGS): Likewise.
49386 (TARGET_LDFLAGS): Likewise.
49388 (include): Use target_cpu instead of host_cpu.
49389 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49391 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49393 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49395 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49396 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49397 field 'false' to 'exec_on_false'.
49398 (grub_script_create_cmdif): Renamed argument names to reflect above
49401 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49403 * normal/script.c (grub_script_create_cmdif): Likewise.
49405 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49407 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49409 (grub_hfsplus_btree_recptr): Likewise.
49410 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49411 FILEBLOCK both to pass a block number and store next block
49413 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49414 overflow file correctly. Specify errors appropriately, because
49415 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49416 grub_hfsplus_btree_recptr to get the pointer to a found key.
49417 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49420 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49422 (_linux_mod_SOURCES): New variable.
49423 (_linux_mod_CFLAGS): Likewise.
49424 (_linux_mod_LDFLAGS): Likewise.
49425 (linux_mod_SOURCES): Likewise.
49426 (linux_mod_CFLAGS): Likewise.
49427 (linux_mod_LDFLAGS): Likewise.
49429 * DISTLIST: Added loader/i386/efi/linux.c,
49430 loader/i386/efi/linux_normal.c and
49431 include/grub/i386/efi/loader.h.
49433 * loader/i386/efi/linux.c: New file.
49434 * loader/i386/efi/linux_normal.c: Likewise.
49435 * include/grub/i386/efi/loader.h: Likewise.
49437 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49439 * commands/blocklist.c: New file.
49441 * DISTLIST: Added commands/blocklist.c.
49443 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49444 color for the background, and a darker color for the foreground.
49445 (grub_console_checkkey): Return READ_KEY.
49446 (grub_console_cls): Set the background to
49447 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49449 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49451 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49452 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49454 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49457 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49458 BG. The spec is wrong again.
49460 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49462 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49464 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49465 commands/blocklist.c.
49466 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49468 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49469 (blocklist_mod_SOURCES): New variable.
49470 (blocklist_mod_CFLAGS): Likewise.
49471 (blocklist_mod_LDFLAGS): Likewise.
49473 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49475 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49477 (lba_mode): Use %eax more intensively to reduce the code size.
49479 2006-05-20 Marco Gerards <marco@gnu.org>
49481 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49483 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49485 (script): Accept leading newlines.
49486 (newlines): New rule to describe 0 or more newlines.
49487 (commands): Accept `command' with trailing newline. Fixed the
49488 order in which arguments were passed to `grub_script_add_cmd'.
49489 Accept commands separated by newlines.
49490 (function): Changed to accept newlines.
49491 (menuentry) Rewritten.
49493 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49494 front of the list, instead of to the end.
49496 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49498 * util/i386/pc/grub-install.in (bindir): New variable.
49499 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49500 Shaver <lbgwjl@gmail.com>.
49502 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49504 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49505 grub/machine/linux.h
49506 * loader/i386/pc/linux.c: Likewise.
49508 * include/grub/i386/pc/linux.h: Moved to ...
49509 * include/grub/i386/linux.h: ... here.
49511 * include/grub/i386/linux.h (struct linux_kernel_params): New
49514 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49516 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49518 (grub_video_vbe_blit_glyph): Likewise.
49519 (grub_video_vbe_blit_bitmap): Likewise.
49520 (grub_video_vbe_blit_render_target): Likewise.
49522 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49524 * configure.ac (--with-platform): Properly quote the square
49527 2006-05-08 Marco Gerards <marco@gnu.org>
49529 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49531 (kernel_elf_HEADERS): ...to this. Updated all users.
49532 (grubof_symlist.c): Renamed from this...
49533 (kernel_elf_symlist.c): ...to this. Updated all users.
49534 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49535 (grubof_SOURCES): Renamed from this...
49536 (kernel_elf_SOURCES): ...to this.
49537 (grubof_HEADERS): Renamed from this...
49538 (kernel_elf_HEADERS): ...to this.
49539 (grubof_CFLAGS): Renamed from this...
49540 (kernel_elf_CFLAGS): ...to this.
49541 (grubof_ASFLAGS): Renamed from this...
49542 (kernel_elf_ASFLAGS): ...to this.
49543 (grubof_LDFLAGS): Renamed from this...
49544 (kernel_elf_LDFLAGS): ...to this.
49546 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49548 (kernel_elf_HEADERS): ...to this. Updated all users.
49549 (grubof_symlist.c): Renamed from this...
49550 (kernel_elf_symlist.c): ...to this. Updated all users.
49551 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49552 (grubof_SOURCES): Renamed from this...
49553 (kernel_elf_SOURCES): ...to this.
49554 (grubof_HEADERS): Renamed from this...
49555 (kernel_elf_HEADERS): ...to this.
49556 (grubof_CFLAGS): Renamed from this...
49557 (kernel_elf_CFLAGS): ...to this.
49558 (grubof_ASFLAGS): Renamed from this...
49559 (kernel_elf_ASFLAGS): ...to this.
49560 (grubof_LDFLAGS): Renamed from this...
49561 (kernel_elf_LDFLAGS): ...to this.
49563 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49564 `kernel.elf' instead of `grubof'.
49566 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49568 Add --with-platform to configure. Use pkglibdir instead of
49569 pkgdatadir. This is reported by Roger Leigh.
49571 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49572 (host_vendor): Likewise.
49573 (host_os): Likewise.
49574 (pkgdatadir): Likewise.
49575 (platform): New variable.
49576 (pkglibdir): Likewise.
49577 Use PKGLIBDIR instead of PKGDATADIR.
49579 * util/i386/pc/grub-install.in (datadir): Removed.
49580 (host_vendor): Likewise.
49581 (host_os): Likewise.
49582 (pkgdatadir): Likewise.
49583 (platform): New variable.
49584 (pkglibdir): Likewise.
49585 Use PKGLIBDIR instead of PKGDATADIR.
49587 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49588 instead of GRUB_DATADIR.
49590 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49592 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49595 * configure.ac (--with-platform): New option.
49596 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49598 * Makefile.in: Include a makefile based on PLATFORM instead of
49600 (pkgdatadir): Not appended by the machine type.
49601 (pkglibdir): Appended by the machine type.
49602 (host_vendor): Removed.
49603 (platform): New variable.
49604 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49605 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49606 (uninstall): Likewise.
49608 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49610 Use the environment context in the menu. Remove the commands
49611 "default" and "timeout", and use variables instead.
49613 * normal/menu.c: Include grub/env.h.
49614 (print_entry): Cast TITLE to silence gcc.
49615 (get_timeout): New function.
49616 (set_timeout): Likewise.
49617 (get_entry_number): Likewise.
49618 (run_menu): Use a default entry, a fallback entry and a timeout
49619 in the environment variables "default", "fallback" and
49620 "timeout". Also, tweak the default entry if it is not within the
49621 current menu entries.
49622 (grub_menu_run): Use a fallback entry in the environment variable
49625 * normal/main.c (read_config_file): Do not initialize
49626 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49628 (grub_normal_execute): Use a data slot to store the menu.
49630 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49631 fallback_entry and timeout.
49632 (struct grub_menu_list): Removed.
49633 (grub_menu_list_t): Likewise.
49634 (struct grub_context): Likewise.
49635 (grub_context_t): Likewise.
49636 (grub_context_get): Likewise.
49637 (grub_context_get_current_menu): Likewise.
49638 (grub_context_push_menu): Likewise.
49639 (grub_context_pop_menu): Likewise.
49640 (grub_default_init): Likewise.
49641 (grub_default_fini): Likewise.
49642 (grub_timeout_init): Likewise.
49643 (grub_timeout_fini): Likewise.
49645 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49647 (normal_mod_SOURCES): Removed normal/context.c.
49649 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49650 commands/default.c, commands/timeout.c and normal/context.c.
49651 (normal_mod_SOURCES): Removed normal/context.c.
49653 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49654 commands/timeout.c and normal/context.c.
49655 (normal_mod_SOURCES): Removed normal/context.c.
49657 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49658 commands/default.c, commands/timeout.c and normal/context.c.
49659 (normal_mod_SOURCES): Removed normal/context.c.
49661 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49663 (default_mod_SOURCES): Removed.
49664 (default_mod_CFLAGS): Likewise.
49665 (default_mod_LDFLAGS): Likewise.
49666 (timeout_mod_SOURCES): Removed.
49667 (timeout_mod_CFLAGS): Likewise.
49668 (timeout_mod_LDFLAGS): Likewise.
49670 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49673 * commands/default.c: Removed.
49674 * commands/timeout.c: Likewise.
49675 * normal/context.c: Likewise.
49677 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49679 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49681 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49683 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49684 "next" to "prev" for readability.
49685 (struct grub_env_sorted_var): New struct.
49686 (grub_env_context): Renamed to ...
49687 (initial_context): ... this.
49688 (grub_env_var_context): Renamed to ...
49689 (current_context): ... this.
49690 (grub_env_find): Look only at CURRENT_CONTEXT.
49691 (grub_env_context_open): Rewritten to copy exported variables from
49693 (grub_env_context_close): Rewritten according to the new
49694 scheme. Also, add an assertion to prevent the initial context from
49696 (grub_env_insert): Removed the code for the sorted list.
49697 (grub_env_remove): Likewise.
49698 (grub_env_export): Simply mark the variable with
49699 GRUB_ENV_VAR_GLOBAL.
49700 (grub_env_set): A cosmetic change for naming consistency.
49701 (grub_env_get): Likewise.
49702 (grub_env_unset): Likewise.
49703 (grub_env_iterate): Rewritten to sort variables within this
49705 (grub_register_variable_hook): Fixed for naming consistency. Call
49706 grub_env_find again, only if NAME is not found at the first time.
49707 (mangle_data_slot_name): New function.
49708 (grub_env_set_data_slot): Likewise.
49709 (grub_env_get_data_slot): Likewise.
49710 (grub_env_unset_data_slot): Likewise.
49712 * include/grub/env.h (grub_env_var_type): New enum.
49713 (GRUB_ENV_VAR_LOCAL): New constant.
49714 (GRUB_ENV_VAR_GLOBAL): Likewise.
49715 (GRUB_ENV_VAR_DATA): Likewise.
49716 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49718 (grub_env_set): Replace VAR with NAME for consistency.
49719 (grub_register_variable_hook): Likewise.
49720 (grub_env_export): Specify the name of the argument.
49721 (grub_env_set_data_slot): New prototype.
49722 (grub_env_get_data_slot): Likewise.
49723 (grub_env_unset_data_slot): Likewise.
49725 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49727 Extend the loader so that GRUB can accept a loader which comes
49728 back to GRUB when a loaded image exits. Also, this change adds
49729 support for a chainloader on EFI.
49731 * term/efi/console.c: Include grub/misc.h.
49732 (grub_console_checkkey): Display a scan code on the top for
49733 debugging. This will be removed once the EFI port gets stable.
49734 Correct the scan code mapping.
49736 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49737 allocate memory from larger regions, in order to reduce the number
49738 of allocated regions. Otherwise, the MacOSX loader panics.
49739 (filter_memory_map): Avoid less than 1MB for compatibility with
49741 (add_memory_regions): Allocate from the tail of a region, if
49742 possible, to avoid allocating a region near to 1MB, for the MacOSX
49745 * kern/efi/init.c (grub_efi_set_prefix): Specify
49746 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49748 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49749 argument IMAGE_HANDLE and specify it to get a loaded image.
49750 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49751 grub_efi_get_loaded_image.
49752 (grub_efi_get_filename): Divide the length by the size of
49754 (grub_efi_get_device_path): New function.
49755 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49756 the length by the size of grub_efi_char16_t for a file path device
49759 * kern/loader.c (grub_loader_noreturn): New variable.
49760 (grub_loader_set): Accept a new argument NORETURN. Set
49761 GRUB_LOADER_NORETURN to NORETURN.
49762 All callers changed.
49763 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49766 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49768 (grub_efi_get_loaded_image): Take an argument to specify an image
49771 * include/grub/loader.h (grub_loader_set): Added one more argument
49774 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49775 instead of grub_efi_open_protocol.
49776 (grub_efidisk_get_device_name): Likewise.
49777 (grub_efidisk_close): Print a newline.
49778 (grub_efidisk_get_device_handle): Fixed to use
49779 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49780 GRUB_EFI_DEVICE_PATH_TYPE.
49782 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49783 * kern/efi/efi.c (device_path_guid): ... here.
49785 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49787 (kernel_mod_HEADERS): Added efi/disk.h.
49788 (_chain_mod_SOURCES): New variable.
49789 (_chain_mod_CFLAGS): Likewise.
49790 (_chain_mod_LDFLAGS): Likewise.
49791 (chain_mod_SOURCES): Likewise.
49792 (chain_mod_CFLAGS): Likewise.
49793 (chain_mod_LDFLAGS): Likewise.
49795 * DISTLIST: Added include/grub/efi/chainloader.h,
49796 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49798 * include/grub/efi/chainloader.h: New file.
49799 * loader/efi/chainloader.c: Likewise.
49800 * loader/efi/chainloader_normal.c: Likewise.
49802 2006-04-30 Marco Gerards <marco@gnu.org>
49804 * commands/configfile.c (grub_cmd_source): New function.
49805 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49806 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49808 2006-04-30 Marco Gerards <marco@gnu.org>
49810 * normal/execute.c (grub_script_execute_cmd): Change the return
49811 type to `grub_err_t'. Correctly return the error.
49812 (grub_script_execute_cmdline): In case a command line is not a
49813 command or a function, try to interpret it as an assignment.
49815 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49817 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49818 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49819 skip a node whose name is obviously invalid as UTF-16,
49820 i.e. contains a NUL character. Stop the iteration when the last
49821 directory entry is found. Instead of using the return value of
49822 grub_hfsplus_btree_iterate_node, store the value in RET and use
49823 it, because the iterator can be stopped by the last directory
49826 2006-04-30 Marco Gerards <marco@gnu.org>
49828 * include/grub/env.h (grub_env_export): New prototype. Reported
49829 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49831 2006-04-30 Marco Gerards <marco@gnu.org>
49833 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49834 size of the extents in a catalog file record.
49836 2006-04-29 Marco Gerards <marco@gnu.org>
49838 * commands/configfile.c (grub_cmd_configfile): Execute the
49839 configfile within its own context.
49841 * include/grub/env.h (grub_env_context_open): New prototype.
49842 (grub_env_context_close): Likewise.
49844 * kern/env.c (grub_env): Removed.
49845 (grub_env_sorted): Likewise.
49846 (grub_env_context): New variable.
49847 (grub_env_var_context): Likewise.
49848 (grub_env_find): Search both the active context and the global
49850 (grub_env_context_open): New function.
49851 (grub_env_context_close): Likewise.
49852 (grub_env_insert): Likewise.
49853 (grub_env_remove): Likewise.
49854 (grub_env_export): Likewise.
49855 (grub_env_set): Changed to use helper functions to avoid code
49857 (grub_env_iterate): Rewritten so both the current context and the
49858 global context are being used.
49860 * normal/command.c (export_command): New function.
49861 (grub_command_init): Register the `export' function.
49863 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49865 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49866 explicitly to suppress gcc's warnings.
49867 * fs/fat.c (grub_fat_find_dir): Likewise.
49868 (grub_fat_label): Likewise.
49869 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49870 (grub_xfs_mount): Likewise.
49871 (grub_xfs_label): Likewise.
49872 * fs/affs.c (grub_affs_mount): Likewise.
49873 (grub_affs_label): Likewise.
49874 (grub_affs_iterate_dir): Likewise.
49875 * fs/sfs.c (grub_sfs_mount): Likewise.
49876 (grub_sfs_iterate_dir): Likewise.
49877 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49878 * fs/hfs.c (grub_hfs_mount): Likewise.
49879 (grub_hfs_cmp_catkeys): Likewise.
49880 (grub_hfs_find_dir): Likewise.
49881 (grub_hfs_dir): Likewise.
49882 (grub_hfs_label): Likewise.
49883 * fs/jfs.c (grub_jfs_mount): Likewise.
49884 (grub_jfs_opendir): Likewise.
49885 (grub_jfs_getent): Likewise.
49886 (grub_jfs_lookup_symlink): Likewise.
49887 (grub_jfs_label): Likewise.
49888 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49889 (grub_hfsplus_iterate_dir): Likewise.
49890 (grub_hfsplus_btree_iterate_node): Made static.
49892 * util/grub-emu.c (prefix): New variable.
49893 (grub_machine_set_prefix): New function.
49894 (main): Do not set the environment variable "prefix" here. Only
49895 set PREFIX, which is used later by grub_machine_set_prefix.
49897 * include/grub/video.h: Do not include grub/symbol.h.
49898 (grub_video_register): Not exported. This symbol is not defined in
49900 (grub_video_unregister): Likewise.
49901 (grub_video_iterate): Likewise.
49902 (grub_video_setup): Likewise.
49903 (grub_video_restore): Likewise.
49904 (grub_video_get_info): Likewise.
49905 (grub_video_get_blit_format): Likewise.
49906 (grub_video_set_palette): Likewise.
49907 (grub_video_get_palette): Likewise.
49908 (grub_video_set_viewport): Likewise.
49909 (grub_video_get_viewport): Likewise.
49910 (grub_video_map_color): Likewise.
49911 (grub_video_map_rgb): Likewise.
49912 (grub_video_map_rgba): Likewise.
49913 (grub_video_fill_rect): Likewise.
49914 (grub_video_blit_glyph): Likewise.
49915 (grub_video_blit_bitmap): Likewise.
49916 (grub_video_blit_render_target): Likewise.
49917 (grub_video_scroll): Likewise.
49918 (grub_video_swap_buffers): Likewise.
49919 (grub_video_create_render_target): Likewise.
49920 (grub_video_delete_render_target): Likewise.
49921 (grub_video_set_active_render_target): Likewise.
49923 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49925 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
49927 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
49928 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49929 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49930 instead of $(srcdir)/genkernsyms.sh.
49932 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
49933 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49934 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49935 instead of $(srcdir)/genkernsyms.sh.
49937 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
49938 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49939 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49940 instead of $(srcdir)/genkernsyms.sh.
49942 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
49943 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49944 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49945 instead of $(srcdir)/genkernsyms.sh.
49947 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
49950 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
49952 (gensymlist.sh): New target.
49953 (genkernsyms.sh): Likewise.
49955 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
49956 genkernsyms.sh.in and gensymlist.sh.in.
49958 * genkernsyms.sh: Removed.
49959 * gensymlist.sh: Likewise.
49961 * genkernsyms.sh.in: New file.
49962 * gensymlist.sh.in: Likewise.
49964 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49966 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
49967 clobber "prefix", since we may have already set it manually.
49969 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49971 * kern/misc.c (abort): New alias for grub_abort.
49973 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
49975 A new machine-specific function "grub_machine_set_prefix" is
49976 defined. This is called after loading modules, so that a prefix
49977 initialization can use modules. Also, this change adds an
49978 intensive debugging feature for the memory manager via the
49979 configure option "--enable-mm-debug".
49981 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
49984 * kern/sparc64/ieee1275/init.c (abort): Removed.
49985 (grub_stop): Likewise.
49986 (grub_exit): New function.
49987 (grub_set_prefix): Renamed to ...
49988 (grub_machine_set_prefix): ... this.
49989 (grub_machine_init): Do not call grub_set_prefix.
49991 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
49992 (grub_machine_set_prefix): ... this.
49993 (grub_machine_init): Do not call grub_set_prefix.
49995 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
49996 (grub_machine_init): Do not set the prefix here.
49998 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50000 * kern/efi/init.c: Include grub/mm.h.
50001 (grub_efi_set_prefix): New function.
50003 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50004 (grub_efi_get_filename): New function.
50005 (grub_print_device_path): Renamed to ...
50006 (grub_efi_print_device_path): ... this.
50008 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50009 [MM_DEBUG] (grub_realloc): Likewise.
50010 [MM_DEBUG] (grub_free): Likewise.
50011 [MM_DEBUG] (grub_memalign): Likewise.
50012 [MM_DEBUG] (grub_mm_debug): New variable.
50013 [MM_DEBUG] (grub_debug_malloc): New function.
50014 [MM_DEBUG] (grub_debug_free): New function.
50015 [MM_DEBUG] (grub_debug_realloc): New function.
50016 [MM_DEBUG] (grub_debug_memalign): New function.
50018 * kern/misc.c (grub_abort): Print a newline to distinguish
50021 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50022 grub_set_root_dev after loading modules. This is necessary when
50023 setting a prefix depends on modules.
50025 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50026 (grub_efi_print_device_path): ... this.
50027 (grub_efi_get_filename): New prototype.
50028 (grub_efi_set_prefix): Likewise.
50030 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50032 (grub_efidisk_get_device_handle): New prototype.
50033 (grub_efidisk_get_device_name): Likewise.
50035 * include/grub/mm.h: Include config.h.
50036 (MM_DEBUG): Removed.
50037 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50038 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50039 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50040 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50041 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50042 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50043 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50044 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50045 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50047 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50049 * disk/efi/efidisk.c: Include grub/partition.h.
50050 (iterate_child_devices): New function.
50051 (add_device): First, compare only last device path nodes, so that
50052 devices are sorted by the types.
50053 (grub_efidisk_get_device_handle): New function.
50054 (grub_efidisk_get_device_name): Likewise.
50056 * configure.ac (--enable-mm-debug): New option to enable the
50057 memory manager debugging feature. This makes the binary much
50058 bigger, so is disabled by default.
50060 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50062 Use grub_abort instead of grub_stop, and grub_exit must be
50063 define in each architecture now. Also, this change adds support
50066 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50067 (grub_getkey): New function.
50068 (grub_term_get_current): Likewise.
50070 * util/i386/pc/grub-setup.c: Include grub/term.h.
50071 (grub_getkey): New function.
50072 (grub_term_get_current): Likewise.
50074 * util/misc.c (grub_stop): Renamed to ...
50075 (grub_exit): ... this.
50077 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50078 (grub_exit): ... this.
50079 (grub_machine_init): Use grub_abort instead of abort.
50080 (grub_stop): Removed.
50082 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50085 * kern/i386/pc/startup.S (grub_exit): New function.
50086 (cold_reboot): New label.
50088 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50089 (grub_efi_init): Call grub_efidisk_init.
50090 (grub_efi_fini): Call grub_efidisk_fini.
50092 * kern/efi/efi.c: Include grub/mm.h.
50093 (grub_efi_console_control_guid): Renamed to ...
50094 (console_control_guid): ... this.
50095 (grub_efi_loaded_image_guid): Renamed to ...
50096 (loaded_image_guid): ... this.
50097 (grub_efi_locate_handle): New function.
50098 (grub_efi_open_protocol): Likewise.
50099 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50100 GRUB_EFI_CONSOLE_CONTROL_GUID.
50101 (grub_efi_exit): Removed.
50102 (grub_stop): Likewise.
50103 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50104 (grub_exit): New function.
50105 (grub_print_device_path): Likewise.
50107 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50108 (grub_enter_rescue_mode): Register "exit".
50110 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50111 (grub_abort): New function.
50113 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50115 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50117 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50119 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50120 (grub_print_device_path): New prototype.
50121 (grub_efi_locate_handle): Likewise.
50122 (grub_efi_open_protocol): Likewise.
50124 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50125 * disk/efi/efidisk.c: Likewise.
50127 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50129 * include/grub/efi/console_control.h
50130 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50132 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50133 last 8 bytes as an array.
50134 (GRUB_EFI_DISK_IO_GUID): New macro.
50135 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50136 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50137 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50139 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50140 (struct grub_efi_device_path): Rename the member "sub_type" to
50142 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50143 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50144 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50145 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50146 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50147 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50148 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50149 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50150 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50151 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50152 (struct grub_efi_pci_device_path): New structure.
50153 (grub_efi_pci_device_path_t): New type.
50154 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50155 (struct grub_efi_pccard_device_path): New structure.
50156 (grub_efi_pccard_device_path_t): New type.
50157 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50158 (struct grub_efi_memory_mapped_device_path): New structure.
50159 (grub_efi_memory_mapped_device_path_t): New type.
50160 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50161 (struct grub_efi_vendor_device_path): New structure.
50162 (grub_efi_vendor_device_path_t): New type.
50163 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50164 (struct grub_efi_controller_device_path): New structure.
50165 (grub_efi_controller_device_path_t): New type.
50166 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50167 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50168 (struct grub_efi_acpi_device_path): New structure.
50169 (grub_efi_acpi_device_path_t): New type.
50170 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50171 (struct grub_efi_expanded_acpi_device_path): New structure.
50172 (grub_efi_expanded_acpi_device_path_t): New type.
50173 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50174 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50175 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50176 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50177 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50178 (struct grub_efi_atapi_device_path): New structure.
50179 (grub_efi_atapi_device_path_t): New type.
50180 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50181 (struct grub_efi_fibre_channel_device_path): New structure.
50182 (grub_efi_fibre_channel_device_path_t): New type.
50183 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50184 (struct grub_efi_1394_device_path): New structure.
50185 (grub_efi_1394_device_path_t): New type.
50186 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50187 (struct grub_efi_usb_device_path): New structure.
50188 (grub_efi_usb_device_path_t): New type.
50189 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50190 (struct grub_efi_usb_class_device_path): New structure.
50191 (grub_efi_usb_class_device_path_t): New type.
50192 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50193 (struct grub_efi_i2o_device_path): New structure.
50194 (grub_efi_i2o_device_path_t): New type.
50195 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50196 (struct grub_efi_mac_address_device_path): New structure.
50197 (grub_efi_mac_address_device_path_t): New type.
50198 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50199 (struct grub_efi_ipv4_device_path): New structure.
50200 (grub_efi_ipv4_device_path_t): New type.
50201 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50202 (struct grub_efi_ipv6_device_path): New structure.
50203 (grub_efi_ipv6_device_path_t): New type.
50204 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50205 (struct grub_efi_infiniband_device_path): New structure.
50206 (grub_efi_infiniband_device_path_t): New type.
50207 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50208 (struct grub_efi_uart_device_path): New structure.
50209 (grub_efi_uart_device_path_t): New type.
50210 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50211 (struct grub_efi_vendor_messaging_device_path): New structure.
50212 (grub_efi_vendor_messaging_device_path_t): New type.
50213 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50214 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50215 (struct grub_efi_hard_drive_device_path): New structure.
50216 (grub_efi_hard_drive_device_path_t): New type.
50217 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50218 (struct grub_efi_cdrom_device_path): New structure.
50219 (grub_efi_cdrom_device_path_t): New type.
50220 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50221 (struct grub_efi_vendor_media_device_path): New structure.
50222 (grub_efi_vendor_media_device_path_t): New type.
50223 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50224 (struct grub_efi_file_path_device_path): New structure.
50225 (grub_efi_file_path_device_path_t): New type.
50226 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50227 (struct grub_efi_protocol_device_path): New structure.
50228 (grub_efi_protocol_device_path_t): New type.
50229 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50230 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50231 (struct grub_efi_bios_device_path): New structure.
50232 (grub_efi_bios_device_path_t): New type.
50233 (struct grub_efi_disk_io): New structure.
50234 (grub_efi_disk_io_t): New type.
50235 (struct grub_efi_block_io_media): New structure.
50236 (grub_efi_block_io_media_t): New type.
50237 (struct grub_efi_block_io): New structure.
50238 (grub_efi_block_io_t): New type.
50240 * include/grub/misc.h (grub_stop): Removed.
50241 (grub_exit): New prototype.
50242 (grub_abort): Likewise.
50244 * include/grub/disk.h (enum grub_disk_dev_id): Added
50245 GRUB_DISK_DEVICE_EFIDISK_ID.
50247 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50248 disk/efi/efidisk.c.
50249 (kernel_syms.lst): Remove the target if an error occurs.
50251 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50253 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50254 as it was simply too buggy.
50256 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50258 * kern/misc.c (grub_lltoa): New function.
50259 (grub_vsprintf): Added support for the long long suffix,
50262 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50264 * Makefile.in (LDFLAGS): Add variable.
50265 (LD): Remove variable.
50266 * configure.ac: Add -m32 to LDFLAGS.
50267 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50268 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50269 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50270 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50271 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50273 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50274 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50275 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50277 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50279 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50280 length for unknown glyph.
50282 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50284 Add support for pre-loaded modules into the EFI port.
50286 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50287 completely. Accept one more argument DIR. The caller has changed.
50289 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50291 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50292 (grub_efi_loaded_image_guid): New variable.
50293 (grub_efi_get_loaded_image): New function.
50294 (grub_arch_modules_addr): Likewise.
50296 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50299 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50300 (struct grub_efi_loaded_image): New structure.
50301 (grub_efi_loaded_image_t): New type.
50303 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50305 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50306 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50307 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50309 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50311 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50313 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50315 * DISTLIST: Added include/grub/efi/console.h,
50316 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50317 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50319 * include/grub/efi/console.h: New file.
50320 * include/grub/efi/time.h: Likewise.
50321 * include/grub/i386/efi/kernel.h: Likewise.
50322 * kern/efi/init.c: Likewise.
50323 * kern/efi/mm.c: Likewise.
50324 * term/efi/console.c: Likewise.
50326 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50327 (grub_stop): Removed.
50328 (grub_get_rtc): Likewise.
50329 (grub_machine_init): Simply call grub_efi_init.
50330 (grub_machine_fini): Call grub_efi_fini.
50332 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50333 (grub_efi_output_string): Removed.
50334 (grub_efi_stall): New function.
50335 (grub_stop): Likewise.
50336 (grub_get_rtc): Likewise.
50338 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50339 (grub_efi_stall): New prototype.
50340 (grub_efi_allocate_pages): Likewise.
50341 (grub_efi_free_pages): Likewise.
50342 (grub_efi_get_memory_map): Likewise.
50343 (grub_efi_mm_init): Likewise.
50344 (grub_efi_mm_fini): Likewise.
50345 (grub_efi_init): Likewise.
50346 (grub_efi_fini): Likewise.
50348 * include/grub/i386/efi/time.h: Do not include
50349 grub/symbol.h. Include grub/efi/time.h.
50350 (GRUB_TICKS_PER_SECOND): Removed.
50351 (grub_get_rtc): Likewise.
50353 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50354 Added padding. The EFI spec is buggy.
50355 (GRUB_EFI_BLACK): New macro.
50356 (GRUB_EFI_BLUE): Likewise.
50357 (GRUB_EFI_GREEN): Likewise.
50358 (GRUB_EFI_CYAN): Likewise.
50359 (GRUB_EFI_RED): Likewise.
50360 (GRUB_EFI_MAGENTA): Likewise.
50361 (GRUB_EFI_BROWN): Likewise.
50362 (GRUB_EFI_LIGHTGRAY): Likewise.
50363 (GRUB_EFI_BRIGHT): Likewise.
50364 (GRUB_EFI_DARKGRAY): Likewise.
50365 (GRUB_EFI_LIGHTBLUE): Likewise.
50366 (GRUB_EFI_LIGHTGREEN): Likewise.
50367 (GRUB_EFI_LIGHTCYAN): Likewise.
50368 (GRUB_EFI_LIGHTRED): Likewise.
50369 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50370 (GRUB_EFI_YELLOW): Likewise.
50371 (GRUB_EFI_WHITE): Likewise.
50372 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50373 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50374 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50375 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50376 (GRUB_EFI_BACKGROUND_RED): Likewise.
50377 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50378 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50379 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50380 (GRUB_EFI_TEXT_ATTR): Likewise.
50382 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50383 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50384 (kernel_mod_HEADERS): Added efi/time.h.
50386 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50388 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50389 include/grub/efi/api.h, include/grub/efi/console_control.h,
50390 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50391 include/grub/i386/efi/time.h, kern/efi/efi.c,
50392 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50393 and util/i386/efi/grub-mkimage.c.
50395 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50397 * genmk.rb (PModule#rule): Do not export symbols if
50398 #{prefix}_EXPORTS is set to "no".
50400 * conf/i386-efi.mk: New file.
50401 * conf/i386-efi.rmk: Likewise.
50402 * include/grub/efi/api.h: Likewise.
50403 * include/grub/efi/console_control.h: Likewise.
50404 * include/grub/efi/efi.h: Likewise.
50405 * include/grub/efi/pe32.h: Likewise.
50406 * include/grub/i386/efi/time.h: Likewise.
50407 * kern/efi/efi.c: Likewise.
50408 * kern/i386/efi/init.c: Likewise.
50409 * kern/i386/efi/startup.S: Likewise.
50410 * util/i386/efi/grub-mkimage.c: Likewise.
50412 2006-04-17 Marco Gerards <marco@gnu.org>
50414 * include/grub/script.h: Include <grub/parser.h> and
50415 "grub_script.tab.h".
50416 (struct grub_lexer_param): New struct.
50417 (struct grub_parser_param): Likewise.
50418 (grub_script_create_arglist): Pass the state in an argument.
50419 (grub_script_add_arglist): Likewise.
50420 (grub_script_create_cmdline): Likewise.
50421 (grub_script_create_cmdblock): Likewise.
50422 (grub_script_create_cmdif): Likewise.
50423 (grub_script_create_cmdmenu): Likewise.
50424 (grub_script_add_cmd): Likewise.
50425 (grub_script_arg_add): Likewise.
50426 (grub_script_lexer_ref): Likewise.
50427 (grub_script_lexer_deref): Likewise.
50428 (grub_script_lexer_record_start): Likewise.
50429 (grub_script_lexer_record_stop): Likewise.
50430 (grub_script_mem_record): Likewise.
50431 (grub_script_mem_record_stop): Likewise.
50432 (grub_script_malloc): Likewise.
50433 (grub_script_yylex): Likewise.
50434 (grub_script_yyparse): Likewise.
50435 (grub_script_yyerror): Likewise.
50436 (grub_script_yylex): Likewise.
50437 (grub_script_lexer_init): Return the state.
50439 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50440 (grub_script_lexer_done): Likewise.
50441 (grub_script_lexer_getline): Likewise.
50442 (grub_script_lexer_refs): Likewise.
50443 (script): Likewise.
50444 (newscript): Likewise.
50445 (record): Likewise.
50446 (recording): Likewise.
50447 (recordpos): Likewise.
50448 (recordlen): Likewise.
50449 (grub_script_lexer_init): Return the state instead of setting
50451 (grub_script_lexer_ref): Use the newly added argument for state
50452 instead of globals.
50453 (grub_script_lexer_deref): Likewise.
50454 (grub_script_lexer_record_start): Likewise.
50455 (grub_script_lexer_record_stop): Likewise.
50456 (recordchar): Likewise.
50457 (nextchar): Likewise.
50458 (grub_script_yylex2): Likewise.
50459 (grub_script_yylex): Likewise.
50460 (grub_script_yyerror): Likewise.
50462 * normal/parser.y (func_mem): Removed variable.
50463 (menu_entry): Likewise.
50465 (%lex-param): New parser option.
50466 (%parse-param): Likewise.
50467 (script): Always return the AST.
50468 (argument): Pass the state around.
50469 (arguments): Likewise.
50470 (grubcmd): Likewise.
50471 (commands): Likewise.
50472 (function): Likewise.
50473 (menuentry): Likewise.
50474 (if_statement): Likewise.
50477 * normal/script.c (grub_script_memused): Removed variable.
50478 (grub_script_parsed): Likewise.
50479 (grub_script_malloc): Added a state argument. Use that instead of
50481 (grub_script_mem_record): Likewise.
50482 (grub_script_mem_record_stop): Likewise.
50483 (grub_script_arg_add): Likewise.
50484 (grub_script_add_arglist): Likewise.
50485 (grub_script_create_cmdline): Likewise.
50486 (grub_script_create_cmdif): Likewise.
50487 (grub_script_create_cmdmenu): Likewise.
50488 (grub_script_add_cmd): Likewise.
50489 (grub_script_parse): Setup the state before calling the parser.
50491 2006-04-16 Marco Gerards <marco@gnu.org>
50493 * normal/command.c (grub_command_init): Remove the title command.
50495 * normal/lexer.c (grub_script_yylex): Renamed from this...
50496 (grub_script_yylex2): ... to this.
50497 (grub_script_yylex): New function. Temporary
50498 introduced to filter some tokens.
50499 (grub_script_yyerror): Print a newline.
50501 * normal/main.c (read_config_file): Output information about the
50502 lines that contain errors. Wait for a key after all lines have
50503 been processed. Don't return an empty menu.
50505 * normal/parser.y (func_mem): Don't initialize.
50506 (menu_entry): Likewise.
50507 (err): New variable.
50508 (script): Don't return anything when an error was encountered.
50509 (ws, returns): Removed rules.
50510 (argument): Disabled concatenated variable support.
50511 (arguments): Remove explicit separators.
50512 (grubcmd): Likewise.
50513 (function): Likewise.
50514 (menuentry): Likewise.
50516 (commands): Likewise. Add error handling.
50518 * normal/script.c (grub_script_create_cmdline): If
50519 `grub_script_parsed' is 0, assume the parser encountered an error.
50521 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50523 * configure.ac: Add support for EFI. Fix the typo
50524 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50526 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50528 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50529 foreign multibyte characters should be shown correctly.
50531 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50533 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50535 (read_config_file): Made it to close file before returning.
50537 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50539 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50540 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50541 video/i386/pc/vbefill.c.
50543 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50544 video/i386/pc/vbefill.c.
50546 * include/grub/video.h (grub_video_blit_format): New enum.
50547 (grub_video_mode_info): Added new member blit_format.
50548 (grub_video_get_blit_format): New function prototype.
50550 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50551 function prototype.
50552 (grub_video_vbe_map_rgb): Likewise.
50553 (grub_video_vbe_unmap_color): Likewise.
50555 * include/grub/i386/pc/vbeblit.h: New file.
50557 * include/grub/i386/pc/vbefill.h: New file.
50559 * video/video.c (grub_video_get_blit_format): New function.
50560 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50561 (grub_video_vbe_map_rgb): Likewise.
50562 (grub_video_vbe_unmap_color): Likewise.
50564 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50566 (grub_video_vbe_blit_render_target): Changed to use more optimized
50568 (grub_video_vbe_setup): Added detection for optimized settings.
50569 (grub_video_vbe_create_render_target): Likewise.
50571 * video/i386/pc/vbeblit.c: New file.
50573 * video/i386/pc/vbefill.c: New file.
50575 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50577 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50580 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50581 parsing to support both hex and dec ranges. If filename was missing
50582 show usage information.
50584 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50586 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50587 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50589 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50590 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50591 (video_mod_SOURCES): Added.
50592 (video_mod_CFLAGS): Likewise.
50593 (video_mod_LDFLAGS): Likewise.
50594 (gfxterm_mod_SOURCES): Likewise.
50595 (gfxterm_mod_CFLAGS): Likewise.
50596 (gfxterm_mod_LDFLAGS): Likewise.
50597 (videotest_mod_SOURCES): Likewise.
50598 (videotest_mod_CFLAGS): Likewise.
50599 (videotest_mod_LDFLAGS): Likewise.
50600 (vesafb_mod_SOURCES): Removed.
50601 (vesafb_mod_CFLAGS): Likewise.
50602 (vesafb_mod_LDFLAGS): Likewise.
50603 (vga_mod_SOURCES): Likewise.
50604 (vga_mod_CFLAGS): Likewise.
50605 (vga_mod_LDFLAGS): Likewise.
50607 * commands/videotest.c: New file.
50609 * font/manager.c (fill_with_default_glyph): Modified to use
50611 (grub_font_get_glyph): Likewise.
50612 (fontmanager): Renamed from this...
50613 (font_manager): ... to this.
50615 * include/grub/font.h (grub_font_glyph): Added new structure.
50616 (grub_font_get_glyph): Modified to use grub_font_glyph.
50618 * include/grub/misc.h (grub_abs): Added as inline function.
50620 * include/grub/video.h: New file.
50622 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50623 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50624 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50625 (grub_vbe_get_controller_info): Renamed from this...
50626 (grub_vbe_bios_get_controller_info): ... to this.
50627 (grub_vbe_get_mode_info): Renamed from this...
50628 (grub_vbe_bios_get_mode_info): ... to this.
50629 (grub_vbe_set_mode): Renamed from this...
50630 (grub_vbe_bios_set_mode): ... to this.
50631 (grub_vbe_get_mode): Renamed from this...
50632 (grub_vbe_bios_get_mode): ... to this.
50633 (grub_vbe_set_memory_window): Renamed from this...
50634 (grub_vbe_bios_set_memory_window): ... to this.
50635 (grub_vbe_get_memory_window): Renamed from this...
50636 (grub_vbe_bios_get_memory_window): ... to this.
50637 (grub_vbe_set_scanline_length): Renamed from this...
50638 (grub_vbe_set_scanline_length): ... to this.
50639 (grub_vbe_get_scanline_length): Renamed from this...
50640 (grub_vbe_bios_get_scanline_length): ... to this.
50641 (grub_vbe_set_display_start): Renamed from this...
50642 (grub_vbe_bios_set_display_start): ... to this.
50643 (grub_vbe_get_display_start): Renamed from this...
50644 (grub_vbe_bios_get_display_start): ... to this.
50645 (grub_vbe_set_palette_data): Renamed from this...
50646 (grub_vbe_bios_set_palette_data): ... to this.
50647 (grub_vbe_set_pixel_rgb): Removed.
50648 (grub_vbe_set_pixel_index): Likewise.
50650 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50652 (grub_vbe_bios_get_controller_info): ... to this.
50653 (grub_vbe_get_mode_info): Renamed from this...
50654 (grub_vbe_bios_get_mode_info): ... to this.
50655 (grub_vbe_set_mode): Renamed from this...
50656 (grub_vbe_bios_set_mode): ... to this.
50657 (grub_vbe_get_mode): Renamed from this...
50658 (grub_vbe_bios_get_mode): ... to this.
50659 (grub_vbe_set_memory_window): Renamed from this...
50660 (grub_vbe_bios_set_memory_window): ... to this.
50661 (grub_vbe_get_memory_window): Renamed from this...
50662 (grub_vbe_bios_get_memory_window): ... to this.
50663 (grub_vbe_set_scanline_length): Renamed from this...
50664 (grub_vbe_set_scanline_length): ... to this.
50665 (grub_vbe_get_scanline_length): Renamed from this...
50666 (grub_vbe_bios_get_scanline_length): ... to this.
50667 (grub_vbe_set_display_start): Renamed from this...
50668 (grub_vbe_bios_set_display_start): ... to this.
50669 (grub_vbe_get_display_start): Renamed from this...
50670 (grub_vbe_bios_get_display_start): ... to this.
50671 (grub_vbe_set_palette_data): Renamed from this...
50672 (grub_vbe_bios_set_palette_data): ... to this.
50673 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50674 getting corrupted after calling it. Added more pushes and pops.
50675 (grub_vbe_bios_set_mode): Likewise.
50676 (grub_vbe_bios_get_mode): Likewise.
50677 (grub_vbe_bios_get_memory_window): Likewise.
50678 (grub_vbe_bios_set_scanline_length): Likewise.
50679 (grub_vbe_bios_get_scanline_length): Likewise.
50680 (grub_vbe_bios_get_display_start): Likewise.
50681 (grub_vbe_bios_set_palette_data): Likewise.
50683 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50684 (cl_insert): Likewise.
50685 (cl_delete): Likewise.
50687 * term/gfxterm.c: New file.
50689 * term/i386/pc/vesafb.c: Removed file.
50691 * video/video.c: New file.
50693 * video/i386/pc/vbe.c (real2pm): Added new function.
50694 (grub_video_vbe_draw_pixel): Likewise.
50695 (grub_video_vbe_get_video_ptr): Likewise.
50696 (grub_video_vbe_get_pixel): Likewise
50697 (grub_video_vbe_init): Likewise.
50698 (grub_video_vbe_fini): Likewise.
50699 (grub_video_vbe_setup): Likewise.
50700 (grub_video_vbe_get_info): Likewise.
50701 (grub_video_vbe_set_palette): Likewise.
50702 (grub_video_vbe_get_palette): Likewise.
50703 (grub_video_vbe_set_viewport): Likewise.
50704 (grub_video_vbe_get_viewport): Likewise.
50705 (grub_video_vbe_map_color): Likewise.
50706 (grub_video_vbe_map_rgb): Likewise.
50707 (grub_video_vbe_map_rgba): Likewise.
50708 (grub_video_vbe_unmap_color): Likewise.
50709 (grub_video_vbe_fill_rect): Likewise.
50710 (grub_video_vbe_blit_glyph): Likewise.
50711 (grub_video_vbe_blit_bitmap): Likewise.
50712 (grub_video_vbe_blit_render_target): Likewise.
50713 (grub_video_vbe_scroll): Likewise.
50714 (grub_video_vbe_swap_buffers): Likewise.
50715 (grub_video_vbe_create_render_target): Likewise.
50716 (grub_video_vbe_delete_render_target): Likewise.
50717 (grub_video_vbe_set_active_render_target): Likewise.
50718 (grub_vbe_set_pixel_rgb): Remove function.
50719 (grub_vbe_set_pixel_index): Likewise.
50720 (index_color_mode): Remove static variable.
50721 (active_mode): Likewise.
50722 (framebuffer): Likewise.
50723 (bytes_per_scan_line): Likewise.
50724 (grub_video_vbe_adapter): Added new static variable.
50725 (framebuffer): Likewise.
50726 (render_target): Likewise.
50727 (initial_mode): Likewise.
50728 (mode_in_use): Likewise.
50729 (mode_list): Likewise.
50731 2006-03-10 Marco Gerards <marco@gnu.org>
50733 * configure.ac (AC_INIT): Bumped to 1.93.
50735 * DISTLIST: Added `include/grub/hfs.h'.
50737 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50739 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50740 18H, which might help the BIOS falling back to next boot media.
50742 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50744 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50745 Poe Chen <poe.poechen@gmail.com>.
50747 2006-01-17 Marco Gerards <marco@gnu.org>
50749 * include/grub/normal.h: Include <grub/script.h>.
50750 (grub_command_list): Removed struct.
50751 (grub_command_list_t): Removed type.
50752 (grub_menu_entry): Remove members `num' and `command_list'. Add
50753 members `commands' and `sourcecode'.
50754 * include/grub/script.h: Add inclusion guards.
50755 (grub_script_cmd_menuentry): New struct.
50756 (grub_script_execute_menuentry): New prototype.
50757 (grub_script_lexer_record_start): Likewise.
50758 (grub_script_lexer_record_stop): Likewise.
50759 * normal/execute.c (grub_script_execute_menuentry): New function.
50760 * normal/lexer.c (record, recording, recordpos, recordlen): New
50762 (grub_script_lexer_record_start): New function.
50763 (grub_script_lexer_record_stop): Likewise.
50764 (recordchar): Likewise.
50765 (nextchar): Likewise.
50766 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50767 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50768 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50769 (current_menu): New variable.
50770 (free_menu): Mainly rewritten.
50771 (grub_normal_menu_addentry): New function.
50772 (read_config_file): Rewritten.
50773 * normal/menu.c (run_menu_entry): Mainly rewritten.
50774 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50776 (run): Mainly rewritten.
50777 * normal/parser.y (menu_entry): New variable.
50778 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50779 (menuentry): New rule.
50780 (command): Add `menuentry'.
50781 (if_statement): Allow additional returns before `fi'.
50782 * normal/script.c (grub_script_create_cmdmenu): New function.
50784 2006-01-03 Marco Gerards <marco@gnu.org>
50786 * INSTALL: GNU Bison is required.
50787 * configure.ac: Rewritten the test to detect Bison.
50788 * Makefile.in (YACC): New variable. Reported by Xun Sun
50789 <xun.sun.cn@gmail.com>.
50791 2006-01-03 Marco Gerards <marco@gnu.org>
50793 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50794 the HFS+ filesystem to filesystem blocks.
50795 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50796 GCC warning is silenced.
50798 2006-01-03 Marco Gerards <marco@gnu.org>
50800 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50801 read from disk from big endian to host byte order.
50803 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50805 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50807 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50808 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50809 embedded HFS+ filesystem.
50810 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50811 (grub_hfs_sblock): Move from here...
50812 * include/grub/hfs.h: To here... New file.
50813 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50815 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50817 (grub_hfsplus_volheader): Change type of member `magic' to
50819 (grub_hfsplus_data): Add new member `embedded_offset'.
50820 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50822 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50823 Calculate the offset.
50825 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50827 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50829 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50831 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50833 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50834 ENV->NAME is NULL after allocating ENV->VALUE.
50836 2005-12-25 Marco Gerards <marco@gnu.org>
50838 * kern/env.c (grub_env_set): Rewritten the error handling code.
50840 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50842 * geninit.sh: Made more robust, and more portable.
50844 2005-12-25 Marco Gerards <marco@gnu.org>
50846 Add support for Apple HFS+ filesystems.
50848 * fs/hfsplus.c: New file.
50850 * DISTLIST: Added `fs/hfsplus.c'.
50852 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50853 (hfsplus_mod_SOURCES): New variable.
50854 (hfsplus_mod_CFLAGS): Likewise.
50855 (hfsplus_mod_LDFLAGS): Likewise.
50856 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50857 (grub_setup_SOURCES): Likewise.
50858 (grub_mkdevicemap_SOURCES): Likewise.
50859 (grub_emu_SOURCES): Likewise.
50860 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50862 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50864 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50866 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50868 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50869 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50870 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50871 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50872 normal/lexer.c, normal/parser.y, normal/script.c, and
50874 Removed kern/sparc64/cache.c.
50876 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50877 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50880 * configure.ac (AC_INIT): Bumped to 1.92.
50882 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50884 * kern/err.c (grub_error_push): Added new function to support error
50886 (grub_error_pop): Likewise.
50887 (grub_error_stack_items): New local variable to support error stacks.
50888 (grub_error_stack_pos): Likewise.
50889 (grub_error_stack_assert): Likewise.
50890 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50892 (grub_print_error): Added support to print errors from error stack.
50894 * include/grub/err.h (grub_error_push): Added function prototype.
50895 (grub_error_pop): Likewise.
50897 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50899 * configure.ac: Accept `powerpc64' as host_cpu.
50900 (amd64): Rename to `biarch32'.
50902 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50903 non-cacheline-aligned addresses.
50905 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50906 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50907 if `size' is non-zero.
50909 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
50911 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50912 and `cd' to make sure the filename is not prefixed with a
50914 (pkgdata_MODULES): Add `gpt.mod'.
50915 (gpt_mod_SOURCES): New variable.
50916 (gpt_mod_CFLAGS): Likewise.
50917 (gpt_mod_LDFLAGS): Likewise.
50919 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50921 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50924 * partmap/gpt.c: New file.
50926 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
50927 GPT partition map is detected.
50929 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
50931 * commands/i386/pc/play.c: New file.
50932 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
50933 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
50936 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
50938 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
50939 ((unused))' to silence gcc warning.
50941 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
50943 * configure.ac: Correct `AC_PROG_YACC' test.
50945 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50947 * util/powerpc/ieee1275/grub-install.in: Run the mount point
50948 check before installing files.
50950 2005-11-22 Mike Small <smallm@panix.com>
50952 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
50953 number regex so multidigit numbers are recognized correctly.
50955 2005-11-22 Mike Small <smallm@panix.com>
50957 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
50958 debugging message before attempting to claim memory.
50959 (grub_rescue_cmd_initrd): Add a claim debugging message and try
50960 multiple addresses in case of failure.
50962 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50964 * term/tparm.c (get_space): Remove empty `if' statement.
50966 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
50968 * kern/parser.c (check_varstate): Rename `state' to 's'.
50970 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50972 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
50973 variable definitions to the beginning of each function. Sort stack
50975 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
50976 `buf' argument to `char *'.
50978 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50980 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
50981 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
50982 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
50983 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
50984 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
50985 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
50986 configfile.mod, search.mod, gzio.mod and test.mod.
50987 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
50988 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
50989 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
50990 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
50991 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
50992 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
50993 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
50994 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
50995 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
50996 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
50997 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50998 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50999 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51000 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51001 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51002 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51003 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51004 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51005 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51006 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51007 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51008 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51009 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51011 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51013 (pkgdata_MODULES): Add test.mod.
51015 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51017 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51018 appending to variables with "+=".
51019 (PModule): Use full pathname to generate *.lst filenames.
51021 * Makefile.in: Fixed list rules moved from genmk.rb.
51022 (.DELETE_ON_ERROR): New special target.
51023 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51025 * conf/i386-pc.rmk: Include conf/common.mk.
51026 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51027 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51028 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51029 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51030 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51031 configfile.mod, search.mod, gzio.mod and test.mod.
51032 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51033 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51034 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51035 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51036 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51037 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51038 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51039 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51040 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51041 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51042 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51043 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51044 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51045 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51046 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51047 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51048 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51049 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51050 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51051 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51052 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51053 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51054 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51056 * conf/common.rmk: ... to here. New file.
51058 * conf/common.mk: New file.
51060 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51062 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51063 (grub_script.tab.c): ... here.
51065 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51066 (grub_script.tab.c): ... here.
51068 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51069 (grub_script.tab.c): ... here.
51071 * normal/command.c (grub_command_find): Fixed a memory leak of
51072 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51074 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51076 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51077 "@" which marks the start of a comment on ARM.
51078 (VARIABLE): Likewise.
51080 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51082 Add support for Linux/ADFS partition tables.
51084 * partmap/acorn.c: New file.
51086 * include/grub/acorn_filecore.h: Likewise.
51088 * DISTLIST: Added `partmap/acorn.c' and
51089 `include/grub/acorn_filecore.h'.
51091 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51093 (pkgdata_MODULES): Add `acorn.mod'.
51094 (acorn_mod_SOURCES): New variable.
51095 (acorn_mod_CFLAGS): Likewise.
51097 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51099 (pkgdata_MODULES): Add `acorn.mod'.
51100 (acorn_mod_SOURCES): New variable.
51101 (acorn_mod_CFLAGS): Likewise.
51103 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51104 (pkgdata_MODULES): Add `acorn.mod'.
51105 (acorn_mod_SOURCES): New variable.
51106 (acorn_mod_CFLAGS): Likewise.
51107 (acorn_mod_LDFLAGS): Likewise.
51109 * include/types.h (grub_disk_addr_t): New typedef.
51111 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51113 * geninit.sh: New file.
51115 * geninitheader.sh: Likewise.
51117 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51118 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51119 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51120 * commands/configfile.c (grub_configfile_init)
51121 (grub_configfile_fini): Likewise.
51122 * commands/default.c (grub_default_init, grub_default_fini):
51124 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51125 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51126 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51127 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51129 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51130 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51132 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51133 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51135 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51137 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51139 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51140 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51141 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51142 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51143 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51144 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51145 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51146 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51147 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51148 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51149 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51150 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51151 * partmap/amiga.c (grub_amiga_partition_map_init)
51152 (grub_amiga_partition_map_fini): Likewise.
51153 * partmap/apple.c (grub_apple_partition_map_init)
51154 (grub_apple_partition_map_fini): Likewise.
51155 * partmap/pc.c (grub_pc_partition_map_init)
51156 (grub_pc_partition_map_fini): Likewise.
51157 * partmap/sun.c (grub_sun_partition_map_init,
51158 grub_sun_partition_map_fini): Likewise.
51159 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51162 * util/grub-emu.c: Include <grub_modules_init.h>.
51163 (main): Don't initialize and de-initialize any modules directly,
51164 use `grub_init_all' and `grub_fini_all' instead.
51166 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51167 `grub_vesafb_mod_init'.
51168 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51170 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51171 `grub_vga_mod_init'. Updated all users.
51172 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51174 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51175 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51178 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51179 Generate a function to initialize the module in utilities.
51180 Updated all callers.
51181 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51182 initialize the module in utilities. Updated all callers.
51184 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51186 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51187 escape sequence and a literal ^L to clear the screen.
51189 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51190 when returning from Open Firmware.
51192 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51194 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51195 (grub_ofconsole_height): Likewise.
51196 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51197 manually insert a '\n'.
51198 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51199 `grub_ofconsole_height'. Return early if these are already set.
51201 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51203 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51204 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51205 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51206 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51207 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 (test_mod_LDFLAGS): Likewise.
51213 (pkgdata_MODULES): Add `test.mod'.
51214 (grub_script.tab.c): New rule.
51215 (grub_script.tab.h): Likewise.
51217 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51219 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51220 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51221 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51222 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51223 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51224 (test_mod_SOURCES): New variable.
51225 (test_mod_CFLAGS): Likewise.
51226 (pkgdata_MODULES): Add `test.mod'.
51227 (grub_script.tab.c): New rule.
51228 (grub_script.tab.h): Likewise.
51230 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51232 Add initial scripting support.
51234 * commands/test.c: New file.
51235 * include/grub/script.h: Likewise.
51236 * normal/execute.c: Likewise.
51237 * normal/function.c: Likewise.
51238 * normal/lexer.c: Likewise.
51239 * normal/parser.y: Likewise.
51240 * normal/script.c: Likewise.
51242 * configure.ac: Add `AC_PROG_YACC' test.
51244 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51245 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51246 `normal/function.c' and `normal/script.c'.
51247 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51248 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51249 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51251 (pkgdata_MODULES): Add `test.mod'.
51252 (grub_script.tab.c): New rule.
51253 (grub_script.tab.h): Likewise.
51255 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51257 * include/grub/normal.h (grub_test_init): New prototype.
51258 (grub_test_fini): Likewise.
51260 * normal/command.c: Include <grub/script.h>.
51261 (grub_command_execute): Rewritten.
51263 * util/grub-emu.c (main): Call `grub_test_init' and
51266 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51268 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51270 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51271 there are no pending characters.
51273 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51275 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51276 `grub_strndup' to drop device arguments. Replace unnecessary
51277 `grub_strndup' with `grub_strdup'.
51279 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51281 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51282 `debug' environment variable has been set.
51284 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51286 * Makefile.in (install-local): Use $(DATA).
51287 (uninstall): Likewise.
51288 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51289 (sbin_UTILITIES): ... to here.
51290 (sbin_SCRIPTS): New variable.
51291 (grub_install_SOURCES): New variable.
51292 * util/powerpc/ieee1275/grub-install.in: New file.
51293 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51295 (add_segments): Call `grub_util_get_path'.
51297 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51299 From Timothy Baldwin:
51300 * commands/ls.c (grub_ls_list_files): Close FILE with
51302 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51304 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51306 * include/grub/parser.h: New file.
51308 * kern/parser.c: Likewise.
51310 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51311 (grub_setup_SOURCES): Likewise.
51312 (grub_probefs_SOURCES): Likewise.
51313 (grub_emu_SOURCES): Likewise.
51314 (kernel_img_HEADERS): Add `parser.h'.
51316 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51317 (grub_emu_SOURCES): Add `kern/parser.c'.
51318 (grubof_SOURCES): Likewise.
51320 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51321 (grubof_SOURCES): Add `kern/parser.c'.
51323 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51325 * kern/misc.c (grub_split_cmdline): Removed function.
51327 * kern/rescue.c: Include <grub/parser.h>.
51328 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51329 of `grub_split_cmdline'.
51331 * normal/command.c: Include <grub/parser.h>.
51332 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51333 of `grub_split_cmdline'.
51335 * normal/completion.c: Include <grub/parser.h>.
51336 (cmdline_state): New variable.
51337 (iterate_dir): End the filename with a quote depending on the
51338 command line state.
51339 (get_state): new function.
51340 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51341 split the arguments and determine the current argument. When the
51342 argument string is not quoted, escape all spaces.
51344 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51346 * normal/sparc64/setjmp.S: New file.
51348 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51350 * include/grub/sparc64/libgcc.h: New file.
51351 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51352 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51353 normal/sparc64/setjmp.c.
51355 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51357 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51358 * kern/sparc64/cache.S: New file.
51359 * kern/sparc64/cache.c: Removed.
51360 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51361 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51363 (COMMON_LDFLAGS): Add -melf64_sparc.
51364 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51365 (grubof_SOURCES): Use cache.S instead of cache.c.
51366 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51367 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51368 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51370 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51371 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51372 (linux_mod_CFLAGS): Commented out.
51373 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51374 out because module isn't built.
51375 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51376 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51377 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51378 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51379 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51380 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51381 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51382 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51383 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51384 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51385 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51386 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51387 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51388 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51390 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51392 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51393 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51394 longer, because HFS should not be used on PC.
51396 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51398 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51399 consistently within the loop.
51401 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51403 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51404 directory can not be read.
51406 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51408 * configure.ac (AC_INIT): Increase the version number to 1.91.
51410 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51411 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51412 term/i386/pc/serial.c.
51414 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51416 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51417 file size must be permitted.
51419 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51420 between %ah and %al.
51422 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51424 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51426 Call the hook with a NUL-terminated filename.
51427 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51430 * kern/term.c (cursor_state): New variable.
51431 (grub_term_set_current): Reset the cursor state on a new
51433 (grub_setcursor): Rewritten to use CURSOR_STATE.
51434 (grub_getcursor): New function.
51436 * include/grub/term.h (grub_getcursor): New prototype.
51438 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51439 integers on ARM. Reported by Timothy Baldwin
51440 <T.E.Baldwin99@members.leeds.ac.uk>.
51442 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51444 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51446 (grub_sfs_dir): Likewise.
51448 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51450 Add support for the SFS filesystem.
51452 * fs/sfs.c: New file.
51454 * DISTLIST: Added `fs/sfs.c'.
51456 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51457 (grub_probefs_SOURCES): Likewise.
51458 (grub_emu_SOURCES): Likewise.
51459 (pkgdata_MODULES): Add `sfs.mod'.
51460 (sfs_mod_SOURCES): New variable.
51461 (sfs_mod_CFLAGS): Likewise.
51462 (sfs_mod_LDFLAGS): Likewise.
51464 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51465 (pkgdata_MODULES): Add `sfs.mod'.
51466 (sfs_mod_SOURCES): New variable.
51467 (sfs_mod_CFLAGS): Likewise.
51469 * util/grub-emu.c (main): Call `grub_sfs_init' and
51472 * include/grub/fs.h (grub_sfs_init): New prototype.
51473 (grub_sfs_fini): Likewise.
51475 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51477 Add support for the AFFS filesystem.
51479 * fs/affs.c: New file.
51481 * DISTLIST: Added `fs/affs.c'.
51483 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51484 (grub_probefs_SOURCES): Likewise.
51485 (grub_emu_SOURCES): Likewise.
51486 (pkgdata_MODULES): Add `affs.mod'.
51487 (affs_mod_SOURCES): New variable.
51488 (affs_mod_CFLAGS): Likewise.
51489 (affs_mod_LDFLAGS): Likewise.
51491 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51492 (pkgdata_MODULES): Add `affs.mod'.
51493 (affs_mod_SOURCES): New variable.
51494 (affs_mod_CFLAGS): Likewise.
51496 * util/grub-emu.c (main): Call `grub_affs_init' and
51499 * include/grub/fs.h (grub_affs_init): New prototype.
51500 (grub_affs_fini): Likewise.
51502 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51504 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51506 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51508 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51511 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51514 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51515 (COMMON_LDFLAGS): New variable.
51516 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51517 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51518 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51519 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51520 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51521 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51522 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51523 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51524 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51525 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51526 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51527 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51528 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51529 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51530 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51532 (normal_mod_ASFLAGS): Add `-m32'.
51534 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51535 (grub_host_size_t, grub_host_ssize_t): New types.
51536 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51537 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51538 `GRUB_HOST_SIZEOF_VOID_P'.
51540 * include/grub/kernel.h (struct grub_module_header): Type of
51541 member offset changed to `grub_host_off_t'. Type of member size
51542 changed to `grub_host_size_t'.
51543 (struct grub_module_info): Type of member offset changed to
51544 `grub_host_off_t'. Type of member size changed to
51545 `grub_host_size_t'.
51547 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51549 Make GRUB's kernel compliant to Multiboot Specification.
51551 * kern/i386/pc/startup.S (multiboot_header): New label.
51552 (multiboot_entry): Likewise.
51553 (multiboot_trampoline): Likewise.
51555 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51556 Increased to 0x4A0.
51558 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51559 put parentheses after a question mark.
51560 [!GRUB_UTIL] (my_mod): New variable.
51562 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51564 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51566 Adds support for the XFS filesystem. Btrees are not supported
51569 * fs/xfs.c: New file.
51571 * DISTLIST: Added `fs/xfs.c'.
51573 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51574 (grub_probefs_SOURCES): Likewise.
51575 (grub_emu_SOURCES): Likewise.
51576 (pkgdata_MODULES): Add `xfs.mod'.
51577 (xfs_mod_SOURCES): New variable.
51578 (xfs_mod_CFLAGS): Likewise.
51580 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51581 (pkgdata_MODULES): Add `xfs.mod'.
51582 (xfs_mod_SOURCES): New variable.
51583 (xfs_mod_CFLAGS): Likewise.
51585 * util/grub-emu.c (main): Call `grub_xfs_init' and
51588 * include/grub/fs.h (grub_xfs_init): New prototype.
51589 (grub_xfs_fini): Likewise.
51592 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51594 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51595 color modes, allow greater than 16 colors to be configured as
51598 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51600 * normal/completion.c (complete_arguments): Add the qualifier
51601 const into OPTIONS.
51603 From Omniflux <omniflux+lists@omniflux.com>:
51604 * include/grub/terminfo.h: New file.
51605 * include/grub/tparm.h: Likewise.
51606 * include/grub/i386/pc/serial.h: Likewise.
51607 * term/terminfo.c: Likewise.
51608 * term/tparm.c: Likewise.
51609 * term/i386/pc/serial.c: Likewise.
51610 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51612 (terminfo_mod_SOURCES): New variable.
51613 (terminfo_mod_CFLAGS): Likewise.
51614 (serial_mod_SOURCES): Likewise.
51615 (serial_mod_CFLAGS): Likewise.
51617 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51619 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51620 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51621 and kern/powerpc/ieee1275/cmain.c, respectively.
51623 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51624 * kern/powerpc/ieee1275/crt0.S: ... here.
51626 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51627 * kern/powerpc/ieee1275/cmain.c: ... here.
51629 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51630 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51631 instead of boot/powerpc/ieee1275/crt0.S and
51632 boot/powerpc/ieee1275/cmain.c, respectively.
51634 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51635 sectors. It was not used anyway.
51637 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51639 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51640 `unused parameter' warning.
51642 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51644 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51646 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51649 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51651 * include/grub/normal.h (enum grub_completion_type): Added
51652 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51654 * normal/cmdline.c (print_completion): Handle
51655 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51656 * normal/menu_entry.c (store_completion): Likewise.
51658 * normal/completion.c (complete_arguments): New function.
51659 (grub_normal_do_completion): Call `complete_arguments' when the
51660 current words start with a dash.
51662 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51664 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51665 `gzio.mod' instead of `io.mod').
51667 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51669 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51670 (DISTDIRS): Added io and video.
51671 Rewrite the search routine to make an output consistently.
51673 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51674 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51675 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51676 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51677 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51678 util/powerpc/ieee1275/misc.c.
51680 * include/grub/gzio.h: New file.
51681 * io/gzio.c: Likewise.
51683 * kern/file.c (grub_file_close): Call grub_device_close only if
51684 FILE->DEVICE is not NULL.
51686 * include/grub/mm.h [!NULL] (NULL): New macro.
51688 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51691 (pkgdata_MODULES): Added gzio.mod.
51692 (gzio_mod_SOURCES): New variable.
51693 (gzio_mod_CFLAGS): Likewise.
51695 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51696 (pkgdata_MODULES): Added gzio.mod.
51697 (gzio_mod_SOURCES): New variable.
51698 (gzio_mod_CFLAGS): Likewise.
51700 * commands/cat.c: Include grub/gzio.h.
51701 (grub_cmd_cat): Use grub_gzfile_open instead of
51704 * commands/cmp.c: Include grub/gzio.h.
51705 (grub_cmd_cmp): Use grub_gzfile_open instead of
51708 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51709 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51711 (grub_rescue_cmd_module): Likewise.
51713 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51715 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51716 kern/sparc64/ieee1275/init.c because it contains _start.
51717 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51719 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51721 * configure.ac: Add support for sparc64 host with ieee1275
51723 * configure: Generated from configure.ac.
51724 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51726 (grub_ofdisk_read): Likewise.
51727 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51728 pointers as (void *) to remove a warning.
51729 (grub_ofdisk_close): Likewise.
51730 (grub_ofdisk_read): Likewise.
51731 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51732 returns, so make it return void to remove a warning.
51733 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51734 Corresponding prototype change.
51735 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51736 values, and cast the pointers as (void *) to remove a warning.
51737 (grub_mm_dump): Likewise.
51738 * conf/sparc64-ieee1275.mk: New file.
51739 * conf/sparc64-ieee1275.rmk: Likewise.
51740 * include/grub/sparc64/setjmp.h: Likewise.
51741 * include/grub/sparc64/types.h: Likewise.
51742 * include/grub/sparc64/ieee1275/console.h: Likewise.
51743 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51744 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51745 * include/grub/sparc64/ieee1275/time.h: Likewise.
51746 * kern/sparc64/cache.c: Likewise.
51747 * kern/sparc64/dl.c: Likewise.
51748 * kern/sparc64/ieee1275/init.c: Likewise.
51749 * kern/sparc64/ieee1275/openfw.c: Likewise.
51751 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51753 * util/console.c (grub_ncurses_putchar): If C is greater than
51754 0x7f, set C to a question mark.
51755 (grub_ncurses_getcharwidth): New function.
51756 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51759 * normal/menu.c (print_entry): Made aware of Unicode. First,
51760 convert TITLE to UCS-4, and predict the cursor position by
51763 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51765 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51767 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51769 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51770 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51773 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51774 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51775 grub_strcpy and grub_strlen. Take it into account that a space
51776 character is inserted as a delimiter.
51778 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51780 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51781 invalid magic in the error.
51783 * commands/search.c: New file.
51785 * util/grub-emu.c (main): Call grub_search_init and
51788 * kern/rescue.c (grub_rescue_print_disks): Removed.
51789 (grub_rescue_print_devices): New function.
51790 (grub_rescue_cmd_ls): Use grub_device_iterate with
51791 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51792 grub_rescue_print_disks.
51794 * kern/partition.c (grub_partition_iterate): Return the result of
51795 PARTMAP->ITERATE instead of GRUB_ERRNO.
51797 * kern/device.c: Include grub/partition.h.
51798 (grub_device_iterate): New function.
51800 * include/grub/partition.h (grub_partition_iterate): Return int
51801 instead of grub_err_t.
51803 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51805 [GRUB_UTIL] (grub_search_fini): Likewise.
51807 * include/grub/device.h (grub_device_iterate): New prototype.
51809 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51811 (pkgdata_MODULES): Added search.mod.
51812 (search_mod_SOURCES): New variable.
51813 (search_mod_CFLAGS): Likewise.
51815 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51816 (pkgdata_MODULES): Added search.mod.
51817 (search_mod_SOURCES): New variable.
51818 (search_mod_CFLAGS): Likewise.
51820 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51821 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51822 All callers changed.
51824 * DISTLIST: Added commands/search.c.
51826 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51828 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51830 (grub_getcharwidth): New function.
51832 * kern/misc.c (grub_utf8_to_ucs4): New function.
51834 * include/grub/term.h (struct grub_term): Added a new member
51836 (grub_getcharwidth): New prototype.
51838 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51840 * term/i386/pc/console.c (map_char): New function. Segregated from
51841 grub_console_putchar.
51842 (grub_console_putchar): Use map_char.
51843 (grub_console_getcharwidth): New function.
51844 (grub_console_term): Specified grub_console_getcharwidth as
51847 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51848 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51850 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51852 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51853 on grub_strtoul completely.
51854 (write_char): Declare local variables in the beginning of the
51856 (grub_vesafb_getcharwidth): New function.
51857 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51860 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51862 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51863 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51864 commands/i386/pc/vbetest.c.
51866 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51867 call grub_vbe_get_controller_info again, because the returned
51868 information is volatile.
51869 (grub_vbe_set_video_mode): Mostly rewritten.
51870 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51871 grub_vbe_status_t correctly.
51872 (grub_vbe_get_video_mode_info): Likewise.
51873 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51874 several if statements.
51876 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51877 * commands/i386/pc/vbeinfo.c: ... this.
51879 * commands/i386/pc/vbe_test.c: Renamed to ...
51880 * commands/i386/pc/vbetest.c: ... this.
51882 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51884 (grub_cmd_vbeinfo): ... this. Save video modes before
51885 iterating. Skip a video mode, if it is not available, not enough
51886 information is given or it is monochrome. Show the memory
51887 model. Leave the interpretation of MODEVAR to grub_strtoul
51889 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51890 (GRUB_MOD_FINI): Likewise.
51892 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51893 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51894 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51895 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51896 grub_strtoul completely.
51897 (real2pm): Removed.
51898 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51899 (GRUB_MOD_FINI): Likewise.
51901 * normal/misc.c: Include grub/mm.h.
51903 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51904 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51905 (vbe_list_modes_mod_SOURCES): Removed.
51906 (vbe_list_modes_mod_CFLAGS): Likewise.
51907 (vbe_test_mod_SOURCES): Likewise.
51908 (vbe_test_mod_CFLAGS): Likewise.
51909 (vbeinfo_mod_SOURCES): New variable.
51910 (vbeinfo_mod_CFLAGS): Likewise.
51911 (vbetest_mod_SOURCES): Likewise.
51912 (vbetest_mod_CFLAGS): Likewise.
51914 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51916 * normal/misc.c: New file.
51918 * DISTLIST: Added normal/misc.c.
51920 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51921 DISK to HOOK. Call HOOK with DISK.
51922 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51923 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51924 * partmap/sun.c (sun_partition_map_iterate): Likewise.
51926 * normal/menu_entry.c (struct screen): Added a new member
51927 "completion_shown".
51928 (completion_buffer): New global variable.
51929 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
51930 (store_completion): New function.
51931 (complete): Likewise.
51932 (clear_completions): Likewise.
51933 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
51934 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
51935 a tab, call complete.
51937 * normal/completion.c (disk_dev): Removed.
51938 (print_simple_completion): Likewise.
51939 (print_partition_completion): Likewise.
51940 (print_func): New global variable.
51941 (add_completion): Do not take the arguments WHAT or PRINT any
51942 longer. Added a new argument TYPE. Instead of printing directly,
51943 call PRINT_FUNC if not NULL.
51944 All callers changed.
51945 (complete_device): Use a local variable DEV instead of
51946 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
51947 (grub_normal_do_completion): Take a new argument HOOK. Do not
51948 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
51949 empty string, return NULL instead.
51950 All callers changed.
51952 * normal/cmdline.c (print_completion): New function.
51954 * kern/partition.c (grub_partition_iterate): Add an argument DISK
51956 All callers changed.
51958 * kern/disk.c (grub_print_partinfo): Removed.
51960 * include/grub/partition.h (struct grub_partition_map): Add a new
51961 argument DISK into HOOK of ITERATE.
51962 (grub_partition_iterate): Add a new argument DISK to HOOK.
51964 * include/grub/normal.h (enum grub_completion_type): New enum.
51965 (grub_completion_type_t): New type.
51966 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
51967 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
51968 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
51969 (GRUB_COMPLETION_TYPE_FILE): Likewise.
51970 (grub_normal_do_completion): Added a new argument HOOK.
51971 (grub_normal_print_device_info): New prototype.
51973 * include/grub/disk.h (grub_print_partinfo): Removed.
51975 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
51976 (normal_mod_SOURCES): Likewise.
51977 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51978 (normal_mod_SOURCES): Likewise.
51980 * commands/ls.c (grub_ls_list_disks): Use
51981 grub_normal_print_device_info instead of grub_print_partinfo. Free
51983 (grub_ls_list_files): Use grub_normal_print_device_info instead of
51984 duplicating the code.
51986 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
51988 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
51989 follow GCS more precisely.
51990 * commands/i386/pc/vbe_test.c: Likewise.
51991 * include/grub/i386/pc/vbe.h: Likewise.
51992 * term/i386/pc/vesafb.c: Likewise.
51993 * video/i386/pc/vbe.c: Likewise.
51995 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
51997 * DISTLIST: Added term/i386/pc/vesafb.c
51998 DISTLIST: Added video/i386/pc/vbe.c
51999 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52000 DISTLIST: Added commands/i386/pc/vbe_test.c.
52001 * commands/i386/pc/vbe_list_modes.c: New file.
52002 * commands/i386/pc/vbe_test.c: Likewise.
52003 * term/i386/pc/vesafb.c: Likewise.
52004 * video/i386/pc/vbe.c: Likewise.
52005 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52006 (grub_vbe_probe) Added prototype.
52007 (grub_vbe_set_video_mode) Likewise.
52008 (grub_vbe_get_video_mode) Likewise.
52009 (grub_vbe_get_video_mode_info) Likewise.
52010 (grub_vbe_set_pixel_rgb) Likewise.
52011 (grub_vbe_set_pixel_index) Likewise.
52012 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52013 (pkgdata_MODULES): Added vesafb.mod.
52014 (pkgdata_MODULES): Added vbe_list_modes.mod.
52015 (pkgdata_MODULES): Added vbe_test.mod.
52016 (vbe_mod_SOURCES): Added.
52017 (vbe_mod_CFLAGS): Likewise.
52018 (vesafb_mod_SOURCES): Likewise.
52019 (vesafb_mod_CFLAGS): Likewise.
52020 (vbe_list_modes_mod_SOURCES): Likewise.
52021 (vbe_list_modes_mod_CFLAGS): Likewise.
52022 (vbe_test_mod_SOURCES): Likewise.
52023 (vbe_test_mod_CFLAGS): Likewise.
52025 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52027 * normal/command.c (grub_command_execute): If INTERACTIVE is
52028 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52029 CMDLINE. Disable the pager if INTERACTIVE is true.
52030 All callers are changed.
52032 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52033 before reading a config file.
52034 * normal/main.c (read_config_file): Even if a command is not
52035 found, register it if it is within an entry.
52037 * util/grub-emu.c: Include sys/types.h and unistd.h.
52038 (options): Added --hold.
52039 (struct arguments): Added a new member "hold".
52040 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52042 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52043 cleared by a debugger, if it is not zero.
52045 * include/grub/normal.h (grub_command_execute): Add an argument
52048 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52050 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52052 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52054 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52055 program with another one, because the old one didn't detect a bug
52056 in gcc-3.4. Always use regparm 2, because the new test is still
52057 not enough for gcc-4.0. Someone must investigate a simple test
52058 case which detects a bug in gcc-4.0.
52060 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52062 * DISTLIST: Added normal/completion.c.
52064 * normal/completion.c: New file.
52066 * term/i386/pc/console.c (grub_console_getwh): New function.
52067 (grub_console_term): Assign grub_console_getwh to getwh.
52069 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52070 function is defined in normal/completion.c as
52071 grub_normal_do_completion.
52072 (grub_cmdline_get): Use grub_normal_do_completion instead of
52075 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52076 returns non-zero, otherwise return 0.
52077 (grub_partition_iterate): First, probe the partition map. Then,
52078 call ITERATE only for this partition map.
52080 * kern/misc.c (grub_strncmp): Rewritten.
52082 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52083 returns non-zero. Otherwise return 0.
52085 * include/grub/partition.h (grub_partition_map_iterate): Return
52086 int instead of void.
52088 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52090 * include/grub/misc.h (grub_strncmp): Change the type of N to
52093 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52096 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52097 unsigned explicitly before comparing it with I.
52099 * kern/main.c (grub_env_write_root): Add the attribute unused into
52102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52103 normal/completion.c.
52104 (normal_mod_SOURCES): Likewise.
52105 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52106 (normal_mod_SOURCES): Likewise.
52108 * normal/command.c (grub_iterate_commands): If ITERATE returns
52109 non-zero, return one immediately.
52111 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52113 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52114 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52116 (grub_vbe_get_controller_info): New function.
52117 (grub_vbe_get_mode_info): Likewise.
52118 (grub_vbe_set_mode): Likewise.
52119 (grub_vbe_get_mode): Likewise.
52120 (grub_vbe_set_memory_window): Likewise.
52121 (grub_vbe_get_memory_window): Likewise.
52122 (grub_vbe_set_scanline_length): Likewise.
52123 (grub_vbe_get_scanline_length): Likewise.
52124 (grub_vbe_set_display_start): Likewise.
52125 (grub_vbe_get_display_start): Likewise.
52126 (grub_vbe_set_palette_data): Likewise.
52127 * include/grub/i386/pc/vbe.h: New file.
52129 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52131 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52132 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52133 * DISTLIST: Likewise.
52134 * kern/ieee1275/of.c: Moved to ...
52135 * kern/ieee1275/ieee1275.c: ... here.
52137 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52139 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52140 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52141 Pass 0 as `end' parameter to grub_strtoul().
52143 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52145 * include/grub/powerpc/ieee1275/console.h: Do not include
52146 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52148 (grub_console_cur_color): Remove i386-specific prototype.
52149 (grub_console_real_putchar): Likewise.
52150 (grub_console_checkkey): Likewise.
52151 (grub_console_getkey): Likewise.
52152 (grub_console_getxy): Likewise.
52153 (grub_console_gotoxy): Likewise.
52154 (grub_console_cls): Likewise.
52155 (grub_console_setcursor): Likewise.
52156 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52157 Include <grub/machine/console.h>.
52158 * term/ieee1275/ofconsole.c: Likewise.
52160 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52162 * Makefile.in (LIBLZO): New variable.
52164 * configure.ac: Check for LZO version 2.
52166 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52167 lzo/lzo1x.h instead of lzo1x.h.
52169 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52172 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52173 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52175 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52176 copying the data from PARTITION to P.
52178 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52180 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52181 negative, unload the module.
52183 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52184 map is "pc_partition_map" but not "pc".
52185 (usage): Fix the description. The options are --boot-image and
52186 --core-image but not --boot-file or --core-file.
52187 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52188 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52191 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52192 --core-file. Specify INSTALL_DEVICE as an argument.
52194 * util/console.c: Include config.h.
52195 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52196 [HAVE_NCURSES_H]: Include ncurses.h.
52197 [HAVE_CURSES_H]: Include curses.h.
52198 [!A_NORMAL] (A_NORMAL): Defined as zero.
52199 [!A_STANDOUT] (A_STANDOUT): Likewise.
52201 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52203 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52205 * configure.ac: Check for curses libraries and headers.
52207 * Makefile.in (LIBCURSES): New variable.
52209 * genmk.rb (Script::rule): Set the executable bits.
52211 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52212 name of the PC partition map is "pc_partition_map" but not "pc".
52214 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52216 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52217 (modules): Likewise.
52218 (usage): Added descriptions for --modules and --grub-probefs.
52219 Handle --modules and --grub-probefs. Save the arguments in MODULES
52220 and GRUB_PROBEFS, respectively.
52221 Auto-detect a filesystem module against GRUBDIR. If the result is
52222 empty and modules are not specified explicitly, abort the
52223 installation. Add the result to MODULES.
52225 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52226 disk/powerpc/ieee1275/ofdisk.c,
52227 include/grub/powerpc/ieee1275/init.h and
52228 term/powerpc/ieee1275/ofconsole.c.
52229 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52230 term/ieee1275/ofconsole.c.
52232 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52234 * COPYING: Upgraded to the latest version. Only the address of the
52235 FSF office has changed.
52237 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52239 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52240 kern/ieee1275.c with kern/ieee1275/of.c.
52242 * kern/ieee1275.c: Moved to ...
52243 * kern/ieee1275/of.c: ... here.
52245 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52247 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52250 * config.guess: Updated to the latest version from gnulib.
52251 * config.sub: Likewise.
52252 * install.sh: Likewise.
52253 * mkinstalldirs: Likewise.
52255 * include/grub/console.h: Removed. This file is arch-specific. Do
52256 not put this in include/grub.
52258 * include/grub/i386/pc/console.h: Resurrected.
52260 * util/console.c: Include grub/machine/console.h instead of
52262 * util/grub-emu.c: Likewise.
52264 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52266 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52269 From Vincent Pelletier <subdino2004@yahoo.fr>
52270 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52271 Redefined to use grub_getwh.
52272 (grub_term): New member named getwh.
52273 (grub_getwh): New prototype.
52274 * kern/term.c (grub_getwh): New function.
52275 * term/i386/pc/console.c (grub_console_getwh): New function.
52276 (grub_console_term): New member `getwh'.
52277 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52278 (grub_vga_term): New member `getwh'.
52279 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52281 (grub_ofconsole_getw): New function.
52282 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52283 (grub_ofconsole_term): New field named getwh and new initial
52286 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52288 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52289 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52290 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52291 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52292 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52293 of <grub/machine/ieee1275.h>.
52294 * commands/ieee1275/reboot.c: Likewise.
52295 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52296 * kern/ieee1275.c: ... to here. All users updated. Change all
52297 parameter structs to use new type `grub_ieee1275_cell_t'.
52298 * term/powerpc/ieee1275/ofconsole.c: Move ...
52299 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52300 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52301 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52302 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52304 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52305 Remove unused prototypes. All users updated.
52306 * include/grub/powerpc/ieee1275/console.h: Removed.
52307 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52308 `grub_ieee1275_cell_t'.
52309 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52310 Cast comparisons with -1 to the correct type.
52311 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52312 type to match `grub_ieee1275_entry_fn'.
52314 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52316 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52318 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52319 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52321 (grub_probefs_SOURCES): New variable.
52323 * util/i386/pc/grub-probefs.c: New file.
52325 * util/i386/pc/grub-setup.c (main): Call
52326 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52327 grub_hfs_init and grub_jfs_init to initialize the system. Call
52328 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52329 grub_pc_partition_map_fini to finish the system.
52331 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52333 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52335 (grub_multiboot_load_elf32): Likewise.
52336 (grub_multiboot_is_elf64): Likewise.
52337 (grub_multiboot_load_elf64): Likewise.
52338 (grub_multiboot_load_elf): Likewise.
52339 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52340 an ELF32 or ELF64 file.
52341 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52343 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52344 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52345 NULL before calling FS->LABEL.
52346 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52347 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52348 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52349 before calling FS->LABEL.
52351 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52353 * util/i386/pc/grub-install.in (datadir): New variable.
52355 (pkgdatadir): New variable.
52356 (pkglibdir): Removed.
52358 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52360 * DISTLIST: Added util/i386/pc/grub-install.in.
52362 * util/i386/pc/grub-install.in: New file.
52364 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52365 (grub_install_SOURCES): Likewise.
52367 * genmk.rb: Added support for scripts.
52368 (Script): New class.
52369 (scripts): New variable.
52371 * Makefile.in (install-local): Install sbin_SCRIPTS by
52373 (uninstall): Remove sbin_SCRIPTS.
52375 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52376 device, try to get a GRUB device by
52377 grub_util_biosdisk_get_grub_dev.
52380 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52381 description for --device-map.
52383 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52385 Change the semantics of variable hooks. They now return strings
52386 instead of error values.
52388 * util/i386/pc/grub-setup.c: Include grub/env.h.
52389 (setup): Use grub_device_set_root instead of grub_env_set.
52391 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52392 grub_env_get instead of grub_device_set_root and
52393 grub_device_get_root, respectively.
52395 * kern/main.c (grub_env_write_root): New function.
52396 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52397 grub_env_set instead of grub_device_set_root.
52399 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52401 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52402 rather than calling ENV->WRITE_HOOK afterwards.
52403 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52404 passing a pointer of a pointer.
52405 (grub_register_variable_hook): Change the types of "read_hook" and
52406 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52408 Allocate the default empty string on the heap, because this string
52409 may be freed later.
52411 * kern/device.c: Include grub/env.h.
52412 (grub_device_set_root): Removed.
52413 (grub_device_get_root): Likewise.
52414 (grub_device_open): Use grub_env_get instead of
52415 grub_device_get_root.
52417 * include/grub/env.h (grub_env_read_hook_t): New type.
52418 (grub_env_write_hook_t): Likewise.
52419 (grub_env_var): Change the types of "read_hook" and "write_hook"
52420 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52421 (grub_register_variable_hook): Likewise.
52423 * include/grub/device.h (grub_device_set_root): Removed.
52424 (grub_device_set_root): Likewise.
52426 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52427 make sure that DIRNAME terminates with '/', so that
52428 grub_fat_find_dir will fail if PATH is not a directory.
52430 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52432 Use the qualifier auto for print_files and print_files_long.
52433 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52435 Put a newline only if there is no error.
52436 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52439 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52441 * kern/partition.c (grub_partition_probe): Initialize PART to
52442 NULL. Otherwise, when no partition map is registered, this returns
52445 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52447 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52448 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52451 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52453 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52454 information on each device, if it does not have partitions. Print
52455 "Device" instead of "Disk", because this function is not specific
52458 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52459 static to ensure that it is put on the memory rather than a
52462 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52464 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52465 (grub_cat_init): Likewise.
52466 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52467 (options): Likewise.
52468 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52469 (grub_configfile_init): Likewise.
52470 * font/manager.c (GRUB_MOD_INIT): Likewise.
52471 * commands/help.c (GRUB_MOD_INIT): Likewise.
52472 (grub_help_init): Likewise.
52473 * normal/command.c (grub_command_init): Likewise.
52474 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52475 * disk/loopback.c (grub_loop_init): Likewise.
52476 (GRUB_MOD_INIT): Likewise.
52477 * commands/ls.c (grub_ls_init): Likewise.
52478 (GRUB_MOD_INIT): Likewise.
52479 (options): Likewise.
52480 * commands/boot.c (grub_boot_init): Likewise.
52481 (GRUB_MOD_INIT): Likewise.
52482 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52483 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52484 (GRUB_MOD_INIT): Likewise.
52485 * commands/cmp.c (grub_cmp_init): Likewise.
52486 (GRUB_MOD_INIT): Likewise.
52488 * normal/arg.c: Use <> instead of "" to include header files.
52489 (SHORT_ARG_HELP): New macro.
52490 (SHORT_ARG_USAGE): Likewise.
52491 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52492 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52494 (find_short): Check if C is 'h' or 'u' explicitly.
52495 (grub_arg_show_help): Use space characters instead of tabs. Treat
52496 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52497 are shown with --help and --usage only if they are not used for
52498 the command itself.
52499 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52502 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52503 const into "longarg". Change the type of "shortarg" to int.
52505 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52507 * boot/i386/pc/boot.S (boot_drive_check): New label.
52509 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52512 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52513 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52515 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52517 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52518 When turning off Gate A20, skip the check and return immediately,
52519 because this is not fatal usually.
52521 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52523 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52524 be 0x7C00 instead of 0x8000.
52526 * boot/i386/pc/pxeboot.S: Rewritten.
52528 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52530 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52533 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52535 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52536 robustness. This routine now supports a BIOS call and System
52537 Control Port A to modify the gate A20.
52539 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52540 Increased to 0x440.
52542 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52544 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52545 device path and resulting ihandle.
52546 (grub_ofdisk_close): dprintf the ihandle being closed.
52547 (grub_ofdisk_read): dprintf function parameters.
52548 * kern/mm.c (grub_mm_init_region): Likewise.
52549 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52550 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52551 size, and boot arguments.
52552 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52553 before loading into memory.
52554 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52555 before loading into memory.
52557 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52559 * kern/mm.c: Added much documentation.
52560 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52561 8, set to 5 instead of 8.
52563 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52565 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52567 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52568 (grub_mkdevicemap_SOURCES): New variable.
52570 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52571 lib/device.c of GRUB Legacy.
52573 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52575 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52576 instead of PATH is NULL.
52578 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52580 * commands/cmp.c (BUFFER_SIZE): New macro.
52581 (grub_cmd_cmp): Close the right file at the right time. Compare
52582 only data just read. Don't report files of different size as
52583 identical. Dynamically allocate buffers. Move variable
52584 declarations at the beginning of function.
52586 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52588 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52591 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52593 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52594 when backspace is pressed at beginning of line.
52596 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52598 * DISTLIST: Added genfslist.sh.
52600 * normal/main.c (fs_module_list): New variable.
52601 (autoload_fs_module): New function.
52602 (read_fs_list): Likewise.
52603 (grub_normal_execute): Call read_fs_list.
52605 * kern/fs.c (grub_fs_autoload_hook): New variable.
52606 (grub_fs_probe): Added support for auto-loading.
52608 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52609 (grub_fs_module_list_t): New type.
52611 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52612 (grub_fs_autoload_hook): New prototype.
52614 * genfslist.sh: New file.
52616 * genmk.rb: Added a rule to generate a filesystem list.
52618 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52620 * configure.ac: Fix the test for cross-compiling.
52622 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52623 define GRUB_UTIL anymore.
52625 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52626 so this function works on other systems than just big endian.
52627 (load_modules): Likewise.
52628 (add_segments): Likewise.
52630 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52632 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52633 contains `l' modifier, get a long from va_arg().
52635 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52637 * kern/mm.c (grub_free): If the next free block which is being
52638 merged is the first free block, set the first block to the block
52640 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52642 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52644 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52645 `grub_ieee1275_chosen'.
52647 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52649 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52650 (grub_ieee1275_chosen): New variable.
52651 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52653 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52654 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52655 Rename first argument to `phandle' for consistency.
52656 (grub_ieee1275_get_property_length): Likewise.
52657 (grub_ieee1275_next_property): Likewise. Change type of first argument
52658 to grub_ieee1275_phandle_t.
52659 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52660 Move export next to declaration.
52661 (grub_ieee1275_chosen): New variable.
52662 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52663 Correct cosmetic typo.
52664 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52665 `grub_ieee1275_chosen'.
52666 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52667 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52668 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52669 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52670 `grub_ieee1275_chosen'.
52672 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52674 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52676 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52677 /chosen/bootargs as "variable=value" pairs.
52679 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52681 * include/grub/misc.h (grub_dprintf): New macro.
52682 (grub_real_dprintf): New prototype.
52683 (grub_strword): Likewise.
52684 (grub_iswordseparator): Likewise.
52685 * kern/misc.c (grub_real_dprintf): New function.
52686 (grub_strword): Likewise.
52687 (grub_iswordseparator): Likewise.
52689 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52691 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52692 (roundup): Remove macro.
52693 (grub_ieee1275_flags): Make static.
52694 (grub_ieee1275_realmode): Remove.
52695 (grub_ieee1275_test_flag): New function.
52696 (grub_ieee1275_set_flag): Likewise.
52697 (find_options): Rename to `grub_ieee1275_find_options'; update
52698 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52699 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52700 (cmain): New prototype.
52701 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52702 `grub_ieee1275_flags' directly.
52703 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52704 machine/biosdisk.h.
52705 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52706 Don't include grub/machine/init.h.
52707 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52708 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52710 (grub_ieee1275_realmode): Likewise.
52711 (grub_ieee1275_flag): New enum.
52712 (grub_ieee1275_test_flag): New prototype.
52713 (grub_ieee1275_set_flag): New prototype.
52714 * include/grub/powerpc/ieee1275/init.h: Remove file.
52715 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52716 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52717 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52718 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52720 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52721 `grub_ieee1275_test_flag'.
52722 (grub_ieee1275_encode_devname): Likewise.
52724 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52726 * include/grub/powerpc/ieee1275/ieee1275.h
52727 (grub_ieee1275_encode_devname): New prototype.
52728 (grub_ieee1275_get_filename): Likewise.
52729 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52731 (grub_set_prefix): Likewise.
52732 (grub_machine_init): Call grub_set_prefix.
52733 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52734 (grub_parse_type): New enum.
52735 (grub_ieee1275_get_devargs): New function.
52736 (grub_ieee1275_get_devname): Likewise.
52737 (grub_ieee1275_parse_args): Likewise.
52738 (grub_ieee1275_get_filename): Likewise.
52739 (grub_ieee1275_encode_devname): Likewise.
52741 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52743 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52744 `grub_loader_unset'.
52746 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52748 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52749 instead of grub_ieee1275_interpret.
52750 (grub_halt_init): New function.
52751 (grub_halt_fini): Likewise.
52752 (GRUB_MOD_INIT): Correct message grammar.
52753 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52754 instead of grub_ieee1275_interpret.
52755 (grub_reboot_init): New function.
52756 (grub_reboot_fini): Likewise.
52757 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52758 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52759 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52760 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52761 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52763 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52765 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52767 (grub_halt): Likewise.
52768 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52769 (cmain): Remove __attribute__((unused)).
52770 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52771 (grub_heap_len): Likewise.
52772 (grub_machine_fini): New function.
52773 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52774 (grub_halt): Likewise.
52775 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52777 * util/powerpc/ieee1275/misc.c: New file.
52779 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52781 * DISTLIST: New file.
52782 * gendistlist.sh: Likewise.
52784 * Makefile.in (COMMON_DISTFILES): Removed.
52785 (BOOT_DISTFILES): Likewise.
52786 (CONF_DISTFILES): Likewise.
52787 (DISK_DISTFILES): Likewise.
52788 (FS_DISTFILES): Likewise.
52789 (INCLUDE_DISTFILES): Likewise.
52790 (KERN_DISTFILES): Likewise.
52791 (LOADER_DISTFILES): Likewise.
52792 (TERM_DISTFILES): Likewise.
52793 (UTIL_DISTFILES): Likewise.
52794 (DISTFILES): Likewise.
52795 (uninstall): Uninstall files in $(pkgdata_DATA).
52796 (DISTLIST): New target.
52797 (distdir): Use the contents of the file DISTLIST to get a list of
52800 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52802 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52803 descriptor. This is ported from GRUB Legacy.
52805 * gencmdlist.sh: Added an extra semicolon to make it work with
52806 old sed versions. Reported by Robert Bihlmeyer
52807 <robbe@orcus.priv.at>.
52809 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52811 Automatic loading of commands is supported.
52813 * normal/main.c (read_command_list): New function.
52814 (grub_normal_execute): Call read_command_list.
52816 * normal/command.c (grub_register_command): Return zero or CMD.
52817 Allocate CMD->NAME from the heap.
52818 Initialize CMD->MODULE_NAME to zero.
52819 Find the same name as well. If the same command is found and it is
52820 a dummy command, overwrite members. If it is not a dummy command,
52822 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52823 (grub_command_find): If a dummy command is found, load a module
52824 and retry to find a command only once.
52826 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52827 make sure that each command is loaded.
52829 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52831 (struct grub_command): Remove const from the member `name'.
52832 Add a new member `module_name'.
52833 (grub_register_command): Return grub_command_t.
52835 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52836 sure that each command is loaded.
52838 * genmk.rb (PModule::rule): Specify a module name without the
52839 suffix ".mod" to gencmdlist.sh.
52841 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52843 * gencmdlist.sh: New file.
52845 * genmk.rb (PModule::rule): Generate a rule for a command list.
52847 Generate command.lst from $(COMMANDFILES).
52849 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52850 (DATA): Added $(pkgdata_DATA).
52851 (install-local): Install files in $(pkgdata_DATA).
52853 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52855 * term/i386/pc/vga.c (debug_command): Removed.
52856 (GRUB_MOD_INIT): Do not register the command "debug".
52858 From Hollis Blanchard:
52859 * commands/configfile.c: New file.
52860 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52861 commands/configfile.c.
52862 (pkgdata_MODULES): Added configfile.mod.
52863 (configfile_mod_SOURCES): New variable.
52864 (configfile_mod_CFLAGS): Likewise.
52865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52866 commands/configfile.c.
52867 (pkgdata_MODULES): Added configfile.mod.
52868 (configfile_mod_SOURCES): New variable.
52869 (configfile_mod_CFLAGS): Likewise.
52870 * util/grub-emu.c (main): Call grub_configfile_init and
52871 grub_configfile_fini.
52872 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52874 [GRUB_UTIL] (grub_configfile_fini): Likewise.
52876 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52878 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52881 * commands/help.c (grub_cmd_help): Do not print newlines after
52882 the last command in print_command_help.
52884 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52886 * commands/default.h: New file.
52887 * commands/timeout.h: Likewise.
52888 * normal/context.c: Likewise.
52890 * util/misc.c: Do not include sys/times.h.
52891 Include sys/time.h and grub/machine/time.h.
52892 (grub_get_rtc): Rewritten with gettimeofday.
52894 * util/grub-emu.c (main): Call grub_default_init and
52895 grub_timeout_init before grub_normal_init, and call
52896 grub_timeout_fini and grub_default_fini after grub_main.
52898 * util/console.c (grub_ncurses_checkkey): Return the read
52901 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52904 * normal/main.c (read_config_file): Push MENU. If this fails,
52905 print an error and wait for a user input.
52906 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52907 If a menu is empty or an error occurs, pop MENU.
52908 (grub_normal_execute): Pop and free MENU after grub_menu_run
52911 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52913 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52915 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52917 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52919 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52922 * include/grub/normal.h (struct grub_menu_list): New struct.
52923 (grub_menu_list_t): New type.
52924 (struct grub_context): New struct.
52925 (grub_context_t): New type.
52926 (grub_register_command): Got rid of EXPORT_FUNC.
52927 (grub_unregister_command): Likewise.
52928 (grub_context_get): New prototype.
52929 (grub_context_get_current_menu): Likewise.
52930 (grub_context_push_menu): Likewise.
52931 (grub_context_pop_menu): Likewise.
52932 [GRUB_UTIL] (grub_default_init): Likewise.
52933 [GRUB_UTIL] (grub_default_fini): Likewise.
52934 [GRUB_UTIL] (grub_timeout_init): Likewise.
52935 [GRUB_UTIL] (grub_timeout_fini): Likewise.
52937 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
52938 commands/timeout.c and normal/context.c.
52939 (pkgdata_MODULES): Added default.mod and timeout.mod.
52940 (normal_mod_SOURCES): Added normal/context.c.
52941 (default_mod_SOURCES): New variable.
52942 (default_mod_CFLAGS): Likewise.
52943 (timeout_mod_SOURCES): Likewise.
52944 (timeout_mod_CFLAGS): Likewise.
52945 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
52947 (pkgdata_MODULES): Added default.mod and timeout.mod.
52948 (normal_mod_SOURCES): Added normal/context.c.
52949 (default_mod_SOURCES): New variable.
52950 (default_mod_CFLAGS): Likewise.
52951 (timeout_mod_SOURCES): Likewise.
52952 (timeout_mod_CFLAGS): Likewise.
52954 * Makefile.in (all-local): Added $(MKFILES).
52956 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
52958 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
52959 (grub_emu_SOURCES): Likewise.
52960 (pkgdata_MODULES): Add `sun.mod'.
52961 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52962 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52964 (pkgdata_MODULES): Add `sun.mod'.
52965 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52966 * include/grub/partition.h (grub_sun_partition_map_init): New
52968 (grub_sun_partition_map_fini): Likewise.
52969 * partmap/sun.c: New file.
52970 * util/grub-emu.c (main): Initialize and de-initialize the sun
52971 partitionmap support.
52973 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
52975 This implements an Emacs-like menu entry editor.
52977 * normal/menu_entry.c: New file.
52979 * util/console.c (grub_ncurses_putchar): Translate some Unicode
52980 characters to ASCII.
52981 (saved_char): New variable.
52982 (grub_ncurses_checkkey): Rewritten completely.
52983 (grub_ncurses_getkey): Likewise.
52984 (grub_ncurses_init): Call raw instead of cbreak.
52986 * normal/menu.c (print_entry): Do not put a space.
52987 (init_page): Renamed to ...
52988 (grub_menu_init_page): ... this. All callers changed.
52989 (edit_menu_entry): Removed.
52990 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
52992 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
52994 * kern/misc.c (grub_vprintf): Call grub_refresh.
52996 * normal/menu.c (DISP_LEFT): Renamed to ...
52997 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
52998 * normal/menu.c (DISP_UP): Renamed to ...
52999 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53000 * normal/menu.c (DISP_RIGHT): Renamed to ...
53001 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53002 * normal/menu.c (DISP_DOWN): Renamed to ...
53003 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53004 * normal/menu.c (DISP_HLINE): Renamed to ...
53005 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53006 * normal/menu.c (DISP_VLINE): Renamed to ...
53007 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53008 * normal/menu.c (DISP_UL): Renamed to ...
53009 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53010 * normal/menu.c (DISP_UR): Renamed to ...
53011 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53012 * normal/menu.c (DISP_LL): Renamed to ...
53013 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53014 * normal/menu.c (DISP_LR): Renamed to ...
53015 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53016 * normal/menu.c (TERM_WIDTH): Renamed to ...
53017 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53018 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53019 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53020 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53021 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53022 * normal/menu.c (TERM_MARGIN): Renamed to ...
53023 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53024 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53025 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53026 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53027 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53028 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53029 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53030 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53031 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53032 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53033 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53034 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53035 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53036 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53037 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53038 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53039 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53040 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53041 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53042 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53043 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53044 All callers changed.
53046 * include/grub/normal.h: New prototype.
53048 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53049 normal/menu_entry.c.
53050 (normal_mod_SOURCES): Likewise.
53051 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53052 (normal_mod_SOURCES): Likewise.
53054 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53056 * include/grub/normal.h (grub_halt_init): New prototype.
53057 (grub_halt_fini): Likewise.
53058 (grub_reboot_init): Likewise.
53059 (grub_reboot_fini): Likewise.
53061 * util/grub-emu.c: Include signal.h.
53062 (main_env): New global variable.
53063 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53065 (grub_machine_fini): New function.
53066 (main): Call grub_halt_init and grub_reboot_init before
53067 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53068 Call setjmp with MAIN_ENV to go back afterwards.
53069 Call grub_machine_fini right before return.
53071 * include/grub/util/misc.h: Include setjmp.h.
53072 (main_env): New prototype.
53074 * include/grub/kernel.h (grub_machine_fini): New prototype.
53075 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53076 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53078 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53079 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53080 * term/i386/pc/console.c (grub_console_fini): Likewise.
53082 * util/i386/pc/misc.c: New file.
53084 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53085 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53086 commands/i386/pc/reboot.c.
53088 2005-02-14 Guillem Jover <guillem@hadrons.org>
53090 * include/grub/dl.h (grub_dl_check_header): New prototype.
53091 (grub_arch_dl_check_header): Change return type to grub_err_t,
53092 remove size parameter and export function. Update all callers.
53093 * kern/dl.c (grub_dl_check_header): New function.
53094 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53095 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53096 are inside the core.
53097 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53098 independent ELF header checks.
53099 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53100 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53101 `grub_dl_check_header' instead of explicit checks. Check for the
53103 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53104 `grub_dl_check_header' instead of explicit checks. Remove arch
53105 specific ELF header checks.
53107 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53110 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53112 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53113 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53115 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53117 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53118 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53119 (part_map_iterate): Clear `grub_errno' and return 0 if
53120 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53121 * partmap/amiga.c (amiga_partition_map_iterate): Return
53122 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53123 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53125 2005-02-01 Guillem Jover <guillem@hadrons.org>
53127 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53130 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53132 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53134 (grub_rescue_cmd_linux): New prototype.
53135 (grub_rescue_cmd_initrd): Likewise.
53136 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53138 (grub_linux_release_mem): Release the memory for the initrd.
53139 (grub_load_linux): Renamed from this...
53140 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53141 Changed `entry' not to be static. Loop over memory regions to
53142 find another one when the default fails.
53143 (grub_rescue_cmd_initrd): New function.
53144 (grub_linux_init): Remove function.
53145 (grub_linux_fini): Likewise.
53146 (GRUB_MOD_INIT): Register `initrd'.
53147 (GRUB_MOD_FINI): Unregister `initrd'.
53148 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53150 (grub_linux_normal_fini): Likewise.
53151 (GRUB_MOD_INIT): Register `initrd'.
53152 (GRUB_MOD_FINI): Unregister `initrd'.
53154 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53156 * commands/help.c: New file.
53157 * normal/arg.c (show_help): Renamed to...
53158 (grub_arg_show_help): ... this.
53159 * commands/i386/pc/halt.c: New file.
53160 * commands/i386/pc/reboot.c: Likewise.
53161 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53162 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53163 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53164 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53166 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53168 (pkgdata_MODULES): Add `help.mod'.
53169 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53170 * grub/i386/pc/init.h (grub_reboot): New prototype.
53171 (grub_halt): Likewise.
53172 * include/grub/normal.h (grub_arg_show_help): New prototype.
53173 (grub_help_init): Likewise.
53174 (grub_help_fini): Likewise.
53175 * util/grub-emu.c (main): Initialize and deinitialize the help
53178 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53180 * normal/command.c (grub_command_init): Fixed the description of
53181 the `set' and `unset' commands.
53183 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53185 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53187 * commands/ieee1275/halt.c: New file.
53188 * commands/ieee1275/reboot.c: Likewise.
53189 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53190 `__attribute__ ((unused))'. Some GCS related fixed.
53191 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53192 (grub_suspend_fini): Likewise.
53193 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53195 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53196 (halt_mod_CFLAGS): New variables.
53197 * include/grub/powerpc/ieee1275/ieee1275.h
53198 (grub_ieee1275_interpret): New prototype.
53200 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53202 * include/grub/misc.h (memmove): New prototype.
53203 (memcpy): Likewise.
53205 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53207 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53208 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53210 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53212 * kern/misc.c (grub_strndup): Function rewritten.
53214 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53216 * normal/menu.c (TERM_WIDTH): Macro redefined.
53217 (TERM_TOP_BORDER_Y): Likewise.
53218 (draw_border): Replaced while-loop by a for-loop. Make the number
53219 of lines consistent with the number of lines displayed in
53220 print_entries. Added a margin below the rectangle.
53221 (print_entry): Make the entry fit in the rectangle.
53222 (print_entries): Display the scroll arrows next to the right
53225 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53227 * fs/minix.c (grub_minix_find_file): Reserve more space for
53228 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53229 `grub_strncpy' to copy `path' into it.
53231 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53233 Add the loopback device, a device via which files can be accessed
53236 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53237 (pkgdata_MODULES): Add loopback.mod.
53238 (loopback_mod_SOURCES): New variable.
53239 (loopback_mod_CFLAGS): Likewise.
53240 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53242 (pkgdata_MODULES): Add loopback.mod.
53243 (loopback_mod_SOURCES): New variable.
53244 (loopback_mod_CFLAGS): Likewise.
53245 * disk/loopback.c: new file.
53246 * include/grub/normal.h (grub_loop_init): New prototype.
53247 (grub_loop_fini): New prototype.
53248 * util/grub-emu.c (main): Initialize and de-initialize loopback
53250 * include/grub/disk.h (grub_disk_dev_id): Add
53251 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53253 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53255 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53257 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53258 (suspend_mod_SOURCES): New variable.
53259 (suspend_mod_CFLAGS): Likewise.
53260 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53262 * commands/ieee1275/suspend.c: New file.
53264 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53266 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53267 ((unused))' to `__attribute__ ((used))'.
53268 (GRUB_MOD_FINI): Likewise.
53269 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53270 * genmk.rb (PModule): Assign space to common symbols when linking
53273 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53275 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53276 `unsigned' arguments to `grub_size_t'.
53277 (grub_malloc): Likewise.
53278 (grub_realloc): Likewise.
53279 (grub_memalign): Likewise.
53280 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53281 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53282 * util/misc.c (grub_malloc): Likewise.
53283 (grub_realloc): Likewise.
53284 * kern/mm.c (get_header_from_pointer): Change the casts to
53285 `unsigned' into a cast to `grub_size_t'.
53287 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53288 point to `currnode' when `currnode' is changed.
53290 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53291 Schottelius <nico-linux@schottelius.org>.
53293 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53295 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53296 (note_path): Remove variable.
53297 (GRUB_IEEE1275_NOTE_NAME): New macro.
53298 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53299 (grub_ieee1275_note_hdr): New structure.
53300 (grub_ieee1275_note_desc): Likewise.
53301 (grub_ieee1275_note): Likewise.
53302 (load_note): Remove `dir' argument. All callers updated. Remove
53303 `note_img' and `path'. Do not load a file from `note_path'.
53304 Initialize a struct grub_ieee1275_note and write that to `out'.
53305 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53307 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53309 * util/misc.c (grub_util_read_image): Revert last change. It
53310 called `grub_util_read_at', which seeks from the beginning of the
53313 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53315 * TODO: Add note about endianness in grub-mkimage.
53316 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53318 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53319 (grub_mkimage_SOURCES): New target.
53320 * include/grub/kernel.h (grub_start_addr): Remove variable.
53321 (grub_end_addr): Likewise.
53322 (grub_total_module_size): Likewise.
53323 (grub_kernel_image_size): Likewise.
53324 (GRUB_MODULE_MAGIC): New constant.
53325 (grub_module_info): New structure.
53326 (grub_arch_modules_addr): New prototype.
53327 (grub_get_end_addr): Remove prototype.
53328 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53329 * include/grub/powerpc/ieee1275/kernel.h: New file.
53330 * include/grub/util/misc.h (grub_util_get_fp_size): New
53332 (grub_util_read_at): Likewise.
53333 (grub_util_write_image_at): Likewise.
53334 * kern/main.c (grub_get_end_addr): Remove function.
53335 (grub_load_modules): Call grub_arch_modules_addr instead of using
53336 grub_end_addr. Look for a grub_module_info struct in memory. Use
53337 the grub_module_info fields instead of calling grub_get_end_addr
53338 as loop conditions. Move grub_add_unused_region code here.
53339 (grub_add_unused_region): Remove function.
53340 * kern/i386/pc/init.c: Include grub/cache.h.
53341 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53342 one call to add_mem_region.
53343 (grub_arch_modules_addr): New function.
53344 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53345 (grub_total_module_size): Likewise.
53346 Include grub/machine/kernel.h.
53347 (grub_arch_modules_addr): New function.
53348 * util/grub-emu.c (grub_end_addr): Remove variable.
53349 (grub_total_module_size): Likewise.
53350 (grub_arch_modules_addr): New function.
53351 * util/misc.c: Include unistd.h.
53352 (grub_util_get_fp_size): New function.
53353 (grub_util_read_at): Likewise.
53354 (grub_util_write_image_at): Likewise.
53355 (grub_util_read_image): Call grub_util_read_at.
53356 (grub_util_write_image): Call grub_util_write_image_at.
53357 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53358 additional memory in kernel_img for a struct grub_module_info.
53359 Fill in that grub_module_info.
53360 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53362 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53364 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53366 * include/grub/powerpc/ieee1275/ieee1275.h
53367 (grub_ieee1275_milliseconds): New prototype.
53368 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53370 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53371 grub_ieee1275_milliseconds.
53373 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53375 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53377 (find_options): New function.
53378 (cmain): Call find_options.
53379 * include/grub/powerpc/ieee1275/ieee1275.h
53380 (grub_ieee1275_realmode): New extern variable.
53381 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53382 grub_map if grub_ieee1275_realmode is false.
53384 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53386 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53387 lines are inserted and make it work like readline. Reported by
53388 Vincent Pelletier <subdino2004@yahoo.fr>.
53390 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53392 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53394 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53395 `kern/powerpc/cache.S'.
53397 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53399 * genmk.rb: Handle the `Program' class in the main loop. Written
53400 by Johan Rydberg <jrydberg@gnu.org>.
53401 (Program): New class.
53402 (programs): New variable.
53403 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53404 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53405 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53406 (help_arch): Function removed.
53407 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53408 `powerpc/libgcc.h' and `loader.h'.
53409 (pkgdata_PROGRAMS): New variable.
53410 (sbin_UTILITIES): Variable removed.
53411 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53412 (grubof_SOURCES): Variable re-defined so it only includes the
53413 core functionality.
53414 (grubof_CFLAGS): Remove `-DGRUBOF'.
53415 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53416 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53417 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53418 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53419 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53420 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53421 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53422 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53423 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53424 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53425 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53426 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53427 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53428 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53429 (pc_mod_CFLAGS): New variables.
53430 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53431 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53432 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53433 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53435 * include/grub/i386/pc/init.h (grub_os_area_addr)
53436 (rub_os_area_size): ... to here.
53437 * include/grub/powerpc/ieee1275/ieee1275.h
53438 (grub_ieee1275_entry_fn): Export symbol.
53439 * include/grub/powerpc/ieee1275/init.h: New file.
53440 * include/grub/powerpc/libgcc.h: Likewise.
53441 * include/grub/cache.h: Likewise.
53442 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53443 <hollis@penguinppc.org>.
53444 * kern/dl.c: Include <grub/cache.h>.
53445 (grub_dl_flush_cache): New function.
53446 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53448 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53449 (grub_console_init): Removed prototypes.
53450 (grub_machine_init): Don't initialize the modules anymore.
53451 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53453 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53454 Macro undef removed.
53455 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53456 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53457 relocation `R_PPC_REL32'. Return an error when the relocation is
53459 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53460 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53461 * util/misc.c (grub_arch_sync_caches): Likewise.
53463 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53465 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53466 `symlist.c', add `grubof_symlist.c'.
53467 (symlist.c): Variable removed.
53468 (grubof_HEADERS): Variable added.
53469 (grubof_symlist.c): New target.
53470 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53471 `kernel_img_HEADERS'.
53472 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53473 * kern/powerpc/dl.c: New file.
53474 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53476 (grub_arch_dl_relocate_symbols): Likewise.
53477 (grub_register_exported_symbols): Likewise.
53479 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53481 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53482 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53483 to fail instead. Reported by Vincent Pelletier
53484 <subdino2004@yahoo.fr>.
53486 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53487 it is not allocated. Reported by Vincent Pelletier
53488 <subdino2004@yahoo.fr>.
53490 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53491 output so the output looks better.
53493 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53495 Modulize the partition map support and add support for the amiga
53498 * commands/ls.c: Include <grub/partition.h> instead of
53499 <grub/machine/partition.h>.
53500 * kern/disk.c: Likewise.
53501 * kern/rescue.c: Likewise.
53502 * loader/i386/pc/chainloader.c: Likewise.
53503 * normal/cmdline.c: Likewise.
53504 * kern/powerpc/ieee1275/init.c: Likewise.
53505 (grub_machine_init): Call `grub_pc_partition_map_init',
53506 `grub_amiga_partition_map_init' and
53507 `grub_apple_partition_map_init'.
53508 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53509 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53510 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53511 `partition.h' and `pc_partition.h'.
53512 (grub_setup_SOURCES): Remove
53513 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53514 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53515 (grub_emu_SOURCES): Likewise.
53516 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53517 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53518 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53519 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53520 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53521 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53522 (grubof_SOURCES): Likewise.
53523 * disk/i386/pc/partition.c: File removed.
53524 * disk/powerpc/ieee1275/partition.c: Likewise.
53525 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53526 * include/grub/i386/pc/partition.h: Likewise.
53527 * kern/partition.c: New file.
53528 * partmap/amiga.c: Likewise.
53529 * partmap/apple.c: Likewise.
53530 * partmap/pc.c: Likewise.
53531 * include/grub/partition.h: Likewise..
53532 * include/grub/pc_partition.h: Likewise.
53533 * util/grub-emu.c: Include <grub/partition.h> instead of
53534 <grub/machine/partition.h>.
53535 (main): Call `grub_pc_partition_map_init',
53536 `grub_amiga_partition_map_init' and
53537 `grub_apple_partition_map_init' and deinitialize afterwards.
53538 * util/i386/pc/biosdisk.c: Include `#include
53539 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53540 `<grub/machine/partition.h>'.
53541 * util/i386/pc/grub-setup.c: Likewise.
53542 * util/i386/pc/biosdisk.c: Likewise.
53543 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53544 partition information in case of a PC partition.
53545 * util/i386/pc/grub-setup.c: Include `#include
53546 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53547 `<grub/machine/partition.h>'.
53548 (setup): Only access the PC specific partition information in case
53551 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53553 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53554 (grub_longjmp): Likewise.
53555 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53557 * normal/powerpc/setjmp.S: New file.
53558 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53559 `normal/powerpc/setjmp.S'.
53560 (grubof_CFLAGS): Add `-DGRUBOF'.
53561 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53562 [GRUB_UTIL && !GRUBOF].
53564 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53566 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53567 property named `name'. Correctly handle the error returned by
53568 `grub_ieee1275_finddevice' if a device can not be opened.
53570 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53572 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53573 `actual' for negativity.
53574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53577 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53579 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53580 (PAGE_OFFSET): New macro.
53581 (CRTC_ADDR_PORT): Likewise.
53582 (CRTC_DATA_PORT): Likewise.
53583 (START_ADDR_HIGH_REGISTER): Likewise.
53584 (START_ADDR_LOW_REGISTER): Likewise.
53585 (GRAPHICS_ADDR_PORT): Likewise.
53586 (GRAPHICS_DATA_PORT): Likewise.
53587 (READ_MAP_REGISTER): Likewise.
53588 (INPUT_STATUS1_REGISTER): Likewise.
53589 (INPUT_STATUS1_VERTR_BIT): Likewise.
53590 (page): New variable.
53591 (wait_vretrace): New function.
53592 (set_read_map): Likewise.
53593 (set_start_address): Likewise.
53594 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53596 (check_vga_mem): Take the page into account.
53597 (write_char): Likewise.
53598 (write_cursor): Likewise.
53599 (scroll_up): Likewise. Copy the page to the page that is not
53600 shown and switch between both pages.
53601 (grub_vga_putchar): Fix off by one error.
53602 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53605 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53607 Add support for iso9660 (including rockridge).
53609 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53610 (iso9660_mod_SOURCES): New variable.
53611 (iso9660_mod_CFLAGS): Likewise.
53612 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53613 * include/grub/fs.h (grub_iso9660_init): New prototype.
53614 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53615 * fs/iso9660.c: New file.
53617 * include/grub/misc.h (grub_strncat): New prototype.
53618 * kern/misc.c (grub_strncat): New function.
53620 * fs/hfs.c (grub_hfs_mount): Translate the error
53621 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53622 * fs/jfs.c (grub_jfs_mount): Likewise.
53623 * fs/ufs.c (grub_ufs_mount): Likewise.
53625 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53627 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53628 which initialized BAT registers.
53629 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53630 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53632 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53633 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53635 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53636 (grub_mapclaim): Likewise.
53637 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53638 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53641 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53643 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53644 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53645 -ffreestanding and -msoft-float.
53647 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53649 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53650 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53651 set in grub_ieee1275_flags.
53653 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53655 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53657 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53658 grub_console_init first.
53659 Change the memory range used for grub_ieee1275_claim and
53660 grub_mm_init_region.
53661 Print an error message if the claim fails.
53662 Include <grub/misc.h>.
53664 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53666 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53667 Call grub_children_iterate for device nodes of type `scsi',
53669 (grub_ofdisk_open): Remove manual device alias resolution.
53670 Fix memory leak when device cannot be opened.
53671 * include/grub/powerpc/ieee1275/ieee1275.h
53672 (grub_children_iterate): New prototype.
53673 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53675 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53676 Return -1 if args.size was -1.
53678 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53680 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53681 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53682 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53683 Open Firmware's memory for it; claim memory from _start to _end.
53684 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53685 (_end): New extern.
53686 (_start): Zero BSS from __bss_start to _end.
53687 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53689 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53691 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53693 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53694 -1 if args.base was -1.
53696 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53698 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53699 escape sequence instead of a literal ^L. Also call
53700 grub_ofconsole_gotoxy.
53702 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53704 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53705 void * arguments to grub_addr_t. All callers updated. Also make
53706 the `result' argument optional.
53707 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53708 All callers updated.
53710 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53712 * commands/ls.c (grub_ls_list_files): Use the string following the
53713 initial ')', if present, as the filesystem path.
53714 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53716 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53718 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53720 Make the source code of the menu interface more readable.
53722 * normal/menu.c: Include grub/mm.h.
53723 (TERM_WIDTH): New macro.
53724 (TERM_HEIGHT): Likewise.
53725 (TERM_INFO_HEIGHT): Likewise.
53726 (TERM_MARGIN): Likewise.
53727 (TERM_SCROLL_WIDTH): Likewise.
53728 (TERM_TOP_BORDER_Y): Likewise.
53729 (TERM_LEFT_BORDER_X): Likewise.
53730 (TERM_BORDER_WIDTH): Likewise.
53731 (TERM_MESSAGE_HEIGHT): Likewise.
53732 (TERM_BORDER_HEIGHT): Likewise.
53733 (TERM_NUM_ENTRIES): Likewise.
53734 (TERM_FIRST_ENTRY_Y): Likewise.
53735 (TERM_ENTRY_WIDTH): Likewise.
53736 (TERM_CURSOR_X): Likewise.
53737 (draw_border): Use macros instead of magic numbers.
53738 (print_entry): Likewise.
53739 (print_entries): Likewise.
53740 (run_menu): Likewise. Also, handle the key 'e'.
53741 (run_menu_entry): Ignore empty command lines.
53742 (print_message): Added a new argument EDIT. If EDIT is true,
53743 print a different message.
53744 (init_page): Likewise.
53745 (edit_menu_entry): New function. Not implemented yet.
53747 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53749 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53750 can be loaded from normal mode.
53752 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53754 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53755 (multiboot_mod_CFLAGS): New variables.
53756 * loader/i386/pc/linux_normal.c: New file.
53757 * loader/i386/pc/multiboot_normal.c: Likewise.
53759 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53760 attribute `unused'.
53762 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53763 `fdiro' to read the mode information from instead of `diro'.
53765 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53766 looking up a symlink.
53768 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53770 * normal/command.c (grub_command_execute): Don't parse the
53771 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53772 flags of the command.
53774 * normal/menu.c (grub_menu_run): Fix typo.
53776 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53778 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53780 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53781 `y + 1' instead of `y - 1'.
53783 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53785 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53787 From Hollis Blanchard <hollis@penguinppc.org>:
53788 * kern/misc.c (memmove): New alias for grub_memmove.
53789 (memcmp): New alias for grub_memcmp.
53790 (memset): New alias for grub_memset.
53791 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53792 Change "int handle" to "grub_ieee1275_phandle_t handle".
53793 * include/grub/powerpc/ieee1275/ieee1275.h
53794 (grub_ieee1275_get_property): Likewise.
53796 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53798 Added normal mode command `chainloader' as module chain.mod, which
53799 depends on normal.mod and _chain.mod.
53801 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53802 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53803 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53805 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53806 but arguments parsing moved to ...
53807 (grub_chainloader_cmd): ... here. New function.
53808 * include/grub/i386/pc/chainloader.h: New file.
53809 * loader/i386/pc/chainloader_normal.c: Likewise.
53811 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53813 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53814 (grub_mkimage_LDFLAGS): Likewise.
53815 (grub_emu_SOURCES): Likewise.
53816 (kernel_img_HEADERS): Added fshelp.h.
53817 * fs/ext2.c: Include <grub/fshelp.h>.
53818 (FILETYPE_REG): New macro.
53819 (FILETYPE_INO_REG): Likewise.
53820 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53822 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53824 (grub_fshelp_node): New struct.
53825 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53827 (grub_ext2_get_file_block): Removed function.
53828 (grub_ext2_read_block): New function.
53829 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53830 This function was written.
53831 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53832 (grub_ext2_find_file): Removed function.
53833 (grub_ext2_read_symlink): New function.
53834 (grub_ext2_iterate_dir): Likewise.
53835 (grub_ext2_open): Rewritten.
53836 (grub_ext2_dir): Rewritten.
53837 * include/grub/fshelp.h: New file.
53838 * fs/fshelp.c: Likewise.
53840 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53842 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53843 (print_message): Add a missing newline.
53844 (run_menu): Added timeout support.
53845 (run_menu_entry): New local function.
53846 (grub_menu_run): Added support for booting.
53848 * kern/loader.c (grub_loader_is_loaded): New function.
53850 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53851 (grub_get_rtc): Exported.
53853 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53854 (grub_get_rtc): Exported.
53856 * include/grub/normal.h (struct grub_command_list): Remove
53857 constant from the member `command'.
53859 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53861 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53863 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53865 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53867 Add support for the JFS filesystem.
53869 * fs/jfs.c: New file.
53870 * include/grub/fs.h (grub_jfs_init): New prototype.
53871 (grub_jfs_fini): New prototype.
53872 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53873 (grub_emu_SOURCES): Likewise.
53874 (pkgdata_MODULES): Add jfs.mod.
53875 (jfs_mod_SOURCES): New variable.
53876 (jfs_mod_CFLAGS): Likewise.
53877 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53878 (grubof_SOURCES): Likewise.
53879 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53881 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53882 endian to the host endian.
53883 (grub_fat_utf16_to_utf8): Move function from there...
53884 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
53885 the endianness of the source string anymore.
53886 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53888 2004-08-24 Marco Gerards <metgerards@student.han.nl>
53890 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53891 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53892 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53893 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
53895 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53896 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53897 for `node_found' and `it_dir'.
53898 (grub_hfs_dir): Add prototype for `dir_hook'.
53900 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53901 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53902 and `indir32' to silence a gcc warning.
53904 * include/grub/fs.h (grub_hfs_init): New prototype.
53905 (grub_hfs_fini): Likewise.
53908 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53910 Each disk device has its own id now. This is useful to make use
53911 of multiple disk devices.
53913 * include/grub/disk.h (grub_disk_dev_id): New enum.
53914 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53915 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53917 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53918 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53920 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53921 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53923 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53924 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53926 * include/grub/disk.h (struct grub_disk_dev): Added a new member
53927 "id" which is used by the cache manager.
53929 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
53932 2004-08-18 Marco Gerards <metgerards@student.han.nl>
53934 * fs/hfs.c: New file.
53935 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
53936 (grub_emu_SOURCES): Likewise.
53937 (pkgdata_MODULES): Add hfs.mod.
53938 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
53939 (grubof_SOURCES): Likewise.
53940 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
53942 * include/grub/misc.h (grub_strncasecmp): Add prototype.
53943 * kern/misc.c (grub_strncasecmp): Add function.
53945 2004-08-14 Marco Gerards <metgerards@student.han.nl>
53947 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
53950 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
53951 (grub_ext2_dir): In case the directory entry type is unknown, read
53954 2004-08-02 Peter Bruin <pjbruin@dds.nl>
53956 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
53957 grub_load_linux instead of grub_rescue_cmd_linux as second
53958 argument of grub_rescue_register_command.
53960 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
53962 2004-07-27 Marco Gerards <metgerards@student.han.nl>
53964 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
53966 * commands/boot.c: Remove the check for `GRUB_UTIL'.
53967 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53968 `loader/powerpc/ieee1275/linux.c',
53969 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
53970 * include/grub/powerpc/ieee1275/ieee1275.h
53971 (grub_ieee1275_release): New prototype.
53972 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
53973 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
53974 normal, boot, linux and linux_normal.
53975 * loader/powerpc/ieee1275/linux.c: New file.
53976 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
53978 2004-07-12 Marco Gerards <metgerards@student.han.nl>
53980 * normal/arg.c (grub_arg_parse): Correct error handling after
53981 reallocating the argumentlist (check if `argl' is not null instead
53982 of checking if `args' is not null).
53983 * kern/mm.c (grub_realloc): Return the same pointer when using the
53984 same region, instead of returning the header address.
53986 2004-07-11 Marco Gerards <metgerards@student.han.nl>
53988 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
53989 one block instead of two when looking for the initial partition.
53990 (grub_partition_probe): Initialize the local variable `p' with 0.
53991 Use base 10 for the grub_strtoul call.
53992 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
53993 need for one local variable.
53994 (grub_strtoul): Don't add the new value to `num', instead of that
53997 2004-07-11 Marco Gerards <metgerards@student.han.nl>
53999 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54000 (pxeboot_img_SOURCES): New variable.
54001 (pxeboot_img_ASFLAGS): Likewise.
54002 (pxeboot_img_LDFLAGS): Likewise.
54003 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54004 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54005 <lode_leroy@hotmail.com>.
54007 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54009 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54010 there was no input.
54012 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54014 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54015 the history buffer logic.
54017 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54019 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54020 (FILETYPE_INO_SYMLINK): New macros.
54021 (grub_ext2_find_file): Check if the node is a directory using the
54022 inode stat information instead of using the filetype in the
54023 dirent. Exclude the first character of an absolute symlink.
54024 (grub_ext2_dir): Mask out the filetype part of the mode member of
54027 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54029 Add support for UFS version 1 and 2. Add support for the minix
54030 filesystem version 1 and 2, both the variants with 14 and 30 long
54033 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54035 (grub_emu_SOURCES): Likewise.
54036 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54037 (ufs_mod_SOURCES): New variable.
54038 (ufs_mod_CFLAGS): Likewise.
54039 (minix_mod_SOURCES): Likewise.
54040 (minix_mod_CFLAGS): Likewise.
54041 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54043 (grubof_SOURCES): Likewise.
54044 * fs/ufs.c: New file.
54045 * fs/minix.c: New file.
54046 * include/grub/fs.h (grub_ufs_init): New prototype.
54047 (grub_ufs_fini): Likewise.
54048 (grub_minix_init): Likewise.
54049 (grub_minix_fini): Likewise.
54050 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54053 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54055 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54056 commands/ls.c, commands/terminal.c, commands/boot.c,
54057 commands/cmp.c and commands/cat.c.
54058 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54060 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54063 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54065 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54066 and grub_, respectively. Because the conversion is trivial and
54067 mechanical, I omit the details here. Please refer to the CVS
54068 if you need more information.
54070 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54072 * include/pupa: Renamed to ...
54073 * include/grub: ... this.
54074 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54075 * util/i386/pc/grub-mkimage.c: ... this.
54076 * util/i386/pc/pupa-setup.c: Renamed to ...
54077 * util/i386/pc/grub-setup.c: ... this.
54078 * util/pupa-emu.c: Renamed to ...
54079 * util/grub-emu.c: ... this.
54081 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54083 Add support for the newworld apple macintosh (PPC). This has been
54084 tested on the powerbook 2000 only. It only adds support for
54085 generic ieee1275 functions, console and disk support. This should
54086 be easy to port to other architectures with support for Open
54089 * configure.ac: Accept the powerpc as host_cpu. In the case of
54090 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54091 specific tests are only executed while building for the i386.
54092 Inverse test for crosscompile.
54093 * genmk.rb (Utility): Allow assembler files.
54094 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54095 * conf/powerpc-ieee1275.rmk: New file.
54096 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54097 * disk/powerpc/ieee1275/partition.c: Likewise.
54098 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54099 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54100 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54101 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54102 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54103 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54104 * include/pupa/powerpc/ieee1275/loader.h
54105 * include/pupa/powerpc/setjmp.h: Likewise.
54106 * include/pupa/powerpc/types.h: Likewise.
54107 * kern/powerpc/ieee1275/init.c: Likewise.
54108 * kern/powerpc/ieee1275/openfw.c: Likewise.
54109 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54111 These files were written by Johan Rydberg
54112 (jrydberg@night.trouble.net) and I only modified them slightly.
54114 * boot/powerpc/ieee1275/cmain.c: New file.
54115 * boot/powerpc/ieee1275/crt0.S: Likewise.
54116 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54117 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54119 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54121 * Makefile.in: Update copyright.
54122 * genmodsrc.sh: Likewise.
54123 * gensymlist.sh: Likewise.
54124 * term/i386/pc/vga.c: Indent correctly.
54126 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54127 bugreporting address.
54128 * util/i386/pc/pupa-setup.c (usage): Likewise,
54129 (main): Call pupa_ext2_init and pupa_ext2_fini.
54131 * fs/fat.c (log2): Renamed to ...
54132 (fat_log2): ... this.
54133 All callers changed.
54134 * kern/misc.c (memcpy): Alias to pupa_memmove.
54135 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54137 * util/console.c (pupa_ncurses_fini): Return 0.
54139 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54140 Move fail label here.
54141 [__GNU__]: Don't warn when using stat.
54142 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54143 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54144 long int. Use strtol instead of strtoul.
54146 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54148 * commands/boot.c: New file.
54149 * commands/cat.c: Likewise.
54150 * commands/cmp.c: Likewise.
54151 * commands/ls.c: Likewise.
54152 * commands/terminal.c: Likewise.
54153 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54154 (pupa_register_command): Changed interface to match the new
54156 (pupa_command_execute): Changed (almost rewritten) so it uses
54157 pupa_split_command. Added support for setting variables using the
54159 (rescue_command): Changed to work with the new argument parser.
54160 (terminal_command): Moved from here to commands/terminal.c.
54161 (set_command): New function.
54162 (unset_command): New function.
54163 (insmod_command): New function.
54164 (rmmod_command): New function.
54165 (lsmod_command): New function.
54166 (pupa_command_init): Don't initialize the command terminal
54167 anymore. Initialize the commands set, unset, insmod, rmmod and
54169 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54170 (kernel_img_HEADERS): Add arg.h and env.h.
54171 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54172 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54173 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54175 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54177 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54178 (boot_mod_SOURCES): New variable.
54179 (terminal_mod_SOURCES): Likewise.
54180 (ls_mod_SOURCES): Likewise.
54181 (cmp_mod_SOURCES): Likewise.
54182 (cat_mod_SOURCES): Likewise.
54184 * normal/arg.c: New file.
54185 * kern/env.c: Likewise.
54186 * include/pupa/arg.h: Likewise.
54187 * include/pupa/env.h: Likewise.
54188 * font/manager.c (font_command): Changed to match argument parsing
54190 (PUPA_MOD_INIT): Likewise.
54191 * hello/hello.c (pupa_cmd_hello): Likewise.
54192 (PUPA_MOD_INIT): Likewise.
54193 * include/pupa/disk.h: Include <pupa/device.h>.
54194 (pupa_print_partinfo): New prototype.
54195 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54196 (pupa_dl_get_prefix): Likewise.
54197 * include/pupa/misc.h: Include <pupa/err.h>.
54198 (pupa_isgraph): New prototype.
54199 (pupa_isdigit): Likewise.
54200 (pupa_split_cmdline): Likewise.
54201 * include/pupa/normal.h: Include <pupa/arg.h>.
54202 (pupa_command): Changed the prototype of the member `func' to
54203 match the argument parsing interface. Added member `options'.
54204 (pupa_register_command): Updated to match function.
54205 (pupa_arg_parse): New prototype.
54206 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54207 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54208 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54209 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54210 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54211 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54212 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54213 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54214 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54215 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54216 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54217 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54218 * kern/disk.c: Include <pupa/file.h>.
54219 (pupa_print_partinfo): New function.
54220 * kern/dl.c: Include <pupa/env.h>.
54221 (pupa_dl_dir): Variable removed.
54222 (pupa_dl_load): Use the environment variable `prefix' instead of
54223 the variable pupa_dl_dir.
54224 (pupa_dl_set_prefix): Function removed.
54225 (pupa_dl_get_prefix): Likewise.
54226 * kern/i386/pc/init.c: Include <pupa/env.h>.
54227 (pupa_machine_init): Use the environment variable `prefix' instead of
54228 using pupa_dl_set_prefix to set the prefix.
54229 * kern/main.c: Include <pupa/env.h>.
54230 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54231 using pupa_dl_get_prefix to get the prefix.
54232 * kern/misc.c: Include <pupa/env.h>.
54233 (pupa_isdigit): New function.
54234 (pupa_isgraph): Likewise.
54235 (pupa_ftoa): Likewise.
54236 (pupa_vsprintf): Added support for printing values of the type
54237 `double'. Make it possible to format variable output when using
54238 formatting like `%1.2%f'.
54239 (pupa_split_cmdline): New function.
54240 * kern/rescue.c: Include <pupa/env.h>.
54241 (next_word): Removed function.
54242 (pupa_rescue_cmd_prefix): Likewise.
54243 (pupa_rescue_cmd_set): New function.
54244 (pupa_rescue_cmd_unset): New function.
54245 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54246 split the command line instead of splitting it here. Added
54247 support for setting variables using the syntax `foo=bar'. Don't
54248 initialize the prefix command anymore. Initialized the set and
54250 * normal/cmdline.c: Include <pupa/env.h>.
54251 (pupa_tab_complete): Added prototypes for print_simple_completion,
54252 print_partition_completion, add_completion, iterate_commands,
54253 iterate_dev, iterate_part and iterate_dir. Moved code to print
54254 partition information from here to kern/disk.c.
54255 (pupa_cmdline_run): Don't check if the function exists anymore.
54256 * normal/main.c: Include <pupa/env.h>.
54257 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54258 instead of using pupa_dl_get_prefix to get the prefix.
54259 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54260 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54262 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54263 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54264 ((unused))' to silence a gcc warning.
54265 (pupa_vga_setcolor): Likewise.
54266 (debug_command): Changed to match argument parsing
54268 * util/pupa-emu.c: Include <pupa/env.h>.
54269 (options): Added 0's for unused fields to silence a gcc warning.
54271 (main): Use the environment variable `prefix' instead of using
54272 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54273 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54276 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54277 * util/misc.c: Include <malloc.h>.
54278 (pupa_malloc): Rewritten so errors are correctly reported.
54279 (pupa_realloc): Likewise.
54280 (pupa_memalign): Likewise.
54281 (pupa_mm_init_region): Declare unused variables with
54282 `__attribute__ ((unused))' to silence a gcc warning.
54283 * normal/i386/setjmp.S: Remove tab at the end of the file to
54284 silence a gcc warning.
54285 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54286 variables with `__attribute__ ((unused))' to silence a gcc
54288 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54289 local variable i unsigned to silence a gcc warning.
54291 * kern/term.c: Include <pupa/misc.h>.
54292 (pupa_more_lines): New variable.
54293 (pupa_more): Likewise.
54294 (pupa_putcode): When the pager is active pause at the end of every
54296 (pupa_set_more): New function.
54297 * include/pupa/term.h (pupa_set_more): New prototype.
54300 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54302 Now this project is GRUB 2 rather than PUPA. The location of
54303 the CVS repository was moved to GRUB's.
54305 * configure.ac: Use bug-grub as the reporting address.
54306 Use GRUB instead of PUPA.
54307 Change the version number to 1.90.
54309 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54311 * genkernsyms.sh: Updated copyright information.
54312 * genmk.rb: Likewise.
54313 * genmodsrc.sh: Likewise.
54314 * gensymlist.sh: Likewise.
54315 * boot/i386/pc/boot.S: Likewise.
54316 * boot/i386/pc/diskboot.S: Likewise.
54317 * disk/i386/pc/biosdisk.c: Likewise.
54318 * disk/i386/pc/partition.c: Likewise.
54319 * font/manager.c: Likewise.
54320 * fs/ext2.c: Likewise.
54321 * fs/fat.c: Likewise.
54322 * include/pupa/boot.h: Likewise.
54323 * include/pupa/device.h: Likewise.
54324 * include/pupa/disk.h: Likewise.
54325 * include/pupa/dl.h: Likewise.
54326 * include/pupa/elf.h: Likewise.
54327 * include/pupa/err.h: Likewise.
54328 * include/pupa/file.h: Likewise.
54329 * include/pupa/font.h: Likewise.
54330 * include/pupa/fs.h: Likewise.
54331 * include/pupa/kernel.h: Likewise.
54332 * include/pupa/loader.h: Likewise.
54333 * include/pupa/misc.h: Likewise.
54334 * include/pupa/mm.h: Likewise.
54335 * include/pupa/net.h: Likewise.
54336 * include/pupa/normal.h: Likewise.
54337 * include/pupa/rescue.h: Likewise.
54338 * include/pupa/setjmp.h: Likewise.
54339 * include/pupa/symbol.h: Likewise.
54340 * include/pupa/term.h: Likewise.
54341 * include/pupa/types.h: Likewise.
54342 * include/pupa/i386/setjmp.h: Likewise.
54343 * include/pupa/i386/types.h: Likewise.
54344 * include/pupa/i386/pc/biosdisk.h: Likewise.
54345 * include/pupa/i386/pc/boot.h: Likewise.
54346 * include/pupa/i386/pc/console.h: Likewise.
54347 * include/pupa/i386/pc/init.h: Likewise.
54348 * include/pupa/i386/pc/kernel.h: Likewise.
54349 * include/pupa/i386/pc/linux.h: Likewise.
54350 * include/pupa/i386/pc/loader.h: Likewise.
54351 * include/pupa/i386/pc/memory.h: Likewise.
54352 * include/pupa/i386/pc/multiboot.h: Likewise.
54353 * include/pupa/i386/pc/partition.h: Likewise.
54354 * include/pupa/i386/pc/time.h: Likewise.
54355 * include/pupa/i386/pc/vga.h: Likewise.
54356 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54357 * include/pupa/util/getroot.h: Likewise.
54358 * include/pupa/util/misc.h: Likewise.
54359 * include/pupa/util/resolve.h: Likewise.
54360 * kern/device.c: Likewise.
54361 * kern/disk.c: Likewise.
54362 * kern/dl.c: Likewise.
54363 * kern/err.c: Likewise.
54364 * kern/file.c: Likewise.
54365 * kern/fs.c: Likewise.
54366 * kern/loader.c: Likewise.
54367 * kern/main.c: Likewise.
54368 * kern/misc.c: Likewise.
54369 * kern/mm.c: Likewise.
54370 * kern/rescue.c: Likewise.
54371 * kern/term.c: Likewise.
54372 * kern/i386/dl.c: Likewise.
54373 * kern/i386/pc/init.c: Likewise.
54374 * kern/i386/pc/lzo1x.S: Likewise.
54375 * kern/i386/pc/startup.S: Likewise.
54376 * loader/i386/pc/chainloader.c: Likewise.
54377 * loader/i386/pc/linux.c: Likewise.
54378 * loader/i386/pc/multiboot.c: Likewise.
54379 * normal/cmdline.c: Likewise.
54380 * normal/command.c: Likewise.
54381 * normal/main.c: Likewise.
54382 * normal/menu.c: Likewise.
54383 * normal/i386/setjmp.S: Likewise.
54384 * term/i386/pc/console.c: Likewise.
54385 * term/i386/pc/vga.c: Likewise.
54386 * util/console.c: Likewise.
54387 * util/genmoddep.c: Likewise.
54388 * util/misc.c: Likewise.
54389 * util/pupa-emu.c: Likewise.
54390 * util/resolve.c: Likewise.
54391 * util/unifont2pff.rb: Likewise.
54392 * util/i386/pc/biosdisk.c: Likewise.
54393 * util/i386/pc/getroot.c: Likewise.
54394 * util/i386/pc/pupa-mkimage.c: Likewise.
54395 * util/i386/pc/pupa-setup.c: Likewise.
54397 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54399 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54400 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54401 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54402 reading and reset it after reading.
54403 (pupa_ext2_close): Return PUPA_ERR_NONE.
54405 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54407 (struct linux_kernel_header): Add kernel_version and
54409 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54410 pupa_file_read succeeds.
54411 (pupa_rescue_cmd_initrd): Implement.
54413 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54415 * fs/ext2.c (pupa_ext2_label): New function.
54416 (pupa_ext2_fs): Added label.
54417 * fs/fat.c (pupa_fat_label): New function.
54418 (pupa_fat_fs): Added label.
54419 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54421 * kern/misc.c (pupa_strndup): New function.
54422 * include/pupa/misc.h (pupa_strndup): New prototype.
54424 * include/pupa/normal.h: Include <pupa/err.h>.
54425 (pupa_set_history): New prototype.
54426 (pupa_iterate_commands): New prototype.
54427 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54428 <pupa/disk.h>, <pupa/file.h>.
54429 (hist_size): New variable.
54430 (hist_lines): Likewise.
54431 (hist_end): Likewise.
54432 (hist_used): Likewise.
54433 (pupa_set_history): New function.
54434 (pupa_history_get): Likewise.
54435 (pupa_history_add): Likewise.
54436 (pupa_history_replace): Likewise.
54437 (pupa_tab_complete): Likewise.
54438 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54439 completion shows partitionnames while completing partitions, this
54440 feature was suggested by Jeff Bailey.
54441 * normal/command.c (pupa_iterate_commands): New function.
54442 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54443 (pupa_normal_init): Initialize history buffer.
54444 (PUPA_MOD_INIT): Likewise.
54445 (pupa_normal_fini): Free the history buffer.
54446 (PUPA_MOD_FINI): Likewise.
54448 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54451 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54452 * configure.ac [i386]: Check for regparam bug.
54453 (NESTED_FUNC_ATTR) [! i386]: Defined.
54455 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54457 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54458 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54459 (pupa_emu_SOURCES): New variable.
54460 (pupa_emu_LDFLAGS): Likewise.
54461 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54462 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54463 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54464 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54465 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54466 (pupa_jmp_buf): New typedef.
54467 (pupa_setjmp) [PUPA_UTIL]: New macro.
54468 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54469 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54470 (pupa_refresh): New prototype.
54471 * include/pupa/util/getroot.h: New file.
54472 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54474 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54475 (pupa_rescue_cmd_cat): Likewise.
54476 (pupa_rescue_cmd_ls): Likewise.
54477 (pupa_rescue_cmd_testload): Likewise.
54478 (pupa_rescue_cmd_lsmod): Likewise.
54479 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54480 * normal/menu.c (run_menu): Likewise.
54481 * kern/term.c (pupa_cls): Likewise.
54482 (pupa_refresh): New function.
54483 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54484 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54485 * util/console.c: New file.
54487 * util/i386/pc/getroot.c: New file.
54488 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54489 (pupa_putchar): New function.
54490 (pupa_refresh): Likewise.
54491 (xgetcwd): Function moved to ...
54492 (strip_extra_slashes): Likewise.
54493 (get_prefix): Likewise.
54494 * util/i386/pc/getroot.c: ... here.
54495 (find_root_device): Function moved and renamed to...
54496 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54497 Changed all callers.
54498 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54500 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54501 Changed all callers.
54502 * util/misc.c (pupa_memalign): New function.
54503 (pupa_mm_init_region): Likewise.
54504 (pupa_register_exported_symbols): Likewise.
54505 (pupa_putchar): Function removed.
54506 * util/pupa-emu.c: New file.
54508 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54510 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54511 (_multiboot_mod_SOURCES): New variable.
54512 (_multiboot_mod_CFLAGS): Likewise.
54513 * loader/i386/pc/multiboot.c: New file.
54514 * include/pupa/i386/pc/multiboot.h: Likewise.
54515 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54516 (pupa_multiboot_real_boot): New function.
54517 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54518 (pupa_multiboot_real_boot): New prototype.
54519 (pupa_rescue_cmd_multiboot): Likewise
54520 (pupa_rescue_cmd_module): Likewise.
54522 * kern/loader.c (pupa_loader_set): Continue when
54523 pupa_loader_unload_func() fails.
54524 (pupa_loader_unset): New function.
54525 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54527 * kern/misc.c (pupa_stpcpy): New function.
54528 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54530 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54532 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54533 for available extensions.
54535 * include/pupa/i386/pc/time.h: New file.
54536 * kern/disk.c: Include <pupa/machine/time.h>.
54537 (PUPA_CACHE_TIMEOUT): New macro.
54538 (pupa_last_time): New variable.
54539 (pupa_disk_open): Flush the cache when there was a timeout.
54540 (pupa_disk_close): Reset the timer.
54541 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54543 * util/misc.c: Include <sys/times.h>
54544 (pupa_get_rtc): New function.
54546 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54548 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54550 (pupa_ext2_get_file_block): Use blocks member.
54552 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54553 first block. Return -1 instead of pupa_errno on error.
54555 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54557 * README: In the pupa-mkimage example use _chain instead of chain
54558 and ext2 instead of fat.
54559 * TODO: Replace ext2fs with jfs as an example. Add an item for
54560 adding journal playback for ext2fs.
54561 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54562 (pkgdata_MODULES): Added ext2.mod.
54563 (ext2_mod_SOURCES): New variable.
54564 (ext2_mod_CFLAGS): Likewise.
54565 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54566 * include/pupa/misc.h (pupa_strncpy): New prototype.
54567 (pupa_strcat): Likewise.
54568 (pupa_strncmp): Likewise.
54569 * kern/misc.c (pupa_strcat): Enable function.
54570 (pupa_strncpy): New function.
54571 (pupa_strncmp): Likewise.
54572 * fs/ext2.c: New file.
54574 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54575 when the read failed before retrying.
54576 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54577 (_FILE_OFFSET_BITS): Likewise.
54578 * configure.ac: Added AC_SYS_LARGEFILE.
54580 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54582 * genmk.rb (PModule#rule): Make sure to get only symbol names
54583 from the output of nm.
54584 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54586 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54588 I forgot to check in these changes for a long time. This adds
54589 incomplete support for VGA console, and this is still very
54590 buggy. Also, a lot of consideration is required for I18N,
54591 UNICODE, and VGA font issues. Therefore, assume that this is
54592 such that "better than nothing".
54594 * font/manager.c: New file.
54595 * include/pupa/font.h: Likewise.
54596 * include/pupa/i386/pc/vga.h: Likewise.
54597 * term/i386/pc/vga.c: Likewise.
54598 * util/unifont2pff.rb: Likewise.
54600 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54601 (pkgdata_MODULES): Added vga.mod and font.mod.
54602 (vga_mod_SOURCES): New variables.
54603 (vga_mod_CFLAGS): Likewise.
54604 (font_mod_SOURCES): Likewise.
54605 (font_mod_CFLAGS): Likewise.
54607 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54609 * include/pupa/term.h: Include pupa/err.h.
54610 (struct pupa_term): Added init and fini.
54611 Changed the argument of putchar to pupa_uint32_t.
54613 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54614 (pupa_console_real_putchar): New prototype.
54615 (pupa_console_putchar): Removed.
54616 (pupa_console_checkkey): Exported.
54617 (pupa_console_getkey): Likewise.
54619 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54622 * kern/term.c (pupa_term_set_current): Rewritten.
54623 (pupa_putchar): Likewise.
54624 (pupa_putcode): New function.
54626 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54627 (pupa_console_real_putchar): ... this.
54628 (pupa_vga_set_mode): New function.
54629 (pupa_vga_get_font): Likewise.
54631 * normal/command.c: Include pupa/term.h.
54632 (terminal_command): New function.
54633 (pupa_command_init): Register the command "terminal".
54635 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54636 (DISP_UP): Likewise.
54637 (DISP_RIGHT): Likewise.
54638 (DISP_DOWN): Likewise.
54639 (DISP_HLINE): Likewise.
54640 (DISP_VLINE): Likewise.
54641 (DISP_UL): Likewise.
54642 (DISP_UR): Likewise.
54643 (DISP_LL): Likewise.
54644 (DISP_LR): Likewise.
54646 * term/i386/pc/console.c (pupa_console_putchar): New function.
54648 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54650 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54651 FIX. Reverse the path_list.
54653 * include/pupa/normal.h: Export pupa_register_command and
54654 pupa_unregister_command.
54656 * hello/hello.c (pupa_cmd_hello): New module.
54657 * conf/i386-pc.rmk: Added hello.mod.
54659 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54661 * kern/i386/pc/lzo1x.S: New file.
54663 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54664 (compress_kernel): New variable.
54665 (generate_image): Heavily modified to support compressing a
54666 large part of the core image.
54668 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54670 (pupa_util_load_image): New function.
54672 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54673 (pupa_compressed_size): New variable.
54674 (codestart): Enable Gate A20 here.
54675 Decompress the compressed part of the core image.
54676 Rearrange the code to put functions and variables which are
54677 required for initialization in the non-compressed part.
54680 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54683 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54685 * include/pupa/i386/pc/kernel.h
54686 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54687 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54688 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54689 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54690 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54692 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54694 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54695 (Utility#rule): Likewise.
54697 * configure.ac: Check if LZO is available.
54699 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54701 * include/pupa/normal.h: New file.
54702 * include/pupa/setjmp.h: Likewise.
54703 * include/pupa/i386/setjmp.h: Likewise.
54704 * normal/cmdline.c: Likewise.
54705 * normal/command.c: Likewise.
54706 * normal/main.c: Likewise.
54707 * normal/menu.c: Likewise.
54708 * normal/i386/setjmp.S: Likewise.
54710 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54711 (pupa_rescue_cmd_initrd): Likewise.
54713 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54716 * kern/i386/pc/startup.S (translation_table): New variable.
54717 (translate_keycode): New function.
54718 (pupa_console_getkey): Call translate_keycode.
54720 * kern/rescue.c (attempt_normal_mode): New function.
54721 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54722 it failed, print a message.
54724 * kern/mm.c (pupa_real_malloc): Print more information when a
54725 free magic is broken.
54726 (pupa_free): If the first free header is not free actually, set
54729 * kern/main.c (pupa_load_normal_mode): Just load the module
54731 (pupa_main): Don't print the message
54732 "Entering into rescue mode..." here.
54734 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54736 (pupa_rescue_cmd_initrd): Likewise.
54737 (pupa_rescue_cmd_initrd): Likewise.
54739 * include/pupa/symbol.h (FUNCTION): Specify the type.
54740 (VARIABLE): Likewise.
54742 * include/pupa/err.h (pupa_err_t): Added
54743 PUPA_ERR_UNKNOWN_COMMAND.
54745 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54746 (pupa_dl_get_prefix): Likewise.
54748 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54749 Added _chain.mod and _linux.mod instead of chain.mod and
54751 (chain_mod_SOURCES): Renamed to ...
54752 (_chain_mod_SOURCES): ... this.
54753 (chain_mod_CFLAGS): Renamed to ...
54754 (_chain_mod_CFLAGS): ... this.
54755 (linux_mod_SOURCES): Renamed to ...
54756 (_linux_mod_SOURCES): ... this.
54757 (linux_mod_CFLAGS): Renamed to ...
54758 (_linux_mod_CFLAGS): ... this.
54759 (normal_mod_SOURCES): New variable.
54760 (normal_mod_CFLAGS): Likewise.
54761 (normal_mod_ASFLAGS): Likewise.
54763 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54765 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54768 * kern/dl.c (pupa_dl_ref): Refer depending modules
54770 (pupa_dl_unref): Unrefer depending modules recursively.
54771 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54772 a module is unloaded before one depending on that module is
54774 (pupa_dl_unload): Unload depending modules explicitly,
54777 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54779 * include/pupa/i386/pc/linux.h: New file.
54780 * loader/i386/pc/linux.c: Likewise.
54782 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54784 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54785 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54786 of PUPA_CHAINLOADER_BOOT_SECTOR.
54788 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54789 (pupa_linux_prot_size): New variable.
54790 (pupa_linux_tmp_addr): Likewise.
54791 (pupa_linux_real_addr): Likewise.
54792 (pupa_linux_boot_zimage): New function.
54793 (pupa_linux_boot_bzimage): Likewise.
54795 * kern/i386/pc/init.c (struct mem_region): New structure.
54796 (MAX_REGIONS): New macro.
54797 (mem_regions): New variable.
54798 (num_regions): Likewise.
54799 (pupa_os_area_addr): Likewise.
54800 (pupa_os_area_size): Likewise.
54801 (pupa_lower_mem): Likewise.
54802 (pupa_upper_mem): Likewise.
54803 (add_mem_region): New function.
54804 (compact_mem_regions): Likewise.
54805 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54806 the size of the conventional memory and that of so-called upper
54807 memory (before the first memory hole).
54808 Instead of adding each found region to free memory, use
54809 add_mem_region and add them after removing overlaps.
54810 Also, add only 1/4 of the upper memory to free memory. The rest
54811 is used for loading OS images. Maybe this is ad hoc, but this
54812 makes it much easier to relocate OS images when booting.
54814 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54815 (pupa_enter_rescue_mode): Don't register initrd and module.
54817 * kern/mm.c: Include pupa/dl.h.
54819 * kern/main.c: Include pupa/file.h and pupa/device.h.
54821 * kern/loader.c (pupa_loader_load_module_func): Removed.
54822 (pupa_loader_load_module): Likewise.
54824 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54827 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54828 (pupa_linux_tmp_addr): Likewise.
54829 (pupa_linux_real_addr): Likewise.
54830 (pupa_linux_boot_zimage): Likewise.
54831 (pupa_linux_boot_bzimage): Likewise.
54833 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54834 (pupa_upper_mem): Likewise.
54835 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54836 module is too dangerous.
54838 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54839 (pupa_os_area_size): Likewise.
54840 (pupa_loader_set): Remove the first argument. Loader doesn't
54841 manage modules or initrd any longer.
54842 (pupa_loader_load_module): Removed.
54844 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54845 (linux_mod_SOURCES): New variable.
54846 (linux_mod_CFLAGS): Likewise.
54848 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54850 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54851 the length of a blocklist correctly.
54853 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54854 Use ioctl only if the OS file is a block device.
54855 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54856 not very useful for normal files.
54858 * kern/main.c (pupa_set_root_dev): New function.
54859 (pupa_load_normal_mode): Likewise.
54860 (pupa_main): Call those above.
54862 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54865 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54867 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54869 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54870 (setup): Configure the installed partition information and the
54873 * loader/i386/pc/chainloader.c (my_mod): New variable.
54874 (pupa_chainloader_unload): New function.
54875 (pupa_rescue_cmd_chainloader): Refer itself.
54876 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54878 * kern/i386/pc/startup.S (install_partition): Removed.
54879 (version_string): Likewise.
54880 (config_file): Likewise.
54881 (pupa_install_dos_part): New variable.
54882 (pupa_install_bsd_part): Likewise.
54883 (pupa_prefix): Likewise.
54884 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54886 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54888 (make_install_device): New function.
54889 (pupa_machine_init): Set the dl prefix.
54891 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54892 (buf): Renamed to ...
54893 (linebuf): ... this.
54894 (pupa_rescue_cmd_prefix): New function.
54895 (pupa_rescue_cmd_insmod): Likewise.
54896 (pupa_rescue_cmd_rmmod): Likewise.
54897 (pupa_rescue_cmd_lsmod): Likewise.
54898 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54901 * kern/mm.c (pupa_memalign): If failed even after invalidating
54902 disk caches, unload unneeded modules and retry.
54904 * kern/misc.c (pupa_memmove): New function.
54905 (pupa_memcpy): Removed.
54906 (pupa_strcpy): New function.
54907 (pupa_itoa): Made static.
54909 * kern/dl.c (pupa_dl_iterate): New function.
54910 (pupa_dl_ref): Likewise.
54911 (pupa_dl_unref): Likewise.
54912 (pupa_dl_unload): Return if succeeded or not.
54913 (pupa_dl_unload_unneeded): New function.
54914 (pupa_dl_unload_all): Likewise.
54915 (pupa_dl_init): Renamed to ...
54916 (pupa_dl_set_prefix): ... this.
54917 (pupa_dl_get_prefix): New function.
54919 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54920 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54921 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54922 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54923 (pupa_install_dos_part): Declared.
54924 (pupa_install_bsd_part): Likewise.
54925 (pupa_prefix): Likewise.
54926 (pupa_boot_drive): Likewise.
54928 * include/pupa/types.h: Fix a typo.
54930 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
54932 (pupa_memmove): Declared.
54933 (pupa_strcpy): Likewise.
54935 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
54936 pupa_mod_init takes one argument, its own module.
54937 (pupa_dl_unload_unneeded): Declared.
54938 (pupa_dl_unload_all): Likewise.
54939 (pupa_dl_ref): Likewise.
54940 (pupa_dl_unref): Likewise.
54941 (pupa_dl_iterate): Likewise.
54942 (pupa_dl_init): Renamed to ...
54943 (pupa_dl_set_prefix): ... this.
54944 (pupa_dl_get_prefix): Declared.
54946 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
54947 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
54949 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
54950 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
54952 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
54953 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
54955 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54957 * util/i386/pc/pupa-setup.c (setup): Define the internal
54958 function find_first_partition_start at the top level, because GCC
54959 3.0.x cannot compile internal functions in deeper scopes
54961 (find_root_device): Use lstat instead of stat.
54962 Don't follow symbolic links.
54963 Fix the path-constructing code.
54965 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
54966 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
54967 by a BLKGETSIZE ioctl first, because block devices don't fill
54968 the member st_mode of the structure stat on Linux.
54969 [__linux__] (linux_find_partition): Use a temporary buffer
54970 REAL_DEV for the working space. Copy it to DEV before returning.
54971 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
54972 buffer cache consistent.
54973 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
54974 strncmp. The previous value was merely wrong.
54975 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
54977 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
54978 FAT size is 12. The previous value was merely wrong.
54980 * kern/main.c (pupa_main): Don't split the starting message from
54983 * kern/term.c (pupa_putchar): Put CR after LF instead of before
54984 LF, because BIOS goes crazy about character attributes in this
54987 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54989 * include/i386/pc/util/biosdisk.h: New file.
54990 * util/i386/pc/biosdisk.c: Likewise.
54991 * util/i386/pc/pupa-setup.c: Likewise.
54993 * Makefile.in (INCLUDE_DISTFILES): Added
54994 include/pupa/i386/pc/util/biosdisk.h.
54995 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
54996 directory util/i386/pc.
54997 (install-local): Added a rule for sbin_UTILITIES.
54998 (uninstall): Likewise.
55000 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55002 * util/misc.c (xrealloc): New function.
55003 (pupa_malloc): Likewise.
55004 (pupa_free): Likewise.
55005 (pupa_realloc): Likewise.
55006 (pupa_stop): Likewise.
55007 (pupa_putchar): Likewise.
55009 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55011 * include/pupa/util/misc.h (xrealloc): Declared.
55013 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55015 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55016 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55018 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55019 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55021 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55022 way should be implemented.
55023 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55025 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55026 the size of NAME for safety.
55027 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55030 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55031 (pupa_setup_SOURCES): Likewise.
55033 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55035 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55037 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55038 bunch of pushl's from pusha, because this destroys the return
55041 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55043 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55044 This means that any missing prototypes could be fatal. Also, you
55045 must take care when writing assembly code. See the comments at
55046 the beginning of startup.S, for more details.
55048 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55049 compilation mechanism.
55050 (pupa_chainloader_real_boot): Likewise.
55051 (pupa_biosdisk_rw_int13_extensions): Likewise.
55052 (pupa_biosdisk_rw_standard): Likewise.
55053 (pupa_biosdisk_check_int13_extensions): Likewise.
55054 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55055 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55056 (pupa_get_memsize): Likewise.
55057 (pupa_get_mmap_entry): Likewise.
55058 (pupa_console_putchar): Likewise.
55059 (pupa_console_setcursor): Likewise.
55060 (pupa_getrtsecs): Use pushl instead of push.
55062 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55063 memory instead of the stack for a mmap entry, because some
55064 BIOSes may ignore the maximum size and overflow.
55066 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55068 * genmk.rb (PModule#rule): Compile automatically generated
55069 sources with module-specific CFLAGS as well as other sources.
55071 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55073 * configure.ac: Check ld.
55074 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55075 respectively, before checking endianness and sizes.
55077 * Makefile.in (LD): New variable.
55079 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55081 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55083 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55085 * Changelog: New file.